opth-gen.awk: Generate mapping from cpp message reasons to the options that enable...
[gcc.git] / gcc / ChangeLog
1 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 * opth-gen.awk: Generate mapping from cpp message reasons to the
4 options that enable them.
5 * doc/options.texi (CppReason): Document.
6
7 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8
9 * doc/invoke.texi (Wnormalized=): Update.
10
11 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
12
13 PR target/63195
14 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
15 operands. Split off the constant operand alternative to ...
16 (*bool<mode>3_imm): New.
17
18 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19
20 * rtl.h (single_set_2): Strengthen first param from const_rtx to
21 const rtx_insn *, and move prototype to above...
22 (single_set): ...this. Convert this from a macro to an inline
23 function, enforcing the requirement that the param is a const
24 rtx_insn *.
25 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
26
27 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
28 Strengthen both params from rtx to rtx_insn *.
29 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
30 Likewise; introduce locals "producer_set", "consumer_set", using
31 them in place of "producer" and "consumer" when dealing with SET
32 rather than insn.
33 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
34 when invoking single_set in region guarded by INSN_P.
35 (avr_out_bitop): Likewise.
36 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
37 region guarded by GET_CODE check, using methods to strengthen
38 local "this_insn" from rtx to rtx_insn *, and for clarity.
39 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
40 Strengthen local "insn" from rtx to rtx_insn *.
41 (define_insn_and_split "xload<mode>_A"): Likewise.
42 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
43 "insn".
44 (find_load): Likewise for return type.
45 (workaround_speculation): Likewise for both locals named
46 "load_insn".
47 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
48 local "cc0_user".
49 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
50 for local "prev".
51 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
52 param 2.
53 * config/h8300/h8300.c (notice_update_cc): Likewise.
54 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
55 "insn" and "dep_insn".
56 (exact_store_load_dependency): Likewise for both params.
57 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
58 since this now clashes with inline function. Instead, delay
59 calling single_set until the point where its needed, and then
60 assign the result to "compare_set" and rework the conditional that
61 follows.
62 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
63 local "last" from rtx to rtx_insn *.
64 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
65 second param.
66 (mips_store_data_bypass_p): Likewise for both params.
67 * config/mips/mips.c (mips_load_store_insns): Likewise for second
68 param.
69 (mips_store_data_bypass_p): Likewise for both params.
70 (mips_orphaned_high_part_p): Likewise for param "insn".
71 * config/mn10300/mn10300.c (extract_bundle): Likewise.
72 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
73 Introduce local rtx "insn2_pat".
74 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
75 "ninsn".
76 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
77 Introduce local rtx "set", using it in place of "insn" for the
78 result of single_set. This appears to fix a bug, since the call
79 to find_regno_note on a SET does nothing.
80 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
81 params from rtx to rtx_insn *.
82 (set_to_load_agen): Likewise.
83 * config/s390/s390.c (s390_label_align): Likewise for local
84 "prev_insn". Introduce new rtx locals "set" and "src", using
85 them in place of "prev_insn" for the results of single_set
86 and SET_SRC respectively.
87 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
88 Introduce new rtx local "set" using in place of "jump" for the
89 result of single_set. Use SET_SRC (set) rather than plain
90 XEXP (set, 1).
91 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
92 rtx to rtx_insn *.
93 (noncall_uses_reg): Likewise.
94 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
95 guarded by GET_CODE check, using its methods for clarity, and to
96 enable strengthening local "this_insn" from rtx to rtx_insn *.
97 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
98 "insn" from rtx to rtx_insn *.
99 (define_expand "umulhisi3"): Likewise.
100 (define_expand "smulsi3_highpart"): Likewise.
101 (define_expand "umulsi3_highpart"): Likewise.
102 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
103 local "after". Replace GET_CODE check with a dyn_cast,
104 introducing new local rtx_sequence * "seq", using insn method for
105 typesafety.
106
107 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
108 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
109 place of "insn" once we're dealing with patterns rather than the
110 input insn.
111 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
112 (scan_trace): Likewise for local "elt", updating lookups within
113 sequence to use insn method rather than element method.
114 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
115 to rtx_insn *.
116 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
117 * ifcvt.c (noce_try_abs): Likewise for local "insn".
118 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
119 invoking single_set.
120 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
121 "insn" from rtx to rtx_insn *.
122 (skip_usage_debug_insns): Likewise for return type, adding a
123 checked cast.
124 (check_secondary_memory_needed_p): Likewise for local "insn".
125 (inherit_reload_reg): Likewise.
126 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
127 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
128 checked casts.
129 (store_data_bypass_p): Likewise for both params.
130 (if_test_bypass_p): Likewise.
131 * recog.h (store_data_bypass_p): Likewise for both params.
132 (if_test_bypass_p): Likewise.
133 * reload.c (find_equiv_reg): Likewise for local "where".
134 * reorg.c (delete_jump): Likewise for param "insn".
135 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
136 to const rtx_insn *.
137 * store-motion.c (replace_store_insn): Likewise for param "del".
138 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
139 and use its methods for clarity, and to strengthen local "del"
140 from rtx to rtx_insn *.
141 (build_store_vectors): Use insn method of "st" when calling
142 replace_store_insn for typesafety and clarity.
143
144 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
145
146 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
147 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
148 on how to make it legal in future.
149
150 2014-09-09 David Malcolm <dmalcolm@redhat.com>
151
152 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
153 to rtx_insn *.
154 (restinsn): Likewise.
155 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
156 Likewise for param.
157 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
158 Likewise.
159 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
160 first param.
161 (arc_hazard): Likewise for both params.
162 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
163 checked casts to rtx_sequence * and uses of the insn method for
164 type-safety.
165 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
166 (arc_adjust_insn_length): Likewise for param "insn".
167 (struct insn_length_parameters_s): Likewise for first param of
168 "get_variants" callback field.
169 (arc_get_insn_variants): Likewise for first param and local
170 "inner". Replace a check of GET_CODE with a dyn_cast to
171 rtx_sequence *, using methods for type-safety and clarity.
172 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
173 rtx_sequence * and uses of the insn method for type-safety when
174 invoking arc_adjust_insn_length.
175 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
176 for param.
177 (arm_address_offset_is_imm): Likewise.
178 (struct tune_params): Likewise for params 1 and 3 of the
179 "sched_adjust_cost" callback field.
180 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
181 params 1 and 3 ("insn" and "dep").
182 (xscale_sched_adjust_cost): Likewise.
183 (fa726te_sched_adjust_cost): Likewise.
184 (cortexa7_older_only): Likewise for param "insn".
185 (cortexa7_younger): Likewise.
186 (arm_attr_length_move_neon): Likewise.
187 (arm_address_offset_is_imm): Likewise.
188 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
189 * config/avr/avr.c (avr_notice_update_cc): Likewise.
190 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
191 (workaround_speculation): Likewise for local "last_condjump".
192 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
193 (shadow_or_blockage_p): Likewise.
194 (get_unit_reqs): Likewise.
195 (get_unit_operand_masks): Likewise.
196 (c6x_registers_update): Likewise.
197 (returning_call_p): Likewise.
198 (can_use_callp): Likewise.
199 (convert_to_callp): Likewise.
200 (find_last_same_clock): Likwise for local "t".
201 (reorg_split_calls): Likewise for local "shadow".
202 (hwloop_pattern_reg): Likewise for param "insn".
203 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
204 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
205 (frv_extract_membar): Likewise.
206 (frv_optimize_membar_local): Strengthen param "last_membar" from
207 rtx * to rtx_insn **.
208 (frv_optimize_membar_global): Strengthen param "membar" from rtx
209 to rtx_insn *.
210 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
211 to rtx_insn **.
212 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
213 both params from rtx to rtx_insn *.
214 (ia64_ld_address_bypass_p): Likewise.
215 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
216 "insn".
217 (ia64_safe_type): Likewise.
218 (group_barrier_needed): Likewise.
219 (safe_group_barrier_needed): Likewise.
220 (ia64_single_set): Likewise.
221 (is_load_p): Likewise.
222 (record_memory_reference): Likewise.
223 (get_mode_no_for_insn): Likewise.
224 (important_for_bundling_p): Likewise.
225 (unknown_for_bundling_p): Likewise.
226 (ia64_st_address_bypass_p): Likewise for both params.
227 (ia64_ld_address_bypass_p): Likewise.
228 (expand_vselect): Introduce new local rtx_insn * "insn", using it
229 in place of rtx "x" after the emit_insn call.
230 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
231 Strengthen param from rtx to rtx_insn *.
232 (ix86_agi_dependent): Likewise for both params.
233 (ix86_attr_length_immediate_default): Likewise for param 1.
234 (ix86_attr_length_address_default): Likewise for param.
235 (ix86_attr_length_vex_default): Likewise for param 1.
236 * config/i386/i386.c (ix86_attr_length_immediate_default):
237 Likewise for param "insn".
238 (ix86_attr_length_address_default): Likewise.
239 (ix86_attr_length_vex_default): Likewise.
240 (ix86_agi_dependent): Likewise for both params.
241 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
242 (vselect_insn): Likewise for this variable.
243 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
244 for param 1.
245 (m68k_sched_attr_opy_type): Likewise.
246 * config/m68k/m68k.c (sched_get_operand): Likewise.
247 (sched_attr_op_type): Likewise.
248 (m68k_sched_attr_opx_type): Likewise.
249 (m68k_sched_attr_opy_type): Likewise.
250 (sched_get_reg_operand): Likewise.
251 (sched_get_mem_operand): Likewise.
252 (m68k_sched_address_bypass_p): Likewise for both params.
253 (sched_get_indexed_address_scale): Likewise.
254 (m68k_sched_indexed_address_bypass_p): Likewise.
255 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
256 (m68k_sched_indexed_address_bypass_p): Likewise.
257 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
258 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
259 removing another.
260 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
261 params from rtx to rtx_insn *.
262 (mips_fmadd_bypass): Likewise.
263 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
264 (mips_linked_madd_p): Likewise.
265 (mips_macc_chains_last_hilo): Likewise for this variable.
266 (mips_macc_chains_record): Likewise for param.
267 (vr4130_last_insn): Likewise for this variable.
268 (vr4130_swap_insns_p): Likewise for both params.
269 (mips_ls2_variable_issue): Likewise for param.
270 (mips_need_noat_wrapper_p): Likewise for param "insn".
271 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
272 in place of "x" after the emit_insn.
273 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
274 params from rtx to rtx_insn *.
275 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
276 (pa_combine_instructions): Introduce local "par" for result of
277 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
278 to make_insn_raw.
279 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
280 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
281 (rl78_alloc_physical_registers_op1): Likewise.
282 (rl78_alloc_physical_registers_op2): Likewise.
283 (rl78_alloc_physical_registers_ro1): Likewise.
284 (rl78_alloc_physical_registers_cmp): Likewise.
285 (rl78_alloc_physical_registers_umul): Likewise.
286 (rl78_alloc_address_registers_macax): Likewise.
287 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
288 * config/s390/predicates.md (execute_operation): Likewise for
289 local "insn".
290 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
291 params.
292 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
293 (addr_generation_dependency_p): Likewise for param "insn".
294 (s390_agen_dep_p): Likewise for both params.
295 (s390_fpload_toreg): Likewise for param "insn".
296 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
297 * config/sh/sh.c (sh_loop_align): Likewise for param and local
298 "next".
299 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
300 * config/sh/sh_treg_combine.cc
301 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
302 and local "i".
303 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
304 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
305 "and_insn", "load", "shift".
306 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
307 "insn".
308 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
309 for XEXP (note, 0) of the REG_CC_SETTER note.
310 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
311 rtx_insn *, eliminating a checked cast made redundant by this.
312 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
313 to rtx_insn *.
314 * genattr.c (main): When writing out the prototype to
315 const_num_delay_slots, strengthen the param from rtx to
316 rtx_insn *.
317 * genattrtab.c (write_const_num_delay_slots): Likewise when
318 writing out the implementation of const_num_delay_slots.
319 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
320 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
321 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
322 favor of new rtx locals "src" and "set" and new local rtx_insn *
323 "insn" and "seq".
324 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
325 to rtx_insn *.
326 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
327 locals "cond", "if_then_else", "set" and new rtx_insn * locals
328 "insn" and "seq".
329 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
330 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
331 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
332 the top-level scope, replacing with new more tightly-scoped rtx
333 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
334 "new_insn", "copy_of_insn_b", and make local rtx "set" more
335 tightly-scoped.
336 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
337 rtx_insn *.
338 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
339 "move_insn".
340 (ira_setup_alts): Likewise for param "insn".
341 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
342 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
343 and an rtx_insn *.
344 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
345 new more-tightly scoped rtx locals "add3_insn", "insn",
346 "add2_insn" and rtx_insn * "move_insn".
347 * postreload-gcse.c (eliminate_partially_redundant_load): Add
348 checked cast on result of gen_move_insn when invoking
349 extract_insn.
350 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
351 rtx_insn *.
352 (verify_changes): Add a checked cast on "object" when invoking
353 insn_invalid_p.
354 (extract_insn_cached): Strengthen param "insn" from rtx to
355 rtx_insn *.
356 (extract_constrain_insn_cached): Likewise.
357 (extract_insn): Likewise.
358 * recog.h (insn_invalid_p): Likewise for param 1.
359 (recog_memoized): Likewise for param.
360 (extract_insn): Likewise.
361 (extract_constrain_insn_cached): Likewise.
362 (extract_insn_cached): Likewise.
363 * reload.c (can_reload_into): Likewise for local "test_insn".
364 * reload.h (cleanup_subreg_operands): Likewise for param.
365 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
366 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
367 result of emit_insn. Remove a checked cast made redundant by this
368 change.
369 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
370 rtx to rtx_insn *.
371 * sel-sched.c (get_reg_class): Likewise.
372
373 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
374 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
375
376 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
377 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
378 Define.
379 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
380
381 2014-09-09 David Malcolm <dmalcolm@redhat.com>
382
383 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
384 const rtx_insn *, and from rtx to rtx_insn * for the other
385 overloaded variant.
386 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
387 INSN_LOCATION, since we know INSN_P holds.
388 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
389 (insn_file): Likewise.
390 (insn_scope): Likewise.
391 (insn_location): Likewise.
392
393 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
394 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
395 for the result of gen_load_const_gp.
396 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
397 param from rtx to rtx_insn *.
398 * config/rs6000/rs6000.c (output_call): Likewise.
399 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
400 introducing a checked cast to rtx_sequence * and use of the insn
401 method.
402 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
403 from rtx to rtx_insn *.
404 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
405 (insn_line): Likewise.
406 (insn_file): Likewise.
407 (insn_location): Likewise.
408 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
409 from rtx to rtx_insn *.
410 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
411 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
412 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
413 via a checked cast.
414 * reorg.c (relax_delay_slots): Strengthen locals named "after"
415 from rtx to rtx_insn *; use methods of "pat" for type-safety.
416
417 2014-09-09 David Malcolm <dmalcolm@redhat.com>
418
419 * combine.c (try_combine): Eliminate checked cast on result of
420 gen_rtx_INSN.
421 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
422 autogenerated one by strengthening the return type and params 2 and 3
423 from rtx to rtx_insn *, and by naming the params.
424 * gengenrtl.c (special_rtx): Add INSN to those that are
425 special-cased.
426 * rtl.h (gen_rtx_INSN): New prototype.
427
428 2014-09-09 David Malcolm <dmalcolm@redhat.com>
429
430 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
431 than NULL_RTX.
432 (no_equiv): Likewise.
433 (update_equiv_regs): Likewise.
434 (setup_reg_equiv): Likewise. Strengthen locals "elem",
435 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
436 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
437 clarity.
438 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
439 from rtx to rtx_insn_list *.
440 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
441 rtx_insn_list * and use methods for clarity and typesafety.
442 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
443 "list".
444 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
445 redundant check on INSN_P (insns): this cannot hold, as "insns" is
446 an INSN_LIST, not an insn.
447 (reverse_equiv_p): Strengthen local "insns" from rtx to
448 rtx_insn_list * and use methods for clarity and typesafety.
449 (contains_reloaded_insn_p): Likewise for local "list".
450
451 2014-09-09 Jiong Wang <jiong.wang@arm.com>
452
453 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
454 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
455 (arm_builtin_vectorized_function): Likewise.
456 * config/arm/arm_neon_builtins.def: New macro for copysignf.
457 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
458
459 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
460
461 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
462 * builtins.h (default_target_builtins): Likewise.
463 * gcse.h (default_target_gcse): Likewise.
464 * target-globals.h (target_globals): Add a destructor. Convert
465 void-pointer fields back to their real type and change from
466 GTY((atomic)) to GTY((skip)).
467 (restore_target_globals): Remove casts accordingly.
468 * target-globals.c (save_target_globals): Use XCNEW rather than
469 ggc_internal_cleared_alloc to allocate non-GC structures.
470 Use ggc_cleared_alloc to allocate the target_globals structure
471 itself.
472 (target_globals::~target_globals): Define.
473
474 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
475
476 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
477 mnemonic instead of fldmfdd.
478 * config/arm/arm.c (vfp_output_fstmd): Rename to...
479 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
480 Output vpush when address register is SP.
481 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
482 (vfp_output_vstmd): ... This.
483 * config/arm/vfp.md (push_multi_vfp): Update call to
484 vfp_output_vstmd.
485
486 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
487
488 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
489
490 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
491
492 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
493 (*sqrtdf2_vfp): Likewise.
494 (*cmpsf_vfp): Likewise.
495 (*cmpsf_trap_vfp): Likewise.
496 (*cmpdf_vfp): Likewise.
497 (*cmpdf_trap_vfp): Likewise.
498
499 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
500
501 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
502 (*truncdfsf2_vfp): Likewise.
503 (*truncsisf2_vfp): Likewise.
504 (*truncsidf2_vfp): Likewise.
505 (fixuns_truncsfsi2): Likewise.
506 (fixuns_truncdfsi2): Likewise.
507 (*floatsisf2_vfp): Likewise.
508 (*floatsidf2_vfp): Likewise.
509 (floatunssisf2): Likewise.
510 (floatunssidf2): Likewise.
511
512 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
513
514 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
515 (*muldf3_vfp): Likewise.
516 (*mulsf3negsf_vfp): Likewise.
517 (*muldf3negdf_vfp): Likewise.
518 (*mulsf3addsf_vfp): Likewise.
519 (*muldf3adddf_vfp): Likewise.
520 (*mulsf3subsf_vfp): Likewise.
521 (*muldf3subdf_vfp): Likewise.
522 (*mulsf3negsfaddsf_vfp): Likewise.
523 (*fmuldf3negdfadddf_vfp): Likewise.
524 (*mulsf3negsfsubsf_vfp): Likewise.
525 (*muldf3negdfsubdf_vfp): Likewise.
526
527 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
528
529 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
530 (*absdf2_vfp): Likewise.
531 (*negsf2_vfp): Likewise.
532 (*negdf2_vfp): Likewise.
533 (*addsf3_vfp): Likewise.
534 (*adddf3_vfp): Likewise.
535 (*subsf3_vfp): Likewise.
536 (*subdf3_vfp): Likewise.
537 (*divsf3_vfp): Likewise.
538 (*divdf3_vfp): Likewise.
539
540 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
541
542 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
543 multiple.
544 (arm_print_operand): Don't convert real values to decimal
545 representation in default case.
546 (fp_immediate_constant): Delete.
547 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
548 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
549 syntax.
550 (*thumb2_movsi_vfp): Likewise.
551 (*movdi_vfp): Likewise.
552 (*movdi_vfp_cortexa8): Likewise.
553 (*movhf_vfp_neon): Likewise.
554 (*movhf_vfp): Likewise.
555 (*movsf_vfp): Likewise.
556 (*thumb2_movsf_vfp): Likewise.
557 (*movdf_vfp): Likewise.
558 (*thumb2_movdf_vfp): Likewise.
559 (*movsfcc_vfp): Likewise.
560 (*thumb2_movsfcc_vfp): Likewise.
561 (*movdfcc_vfp): Likewise.
562 (*thumb2_movdfcc_vfp): Likewise.
563
564 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
565
566 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
567 (-mtune): Likewise.
568 (-mcpu): Likewise.
569
570 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
571
572 PR target/61749
573 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
574 Use qualifier_immediate for last operand. Rename to...
575 (aarch64_types_ternop_lane_qualifiers): ... This.
576 (TYPES_QUADOP): Rename to...
577 (TYPES_TERNOP_LANE): ... This.
578 (aarch64_simd_expand_args): Return const0_rtx when encountering user
579 error. Change return of 0 to return of NULL_RTX.
580 (aarch64_crc32_expand_builtin): Likewise.
581 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
582 ICE when expanding unknown builtin.
583 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
584 TERNOP_LANE qualifiers.
585 (sqdmlsl_lane): Likewise.
586 (sqdmlal_laneq): Likewise.
587 (sqdmlsl_laneq): Likewise.
588 (sqdmlal2_lane): Likewise.
589 (sqdmlsl2_lane): Likewise.
590 (sqdmlal2_laneq): Likewise.
591 (sqdmlsl2_laneq): Likewise.
592
593 2014-09-09 Nick Clifton <nickc@redhat.com>
594
595 * doc/invoke.texi (Optimization Options): Add missing @gol to the
596 end of a line.
597 (S/390 and zSeries Options): Remove superfluous word from the
598 description of the -mhotpatch option.
599
600 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
601
602 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
603 * ira.c: #include "shrink-wrap.h"
604 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
605 * ifcvt.c: #include "shrink-wrap.h"
606 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
607
608 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
609
610 * common/config/picochip/picochip-common.c: Remove.
611 * config.gcc: Remove support for picochip.
612 * config/picochip/constraints.md: Remove.
613 * config/picochip/dfa_space.md: Remove.
614 * config/picochip/dfa_speed.md: Remove.
615 * config/picochip/picochip-protos.h: Remove.
616 * config/picochip/picochip.c: Remove.
617 * config/picochip/picochip.h: Remove.
618 * config/picochip/picochip.md: Remove.
619 * config/picochip/picochip.opt: Remove.
620 * config/picochip/predicates.md: Remove.
621 * config/picochip/t-picochip: Remove.
622 * doc/md.texi: Don't document picochi.
623
624 2014-09-08 David Malcolm <dmalcolm@redhat.com>
625
626 * basic-block.h (control_flow_insn_p): Strengthen param from
627 const_rtx to const rtx_insn *.
628 * cfgbuild.c (control_flow_insn_p): Likewise.
629
630 2014-09-08 David Malcolm <dmalcolm@redhat.com>
631
632 * gcse.c (modify_mem_list): Strengthen this variable from
633 vec<rtx> * to vec<rtx_insn *> *.
634 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
635 vec<rtx_insn *>.
636 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
637 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
638 (record_last_mem_set_info): Strengthen param "insn" from rtx to
639 rtx_insn *.
640 (record_last_set_info): Likewise for local "last_set_insn".
641
642 2014-09-08 DJ Delorie <dj@redhat.com>
643
644 * doc/invoke.texi (MSP430 Options): Add -minrt.
645
646 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
647
648 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
649 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
650 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
651 handling SH_SPLAT.
652 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
653 of extracted lane.
654 (adjust_splat): New function.
655 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
656 (dump_swap_insn_table): Add case for SH_SPLAT.
657
658 2014-09-08 Richard Biener <rguenther@suse.de>
659
660 PR ipa/63196
661 * tree-inline.c (copy_loops): The source loop header should
662 always be non-NULL.
663 (tree_function_versioning): If loops need fixup after removing
664 unreachable blocks fix them.
665 * omp-low.c (simd_clone_adjust): Do not add incr block to
666 loop under construction.
667
668 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
669
670 * config/aarch64/aarch64-builtins.c
671 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
672
673 2014-09-08 Joseph Myers <joseph@codesourcery.com>
674
675 * config/i386/cygming.h (TF_SIZE): Remove.
676 * config/i386/darwin.h (TF_SIZE): Remove.
677 * config/i386/dragonfly.h (TF_SIZE): Remove.
678 * config/i386/freebsd.h (TF_SIZE): Remove.
679 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
680 * config/i386/openbsdelf.h (TF_SIZE): Remove.
681 * config/i386/sol2.h (TF_SIZE): Remove.
682 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
683 * config/ia64/linux.h (TF_SIZE): Remove.
684 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
685 * doc/tm.texi: Regenerate.
686 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
687
688 2014-09-08 Joseph Myers <joseph@codesourcery.com>
689
690 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
691 Remove.
692 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
693 Remove.
694 * doc/tm.texi: Regenerate.
695 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
696 Poison.
697 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
698 * config/cris/cris.h (__make_dp): Remove.
699
700 2014-09-08 Richard Biener <rguenther@suse.de>
701
702 PR bootstrap/63204
703 * cfgloop.c (mark_loop_for_removal): Track former header
704 unconditionally.
705 * cfgloop.h (struct loop): Add former_header member unconditionally.
706 * loop-init.c (fix_loop_structure): Enable bogus loop removal
707 diagnostic unconditionally.
708
709 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
710
711 PR target/63190
712 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
713 constraint for operand0 and remove write only modifier from operand3.
714
715 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
716
717 PR rtl-optimization/62208
718 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
719 rather than const0_rtx in eq/ne-xor simplifications.
720
721 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
722
723 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
724 (arc_output_mi_thunk): Likewise.
725
726 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
727 arguments to silence bogus warning.
728
729 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
730
731 PR middle-end/63171
732 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
733
734 2014-09-06 Tom de Vries <tom@codesourcery.com>
735
736 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
737 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
738 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
739
740 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
741
742 PR target/63188
743 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
744 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
745
746 2014-09-05 Easwaran Raman <eraman@google.com>
747
748 PR rtl-optimization/62146
749 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
750 hoisted instruction unconditional.
751
752 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
753
754 PR target/63187
755 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
756 Do not allow any_mask_operand for operands[2].
757 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
758
759 2014-09-05 David Malcolm <dmalcolm@redhat.com>
760
761 * config/arc/arc.c (arc_print_operand): Use insn method of
762 final_sequence for type-safety.
763 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
764 "insn" from rtx to rtx_insn *.
765 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
766 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
767 Likewise for locals "branch", "label".
768 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
769 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
770 (same_cmp_following_p): Likewise for locals "i2", "i3".
771 * config/sh/sh_optimize_sett_clrt.cc
772 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
773 param "cbranch_insn".
774 * function.c (convert_jumps_to_returns): Likewis for local "jump".
775 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
776 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
777 const rtx_insn *.
778 (condjump_p): Likewise.
779 (condjump_in_parallel_p): Likewise.
780 (pc_set): Likewise.
781 (any_uncondjump_p): Likewise.
782 (any_condjump_p): Likewise.
783 (condjump_label): Likewise.
784 (returnjump_p): Strengthen param "insn" from rtx to
785 const rtx_insn *.
786 (onlyjump_p): Strengthen param "insn" from const_rtx to
787 const rtx_insn *.
788 (jump_to_label_p): Likewise.
789 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
790 (invert_jump): Likewise.
791 * reorg.c (simplejump_or_return_p): Add checked cast when calling
792 simplejump_p.
793 (get_jump_flags): Strengthen param "insn" from rtx to
794 const rtx_insn *.
795 (get_branch_condition): Likewise.
796 (condition_dominates_p): Likewise.
797 (make_return_insns): Move declaration of local "pat" earlier, to
798 after we've handled NONJUMP_INSN_P and non-sequences, using its
799 methods to simplify the code and for type-safety.
800 * rtl.h (find_constant_src): Strengthen param from const_rtx to
801 const rtx_insn *.
802 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
803 (condjump_p): Strengthen param from const_rtx to
804 const rtx_insn *.
805 (any_condjump_p): Likewise.
806 (any_uncondjump_p): Likewise.
807 (pc_set): Likewise.
808 (condjump_label): Likewise.
809 (simplejump_p): Likewise.
810 (returnjump_p): Likewise.
811 (onlyjump_p): Likewise.
812 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
813 (invert_jump): Likewise.
814 (condjump_in_parallel_p): Strengthen param from const_rtx to
815 const rtx_insn *.
816 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
817 to const rtx_insn *.
818 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
819 to const rtx_insn *.
820 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
821
822 2014-09-05 David Malcolm <dmalcolm@redhat.com>
823
824 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
825 above the conditional, and convert the check on GET_CODE to a
826 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
827 the conditional. Simplify the conditional by using methods of
828 "trial_seq".
829
830 2014-09-05 David Malcolm <dmalcolm@redhat.com>
831
832 * haifa-sched.c (check_clobbered_conditions): Strengthen local
833 "link" from rtx to rtx_insn_list *, and use its methods for
834 clarity and type-safety.
835 (toggle_cancelled_flags): Likewise.
836 (restore_last_backtrack_point): Likewise.
837 (queue_to_ready): Use insn method of "link" in one place.
838 (schedule_block): Strengthen local "link" from rtx to
839 rtx_insn_list *, and use its methods for clarity and type-safety.
840
841 2014-09-05 David Malcolm <dmalcolm@redhat.com>
842
843 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
844 param "insn" from const_rtx to const rtx_insn *.
845 (sched_get_reverse_condition_uncached): Likewise.
846 (sched_get_condition_with_rev): Likewise.
847 (sched_has_condition_p): Likewise.
848 (sched_insns_conditions_mutex_p): Likewise for both params.
849 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
850 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
851 (setup_insn_reg_uses): Move local "list" to be more tightly
852 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
853 its methods for clarity and type-safety.
854 (sched_analyze_1): Strengthen local "pending" from rtx to
855 rtx_insn_list *, and local "pending_mem" from rtx to
856 rtx_expr_list *. Use methods of each for clarity and type-safety.
857 (sched_analyze_2): Likewise.
858 (sched_analyze_insn): Likewise.
859
860 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
861 param from const_rtx to const rtx_insn *.
862 (sched_insns_conditions_mutex_p): Likewise for both params.
863 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
864 param.
865
866 * system.h (CONST_CAST_RTX_INSN): New macro.
867
868 2014-09-05 David Malcolm <dmalcolm@redhat.com>
869
870 * recog.c (peep2_attempt): Strengthen return type from rtx to
871 rtx_insn *.
872 (peep2_update_life): Likewise for params "last", "prev", removing
873 a checked cast made redundant by this.
874 (peephole2_optimize): Likewise for local "last".
875
876 2014-09-05 David Malcolm <dmalcolm@redhat.com>
877
878 * basic-block.h (set_block_for_insn): Eliminate this macro in
879 favor of...
880 * rtl.h (set_block_for_insn): New inline function, imposing the
881 requirement that the "insn" param is an rtx_insn *.
882
883 2014-09-05 David Malcolm <dmalcolm@redhat.com>
884
885 * caller-save.c (setup_save_areas): Strengthen local "insn" from
886 rtx to rtx_insn *.
887 * final.c (get_call_reg_set_usage): Likewise for first param,
888 eliminating a checked cast.
889 * regs.h (get_call_reg_set_usage): Likewise for first param.
890 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
891 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
892 cast, replacing references to "x" with "call_insn" where
893 appropriate.
894 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
895 rtx_insn *, adding a checked cast.
896
897 2014-09-05 David Malcolm <dmalcolm@redhat.com>
898
899 * output.h (final_scan_insn): Strengthen first param from rtx to
900 rtx_insn *.
901
902 * final.c (final_scan_insn): Likewise, renaming it back from
903 "uncast_insn" to "insn", eliminating the checked cast.
904
905 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
906 "vec" with an rtx_sequence * "seq", taking a copy of
907 "final_sequence", and using methods of "seq" for clarity, and for
908 type-safety in the calls to final_scan_insn.
909 * config/mips/mips.c (mips_output_conditional_branch): Use methods
910 of "final_sequence" for clarity, and for type-safety in the call to
911 final_scan_insn.
912 * config/sh/sh.c (print_slot): Strengthen param from rtx to
913 rtx_sequence * and rename from "insn" to "seq".
914
915 2014-09-05 David Malcolm <dmalcolm@redhat.com>
916
917 * jump.c (delete_related_insns): Introduce a new local "table" by
918 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
919 get_labels method of "table" to simplify access to the labels in
920 the jump table.
921
922 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
923
924 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
925 f_minmaxs, f_minmaxd types.
926
927 2014-09-05 Richard Biener <rguenther@suse.de>
928
929 * cfgloop.c (mark_loop_for_removal): Record former header
930 when ENABLE_CHECKING.
931 * cfgloop.h (strut loop): Add former_header member when
932 ENABLE_CHECKING.
933 * loop-init.c (fix_loop_structure): Sanity check loops
934 marked for removal if they re-appeared.
935
936 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
937
938 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
939 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
940
941 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
942 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
943 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
944 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
945 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
946 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
947 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
948 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
949 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
950 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
951 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
952 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
953 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
954 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
955 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
956 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
957 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
958 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
959 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
960 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
961 with int{32,16,8}_t.
962
963 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
964
965 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
966 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
967 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
968 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
969 Remove temporary __asm__ and reimplement.
970
971 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
972
973 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
974 handling cmge, cmgt, cmeq, cmtst.
975
976 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
977 cmlt, cmgeu, cmgtu, cmtst): Remove.
978
979 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
980 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
981 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
982 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
983
984 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
985
986 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
987 TYPES_TST): Define.
988 (aarch64_fold_builtin): Update pattern for cmtst.
989
990 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
991 Declare.
992
993 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
994
995 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
996 Switch operands, separate out more cases, refactor.
997
998 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
999
1000 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1001 argument; rename old version to...
1002 (aarch64_const_vec_all_same_in_range_p): ...this.
1003 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1004
1005 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1006
1007 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1008
1009 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1010 Remove qualifier_const_pointer, update comment.
1011
1012 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1013
1014 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1015
1016 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1017
1018 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1019 varargs with pointer parameter.
1020 (aarch64_simd_expand_builtin): pass pointer into previous.
1021
1022 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1023
1024 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1025 alus_ext.
1026
1027 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1028
1029 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1030 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1031 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1032 Replace temporary asm with call to builtin.
1033 (vrbit_p8, vrbitq_p8): New functions.
1034
1035 2014-09-05 Richard Biener <rguenther@suse.de>
1036
1037 * cfgloop.c (mark_loop_for_removal): New function.
1038 * cfgloop.h (mark_loop_for_removal): Declare.
1039 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1040 (merge_blocks): Likewise.
1041 (duplicate_block): Likewise.
1042 * except.c (sjlj_emit_dispatch_table): Likewise.
1043 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1044 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1045 (thread_through_loop_header): Likewise.
1046
1047 2014-09-05 Richard Biener <rguenther@suse.de>
1048
1049 PR middle-end/63148
1050 * fold-const.c (try_move_mult_to_index): Remove.
1051 (fold_binary_loc): Do not call it.
1052 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1053 from the base object again.
1054
1055 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1056
1057 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1058 DImode.
1059
1060 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1061
1062 PR target/55701
1063 * config/arm/arm.md (setmem): New pattern.
1064 * config/arm/arm-protos.h (struct tune_params): New fields.
1065 (arm_gen_setmem): New prototype.
1066 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1067 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1068 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1069 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1070 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1071 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1072 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1073 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1074 (arm_const_inline_cost): New function.
1075 (arm_block_set_max_insns): New function.
1076 (arm_block_set_non_vect_profit_p): New function.
1077 (arm_block_set_vect_profit_p): New function.
1078 (arm_block_set_unaligned_vect): New function.
1079 (arm_block_set_aligned_vect): New function.
1080 (arm_block_set_unaligned_non_vect): New function.
1081 (arm_block_set_aligned_non_vect): New function.
1082 (arm_block_set_vect, arm_gen_setmem): New functions.
1083
1084 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1085
1086 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1087
1088 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1089
1090 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1091
1092 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1093
1094 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1095 an rtx.
1096 * valtrack.h: Adjust.
1097
1098 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1099
1100 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1101 an rtx.
1102 (emit_jump_insn_before_noloc): Likewise.
1103 (emit_call_insn_before_noloc): Likewise.
1104 (emit_label_before): Likewise.
1105 (emit_label_after): Likewise.
1106 (emit_insn_before_setloc): Likewise.
1107 (emit_jump_insn_before_setloc): Likewise.
1108 (emit_call_insn_before_setloc): Likewise.
1109 (emit_call_insn_before): Likewise.
1110 * rtl.h: Adjust.
1111
1112 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1113
1114 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1115 rtx_insn *, eliminating a checked cast.
1116
1117 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1118
1119 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1120 const_rtx to const rtx_insn *.
1121 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1122 cast.
1123
1124 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1125
1126 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1127 fixup_args_size_notes.
1128 * expr.c (fixup_args_size_notes): Strengthen first two params from
1129 rtx to rtx_insn *, eliminating a checked cast.
1130 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1131 rtx to rtx_insn *.
1132
1133 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1134
1135 * haifa-sched.c (get_ready_element): Strengthen return type from
1136 rtx to rtx_insn *.
1137 * sched-int.h (get_ready_element): Likewise.
1138
1139 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1140
1141 PR target/63165
1142 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1143 indexed_or_indirect_operand instead of memory_operand.
1144 (floatsi<mode>2_lfiwzx_mem): Ditto.
1145
1146 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1147
1148 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1149 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1150 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1151
1152 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1153
1154 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1155 rtx.
1156 (get_last_nonnote_insn): Likewise.
1157 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1158 * resource.c (find_basic_block): Likewise.
1159 * rtl.h: Adjust.
1160 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1161 const_rtx.
1162
1163 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1164
1165 * genattr.c (main): Within the prototype of insn_latency written
1166 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1167 * genautomata.c (output_internal_maximal_insn_latency_func):
1168 Within the implementation of insn_latency written out to
1169 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1170 eliminating a pair of checked casts.
1171
1172 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1173
1174 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1175 rtx_insn *.
1176
1177 * rtl.h (eh_returnjump_p): Likewise.
1178
1179 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1180
1181 * Makefile.in (TAGS): Handle constructs in timevar.def.
1182
1183 2014-09-04 Guozhi Wei <carrot@google.com>
1184
1185 PR target/62040
1186 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1187 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1188 it into two patterns.
1189 (move_lo_quad_internal_be_<mode>): Likewise.
1190
1191 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1192
1193 * doc/options.texi: Document that Var and Init are required if CPP
1194 is given.
1195 * optc-gen.awk: Require Var and Init if CPP is given.
1196 * common.opt (Wpedantic): Use Init.
1197
1198 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1199
1200 * config/rs6000/rs6000.c (special_handling_values): Add
1201 SH_EXTRACT.
1202 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1203 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1204 as swappable with special handling SH_EXTRACT. Remove
1205 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1206 optimization.
1207 (adjust_extract): New function.
1208 (handle_special_swappables): Add default to case statement; add
1209 case for SH_EXTRACT that calls adjust_extract.
1210 (dump_swap_insn_table): Handle SH_EXTRACT.
1211
1212 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1213
1214 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1215 selection of 0th memory doubleword, regardless of endianness.
1216
1217 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1218
1219 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1220
1221 2014-09-04 Alan Modra <amodra@gmail.com>
1222
1223 PR debug/60655
1224 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1225 can't be output.
1226
1227 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1228
1229 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1230 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1231 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1232 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1233 * doc/tm.texi: Regenerate.
1234 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1235 selection logic to default_dwarf_frame_reg_mode.
1236
1237 2014-09-03 Marek Polacek <polacek@redhat.com>
1238
1239 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1240 by -Wall.
1241
1242 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1243
1244 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1245 the automodified register.
1246
1247 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1248
1249 * output.h (get_some_local_dynamic_name): Declare.
1250 * final.c (some_local_dynamic_name): New variable.
1251 (get_some_local_dynamic_name): New function.
1252 (final_end_function): Clear some_local_dynamic_name.
1253 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1254 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1255 (print_operand): Report an error if '%&' is used inappropriately.
1256 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1257 (get_some_local_dynamic_name_1): Delete.
1258 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1259 (rs6000_get_some_local_dynamic_name): Delete.
1260 (rs6000_get_some_local_dynamic_name_1): Delete.
1261 (print_operand): Report an error if '%&' is used inappropriately.
1262 * config/s390/s390.c (machine_function): Remove some_ld_name.
1263 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1264 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1265 * config/sparc/sparc.c: Include rtl-iter.h.
1266 (machine_function): Remove some_ld_name.
1267 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1268 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1269
1270 2014-09-03 Richard Henderson <rth@redhat.com>
1271
1272 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1273 (aarch64_popwb_pair_reg): Remove.
1274 (aarch64_set_frame_expr): Remove.
1275 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1276 the restore ops performed by the insns generated.
1277 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1278 insn. Perform the calls_eh_return addition later; do not attempt to
1279 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1280 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1281 special markup at all. Load cfun->machine->frame.hard_fp_offset
1282 into a local variable.
1283 (aarch64_frame_pointer_required): Don't check calls_alloca.
1284
1285 2014-09-03 Richard Biener <rguenther@suse.de>
1286
1287 * opts.c (default_options_optimization): Adjust
1288 max-combine-insns to 2 for -Og.
1289
1290 2014-09-03 Martin Jambor <mjambor@suse.cz>
1291
1292 PR ipa/62015
1293 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1294 pass-trough jump functions correctly.
1295
1296 2014-09-03 Martin Jambor <mjambor@suse.cz>
1297
1298 PR ipa/61986
1299 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1300 created replacements in ascending order of offsets.
1301 (known_aggs_to_agg_replacement_list): Likewise.
1302
1303 2014-09-03 Martin Liska <mliska@suse.cz>
1304
1305 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1306 is set to set uninitialized value for vnresult.
1307
1308 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1309
1310 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1311 for TARGET_MUST_PASS_IN_STACK.
1312
1313 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1314
1315 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1316 for TARGET_ARG_PARTIAL_BYTES.
1317
1318 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1319
1320 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1321 instructions for varargs implementation.
1322 (nds32_expand_epilogue): Emit stack adjustment instructions for
1323 varargs implementation.
1324
1325 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1326
1327 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1328 optimization detection.
1329
1330 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1331
1332 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1333 arguments.
1334 (nds32_function_arg_advance): Deal with nameless arguments.
1335 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1336 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1337 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1338
1339 2014-09-03 Richard Biener <rguenther@suse.de>
1340
1341 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1342 (struct bb_bitmap_sets): Remove deferred member.
1343 (BB_DEFERRED): Remove.
1344 (defer_or_phi_translate_block): Remove.
1345 (compute_antic_aux): Remove deferring of blocks, assert
1346 proper iteration order.
1347 (compute_antic): Do not set BB_DEFERRED.
1348 (eliminate): Allocate el_avail of proper size initially.
1349
1350 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1351
1352 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1353 according to the value of crtl->args.pretend_args_size.
1354
1355 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1356
1357 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1358 varargs information.
1359
1360 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1361
1362 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1363 implementation for TARGET_SETUP_INCOMING_VARARGS.
1364 (nds32_strict_argument_naming): Refine comment.
1365 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1366 Define for future implementation.
1367
1368 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
1369
1370 * config/i386/adxintrin.h (_subborrow_u32): New.
1371 (_addcarry_u32): Ditto.
1372 (_subborrow_u64): Ditto.
1373 (_addcarry_u64): Ditto.
1374 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1375 IX86_BUILTIN_SBB64.
1376 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1377 __builtin_ia32_sbb_u64
1378
1379 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1380
1381 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1382 GPR-specific stuff.
1383 (nds32_function_arg_advance): Likewise.
1384 (nds32_init_cumulative_args): Likewise.
1385 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1386 (NDS32_FIRST_GPR_REGNUM): Define.
1387 (NDS32_LAST_GPR_REGNUM): Define.
1388 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1389 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1390 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1391 (machine_function): Use GRP-specific stuff.
1392
1393 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1394
1395 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1396 (nds32_expand_epilogue): Likewise.
1397 (nds32_expand_prologue_v3push): Likewise.
1398 (nds32_expand_epilogue_v3pop): Likewise.
1399
1400 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1401
1402 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1403 v3push/v3pop for variadic function.
1404 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1405
1406 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1407
1408 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1409 Check rtx for varargs implementation.
1410 (nds32_output_stack_pop): Likewise.
1411 * config/nds32/nds32-protos.h: Have a rtx argument for
1412 nds32_output_stack_push and nds32_output_stack_pop.
1413 * config/nds32/nds32.md: Likewise.
1414
1415 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1416
1417 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1418 to check if FUNC is an interrupt service routine.
1419 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1420
1421 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1422
1423 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1424 arguments implementation.
1425
1426 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1427
1428 * config/nds32/nds32-predicates.c
1429 (nds32_valid_stack_push_pop): Rename to ...
1430 (nds32_valid_stack_push_pop_p): ... this.
1431 * config/nds32/nds32-protos.h: Likewise.
1432 * config/nds32/predicates.md: Likewise.
1433
1434 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1435
1436 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1437 (nds32_emit_stack_v3push): ... this.
1438 (nds32_gen_stack_v3pop): Rename to ...
1439 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1440 information.
1441
1442 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1443
1444 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1445 (nds32_emit_stack_push_multiple): ... this.
1446 (nds32_gen_stack_pop_multiple): Rename to ...
1447 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1448 information.
1449
1450 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1451
1452 PR target/61078
1453 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1454 and add a second splitter to handle the remaining cases.
1455
1456 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1457
1458 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1459
1460 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1461
1462 * cfgexpand.c (label_rtx_for_bb): Change type to
1463 hash_map<basic_block, rtx_code_label *> *.
1464 (expand_gimple_basic_block): Adjust.
1465 (pass_expand::execute): Likewise.
1466
1467 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1468
1469 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1470 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1471 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1472 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1473 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1474 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1475 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1476 of rtx.
1477
1478 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1479
1480 * alloc-pool.c: Include coretypes.h.
1481 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1482 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1483 hash_set instead of htab.
1484 * ggc-page.c (in_gc): New variable.
1485 (ggc_free): Do nothing if a collection is taking place.
1486 (ggc_collect): Set in_gc appropriately.
1487 * ggc.h (gt_ggc_mx(const char *)): New function.
1488 (gt_pch_nx(const char *)): Likewise.
1489 (gt_ggc_mx(int)): Likewise.
1490 (gt_pch_nx(int)): Likewise.
1491 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1492 (hash_map::hash_entry::pch_nx): Likewise.
1493 (hash_map::hash_entry::pch_nx_helper): Likewise.
1494 (hash_map::hash_map): Adjust.
1495 (hash_map::create_ggc): New function.
1496 (gt_ggc_mx): Likewise.
1497 (gt_pch_nx): Likewise.
1498 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1499 (default_hashset_traits::pch_nx): Likewise.
1500 (hash_set::hash_entry::ggc_mx): Likewise.
1501 (hash_set::hash_entry::pch_nx): Likewise.
1502 (hash_set::hash_entry::pch_nx_helper): Likewise.
1503 (hash_set::hash_set): Adjust.
1504 (hash_set::create_ggc): New function.
1505 (hash_set::elements): Likewise.
1506 (gt_ggc_mx): Likewise.
1507 (gt_pch_nx): Likewise.
1508 * hash-table.h (hash_table::hash_table): Adjust.
1509 (hash_table::m_ggc): New member.
1510 (hash_table::~hash_table): Adjust.
1511 (hash_table::expand): Likewise.
1512 (hash_table::empty): Likewise.
1513 (gt_ggc_mx): New function.
1514 (hashtab_entry_note_pointers): Likewise.
1515 (gt_pch_nx): Likewise.
1516
1517 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1518
1519 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
1520 built-in definition.
1521 (XVCVUXDDP_SCALE): Likewise.
1522 (XVCVDPSXDS_SCALE): Likewise.
1523 (XVCVDPUXDS_SCALE): Likewise.
1524 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1525 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1526 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1527 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1528 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1529 prototype.
1530 * config/rs6000/rs6000.c (real.h): New include.
1531 (rs6000_scale_v2df): New function.
1532 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1533 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1534 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1535 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1536 (vsx_xvcvsxddp_scale): New define_expand.
1537 (vsx_xvcvsxddp): New define_insn.
1538 (vsx_xvcvuxddp_scale): New define_expand.
1539 (vsx_xvcvuxddp): New define_insn.
1540 (vsx_xvcvdpsxds_scale): New define_expand.
1541 (vsx_xvcvdpsxds): New define_insn.
1542 (vsx_xvcvdpuxds_scale): New define_expand.
1543 (vsx_xvcvdpuxds): New define_insn.
1544 * doc/extend.texi (vec_ctf): Add new prototypes.
1545 (vec_cts): Likewise.
1546 (vec_ctu): Likewise.
1547 (vec_splat): Likewise.
1548 (vec_div): Likewise.
1549 (vec_mul): Likewise.
1550
1551 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1552
1553 PR target/62275
1554 * config/arm/neon.md
1555 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1556 <v_cmp_result>): New pattern.
1557 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1558 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1559 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1560 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1561 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1562 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1563
1564 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1565
1566 PR target/62275
1567 * config/arm/iterators.md (FIXUORS): New code iterator.
1568 (VCVT): New int iterator.
1569 (su_optab): New code attribute.
1570 (su): Likewise.
1571 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1572
1573 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1574
1575 * config/aarch64/predicates.md (aarch64_comparison_operation):
1576 New special predicate.
1577 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1578 aarch64_comparison_operation instead of matching an operator.
1579 Update operand numbers.
1580 (csinc3<mode>_insn): Likewise.
1581 (*csinv3<mode>_insn): Likewise.
1582 (*csneg3<mode>_insn): Likewise.
1583 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1584 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1585 Return -1 instead of aborting on invalid condition codes.
1586 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1587 to assert that the returned condition code is valid.
1588 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1589
1590 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1591
1592 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1593 tree.def, and gimple.def
1594
1595 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1596 Balaji V. Iyer <balaji.v.iyer@intel.com>
1597 Igor Zamyatin <igor.zamyatin@intel.com>
1598
1599 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1600 (__cilkrts_cilk_for_64): Likewise.
1601 * cilk-common.c (declare_cilk_for_builtin): New function.
1602 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1603 __cilkrts_cilk_for_64 bultins.
1604 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1605 CILK_TI_F_LOOP_64.
1606 (cilk_for_32_fndecl): New define.
1607 (cilk_for_64_fndecl): Likewise.
1608 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1609 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1610 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1611 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1612 GF_OMP_FOR_COMBINED_INTO.
1613 * gimplify.c (gimplify_scan_omp_clauses): Added
1614 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1615 (gimplify_adjust_omp_clauses): Ditto.
1616 (gimplify_omp_for): Added CILK_FOR case.
1617 (gimplify_expr): Ditto.
1618 * omp-low.c: Include cilk.h.
1619 (extract_omp_for_data): Set appropriate kind for
1620 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1621 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1622 (create_omp_child_function_name): Added second argument to handle
1623 cilk_for case.
1624 (cilk_for_check_loop_diff_type): New function.
1625 (expand_cilk_for_call): Likewise.
1626 (expand_cilk_for): Likewise.
1627 (create_omp_child_function): Set cilk_for_count; handle the cases when
1628 it is true; call create_omp_child_function_name with second argument.
1629 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1630 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1631 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1632 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1633 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1634 (convert_local_omp_clauses): Ditto.
1635 * tree-pretty-print.c (dump_omp_clause): Added
1636 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1637 (dump_generic_node): Added CILK_FOR case.
1638 * tree.c (omp_clause_num_ops): New element
1639 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1640 (omp_clause_code_name): New element _Cilk_for_count_.
1641 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1642 * tree.def: Add tree code for CILK_FOR.
1643
1644 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1645
1646 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1647 (ppc403-compare): Add "exts with dot" case.
1648 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1649 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1650 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1651 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1652 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1653 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1654 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1655 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1656 cell-cmp-microcoded): Similarly.
1657 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1658 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1659 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1660 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1661 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1662 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1663 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1664 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1665 (power6-compare): Add "exts with dot" case.
1666 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1667 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1668 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1669
1670 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1671 if avoiding Cell microcode.
1672 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1673 (is_cracked_insn): Ditto.
1674 (insn_must_be_first_in_group): Ditto.
1675 * config/rs6000/rs6000.md (dot): Adjust comment.
1676 (cell_micro): Handle exts+dot.
1677 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1678 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1679 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1680 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1681 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1682 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1683 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1684
1685 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1686
1687 * config/rs6000/rs6000.md (QHSI): Delete.
1688 (EXTQI, EXTHI, EXTSI): New mode iterators.
1689 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1690 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1691 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1692 9 anonymous instructions, and 8 splitters): Delete.
1693 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1694 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1695 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1696 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1697 *zero_extendsi<mode>2_dot2): New.
1698
1699 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1700
1701 * config/rs6000/rs6000.md (any_extend): New code iterator.
1702 (u, su): New code attributes.
1703 (dmode, DMODE): New mode attributes.
1704 (<su>mul<mode>3_highpart): New.
1705 (*<su>mul<mode>3_highpart): New.
1706 (<su>mulsi3_highpart_le): New.
1707 (<su>muldi3_highpart_le): New.
1708 (<su>mulsi3_highpart_64): New.
1709 (<u>mul<mode><dmode>3): New.
1710 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1711 splitters): Delete.
1712 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1713 splitters): Delete.
1714
1715 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1716
1717 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1718 *mulsi3_internal2, and two splitters): Delete.
1719 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1720 Delete.
1721 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1722
1723 2014-09-02 Richard Biener <rguenther@suse.de>
1724
1725 PR tree-optimization/62695
1726 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1727 vector truncate.
1728
1729 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1730
1731 PR target/62312
1732 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1733
1734 2014-09-01 Andi Kleen <ak@linux.intel.com>
1735
1736 * file-find.c (add_prefix_begin): Add.
1737 (do_add_prefix): Rename from add_prefix with first argument.
1738 (add_prefix): Add new wrapper.
1739 * file-find.h (add_prefix_begin): Add.
1740 * gcc-ar.c (main): Support -B option.
1741
1742 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
1743
1744 * genemit.c: Include dumpfile.h.
1745 (gen_split): Print name of splitter function to dump file.
1746
1747 2014-09-01 Richard Biener <rguenther@suse.de>
1748
1749 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
1750 Use stack auto_vecs for constraint expressions.
1751 (find_func_aliases_for_call): Likewise.
1752 (find_func_aliases): Likewise.
1753 (find_func_clobbers): Likewise.
1754
1755 2014-09-01 Richard Biener <rguenther@suse.de>
1756
1757 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
1758 operands vector in most cases. Remove redundant code.
1759
1760 2014-09-01 Olivier Hainque <hainque@adacore.com>
1761
1762 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
1763 $WIND_BASE instead of designating a harcoded arbitrary home dir.
1764 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
1765
1766 2014-09-01 Richard Biener <rguenther@suse.de>
1767
1768 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
1769 copy_reference_ops_from_call, vn_nary_op_compute_hash,
1770 vn_reference_compute_hash, vn_reference_insert): Remove.
1771 (vn_reference_lookup_call): New function.
1772 * tree-ssa-sccvn.c (vn_reference_compute_hash,
1773 copy_reference_ops_from_ref, copy_reference_ops_from_call,
1774 vn_reference_insert, vn_nary_op_compute_hash): Make static.
1775 (create_reference_ops_from_call): Remove.
1776 (vn_reference_lookup_3): Properly update shared_lookup_references.
1777 (vn_reference_lookup_pieces): Assert that we updated
1778 shared_lookup_references properly.
1779 (vn_reference_lookup): Likewise.
1780 (vn_reference_lookup_call): New function.
1781 (visit_reference_op_call): Use it. Avoid re-building the
1782 reference ops.
1783 (visit_reference_op_load): Remove redundant lookup.
1784 (visit_reference_op_store): Perform special tail-merging work
1785 only when possibly doing tail-merging.
1786 (visit_use): Likewise.
1787 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
1788
1789 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1790
1791 PR target/62025
1792 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
1793 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
1794 (find_inc): Revert 2014-08-13 change.
1795
1796 2014-09-01 Marek Polacek <polacek@redhat.com>
1797
1798 PR middle-end/61903
1799 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
1800 Change the type of V to unsigned HOST_WIDE_INT.
1801
1802 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1803
1804 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
1805 the size of byte markers.
1806 (do_shift_rotate): Fix confusion between host, target and marker byte
1807 size.
1808 (verify_symbolic_number_p): Likewise.
1809 (find_bswap_or_nop_1): Likewise.
1810 (find_bswap_or_nop): Likewise.
1811
1812 2014-09-01 Olivier Hainque <hainque@adacore.com>
1813
1814 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
1815 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
1816
1817 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1818
1819 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
1820 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
1821 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
1822
1823 2014-09-01 Yury Gribov <y.gribov@samsung.com>
1824
1825 PR sanitizer/61897
1826 PR sanitizer/62140
1827 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
1828 (build_check_stmt): Likewise.
1829 (instrument_strlen_call): Likewise.
1830 (asan_expand_check_ifn): Likewise and fix types.
1831 (maybe_cast_to_ptrmode): New function.
1832
1833 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1834
1835 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
1836
1837 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1838
1839 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
1840
1841 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
1842
1843 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
1844 prefix to function labels when generating fast indirect calls.
1845
1846 2014-08-30 David Malcolm <dmalcolm@redhat.com>
1847
1848 PR bootstrap/62304
1849
1850 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
1851 param back from rtx_insn * to rtx. Rename param from "label" to
1852 "label_or_return", reintroducing "label" as an rtx_insn * after
1853 we've ensured it's not a RETURN.
1854 (first_active_target_insn): Likewise for return type and param;
1855 add a checked cast to rtx_insn * once we've ensured "insn" is not
1856 a RETURN.
1857 (steal_delay_list_from_target): Convert param "pnew_thread" back
1858 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
1859 with JUMP_LABEL.
1860 (own_thread_p): Convert param "thread" back from an rtx_insn * to
1861 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
1862 cast once we've established we're not dealing with a RETURN,
1863 renaming subsequent uses of "thread" to "thread_insn".
1864 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
1865 to JUMP_LABEL.
1866 (follow_jumps): Convert return type and param "label" from
1867 rtx_insn * back to rtx. Move initialization of "value" to after
1868 the handling for ANY_RETURN_P, adding a checked cast there to
1869 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
1870 rename to "this_label_or_return", reintroducing "this_label" as
1871 an rtx_insn * once we've handled the case where it could be an
1872 ANY_RETURN_P.
1873 (fill_slots_from_thread): Rename param "thread" to
1874 "thread_or_return", converting from an rtx_insn * back to an rtx.
1875 Reintroduce name "thread" as an rtx_insn * local with a checked
1876 cast once we've handled the case of it being an ANY_RETURN_P.
1877 Convert local "new_thread" from an rtx_insn * back to an rtx.
1878 Add a checked cast when assigning to "trial" from "new_thread".
1879 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
1880 checked cast to rtx_insn * from "new_thread" when invoking
1881 get_label_before.
1882 (fill_eager_delay_slots): Convert locals "target_label",
1883 "insn_at_target" from rtx_insn * back to rtx.
1884 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
1885 (relax_delay_slots): Convert locals "trial", "target_label" from
1886 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
1887 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
1888 invoking update_block.
1889 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
1890 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
1891
1892 * resource.h (mark_target_live_regs): Undo erroneous conversion
1893 of second param of r214693, converting it back from rtx_insn * to
1894 rtx, since it could be a RETURN.
1895
1896 * resource.c (find_dead_or_set_registers): Similarly, convert
1897 param "jump_target" back from an rtx_insn ** to an rtx *, as we
1898 could be writing back a RETURN. Rename local rtx_insn * "next" to
1899 "next_insn", and introduce "lab_or_return" as a local rtx,
1900 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
1901 (mark_target_live_regs): Undo erroneous conversion
1902 of second param of r214693, converting it back from rtx_insn * to
1903 rtx, since it could be a RETURN. Rename it from "target" to
1904 "target_maybe_return", reintroducing the name "target" as a local
1905 rtx_insn * with a checked cast, after we've handled the case of
1906 ANY_RETURN_P.
1907
1908 2014-08-29 DJ Delorie <dj@redhat.com>
1909
1910 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
1911 pointer size up to a power of two.
1912 * defaults.h (DWARF2_ADDR_SIZE): Round up.
1913 (POINTER_SIZE_UNITS): New, rounded up value.
1914 * dwarf2asm.c (size_of_encoded_value): Use it.
1915 (dw2_output_indirect_constant_1): Likewise.
1916 * expmed.c (init_expmed_one_conv): We now know the sizes of
1917 partial int modes.
1918 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
1919 * optabs.c (expand_float): Use precision, not size.
1920 (expand_fix): Likewise.
1921 * simplify-rtx (simplify_unary_operation_1): Likewise.
1922 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1923 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
1924 (default_assemble_integer) Likewise.
1925 (dump_tm_clone_pairs): Likewise.
1926 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
1927 * var-tracking.c (adjust_mems): Allow partial-int modes also.
1928 (prepare_call_arguments): Likewise.
1929 * stor-layout.c (finalize_type_size): Preserve precision.
1930 (layout_type): Use precision, not size.
1931
1932 * expr.c (convert_move): If the target has an explicit converter,
1933 use it.
1934
1935 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1936
1937 * gdbinit.in: Skip various inline functions in rtl.h when
1938 stepping.
1939
1940 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
1941
1942 PR bootstrap/62301
1943 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
1944
1945 2014-08-29 Richard Biener <rguenther@suse.de>
1946
1947 PR tree-optimization/62291
1948 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
1949 exactly the vector size needed and use quick_push.
1950 (phi_translate_1): Adjust comment.
1951 (valid_in_sets): Remove block argument and remove pointless
1952 checking of NAMEs.
1953 (dependent_clean): Adjust for removal of block argument.
1954 (clean): Likewise.
1955 (compute_antic_aux): Likewise.
1956 (compute_partial_antic_aux): Likewise.
1957
1958 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1959 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1960 Anna Tikhonova <anna.tikhonova@intel.com>
1961 Ilya Tocar <ilya.tocar@intel.com>
1962 Andrey Turetskiy <andrey.turetskiy@intel.com>
1963 Ilya Verbin <ilya.verbin@intel.com>
1964 Kirill Yukhin <kirill.yukhin@intel.com>
1965 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1966
1967 * config/i386/sse.md
1968 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
1969 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
1970 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
1971 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
1972
1973 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1974 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1975 Anna Tikhonova <anna.tikhonova@intel.com>
1976 Ilya Tocar <ilya.tocar@intel.com>
1977 Andrey Turetskiy <andrey.turetskiy@intel.com>
1978 Ilya Verbin <ilya.verbin@intel.com>
1979 Kirill Yukhin <kirill.yukhin@intel.com>
1980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1981
1982 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
1983 * config/i386/sse.md
1984 (define_mode_iterator VI4_128_8_256): New.
1985 (define_mode_iterator VI2_128_4_256): Ditto.
1986 (define_mode_iterator PMOV_DST_MODE): Rename into
1987 (define_mode_iterator PMOV_DST_MODE_1): this.
1988 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
1989 Use PMOV_DST_MODE_1 mode iterator.
1990 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1991 Ditto.
1992 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1993 Ditto.
1994 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
1995 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
1996 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
1997 (define_mode_iterator PMOV_DST_MODE_2): New.
1998 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
1999 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2000 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2001 Ditto.
2002 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2003 (define_mode_attr pmov_dst_3): Ditto.
2004 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2005 (define_mode_attr pmov_suff_3): Ditto.
2006 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2007 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2008 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2009 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2010 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2011 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2012 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2013 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2014 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2015 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2016 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2017 (define_mode_attr pmov_dst_4): Ditto.
2018 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2019 (define_mode_attr pmov_suff_4): Ditto.
2020 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2021 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2022 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2023 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2024 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2025 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2026 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2027 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2028 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2029 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2030 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2031
2032 2014-08-29 Richard Biener <rguenther@suse.de>
2033
2034 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2035 NON_LVALUE_EXPR in gimple.
2036
2037 2014-08-29 Richard Biener <rguenther@suse.de>
2038
2039 PR middle-end/62292
2040 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2041 from previous refactoring.
2042 (gimple_fold_builtin_strncpy): Likewise.
2043
2044 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2045
2046 PR bootstrap/62300
2047 * function.c (assign_parm_setup_reg): Remove erroneous checked
2048 cast to rtx_insn * on result of gen_extend_insn in favor of
2049 introducing a new local rtx "pat".
2050
2051 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2052
2053 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2054 to silence warning.
2055 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2056
2057 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2058
2059 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2060 (next_insn): Likewise.
2061 * emit-rtl.c (next_insn): Likewise.
2062 (previous_insn): Likewise.
2063 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2064 "insn" and "next" from rtx to rtx_insn *.
2065 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2066 "insn", "insn1", "vliw_start", "prologue_end_note",
2067 "last_insn_in_packet".
2068
2069 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2070
2071 * shrink-wrap.h (active_insn_between): Strengthen both params from
2072 rtx to rtx_insn *.
2073 * function.c (active_insn_between): Likewise.
2074
2075 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2076
2077 * genattr.c (main): When writing out insn-attr.h, strengthen param
2078 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2079 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2080 writing out the definition of dfa_clear_single_insn_cache to the
2081 generated insn-automata.c
2082
2083 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2084
2085 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2086 rtx to rtx_insn *.
2087 (incr_ticks_for_insn): Likewise.
2088 (init_resource_info): Likewise.
2089
2090 * resource.c (init_resource_info): Likewise.
2091 (clear_hashed_info_for_insn): Likewise.
2092 (incr_ticks_for_insn): Likewise.
2093
2094 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2095 rtx to rtx_insn *.
2096 (steal_delay_list_from_target): Use methods of "seq".
2097 (try_merge_delay_insns): Use methods of "merged_insns".
2098 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2099 (reorg_redirect_jump): Likewise for param "jump".
2100
2101 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2102
2103 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2104 rtx to rtx_insn *.
2105 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2106 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2107 "set_insn".
2108 (s390_mainpool_finish): In three places, split out a local rtx
2109 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2110 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2111 and split another local rtx "insn" out into rtx "pat" and
2112 rtx_insn * "insn".
2113 * config/sh/sh.c (output_branchy_insn): Rather than working
2114 directly on operands[9], introduce local rtx_code_label *
2115 variables named "lab" in two places, working on them, and then
2116 assigning them to operands[9], so that the intervening operations
2117 are known by the type system to be on insns.
2118
2119 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2120
2121 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2122 const rtx_insn *.
2123
2124 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2125 in invocation of INSN_HAS_LOCATION.
2126
2127 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2128
2129 * config/rs6000/altivec.h (vec_xl): New #define.
2130 (vec_xst): Likewise.
2131 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2132 (XXSPLTD_V2DI): Likewise.
2133 (DIV_V2DI): Likewise.
2134 (UDIV_V2DI): Likewise.
2135 (MUL_V2DI): Likewise.
2136 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2137 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2138 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2139 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2140 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2141 (UNSPEC_VSX_DIVSD): Likewise.
2142 (UNSPEC_VSX_DIVUD): Likewise.
2143 (UNSPEC_VSX_MULSD): Likewise.
2144 (vsx_mul_v2di): New insn-and-split.
2145 (vsx_div_v2di): Likewise.
2146 (vsx_udiv_v2di): Likewise.
2147 (vsx_xxspltd_<mode>): New insn.
2148
2149 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2150
2151 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2152 NEXT_INSN.
2153 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2154 (NEXT_INSN): Likewise.
2155 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2156 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2157 const rtx_insn *.
2158 (no_labels_between_p): Likewise for both params.
2159
2160 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2161 cast when using NEXT_INSN on operands[2].
2162 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2163 "insn" from rtx to rtx_insn *, adding a checked cast.
2164 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2165 rtx_insn *.
2166 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2167 for third param.
2168 (arc_text_label): Likewise for param "insn".
2169 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2170 "insn".
2171 (arc_ccfsm_record_condition): Likewise for param "jump".
2172 (arc_text_label): Likewise for local "label".
2173 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2174 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2175 a method for typesafety. Add a checked cast.
2176 * config/arc/constraints.md (Clb): Add a checked cast when getting
2177 the CODE_LABEL from a LABEL_REF.
2178 * config/arm/arm.c (require_pic_register): Strengthen locals
2179 "seq", "insn" from rtx to rtx_insn *.
2180 (create_fix_barrier): Likewise for locals "selected", "next".
2181 (thumb1_reorg): Likewise for locals "prev", "insn".
2182 (arm_expand_prologue): Likewise for local "last".
2183 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2184 operands[0].
2185 (thumb2_output_casesi): Likewise for operands[2].
2186 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2187 strengthen local "insn" from rtx to rtx_insn *.
2188 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2189 type and param "insn".
2190 (find_prev_insn_start): Likewise.
2191 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2192 "prev".
2193 (gen_one_bundle): Likewise for loal "t".
2194 (find_load): Likewise for param "insn".
2195 (workaround_speculation): Likewise for locals "insn", "next",
2196 "target", "next_tgt".
2197 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2198 and for locals "insn", "within", "last".
2199 (count_unit_reqs): Likewise for params "head", "tail" and local
2200 "insn".
2201 (try_rename_operands): Likewise for params "head", "tail".
2202 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2203 (struct c6x_sched_context): Likewise for fields
2204 "last_scheduled_insn", "last_scheduled_iter0".
2205 (init_sched_state): Replace NULL_RTX with NULL.
2206 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2207 to rtx_insn *.
2208 (undo_split_delayed_nonbranch): Likewise for param and for local
2209 "prev".
2210 (conditionalize_after_sched): Likewise for local "insn".
2211 (bb_earliest_end_cycle): Likewise.
2212 (filter_insns_above): Likewise for locals "insn", "next".
2213 (hwloop_optimize): Remove redundant checked cast.
2214 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2215 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2216 NULL_RTX with NULL.
2217 (cris_simple_epilogue): Likewise.
2218 (cris_expand_prologue): Likewise.
2219 (cris_expand_epilogue): Likewise.
2220 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2221 local "insn" from rtx to rtx_insn *.
2222 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2223 (struct frv_packet_group): Likewise for the elements within array
2224 fields "insns", "sorted", and for field "nop".
2225 (frv_packet): Likewise for the elements within array field
2226 "insns".
2227 (frv_add_insn_to_packet): Likewise for param "insn".
2228 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2229 "last".
2230 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2231 (frv_sort_insn_group_1): Likewise for local "insn".
2232 (frv_optimize_membar_local): Likewise.
2233 (frv_align_label): Likewise for locals "x", "last", "barrier",
2234 "label".
2235 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2236 local.
2237 (ia64_sched_init): Likewise for local "insn".
2238 (scheduled_good_insn): Likewise for param "last".
2239 (struct _ia64_sched_context): Likewise for field
2240 "last_scheduled_insn".
2241 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2242 (struct bundle_state): Likewise for field "insn".
2243 (issue_nops_and_insn): Likewise for param "insn".
2244 (get_next_important_insn): Likewise for return type and both
2245 params.
2246 (ia64_add_bundle_selector_before): Likewise for param "insn".
2247 (bundling): Likewise for params "prev_head_insn", "tail" and
2248 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2249 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2250 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2251 Strengthen final param from rtx to rtx_insn *.
2252 (iq2000_move_1word): Likewise for second param.
2253 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2254 param "cur_insn" and local "next_insn".
2255 (iq2000_move_1word): Likewise for param "insn".
2256 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2257 casts when using NEXT_INSN on operands[1].
2258 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2259 "insn" from rtx to rtx_insn *.
2260 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2261 "x", introducing local rtx_insn * "insn" for when working with the
2262 CODE_LABEL of the LABEL_REF.
2263 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2264 rtx_insn *.
2265 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2266 param.
2267 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2268 type.
2269 (conditionalize_block): Likewise for return type and param.
2270 (mcore_is_dead): Likewise for param "first" and local "insn".
2271 (emit_new_cond_insn): Likewise for return type.
2272 (conditionalize_block): Likewise for return type, param, and
2273 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2274 "newinsn".
2275 (conditionalize_optimization): Likewise for local "insn".
2276 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2277 using NEXT_INSN.
2278 * config/microblaze/microblaze.md: Add checked casts when using
2279 NEXT_INSN.
2280 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2281 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2282 and rtx_insn * "insn".
2283 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2284 checked cast when using NEXT_INSN on operands[2].
2285 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2286 local "insn" from rtx to rtx_insn *.
2287 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2288 Likewise.
2289 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2290 Add a checked cast when using NEXT_INSN on operands[1].
2291 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2292 rtx to rtx_insn *.
2293 (pa_output_cbranch): Likewise for final param.
2294 (pa_output_lbranch): Likewise for second param.
2295 (pa_output_bb): Likewise for third param.
2296 (pa_output_bvb): Likewise.
2297 (pa_output_dbra): Likewise for second param.
2298 (pa_output_movb): Likewise.
2299 (pa_output_parallel_movb): Likewise.
2300 (pa_output_parallel_addb): Likewise.
2301 (pa_output_millicode_call): Likewise for first param.
2302 (pa_output_mul_insn): Likewise for second param.
2303 (pa_output_div_insn): Likewise for third param.
2304 (pa_output_mod_insn): Likewise for second param.
2305 (pa_jump_in_call_delay): Likewise for param.
2306 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2307 (pa_output_div_insn): Likewise.
2308 (pa_output_mod_insn): Likewise.
2309 (pa_output_cbranch): Likewise.
2310 (pa_output_lbranch): Likewise.
2311 (pa_output_bb): Likewise.
2312 (pa_output_bvb): Likewise.
2313 (pa_output_dbra): Likewise.
2314 (pa_output_movb): Likewise.
2315 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2316 to simplify and for typesafety.
2317 (pa_output_call): Use method of rtx_sequence *.
2318 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2319 (pa_jump_in_call_delay): Likewise.
2320 (pa_output_parallel_movb): Likewise.
2321 (pa_output_parallel_addb): Likewise.
2322 (pa_following_call): Likewise.
2323 (pa_combine_instructions): Likewise for locals "anchor",
2324 "floater".
2325 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2326 locals "start", "end".
2327 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2328 param "insn" and local "local_insn".
2329 (picochip_final_prescan_insn): Likewise for local "local_insn".
2330 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2331 local "insn".
2332 (uses_TOC): Likewise.
2333 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2334 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2335 splitting out to more tightly-scoped locals, 3 as rtx and one as
2336 rtx_insn *.
2337 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2338 to rtx_insn *.
2339 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2340 where needed.
2341 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2342 to rtx_insn *.
2343 (fixup_addr_diff_vecs): Likewise.
2344 (reg_unused_after): Likewise for param 2.
2345 (sh_can_redirect_branch): Likewise for both params.
2346 (check_use_sfunc_addr): Likewise for param 1.
2347 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2348 (find_barrier): Likewise for local "last_got".
2349 (gen_block_redirect): Likewise for return type, param "jump" and
2350 locals "prev", "scan", "next", "insn".
2351 (struct far_branch): Likewise for fields "near_label",
2352 "insert_place", "far_label".
2353 (gen_far_branch): Likewise for local "jump".
2354 (fixup_addr_diff_vecs): Likewise for param "first" and locals
2355 "insn", "prev".
2356 (barrier_align): Likewise for param and for locals "prev", "x".
2357 Introduce local rtx_sequence * "prev_seq" and use insn method for
2358 typesafety and clarity.
2359 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2360 (get_dest_uid): Likewise for local "dest".
2361 (split_branches): Likewise for locals "next", "beyond", "label",
2362 "block", "far_label". Add checked casts when assigning to
2363 bp->far_label and "far_label".
2364 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2365 (sequence_insn_p): Likewise.
2366 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
2367 more loop-scoped rtx "insn" when walking LABEL_REFS.
2368 (sh_can_redirect_branch): Strengthen both params from rtx to
2369 rtx_insn *.
2370 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
2371 new local rtx_sequence * "seq" via a dyn_cast, and use a method
2372 for clarity and typesafety.
2373 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2374 "insn" from rtx to rtx_insn *.
2375 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2376 when using NEXT_INSN on the CODE_LABEL in operands[2].
2377 (define_insn "casesi_worker_2"): Likewise.
2378 (define_insn "casesi_shift_media"): Likewise.
2379 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2380 operands[3].
2381 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2382 Strengthen field "insn" from rtx to rtx_insn *.
2383 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2384 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2385 param "start_insn" and local "start_insn".
2386 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2387 field "insn".
2388 (find_set_of_reg_bb): Likewise for param "insn".
2389 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2390 (trace_reg_uses): Likewise for param "start_insn".
2391 (sh_treg_combine::cbranch_trace): Likewise for field
2392 "cbranch_insn".
2393 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2394 param "insn".
2395 (sh_treg_combine::record_set_of_reg): Likewise for param
2396 "start_insn" and local "i".
2397 (sh_treg_combine::can_remove_cstore): Likewise for local
2398 "prev_insn".
2399 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2400 "insn".
2401 (sh_treg_combine::execute): Likewise for local "i".
2402 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2403 param.
2404 (sparc_check_64): Likewise for second param.
2405 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2406 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2407 dyn_cast, using its insn method for typesafety and clarity.
2408 (empty_delay_slot): Strengthen param "insn" from rtx to
2409 rtx_insn *.
2410 (set_extends): Likewise.
2411 (sparc_check_64): Likewise.
2412 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2413 for locals "seq", "last_insn".
2414 (combine_bnp): Likewise for param "insn".
2415 (xstormy16_reorg): Likewise for local "insn".
2416 * config/v850/v850.c (substitute_ep_register): Likewise for params
2417 "first_insn", "last_insn" and local "insn".
2418 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2419 elements of "regs" array, and local "insn".
2420 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2421 * final.c (final_sequence): Strengthen this global from rtx to
2422 rtx_sequence *.
2423 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2424 rtx_insn *.
2425 (final_scan_insn): Update assignment to "final_sequence" to be
2426 from "seq", the cast version of "body", for type-safety.
2427 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2428 "insns" from rtx to rtx_insn *.
2429 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2430 * genattr.c (main): When writing out generated insn-attr.h,
2431 strengthen params 1 and 3 of eligible_for_delay,
2432 eligible_for_annul_true, eligible_for_annul_false from rtx to
2433 rtx_insn *.
2434 * genattrtab.c (write_eligible_delay): Likewise when writing out
2435 generated insn-attrtab.c; also local "insn" the generated
2436 functions.
2437 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2438 to rtx_insn *.
2439 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2440 "start_label" from rtx to rtx_insn *.
2441 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2442 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2443 "insns" and local "insn".
2444 (validate_equiv_mem): Likewise for param "start" and local "insn".
2445 (memref_used_between_p): Likewise for params "start", "end" and
2446 local "insn".
2447 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2448 final param.
2449 * loop-doloop.c (doloop_optimize): Within region guarded by
2450 INSN_P (doloop_pat), introduce a new local rtx_insn *
2451 "doloop_insn" via a checked cast, and use it for typesafety,
2452 eventually writing the value back into doloop_pat.
2453 * output.h (final_sequence): Strengthen this global from rtx to
2454 rtx_sequence *.
2455 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2456 reintroducing "insn" as an rtx_insn * via a checked cast.
2457 Strengthen param "attempt" and local "new_insn"from rtx to
2458 rtx_insn *.
2459 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2460 to rtx_insn *.
2461 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2462 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2463 "p" in favor of more tightly-scoped replacements, sometimes rtx
2464 and sometimes rtx_insn *, as appropriate.
2465 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2466 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2467 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2468 local "trial" from rtx to rtx_insn *.
2469 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2470 rtx to rtx_insn *. Strenghten local "pat" from rtx to
2471 rtx_sequence * and use methods for clarity and typesafety.
2472 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2473 rtx to rtx_insn *. Strenghten local "li" from rtx to
2474 rtx_insn_list * and use its methods for clarity and typesafety.
2475 (steal_delay_list_from_target): Strengthen param "insn" from rtx
2476 to rtx_insn *.
2477 (steal_delay_list_from_fallthrough): Likewise.
2478 (try_merge_delay_insns): Likewise for param "thread" and locals
2479 "trial", "next_trial", "delay_insn".
2480 (redundant_insn): Likewise for param "target" and local "trial".
2481 (own_thread_p): Likewise for param "thread" and locals
2482 "active_insn", "insn".
2483 (get_label_before): Likewise for param "insn".
2484 (fill_simple_delay_slots): Likewise for local "new_label"; use
2485 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2486 (label_before_next_insn): Strengthen return type and local "insn"
2487 from rtx to rtx_insn *.
2488 (relax_delay_slots): Likewise for locals "other", "tmp".
2489 (make_return_insns): Likewise for param "first" and locals "insn",
2490 "jump_insn", "prev". Move declaration of "pat" to its assignment
2491 and strengthen from rtx to rtx_sequence *. Use its methods for
2492 clarity and typesafety.
2493 * rtlanal.c (no_labels_between_p): Strengthen params from
2494 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
2495 rtx_insn *.
2496 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2497 from const_rtx to const rtx_insn *.
2498 (reg_set_between_p): Rename param "from_insn" to
2499 "uncast_from_insn", and reintroduce "from_insn" as a
2500 const rtx_insn * via a checked cast.
2501 (modified_between_p): Likewise for param "start" as "uncast_start".
2502 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2503 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2504 "tmp", head" from rtx to rtx_insn *.
2505 (recompute_rev_top_order): Likewise for local "insn".
2506 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2507 * store-motion.c (build_store_vectors): Likewise for local "insn".
2508 Strengthen local "st" from rtx to rtx_insn_list * and use methods
2509 for clarity and typesafety.
2510 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2511 rtx to rtx_insn *.
2512 (computation_cost): Likewise for local "seq".
2513 (get_address_cost): Likewise.
2514
2515 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2516
2517 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2518 const rtx_insn *.
2519 (label_is_jump_target_p): Likewise for second param.
2520
2521 * rtlanal.c (tablejump_p): Likewise for param "insn".
2522 (label_is_jump_target_p): Likewise for param "jump_insn".
2523
2524 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2525
2526 * rtl.h (find_first_parameter_load): Strengthen return type and
2527 both params from rtx to rtx_insn *.
2528 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2529 both params and locals "before", "first_set" from rtx to
2530 rtx_insn *. Remove now-redundant cast.
2531 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2532
2533 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2534
2535 * rtl.h (find_last_value): Delete.
2536 * rtlanal.c (find_last_value): Delete.
2537
2538 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2539
2540 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2541 from rtx to rtx_insn *.
2542 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2543 rtx "note" with new local rtx_insn * "new_head" when calculating
2544 head insn of new basic block.
2545 * combine.c (combine_split_insns): Strengthen return type and local
2546 "ret" from rtx to rtx_insn *.
2547 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2548 (try_combine): Eliminate local "m_split", splitting into new
2549 locals "m_split_insn" and "m_split_pat".
2550 (find_split_point): Strengthen local "seq" from rtx into
2551 rtx_insn *.
2552 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2553 locals "label", "branch".
2554 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2555 for local "insn".
2556 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2557 * dse.c (note_add_store_info): Likewise for fields "first",
2558 "current".
2559 (note_add_store): Likewise for local "insn".
2560 (emit_inc_dec_insn_before): Likewise for locals "insn",
2561 "new_insn", "cur".
2562 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2563 (replace_read): Likewise for locals "insns", "this_insn".
2564 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2565 (notice_eh_throw): Likewise for param "insn".
2566 (before_next_cfi_note): Likewise for return type, param, and local
2567 "prev".
2568 (connect_traces): Likewise for local "note".
2569 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2570 (verify_rtl_sharing): Likewise.
2571 (unshare_all_rtl_in_chain): Likewise for param "insn".
2572 (get_first_nonnote_insn): Likewise for local "insn".
2573 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2574 "seq" and use its methods to clarify things.
2575 (next_insn): Strengthen return type from rtx to rtx_insn *.
2576 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2577 local rtx_insn * using a checked cast, dropping a checked cast
2578 made redundant by this change. Use a cast to and method of
2579 rtx_sequence to clarify the code.
2580 (previous_insn): Rename param "insn" to "uncast_insn" and
2581 reintroduce "insn" as a local rtx_insn * using a checked cast,
2582 dropping a checked cast made redundant by this change. Use a cast
2583 to and method of rtx_sequence to clarify the code.
2584 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2585 reintroduce "insn" as a local rtx_insn * using a checked cast,
2586 dropping a checked cast made redundant by this change.
2587 (next_nonnote_insn_bb): Likewise.
2588 (prev_nonnote_insn): Likewise.
2589 (prev_nonnote_insn_bb): Likewise.
2590 (next_nondebug_insn): Likewise.
2591 (prev_nondebug_insn): Likewise.
2592 (next_nonnote_nondebug_insn): Likewise.
2593 (prev_nonnote_nondebug_insn): Likewise.
2594 (next_real_insn): Likewise.
2595 (prev_real_insn): Likewise.
2596 (next_active_insn): Likewise.
2597 (prev_active_insn): Likewise.
2598 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2599 clarity.
2600 (prev_cc0_setter): Likewise.
2601 (try_split): Rename param "trial" to "uncast_trial" and
2602 reintroduce "insn" as a local rtx_insn * using a checked cast,
2603 dropping checked casts made redundant by this change.
2604 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2605 rtx to rtx_insn *.
2606 (remove_insn): Rename param "insn" to "uncast_insn" and
2607 reintroduce "insn" as a local rtx_insn * using a checked cast.
2608 (emit_pattern_after_setloc): Likewise for param "after", as
2609 "uncast_after".
2610 (emit_pattern_after): Likewise. Strengthen local "prev" from
2611 rtx to rtx_insn *.
2612 (emit_pattern_before_setloc): Rename param "before" to
2613 "uncast_before" and reintroduce "before" as a local rtx_insn *
2614 using a checked cast. Strengthen locals "first", "last" from
2615 rtx to rtx_insn *.
2616 (emit_pattern_before): Likewise rename/cast param "before" to
2617 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2618 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2619 "first" and local "insn" from rtx to rtx_insn *.
2620 (copy_reg_eh_region_note_backward): Likewise for param "last"
2621 and local "insn".
2622 * expr.c (fixup_args_size_notes): Rename param "last" to
2623 "uncast_last" and reintroduce "last" as a local rtx_insn *
2624 using a checked cast. Strengthen local "insn" from rtx to
2625 rtx_insn *.
2626 * function.c (set_insn_locations): Strengthen param "insn" from
2627 rtx to rtx_insn *.
2628 (record_insns): Likewise for param "insns" and local "tmp".
2629 (active_insn_between): Rename param "tail" to
2630 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2631 using a checked cast.
2632 (thread_prologue_and_epilogue_insns): Split out top-level local
2633 rtx "seq" into three different rtx_insn * locals. Strengthen
2634 local "prologue_seq" from rtx to rtx_insn *.
2635 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2636 from rtx to rtx_insn *.
2637 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2638 (priority): Likewise for locals "prev_first", "twin".
2639 (setup_insn_max_reg_pressure): Likewise for param "after".
2640 (sched_setup_bb_reg_pressure_info): Likewise.
2641 (no_real_insns_p): Strengthen params from const_rtx to
2642 const rtx_insn *.
2643 (schedule_block): Strengthen local "next_tail" from rtx to
2644 rtx_insn *.
2645 * ifcvt.c (find_active_insn_before): Strengthen return type and
2646 param "insn" from rtx to rtx_insn *.
2647 (find_active_insn_after): Likewise.
2648 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2649 (cond_exec_process_if_block): Likewise for locals "then_start",
2650 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2651 (noce_process_if_block): Likewise for local "jump".
2652 (merge_if_block): Likewise for two locals named "end".
2653 (cond_exec_find_if_block): Likewise for local "last_insn".
2654 * jump.c (delete_related_insns): Rename param "insn" to
2655 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2656 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2657 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2658 NULL.
2659 (split_reg): Likewise.
2660 * lra.c (lra_process_new_insns): Likewise.
2661 * modulo-sched.c (permute_partial_schedule): Strengthen param
2662 "last" from rtx to rtx_insn *.
2663 * optabs.c (add_equal_note): Likewise for param "insns" and local
2664 "last_insn".
2665 (expand_binop_directly): Add checked casts to rtx_insn * within
2666 NEXT_INSN (pat) uses.
2667 (expand_unop_direct): Likewise.
2668 (maybe_emit_unop_insn): Likewise.
2669 * recog.c (peep2_attempt): Strengthen locals "last",
2670 "before_try", "x" from rtx to rtx_insn *.
2671 * reorg.c (optimize_skip): Strengthen return type and local
2672 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2673 and locals "trial", "next_trial" from rtx to rtx_insn *.
2674 * resource.c (next_insn_no_annul): Strengthen return type and
2675 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2676 rtx_sequence to clarify the code.
2677 (mark_referenced_resources): Add a checked cast to rtx_insn *
2678 within PREV_INSN (x).
2679 (find_dead_or_set_registers): Strengthen return type, param
2680 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2681 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2682 to rtx_insn **.
2683 (mark_target_live_regs): Strengthen params "insns" and "target",
2684 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2685 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2686 the code.
2687 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2688 from rtx to rtx_insn *.
2689 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2690 from rtx to rtx_insn *.
2691 (copy_reg_eh_region_note_backward): Likewise.
2692 (unshare_all_rtl_in_chain): Likewise for sole param.
2693 (dump_rtl_slim): Strengthen second and third params from const_rtx
2694 to const rtx_insn *.
2695 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2696 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2697 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2698 "next_tail" from rtx to rtx_insn *.
2699 (begin_move_insn): Likewise for local "next".
2700 * sched-int.h (sched_free_deps): Likewise for first and second
2701 params.
2702 (no_real_insns_p): Strengthen both params from const_rtx to
2703 const rtx_insn *.
2704 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2705 rtx to rtx_insn *.
2706 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2707 "next_tail".
2708 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2709 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2710 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2711 rtx_insn *.
2712 (debug_rtl_slim): Strengthen params "first" and "last" from
2713 const_rtx to const rtx_insn *.
2714 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2715 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2716 (convert_to_simple_return): Likewise for param "returnjump".
2717 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2718 "prologue_seq".
2719 (convert_to_simple_return): Likewise for param "returnjump".
2720 * valtrack.c (propagate_for_debug): Likewise for params
2721 "insn", "last".
2722 * valtrack.h (propagate_for_debug): Likewise for second param.
2723
2724 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2725
2726 * output.h (insn_current_reference_address): Strengthen param
2727 from rtx to rtx_insn *.
2728 * final.c (insn_current_reference_address): Likewise.
2729
2730 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2731
2732 * basic-block.h (inside_basic_block_p): Strengthen param from
2733 const_rtx to const rtx_insn *.
2734 * cfgbuild.c (inside_basic_block_p): Likewise.
2735
2736 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2737
2738 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
2739 rtx_insn *.
2740 (get_trace_info): Likewise for param "insn".
2741 (save_point_p): Likewise.
2742 (maybe_record_trace_start): Likewise for both params.
2743 (maybe_record_trace_start_abnormal): Likewise.
2744 (create_trace_edges): Likewise for sole param and for three of the
2745 locals named "lab".
2746 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
2747 to rtx_insn *, and update a call to pat->element to pat->insn.
2748
2749 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2750
2751 * function.h (struct expr_status): Convert field "x_forced_labels"
2752 from rtx_expr_list * to rtx_insn_list *.
2753
2754 * cfgbuild.c (make_edges): Convert local "x" from an
2755 rtx_expr_list * to an rtx_insn_list *, replacing use of
2756 "element" method with "insn" method.
2757 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2758 * except.c (sjlj_emit_dispatch_table): Replace use of
2759 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
2760 forced_labels.
2761 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
2762 rtx_expr_list * to an rtx_insn_list *, replacing use of
2763 "element" method with "insn" method.
2764 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2765 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
2766 rtx_insn *, adding a checked cast. Replace use of
2767 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
2768 forced_labels.
2769 (expand_label): Likewise for local "label_r".
2770
2771 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2772
2773 * function.h (struct rtl_data): Convert field
2774 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
2775 rtx_insn_list *.
2776 * rtl.h (remove_node_from_insn_list): New prototype.
2777
2778 * builtins.c (expand_builtin): When prepending to
2779 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2780 gen_rtx_EXPR_LIST.
2781 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
2782 to rtx_insn_list *, and use its "insn" method rather than
2783 "element" method.
2784 * cfgrtl.c (delete_insn): Use new function
2785 remove_node_from_insn_list rather than
2786 remove_node_from_expr_list.
2787 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
2788 to rtx_insn_list *, and use its "insn" method rather than
2789 "element" method.
2790 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2791 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2792 * rtlanal.c (remove_node_from_insn_list): New function, adapted
2793 from remove_node_from_expr_list.
2794 * stmt.c (expand_label): When prepending to
2795 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2796 gen_rtx_EXPR_LIST.
2797
2798 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2799
2800 * function.h (struct rtl_data): Strengthen fields "x_return_label"
2801 and "x_naked_return_label" from rtx to rtx_code_label *.
2802
2803 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2804
2805 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
2806 (SET_NEXT_INSN): Likewise.
2807 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
2808
2809 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
2810 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
2811 to split out the SEQUENCE from local "bundle", strengthening the
2812 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
2813 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
2814 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
2815 and the type of the elements of the "slot" array from rtx to
2816 rtx_insn *.
2817 (reorg_split_calls): Likewise for locals "insn" and "next", and
2818 the type of the elements of the "slot" array.
2819
2820 * config/frv/frv.c (frv_nops): Likewise for the elements of this
2821 array.
2822 (frv_function_prologue): Likewise for locals "insn", "next",
2823 "last_call".
2824 (frv_register_nop): Introduce a local "nop_insn" to be the
2825 rtx_insn * containing rtx "nop".
2826
2827 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
2828 used as an insn and sometimes as a pattern, so rename it to
2829 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
2830 using it where dealing with the core insn.
2831
2832 * config/picochip/picochip.c (reorder_var_tracking_notes):
2833 Strengthen locals "insn", "next", "last_insn", "queue",
2834 "next_queue", "prev" from rtx to rtx_insn *.
2835
2836 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
2837 the second param is an rtx_insn ** rather than an rtx **.
2838 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
2839 from rtx to rtx_sequence *, and introduce local named "sequence",
2840 using methods of rtx_sequence to clarify the code.
2841 (remove_insn): Introduce local rtx_sequence * named "sequence" and
2842 use its methods.
2843 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
2844 Rename param "after" to "uncast_after", reintroducing "after" as a
2845 local rtx_insn * with a checked cast.
2846 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
2847 reintroducing "after" as a local rtx_insn * with a checked cast.
2848 Strengthen local "last" from rtx to rtx_insn * and remove the
2849 now-redundant checked casts.
2850 (copy_delay_slot_insn): Strengthen return type and param from rtx
2851 to rtx_insn *.
2852
2853 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
2854 "last" from rtx to rtx_insn *.
2855
2856 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2857
2858 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
2859 param from rtx to rtx_insn *.
2860
2861 * emit-rtl.c (copy_delay_slot_insn): Likewise.
2862
2863 * reorg.c (skip_consecutive_labels): Strengthen return type, param
2864 and local "insn" from rtx to rtx_insn *.
2865 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
2866 (unfilled_slots_next): Likewise.
2867 (function_return_label): Strengthen from rtx to rtx_code_label *.
2868 (function_simple_return_label): Likewise.
2869 (first_active_target_insn): Strengthen return type and param from
2870 rtx to rtx_insn *.
2871 (find_end_label): Strengthen return type from rtx to
2872 rtx_code_label *; strengthen locals as appropriate.
2873 (emit_delay_sequence): Strengthen return type, param "insn" and
2874 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
2875 and local "li" from rtx to rtx_insn_list *, using methods of
2876 rtx_insn_list for clarity and typesafety.
2877 (add_to_delay_list): Strengthen return type and param "insn" from
2878 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
2879 rtx_insn_list * and use methods of rtx_insn_list.
2880 (delete_from_delay_slot): Strengthen return type, param "insn",
2881 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
2882 Strengthen local "seq" from rtx to rtx_sequence *, and local
2883 "delay_list" from rtx to rtx_insn_list *, using methods of
2884 rtx_sequence for clarity and type-safety.
2885 (delete_scheduled_jump): Add checked cast when invoking
2886 delete_from_delay_slot. Strengthen local "trial" from rtx to
2887 rtx_insn *.
2888 (optimize_skip): Strengthen return type and local "delay_list"
2889 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
2890 rtx_insn *.
2891 (steal_delay_list_from_target): Strengthen return type, param
2892 "delay_list" and local "new_delay_list" from rtx to
2893 rtx_insn_list *. Strengthen param "seq" from rtx to
2894 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
2895 rtx_insn **.
2896 Split out local "temp" into multiple more-tightly scoped locals:
2897 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
2898 of rtx_insn_list and rtx_sequence for clarity and typesafety.
2899 Strengthen locals named "trial" from rtx to rtx_insn *.
2900 (steal_delay_list_from_fallthrough): Strengthen return type and
2901 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
2902 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
2903 Strengthen local "trial" from rtx to rtx_insn *.
2904 (try_merge_delay_insns): Strength local "merged_insns" from rtx
2905 to rtx_insn_list * and use its methods. Strengthen local "pat"
2906 from rtx to rtx_sequence * and use its methods. Strengthen locals
2907 "dtrial" and "new_rtx" from rtx to rtx_insn *.
2908 (get_label_before): Strengthen return type and local "label" from
2909 rtx to rtx_insn *.
2910 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
2911 "next_trial", "next", prev". Strengthen local "delay_list" from
2912 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
2913 rtx_insn **.
2914 (follow_jumps): Strengthen return type, param "label" and locals
2915 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
2916 (fill_slots_from_thread): Strengthen return type, param
2917 "delay_list" from rtx to rtx_insn_list *. Strengthen params
2918 "insn", "thread", "opposite_thread" and locals "new_thread",
2919 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
2920 "sequence" from a checked cast to rtx_sequence so that we can call
2921 steal_delay_list_from_target and steal_delay_list_from_fallthrough
2922 with an rtx_sequence *.
2923 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
2924 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
2925 Strengthen local "delay_list" from rtx to rtx_insn_list *.
2926 (relax_delay_slots): Strengthen param "first" and locals "insn",
2927 "next", "trial", "delay_insn", "target_label" from rtx to
2928 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
2929 Introduce a local "trial_seq" for PATTERN (trial) of type
2930 rtx_sequence *, in both cases using methods of rtx_sequence.
2931 (dbr_schedule): Strengthen param "first" and locals "insn",
2932 "next", "epilogue_insn" from rtx to rtx_insn *.
2933
2934 2014-08-28 Richard Biener <rguenther@suse.de>
2935
2936 PR tree-optimization/62283
2937 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2938 Do not peel loops for alignment where the vector loop likely
2939 doesn't run at least VF times.
2940
2941 2014-08-28 Bin Cheng <bin.cheng@arm.com>
2942
2943 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
2944 important_candidates. Consider all important candidates if
2945 IVS doesn't give any result. Remove check on ivs->upto.
2946 (try_add_cand_for): Call iv_ca_add_use only once.
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 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
2958 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
2959 masking.
2960 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
2961 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2962 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2963 (define_insn "*mul<mode>3"): Add EVEX version.
2964
2965 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2966 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2967 Anna Tikhonova <anna.tikhonova@intel.com>
2968 Ilya Tocar <ilya.tocar@intel.com>
2969 Andrey Turetskiy <andrey.turetskiy@intel.com>
2970 Ilya Verbin <ilya.verbin@intel.com>
2971 Kirill Yukhin <kirill.yukhin@intel.com>
2972 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2973
2974 * config/i386/sse.md
2975 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
2976 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
2977 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
2978 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
2979 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
2980 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
2981 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
2982 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
2983 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
2984 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
2985 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
2986 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
2987 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
2988 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
2989 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
2990 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
2991
2992 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2993 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2994 Anna Tikhonova <anna.tikhonova@intel.com>
2995 Ilya Tocar <ilya.tocar@intel.com>
2996 Andrey Turetskiy <andrey.turetskiy@intel.com>
2997 Ilya Verbin <ilya.verbin@intel.com>
2998 Kirill Yukhin <kirill.yukhin@intel.com>
2999 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3000
3001 * config/i386/sse.md
3002 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3003 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3004 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3005
3006 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3007 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3008 Anna Tikhonova <anna.tikhonova@intel.com>
3009 Ilya Tocar <ilya.tocar@intel.com>
3010 Andrey Turetskiy <andrey.turetskiy@intel.com>
3011 Ilya Verbin <ilya.verbin@intel.com>
3012 Kirill Yukhin <kirill.yukhin@intel.com>
3013 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3014
3015 * config/i386/sse.md
3016 (define_mode_iterator VI128_256): New.
3017 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3018
3019 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3020 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3021 Anna Tikhonova <anna.tikhonova@intel.com>
3022 Ilya Tocar <ilya.tocar@intel.com>
3023 Andrey Turetskiy <andrey.turetskiy@intel.com>
3024 Ilya Verbin <ilya.verbin@intel.com>
3025 Kirill Yukhin <kirill.yukhin@intel.com>
3026 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3027
3028 * config/i386/sse.md
3029 (define_mode_iterator VI8_256_512): New.
3030 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3031 Ditto.
3032 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3033 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3034 Ditto.
3035 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3036
3037 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3038
3039 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3040 pointer to the cumulative reloc value and return the value for
3041 this reloc instead.
3042 (compute_reloc_for_rtx): Take a const_rtx. Call
3043 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3044 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3045 for_each_rtx for the CONST case.
3046
3047 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3048
3049 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3050 (mark_constants_in_pattern): ...this new function to iterate over
3051 all the subrtxes.
3052 (mark_constants): Update accordingly.
3053
3054 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3055
3056 * varasm.c: Include rtl-iter.h.
3057 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3058 Remove the pointer to the cumulative hashval_t and just return
3059 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3060 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3061 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3062
3063 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3064
3065 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3066 Give real type of data parameter. Remove return value.
3067 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3068 to iterate over subrtxes.
3069
3070 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3071
3072 * var-tracking.c (use_narrower_mode_test): Turn from being a
3073 for_each_rtx callback to being a function that examines each
3074 subrtx itself.
3075 (adjust_mems): Update accordingly.
3076
3077 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3078
3079 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3080 callback to being a function that examines each subrtx itself.
3081 Remove handling of null rtxes.
3082 (add_uses): Update accordingly.
3083
3084 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3085
3086 * var-tracking.c: Include rtl-iter.h.
3087 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3088 to being a function that examines each subrtx itself.
3089 (use_type): Update accordingly.
3090
3091 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3092
3093 * store-motion.c: Include rtl-iter.h.
3094 (extract_mentioned_regs_1): Delete.
3095 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3096 for_each_rtx to iterate over subrtxes.
3097
3098 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3099
3100 * sel-sched.c: Include rtl-iter.h
3101 (count_occurrences_1): Delete.
3102 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3103 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3104
3105 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3106
3107 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3108 * rtlanal.c (tls_referenced_p_1): Delete.
3109 (tls_referenced_p): Take a const_rtx rather than an rtx.
3110 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3111
3112 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3113
3114 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3115 (for_each_inc_dec): Take an rtx rather than an rtx *.
3116 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3117 (cselib_record_sets): Likewise.
3118 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3119 (check_for_inc_dec): Likewise.
3120 * rtlanal.c (for_each_inc_dec_ops): Delete.
3121 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3122 rather than a pointer to the memory address. Replace
3123 for_each_inc_dec_ops argument with separate function and data
3124 arguments. Abort on non-autoinc addresses.
3125 (for_each_inc_dec_find_mem): Delete.
3126 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3127 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3128
3129 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3130
3131 * rtl.h (find_all_hard_regs): Declare.
3132 * rtlanal.c (find_all_hard_regs): New function.
3133 (record_hard_reg_uses_1): Delete.
3134 (record_hard_reg_uses): Use find_all_hard_regs.
3135
3136 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3137
3138 * rtl.h (replace_label_data): Delete.
3139 (replace_label): Take the old label, new label and update-nuses flag
3140 as direct arguments. Return void.
3141 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3142 * rtlanal.c (replace_label): Update interface as above. Handle
3143 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3144 iterator. Use FOR_EACH_SUBRTX_PTR.
3145
3146 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3147
3148 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3149 with const_rtx parameters.
3150 * varasm.c (get_pool_constant): Likewise.
3151 * rtlanal.c (rtx_referenced_p_1): Delete.
3152 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3153 Assert that the rtx we're looking for is nonnull. Allow searches
3154 for constant pool SYMBOL_REFs.
3155
3156 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3157
3158 * reload1.c: Include rtl-iter.h.
3159 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3160 to being a function that examines each subrtx itself.
3161 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3162
3163 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3164
3165 * regcprop.c (cprop_find_used_regs_1): Delete.
3166 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3167
3168 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3169
3170 * regcprop.c: Include rtl-iter.h.
3171 (kill_value): Take a const_rtx.
3172 (kill_autoinc_value): Turn from being a for_each_rtx callback
3173 to being a function that examines each subrtx itself.
3174 (copyprop_hardreg_forward_1): Update accordingly.
3175
3176 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3177
3178 * reg-stack.c: Include rtl-iter.h.
3179 (subst_stack_regs_in_debug_insn): Delete.
3180 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3181 instead of for_each_rtx.
3182
3183 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3184
3185 * lower-subreg.c (find_decomposable_subregs): Turn from being
3186 a for_each_rtx callback to being a function that examines each
3187 subrtx itself. Remove handling of null rtxes.
3188 (decompose_multiword_subregs): Update accordingly.
3189
3190 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3191
3192 * lower-subreg.c (adjust_decomposed_uses): Delete.
3193 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3194 Remove handling of null rtxes.
3195
3196 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3197
3198 * lower-subreg.c: Include rtl-iter.h.
3199 (resolve_subreg_use): Turn from being a for_each_rtx callback
3200 to being a function that examines each subrtx itself. Remove
3201 handling of null rtxes.
3202 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3203 (decompose_multiword_subregs): Likewise.
3204
3205 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3206
3207 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3208 to being a function that examines each subrtx itself.
3209 (simplify_using_condition, simplify_using_initial_values): Update
3210 accordingly.
3211
3212 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3213
3214 * loop-iv.c: Include rtl-iter.h.
3215 (find_single_def_src): New function.
3216 (replace_single_def_regs): Turn from being a for_each_rtx callback
3217 to being a function that examines each subrtx itself.
3218 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3219
3220 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3221
3222 * jump.c (eh_returnjump_p_1): Delete.
3223 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3224 Remove handling of null rtxes.
3225
3226 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3227
3228 * jump.c: Include rtl-iter.h.
3229 (returnjump_p_1): Delete.
3230 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3231 Remove handling of null rtxes.
3232
3233 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3234
3235 * ira.c: Include rtl-iter.h.
3236 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3237 to being a function that examines each subrtx itself. Remove
3238 handling of null rtxes.
3239 (update_equiv_regs): Update call accordingly.
3240
3241 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3242
3243 * fwprop.c: Include rtl-iter.h.
3244 (varying_mem_p): Turn from being a for_each_rtx callback to being
3245 a function that examines each subrtx itself.
3246 (propagate_rtx): Update accordingly.
3247
3248 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3249
3250 * function.c: Include rtl-iter.h
3251 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3252 callback to being a function that examines each subrtx itself.
3253 Return the changed flag.
3254 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3255 (instantiate_virtual_regs): Update calls accordingly.
3256
3257 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3258
3259 * final.c: Include rtl-iter.h.
3260 (mark_symbol_ref_as_used): Delete.
3261 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3262 for_each_rtx.
3263
3264 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3265
3266 * emit-rtl.c: Include rtl-iter.h.
3267 (find_auto_inc): Turn from being a for_each_rtx callback to being
3268 a function that examines each subrtx itself. Assume the first operand
3269 to an RTX_AUTOINC is the automodified register.
3270 (try_split): Update call accordingly.
3271
3272 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3273
3274 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3275 Return a bool, inverting the result so that 0/false means "not ok".
3276 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3277 subrtxes of a CONST.
3278 (mem_loc_descriptor, add_const_value_attribute)
3279 (resolve_addr_in_expr): Update calls accordingly.
3280
3281 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3282
3283 * dwarf2out.c: Include rtl-iter.h.
3284 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3285 Remove unused data parameter. Return a bool, inverting the result
3286 so that 0/false means "not ok".
3287 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3288 instead of for_each_rtx.
3289
3290 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3291
3292 * dse.c: Include rtl-iter.h.
3293 (check_mem_read_rtx): Change void * parameter to real type.
3294 Remove return value.
3295 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3296 for_each_rtx. Don't handle null rtxes.
3297
3298 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3299
3300 * df-problems.c: Include rtl-iter.h.
3301 (find_memory): Turn from being a for_each_rtx callback to being
3302 a function that examines each subrtx itself. Continue to look for
3303 volatile references even after a nonvolatile one has been found.
3304 (can_move_insns_across): Update calls accordingly.
3305
3306 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3307
3308 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3309 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3310 to iterate over subrtxes. Return a bool rather than an int.
3311
3312 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3313
3314 * ddg.c: Include rtl-iter.h.
3315 (mark_mem_use_1): Rename to...
3316 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3317 instead of for_each_rtx.
3318 (mem_read_insn_p): Update accordingly.
3319
3320 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3321
3322 * cse.c (change_cc_mode_args): Delete.
3323 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3324 a function that examines each subrtx itself. Take the fields of
3325 change_cc_mode_args as argument and return void.
3326 (cse_change_cc_mode_insn): Update calls accordingly.
3327
3328 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3329
3330 * cse.c (is_dead_reg): Change argument to const_rtx.
3331 (dead_debug_insn_data): Delete.
3332 (is_dead_debug_insn): Expand commentary. Turn from being a
3333 for_each_rtx callback to being a function that examines
3334 each subrtx itself. Take the fields of dead_debug_insn_data
3335 as argument.
3336 (delete_trivially_dead_insns): Update call accordingly.
3337
3338 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3339
3340 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3341 being a for_each_rtx callback to being a function that examines
3342 each subrtx itself.
3343 (cse_extended_basic_block): Update call accordingly.
3344
3345 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3346
3347 * cse.c (check_dependence_data): Delete.
3348 (check_dependence): Change from being a for_each_rtx callback to being
3349 a function that examines all subrtxes itself. Don't handle null rtxes.
3350 (invalidate): Update call accordingly.
3351
3352 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3353
3354 * cse.c: Include rtl-iter.h.
3355 (approx_reg_cost_1): Delete.
3356 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3357 Don't handle null rtxes.
3358
3359 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3360
3361 * cfgcleanup.c: Include rtl-iter.h.
3362 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3363 to being a function that examines each subrtx itself.
3364 (thread_jump): Update accordingly.
3365
3366 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3367
3368 * combine-stack-adj.c: Include rtl-iter.h.
3369 (record_stack_refs_data): Delete.
3370 (record_stack_refs): Turn from being a for_each_rtx callback
3371 to being a function that examines each subrtx itself.
3372 Take a pointer to the reflist. Invert sense of return value
3373 so that true means success and false means failure. Don't
3374 handle null rtxes.
3375 (combine_stack_adjustments_for_block): Update accordingly.
3376
3377 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3378
3379 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3380 callback to a function that takes an rtx and returns a bool
3381 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3382 for_each_rtx.
3383
3384 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3385
3386 * combine.c: Include rtl-iter.h.
3387 (unmentioned_reg_p_1): Delete.
3388 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3389 Don't handle null rtxes.
3390
3391 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3392
3393 * calls.c: Include rtl-iter.h.
3394 (internal_arg_pointer_based_exp_1): Delete.
3395 (internal_arg_pointer_based_exp): Take a const_rtx.
3396 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3397
3398 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3399
3400 * caller-save.c: Include rtl-iter.h.
3401 (add_used_regs_1): Delete.
3402 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3403 to iterate over subrtxes. Assert that any remaining pseudos
3404 have been spilled.
3405
3406 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3407
3408 * bt-load.c: Include rtl-iter.h.
3409 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3410 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3411 to iterate over subrtxes.
3412 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3413 find_btr_use rather than btr_referenced_p.
3414
3415 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3416
3417 * alias.c: Include rtl-iter.h.
3418 (refs_newer_value_cb): Delete.
3419 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3420
3421 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3422
3423 * rtl-iter.h: New file.
3424 * rtlanal.c: Include it.
3425 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3426 (generic_subrtx_iterator <T>::add_single_to_queue)
3427 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3428 (generic_subrtx_iterator <T>::free_array): New functions.
3429 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3430 (generic_subrtx_iterator <const_rtx_accessor>)
3431 (generic_subrtx_iterator <rtx_var_accessor>
3432 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3433 (setup_reg_subrtx_bounds): New function.
3434 (init_rtlanal): Call it.
3435
3436 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3437
3438 PR target/62261
3439 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3440 TARGET_SHMEDIA.
3441 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3442
3443 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3444
3445 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3446
3447 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3448
3449 * rtl.h (JUMP_LABEL_AS_INSN): New.
3450
3451 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3452
3453 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3454 rtx_expr_list **.
3455 (alloc_EXPR_LIST): Strengthen return type from rtx to
3456 rtx_expr_list *.
3457 (remove_free_EXPR_LIST_node): Likewise for param.
3458 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3459 from rtx to rtx_expr_list *.
3460 * sched-int.h (struct deps_desc): Strengthen fields
3461 "pending_read_mems" and "pending_write_mems" from rtx to
3462 rtx_expr_list *.
3463
3464 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3465 rtx to rtx_expr_list *.
3466 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3467 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3468 rtx_expr_list **.
3469 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
3470 from rtx to rtx_expr_list *.
3471 * loop-iv.c (simplify_using_initial_values): Strengthen local
3472 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3473 "pnote_next" from rtx * to rtx_expr_list **.
3474 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
3475 param "exprp" from rtx * to rtx_expr_list **.
3476 (add_insn_mem_dependence): Strengthen local "mem_list" from
3477 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
3478 to rtx_expr_list *.
3479 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3480 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
3481 param "old_mems_p" from rtx * to rtx_expr_list **.
3482 * var-tracking.c (struct adjust_mem_data): Strengthen field
3483 "side_effects" from rtx to rtx_expr_list *.
3484 (adjust_insn): Replace NULL_RTX with NULL when assigning to
3485 rtx_expr_list *.
3486 (prepare_call_arguments): Likewise.
3487
3488 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3489
3490 * function.h (struct rtl_data): Strengthen field
3491 "x_stack_slot_list" from rtx to rtx_expr_list *.
3492
3493 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3494 when assigning to stack_slot_list.
3495
3496 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3497
3498 * function.h (struct rtl_data): Strengthen field
3499 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3500 * rtl.h (remove_node_from_expr_list): Strengthen second param from
3501 rtx * to rtx_expr_list **.
3502
3503 * cfgbuild.c (make_edges): In loop over
3504 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3505 rtx_expr_list *, and use methods of the latter class to clarify
3506 the code.
3507 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3508 rtx_expr_list *, and use methods of the latter class to clarify
3509 the code.
3510 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3511 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3512 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3513 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
3514 to rtx_expr_list *. Use methods of the latter class to clarify
3515 the code.
3516
3517 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3518
3519 * function.h (struct expr_status): Strengthen field
3520 "x_forced_labels" from rtx to rtx_expr_list *.
3521
3522 * cfgbuild.c (make_edges): Split local "x" into two locals,
3523 strengthening one from rtx to rtx_expr_list *, and using methods
3524 of said class.
3525 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3526 loop over forced_labels, introduce strengthen it from rtx to
3527 rtx_expr_list *, using methods to clarify the code.
3528 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3529 to rtx_expr_list *, using methods of said class to clarify the
3530 code.
3531 * reload1.c (set_initial_label_offsets): Split local "x" into two
3532 per-loop variables, strengthening the first from rtx to
3533 rtx_expr_list * and using methods.
3534
3535 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3536
3537 * coretypes.h (class rtx_expr_list): Add forward declaration.
3538 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3539 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3540 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3541 invariant: GET_CODE (X) == EXPR_LIST.
3542 (is_a_helper <rtx_expr_list *>::test): New.
3543 (rtx_expr_list::next): New.
3544 (rtx_expr_list::element): New.
3545 (gen_rtx_EXPR_LIST): New.
3546
3547 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3548
3549 * varasm.c (mark_constants): Convert a GET_CODE check into a
3550 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3551 Use methods of rtx_sequence to clarify the code.
3552
3553 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3554
3555 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3556 local "seq" via a checked cast, and use methods of rtx_sequence
3557 to simplify the code.
3558
3559 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3560
3561 * resource.c (mark_referenced_resources): Strengthen local
3562 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3563 using methods of rtx_sequence to clarify the code.
3564 (find_dead_or_set_registers): Within the switch statement, convert
3565 a GET_CODE check to a dyn_cast, introducing local "seq". Within
3566 the JUMP_P handling, introduce another local "seq", adding a
3567 checked cast to rtx_sequence *. In both cases, use methods of
3568 rtx_sequence to clarify the code.
3569 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3570 via a checked cast, and use methods of rtx_sequence to simplify
3571 the code.
3572
3573 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3574
3575 * reorg.c (redundant_insn): In two places in the function, replace
3576 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3577 usings methods of rtx_sequence to clarify the code.
3578
3579 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3580
3581 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3582 local "seq" with a checked cast, and use methods of rtx_sequence
3583 to clarify the code.
3584
3585 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3586
3587 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3588 with a checked cast, in the region for where we know it's a
3589 SEQUENCE. Use methods of rtx_sequence.
3590
3591 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3592
3593 * final.c (get_attr_length_1): Replace GET_CODE check with a
3594 dyn_cast, introducing local "seq" and the use of methods of
3595 rtx_sequence.
3596 (shorten_branches): Likewise, introducing local "body_seq".
3597 Strengthen local "inner_insn" from rtx to rtx_insn *.
3598 (reemit_insn_block_notes): Replace GET_CODE check with a
3599 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3600 Use methods of rtx_sequence.
3601 (final_scan_insn): Likewise, introducing local "seq" for when
3602 "body" is known to be a SEQUENCE, using its methods.
3603
3604 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3605
3606 * except.c (can_throw_external): Strengthen local "seq" from rtx
3607 to rtx_sequence *. Use methods of rtx_sequence.
3608 (insn_nothrow_p): Likewise.
3609
3610 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3611
3612 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3613 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3614 Use methods of rtx_sequence.
3615 (scan_trace): Likewise for local "pat".
3616
3617 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3618
3619 * coretypes.h (class rtx_sequence): Add forward declaration.
3620 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3621 invariant: GET_CODE (X) == SEQUENCE.
3622 (is_a_helper <rtx_sequence *>::test): New.
3623 (is_a_helper <const rtx_sequence *>::test): New.
3624 (rtx_sequence::len): New.
3625 (rtx_sequence::element): New.
3626 (rtx_sequence::insn): New.
3627
3628 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3629
3630 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3631 rtx_insn_list **.
3632 (alloc_INSN_LIST): Strengthen return type from rtx to
3633 rtx_insn_list *.
3634 (copy_INSN_LIST): Likewise for return type and param.
3635 (concat_INSN_LIST): Likewise for both params and return type.
3636 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3637 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3638 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3639 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3640
3641 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3642 "implicit_sets", "control_uses", "clobbers" from rtx to
3643 rtx_insn_list *.
3644 (struct deps_desc): Likewise for fields "pending_read_insns",
3645 "pending_write_insns", "pending_jump_insns",
3646 "last_pending_memory_flush", "last_function_call",
3647 "last_function_call_may_noreturn", "sched_before_next_call",
3648 "sched_before_next_jump".
3649 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3650 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3651
3652 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3653 from rtx to rtx_insn_list *.
3654 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3655 rtx_insn_list *.
3656
3657 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3658 to rtx_insn_list **.
3659 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3660 rtx_insn_list *.
3661 (queue_insn): Likewise for local "link".
3662 (struct haifa_saved_data): Strengthen field "insn_queue" from
3663 rtx * to rtx_insn_list **.
3664 (save_backtrack_point): Update allocation of save->insn_queue to
3665 reflect the strengthening of elements from rtx to rtx_insn_list *.
3666 (queue_to_ready): Strengthen local "link" from rtx to
3667 rtx_insn_list *; use methods "next" and "insn" when traversing the
3668 list.
3669 (early_queue_to_ready): Likewise for locals "link", "next_link",
3670 "prev_link".
3671 (schedule_block): Update allocation of insn_queue to reflect the
3672 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3673 local "link" from rtx to rtx_insn_list *, and use methods when
3674 working it.
3675 (add_to_speculative_block): Strengthen locals "twins" and
3676 "next_node" from rtx to rtx_insn_list *, and use methods when
3677 working with them. Strengthen local "twin" from rtx to
3678 rtx_insn *, eliminating a checked cast.
3679 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3680 from rtx to rtx_insn_list *, and use methods when working with
3681 them.
3682
3683 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3684 from rtx to rtx_insn_list *, adding a checked cast.
3685 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3686 rtx_insn_list **.
3687 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3688 "newlink" from rtx to rtx_insn_list *. Strengthen local
3689 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3690 from rtx to rtx_insn *.
3691 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3692 from rtx to rtx_insn_list *. Use methods of the latter class.
3693 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3694 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3695 (remove_free_INSN_LIST_node): Strengthen return type and local
3696 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3697 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3698 rtx_insn_list *, using "insn" method.
3699
3700 * sched-deps.c (add_dependence_list): Strengthen param "list"
3701 from rtx to rtx_insn_list *, and use methods when working with it.
3702 (add_dependence_list_and_free): Strengthen param "listp" from
3703 rtx * to rtx_insn_list **.
3704 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3705 to rtx_insn_list **, and use methods when working with *listp.
3706 (remove_from_both_dependence_lists): Strengthen param "listp" from
3707 rtx * to rtx_insn_list **
3708 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3709 to rtx_insn_list **. Eliminate local "link", in favor of two new
3710 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3711 respectively.
3712 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3713 by introducing local "cond_deps".
3714 (remove_from_deps): Strengthen param "insn" from rtx to
3715 rtx_insn *.
3716
3717 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3718 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3719 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3720 Use methods of rtx_insn_list.
3721
3722 * store-motion.c (struct st_expr): Strengthen fields
3723 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3724 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3725 rtx_insn_list *.
3726 (find_moveable_store): Split out "tmp" into multiple more-tightly
3727 scoped locals. Use methods of rtx_insn_list *.
3728 (compute_store_table): Strengthen local "tmp" from rtx to
3729 rtx_insn *. Use methods of rtx_insn_list *.
3730
3731 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3732
3733 * coretypes.h (class rtx_insn_list): Add forward declaration.
3734 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3735 (is_a_helper <rtx_insn_list *>::test): New.
3736 (rtx_insn_list::next): New.
3737 (rtx_insn_list::insn): New.
3738 (gen_rtx_INSN_LIST): Add prototype.
3739 * emit-rtl.c (gen_rtx_INSN_LIST): New.
3740 * gengenrtl.c (special_rtx): Add INSN_LIST.
3741
3742 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3743
3744 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
3745 "prev" from rtx to rtx_insn *.
3746
3747 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3748
3749 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
3750 functions. Require merely an rtx for now, not an rtx_insn *.
3751 (BLOCK_FOR_INSN): Likewise.
3752 (INSN_LOCATION): Likewise.
3753 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
3754
3755 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3756
3757 * rtl.h (PATTERN): Convert this macro into a pair of inline
3758 functions, for now, requiring const_rtx and rtx.
3759
3760 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3761
3762 * target.def (unwind_emit): Strengthen param "insn" from rtx to
3763 rtx_insn *.
3764 (final_postscan_insn): Likewise.
3765 (adjust_cost): Likewise.
3766 (adjust_priority): Likewise.
3767 (variable_issue): Likewise.
3768 (macro_fusion_pair_p): Likewise.
3769 (dfa_post_cycle_insn): Likewise.
3770 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
3771 (first_cycle_multipass_issue): Likewise.
3772 (dfa_new_cycle): Likewise.
3773 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
3774 (speculate_insn): Likewise for param "insn".
3775 (gen_spec_check): Likewise for params "insn" and "label".
3776 (get_insn_spec_ds): Likewise for param "insn".
3777 (get_insn_checked_ds): Likewise.
3778 (dispatch_do): Likewise.
3779 (dispatch): Likewise.
3780 (cannot_copy_insn_p): Likewise.
3781 (invalid_within_doloop): Likewise.
3782 (legitimate_combined_insn): Likewise.
3783 (needed): Likewise.
3784 (after): Likewise.
3785
3786 * doc/tm.texi: Automatically updated to reflect changes to
3787 target.def.
3788
3789 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
3790 working with insn.
3791 (schedule_block): Likewise.
3792 (sched_init): Likewise.
3793 (sched_speculate_insn): Strengthen param "insn" from rtx to
3794 rtx_insn *.
3795 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
3796 working with insn.
3797 * hooks.c (hook_bool_rtx_true): Rename to...
3798 hook_bool_rtx_insn_true): ...this, and strengthen first param from
3799 rtx to rtx_insn *.
3800 (hook_constcharptr_const_rtx_null): Rename to...
3801 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3802 first param from const_rtx to const rtx_insn *.
3803 (hook_bool_rtx_int_false): Rename to...
3804 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3805 param from rtx to rtx_insn *.
3806 (hook_void_rtx_int): Rename to...
3807 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3808 rtx to rtx_insn *.
3809
3810 * hooks.h (hook_bool_rtx_true): Rename to...
3811 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
3812 rtx to rtx_insn *.
3813 (hook_bool_rtx_int_false): Rename to...
3814 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3815 param from rtx to rtx_insn *.
3816 (hook_void_rtx_int): Rename to...
3817 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3818 rtx to rtx_insn *.
3819 (hook_constcharptr_const_rtx_null): Rename to...
3820 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3821 first param from const_rtx to const rtx_insn *.
3822
3823 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
3824 and local "prev" from rtx to rtx_insn *.
3825
3826 * sched-int.h (sched_speculate_insn): Strengthen first param from
3827 rtx to rtx_insn *.
3828
3829 * sel-sched.c (create_speculation_check): Likewise for local "label".
3830 * targhooks.c (default_invalid_within_doloop): Strengthen param
3831 "insn" from const_rtx to const rtx_insn *.
3832 * targhooks.h (default_invalid_within_doloop): Strengthen param
3833 from const_rtx to const rtx_insn *.
3834
3835 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
3836 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
3837
3838 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
3839 "insn".
3840 (arc_invalid_within_doloop): Likewise, with const.
3841
3842 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
3843 (arm_cannot_copy_insn_p): Likewise for param "insn".
3844 (arm_unwind_emit): Likewise.
3845
3846 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
3847 "dep_insn".
3848
3849 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
3850 (c6x_variable_issue): Likewise. Removed now-redundant checked
3851 cast.
3852 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
3853
3854 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
3855 Likewise for param "insn".
3856 (epiphany_mode_after): Likewise.
3857 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
3858 params "insn", "dep_insn".
3859 (epiphany_mode_needed): Likewise for param "insn".
3860 (epiphany_mode_after): Likewise.
3861
3862 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
3863 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3864 (ix86_avx_u128_mode_needed): Likewise.
3865 (ix86_i387_mode_needed): Likewise.
3866 (ix86_mode_needed): Likewise.
3867 (ix86_avx_u128_mode_after): Likewise.
3868 (ix86_mode_after): Likewise.
3869 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
3870 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
3871 (ix86_adjust_priority): Likewise for param "insn".
3872 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
3873 (do_dispatch): Likewise.
3874 (has_dispatch): Likewise.
3875 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
3876
3877 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
3878 reflect renaming of default hook implementation from
3879 hook_constcharptr_const_rtx_null to
3880 hook_constcharptr_const_rtx_insn_null.
3881 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
3882 rtx to rtx_insn *.
3883 (ia64_variable_issue): Likewise for param "insn".
3884 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
3885 (ia64_dfa_new_cycle): Likewise.
3886 (ia64_get_insn_spec_ds): Likewise.
3887 (ia64_get_insn_checked_ds): Likewise.
3888 (ia64_speculate_insn): Likewise.
3889 (ia64_gen_spec_check): Likewise for params "insn", "label".
3890 (ia64_asm_unwind_emit): Likewise for param "insn".
3891
3892 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
3893
3894 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
3895 "insn", "def_insn".
3896 (m68k_sched_variable_issue): Likewise for param "insn".
3897
3898 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
3899 "def_insn".
3900
3901 * config/microblaze/microblaze.c (microblaze_adjust_cost):
3902 Likewise for params "insn", "dep".
3903
3904 * config/mips/mips.c (mips_adjust_cost): Likewise.
3905 (mips_variable_issue): Likewise for param "insn".
3906 (mips_final_postscan_insn): Likewise.
3907
3908 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
3909 for params "insn", "dep".
3910
3911 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
3912 "dep_insn".
3913 (pa_adjust_priority): Likewise for param "insn".
3914
3915 * config/picochip/picochip.c (picochip_sched_adjust_cost):
3916 Likewise for params "insn", "dep_insn".
3917
3918 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
3919 param "insn".
3920 (rs6000_variable_issue): Likewise.
3921 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
3922 (rs6000_debug_adjust_cost): Likewise.
3923 (rs6000_adjust_priority): Likewise for param "insn".
3924 (rs6000_use_sched_lookahead_guard): Likewise.
3925 (get_next_active_insn): Likewise for return type and both params.
3926 (redefine_groups): Likewise for params "prev_head_insn", "tail"
3927 and locals "insn", "next_insn".
3928 (pad_groups): Likewise.
3929
3930 * config/s390/s390.c (s390_adjust_priority): Likewise for param
3931 "insn".
3932 (s390_cannot_copy_insn_p): Likewise.
3933 (s390_sched_variable_issue): Likewise for third param, eliminating
3934 checked cast.
3935 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
3936 default hook implementation from hook_constcharptr_const_rtx_null
3937 to hook_constcharptr_const_rtx_insn_null.
3938
3939 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
3940 from rtx to rtx_insn *.
3941 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
3942 (sh_variable_issue): Likewise for param "insn".
3943 (sh_dfa_new_cycle): Likewise.
3944 (sh_mode_needed): Likewise.
3945 (sh_mode_after): Likewise.
3946
3947 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
3948 params "insn", "dep_insn".
3949 (hypersparc_adjust_cost): Likewise.
3950 (sparc_adjust_cost): Likewise.
3951
3952 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
3953 param, eliminated checked cast.
3954 (spu_sched_adjust_cost): Likewise for first and third params.
3955
3956 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
3957 params "insn" and "dep_insn" from rtx to rtx_insn *.
3958
3959 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
3960
3961 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3962
3963 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
3964 (set_is_load_p): ...this, updating to work on a SET pattern rather
3965 than an insn.
3966 (is_store_insn): Rename to...
3967 (set_is_store_p): ...this, updating to work on a SET pattern
3968 rather than an insn.
3969 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
3970 top of function to where it is needed. Rewrite the bogus
3971 condition that checks for "insn" and "dep" being PARALLEL to
3972 instead use single_set, introducing locals "insn_set" and
3973 "dep_set". Given that we only ever returned "cost" for a non-pair
3974 of SETs, bail out early if we don't have a pair of SET.
3975 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
3976 use the new locals "insn_set" and "dep_set", and update calls to
3977 is_load_insn and is_store_insn to be calls to set_is_load_p and
3978 set_is_store_p.
3979
3980 2014-08-27 Guozhi Wei <carrot@google.com>
3981
3982 PR target/62262
3983 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
3984 amount before using it.
3985
3986 2014-08-27 Richard Biener <rguenther@suse.de>
3987
3988 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
3989 get_maxval_strlen inside a more useful API.
3990 (gimple_fold_builtin_with_strlen): Remove and fold into ...
3991 (gimple_fold_builtin): ... caller.
3992 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
3993 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
3994 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
3995 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
3996 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
3997 gimple_fold_builtin_sprintf): Adjust to compute maxval
3998 themselves.
3999
4000 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4001
4002 PR other/62248
4003 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4004
4005 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4006 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4007 Anna Tikhonova <anna.tikhonova@intel.com>
4008 Ilya Tocar <ilya.tocar@intel.com>
4009 Andrey Turetskiy <andrey.turetskiy@intel.com>
4010 Ilya Verbin <ilya.verbin@intel.com>
4011 Kirill Yukhin <kirill.yukhin@intel.com>
4012 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4013
4014 * config/i386/sse.md
4015 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4016 Use `concat_tg_mode' attribute to determine asm register size.
4017
4018 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4019 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4020 Anna Tikhonova <anna.tikhonova@intel.com>
4021 Ilya Tocar <ilya.tocar@intel.com>
4022 Andrey Turetskiy <andrey.turetskiy@intel.com>
4023 Ilya Verbin <ilya.verbin@intel.com>
4024 Kirill Yukhin <kirill.yukhin@intel.com>
4025 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4026
4027 * config/i386/sse.md
4028 (define_mode_iterator VI48_AVX512VL): New.
4029 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4030 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4031 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4032 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4033 with VI1): Change mode iterator.
4034 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4035 with VI_ULOADSTORE_BW_AVX512VL): New.
4036 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4037 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4038 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4039 with VI1): Change mode iterator.
4040 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4041 with VI_ULOADSTORE_BW_AVX512VL): New.
4042 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4043 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4044 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4045 with VI1): Change mode iterator.
4046 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4047 with VI_ULOADSTORE_BW_AVX512VL): New.
4048 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4049 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4050 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4051 (define_insn "<avx512>_storedqu<mode>_mask" with
4052 VI48_AVX512VL): New.
4053 (define_insn "<avx512>_storedqu<mode>_mask" with
4054 VI12_AVX512VL): Ditto.
4055
4056 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4057 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4058 Anna Tikhonova <anna.tikhonova@intel.com>
4059 Ilya Tocar <ilya.tocar@intel.com>
4060 Andrey Turetskiy <andrey.turetskiy@intel.com>
4061 Ilya Verbin <ilya.verbin@intel.com>
4062 Kirill Yukhin <kirill.yukhin@intel.com>
4063 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4064
4065 * config/i386/sse.md
4066 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4067 (define_mode_iterator VI48_AVX512BW): New.
4068 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4069 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4070 with VI48_AVX2_48_AVX512F): New.
4071 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4072 with VI2_AVX512VL): Ditto.
4073
4074 2014-08-27 Richard Biener <rguenther@suse.de>
4075
4076 PR middle-end/62239
4077 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4078 (fold_builtin_3): Do not fold strcat_chk here.
4079 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4080 from builtins.c.
4081 (gimple_fold_builtin): Fold strcat_chk here.
4082
4083 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4084
4085 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4086 * dwarf2out.c (dwarf2out_decl): Make static.
4087
4088 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4089
4090 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4091
4092 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4093
4094 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4095 from rtx to rtx_insn *.
4096 (cselib_lookup_from_insn): Likewise for final param.
4097 (cselib_subst_to_values_from_insn): Likewise.
4098 (cselib_add_permanent_equiv): Likewise.
4099
4100 * cselib.c (cselib_current_insn): Likewise for this variable.
4101 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4102 (cselib_lookup_from_insn): Likewise.
4103 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4104 "save_cselib_current_insn".
4105 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4106
4107 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4108 from rtx to rtx_insn *.
4109
4110 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4111
4112 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4113 rtx_insn *.
4114
4115 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4116
4117 * df.h (df_dump_insn_problem_function): Strengthen first param of
4118 this callback from const_rtx to const rtx_insn *.
4119 (struct df_insn_info): Strengthen field "insn" from rtx to
4120 rtx_insn *.
4121 (DF_REF_INSN): Eliminate this function, reinstating the older
4122 macro definition.
4123 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4124 (df_reg_defined): Likewise.
4125 (df_find_use): Likewise.
4126 (df_reg_used): Likewise.
4127 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4128 const rtx_insn *.
4129 (df_dump_insn_bottom): Likewise.
4130 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4131 (df_insn_debug_regno): Likewise.
4132 (debug_df_insn): Likewise.
4133 (df_rd_simulate_one_insn): Likewise for param 2.
4134 (df_word_lr_simulate_defs): Likewise for param 1.
4135 (df_word_lr_simulate_uses): Likewise.
4136 (df_md_simulate_one_insn): Likewise for param 2.
4137 (df_simulate_find_noclobber_defs): Likewise for param 1.
4138 (df_simulate_find_defs): Likewise.
4139 (df_simulate_defs): Likewise.
4140 (df_simulate_uses): Likewise.
4141 (df_simulate_one_insn_backwards): Likewise for param 2.
4142 (df_simulate_one_insn_forwards): Likewise.
4143 (df_uses_create): Likewise for param 2.
4144 (df_insn_create_insn_record): Likewise for param 1.
4145 (df_insn_delete): Likewise.
4146 (df_insn_rescan): Likewise.
4147 (df_insn_rescan_debug_internal): Likewise.
4148 (df_insn_change_bb): Likewise.
4149 (df_notes_rescan): Likewise.
4150 * rtl.h (remove_death): Likewise for param 2.
4151 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4152 const rtx_insn *.
4153 * sched-int.h (reemit_notes): Strengthen param from rtx to
4154 rtx_insn *.
4155 * valtrack.h (propagate_for_debug): Likewise for param 1.
4156
4157 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4158 local "tmp_rtx" from const_rtx to const rtx_insn *.
4159 * combine.c (remove_death): Strengthen param "insn" from rtx to
4160 rtx_insn *.
4161 (move_deaths): Likewise for local "where_dead".
4162 * cse.c (delete_trivially_dead_insns): Introduce local
4163 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4164 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4165 rtx_insn *.
4166 (df_reg_defined): Likewise.
4167 (df_find_use): Likewise.
4168 (df_reg_used): Likewise.
4169 (df_dump_insn_problem_data): Strengthen param "insn" from
4170 const_rtx to const rtx_insn *.
4171 (df_dump_insn_top): Likewise.
4172 (df_dump_insn_bottom): Likewise.
4173 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4174 (df_insn_debug_regno): Likewise.
4175 (debug_df_insn): Likewise.
4176 (DF_REF_INSN): Delete.
4177 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4178 from rtx to rtx_insn *.
4179 (df_chain_insn_top_dump): Strengthen param "insn" from
4180 const_rtx to const rtx_insn *.
4181 (df_chain_insn_bottom_dump): Likewise.
4182 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4183 rtx_insn *.
4184 (df_word_lr_simulate_uses): Likewise.
4185 (df_print_note): Likewise.
4186 (df_remove_dead_and_unused_notes): Likewise.
4187 (df_set_unused_notes_for_mw): Likewise.
4188 (df_set_dead_notes_for_mw): Likewise.
4189 (df_create_unused_note): Likewise.
4190 (df_simulate_find_defs): Likewise.
4191 (df_simulate_find_uses): Likewise.
4192 (df_simulate_find_noclobber_defs): Likewise.
4193 (df_simulate_defs): Likewise.
4194 (df_simulate_uses): Likewise.
4195 (df_simulate_one_insn_backwards): Likewise.
4196 (df_simulate_one_insn_forwards): Likewise.
4197 (df_md_simulate_one_insn): Likewise.
4198 * df-scan.c (df_uses_create): Likewise.
4199 (df_insn_create_insn_record): Likewise.
4200 (df_insn_delete): Likewise.
4201 (df_insn_rescan): Likewise.
4202 (df_insn_rescan_debug_internal): Likewise.
4203 (df_insn_change_bb): Likewise.
4204 (df_notes_rescan): Likewise.
4205 (df_refs_add_to_chains): Likewise.
4206 (df_insn_refs_verify): Likewise.
4207 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4208 when invoking df_insn_delete.
4209 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4210 (set_unique_reg_note): Add checked cast.
4211 * final.c (cleanup_subreg_operands): Likewise.
4212 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4213 "insn" from rtx to rtx_insn *.
4214 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4215 "last" from rtx to rtx_insn *.
4216 * ira-emit.c (change_regs_in_insn): New function.
4217 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4218 Invoke change_regs_in_insn rather than change_regs.
4219 * ira.c (update_equiv_regs): Strengthen locals "insn",
4220 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4221 for_each_rtx_in_insn rather than for_each_rtx.
4222 * recog.c (confirm_change_group): Add checked casts.
4223 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4224 Add checked cast.
4225 (peep2_fill_buffer): Add checked cast.
4226 * rtlanal.c (remove_note): Likewise.
4227 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4228 locals "next" "end" from rtx to rtx_insn *.
4229
4230 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4231
4232 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4233 to rtx_insn *.
4234 (struct reg_use_data): Likewise for field "insn".
4235 (insn_cost): Likewise for param.
4236 (real_insn_for_shadow): Likewise for return type and param.
4237 (increase_insn_priority): Likewise for param 1.
4238 (debug_dependencies): Likewise for both params.
4239
4240 * haifa-sched.c (insn_delay): Likewise for param "insn".
4241 (real_insn_for_shadow): Likewise for return type and param "insn".
4242 (update_insn_after_change): Likewise for param "insn".
4243 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4244 "other".
4245 (insn_cost): Likewise for param "insn".
4246 (increase_insn_priority): Likewise.
4247 (calculate_reg_deaths): Likewise.
4248 (setup_insn_reg_pressure_info): Likewise.
4249 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4250 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4251 (model_recompute): Likewise.
4252 (must_restore_pattern_p): Likewise for param "next".
4253 (model_excess_cost): Likewise for param "insn".
4254 (queue_remove): Likewise.
4255 (adjust_priority): Likewise for param "prev".
4256 (update_register_pressure): Likewise for param "insn".
4257 (setup_insn_max_reg_pressure): Likewise for local "insn".
4258 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4259 (model_add_to_schedule): Likewise.
4260 (model_reset_queue_indices): Likewise for local "insn".
4261 (unschedule_insns_until): Strengthen local "recompute_vec" from
4262 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4263 "con" from rtx to rtx_insn *.
4264 (restore_last_backtrack_point): Likewise for both locals "x". Add
4265 checked casts.
4266 (estimate_insn_tick): Likewise for param "insn".
4267 (commit_schedule): Likewise for params "prev_head", "tail" and
4268 local "x".
4269 (verify_shadows): Likewise for locals "i1", "i2".
4270 (dump_insn_stream): Likewise for params "head", "tail" and locals
4271 "next_tail", "insn".
4272 (schedule_block): Likewise for locals "insn", "x". Add a checked
4273 cast.
4274 (fix_inter_tick): Likewise for params "head", "tail".
4275 (create_check_block_twin): Likewise for local "jump".
4276 (haifa_change_pattern): Likewise for param "insn".
4277 (haifa_speculate_insn): Likewise.
4278 (dump_new_block_header): Likewise for params "head", "tail".
4279 (fix_jump_move): Likewise for param "jump".
4280 (move_block_after_check): Likewise.
4281 (sched_init_insn_luid): Likewise for param "insn".
4282 (sched_init_luids): Likewise for local "insn".
4283 (insn_luid): Likewise for param "insn".
4284 (init_h_i_d): Likewise.
4285 (haifa_init_h_i_d): Likewise for local "insn".
4286 (haifa_init_insn): Likewise for param "insn".
4287 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4288 "other".
4289 (create_insn_reg_use): Likewise for param "insn".
4290 (setup_insn_reg_uses): Likewise. Add a checked cast.
4291 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4292 "tail" from rtx to rtx_insn *.
4293 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4294 "insn", "next_tail".
4295
4296 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4297
4298 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4299 from rtx to rtx_insn *.
4300 (model_add_to_schedule): Likewise for locals "start", "end",
4301 "iter".
4302
4303 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4304
4305 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4306 rtx_insn *.
4307 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4308 "to" and locals "insn", "next", "copy". Remove now-redundant
4309 checked cast.
4310
4311 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4312
4313 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4314 rtx_insn * and param 4 from rtx * to rtx_insn **.
4315 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4316 param 2 from rtx * to rtx_insn **.
4317
4318 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4319 rtx_insn * and final param from rtx * to rtx_insn **.
4320
4321 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4322 from rtx to rtx_insn *.
4323 (try_head_merge_bb): Likewise for both locals named "move_upto".
4324 * df-problems.c (can_move_insns_across): Likewise for params
4325 "from", "to", "across_from", "across_to" and locals "insn",
4326 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4327 rtx_insn **.
4328 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4329 from rtx to rtx_insn *.
4330 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4331 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4332 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4333 rtx_insn *.
4334 (noce_try_abs): Likewise.
4335 (noce_get_condition): Likewise for param "jump". Strengthen param
4336 "earliest" from rtx * to rtx_insn **.
4337 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4338 rtx_insn *.
4339 (find_cond_trap): Likewise.
4340 (dead_or_predicable): Likewise for local "earliest".
4341 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4342 checked cast.
4343 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4344 and local "prev". Strengthen param "earliest" from rtx * to
4345 rtx_insn **.
4346 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4347 Strengthen param "earliest" from rtx * to rtx_insn **.
4348
4349 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4350
4351 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4352 "to" and local "insn" from rtx to rtx_insn *.
4353
4354 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4355
4356 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4357 from rtx to rtx_insn *.
4358 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4359 (code_motion_path_driver): Likewise for local "last_insn".
4360 (simplify_changed_insns): Likewise for local "insn".
4361
4362 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4363
4364 * rtl.h (push_to_sequence): Strengthen param from rtx to
4365 rtx_insn *.
4366 (push_to_sequence2): Likewise for both params.
4367 (delete_insns_since): Likewise for param.
4368 (reorder_insns_nobb): Likewise for all three params.
4369 (set_new_first_and_last_insn): Likewise for both params.
4370
4371 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4372 rtx_insn *. Remove now-redundant cast.
4373 (set_last_insn): Likewise.
4374
4375 * builtins.c (expand_builtin_return): Strengthen local
4376 "call_fusage" from rtx to rtx_insn *.
4377 * cfgrtl.c (create_basic_block_structure): Likewise for local
4378 "after".
4379 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4380 "first", "last" and local "insn".
4381 (delete_insns_since): Likewise for param "from".
4382 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4383 and local "x".
4384 (push_to_sequence): Likewise for param "first" and local "last".
4385 (push_to_sequence2): Likewise for params "first" and "last".
4386 * lra.c (emit_add3_insn): Likewise for local "last".
4387 (lra_emit_add): Likewise.
4388 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4389 "last_insn".
4390 (process_address_1): Likewise for locals "insn", last".
4391 * modulo-sched.c (ps_first_note): Likewise for return type.
4392 * optabs.c (expand_binop_directly): Likewise for param "last".
4393
4394 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4395
4396 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4397 to rtx_insn*.
4398 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4399
4400 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4401
4402 * function.h (struct sequence_stack): Strengthen fields "first"
4403 and "last" from rtx to rtx_insn *.
4404 (struct emit_status): Likewise for fields "x_first_insn" and
4405 "x_last_insn".
4406
4407 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4408 (set_first_insn): Add checked cast.
4409 (get_last_insn): Remove now-redundant checked cast.
4410 (set_last_insn): Add checked cast.
4411
4412 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4413 "saved_first" and "saved_last" from rtx to rtx_insn *.
4414
4415 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4416
4417 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4418 (unlink_insn_chain): Strengthen both params from rtx to
4419 rtx_insn *.
4420
4421 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4422 variable.
4423 (unlink_insn_chain): Likewise for params "first" and "last".
4424 Remove now-redundant checked cast.
4425 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4426 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4427 rtx_insn *.
4428 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4429 params.
4430 (add_insn): Likewise for param "insn" and local "prev".
4431 (add_insn_after_nobb): Likewise for both params and local "next".
4432 (add_insn_before_nobb): Likewise for both params and local "prev".
4433 (add_insn_after): Rename param "after" to "uncast_after",
4434 introducing local "after" with another checked cast.
4435 (add_insn_before): Rename params "insn" and "before", giving them
4436 "uncast_" prefixes, adding the old names back using checked casts.
4437 (emit_note_after): Likewise for param "after".
4438 (emit_note_before): Likewise for param "before".
4439 (emit_label): Add a checked cast.
4440
4441 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4442
4443 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4444 "insn" from rtx to rtx_insn *.
4445
4446 * cselib.c (cselib_record_sets_hook): Likewise.
4447
4448 * var-tracking.c (add_with_sets): Likewise, renaming back from
4449 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4450 to rtx_insn *.
4451
4452 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4453
4454 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4455 and "header_" from rtx to rtx_insn *.
4456 (struct basic_block_d): Likewise for field "head_" within "x"
4457 field of union basic_block_il_dependent.
4458 (BB_HEAD): Drop function...
4459 (SET_BB_HEAD): ...and this function in favor of...
4460 (BB_HEAD): ...reinstate macro.
4461 (BB_END): Drop function...
4462 (SET_BB_END): ...and this function in favor of...
4463 (BB_END): ...reinstate macro.
4464 (BB_HEADER): Drop function...
4465 (SET_BB_HEADER): ...and this function in favor of...
4466 (BB_HEADER): ...reinstate macro.
4467
4468 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4469 (fix_crossing_unconditional_branches): Likewise.
4470 * caller-save.c (save_call_clobbered_regs): Likewise.
4471 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4472 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4473 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4474 (merge_blocks_move_successor_nojumps): Likewise.
4475 (outgoing_edges_match): Update use of for_each_rtx to
4476 for_each_rtx_in_insn.
4477 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4478 (expand_gimple_cond): Likewise.
4479 (expand_gimple_tailcall): Likewise.
4480 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4481 SET_BB_END.
4482 (construct_exit_block): Drop use of SET_BB_END.
4483 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4484 rtx_insn *.
4485 (delete_insn): Rename param "insn" to "uncast_insn", introducing
4486 a new local "insn" with a checked cast to rtx_insn *. Drop use of
4487 SET_BB_HEAD and SET_BB_END.
4488 (create_basic_block_structure): Drop use of SET_BB_HEAD and
4489 SET_BB_END.
4490 (rtl_delete_block): Drop use of SET_BB_HEAD.
4491 (rtl_split_block): Drop use of SET_BB_END.
4492 (emit_nop_for_unique_locus_between): Likewise.
4493 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4494 (block_label): Drop use of SET_BB_HEAD.
4495 (fixup_abnormal_edges): Drop use of SET_BB_END.
4496 (record_effective_endpoints): Drop use of SET_BB_HEADER.
4497 (relink_block_chain): Likewise.
4498 (fixup_reorder_chain): Drop use of SET_BB_END.
4499 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4500 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4501 rtx_insn **. Drop use of SET_BB_HEADER.
4502 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4503 SET_BB_HEAD.
4504 (BB_HEAD): Delete this function.
4505 (SET_BB_HEAD): Likewise.
4506 (BB_END): Likewise.
4507 (SET_BB_END): Likewise.
4508 (BB_HEADER): Likewise.
4509 (SET_BB_HEADER): Likewise.
4510 * emit-rtl.c (add_insn_after): Rename param "insn" to
4511 "uncast_insn", adding a new local "insn" and a checked cast to
4512 rtx_insn *. Drop use of SET_BB_END.
4513 (remove_insn): Strengthen locals "next" and "prev" from rtx to
4514 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
4515 (reorder_insns): Drop use of SET_BB_END.
4516 (emit_insn_after_1): Strengthen param "first" and locals "last",
4517 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
4518 (emit_pattern_after_noloc): Add checked cast.
4519 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4520 (restore_other_notes): Likewise.
4521 (move_insn): Likewise.
4522 (sched_extend_bb): Likewise.
4523 (fix_jump_move): Likewise.
4524 * ifcvt.c (noce_process_if_block): Likewise.
4525 (dead_or_predicable): Likewise.
4526 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4527 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4528 * sel-sched-ir.c (sel_move_insn): Likewise.
4529 * sel-sched.c (move_nop_to_previous_block): Likewise.
4530
4531 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4532 SET_BB_END.
4533 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4534
4535 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4536
4537 * basic-block.h (create_basic_block_structure): Strengthen params
4538 1 "head" and 2 "end" from rtx to rtx_insn *.
4539 * cfgrtl.c (create_basic_block_structure): Likewise.
4540 (rtl_create_basic_block): Update casts from void * to rtx to
4541 rtx_insn *, so that we can pass them as rtx_insn * to
4542 create_basic_block_structure.
4543 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4544
4545 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4546
4547 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4548 rtx_insn **.
4549 (check_for_inc_dec): Strengthen param "insn" from rtx to
4550 rtx_insn *.
4551
4552 * cselib.h (cselib_process_insn): Likewise.
4553
4554 * cselib.c (cselib_record_sets): Likewise.
4555 (cselib_process_insn): Likewise.
4556
4557 * dse.c (struct insn_info): Likewise for field "insn".
4558 (check_for_inc_dec_1): Likewise for local "insn".
4559 (check_for_inc_dec): Likewise for param "insn".
4560 (scan_insn): Likewise.
4561 (dse_step1): Likewise for local "insn".
4562
4563 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4564 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
4565
4566 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4567
4568 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4569 from rtx to rtx_insn *.
4570 (DEP_PRO): Delete this function and...
4571 (SET_DEP_PRO): ...this function in favor of...
4572 (DEP_PRO): ...reinstate this macro.
4573 (DEP_CON): Delete this function and...
4574 (SET_DEP_CON): ...this function in favor of...
4575 (DEP_CON): ...reinstate this old macro.
4576 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4577 (init_dep): Likewise.
4578 (set_priorities): Likewise for both params.
4579 (sd_copy_back_deps): Likewise for params 1 and 2.
4580
4581 * haifa-sched.c (priority): Likewise for param "insn" and local
4582 "next".
4583 (set_priorities): Likewise for params "head" and "tail" and local
4584 "insn".
4585 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4586 local "consumer".
4587 (add_to_speculative_block): Add a checked cast.
4588 (create_check_block_twin): Drop use of SET_DEP_CON.
4589 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4590 rtx to rtx_insn *.
4591
4592 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4593 Drop use of SET_DEP_PRO
4594 (init_dep): Strengthen params "pro" and "con" from rtx to
4595 rtx_insn *.
4596 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4597 use of SET_DEP_CON.
4598 (DEP_PRO): Delete.
4599 (DEP_CON): Delete.
4600 (SET_DEP_PRO): Delete.
4601 (SET_DEP_CON): Delete.
4602
4603 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4604
4605 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4606 from rtx to rtx_insn *.
4607 (VINSN_INSN_RTX): Eliminate rvalue function and...
4608 (SET_VINSN_INSN): ...lvalue function in favor of...
4609 (VINSN_INSN_RTX): reinstate this old macro.
4610
4611 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4612 in favor of VINSN_INSN_RTX.
4613 (VINSN_INSN_RTX): Delete this function.
4614 (SET_VINSN_INSN_RTX): Likewise.
4615
4616 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4617
4618 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4619 (BND_TO): Delete this function and...
4620 (SET_BND_TO): ...this functions in favor of...
4621 (BND_TO): ...reinstating this macro.
4622 (struct _fence): Strengthen field "executing_insns" from
4623 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4624 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4625 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4626 and param "insn" from rtx to insn_t.
4627 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4628 rtx_insn *.
4629
4630 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4631 vec<rtx_insn *> .
4632 (rtx_vec_t): Likewise.
4633 (struct sched_deps_info_def): Strengthen param of "start_insn"
4634 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4635 "note_mem_dep" callback and first param of "note_dep" callback.
4636
4637 * haifa-sched.c (add_to_speculative_block): Strengthen param
4638 "insn" from rtx to rtx_insn *.
4639 (clear_priorities): Likewise.
4640 (calc_priorities): Likewise for local "insn".
4641
4642 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4643 Remove redundant checked cast.
4644 (haifa_note_mem_dep): Likewise for param "pending_insn".
4645 (haifa_note_dep): Likewise for param "elem".
4646 (note_mem_dep): Likewise for param "e".
4647 (sched_analyze_1): Add checked casts.
4648 (sched_analyze_2): Likewise.
4649
4650 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4651 from rtx to rtx_insn *.
4652 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4653 from vec<rtx> * to vec<rtx_insn *> *.
4654
4655 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4656 scaffolding.
4657 (flist_add): Strengthen param "executing_insns" from
4658 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4659 (advance_deps_context): Remove now-redundant checked cast.
4660 (init_fences): Replace uses of NULL_RTX with NULL.
4661 (merge_fences): Strengthen params "last_scheduled_insn" and
4662 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4663 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4664 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4665 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4666 an instruction, rather than doing double-duty as a pattern.
4667 (return_nop_to_pool): Update for change of insn_t.
4668 (deps_init_id): Remove now-redundant checked cast.
4669 (struct sched_scan_info_def): Strengthen param of "init_insn"
4670 callback from rtx to insn_t.
4671 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4672 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4673 NULL.
4674 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4675 "end" from rtx to rtx_insn *.
4676 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4677 (rtx insn_rtx, bool force_unique_p)
4678 (BND_TO): Delete function.
4679 (SET_BND_TO): Delete function.
4680
4681 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4682 rtx to rtx_insn *.
4683 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4684 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4685 rtx to rtx_insn *.
4686 (undo_transformations): Likewise for param "insn".
4687 (update_liveness_on_insn): Likewise.
4688 (compute_live_below_insn): Likewise for param "insn" and local
4689 "succ".
4690 (update_data_sets): Likewise for param "insn".
4691 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4692 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4693 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4694 rtx_insn *.
4695 (move_cond_jump): Likewise for param "insn".
4696 (move_cond_jump): Drop use of SET_BND_TO.
4697 (compute_av_set_on_boundaries): Likewise.
4698 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4699 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4700 from rtx to rtx_insn *.
4701 (maybe_emit_renaming_copy): Likewise for param "insn".
4702 (maybe_emit_speculative_check): Likewise.
4703 (handle_emitting_transformations): Likewise.
4704 (remove_insn_from_stream): Likewise.
4705 (code_motion_process_successors): Strengthen local "succ" from rtx
4706 to insn_t.
4707
4708 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4709
4710 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4711 ilist_t, not _xlist_t;
4712 (ILIST_INSN): Define in terms of new union field "insn".
4713 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4714 _XLIST_NEXT.
4715 (struct _list_node): Add new field "insn" to the union, of type
4716 insn_t.
4717 (ilist_add): Replace macro with an inline function, requiring an
4718 insn_t.
4719 (ilist_remove): Define this macro directly in terms of
4720 _list_remove, rather than indirectly via _xlist_remove.
4721 (ilist_clear): Likewise, in terms of _list_clear rather than
4722 _xlist_clear.
4723 (ilist_is_in_p): Replace macro with an inline function, requiring
4724 an insn_t.
4725 (_list_iter_cond_insn): New function.
4726 (ilist_iter_remove): Define this macro directly in terms of
4727 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4728 (ilist_iterator): Define directly in terms of _list_iterator
4729 rather than indirectly through _xlist_iterator.
4730 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4731 than in terms of _FOR_EACH_X.
4732 (FOR_EACH_INSN_1): Likewise.
4733
4734 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4735
4736 PR target/60606
4737 PR target/61330
4738 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
4739 DECL_HARD_REGISTER and return for invalid register specifications.
4740 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
4741 DECL_HARD_REGISTER, call expand_one_error_var.
4742 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
4743 CC_REGNUM with non-MODE_CC modes.
4744 (arm_regno_class): Return NO_REGS for PC_REGNUM.
4745
4746 2014-08-26 Marek Polacek <polacek@redhat.com>
4747
4748 PR c/61271
4749 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
4750
4751 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
4752
4753 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
4754 qi cost; add di cost.
4755 (cortexa57_addrcost_table): Likewise.
4756
4757 2014-08-26 Marek Polacek <polacek@redhat.com>
4758
4759 PR c/61271
4760 * expr.c (is_aligning_offset): Remove logical not.
4761
4762 2014-08-26 Marek Polacek <polacek@redhat.com>
4763
4764 PR c/61271
4765 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
4766 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
4767
4768 2014-08-26 Richard Biener <rguenther@suse.de>
4769
4770 PR tree-optimization/62175
4771 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
4772 expand possibly trapping operations.
4773
4774 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4775
4776 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
4777 "insn" from rtx to rtx_insn *.
4778 (permute_load): Likewise for param "insn".
4779 (permute_store): Likewise.
4780 (handle_special_swappables): Likewise for local "insn".
4781 (replace_swap_with_copy): Likewise for locals "insn" and
4782 "new_insn".
4783 (rs6000_analyze_swaps): Likewise for local "insn".
4784
4785 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4786
4787 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
4788 to rtx_insn *.
4789
4790 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4791
4792 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
4793 "note_list" from rtx to rtx_insn *.
4794 (BB_NOTE_LIST): Replace this function and...
4795 (SET_BB_NOTE_LIST): ...this function with...
4796 (BB_NOTE_LIST): ...the former macro implementation.
4797
4798 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
4799 local "from_start" from rtx to rtx_insn *. Strengthen param
4800 "to_endp" from rtx * to rtx_insn **.
4801
4802 * haifa-sched.c (concat_note_lists): Likewise.
4803 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
4804 BB_NOTE_LIST.
4805 (sel_restore_notes): Likewise.
4806 (move_bb_info): Likewise.
4807 (BB_NOTE_LIST): Delete this function.
4808 (SET_BB_NOTE_LIST): Delete this function.
4809 * sel-sched.c (create_block_for_bookkeeping): Eliminate
4810 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
4811
4812 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4813
4814 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
4815 from rtx * to rtx_insn **.
4816 (reorder2): Likewise.
4817 (dependencies_evaluation_hook): Strengthen params "head", "tail"
4818 from rtx to rtx_insn *.
4819
4820 * doc/tm.texi: Update mechanically for above change to target.def.
4821
4822 * sched-int.h (note_list): Strengthen this variable from rtx to
4823 rtx_insn *.
4824 (remove_notes): Likewise for both params.
4825 (restore_other_notes): Likewise for return type and first param.
4826 (struct ready_list): Strengthen field "vec" from rtx * to
4827 rtx_insn **.
4828 (struct dep_replacement): Strenghten field "insn" from rtx to
4829 rtx_insn *.
4830 (struct deps_desc): Likewise for fields "last_debug_insn",
4831 "last_args_size".
4832 (struct haifa_sched_info): Likewise for callback field
4833 "can_schedule_ready_p"'s param, for first param of "new_ready"
4834 callback field, for both params of "rank" callback field, for
4835 first field of "print_insn" callback field (with a const), for
4836 both params of "contributes_to_priority" callback, for param
4837 of "insn_finishes_block_p" callback, for fields "prev_head",
4838 "next_tail", "head", "tail", for first param of "add_remove_insn"
4839 callback, for first param of "begin_schedule_ready" callback, for
4840 both params of "begin_move_insn" callback, and for second param
4841 of "advance_target_bb" callback.
4842 (add_dependence): Likewise for params 1 and 2.
4843 (sched_analyze): Likewise for params 2 and 3.
4844 (deps_analyze_insn): Likewise for param 2.
4845 (ready_element): Likewise for return type.
4846 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4847 (try_ready): Strenghten param from rtx to rtx_insn *.
4848 (sched_emit_insn): Likewise for return type.
4849 (record_delay_slot_pair): Likewise for params 1 and 2.
4850 (add_delay_dependencies): Likewise for param.
4851 (contributes_to_priority): Likewise for both params.
4852 (find_modifiable_mems): Likewise.
4853
4854 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
4855 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
4856 "first_older_only_insn" from rtx to rtx_insn *.
4857 (arm_sched_reorder): Strengthen param "ready" from rtx * to
4858 rtx_insn **.
4859
4860 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
4861 "last_scheduled_iter0" from rtx to rtx_insn *.
4862 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
4863 (c6x_sched_reorder_1): Strengthen param "ready" and locals
4864 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4865 "insn" from rtx to rtx_insn *.
4866 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
4867 rtx_insn **.
4868 (c6x_sched_reorder2): Strengthen param "ready" and locals
4869 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4870 "insn" from rtx to rtx_insn *.
4871 (c6x_variable_issue): Add a checked cast when assigning from insn
4872 to ss.last_scheduled_iter0.
4873 (split_delayed_branch): Strengthen param "insn" and local "i1"
4874 from rtx to rtx_insn *.
4875 (split_delayed_nonbranch): Likewise.
4876 (undo_split_delayed_nonbranch): Likewise for local "insn".
4877 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
4878 "entry_after", "end_packet", "head_insn", "tail_insn",
4879 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
4880 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
4881 to rtx_insn **. Remove now-redundant checked cast on last_insn,
4882 but add a checked cast on loop->start_label. Consolidate calls to
4883 avoid assigning result of gen_spkernel to "insn", now an
4884 rtx_insn *.
4885
4886 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
4887 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
4888 rtx to rtx_insn *.
4889 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
4890 rtx_insn **. Strengthen locals "top", "next" from rtx to
4891 rtx_insn *.
4892 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
4893 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4894 (add_parameter_dependencies): Strengthen params "call", "head" and
4895 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
4896 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
4897 (add_dependee_for_func_arg): Likewise for param "arg" and local
4898 "insn".
4899 (ix86_dependencies_evaluation_hook): Likewise for params "head",
4900 "tail" and locals "insn", "first_arg".
4901
4902 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
4903 for params "head", "tail" and locals "insn", "next", "next_tail".
4904 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
4905 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
4906 "insn", "lowest", "highest" from rtx to rtx_insn *.
4907 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
4908 rtx_insn **.
4909 (ia64_sched_reorder2): Likewise.
4910
4911 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
4912 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
4913 from rtx * to rtx_insn **.
4914 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
4915 rtx_insn **.
4916 (mep_print_sched_insn): Strengthen param "insn" from rtx to
4917 rtx_insn *.
4918 (mep_sched_reorder): Strengthen param "ready" from rtx * to
4919 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
4920 to rtx_insn *.
4921
4922 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
4923 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
4924 to rtx_insn *.
4925 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
4926 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
4927 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
4928 rtx_insn **.
4929 (vr4130_reorder): Likewise.
4930 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
4931 rtx to rtx_insn *.
4932 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
4933 rtx_insn **.
4934 (mips_sched_reorder): Likewise.
4935 (mips_sched_reorder2): Likewise.
4936
4937 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
4938
4939 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
4940 Strengthen local "tmp" from rtx to rtx_insn *.
4941 (rs6000_sched_reorder2): Likewise.
4942
4943 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
4944 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
4945 (s390_sched_reorder): Strengthen param "ready" from rtx * to
4946 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
4947
4948 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
4949 "tmp2" from rtx to rtx_insn *.
4950 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
4951 Strengthen local "insn" from rtx to rtx_insn *.
4952 (ready_reorder): Strengthen param "ready" from rtx * to
4953 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
4954 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
4955 (sh_reorder2): Likewise.
4956
4957 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
4958 local "insn" from rtx to rtx_insn *.
4959
4960 * haifa-sched.c (note_list): Strengthen this variable from rtx to
4961 rtx_insn *.
4962 (scheduled_insns): Strengthen this variable from vec<rtx> to
4963 vec<rtx_insn *>.
4964 (set_modulo_params): Likewise for locals "i1", "i2".
4965 (record_delay_slot_pair): Likewise for params "i1", "i2".
4966 (add_delay_dependencies): Likewise for param "insn".
4967 (cond_clobbered_p): Likewise.
4968 (recompute_todo_spec): Likewise for local "prev".
4969 (last_scheduled_insn): Likewise for this variable.
4970 (nonscheduled_insns_begin): Likewise.
4971 (model_set_excess_costs): Strengthen param "insns" from rtx * to
4972 rtx_insn **.
4973 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
4974 rtx_insn *.
4975 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
4976 Strengthen local "insn" from rtx to rtx_insn *.
4977 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
4978 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4979 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
4980 (ready_remove_first): Likewise for return type and local "t".
4981 (ready_element): Likewise for return type.
4982 (ready_remove): Likewise for return type and local "t".
4983 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
4984 (check_clobbered_conditions): Strengthen local "x" from rtx to
4985 rtx_insn *, adding a checked cast.
4986 (schedule_insn): Likewise for param "insn".
4987 (remove_notes): Likewise for params "head", "tail" and locals
4988 "next_tail", "insn", "next".
4989 (struct haifa_saved_data): Likewise for fields
4990 "last_scheduled_insn", "nonscheduled_insns_begin".
4991 (save_backtrack_point): Update for change to field "vec" of
4992 struct ready_list.
4993 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
4994 rtx_insn **.
4995 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
4996 from rtx to rtx_insn *
4997 (resolve_dependencies): Strengthen param "insn" from rtx to
4998 rtx_insn *
4999 (restore_other_notes): Likewise for return type, for param "head"
5000 and local "note_head".
5001 (undo_all_replacements): Likewise for local "insn".
5002 (first_nonscheduled_insn): Likewise for return type and local "insn".
5003 (queue_to_ready): Likewise for local "insn", adding checked casts.
5004 (early_queue_to_ready): Likewise for local "insn".
5005 (debug_ready_list_1): Strengthen local "p" from rtx * to
5006 rtx_insn **.
5007 (move_insn): Strengthen param "insn" and local "note" from rtx to
5008 rtx_insn *
5009 (insn_finishes_cycle_p): Likewise for param "insn".
5010 (max_issue): Likewise for local "insn".
5011 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5012 to rtx_insn **.
5013 (commit_schedule): Strengthen param "prev_head" and local "insn"
5014 from rtx to rtx_insn *
5015 (prune_ready_list): Likewise for local "insn".
5016 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5017 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5018 (set_priorities): Likewise for local "prev_head".
5019 (try_ready): Likewise for param "next".
5020 (fix_tick_ready): Likewise.
5021 (change_queue_index): Likewise.
5022 (sched_extend_ready_list): Update for change to field "vec" of
5023 struct ready_list.
5024 (generate_recovery_code): Strengthen param "insn" from rtx to
5025 rtx_insn *.
5026 (begin_speculative_block): Likewise.
5027 (create_check_block_twin): Likewise for param "insn" and locals
5028 "label", "check", "twin". Introduce local "check_pat" to avoid
5029 "check" being used as a plain rtx before being used as an insn.
5030 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5031 extracting elements from ready_list.
5032 (sched_remove_insn): Strengthen param "insn" from rtx to
5033 rtx_insn *.
5034 (sched_emit_insn): Likewise for return type.
5035 (ready_remove_first_dispatch): Likewise for return type and local
5036 "insn".
5037
5038 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5039
5040 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5041 const rtx_insn *.
5042
5043 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5044 from rtx to rtx_insn *.
5045 (add_dependence_list): Likewise for param "insn". Add a checked
5046 cast.
5047 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5048 to rtx_insn *. Strengthen param "list_p" from rtx * to
5049 rtx_insn **.
5050 (chain_to_prev_insn): Strengthen param "insn" and locals
5051 "prec_nonnote", "i" from rtx to rtx_insn *.
5052 (flush_pending_lists): Likewise for param "insn".
5053 (cur_insn): Likewise for this variable.
5054 (haifa_start_insn): Add a checked cast.
5055 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5056 (sched_analyze_reg): Likewise for param "insn".
5057 (sched_analyze_1): Likewise.
5058 (sched_analyze_2): Likewise. Add checked casts.
5059 (sched_analyze_insn): Likewise. Also for local "prev".
5060 (deps_analyze_insn): Likewise for param "insn".
5061 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5062 (add_dependence_1): Likewise for params "insn", "elem".
5063 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5064 (parse_add_or_inc): Likewise for param "insn".
5065 (find_inc): Likewise for local "inc_cand".
5066 (find_modifiable_mems): Likewise for params "head", "tail" and
5067 locals "insn", "next_tail".
5068
5069 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5070 (begin_schedule_ready): Likewise for param "insn".
5071 (begin_move_insn): Likewise for params "insn" and "last".
5072 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5073 const rtx_insn *.
5074 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5075 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5076 (ebb_add_remove_insn): Likewise for param "insn".
5077 (advance_target_bb): Likewise.
5078
5079 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5080 "insn".
5081 (check_live): Likewise for param "insn".
5082 (init_ready_list): Likewise for local "insn".
5083 (can_schedule_ready_p): Likewise for param "insn".
5084 (begin_schedule_ready): Likewise.
5085 (new_ready): Likewise for param "next".
5086 (rgn_print_insn): Likewise for param "insn".
5087 (rgn_rank): Likewise for params "insn1", "insn2".
5088 (contributes_to_priority): Likewise for params "next", "insn".
5089 (rgn_insn_finishes_block_p): Likewise for param "insn".
5090 (add_branch_dependences): Likewise for params "head", "tail" and
5091 locals "insn", "last".
5092 (rgn_add_remove_insn): Likewise for param "insn".
5093 (advance_target_bb): Likewise.
5094
5095 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5096 const_rtx to const rtx_insn *.
5097
5098 * sel-sched-dump.h (sel_print_insn): Likewise.
5099
5100 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5101 (deps_init_id): Likewise.
5102
5103 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5104 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5105 rtx_insn **.
5106
5107 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5108
5109 * output.h (final_start_function): Strengthen param 1 from rtx to
5110 rtx_insn *.
5111
5112 * final.c (final_start_function): Likewise, renaming back from
5113 "uncast_first" to "first", and dropping the checked cast from rtx
5114 to rtx_insn *.
5115
5116 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5117
5118 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5119 * final.c (final): Likewise. Rename param back from
5120 "uncast_first" to "first" and eliminate the checked cast from rtx
5121 to rtx_insn *.
5122
5123 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5124
5125 * output.h (shorten_branches): Strengthen param from rtx to
5126 rtx_insn *.
5127
5128 * final.c (shorten_branches): Likewise, renaming param back from
5129 "uncast_first" to "first", and dropping the checked cast from rtx
5130 to rtx_insn *.
5131
5132 * genattr.c (gen_attr): Likewise when writing out the prototype of
5133 shorten_branches.
5134
5135 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5136
5137 * sched-int.h (struct haifa_sched_info): Strengthen fields
5138 "prev_head" and "next_tail" from rtx to rtx_insn *.
5139
5140 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5141
5142 * rtl.h (rtx_jump_table_data::get_labels): New method.
5143 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5144 with use of the new rtx_jump_table_data::get_labels method.
5145 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5146 to rtx_jump_table_data *. Simplify by using get_labels method.
5147 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5148 a dyn_cast, introducing local "table", using it to replace
5149 label-lookup logic with a get_labels method call.
5150 (patch_jump_insn): Simplify using get_labels method.
5151 * dwarf2cfi.c (create_trace_edges): Likewise.
5152 * rtlanal.c (label_is_jump_target_p): Likewise.
5153
5154 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5155
5156 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5157 to rtx_insn *.
5158
5159 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5160 (unshare_all_rtl_again): Likewise, also for local "p".
5161
5162 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5163
5164 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5165 to rtx_insn *.
5166 * cfgrtl.c (delete_insn_and_edges): Likewise.
5167
5168 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5169
5170 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5171 from rtx to rtx_insn *.
5172
5173 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5174
5175 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5176
5177 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5178 locals "returnjump", "epilogue_end", "insn", "next".
5179
5180 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5181 "returnjump" from rtx * to rtx_insn **.
5182 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5183
5184 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5185
5186 * basic-block.h (struct edge_def). Strengthen "r" within
5187 union edge_def_insns from rtx to rtx_insn *.
5188
5189 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5190 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5191 rtx_insn *.
5192 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5193 from rtx to rtx_insn *.
5194 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5195 rtx_insn *.
5196 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5197 (reg_used_on_edge): Likewise.
5198 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5199 (gt_pch_nx): New overload for rtx_insn *&.
5200 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5201 from rtx to rtx_insn *.
5202
5203 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5204
5205 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5206 from rtx to rtx_insn *.
5207 (BB_FOOTER): Replace function with access macro.
5208 (SET_BB_FOOTER): Delete.
5209
5210 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5211 with BB_FOOTER.
5212 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5213 (emit_barrier_after_bb): Likewise.
5214 (record_effective_endpoints): Likewise.
5215 (relink_block_chain): Likewise.
5216 (fixup_fallthru_exit_predecessor): Likewise.
5217 (cfg_layout_duplicate_bb): Likewise.
5218 (cfg_layout_split_block): Likewise.
5219 (cfg_layout_delete_block): Likewise.
5220 (cfg_layout_merge_blocks): Likewise.
5221 (BB_FOOTER): Delete function.
5222 (SET_BB_FOOTER): Delete function.
5223 * combine.c (update_cfg_for_uncondjump): Replace uses of
5224 SET_BB_FOOTER with BB_FOOTER.
5225
5226 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5227
5228 * except.h (struct eh_landing_pad_d): Strengthen field
5229 "landing_pad" from rtx to rtx_code_label *.
5230
5231 * except.c (sjlj_emit_dispatch_table): Likewise for param
5232 "dispatch_label"
5233 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5234
5235 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5236
5237 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5238 first param from rtx to rtx_insn *.
5239 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5240 field "set_frame_ptr_insn".
5241 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5242 "csend" from rtx to rtx_code_label *.
5243 (xtensa_expand_atomic): Likewise for local "csloop".
5244 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5245 rtx_insn *.
5246 (xtensa_call_tls_desc): Likewise for return type and locals
5247 "call_insn", "insns".
5248 (xtensa_legitimize_tls_address): Likewise for local "insns".
5249 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5250
5251 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5252
5253 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5254 first param from rtx to rtx_insn *.
5255 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5256 "insn".
5257
5258 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5259
5260 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5261 Strengthen param 1 from rtx to rtx_insn *.
5262 (tilepro_output_cbranch): Likewise.
5263 (tilepro_adjust_insn_length): Likewise.
5264 (tilepro_final_prescan_insn): Likewise for sole param.
5265
5266 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5267 Likewise for local "last".
5268 (cbranch_predicted_p): Likewise for param "insn".
5269 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5270 (tilepro_output_cbranch_with_opcode): Likewise.
5271 (tilepro_output_cbranch): Likewise.
5272 (frame_emit_load): Likewise for return type and locals "seq",
5273 "insn".
5274 (emit_sp_adjust): Likewise for return type and local "insn".
5275 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5276 "insn".
5277 (tilepro_adjust_insn_length): Likewise for param "insn".
5278 (next_insn_to_bundle): Likewise for return type and params
5279 "r", "end".
5280 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5281 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5282 local "new_insns".
5283 (match_addli_pcrel): Likewise for param "insn".
5284 (replace_addli_pcrel): Likewise.
5285 (match_auli_pcrel): Likewise.
5286 (replace_auli_pcrel): Likewise.
5287 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5288 "next_insn".
5289 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5290 "queue", "next_queue", "prev".
5291 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5292 (tilepro_final_prescan_insn): Likewise for param "insn".
5293
5294 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5295
5296 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5297 Strengthen param 1 from rtx to rtx_insn *.
5298 (tilegx_output_cbranch): Likewise.
5299 (tilegx_adjust_insn_length): Likewise.
5300 (tilegx_final_prescan_insn): Likewise for sole param.
5301
5302 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5303 or local "last".
5304 (cbranch_predicted_p): Likewise for param "insn".
5305 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5306 (tilegx_output_cbranch_with_opcode): Likewise.
5307 (tilegx_output_cbranch): Likewise.
5308 (frame_emit_load): Likewise for return type.
5309 (set_frame_related_p): Likewise for locals "seq", "insn".
5310 (emit_sp_adjust): Likewise for return type, and for local "insn".
5311 Introduce local "pat" for use in place of "insn" where the latter
5312 isn't an instruction.
5313 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5314 from rtx to rtx_insn *.
5315 (tilegx_adjust_insn_length): Likewise for param "insn".
5316 (next_insn_to_bundle): Likewise for return type and params "r" and
5317 "end".
5318 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5319 "end".
5320 (replace_insns): Likewise for params "old_insn", "new_insns".
5321 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5322 "new_insns".
5323 (replace_mov_pcrel_step2): Likewise.
5324 (replace_mov_pcrel_step3): Likewise.
5325 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5326 "next_insn".
5327 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5328 "queue", "next_queue", "prev".
5329 (tilegx_output_mi_thunk): Likewise for local "insn".
5330 (tilegx_final_prescan_insn): Likewise for param "insn".
5331
5332 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5333
5334 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5335 rtx to rtx_insn *.
5336 (frame_emit_load): Likewise.
5337 (frame_emit_add_imm): Likewise, also for local "insn".
5338 (spu_expand_prologue): Likewise for local "insn".
5339 (struct spu_bb_info): Likewise for field "prop_jump".
5340 (emit_nop_for_insn): Likewise for param "insn" and local
5341 "new_insn".
5342 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5343 "hbr_insn".
5344 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5345 locals "hint", "insn".
5346 (get_branch_target): Likewise for param "branch".
5347 (insn_clobbers_hbr): Likewise for param "insn".
5348 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5349 locals "insn", "before_4", "before_16".
5350 (insert_hbrp): Likewise for local "insn".
5351 (spu_machine_dependent_reorg): Likewise for locals "branch",
5352 "insn", "next", "bbend".
5353 (uses_ls_unit): Likewise for param "insn".
5354 (get_pipe): Likewise.
5355 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5356 introducing a checked cast.
5357 (spu_sched_adjust_cost): Likewise for params "insn" and
5358 "dep_insn".
5359 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5360 (spu_sms_res_mii): Likewise.
5361
5362 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5363
5364 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5365 from rtx to rtx_insn *.
5366 (output_cbranch): Likewise for param 6.
5367 (output_return): Likewise for param 1.
5368 (output_sibcall): Likewise.
5369 (output_v8plus_shift): Likewise.
5370 (output_v8plus_mult): Likewise.
5371 (output_v9branch): Likewise for param 7.
5372 (output_cbcond): Likewise for param 3.
5373
5374 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5375 for local "insn".
5376 (sparc_legitimize_pic_address): Likewise.
5377 (sparc_emit_call_insn): Likewise.
5378 (emit_save_or_restore_regs): Likewise.
5379 (emit_window_save): Likewise for return type and local "insn".
5380 (sparc_expand_prologue): Likewise for local "insn".
5381 (sparc_flat_expand_prologue): Likewise.
5382 (output_return): Likewise for param "insn".
5383 (output_sibcall): Likewise for param "insn" and local "delay".
5384 (output_ubranch): Likewise for param "insn".
5385 (output_cbranch): Likewise.
5386 (output_cbcond): Likewise.
5387 (output_v9branch): Likewise.
5388 (output_v8plus_shift): Likewise.
5389 (sparc_output_mi_thunk): Likewise for local "insn".
5390 (get_some_local_dynamic_name): Likewise.
5391 (output_v8plus_mult): Likewise for param "insn".
5392
5393 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5394
5395 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5396 from rtx to rtx_insn *.
5397 (output_branchy_insn): Likewise for param 3.
5398 (output_far_jump): Likewise for param 1.
5399 (final_prescan_insn): Likewise.
5400 (sh_insn_length_adjustment): Likewise for sole param.
5401
5402 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5403 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5404 rtx_code_label *.
5405 (sh_emit_compare_and_set): Likewise for local "lab".
5406 (output_far_jump): Strengthen param "insn" and local "prev" from
5407 rtx to rtx_insn *.
5408 (output_branchy_insn): Likewise for param "insn" and local
5409 "next_insn".
5410 (output_ieee_ccmpeq): Likewise for param "insn".
5411 (struct label_ref_list_d): Strengthen field "label" from rtx to
5412 rtx_code_label *.
5413 (pool_node): Likewise.
5414 (pool_window_label): Likewise for this global.
5415 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5416 (dump_table): Strengthen params "start", "barrier" and local
5417 "scan" from rtx to rtx_insn *.
5418 (broken_move): Likewise for param "insn".
5419 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5420 Strengthen param "first_mova" from rtx * to rtx_insn **.
5421 (mova_p): Likewise for param "insn".
5422 (fixup_mova): Likewise for param "mova".
5423 (find_barrier): Likewise for return type, params "mova" and
5424 "from", and locals "barrier_before_mova", "found_barrier",
5425 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5426 "label" from rtx to rtx_code_label *.
5427 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5428 rtx to rtx_insn *.
5429 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5430 (split_branches): Likewise for param "first" and local "insn".
5431 (final_prescan_insn): Likewise for param "insn".
5432 (sequence_insn_p): Likewise for locals "prev", "next".
5433 (sh_insn_length_adjustment): Likewise for param "insn".
5434 (sh_can_redirect_branch): Likewise for local "insn".
5435 (find_r0_life_regions): Likewise for locals "end", "insn".
5436 (sh_output_mi_thunk): Likewise for local "insns".
5437
5438 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5439
5440 * config/score/score.c (score_output_mi_thunk): Strengthen local
5441 "insn" from rtx to rtx_insn *.
5442 (score_prologue): Likewise.
5443
5444 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5445
5446 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5447 1 from rtx to rtx_insn *.
5448 (s390_emit_jump): Likewise for return type.
5449 (s390_emit_call): Likewise.
5450 (s390_load_got): Likewise.
5451
5452 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5453 variable.
5454 (s390_match_ccmode): Likewise for param "insn".
5455 (s390_emit_jump): Likewise for return type.
5456 (s390_split_branches): Likewise for local "label".
5457 (struct constant): Strengthen field "label" from rtx to
5458 rtx_code_label *.
5459 (struct constant_pool): Likewise for field "label". Strengthen
5460 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5461 rtx_insn *.
5462 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5463 insns.
5464 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5465 (s390_end_pool): Likewise.
5466 (s390_dump_pool): Likewise for local "insn".
5467 (s390_mainpool_start): Likewise.
5468 (s390_chunkify_start): Likewise.
5469 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5470 with insns. Strengthen locals "label", "jump", "barrier", "next",
5471 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5472 (s390_chunkify_finish): Strengthen local "insn" from rtx to
5473 rtx_insn *.
5474 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5475 "jump", "label", "next_insn".
5476 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5477 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5478 "tbegin_insn".
5479 (s390_load_got): Likewise for return type and local "insns".
5480 (s390_save_gprs_to_fprs): Likewise for local "insn".
5481 (s390_restore_gprs_from_fprs): Likewise.
5482 (pass_s390_early_mach::execute): Likewise.
5483 (s390_emit_prologue): Likewise for local "insns".
5484 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5485 rtx_code_label *.
5486 (s390_emit_call): Strengthen return type and local "insn" from
5487 rtx to rtx_insn *.
5488 (s390_emit_tpf_eh_return): Likewise for local "insn".
5489 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5490 "next_insn", introducing locals "s_pat", "rpat" to allow this.
5491 (s390_fix_long_loop_prediction): Likewise for param "insn" and
5492 local "cur_insn".
5493 (s390_non_addr_reg_read_p): Likewise for param "insn".
5494 (find_cond_jump): Likewise for return type and param "insn".
5495 (s390_swap_cmp): Likewise for param "insn".
5496 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5497 "prev_insn", "next_insn".
5498 (s390_reorg): Likewise for locals "insn", "target".
5499 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5500 (s390_sched_variable_issue): For now, rename param "insn" to
5501 "uncast_insn", introducing a checked cast.
5502 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5503 insn.
5504 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5505 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
5506
5507 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5508
5509 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5510 param from rtx to rtx_insn *.
5511 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5512
5513 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5514
5515 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5516 4 from rtx to rtx_insn *.
5517 (rs6000_final_prescan_insn): Likewise for first param.
5518 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5519 local "insn".
5520 (rs6000_get_some_local_dynamic_name): Likewise.
5521 (output_cbranch): Likewise for param "insn".
5522 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5523 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5524 (rs6000_emit_allocate_stack): Likewise for local "insn".
5525 (load_cr_save): Likewise.
5526 (restore_saved_cr): Likewise.
5527 (restore_saved_lr): Likewise.
5528 (emit_cfa_restores): Likewise.
5529 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5530 "deleted_debug_label".
5531 (rs6000_output_mi_thunk): Likewise for local "insn".
5532 (rs6000_final_prescan_insn): Likewise for param "insn".
5533
5534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5535
5536 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5537 Strengthen param "insn" from rtx to rtx_insn *.
5538 * config/picochip/picochip.c (picochip_current_prescan_insn):
5539 Likewise for this variable.
5540 (picochip_final_prescan_insn): Likewise for param "insn".
5541
5542 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5543
5544 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5545 from rtx to rtx_insn *.
5546 (pa_output_indirect_call): Likewise.
5547 (pa_adjust_insn_length): Likewise.
5548 (pa_attr_length_millicode_call): Likewise.
5549 (pa_attr_length_call): Likewise.
5550 (pa_attr_length_indirect_call): Likewise.
5551
5552 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5553 "insn".
5554 (pa_attr_length_millicode_call): Likewise.
5555 (pa_attr_length_call): Likewise.
5556 (pa_output_call): Likewise.
5557 (pa_attr_length_indirect_call): Likewise.
5558 (pa_output_indirect_call): Likewise.
5559
5560 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5561
5562 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5563 Strengthen first param from rtx to rtx_insn *.
5564 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5565 param "insn".
5566
5567 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5568
5569 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5570 type from rtx to rtx_insn *.
5571 (mips_expand_call): Likewise.
5572 (mips_adjust_insn_length): Likewise for first param.
5573 (mips_output_conditional_branch): Likewise.
5574 (mips_output_order_conditional_branch): Likewise.
5575 (mips_final_prescan_insn): Likewise.
5576
5577 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5578 rtx_insn * for the SEQUENCE case.
5579 (SEQ_END): Likewise.
5580 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5581 (mips_emit_call_insn): Likewise, also for local "insn".
5582 (mips16_gp_pseudo_reg): Likewise for local "scan".
5583 (mips16_build_call_stub): Likewise for return type and for local
5584 "insn". Introduce a new local "pattern" so that "insn" can indeed
5585 be an insn.
5586 (mips_expand_call): Strengthen return type and local "insn" from
5587 rtx to rtx_insn *.
5588 (mips_block_move_loop): Strengthen local "label" from rtx to
5589 rtx_code_label *.
5590 (mips_expand_synci_loop): Likewise for locals "label",
5591 "end_label".
5592 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5593 rtx_insn *.
5594 (mips16e_collect_argument_saves): Likewise for locals "insn",
5595 "next".
5596 (mips_find_gp_ref): Likewise for param of callback for "pred"
5597 param, and for local "insn".
5598 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5599 (mips_insn_has_flexible_gp_ref_p): Likewise.
5600 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5601 local "insn".
5602 (mips_epilogue_set_cfa): Likewise for local "insn".
5603 (mips_expand_epilogue): Likewise.
5604 (mips_adjust_insn_length): Likewise for param "insn".
5605 (mips_output_conditional_branch): Likewise.
5606 (mips_output_order_conditional_branch): Likewise.
5607 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5608 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5609 "falu2_turn_enabled_insn".
5610 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5611 "done_label" from rtx to rtx_code_label *.
5612 (struct mips16_constant): Likewise for field "label".
5613 (mips16_add_constant): Likewise for return type.
5614 (mips16_emit_constants_1): Strengthen return type and param "insn"
5615 from rtx to rtx_insn *.
5616 (mips16_emit_constants): Likewise for param "insn".
5617 (mips16_insn_length): Likewise.
5618 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5619 to rtx_code_label *.
5620 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5621 from rtx to rtx_insn *.
5622 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5623 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5624 (r10k_simplify_address): Strengthen param "insn" and local
5625 "def_insn" from rtx to rtx_insn *.
5626 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5627 rtx_insn *.
5628 (r10k_needs_protection_p_1): Update target type of cast of data
5629 from to rtx to rtx_insn *.
5630 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5631 rtx * to rtx_insn **.
5632 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5633 rtx_insn *.
5634 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5635 (mips_call_expr_from_insn): Likewise for param "insn".
5636 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5637 (mips_find_pic_call_symbol): Likewise for param "insn".
5638 (mips_annotate_pic_calls): Likewise for local "insn".
5639 (mips_sim_insn): Likewise for this variable.
5640 (struct mips_sim): Likewise for field "insn" within elements of
5641 last_set array.
5642 (mips_sim_wait_reg): Likewise for param "insn".
5643 (mips_sim_wait_regs): Likewise.
5644 (mips_sim_wait_units): Likewise.
5645 (mips_sim_wait_insn): Likewise.
5646 (mips_sim_issue_insn): Likewise.
5647 (mips_sim_finish_insn): Likewise.
5648 (mips_seq_time): Likewise for param "seq" and local "insn".
5649 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5650 locals "first", "second".
5651 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5652 "last", "last2", "next".
5653 (mips_avoid_hazard): Likewise for params "after", "insn".
5654 (mips_reorg_process_insns): Likewise for locals "insn",
5655 "last_insn", "subinsn", "next_insn".
5656 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5657 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5658 "jump_sequence".
5659 (mips_output_mi_thunk): Likewise for local "insn".
5660 (mips_final_prescan_insn): Likewise for param "insn".
5661
5662 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5663
5664 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5665 Strengthen return type and local "insns" from rtx to rtx_insn *.
5666 (microblaze_legitimize_tls_address): Likewise for local "insns".
5667 (microblaze_block_move_loop): Strengthen local "label" from rtx
5668 to rtx_code_label *.
5669 (microblaze_expand_prologue): Strengthen two locals named "insn"
5670 from rtx to rtx_insn *.
5671 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5672 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5673 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5674 to rtx_code_label *.
5675
5676 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5677
5678 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5679 param from rtx to rtx_insn *.
5680 (mep_reuse_lo): Likewise for third param.
5681 (mep_use_post_modify_p): Likewise for first param.
5682 (mep_core_address_length): Likewise.
5683 (mep_cop_address_length): Likewise.
5684 (mep_final_prescan_insn): Likewise.
5685 (mep_store_data_bypass_p): Likewise for both params.
5686 (mep_mul_hilo_bypass_p): Likewise.
5687 (mep_ipipe_ldc_p): Likewise for param.
5688
5689 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5690 (mep_rewrite_mult): Likewise.
5691 (mep_rewrite_mulsi3): Likewise.
5692 (mep_rewrite_maddsi3): Likewise.
5693 (mep_reuse_lo_p_1): Likewise.
5694 (mep_reuse_lo_p): Likewise.
5695 (mep_frame_expr): Likewise.
5696 (mep_make_parallel): Likewise for both params.
5697 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5698 local "insn".
5699 (mep_use_post_modify_p): Likewise for param "insn".
5700 (mep_core_address_length): Likewise.
5701 (mep_cop_address_length): Likewise.
5702 (mep_reg_set_in_function): Likewise for local "insn".
5703 (mep_asm_without_operands_p): Likewise.
5704 (F): Likewise for return type and param "x".
5705 (add_constant): Likewise for local "insn".
5706 (maybe_dead_move): Likewise for return type and local "insn".
5707 (mep_expand_prologue): Likewise for local "insn".
5708 (mep_final_prescan_insn): Likewise for param "insn".
5709 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5710 "next", "follow", "x".
5711 (mep_insert_repeat_label_last): Likewise for return type, param
5712 "last_insn", and locals "next", "prev". Strengthen param "label"
5713 from rtx to rtx_code_label *.
5714 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5715 rtx_insn *.
5716 (struct mep_doloop_end): Likewise for fields "insn" and
5717 "fallthrough".
5718 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5719 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5720 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5721 rtx_insn *.
5722 (mep_invert_branch): Likewise for params "insn" and "after".
5723 (mep_reorg_erepeat): Likewise for param "insns" and locals
5724 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5725 "l" from rtx to rtx_code_label *.
5726 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5727 from rtx to rtx_insn *.
5728 (mep_reorg_addcombine): Likewise for param "insns" and locals
5729 "i", "n".
5730 (add_sp_insn_p): Likewise for param "insn".
5731 (mep_reorg_noframe): Likewise for param "insns" and locals
5732 "start_frame_insn", "end_frame_insn", "next".
5733 (mep_reorg): Likewise for local "insns".
5734 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5735 cast.
5736 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5737 (mep_mul_hilo_bypass_p): Likewise.
5738 (mep_ipipe_ldc_p): Likewise for param "insn".
5739 (mep_make_bundle): Likewise for return type, param "cop" and local
5740 "insn", splitting out the latter into a new local "seq" for when it
5741 is a SEQUENCE rather than an insn.
5742 (core_insn_p): Likewise for param "insn".
5743 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
5744 "last", "first", "note", "prev", "core_insn".
5745
5746 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5747
5748 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
5749 rtx to rtx_insn *.
5750 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
5751 (m68k_final_prescan_insn): Likewise for first param.
5752
5753 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
5754 (m68k_set_frame_related): Likewise for param "insn".
5755 (output_btst): Likewise for param "insn".
5756 (m68k_final_prescan_insn): Likewise.
5757 (m68k_move_to_reg): Likewise for local "insn".
5758 (m68k_call_tls_get_addr): Likewise for local "insns".
5759 (m68k_call_m68k_read_tp): Likewise.
5760 (strict_low_part_peephole_ok): Likewise for param "first_insn".
5761 (m68k_output_mi_thunk): Likewise for local "insn".
5762
5763 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5764
5765 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
5766 first param from rtx to rtx_insn *.
5767 (iq2000_adjust_insn_length): Likewise.
5768 (iq2000_output_conditional_branch): Likewise.
5769 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
5770 "insn" and local "nop_insn".
5771 (iq2000_annotate_frame_insn): Likewise for param "insn".
5772 (iq2000_expand_prologue): Likewise for both locals "insn".
5773 (iq2000_adjust_insn_length): Likewise for param "insn".
5774 (iq2000_output_conditional_branch): Likewise.
5775
5776 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5777
5778 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
5779 "insns" from rtx to rtx_insn *.
5780 (ia64_emit_cond_move): Likewise for locals "insn", "first".
5781 (struct spill_fill_data): Likewise for field "init_after" and for
5782 elements of array field "prev_insn".
5783 (spill_restore_mem): Likewise for locals "insn", "first".
5784 (do_spill): Likewise for local "insn".
5785 (do_restore): Likewise.
5786 (ia64_expand_prologue): Likewise.
5787 (ia64_expand_epilogue): Likewise.
5788 (emit_insn_group_barriers): Likewise for locals "insn",
5789 "last_label".
5790 (emit_all_insn_group_barriers): Likewise for locals "insn",
5791 "last".
5792 (dfa_stop_insn): Likewise for this global.
5793 (dfa_pre_cycle_insn): Likewise.
5794 (ia64_nop): Likewise.
5795 (final_emit_insn_group_barriers): Likewise for locals "insn",
5796 "last".
5797 (emit_predicate_relation_info): Likewise for locals "head", "n",
5798 "insn", "b", "a".
5799 (ia64_reorg): Likewise for local "insn".
5800 (ia64_output_mi_thunk): Likewise.
5801 (expand_vec_perm_interleave_2): Likewise for local "seq".
5802
5803 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5804
5805 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
5806 param 1 "insn" from rtx to rtx_insn *.
5807 (ix86_use_lea_for_mov): Likewise.
5808 (ix86_avoid_lea_for_addr): Likewise.
5809 (ix86_split_lea_for_addr): Likewise.
5810 (ix86_lea_for_add_ok): Likewise.
5811 (ix86_output_call_insn): Likewise.
5812
5813 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
5814 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
5815 (ix86_output_function_epilogue): Likewise for locals "insn",
5816 "deleted_debug_label".
5817 (legitimize_tls_address): Likewise for local "insn".
5818 (get_some_local_dynamic_name): Likewise.
5819 (increase_distance): Likewise for params "prev", "next".
5820 (distance_non_agu_define_in_bb): Likewise for params "insn",
5821 "start" and locals "prev", "next".
5822 (distance_non_agu_define): Likewise for param "insn".
5823 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
5824 locals "next", "prev".
5825 (distance_agu_use): Likewise for param "insn".
5826 (ix86_lea_outperforms): Likewise.
5827 (ix86_ok_to_clobber_flags): Likewise.
5828 (ix86_avoid_lea_for_add): Likewise.
5829 (ix86_use_lea_for_mov): Likewise.
5830 (ix86_avoid_lea_for_addr): Likewise.
5831 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
5832 (ix86_split_lea_for_addr): Likewise for param "insn".
5833 (ix86_lea_for_add_ok): Likewise for param "insn".
5834 (ix86_expand_carry_flag_compare): Likewise for local
5835 "compare_seq".
5836 (ix86_expand_int_movcc): Likewise.
5837 (ix86_output_call_insn): Likewise for param "insn".
5838 (ix86_output_call_insn): Likewise for local "i".
5839 (x86_output_mi_thunk): Introduce local "insn", using it in place
5840 of "tmp" when dealing with insns.
5841 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
5842 "start".
5843 (ix86_pad_returns): Likewise for locals "ret", "prev".
5844 (ix86_count_insn_bb): Likewise for local "insn".
5845 (ix86_pad_short_function): Likewise for locals "ret", "insn".
5846 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
5847 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
5848 (expand_vec_perm_interleave2): Likewise for local "seq".
5849 (expand_vec_perm_vperm2f128_vblend): Likewise.
5850 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
5851 call to for_each_rtx with for_each_rtx_in_insn.
5852
5853 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5854
5855 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
5856 "label" from rtx to rtx_code_label *.
5857 (ix86_expand_prologue): Likewise.
5858 (ix86_expand_split_stack_prologue): Likewise for locals "label",
5859 "varargs_label".
5860 (ix86_split_idivmod): Likewise for locals "end_label" and
5861 "qimode_label".
5862 (ix86_expand_branch): Likewise for local "label2".
5863 (ix86_expand_aligntest): Likewise for return type and local "label".
5864 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
5865 "top_label".
5866 (expand_movmem_epilogue): Likewise for the various locals named
5867 "label".
5868 (expand_setmem_epilogue): Likewise.
5869 (expand_small_movmem_or_setmem): Likewise for local "label".
5870 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5871 Strengthen param "done_label" from rtx * to rtx_code_label **.
5872 Strengthen locals "loop_label" and "label" from rtx to
5873 rtx_code_label *.
5874 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5875 Likewise for locals "loop_label", "label".
5876 (ix86_expand_set_or_movmem): Likewise for locals "label",
5877 "jump_around_label", "hot_label".
5878 (ix86_expand_strlensi_unroll_1): Likewise for locals
5879 "align_2_label", align_3_label", "align_4_label", "end_0_label",
5880 "end_2_label".
5881 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
5882 (void ix86_emit_i387_log1p): Likewise for locals "label1",
5883 "label2", "jump_label".
5884 (ix86_expand_sse_compare_and_jump): Likewise for return type and
5885 local "label".
5886 (ix86_expand_lfloorceil): Likewise for local "label".
5887 (ix86_expand_rint): Likewise.
5888 (ix86_expand_floorceildf_32): Likewise.
5889 (ix86_expand_floorceil): Likewise.
5890 (ix86_expand_rounddf_32): Likewise.
5891 (ix86_expand_trunc): Likewise.
5892 (ix86_expand_truncdf_32): Likewise.
5893 (ix86_expand_round): Likewise.
5894
5895 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5896
5897 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
5898 first param from rtx to rtx_insn *.
5899 (h8300_insn_length_from_table): Likewise.
5900 * config/h8300/h8300.c (F): Likewise for return type and param
5901 "x".
5902 (Fpa): Add a checked cast to rtx_insn *.
5903 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
5904 rtx_insn *.
5905 (final_prescan_insn): Likewise for param "insn".
5906 (h8300_binary_length): Likewise.
5907 (h8300_insn_length_from_table): Likewise.
5908
5909 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5910
5911 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
5912 Strengthen first param "insn" from rtx to rtx_insn *.
5913
5914 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
5915 Likewise.
5916 (frame_insn): Likewise for return type. Introduce local "insn"
5917 for use in place of local "x" for use as an rtx_insn *.
5918 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
5919 (epiphany_expand_prologue): Likewise for local "insn".
5920 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
5921 * config/epiphany/resolve-sw-modes.c
5922 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
5923 "seq".
5924
5925 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5926
5927 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
5928 param from rtx to rtx_insn *.
5929 (c6x_final_prescan_insn): Likewise for first param.
5930
5931 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
5932 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
5933 (c6x_expand_compare): Strengthen local "insns" from rtx to
5934 rtx_insn *.
5935 (c6x_get_unit_specifier): Likewise for param "insn".
5936 (c6x_print_unit_specifier_field): Likewise.
5937 (c6x_final_prescan_insn): Likewise.
5938 (emit_add_sp_const): Likewise for local "insn".
5939 (c6x_expand_prologue): Likewise.
5940
5941 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5942
5943 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
5944 param 1 from rtx to rtx_insn *.
5945 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
5946 the various locals named "insn".
5947 (expand_epilogue_reg_restore): Likewise.
5948 (frame_related_constant_load): Likewise.
5949 (add_to_reg): Likewise.
5950 (emit_link_insn): Likewise.
5951 (do_link): Likewise.
5952 (expand_interrupt_handler_prologue): Likewise.
5953 (branch_dest): Likewise for param "branch".
5954 (asm_conditional_branch): Likewise for param "insn".
5955 (gen_one_bundle): Likewise for elements of param "slot" and local
5956 "t".
5957 (bfin_gen_bundles): Likewise for locals "insn", "next" and
5958 elements of local "slot".
5959 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5960 "queue", "next_queue", "prev".
5961 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
5962 (add_sched_insns_for_speculation): Likewise for local "insn".
5963
5964 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5965
5966 * config/avr/avr-protos.h (output_movqi): Strengthen first param
5967 from rtx to rtx_insn *.
5968 (output_movhi): Likewise.
5969 (output_movsisf): Likewise.
5970 (avr_out_tstsi): Likewise.
5971 (avr_out_tsthi): Likewise.
5972 (avr_out_tstpsi): Likewise.
5973 (avr_out_compare): Likewise.
5974 (avr_out_compare64): Likewise.
5975 (avr_out_movpsi): Likewise.
5976 (ashlqi3_out): Likewise.
5977 (ashlhi3_out): Likewise.
5978 (ashlsi3_out): Likewise.
5979 (ashrqi3_out): Likewise.
5980 (ashrhi3_out): Likewise.
5981 (ashrsi3_out): Likewise.
5982 (lshrqi3_out): Likewise.
5983 (lshrhi3_out): Likewise.
5984 (lshrsi3_out): Likewise.
5985 (avr_out_ashlpsi3): Likewise.
5986 (avr_out_ashrpsi3): Likewise.
5987 (avr_out_lshrpsi3): Likewise.
5988 (avr_out_fract): Likewise.
5989 (avr_out_sbxx_branch): Likewise.
5990 (avr_out_round): Likewise.
5991 (avr_out_xload): Likewise.
5992 (avr_out_movmem): Likewise.
5993 (adjust_insn_length): Likewise.
5994 (avr_out_lpm): Likewise.
5995 (reg_unused_after): Likewise.
5996 (_reg_unused_after): Likewise.
5997 (avr_jump_mode): Likewise for second param.
5998 (jump_over_one_insn): Likewise for first param.
5999 (avr_final_prescan_insn): Likewise.
6000 (out_shift_with_cnt): Likewise for second param.
6001
6002 * config/avr/avr.c (get_sequence_length): Likewise for param
6003 "insns" and local "insn".
6004 (emit_push_byte): Likewise for local "insn".
6005 (emit_push_sfr): Likewise.
6006 (avr_prologue_setup_frame): Likewise for locals "insn",
6007 "fp_plus_insns", "sp_plus_insns".
6008 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6009 "sp_plus_insns".
6010 (avr_jump_mode): Likewise for param "insn".
6011 (avr_final_prescan_insn): Likewise.
6012 (avr_find_unused_d_reg): Likewise.
6013 (avr_out_lpm_no_lpmx): Likewise.
6014 (avr_out_lpm): Likewise.
6015 (avr_out_xload): Likewise.
6016 (output_movqi): Likewise.
6017 (output_movhi): Likewise.
6018 (out_movqi_r_mr): Likewise.
6019 (out_movhi_r_mr): Likewise.
6020 (out_movsi_r_mr): Likewise.
6021 (out_movsi_mr_r): Likewise.
6022 (output_movsisf): Likewise.
6023 (avr_out_load_psi): Likewise.
6024 (avr_out_store_psi): Likewise.
6025 (avr_out_movpsi): Likewise.
6026 (out_movqi_mr_r): Likewise.
6027 (avr_out_movhi_mr_r_xmega): Likewise.
6028 (out_movhi_mr_r): Likewise.
6029 (compare_condition): Likewise for param "insn" and local "next".
6030 (compare_sign_p): Likewise for param "insn".
6031 (compare_diff_p): Likewise.
6032 (compare_eq_p): Likewise.
6033 (avr_out_compare): Likewise.
6034 (avr_out_compare64): Likewise.
6035 (avr_out_tsthi): Likewise.
6036 (avr_out_tstpsi): Likewise.
6037 (avr_out_tstsi): Likewise.
6038 (out_shift_with_cnt): Likewise.
6039 (ashlqi3_out): Likewise.
6040 (ashlhi3_out): Likewise.
6041 (avr_out_ashlpsi3): Likewise.
6042 (ashlsi3_out): Likewise.
6043 (ashrqi3_out): Likewise.
6044 (ashrhi3_out): Likewise.
6045 (avr_out_ashrpsi3): Likewise.
6046 (ashrsi3_out): Likewise.
6047 (lshrqi3_out): Likewise.
6048 (lshrhi3_out): Likewise.
6049 (avr_out_lshrpsi3): Likewise.
6050 (lshrsi3_out): Likewise.
6051 (avr_out_fract): Likewise.
6052 (avr_out_round): Likewise.
6053 (avr_adjust_insn_length): Likewise.
6054 (reg_unused_after): Likewise.
6055 (_reg_unused_after): Likewise.
6056 (avr_compare_pattern): Likewise.
6057 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6058 and locals "branch1", "branch2", "insn2", "jump".
6059 (avr_reorg): Likewise for local "insn".
6060 (avr_2word_insn_p): Likewise for param "insn".
6061 (jump_over_one_insn_p): Likewise.
6062 (avr_out_sbxx_branch): Likewise.
6063 (avr_out_movmem): Likewise.
6064
6065 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6066
6067 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6068 param from rtx to rtx_insn *.
6069 (thumb1_final_prescan_insn): Likewise.
6070 (thumb2_final_prescan_insn): Likewise.
6071
6072 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6073 rtx to rtx_insn *.
6074 (struct minipool_node): Likewise for field "insn".
6075 (dump_minipool): Likewise for param "scan".
6076 (create_fix_barrier): Likewise for local "from". Strengthen local
6077 "label" from rtx to rtx_code_label *.
6078 (push_minipool_barrier): Strengthen param "insn" from rtx to
6079 rtx_insn *.
6080 (push_minipool_fix): Likewise.
6081 (note_invalid_constants): Likewise.
6082 (thumb2_reorg): Likewise for local "insn".
6083 (arm_reorg): Likewise.
6084 (thumb2_final_prescan_insn): Likewise for param
6085 "insn" and local "first_insn".
6086 (arm_final_prescan_insn): Likewise for param "insn" and locals
6087 "start_insn", "this_insn".
6088 (arm_debugger_arg_offset): Likewise for param "insn".
6089 (thumb1_emit_multi_reg_push): Likewise for return type and local
6090 "insn".
6091 (thumb1_final_prescan_insn): Likewise for param "insn".
6092 (thumb_far_jump_used_p): Likewise for local "insn".
6093 (thumb1_expand_prologue): Likewise.
6094 (arm_expand_epilogue_apcs_frame): Likewise.
6095 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6096 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6097 from rtx to rtx_code_label *.
6098 (arm_split_atomic_op): Likewise for local "label".
6099 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6100
6101 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6102
6103 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6104 first param from rtx to rtx_insn *.
6105 (arc_verify_short): Likewise.
6106 (arc_short_long): Likewise.
6107 (arc_need_delay): Likewise.
6108
6109 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6110 "target_insn".
6111 (arc_ccfsm_advance): Likewise for param "insn" and locals
6112 "start_insn", "this_insn".
6113 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6114 (arc_ccfsm_post_advance): Likewise for param "insn".
6115 (arc_next_active_insn): Likewise for return type and param "insn".
6116 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6117 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6118 (output_short_suffix): Likewise for local "insn".
6119 (arc_final_prescan_insn): Likewise for param "insn". Remove
6120 now-redundant checked cast.
6121 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6122 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6123 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6124 for use where lc_set became an insn.
6125 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6126 rtx to rtx_insn *.
6127 (arc_get_insn_variants): Likewise for local "prev".
6128 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6129 "next".
6130 (arc_predicate_delay_insns): Likewise for local "insn".
6131 (arc_pad_return): Likewise for local "prev". For now, add a
6132 checked cast when extracting the insn from "final_sequence".
6133 (arc_short_long): Likewise for param "insn".
6134 (arc_need_delay): Likewise for param "insn" and local "next".
6135 (arc_label_align): Likewise for locals "prev", "next".
6136
6137 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6138
6139 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6140 "insn" from rtx to rtx_insn *.
6141 (alpha_gp_save_rtx): Likewise for local "seq".
6142 (alpha_instantiate_decls): Likewise for local "top".
6143 (get_some_local_dynamic_name): Likewise for local "insn".
6144 (alpha_does_function_need_gp): Likewise.
6145 (set_frame_related_p): Likewise for return type and for locals
6146 "seq" and "insn".
6147 (emit_frame_store_1): Likewise for local "insn".
6148 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6149 (alpha_end_function): Likewise for local "insn".
6150 (alpha_output_mi_thunk_osf): Likewise.
6151 (alphaev4_insn_pipe): Likewise for param "insn".
6152 (alphaev5_insn_pipe): Likewise.
6153 (alphaev4_next_group): Likewise for return type and param 1
6154 "insn".
6155 (alphaev5_next_group): Likewise.
6156 (alpha_align_insns_1): Likewise for return type and param 1 of
6157 callback param "next_group", and for locals "i", "next", "prev",
6158 "where", "where2", "insn".
6159
6160 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6161
6162 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6163 rather than modifying the stmt.
6164
6165 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6166
6167 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6168 cgraph_state conversion.
6169
6170 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6171
6172 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6173 Strengthen local "insns" from rtx to rtx_insn *.
6174 (aarch64_set_frame_expr): Likewise for local "insn".
6175 (aarch64_save_or_restore_fprs): Likewise.
6176 (aarch64_save_or_restore_callee_save_registers): Likewise.
6177 (aarch64_expand_prologue): Likewise.
6178 (aarch64_expand_epilogue): Likewise.
6179 (aarch64_output_mi_thunk): Likewise.
6180 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6181 "label2" from rtx to rtx_code_label *.
6182 (aarch64_split_atomic_op): Likewise for local "label".
6183
6184 2014-08-25 Martin Liska <mliska@suse.cz>
6185
6186 * cgraph.h (symtab_node):
6187 (bool needed_p (void)): created from decide_is_symbol_needed
6188 (bool referred_to_p (void)): created from referred_to_p
6189 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6190 * cgraph.h (cgraph_node):
6191 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6192 (void expand (void)): created from expand_function
6193 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6194 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6195 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6196 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6197 * cgraph.h (varpool_node):
6198 (static void add (tree decl): created from varpool_add_new_variable
6199 * cgraph.h (cgraph_edge):
6200 void remove (void);
6201 (void remove_caller (void)): created from cgraph_edge_remove_caller
6202 (void remove_callee (void)): created from cgraph_edge_remove_callee
6203 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6204 created from cgraph_set_call_stmt
6205 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6206 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6207 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6208 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6209 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6210 created from cgraph_speculative_call_info
6211 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6212 int freq_scale, bool update_original)): created from cgraph_clone_edge
6213 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6214 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6215 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6216 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6217 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6218 (static void rebuild_references (void)): created from cgraph_rebuild_references
6219 * cgraph.h (symbol_table):
6220 (create_reference): renamed from add_reference
6221 (maybe_create_reference): renamed from maybe_add_reference
6222 (void register_symbol (symtab_node *node)): new function
6223 (void clear_asm_symbols (void)): new function
6224 (void unregister (symtab_node *node)): new function
6225 (void release_symbol (cgraph_node *node, int uid)): new function
6226 (cgraph_node * allocate_cgraph_symbol (void)): new function
6227 (void initialize (void)): created from cgraph_init
6228 (symtab_node *first_symbol (void)):new function
6229 (asm_node *first_asm_symbol (void)):new function
6230 (symtab_node *first_defined_symbol (void)):new function
6231 (varpool_node *first_variable (void)):new function
6232 (varpool_node *next_variable (varpool_node *node)):new function
6233 (varpool_node *first_static_initializer (void)):new function
6234 (varpool_node *next_static_initializer (varpool_node *node)):new function
6235 (varpool_node *first_defined_variable (void)):new function
6236 (varpool_node *next_defined_variable (varpool_node *node)):new function
6237 (cgraph_node *first_defined_function (void)):new function
6238 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6239 (cgraph_node *first_function (void)):new function
6240 (cgraph_node *next_function (cgraph_node *node)):new function
6241 (cgraph_node *first_function_with_gimple_body (void)):new function
6242 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6243 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6244 created from symtab_remove_unreachable_nodes
6245 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6246 (void process_new_functions (void)): created from cgraph_process_new_functions
6247 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6248 (bool output_variables (void)): created from varpool_node::output_variables
6249 (void output_asm_statements (void)): created from output_asm_statements
6250 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6251 (void compile (void)): created from compile
6252 (void output_weakrefs (void)): created from output_weakrefs
6253 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6254 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6255 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6256 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6257 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6258 created from cgraph_next_function_with_gimple_body
6259 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6260 created from cgraph_remove_edge_removal_hook
6261 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6262 created from cgraph_add_node_removal_hook
6263 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6264 created from cgraph_remove_node_removal_hook
6265 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6266 created from varpool_add_node_removal_hook
6267 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6268 created from varpool_remove_node_removal_hook
6269 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6270 created from cgraph_add_function_insertion_hook
6271 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6272 created from cgraph_remove_function_insertion_hook
6273 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6274 created from varpool_add_variable_insertion_hook
6275 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6276 created from varpool_remove_variable_insertion_hook
6277 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6278 created from cgraph_add_edge_duplication_hook
6279 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6280 created from cgraph_remove_edge_duplication_hook
6281 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6282 created from cgraph_add_node_duplication_hook
6283 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6284 created from cgraph_remove_node_duplication_hook
6285 (void call_edge_removal_hooks (cgraph_edge *e)):
6286 created from cgraph_call_edge_removal_hooks
6287 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6288 created from call_function_insertion_hooks
6289 (void call_cgraph_removal_hooks (cgraph_node *node)):
6290 created from cgraph_call_node_removal_hooks
6291 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6292 created from cgraph_node::call_duplication_hooks
6293 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6294 created from cgraph_call_edge_duplication_hooks
6295 (void call_varpool_removal_hooks (varpool_node *node)):
6296 created from varpool_call_node_removal_hooks
6297 (void call_varpool_insertion_hooks (varpool_node *node)):
6298 created from varpool_call_variable_insertion_hooks
6299 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6300 created from insert_to_assembler_name_hash
6301 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6302 created from unlink_from_assembler_name_hash
6303 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6304 created from symtab_prevail_in_asm_name_hash
6305 (void symtab_initialize_asm_name_hash (void)):
6306 created from symtab_initialize_asm_name_hash
6307 (void change_decl_assembler_name (tree decl, tree name)):
6308 created from change_decl_assembler_name
6309 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6310 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6311 created from decl_assembler_name_hash
6312 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6313 created from decl_assembler_name_equal
6314 (static hashval_t hash_node_by_assembler_name (const void *p)):
6315 created from hash_node_by_assembler_name
6316 (static int eq_assembler_name (const void *p1, const void *p2)):
6317 created from eq_assembler_name
6318
6319 2014-08-25 Marek Polacek <polacek@redhat.com>
6320
6321 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6322
6323 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6324
6325 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6326 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6327 SWI1248_AVX512BW mode iterator.
6328
6329 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6330
6331 PR target/62111
6332 * config/sh/predicates.md (general_extend_operand): Disable
6333 TRUNCATE before reload completes.
6334
6335 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6336
6337 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6338
6339 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6340
6341 PR target/61996
6342 * config/sh/sh.opt (musermode): Allow negative form.
6343 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6344 targets that don't support it.
6345 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6346 Document -mno-usermode option.
6347
6348 2014-08-24 Kito Cheng <kito@0xlab.org>
6349
6350 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6351 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6352 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6353 * doc/tm.texi: Regenerate.
6354
6355 2014-08-24 Kito Cheng <kito@0xlab.org>
6356
6357 * ira.c: Fix typo in comment.
6358
6359 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6360
6361 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6362 Deprecate c++1y. Change language to reflect greater confidence in C++14.
6363
6364 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
6365
6366 PR target/62038
6367 * config/pa/pa.c (pa_output_function_epilogue): Don't set
6368 last_address when the current function is a thunk.
6369 (pa_asm_output_mi_thunk): When we don't have named sections or they
6370 are not being used, check that thunk can reach the stub table with a
6371 short branch.
6372
6373 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6374
6375 * web.c (union_match_dups): Strengthen param "insn" from rtx to
6376 rtx_insn *.
6377 (pass_web::execute): Likewise for local "insn".
6378
6379 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6380
6381 * var-tracking.c (struct micro_operation_def): Strengthen field
6382 "insn" from rtx to rtx_insn *.
6383 (struct emit_note_data_def): Likewise.
6384 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6385 (vt_stack_adjustments): Likewise for local "insn".
6386 (adjust_insn): Likewise for param "insn".
6387 (val_store): Likewise.
6388 (val_resolve): Likewise.
6389 (struct count_use_info): Likewise for field "insn".
6390 (log_op_type): Likewise for param "insn".
6391 (reverse_op): Likewise.
6392 (prepare_call_arguments): Likewise.
6393 (add_with_sets): The initial param takes an insn, but we can't
6394 yet strengthen it from rtx to rtx_insn * since it's used as a
6395 cselib_record_sets_hook callback. For now rename initial param
6396 from "insn" to "uncast_insn", and introduce a local "insn" of
6397 the stronger rtx_insn * type, with a checked cast.
6398 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6399 rtx_insn *.
6400 (emit_note_insn_var_location): Likewise.
6401 (emit_notes_for_changes): Likewise.
6402 (emit_notes_for_differences): Likewise.
6403 (next_non_note_insn_var_location): Likewise for return type and
6404 for param "insn".
6405 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6406 (vt_initialize): Likewise for local "insn".
6407 (delete_debug_insns): Likewise for locals "insn" and "next".
6408
6409 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6410
6411 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6412 rtx_insn *.
6413 (mark_constant_pool): Likewise for local "insn".
6414
6415 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6416
6417 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6418 rtx to rtx_insn *.
6419 (dead_debug_promote_uses): Likewise.
6420 (dead_debug_insert_temp): Likewise.
6421
6422 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6423
6424 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6425 from const_rtx to const rtx_insn *.
6426 (store_killed_after): Likewise. Strengthen locals "last", "act"
6427 from rtx to rtx_insn *.
6428 (store_killed_before): Strengthen param "insn" from const_rtx to
6429 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6430 (find_moveable_store): Strengthen param "insn" from rtx to
6431 rtx_insn *.
6432 (compute_store_table): Likewise for local "insn".
6433 (insert_insn_start_basic_block): Likewise for param "insn" and
6434 locals "prev", "before", "insn".
6435 (insert_store): For now, add a checked cast to rtx_insn * on the
6436 result of gen_move_insn.
6437 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6438 to rtx_insn *.
6439 (replace_store_insn): Likewise. For now, add a checked cast to
6440 rtx_insn * on the result of gen_move_insn.
6441
6442 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6443
6444 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6445 rtx_insn *.
6446 (expand_sjlj_dispatch_table): Likewise.
6447
6448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6449
6450 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6451 "insn" from rtx to rtx_insn *.
6452
6453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6454
6455 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6456 "insn" from rtx to rtx_insn *.
6457 (dup_block_and_redirect): Likewise for param 3 "before".
6458
6459 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6460 from rtx to rtx_insn *.
6461 (move_insn_for_shrink_wrap): Likewise.
6462 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6463 (dup_block_and_redirect): Likewise for param "before" and local
6464 "insn".
6465 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6466 "end".
6467 (convert_to_simple_return): Likewise for local "start".
6468
6469 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6470 Strengthen local "insn" from rtx to rtx_insn *, for use when
6471 invoking requires_stack_frame_p.
6472
6473 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6474
6475 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6476 rtx_insn *.
6477 (speculate_expr): Likewise for locals "orig_insn_rtx",
6478 "spec_insn_rtx".
6479 (eq_transformed_insns): Likewise for locals "i1", "i2".
6480 (check_for_new_jump): Likewise for return type and local "end".
6481 (find_new_jump): Likewise for return type and local "jump".
6482 (sel_split_edge): Likewise for local "jump".
6483 (sel_create_recovery_block): Likewise.
6484 (sel_redirect_edge_and_branch_force): Likewise.
6485 (sel_redirect_edge_and_branch): Likewise.
6486
6487 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6488
6489 * sel-sched.c (substitute_reg_in_expr): Strengthen local
6490 "new_insn" from rtx to rtx_insn *.
6491 (create_insn_rtx_with_rhs): Likewise for return type and for local
6492 "insn_rtx".
6493 (create_insn_rtx_with_lhs): Likewise.
6494 (create_speculation_check): Likewise for local "insn_rtx".
6495 (implicit_clobber_conflict_p): Likewise for local "insn".
6496 (get_expr_cost): Likewise.
6497 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6498 (move_cond_jump): Likewise for locals "next", "prev", "link",
6499 "head", "from", "to".
6500
6501 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6502
6503 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6504 "next" from rtx to rtx_insn *.
6505 (find_conditional_protection): Likewise for local "next".
6506 (is_conditionally_protected): Likewise for local "insn1".
6507 (is_pfree): Likewise for locals "insn1", "insn2".
6508
6509 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6510
6511 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6512 from rtx to rtx_insn *.
6513
6514 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6515 locals "insn1", "insn2" from rtx to rtx_insn *.
6516 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6517 locals "insn", "prev", "last_jump", "next_tail".
6518 (schedule_ebb): Likewise for params "head", "tail".
6519 (schedule_ebbs): Likewise for locals "tail", "head".
6520
6521 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6522 to rtx_insn on "last_insn" in one of the invocations of
6523 schedule_ebb.
6524
6525 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6526
6527 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6528 "elem", "insn" from rtx to rtx_insn *.
6529 (change_spec_dep_to_hard): Likewise.
6530 (get_back_and_forw_lists): Likewise for local "con".
6531 (sd_add_dep): Likewise for locals "elem", "insn".
6532 (sd_resolve_dep): Likewise for locals "pro", "con".
6533 (sd_unresolve_dep): Likewise.
6534 (sd_delete_dep): Likewise.
6535 (chain_to_prev_insn): Likewise for local "pro".
6536 (find_inc): Likewise for locals "pro", "con".
6537
6538 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6539
6540 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6541 to rtx_insn *.
6542 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6543 const rtx_insn *.
6544 (modified_between_p): Strengthen local "insn" from rtx to
6545 rtx_insn *.
6546 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6547 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6548 const rtx_insn *.
6549
6550 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6551
6552 * resource.c (next_insn_no_annul): Strengthen local "next" from
6553 rtx to rtx_insn *.
6554 (mark_referenced_resources): Likewise for local "insn".
6555
6556 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6557
6558 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6559 to rtx_insn *.
6560 (find_reloads): Likewise for param 1.
6561 (subst_reloads): Likewise for sole param.
6562 (find_equiv_reg): Likwise for param 2.
6563 (regno_clobbered_p): Likwise for param 2.
6564 (reload): Likewise for param 1.
6565
6566 * caller-save.c (save_call_clobbered_regs): Strengthen local
6567 "insn" from rtx to rtx_insn *.
6568 (insert_one_insn): Likewise for local "insn".
6569
6570 * reload.c (this_insn): Likewise for this global.
6571 (find_reloads): Likewise for param "insn".
6572 (find_reloads_toplev): Likewise.
6573 (find_reloads_address): Likewise.
6574 (subst_reg_equivs): Likewise.
6575 (update_auto_inc_notes): Likewise.
6576 (find_reloads_address_1): Likewise.
6577 (find_reloads_subreg_address): Likewise.
6578 (subst_reloads): Likewise.
6579 (find_equiv_reg): Likewise, also for local "p".
6580 (regno_clobbered_p): Likewise for param "insn".
6581
6582 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6583 array.
6584 (spill_reg_store): Likewise for the elements of this array.
6585 (remove_init_insns): Likewise for local "equiv_insn".
6586 (will_delete_init_insn_p): Likewise for param "insn".
6587 (reload): Likewise for param ""first" and local "insn".
6588 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6589 rtx_insn *.
6590 (calculate_elim_costs_all_insns): Likewise.
6591 (delete_caller_save_insns): Likewise.
6592 (spill_failure): Likewise for param "insn".
6593 (delete_dead_insn): Likewise.
6594 (set_label_offsets): Likewise.
6595 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6596 "prev_insn".
6597 (elimination_costs_in_insn): Likewise for param "insn".
6598 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6599 when referring to an insn.
6600 (set_initial_label_offsets): Likewise.
6601 (set_offsets_for_label): Strengthen param "insn" from rtx to
6602 rtx_insn *.
6603 (init_eliminable_invariants): Likewise for param "first" and local
6604 "insn".
6605 (fixup_eh_region_note): Likewise for param "insn".
6606 (reload_as_needed): Likewise for locals "prev", "insn",
6607 "old_next", "old_prev", "next".
6608 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6609 "last".
6610 (reload_inheritance_insn): Strengthen elements of this array from
6611 rtx to rtx_insn *.
6612 (failed_reload): Likewise for param "insn".
6613 (choose_reload_regs): Likewise for local "insn". Replace use of
6614 NULL_RTX with NULL when referring to an insn.
6615 (input_reload_insns): Strengthen elements of this array from rtx
6616 to rtx_insn *.
6617 (other_input_address_reload_insns): Likewise for this global.
6618 (other_input_reload_insns): Likewise for this global.
6619 (input_address_reload_insns): Likwise for the elements of this
6620 array.
6621 (inpaddr_address_reload_insns): Likwise for the elements of this
6622 array.
6623 (output_reload_insns): Likewise for the elements of this array.
6624 (output_address_reload_insns): Likewise for the elements of this
6625 array.
6626 (outaddr_address_reload_insns): Likewise for the elements of this
6627 array.
6628 (operand_reload_insns): Likewise for this global.
6629 (other_operand_reload_insns): Likewise for this global.
6630 (other_output_reload_insns): Likewise for the elements of this
6631 array.
6632 (new_spill_reg_store): Likewise for the elements of this
6633 array.
6634 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6635 Strengthen local "where" from rtx * to rtx_insn **.
6636 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6637 from rtx to rtx_insn *.
6638 (do_input_reload): Likewise for local "insn".
6639 (do_output_reload): Likewise for local "insn".
6640 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6641 (emit_insn_if_valid_for_reload): Likewise for return type and local
6642 "last". Add checked cast to rtx_insn when returning "insn" since
6643 this has been through emit_insn.
6644 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6645 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6646 returning "insn" since it's been through
6647 emit_insn_if_valid_for_reload at this point.
6648 (delete_output_reload): Strengthen param "insn" and locals
6649 "output_reload_insn", "i2" from rtx to rtx_insn *.
6650 (delete_address_reloads): Likewise for params "dead_insn",
6651 "current_insn" and locals "prev", "next".
6652 (delete_address_reloads_1): Likewise for params "dead_insn",
6653 "current_insn" and locals "prev", "i2".
6654 (inc_for_reload): Likewise for locals "last", "add_insn".
6655 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6656 rtx_insn *.
6657
6658 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6659 param of this duplicate of the prototype from reload.h
6660
6661 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6662
6663 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6664 rtx to rtx_insn *.
6665 (regstat_bb_compute_calls_crossed): Likewise.
6666
6667 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6668
6669 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6670 to rtx_insn *.
6671 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6672 with an insn.
6673 (regrename_analyze): Strengthen local "insn" from rtx to
6674 rtx_insn *.
6675 (scan_rtx_reg): Likewise for param "insn".
6676 (scan_rtx_address): Likewise.
6677 (scan_rtx): Likewise.
6678 (restore_operands): Likewise.
6679 (record_out_operands): Likewise.
6680 (build_def_use): Likewise for local "insn". Replace use of
6681 NULL_RTX with NULL when dealing with an insn.
6682
6683 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6684
6685 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6686 * reginfo.c (reg_scan): Likewise, also for local "insn".
6687 (reg_scan_mark_refs): Likewise for param "insn".
6688 (init_subregs_of_mode): Likewise for local "insn".
6689
6690 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6691
6692 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6693 "insn" from rtx to rtx_insn *.
6694 (replace_oldest_value_reg): Likewise for param "insn".
6695 (replace_oldest_value_addr): Likewise.
6696 (replace_oldest_value_mem): Likewise.
6697 (apply_debug_insn_changes): Likewise for local "last_insn".
6698 (copyprop_hardreg_forward_1): Likewise for local "insn".
6699
6700 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6701
6702 * reg-stack.c (next_flags_user): Strengthen return type and param
6703 "insn" from rtx to rtx_insn *.
6704 (straighten_stack): Likewise for param "insn".
6705 (check_asm_stack_operands): Likewise.
6706 (remove_regno_note): Likewise.
6707 (emit_pop_insn): Likewise for return type, param "insn", local
6708 "pop_insn".
6709 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6710 "limit" from rtx to rtx_insn *.
6711 (swap_to_top): Likewise for param "insn".
6712 (move_for_stack_reg): Likewise.
6713 (move_nan_for_stack_reg): Likewise.
6714 (swap_rtx_condition): Likewise.
6715 (compare_for_stack_reg): Likewise.
6716 (subst_all_stack_regs_in_debug_insn): Likewise.
6717 (subst_stack_regs_pat): Likewise, and local "insn2".
6718 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6719 rtx_insn *.
6720 (subst_stack_regs): Likewise.
6721 (change_stack): Likewise.
6722 (convert_regs_1): Likewise for locals "insn", "next".
6723
6724 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6725
6726 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6727 rtx_insn *.
6728 (combine_set_extension): Likewise for param "curr_insn".
6729 (transform_ifelse): Likewise for param "def_insn".
6730 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6731 from vec<rtx> * to vec<rtx_insn *> *.
6732 (is_cond_copy_insn): Likewise for param "insn".
6733 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6734 to vec<rtx_insn *>.
6735 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6736 local "def_insn" from rtx to rtx_insn *.
6737 (get_sub_rtx): Likewise for param "def_insn".
6738 (merge_def_and_ext): Likewise.
6739 (combine_reaching_defs): Likewise.
6740 (add_removable_extension): Likewise for param "insn".
6741 (find_removable_extensions): Likewise for local "insn".
6742 (find_and_remove_re): Likewise for locals "curr_insn" and
6743 "def_insn". Strengthen locals "reinsn_del_list" and
6744 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
6745
6746 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6747
6748 * recog.c (split_insn): Strengthen param "insn" and locals
6749 "first", "last" from rtx to rtx_insn *.
6750 (split_all_insns): Likewise for locals "insn", "next".
6751 (split_all_insns_noflow): Likewise.
6752
6753 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6754
6755 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
6756 const rtx_insn *.
6757 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6758 (debug_rtx_find): Likewise for param 1 "x".
6759
6760 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
6761 const_rtx to const rtx_insn *. Likewise for local "insn".
6762 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6763 (debug_rtx_find): Likewise for param 1 "x".
6764 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
6765 from const_rtx to const rtx_insn * within the appropriate cases of
6766 the switch statement.
6767
6768 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
6769 Strengthen local "insns" from rtx to rtx_insn * since this is
6770 passed to a call to debug_rtx_list.
6771
6772 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6773
6774 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
6775 to rtx_insn *.
6776
6777 * function.c (stack_protect_epilogue): Add checked cast to
6778 rtx_insn for now when invoking predict_insn_def.
6779
6780 * predict.c (predict_insn): Strengthen param "insn" from rtx to
6781 rtx_insn *.
6782 (predict_insn_def): Likewise.
6783 (rtl_predict_edge): Likewise for local "last_insn".
6784 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
6785 const rtx_insn *.
6786 (combine_predictions_for_insn): Strengthen param "insn" from rtx
6787 to rtx_insn *.
6788 (bb_estimate_probability_locally): Likewise for local "last_insn".
6789 (expensive_function_p): Likewise for local "insn".
6790
6791 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
6792 local "jmp", since this is used when invoking predict_insn_def.
6793
6794 2014-08-22 Marek Polacek <polacek@redhat.com>
6795
6796 PR c++/62199
6797 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
6798
6799 2014-08-22 Marek Polacek <polacek@redhat.com>
6800
6801 PR c/61271
6802 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
6803 a comparison in parens.
6804 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
6805 in parens.
6806
6807 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6808
6809 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
6810 rtx_insn *.
6811
6812 * cprop.c (fis_get_condition): Likewise.
6813
6814 * postreload.c (reload_cse_regs): Likewise for param "first".
6815 (reload_cse_simplify): Likewise for param "insn".
6816 (reload_cse_regs_1): Likewise for local "insn".
6817 (reload_cse_simplify_set): Likewise for param "insn".
6818 (reload_cse_simplify_operands): Likewise.
6819 (struct reg_use): Likewise for field "insn".
6820 (reload_combine_purge_insn_uses): Likewise for param "insn".
6821 (fixup_debug_insns): Likewise for params "from", "to" and local
6822 "insn".
6823 (try_replace_in_use): Likewise for local "use_insn".
6824 (reload_combine_recognize_const_pattern): Likewise for param
6825 "insn" and locals "add_moved_after_insn", "use_insn".
6826 (reload_combine_recognize_pattern): Likewise for param "insn" and
6827 local "prev".
6828 (reload_combine): Likewise for locals "insn", "prev".
6829 (reload_combine_note_use): Likewise for param "insn".
6830 (move2add_use_add2_insn): Likewise.
6831 (move2add_use_add3_insn): Likewise.
6832 (reload_cse_move2add): Likewise, also for local "next".
6833 (move2add_note_store): Likewise for local "insn".
6834
6835 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6836
6837 * postreload-gcse.c (struct occr): Strengthen field "insn" from
6838 rtx to rtx_insn *.
6839 (struct unoccr): Likewise.
6840 (struct modifies_mem): Likewise.
6841 (alloc_mem): Likewise for local "insn".
6842 (insert_expr_in_table): Likewise for param "insn".
6843 (dump_expr_hash_table_entry): Likewise for local "insn".
6844 (oprs_unchanged_p): Likewise for param "insn".
6845 (load_killed_in_block_p): Likewise for local "setter".
6846 (record_last_reg_set_info): Likewise for param "insn".
6847 (record_last_reg_set_info_regno): Likewise.
6848 (record_last_mem_set_info): Likewise.
6849 (record_last_set_info): Likewise for local "last_set_insn".
6850 (record_opr_changes): Likewise for param "insn".
6851 (hash_scan_set): Likewise.
6852 (compute_hash_table): Likewise for local "insn".
6853 (get_avail_load_store_reg): Likewise for param "insn".
6854 (eliminate_partially_redundant_load): Likewise, also for locals
6855 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
6856 RTX for insns.
6857 (eliminate_partially_redundant_loads): Likewise for local "insn".
6858
6859 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6860
6861 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
6862 rtx to rtx_insn *.
6863 (expand_binop): Likewise for locals "entry_last", "last", "insns"
6864 (expand_twoval_unop): Likewise for locals entry_last", "last".
6865 (expand_twoval_binop): Likewise.
6866 (expand_twoval_binop_libfunc): Likewise for local "insns".
6867 (widen_leading): Likewise for local "last".
6868 (expand_doubleword_clz): Likewise for local "seq". Strengthen
6869 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
6870 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
6871 (expand_parity): Likewise for locals "last" and "seq".
6872 (expand_ffs): Likewise for local "seq". Strengthen local
6873 "nonzero_label" from rtx to rtx_code_label *.
6874 (expand_absneg_bit): Strengthen local "insns" from rtx to
6875 rtx_insn *.
6876 (expand_unop_direct): Likewise for local "last".
6877 (expand_unop): Likewise for locals "last", "insns".
6878 (expand_abs_nojump): Likewise for local "last".
6879 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
6880 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
6881 rtx_insn *.
6882 (expand_copysign_absneg): Strengthen local "label" from rtx to
6883 rtx_code_label *.
6884 (expand_copysign_bit): Strengthen local "insns" from rtx to
6885 rtx_insn *.
6886 (struct no_conflict_data): Likewise for fields "first", "insn".
6887 (emit_libcall_block_1): Likewise for param "insns" and locals
6888 "next", "last", "insn".
6889 (emit_libcall_block): For now, add a checked cast to rtx_insn *
6890 on "insns" when invoking emit_libcall_block_1. Ultimately we
6891 want to strengthen insns itself.
6892 (prepare_cmp_insn): Strengthen local "last" from rtx to
6893 rtx_insn *.
6894 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
6895 (prepare_float_lib_cmp): Likewise for local "insns".
6896 (emit_conditional_move): Likewise for local "last".
6897 (emit_conditional_add): Likewise.
6898 (have_sub2_insn): Likewise for local "seq".
6899 (expand_float): Likewise for local "insns". Strengthen locals
6900 "label", "neglabel" from rtx to rtx_code_label *.
6901 (expand_fix): Likewise for locals "last", "insn", "insns" (to
6902 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
6903 (expand_fixed_convert): Likewise for local "insns" (to
6904 rtx_insn *).
6905 (expand_sfix_optab): Likewise for local "last".
6906 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
6907 to rtx_code_label *.
6908 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
6909 from rtx to rtx_insn *.
6910 (expand_atomic_fetch_op): Likewise for local "insn".
6911 (maybe_legitimize_operand_same_code): Likewise for local "last".
6912 (maybe_legitimize_operands): Likewise.
6913
6914 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6915
6916 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
6917 "insn" from rtx to rtx_insn *.
6918 (ps_rtl_insn): Likewise for return type.
6919 (doloop_register_get): Likewise for params "head", "tail" and
6920 locals "insn", "first_insn_not_to_check".
6921 (schedule_reg_move): Likewise for local "this_insn".
6922 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
6923 of gen_move_insn for now.
6924 (reset_sched_times): Strengthen local "insn" from rtx to
6925 rtx_insn *.
6926 (permute_partial_schedule): Likewise.
6927 (duplicate_insns_of_cycles): Likewise for local "u_insn".
6928 (dump_insn_location): Likewise for param "insn".
6929 (loop_canon_p): Likewise for local "insn".
6930 (sms_schedule): Likewise.
6931 (print_partial_schedule): Likewise.
6932 (ps_has_conflicts): Likewise.
6933
6934 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6935
6936 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
6937 "tailp" from rtx * to rtx_insn **.
6938
6939 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
6940 from rtx to rtx_insn *.
6941 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
6942 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
6943 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
6944 rtx to rtx_insn *.
6945 * modulo-sched.c (const_iteration_count): Strengthen return type
6946 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
6947 use of NULL_RTX with NULL when working with insns.
6948 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
6949 to rtx_insn *.
6950 (sms_schedule): Likewise.
6951 * sched-rgn.c (init_ready_list): Likewise, also for locals
6952 "src_head" and "src_next_tail".
6953 (compute_block_dependences): Likewise.
6954 (free_block_dependencies): Likewise.
6955 (debug_rgn_dependencies): Likewise.
6956 (free_rgn_deps): Likewise.
6957 (compute_priorities): Likewise.
6958 (schedule_region): Likewise.
6959 * sel-sched.c (find_ebb_boundaries): Likewise.
6960
6961 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
6962 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
6963
6964 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6965
6966 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
6967 from rtx to rtx_insn *.
6968 (new_seginfo): Likewise for param "insn".
6969 (create_pre_exit): Likewise for locals "last_insn",
6970 "before_return_copy", "return_copy".
6971 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
6972 "mode_set".
6973
6974 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6975
6976 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
6977 from rtx to rtx_insn *.
6978 (lra_push_insn): Likewise for 1st param.
6979 (lra_push_insn_and_update_insn_regno_info): Likewise.
6980 (lra_pop_insn): Likewise for return type.
6981 (lra_invalidate_insn_data): Likewise for 1st param.
6982 (lra_set_insn_deleted): Likewise.
6983 (lra_delete_dead_insn): Likewise.
6984 (lra_process_new_insns): Likewise for first 3 params.
6985 (lra_set_insn_recog_data): Likewise for 1st param.
6986 (lra_update_insn_recog_data): Likewise.
6987 (lra_set_used_insn_alternative): Likewise.
6988 (lra_invalidate_insn_regno_info): Likewise.
6989 (lra_update_insn_regno_info): Likewise.
6990 (lra_former_scratch_operand_p): Likewise.
6991 (lra_eliminate_regs_1): Likewise.
6992 (lra_get_insn_recog_data): Likewise.
6993
6994 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
6995 rtx to rtx_insn *.
6996
6997 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
6998 "mv1" and "mv2".
6999 (substitute_within_insn): New.
7000 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7001 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7002 Replace call to "substitute" with call to substitute_within_insn.
7003
7004 * lra-constraints.c (curr_insn): Strengthen from rtx to
7005 rtx_insn *.
7006 (get_equiv_with_elimination): Likewise for param "insn".
7007 (match_reload): Strengthen params "before" and "after" from rtx *
7008 to rtx_insn **.
7009 (emit_spill_move): Likewise for return type. Add a checked cast
7010 to rtx_insn * on result of gen_move_insn for now.
7011 (check_and_process_move): Likewise for local "before". Replace
7012 NULL_RTX with NULL when referring to insns.
7013 (process_addr_reg): Strengthen params "before" and "after" from
7014 rtx * to rtx_insn **.
7015 (insert_move_for_subreg): Likewise.
7016 (simplify_operand_subreg): Strengthen locals "before" and "after"
7017 from rtx to rtx_insn *.
7018 (process_address_1): Strengthen params "before" and "after" from
7019 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7020 rtx to rtx_insn *.
7021 (process_address): Strengthen params "before" and "after" from
7022 rtx * to rtx_insn **.
7023 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7024 (curr_insn_transform): Strengthen locals "before" and "after"
7025 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7026 to insns.
7027 (loc_equivalence_callback): Update cast of "data", changing
7028 resulting type from rtx to rtx_insn *.
7029 (substitute_pseudo_within_insn): New.
7030 (inherit_reload_reg): Strengthen param "insn" from rtx to
7031 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7032 NULL when referring to insns. Add a checked cast to rtx_insn *
7033 when using usage_insn to invoke lra_update_insn_regno_info.
7034 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7035 likewise for locals "restore", "save". Add checked casts to
7036 rtx_insn * when using usage_insn to invoke
7037 lra_update_insn_regno_info and lra_process_new_insns. Replace
7038 NULL_RTX with NULL when referring to insns.
7039 (split_if_necessary): Strengthen param "insn" from rtx to
7040 rtx_insn *.
7041 (update_ebb_live_info): Likewise for params "head", "tail" and local
7042 "prev_insn".
7043 (get_last_insertion_point): Likewise for return type and local "insn".
7044 (get_live_on_other_edges): Likewise for local "last".
7045 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7046 "prev_insn", "next_insn", "restore".
7047 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7048 (undo_optional_reloads): Likewise for local "insn".
7049
7050 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7051 "insn".
7052 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7053 insns.
7054 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7055 rtx_insn *.
7056 (spill_pseudos): Likewise for local "insn".
7057 (init_elimination): Likewise.
7058 (process_insn_for_elimination): Likewise for param "insn".
7059
7060 * lra-lives.c (curr_insn): Likewise.;
7061
7062 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7063 (remove_pseudos): Likewise for param "insn".
7064 (spill_pseudos): Likewise for local "insn".
7065 (lra_final_code_change): Likewise for locals "insn", "curr".
7066
7067 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7068 (lra_set_insn_deleted): Likewise.
7069 (lra_delete_dead_insn): Likewise, and for local "prev".
7070 (new_insn_reg): Likewise for param "insn".
7071 (lra_set_insn_recog_data): Likewise.
7072 (lra_update_insn_recog_data): Likewise.
7073 (lra_set_used_insn_alternative): Likewise.
7074 (get_insn_freq): Likewise.
7075 (invalidate_insn_data_regno_info): Likewise.
7076 (lra_invalidate_insn_regno_info): Likewise.
7077 (lra_update_insn_regno_info): Likewise.
7078 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7079 vec<rtx_insn *>.
7080 (lra_push_insn_1): Strengthen param "insn" from rtx to
7081 rtx_insn *.
7082 (lra_push_insn): Likewise.
7083 (lra_push_insn_and_update_insn_regno_info): Likewise.
7084 (lra_pop_insn): Likewise for return type and local "insn".
7085 (push_insns): Likewise for params "from", "to", and local "insn".
7086 (setup_sp_offset): Likewise for params "from", "last" and locals
7087 "before", "insn".
7088 (lra_process_new_insns): Likewise for params "insn", "before",
7089 "after" and local "last".
7090 (struct sloc): Likewise for field "insn".
7091 (lra_former_scratch_operand_p): Likewise for param "insn".
7092 (remove_scratches): Likewise for locals "insn", "last".
7093 (check_rtl): Likewise for local "insn".
7094 (add_auto_inc_notes): Likewise for param "insn".
7095 (update_inc_notes): Likewise for local "insn".
7096 (lra): Replace NULL_RTX with NULL when referring to insn.
7097
7098 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7099
7100 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7101 to rtx_insn *.
7102 (resolve_reg_notes): Likewise.
7103 (resolve_simple_move): Likewise for return type, param "insn", and
7104 locals "insns", "minsn".
7105 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7106 (resolve_use): Likewise.
7107 (resolve_debug): Likewise.
7108 (find_decomposable_shift_zext): Likewise.
7109 (resolve_shift_zext): Likewise for return type, param "insn", and
7110 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7111 (decompose_multiword_subregs): Likewise for local "insn",
7112 "orig_insn", "decomposed_shift", "end".
7113
7114 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7115
7116 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7117 param "insns" from rtx to rtx_insn *.
7118
7119 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7120 rtx to rtx_insn *.
7121 (struct iv_to_split): Likewise.
7122 (loop_exit_at_end_p): Likewise for local "insn".
7123 (split_edge_and_insert): Likewise for param "insns".
7124 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7125 and locals "seq", "jump".
7126 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7127 "branch_code"; update invocations of compare_and_jump_seq to
7128 eliminate NULL_RTX in favor of NULL.
7129 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7130 rtx to rtx_insn *.
7131 (reset_debug_uses_in_loop): Likewise.
7132 (analyze_insn_to_expand_var): Likewise for param "insn".
7133 (analyze_iv_to_split_insn): Likewise.
7134 (analyze_insns_in_loop): Likewise for local "insn".
7135 (insert_base_initialization): Likewise for param
7136 "insn" and local "seq".
7137 (split_iv): Likewise for param "insn" and local "seq".
7138 (expand_var_during_unrolling): Likewise for param "insn".
7139 (insert_var_expansion_initialization): Likewise for local "seq".
7140 (combine_var_copies_in_loop_exit): Likewise.
7141 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7142 "insn".
7143 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7144 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7145 "next".
7146
7147 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7148
7149 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7150 rtx_insn *.
7151 (iv_analyze_result): Likewise.
7152 (iv_analyze_expr): Likewise.
7153 (biv_p): Likewise.
7154
7155 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7156 local "def_insn" from rtx to rtx_insn *.
7157 (get_biv_step_1): Likewise for local "insn".
7158 (iv_analyze_expr): Likewise for param "insn".
7159 (iv_analyze_def): Likewise for local "insn".
7160 (iv_analyze_op): Likewise for param "insn".
7161 (iv_analyze): Likewise.
7162 (iv_analyze_result): Likewise.
7163 (biv_p): Likewise.
7164 (suitable_set_for_replacement): Likewise.
7165 (simplify_using_initial_values): Likewise for local "insn".
7166 (iv_number_of_iterations): Likewise for param "insn".
7167 (check_simple_exit): Add checked cast to rtx_insn when invoking
7168 iv_number_of_iterations for now (until get_condition is
7169 strengthened).
7170
7171 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7172 "insn" from rtx to rtx_insn *.
7173 (analyze_insns_in_loop): Likewise for local "insn".
7174
7175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7176
7177 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7178 to rtx_insn *.
7179 (struct invariant): Likewise.
7180 (hash_invariant_expr_1): Likewise for param "insn".
7181 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7182 (find_exits): Likewise for local "insn".
7183 (create_new_invariant): Likewise for param "insn".
7184 (check_dependencies): Likewise.
7185 (find_invariant_insn): Likewise.
7186 (record_uses): Likewise.
7187 (find_invariants_insn): Likewise.
7188 (find_invariants_bb): Likewise for local "insn".
7189 (get_pressure_class_and_nregs): Likewise for param "insn".
7190 (calculate_loop_reg_pressure): Likewise for local "insn".
7191
7192 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7193
7194 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7195 to rtx_insn *.
7196 (add_test): Likewise for locals "seq", "jump".
7197 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7198
7199 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7200
7201 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7202 rtx_insn *.
7203 (rebuild_jump_labels_chain): Likewise for param "chain".
7204
7205 * cfgexpand.c (pass_expand::execute): Add checked cast to
7206 rtx_insn * when calling rebuild_jump_labels_chain in region where
7207 we know e->insns.r is non-NULL.
7208
7209 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7210 rtx_insn *.
7211 (rebuild_jump_labels): Likewise.
7212 (rebuild_jump_labels_chain): Likewise for param "chain".
7213 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7214 (init_label_info): Likewise for param "f".
7215 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7216 "prev_nonjump_insn".
7217 (mark_all_labels): Likewise for param "f" and locals "insn",
7218 "prev_nonjump_insn".
7219
7220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7221
7222 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7223 from rtx to rtx_insn *insn.
7224 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7225 (ira_add_allocno_copy): Likewise.
7226 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7227 rtx to rtx_insn *.
7228 (ira_create_copy): Likewise.
7229 (ira_add_allocno_copy): Likewise.
7230 (create_bb_allocnos): Likewise for local "insn".
7231 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7232 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7233 process_regs_for_copy for rtx_insn * param.
7234 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7235 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7236 process_regs_for_copy for rtx_insn * param.
7237 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7238 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7239 (record_operand_costs): Likewise.
7240 (scan_one_insn): Likewise for return type, and for param "insn".
7241 (process_bb_for_costs): Likewise for local "insn".
7242 (process_bb_node_for_hard_reg_moves): Likewise.
7243 * ira-emit.c (struct move): Likewise for field "insn".
7244 (create_move): Eliminate use of NULL_RTX when dealing with an
7245 rtx_insn *.
7246 (emit_move_list): Strengthen return type and locals "result",
7247 "insn" from rtx to rtx_insn *insn.
7248 (emit_moves): Likewise for locals "insns", "tmp".
7249 (ira_emit): Likewise for local "insn".
7250 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7251 "insn".
7252 (find_call_crossed_cheap_reg): Likewise.
7253 (process_bb_node_lives): Likewise for local "insn".
7254 * ira.c (decrease_live_ranges_number): Likewise.
7255 (compute_regs_asm_clobbered): Likewise.
7256 (build_insn_chain): Likewise.
7257 (find_moveable_pseudos): Likewise, also locals "def_insn",
7258 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7259 to rtx_insn **. Add a checked cast when assigning from
7260 "closest_use" into closest_uses array in a region where we know
7261 it's a non-NULL insn.
7262 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7263 to rtx_insn *.
7264 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7265 "last_interesting_insn", "uin".
7266 (move_unallocated_pseudos): Likewise for locals "def_insn",
7267 "move_insn", "newinsn".
7268
7269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7270
7271 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7272 Strengthen locals "done_label", "do_error" from rtx to
7273 rtx_code_label *.
7274 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7275 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7276 rtx_code_label *.
7277 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7278 "done_label", "do_error" to rtx_code_label * and local "last" to
7279 rtx_insn *.
7280 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7281 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7282 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7283 "after_lopart_neg", "do_overflow", "hipart_different" to
7284 rtx_code_label * and local "last" to rtx_insn *.
7285
7286 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7287
7288 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7289 "insn" and "move_insn" from rtx to rtx_insn *.
7290
7291 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7292
7293 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7294 rtx_insn *.
7295 (cheap_bb_rtx_cost_p): Likewise.
7296 (first_active_insn): Likewise for return type and local "insn".
7297 (last_active_insn): Likewise for return type and locals "insn",
7298 "head".
7299 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7300 "insn_b".
7301 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7302 "seq".
7303 (noce_try_move): Likewise for local "seq".
7304 (noce_try_store_flag): Likewise.
7305 (noce_try_store_flag_constants): Likewise.
7306 (noce_try_addcc): Likewise.
7307 (noce_try_store_flag_mask): Likewise.
7308 (noce_try_cmove): Likewise.
7309 (noce_try_minmax): Likewise.
7310 (noce_try_abs): Likewise.
7311 (noce_try_sign_mask): Likewise.
7312 (noce_try_bitop): Likewise.
7313 (noce_can_store_speculate_p): Likewise for local "insn".
7314 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7315 seq".
7316 (check_cond_move_block): Likewise for local "insn".
7317 (cond_move_convert_if_block): Likewise.
7318 (cond_move_process_if_block): Likewise for locals "seq",
7319 "loc_insn".
7320 (noce_find_if_block): Likewise for local "jump".
7321 (merge_if_block): Likewise for local "last".
7322 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7323 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7324 (block_has_only_trap): Likewise for return type and local "trap".
7325 (find_if_case_1): Likewise for local "jump".
7326 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7327 "insn".
7328
7329 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7330
7331 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7332 "last_insn", "loop_end" from rtx to rtx_insn *.
7333
7334 * hw-doloop.c (scan_loop): Likewise for local "insn".
7335 (discover_loop): Likewise for param "tail_insn".
7336 (discover_loops): Likewise for local "tail".
7337
7338 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7339 cast to rtx_insn * when assigning from an rtx local to a
7340 hwloop_info's "last_insn" field.
7341
7342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7343
7344 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7345 (add_delay_dependencies): Strengthen local "pro" from rtx to
7346 rtx_insn *.
7347 (recompute_todo_spec): Likewise.
7348 (dep_cost_1): Likewise for locals "insn", "used".
7349 (schedule_insn): Likewise for local "dbg".
7350 (schedule_insn): Likewise for locals "pro", "next".
7351 (unschedule_insns_until): Likewise for local "con".
7352 (restore_pattern): Likewise for local "next".
7353 (estimate_insn_tick): Likewise for local "pro".
7354 (resolve_dependencies): Likewise for local "next".
7355 (fix_inter_tick): Likewise.
7356 (fix_tick_ready): Likewise for local "pro".
7357 (add_to_speculative_block): Likewise for locals "check", "twin",
7358 "pro".
7359 (sched_extend_bb): Likewise for locals "end", "insn".
7360 (init_before_recovery): Likewise for local "x".
7361 (sched_create_recovery_block): Likewise for local "barrier".
7362 (create_check_block_twin): Likewise for local "pro".
7363 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7364 "consumer".
7365 (unlink_bb_notes): Update for change to type of bb_header.
7366 Strengthen locals "prev", "label", "note", "next" from rtx to
7367 rtx_insn *.
7368 (clear_priorities): Likewise for local "pro".
7369
7370 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7371
7372 * gcse.c (struct occr): Strengthen field "insn" from rtx to
7373 rtx_insn *.
7374 (test_insn): Likewise for this global.
7375 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7376 const rtx_insn *.
7377 (oprs_anticipatable_p): Likewise.
7378 (oprs_available_p): Likewise.
7379 (insert_expr_in_table): Strengthen param "insn" from rtx to
7380 rtx_insn *.
7381 (hash_scan_set): Likewise.
7382 (hash_scan_clobber): Likewise.
7383 (hash_scan_call): Likewise.
7384 (hash_scan_insn): Likewise.
7385 (compute_hash_table_work): Likewise for local "insn".
7386 (process_insert_insn): Likewise for return type and local "pat".
7387 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7388 "pat", "pat_end", "maybe_cc0_setter".
7389 (pre_edge_insert): Likewise for local "insn".
7390 (pre_insert_copy_insn): Likewise for param "insn".
7391 (pre_insert_copies): Likewise for local "insn".
7392 (struct set_data): Likewise for field "insn".
7393 (single_set_gcse): Likewise for param "insn".
7394 (gcse_emit_move_after): Likewise.
7395 (pre_delete): Likewise for local "insn".
7396 (update_bb_reg_pressure): Likewise for param "from" and local
7397 "insn".
7398 (should_hoist_expr_to_dom): Likewise for param "from".
7399 (hoist_code): Likewise for local "insn".
7400 (get_pressure_class_and_nregs): Likewise for param "insn".
7401 (calculate_bb_reg_pressure): Likewise for local "insn".
7402 (compute_ld_motion_mems): Likewise.
7403
7404 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7405
7406 * genpeep.c (main): Rename param back from "uncast_ins1" to
7407 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7408 checked cast.
7409
7410 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7411
7412 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7413
7414 PR target/62195
7415 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7416 documentation to state it is only for VSX operations.
7417
7418 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7419 constraint only active if VSX.
7420
7421 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7422 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7423 (lfiwzx): Likewise.
7424
7425 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7426
7427 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7428 Strengthen local "insn" from rtx to rtx_insn *.
7429 (use_killed_between): Likewise for param "target_insn".
7430 (all_uses_available_at): Likewise for param "target_insn" and
7431 local "next".
7432 (update_df_init): Likewise for params "def_insn", "insn".
7433 (update_df): Likewise for param "insn".
7434 (try_fwprop_subst): Likewise for param "def_insn" and local
7435 "insn".
7436 (free_load_extend): Likewise for param "insn".
7437 (forward_propagate_subreg): Likewise for param "def_insn" and
7438 local "use_insn".
7439 (forward_propagate_asm): Likewise for param "def_insn" and local
7440 "use_insn".
7441 (forward_propagate_and_simplify): Likewise for param "def_insn"
7442 and local "use_insn".
7443 (forward_propagate_into): Likewise for locals "def_insn" and
7444 "use_insn".
7445
7446 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7447
7448 * function.c (emit_initial_value_sets): Strengthen local "seq"
7449 from rtx to rtx_insn *.
7450 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7451 local "seq".
7452 (instantiate_virtual_regs): Likewise for local "insn".
7453 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7454 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7455 (expand_function_end): Likewise for locals "insn" and "seq".
7456 (epilogue_done): Likewise for local "insn".
7457 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7458 "last", "trial".
7459 (reposition_prologue_and_epilogue_notes): Likewise for locals
7460 "insn", "last", "note", "first".
7461 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7462 (pass_match_asm_constraints::execute): Likewise for local "insn".
7463
7464 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7465
7466 * output.h (final_scan_insn): Strengthen return type from rtx to
7467 rtx_insn *.
7468 (final_forward_branch_p): Likewise for param.
7469 (current_output_insn): Likewise for this global.
7470
7471 * final.c (rtx debug_insn): Likewise for this variable.
7472 (current_output_insn): Likewise.
7473 (get_attr_length_1): Rename param "insn" to "uncast_insn",
7474 adding "insn" back in as an rtx_insn * with a checked cast, so
7475 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7476 first param.
7477 (compute_alignments): Strengthen local "label" from rtx to
7478 rtx_insn *.
7479 (shorten_branches): Rename param from "first" to "uncast_first",
7480 introducing a new local rtx_insn * "first" using a checked cast to
7481 effectively strengthen "first" from rtx to rtx_insn * without
7482 affecting the type signature. Strengthen locals "insn", "seq",
7483 "next", "label" from rtx to rtx_insn *.
7484 (change_scope): Strengthen param "orig_insn" and local "insn" from
7485 rtx to rtx_insn *.
7486 (final_start_function): Rename param from "first" to "uncast_first",
7487 introducing a new local rtx_insn * "first" using a checked cast to
7488 effectively strengthen "first" from rtx to rtx_insn * without
7489 affecting the type signature. Strengthen local "insn" from rtx to
7490 rtx_insn *.
7491 (dump_basic_block_info): Strengthen param "insn" from rtx to
7492 rtx_insn *.
7493 (final): Rename param from "first" to "uncast_first",
7494 introducing a new local rtx_insn * "first" using a checked cast to
7495 effectively strengthen "first" from rtx to rtx_insn * without
7496 affecting the type signature. Strengthen locals "insn", "next"
7497 from rtx to rtx_insn *.
7498 (output_alternate_entry_point): Strengthen param "insn" from rtx to
7499 rtx_insn *.
7500 (call_from_call_insn): Strengthen param "insn" from rtx to
7501 rtx_call_insn *.
7502 (final_scan_insn): Rename param from "insn" to "uncast_insn",
7503 introducing a new local rtx_insn * "insn" using a checked cast to
7504 effectively strengthen "insn" from rtx to rtx_insn * without
7505 affecting the type signature. Strengthen return type and locals
7506 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
7507 now-redundant checked cast to rtx_insn * from both invocations of
7508 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
7509 introducing a local "call_insn" for use when invoking
7510 call_from_call_insn.
7511 (notice_source_line): Strengthen param "insn" from rtx to
7512 rtx_insn *.
7513 (leaf_function_p): Likewise for local "insn".
7514 (final_forward_branch_p): Likewise.
7515 (leaf_renumber_regs): Likewise for param "first".
7516 (rest_of_clean_state): Likewise for locals "insn" and "next".
7517 (self_recursive_call_p): Likewise for param "insn".
7518 (collect_fn_hard_reg_usage): Likewise for local "insn".
7519 (get_call_fndecl): Likewise for param "insn".
7520 (get_call_cgraph_rtl_info): Likewise.
7521 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7522 introducing a new local rtx_insn * "insn" using a checked cast to
7523 effectively strengthen "insn" from rtx to rtx_insn * without
7524 affecting the type signature.
7525
7526 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7527 cast when assigning from param "insn" to current_output_insn.
7528 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7529 so that we can assign it back to current_output_insn.
7530
7531 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7532
7533 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7534 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7535 atmxt540s and atmxt540sreva devices.
7536 * config/avr/avr-tables.opt: Regenerate.
7537 * config/avr/t-multilib: Regenerate.
7538 * doc/avr-mmcu.texi: Regenerate.
7539
7540 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7541
7542 * expr.c (convert_move): Strengthen local "insns" from rtx to
7543 rtx_insn *.
7544 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7545 "top_label" from rtx to rtx_code_label *.
7546 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7547 rtx_insn *.
7548 (emit_single_push_insn): Likewise for locals "prev", "last".
7549 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7550 to rtx_code_label *.
7551 (store_constructor): Likewise for locals "loop_start", "loop_end".
7552 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7553 rtx_insn *.
7554 (expand_expr_real_2): Likewise.
7555 (expand_expr_real_1): Strengthen local "label" from rtx to
7556 rtx_code_label *.
7557
7558 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7559
7560 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7561 from rtx to rtx_insn *.
7562 (store_bit_field_1): Likewise.
7563 (extract_bit_field_1): Likewise.
7564 (expand_mult_const): Likewise for local "insns".
7565 (expmed_mult_highpart): Strengthen local "label" from rtx to
7566 rtx_code_label *.
7567 (expand_smod_pow2): Likewise.
7568 (expand_sdiv_pow2): Likewise.
7569 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7570 rtx_insn *. Strengthen locals "label", "label1", "label2",
7571 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7572 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7573 (emit_store_flag): Likewise.
7574 (emit_store_flag_force): Strengthen local "label" from rtx to
7575 rtx_code_label *.
7576 (do_cmp_and_jump): Likewise for param "label".
7577
7578 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7579
7580 * explow.c (force_reg): Strengthen local "insn" from rtx to
7581 rtx_insn *.
7582 (adjust_stack_1): Likewise.
7583 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7584 "final_label", "available_label", "space_available" from rtx to
7585 rtx_code_label *.
7586 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7587 (anti_adjust_stack_and_probe): Likewise.
7588
7589 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7590
7591 * except.h (sjlj_emit_function_exit_after): Strengthen param
7592 "after" from rtx to rtx_insn *. This is only called with
7593 result of get_last_insn (in function.c) so type-change should be
7594 self-contained.
7595
7596 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7597 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7598 to rtx_insn *. These fields are only used from except.c so this
7599 type-change should be self-contained to this patch.
7600
7601 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7602 local "last" from rtx to rtx_insn *.
7603 (dw2_build_landing_pads): Likewise for local "seq".
7604 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7605 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7606 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7607 rtx to rtx_insn *.
7608 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7609 to rtx_insn *.
7610 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7611 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7612 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7613 referring to an insn. Strengthen local "dispatch_label" from
7614 rtx to rtx_code_label *.
7615 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7616 rtx_insn *.
7617 (expand_eh_return): Strengthen local "around_label" from
7618 rtx to rtx_code_label *.
7619 (convert_to_eh_region_ranges): Strengthen locals "iter",
7620 "last_action_insn", "first_no_action_insn",
7621 "first_no_action_insn_before_switch",
7622 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7623
7624 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7625
7626 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7627 from rtx to rtx_insn *.
7628 (cached_next_real_insn): Likewise.
7629 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7630 working with insns.
7631 (dwarf2out_var_location): Strengthen locals "next_real",
7632 "next_note", "expected_next_loc_note", "last_start", "insn" from
7633 rtx to rtx_insn *.
7634
7635 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7636
7637 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7638 from rtx to rtx_insn *.
7639 (create_pseudo_cfg): Likewise for local "insn".
7640
7641 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7642
7643 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7644 from rtx to rtx_insn *.
7645 (df_bb_regno_last_def_find): Likewise.
7646
7647 * df-problems.c (df_rd_bb_local_compute): Likewise.
7648 (df_lr_bb_local_compute): Likewise.
7649 (df_live_bb_local_compute): Likewise.
7650 (df_chain_remove_problem): Likewise.
7651 (df_chain_create_bb): Likewise.
7652 (df_word_lr_bb_local_compute): Likewise.
7653 (df_remove_dead_eq_notes): Likewise for param "insn".
7654 (df_note_bb_compute): Likewise for local "insn".
7655 (simulate_backwards_to_point): Likewise.
7656 (df_md_bb_local_compute): Likewise.
7657
7658 * df-scan.c (df_scan_free_bb_info): Likewise.
7659 (df_scan_start_dump): Likewise.
7660 (df_scan_start_block): Likewise.
7661 (df_install_ref_incremental): Likewise for local "insn".
7662 (df_insn_rescan_all): Likewise.
7663 (df_reorganize_refs_by_reg_by_insn): Likewise.
7664 (df_reorganize_refs_by_insn_bb): Likewise.
7665 (df_recompute_luids): Likewise.
7666 (df_bb_refs_record): Likewise.
7667 (df_update_entry_exit_and_calls): Likewise.
7668 (df_bb_verify): Likewise.
7669
7670 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7671
7672 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7673 "first_note" from rtx to rtx_insn *.
7674 (get_node_of_insn): Likewise for param 2 "insn".
7675 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7676
7677 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7678 rtx_insn *.
7679 (mem_write_insn_p): Likewise.
7680 (mem_access_insn_p): Likewise.
7681 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7682 (def_has_ccmode_p): Likewise for param "insn".
7683 (add_cross_iteration_register_deps): Likewise for locals
7684 "def_insn" and "use_insn".
7685 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7686 (build_intra_loop_deps): Likewise for local "src_insn".
7687 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7688 to rtx_insn *.
7689 (get_node_of_insn): Likewise for param "insn".
7690
7691 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7692
7693 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7694 (deletable_insn_p): Strengthen param "insn" from rtx to
7695 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7696 find_call_stack_args, since this is guarded by CALL_P (insn).
7697 (marked_insn_p): Strengthen param "insn" from rtx to
7698 rtx_insn *.
7699 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7700 invoking find_call_stack_args, since this is guarded by
7701 CALL_P (insn).
7702 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7703 rtx_insn *; we know this is an insn since this was called by
7704 mark_nonreg_stores.
7705 (mark_nonreg_stores_2): Likewise.
7706 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7707 rtx_insn *.
7708 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7709 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7710 to rtx_insn *.
7711 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7712 from rtx to rtx_insn *.
7713 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7714 "next", "ref_insn".
7715 (delete_unmarked_insns): Likewise for locals "insn", "next".
7716 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7717 (mark_reg_dependencies): Likewise for param "insn".
7718 (rest_of_handle_ud_dce): Likewise for local "insn".
7719 (word_dce_process_block): Likewise.
7720 (dce_process_block): Likewise.
7721
7722 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7723
7724 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7725 from rtx to rtx_insn *.
7726 (struct change_cc_mode_args): Likewise for field "insn".
7727 (this_insn): Strengthen from rtx to rtx_insn *.
7728 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7729 with insn.
7730 (validate_canon_reg): Strengthen param "insn" from rtx to
7731 rtx_insn *.
7732 (canon_reg): Likewise.
7733 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7734 dealing with insn.
7735 (record_jump_equiv): Strengthen param "insn" from rtx to
7736 rtx_insn *.
7737 (try_back_substitute_reg): Likewise, also for locals "prev",
7738 "bb_head".
7739 (find_sets_in_insn): Likewise for param "insn".
7740 (canonicalize_insn): Likewise.
7741 (cse_insn): Likewise. Add a checked cast.
7742 (invalidate_from_clobbers): Likewise for param "insn".
7743 (invalidate_from_sets_and_clobbers): Likewise.
7744 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
7745 dealing with insn.
7746 (cse_prescan_path): Strengthen local "insn" from rtx to
7747 rtx_insn *.
7748 (cse_extended_basic_block): Likewise for locals "insn" and
7749 "prev_insn".
7750 (cse_main): Likewise for param "f".
7751 (check_for_label_ref): Likewise for local "insn".
7752 (set_live_p): Likewise for second param ("insn").
7753 (insn_live_p): Likewise for first param ("insn") and for local
7754 "next".
7755 (cse_change_cc_mode_insn): Likewise for first param "insn".
7756 (cse_change_cc_mode_insns): Likewise for first and second params
7757 "start" and "end".
7758 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
7759 and "end".
7760 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
7761 "cc_src_insn".
7762
7763 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7764 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7765 Anna Tikhonova <anna.tikhonova@intel.com>
7766 Ilya Tocar <ilya.tocar@intel.com>
7767 Andrey Turetskiy <andrey.turetskiy@intel.com>
7768 Ilya Verbin <ilya.verbin@intel.com>
7769 Kirill Yukhin <kirill.yukhin@intel.com>
7770 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7771
7772 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
7773 New.
7774 * config/i386/sse.md
7775 (define_mode_iterator VI248_AVX2): Delete.
7776 (define_mode_iterator VI2_AVX2_AVX512BW): New.
7777 (define_mode_iterator VI48_AVX2): Ditto.
7778 (define_insn <shift_insn><mode>3): Delete.
7779 (define_insn "<shift_insn><mode>3<mask_name>" with
7780 VI2_AVX2_AVX512BW): New.
7781 (define_insn "<shift_insn><mode>3<mask_name>" with
7782 VI48_AVX2): Ditto.
7783
7784 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7785 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7786 Anna Tikhonova <anna.tikhonova@intel.com>
7787 Ilya Tocar <ilya.tocar@intel.com>
7788 Andrey Turetskiy <andrey.turetskiy@intel.com>
7789 Ilya Verbin <ilya.verbin@intel.com>
7790 Kirill Yukhin <kirill.yukhin@intel.com>
7791 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7792
7793 * config/i386/sse.md
7794 (define_mode_iterator VI4F_BRCST32x2): New.
7795 (define_mode_attr 64x2_mode): Ditto.
7796 (define_mode_attr 32x2mode): Ditto.
7797 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
7798 with VI4F_BRCST32x2): Ditto.
7799 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
7800 with V16FI mode iterator): Ditto.
7801 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7802 with V16FI): Ditto.
7803 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7804 with VI8F_BRCST64x2): Ditto.
7805
7806 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7807 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7808 Anna Tikhonova <anna.tikhonova@intel.com>
7809 Ilya Tocar <ilya.tocar@intel.com>
7810 Andrey Turetskiy <andrey.turetskiy@intel.com>
7811 Ilya Verbin <ilya.verbin@intel.com>
7812 Kirill Yukhin <kirill.yukhin@intel.com>
7813 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7814
7815 * config/i386/sse.md
7816 (define_mode_iterator VI8_AVX512VL): New.
7817 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
7818
7819 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7820
7821 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
7822 (define_mode_iterator V48_AVX512VL): New.
7823 (define_mode_iterator V12_AVX512VL): Ditto.
7824 (define_insn <avx512>_load<mode>_mask): Split into two similar
7825 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
7826 Refactor output template.
7827 (define_insn "<avx512>_store<mode>_mask"): Ditto.
7828
7829 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7830
7831 * cprop.c (struct occr): Strengthen field "insn" from rtx to
7832 rtx_insn *.
7833 (reg_available_p): Likewise for param "insn".
7834 (insert_set_in_table): Likewise.
7835 (hash_scan_set): Likewise.
7836 (hash_scan_insn): Likewise.
7837 (make_set_regs_unavailable): Likewise.
7838 (compute_hash_table_work): Likewise for local "insn".
7839 (reg_not_set_p): Strengthen param "insn" from const_rtx to
7840 const rtx_insn *.
7841 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
7842 (try_replace_reg): Likewise.
7843 (find_avail_set): Likewise.
7844 (cprop_jump): Likewise for params "setcc", "jump".
7845 (constprop_register): Likewise for param "insn".
7846 (cprop_insn): Likewise.
7847 (do_local_cprop): Likewise.
7848 (local_cprop_pass): Likewise for local "insn".
7849 (bypass_block): Likewise for params "setcc" and "jump".
7850 (bypass_conditional_jumps): Likewise for locals "setcc" and
7851 "insn".
7852 (one_cprop_pass): Likewise for local "insn".
7853
7854 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7855
7856 * compare-elim.c (struct comparison_use): Strengthen field "insn"
7857 from rtx to rtx_insn *.
7858 (struct comparison): Likewise, also for field "prev_clobber".
7859 (conforming_compare): Likewise for param "insn".
7860 (arithmetic_flags_clobber_p): Likewise.
7861 (find_flags_uses_in_insn): Likewise.
7862 (find_comparison_dom_walker::before_dom_children): Likewise for
7863 locals "insn", "next", "last_clobber".
7864 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
7865
7866 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7867
7868 * combine-stack-adj.c (struct csa_reflist): Strengthen field
7869 "insn" from rtx to rtx_insn *.
7870 (single_set_for_csa): Likewise for param "insn".
7871 (record_one_stack_ref): Likewise.
7872 (try_apply_stack_adjustment): Likewise.
7873 (struct record_stack_refs_data): Likewise for field "insn".
7874 (maybe_move_args_size_note): Likewise for params "last" and "insn".
7875 (prev_active_insn_bb): Likewise for return type and param "insn".
7876 (next_active_insn_bb): Likewise.
7877 (force_move_args_size_note): Likewise for params "prev" and "last"
7878 and locals "test", "next_candidate", "prev_candidate".
7879 (combine_stack_adjustments_for_block): Strengthen locals
7880 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
7881 rtx_insn *.
7882
7883 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7884
7885 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
7886 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
7887 (subst_insn): Likewise for this variable.
7888 (added_links_insn): Likewise.
7889 (struct insn_link): Likewise for field "insn".
7890 (alloc_insn_link): Likewise for param "insn".
7891 (struct undobuf): Likewise for field "other_insn".
7892 (find_single_use): Likewise for param "insn" and local "next".
7893 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
7894 (delete_noop_moves): Likewise for locals "insn", "next".
7895 (create_log_links): Likewise for locals "insn", "use_insn".
7896 Strengthen local "next_use" from rtx * to rtx_insn **.
7897 (insn_a_feeds_b): Likewise for params "a", "b".
7898 (combine_instructions): Likewise for param "f" and locals "insn",
7899 "next", "prev", "first", "last_combined_insn", "link", "link1",
7900 "temp". Replace use of NULL_RTX with NULL when referring to
7901 insns.
7902 (setup_incoming_promotions): Likewise for param "first"
7903 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
7904 (can_combine_p): Likewise for params "insn", "i3", "pred",
7905 "pred2", "succ", "succ2" and for local "p".
7906 (combinable_i3pat): Likewise for param "i3".
7907 (cant_combine_insn_p): Likewise for param "insn".
7908 (likely_spilled_retval_p): Likewise.
7909 (adjust_for_new_dest): Likewise.
7910 (update_cfg_for_uncondjump): Likewise, also for local "insn".
7911 (try_combine): Likewise for return type and for params "i3", "i2",
7912 "i1", "i0", "last_combined_insn", and for locals "insn",
7913 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
7914 "i0_insn". Eliminate local "tem" in favor of new locals
7915 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
7916 checked cast for now to rtx_insn * on the return type of
7917 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
7918 insns.
7919 (find_split_point): Strengthen param "insn" from rtx to
7920 rtx_insn *.
7921 (simplify_set): Likewise for local "other_insn".
7922 (recog_for_combine): Likewise for param "insn".
7923 (record_value_for_reg): Likewise.
7924 (record_dead_and_set_regs_1): Likewise for local
7925 "record_dead_insn".
7926 (record_dead_and_set_regs): Likewise for param "insn".
7927 (record_promoted_value): Likewise.
7928 (check_promoted_subreg): Likewise.
7929 (get_last_value_validate): Likewise.
7930 (reg_dead_at_p): Likewise.
7931 (move_deaths): Likewise for param "to_insn".
7932 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
7933 and locals "place", "place2", "cc0_setter". Eliminate local "tem
7934 in favor of new locals "tem_note" and "tem_insn", the latter being
7935 an rtx_insn *.
7936 (distribute_links): Strengthen locals "place", "insn" from rtx to
7937 rtx_insn *.
7938
7939 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7940
7941 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
7942 than a const_rtx.
7943 (can_delete_label_p): Require a const rtx_code_label * rather than
7944 a const_rtx.
7945 (delete_insn): Add checked cast to rtx_code_label * when we know
7946 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
7947 rtx to rtx_insn *.
7948 (delete_insn_chain): Strengthen locals "prev" and "current" from
7949 rtx to rtx_insn *. Add a checked cast when assigning from
7950 "finish" (strengthening the params will come later). Add a
7951 checked cast to rtx_note * in region where we know
7952 NOTE_P (current).
7953 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
7954 rtx_insn *.
7955 (compute_bb_for_insn): Likewise.
7956 (free_bb_for_insn): Likewise for local "insn".
7957 (compute_bb_for_insn): Likewise.
7958 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
7959 local "insn" from rtx to rtx_insn *
7960 (flow_active_insn_p): Require a const rtx_insn * rather than a
7961 const_rtx.
7962 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
7963 rtx_insn *.
7964 (can_fallthru): Likewise for locals "insn" and "insn2".
7965 (bb_note): Likewise for local "note".
7966 (first_insn_after_basic_block_note): Likewise for local "note" and
7967 for return type.
7968 (rtl_split_block): Likewise for locals "insn" and "next".
7969 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
7970 "end".
7971 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
7972 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
7973 "prev", "tmp".
7974 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
7975 them), "kill_from", "barrier", "new_insn".
7976 (patch_jump_insn): Likewise for params "insn", "old_label".
7977 (redirect_branch_edge): Likewise for locals "old_label", "insn".
7978 (force_nonfallthru_and_redirect): Likewise for locals "insn",
7979 "old_label", "new_label".
7980 (rtl_tidy_fallthru_edge): Likewise for local "q".
7981 (rtl_split_edge): Likewise for locals "before", "last".
7982 (commit_one_edge_insertion): Likewise for locals "before",
7983 "after", "insns", "tmp", "last", adding a checked cast where
7984 currently necessary.
7985 (commit_edge_insertions): Likewise.
7986 (rtl_dump_bb): Likewise for locals "insn", "last".
7987 (print_rtl_with_bb): Likewise for local "x".
7988 (rtl_verify_bb_insns): Likewise for local "x".
7989 (rtl_verify_bb_pointers): Likewise for local "insn".
7990 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
7991 "head", "end".
7992 (rtl_verify_fallthru): Likewise for local "insn".
7993 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
7994 (purge_dead_edges): Likewise for local "insn".
7995 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
7996 (skip_insns_after_block): Likewise for return type and for locals
7997 "insn", "last_insn", "next_head", "prev".
7998 (record_effective_endpoints): Likewise for locals "next_insn",
7999 "insn", "end".
8000 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8001 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8002 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8003 (duplicate_insn_chain): For now, add checked cast from rtx to
8004 rtx_insn * when returning insn.
8005 (cfg_layout_duplicate_bb): Likewise for local "insn".
8006 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8007 "prev", "remaints".
8008 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8009 (rtl_block_empty_p): Likewise.
8010 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8011 "split_point", "last".
8012 (rtl_block_ends_with_call_p): Likewise for local "insn".
8013 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8014 const rtx_insn *.
8015 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8016 "split_at_insn" from rtx to rtx_insn *.
8017 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8018 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8019 to const rtx_insn *.
8020 (rtl_account_profile_record): Likewise.
8021
8022 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8023
8024 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8025 rtx to rtx_insn *.
8026 (average_num_loop_insns): Likewise.
8027 (init_set_costs): Likewise for local "seq".
8028 (seq_cost): Likewise for param "seq", from const_rtx to const
8029 rtx_insn *.
8030
8031 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8032
8033 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8034 rtx to rtx_insn *.
8035
8036 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8037
8038 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8039 "f1" and "f2" from rtx * to rtx_insn **.
8040 (flow_find_head_matching_sequence): Likewise.
8041
8042 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8043 "cbranch_insn" from rtx to rtx_insn *.
8044 (thread_jump): Likewise for local "insn".
8045 (try_forward_edges): Likewise for local "last".
8046 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8047 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8048 "real_b_end".
8049 (can_replace_by): Likewise for params "i1", "i2".
8050 (old_insns_match_p): Likewise.
8051 (merge_notes): Likewise.
8052 (walk_to_nondebug_insn): Likewise for param "i1".
8053 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8054 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8055 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8056 (flow_find_head_matching_sequence): Strengthen params "f1" and
8057 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8058 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8059 rtx_insn *.
8060 (outgoing_edges_match): Likewise for locals "last1", "last2".
8061 (try_crossjump_to_edge): Likewise for local "insn".
8062 Replace call to for_each_rtx with for_each_rtx_in_insn.
8063
8064 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8065 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8066 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8067 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8068 (try_optimize_cfg): Strengthen local "last" from rtx to
8069 rtx_insn *.
8070 (delete_dead_jumptables): Likewise for locals "insn", "next",
8071 "label".
8072
8073 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8074 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8075 "rtx else_first_tail", to reflect the basic-block.h changes above.
8076
8077 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8078
8079 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8080 rtx_insn *.
8081 (purge_dead_tablejump_edges): Likewise.
8082 (find_bb_boundaries): Likewise for locals "insn", "end",
8083 "flow_transfer_insn".
8084
8085 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8086
8087 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8088 "ins" and "prev" from rtx to rtx_insn *.
8089
8090 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8091
8092 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8093 rtx_insn *.
8094 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8095 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8096 "scan_start".
8097 (load_register_parameters): Likewise for local "before_arg".
8098 (check_sibcall_argument_overlap): Likewise for param "insn".
8099 (expand_call): Likewise for locals "normal_call_insns",
8100 "tail_call_insns", "insns", "before_call", "after_args",
8101 "before_arg", "last", "prev". Strengthen one of the "last" from
8102 rtx to rtx_call_insn *.
8103 (fixup_tail_calls): Strengthen local "insn" from rtx to
8104 rtx_insn *.
8105 (emit_library_call_value_1): Likewise for locals "before_call" and
8106 "last".
8107
8108 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8109
8110 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8111 and "last" from rtx to rtx_insn *.
8112 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8113 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8114 rtx_call_insn *.
8115 (expand_errno_check): Strengthen local "lab" from rtx to
8116 rtx_code_label *.
8117 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8118 rtx_insn *.
8119 (expand_builtin_mathfn_2): Likewise.
8120 (expand_builtin_mathfn_ternary): Likewise.
8121 (expand_builtin_mathfn_3): Likewise.
8122 (expand_builtin_interclass_mathfn): Likewise for local "last".
8123 (expand_builtin_int_roundingfn): Likewise for local "insns".
8124 (expand_builtin_int_roundingfn_2): Likewise.
8125 (expand_builtin_strlen): Likewise for local "before_strlen".
8126 (expand_builtin_strncmp): Likewise for local "seq".
8127 (expand_builtin_signbit): Likewise for local "last".
8128 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8129 from rtx to rtx_code_label *.
8130 (expand_stack_restore): Strengthen local "prev" from rtx to
8131 rtx_insn *.
8132
8133 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8134
8135 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8136 to rtx_insn *.
8137 (struct btr_def_s): Likewise.
8138 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8139 const rtx_insn *.
8140 (add_btr_def): Likewise.
8141 (new_btr_user): Likewise.
8142 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8143 rtx to rtx_insn *.
8144 (link_btr_uses): Likewise.
8145 (move_btr_def): Likewise for locals "insp", "old_insn",
8146 "new_insn". Add checked cast to rtx_insn * for now on result of
8147 gen_move_insn.
8148 (can_move_up): Strengthen param "insn" from const_rtx to
8149 const rtx_insn *.
8150
8151 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8152
8153 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8154 rtx_insn *.
8155 (get_uncond_jump_length): Likewise for locals "label", "jump".
8156 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8157 "jump", "insn".
8158 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8159 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8160 (find_jump_block): Likewise for local "insn".
8161 (fix_crossing_conditional_branches): Likewise for locals
8162 "old_jump", "new_jump".
8163 (fix_crossing_unconditional_branches): Likewise for locals
8164 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8165 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8166
8167 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8168
8169 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8170 rtx to rtx_insn *.
8171 (struct mem_insn): Likewise for field "insn".
8172 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8173 (reg_next_inc_use): Likewise.
8174 (reg_next_def): Likewise.
8175 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8176 from rtx to rtx_insn *.
8177 (move_insn_before): Likewise for param "next_insn" and local "insns".
8178 (attempt_change): Likewise for local "mov_insn".
8179 (try_merge): Likewise for param "last_insn".
8180 (get_next_ref): Likewise for return type and local "insn".
8181 Strengthen param "next_array" from rtx * to rtx_insn **.
8182 (parse_add_or_inc): Strengthen param "insn" from rtx to
8183 rtx_insn *.
8184 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8185 the latter).
8186 (merge_in_block): Likewise for locals "insn", "curr",
8187 "other_insn".
8188 (pass_inc_dec::execute): Update allocations of the arrays to
8189 reflect the stronger types.
8190
8191 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8192
8193 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8194 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8195 from rtx to rtx_code_label *.
8196
8197 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8198
8199 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8200 to rtx_insn *.
8201
8202 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8203
8204 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8205 generated a warning and prevented bootstrapping the compiler.
8206
8207 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8208
8209 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8210 rtx_insn *.
8211
8212 * jump.c (delete_related_insns): Likewise, also for locals "next"
8213 and "prev".
8214
8215 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8216
8217 * genautomata.c (output_internal_insn_latency_func): When writing
8218 the function "internal_insn_latency" to insn-automata.c,
8219 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8220 allowing the optional guard function of (define_bypass) clauses to
8221 expect a pair of rtx_insn *, rather than a pair of rtx.
8222 (output_insn_latency_func): When writing the function
8223 "insn_latency", add an "uncast_" prefix to params "insn" and
8224 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8225 using checked casts from the params, thus enabling the above
8226 change to the generated "internal_insn_latency" function.
8227
8228 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8229
8230 PR tree-optimization/62091
8231 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8232 handle correctly arrays.
8233 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8234 inheritance binfos.
8235 (record_known_type): Walk into inner type.
8236 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8237 condition on no type changes.
8238
8239 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8240
8241 * genattrtab.c (write_attr_get): Within the generated get_attr_
8242 functions, rename param "insn" to "uncast_insn" and reintroduce
8243 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8244 is an rtx_insn * within insn-attrtab.c
8245
8246 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8247
8248 * output.h (peephole): Strengthen return type from rtx to
8249 rtx_insn *.
8250 * rtl.h (delete_for_peephole): Likewise for both params.
8251 * genpeep.c (main): In generated "peephole" function, strengthen
8252 return type and local "insn" from rtx to rtx_insn *. For now,
8253 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8254 rtx_insn *, with a checked cast.
8255 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8256 locals "insn", "next", "prev" from rtx to rtx_insn *.
8257
8258 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8259
8260 PR tree-optimization/62112
8261 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8262 * gimple-iterator.h (gsi_replace): Return bool.
8263 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8264 moved from ref_may_alias_global_p.
8265 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8266 New overloads.
8267 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8268 (stmt_kills_ref_p_1): Rename...
8269 (stmt_kills_ref_p): ... to this.
8270 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8271 stmt_kills_ref_p): Declare.
8272 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8273 Move the self-assignment case...
8274 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8275
8276 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8277
8278 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8279
8280 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8281 "after". For now, don't strengthen param "trial", which requires
8282 adding checked casts when returning it.
8283
8284 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8285
8286 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8287 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8288 "var_location" hook from rtx to rtx_insn *.
8289 (debug_nothing_rtx): Delete in favor of...
8290 (debug_nothing_rtx_code_label): New prototype.
8291 (debug_nothing_rtx_rtx): Delete unused prototype.
8292 (debug_nothing_rtx_insn): New prototype.
8293
8294 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8295 invoking debug_hooks->var_location (in two places, one in a NOTE
8296 case of a switch statement, the other guarded by a CALL_P
8297 conditional. Add checked cast to rtx_code_label * when invoking
8298 debug_hooks->label (within CODE_LABEL case of switch statement).
8299
8300 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8301 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8302 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8303 (xcoff_debug_hooks): Likewise.
8304 * debug.c (do_nothing_debug_hooks): Likewise.
8305 (debug_nothing_rtx): Delete in favor of...
8306 (debug_nothing_rtx_insn): New function.
8307 (debug_nothing_rtx_rtx): Delete unused function.
8308 (debug_nothing_rtx_code_label): New function.
8309 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8310 debug_nothing_rtx to debug_nothing_rtx_code_label.
8311 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8312 to rtx_insn *.
8313 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8314 debug_nothing_rtx to debug_nothing_rtx_insn.
8315 (sdbout_label): Strengthen param "insn" from rtx to
8316 rtx_code_label *.
8317 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8318 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8319 "var_location" hook from debug_nothing_rtx to
8320 debug_nothing_rtx_insn.
8321
8322 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8323
8324 * recog.h (insn_output_fn): Update this function typedef to match
8325 the changes below to the generated output functions, strengthening
8326 the 2nd param from rtx to rtx_insn *.
8327
8328 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8329 insn when invoking an output function, to match the new signature
8330 of insn_output_fn with a stronger second param.
8331
8332 * genconditions.c (write_header): In the generated code for
8333 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8334 to match the other changes in this patch.
8335
8336 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8337 the generated "gen_" functions from rtx to rtx_insn * within their
8338 implementations.
8339
8340 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8341 the subfunctions within the generated "recog_", "split", "peephole2"
8342 function trees from rtx to rtx_insn *. For now, the top-level
8343 generated functions ("recog", "split", "peephole2") continue to
8344 take a plain rtx for "insn", to avoid introducing dependencies on
8345 other patches. Rename this 2nd param from "insn" to
8346 "uncast_insn", and reintroduce "insn" as a local variable of type
8347 rtx_insn *, initialized at the top of the generated function with
8348 a checked cast on "uncast_insn".
8349 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8350 the generated "gen_" functions from rtx to rtx_insn * within their
8351 prototypes.
8352
8353 * genoutput.c (process_template): Strengthen the 2nd param within
8354 the generated "output_" functions "insn" from rtx to rtx_insn *.
8355
8356 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8357
8358 * tree-profile.c (tree_profiling): Skip external functions
8359 when doing coverage instrumentation.
8360 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8361
8362 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8363
8364 * config/rs6000/altivec.h (vec_cpsgn): New #define.
8365 (vec_mergee): Likewise.
8366 (vec_mergeo): Likewise.
8367 (vec_cntlz): Likewise.
8368 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8369 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8370 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8371 VMRGEW, and VMRGOW.
8372 * doc/extend.texi: Document various forms of vec_cpsgn,
8373 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8374 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8375 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8376 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8377 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8378
8379 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8380
8381 * config/rs6000/rs6000.c (context.h): New include.
8382 (tree-pass.h): Likewise.
8383 (make_pass_analyze_swaps): New decl.
8384 (rs6000_option_override): Register pass_analyze_swaps.
8385 (swap_web_entry): New subsclass of web_entry_base (df.h).
8386 (special_handling_values): New enum.
8387 (union_defs): New function.
8388 (union_uses): Likewise.
8389 (insn_is_load_p): Likewise.
8390 (insn_is_store_p): Likewise.
8391 (insn_is_swap_p): Likewise.
8392 (rtx_is_swappable_p): Likewise.
8393 (insn_is_swappable_p): Likewise.
8394 (chain_purpose): New enum.
8395 (chain_contains_only_swaps): New function.
8396 (mark_swaps_for_removal): Likewise.
8397 (swap_const_vector_halves): Likewise.
8398 (adjust_subreg_index): Likewise.
8399 (permute_load): Likewise.
8400 (permute_store): Likewise.
8401 (handle_special_swappables): Likewise.
8402 (replace_swap_with_copy): Likewise.
8403 (dump_swap_insn_table): Likewise.
8404 (rs6000_analyze_swaps): Likewise.
8405 (pass_data_analyze_swaps): New pass_data.
8406 (pass_analyze_swaps): New rtl_opt_pass.
8407 (make_pass_analyze_swaps): New function.
8408 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8409
8410 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8411
8412 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8413 type from rtx to rtx_insn *.
8414 (create_copy_of_insn_rtx): Likewise.
8415 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8416 (create_copy_of_insn_rtx): Likewise, also for local "res".
8417
8418 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8419
8420 * rtl.h (find_first_parameter_load): Strengthen return type from
8421 rtx to rtx_insn *.
8422 * rtlanal.c (find_first_parameter_load): Strengthen return type
8423 from rtx to rtx_insn *. Add checked cast for now, to postpone
8424 strengthening the params.
8425
8426 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8427
8428 PR fortran/44054
8429 * diagnostic.c: Set default caret.
8430 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8431 line is needed.
8432 * diagnostic.h (struct diagnostic_context):
8433
8434 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8435
8436 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8437 (sel_bb_head): Strengthen return type insn_t (currently just an
8438 rtx) to rtx_insn *.
8439 (sel_bb_end): Likewise.
8440
8441 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8442 (sel_bb_head): Strengthen return type and local "head" from
8443 insn_t (currently just an rtx) to rtx_insn *.
8444 (sel_bb_end): Likewise for return type.
8445 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8446 working with insn.
8447
8448 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8449
8450 * basic-block.h (get_last_bb_insn): Strengthen return type from
8451 rtx to rtx_insn *.
8452 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8453 end".
8454
8455 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8456
8457 PR fortran/44054
8458 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8459 to here ...
8460 (diagnostic_report_diagnostic): ... from here.
8461 * toplev.c (general_init): Move code to c-family.
8462
8463 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8464
8465 * df.h (web_entry_base): Replace existing struct web_entry with a
8466 new class web_entry_base with only the predecessor member.
8467 (unionfind_root): Remove declaration and move to class member.
8468 (unionfind_union): Remove declaration and move to friend
8469 function.
8470 (union_defs): Remove declaration.
8471 * web.c (web_entry_base::unionfind_root): Modify to be member
8472 function and adjust accessors.
8473 (unionfind_union): Modify to be friend function and adjust
8474 accessors.
8475 (web_entry): New subclass of web_entry_base containing the reg
8476 member.
8477 (union_match_dups): Modify for struct -> class changes.
8478 (union_defs): Likewise.
8479 (entry_register): Likewise.
8480 (pass_web::execute): Likewise.
8481
8482 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
8483
8484 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8485 builtin define __VEC_ELEMENT_REG_ORDER__.
8486
8487 2014-08-20 Martin Jambor <mjambor@suse.cz>
8488 Wei Mi <wmi@google.com>
8489
8490 PR ipa/60449
8491 PR middle-end/61776
8492 * tree-ssa-operands.c (update_stmt_operands): Remove
8493 MODIFIED_NORETURN_CALLS.
8494 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8495 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8496 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8497 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8498 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8499 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8500 (gimple_call_set_ctrl_altering): New func.
8501 (gimple_call_ctrl_altering_p): Ditto.
8502 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8503 (make_blocks): Use gimple_call_initialize_ctrl_altering.
8504 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8505 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8506 remove MODIFIED_NORETURN_CALLS.
8507
8508 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8509
8510 * coverage.c (coverage_compute_profile_id): Return non-0;
8511 also handle symbols with unique name.
8512 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8513
8514 2014-08-20 Steve Ellcey <sellcey@mips.com>
8515
8516 PR middle-end/49191
8517 * doc/sourcebuild.texi (non_strict_align): New.
8518
8519 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8520
8521 * cgraphunit.c (ipa_passes, compile): Reshedule
8522 symtab_remove_unreachable_nodes passes; update comments.
8523 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8524 TODO_remove_functions before the pass; the functions ought to be
8525 already removed.
8526 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8527 TODO_remove_functions.
8528 * passes.c (pass_data_early_local_passes): Do not schedule function
8529 removal.
8530 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8531
8532 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8533
8534 PR c/59304
8535 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8536 before setting the option.
8537 * diagnostic.c (diagnostic_classify_diagnostic): Record
8538 command-line status.
8539
8540 2014-08-20 Richard Biener <rguenther@suse.de>
8541
8542 PR lto/62190
8543 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8544 to build uint{16,32,64}_type_node.
8545
8546 2014-08-20 Terry Guo <terry.guo@arm.com>
8547
8548 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8549 with immediate_operand.
8550
8551 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8552
8553 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8554 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8555 NULL.
8556
8557 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8558
8559 PR preprocessor/51303
8560 * incpath.c (remove_duplicates): Use cpp_warning.
8561
8562 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8563
8564 PR c/60975
8565 PR c/53063
8566 * doc/options.texi (CPP): Document it.
8567 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8568 * optc-gen.awk: Handle CPP.
8569 * opth-gen.awk: Likewise.
8570
8571 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8572
8573 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8574 rtx_insn *.
8575 (duplicate_insn_chain): Likewise.
8576 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8577 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8578 checked cast for now (until we can strengthen the params in the
8579 same way).
8580 (duplicate_insn_chain): Likewise.
8581
8582 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8583
8584 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8585 rtx_insn *.
8586 (prev_cc0_setter): Likewise.
8587
8588 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8589 rtx_insn *, adding checked casts for now as necessary.
8590 (prev_cc0_setter): Likewise.
8591
8592 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8593
8594 * expr.h (emit_move_insn): Strengthen return type from rtx to
8595 rtx_insn *.
8596 (emit_move_insn_1): Likewise.
8597 (emit_move_complex_push): Likewise.
8598 (emit_move_complex_parts): Likewise.
8599
8600 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8601 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8602 with insns.
8603 (emit_move_complex_push): Strengthen return type from rtx to
8604 rtx_insn *.
8605 (emit_move_complex): Likewise, also for local "ret".
8606 (emit_move_ccmode): Likewise.
8607 (emit_move_multi_word): Likewise for return type and locals
8608 "last_insn", "seq".
8609 (emit_move_insn_1): Likewise for return type and locals "result",
8610 "ret".
8611 (emit_move_insn): Likewise for return type and local "last_insn".
8612 (compress_float_constant): Likewise.
8613
8614 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8615
8616 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8617 from rtx to rtx_insn *.
8618
8619 * rtl.h (emit_insn_before): Likewise.
8620 (emit_insn_before_noloc): Likewise.
8621 (emit_insn_before_setloc): Likewise.
8622 (emit_jump_insn_before): Likewise.
8623 (emit_jump_insn_before_noloc): Likewise.
8624 (emit_jump_insn_before_setloc): Likewise.
8625 (emit_call_insn_before): Likewise.
8626 (emit_call_insn_before_noloc): Likewise.
8627 (emit_call_insn_before_setloc): Likewise.
8628 (emit_debug_insn_before): Likewise.
8629 (emit_debug_insn_before_noloc): Likewise.
8630 (emit_debug_insn_before_setloc): Likewise.
8631 (emit_label_before): Likewise.
8632 (emit_insn_after): Likewise.
8633 (emit_insn_after_noloc): Likewise.
8634 (emit_insn_after_setloc): Likewise.
8635 (emit_jump_insn_after): Likewise.
8636 (emit_jump_insn_after_noloc): Likewise.
8637 (emit_jump_insn_after_setloc): Likewise.
8638 (emit_call_insn_after): Likewise.
8639 (emit_call_insn_after_noloc): Likewise.
8640 (emit_call_insn_after_setloc): Likewise.
8641 (emit_debug_insn_after): Likewise.
8642 (emit_debug_insn_after_noloc): Likewise.
8643 (emit_debug_insn_after_setloc): Likewise.
8644 (emit_label_after): Likewise.
8645 (emit_insn): Likewise.
8646 (emit_debug_insn): Likewise.
8647 (emit_jump_insn): Likewise.
8648 (emit_call_insn): Likewise.
8649 (emit_label): Likewise.
8650 (gen_clobber): Likewise.
8651 (emit_clobber): Likewise.
8652 (gen_use): Likewise.
8653 (emit_use): Likewise.
8654 (emit): Likewise.
8655
8656 (emit_barrier_before): Strengthen return type from rtx to
8657 rtx_barrier *.
8658 (emit_barrier_after): Likewise.
8659 (emit_barrier): Likewise.
8660
8661 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8662 from rtx to rtx_insn *. Add checked casts for now when converting
8663 "last" from rtx to rtx_insn *.
8664 (emit_insn_before_noloc): Likewise for return type.
8665 (emit_jump_insn_before_noloc): Likewise.
8666 (emit_call_insn_before_noloc): Likewise.
8667 (emit_debug_insn_before_noloc): Likewise.
8668 (emit_barrier_before): Strengthen return type and local "insn"
8669 from rtx to rtx_barrier *.
8670 (emit_label_before): Strengthen return type from rtx to
8671 rtx_insn *. Add checked cast for now when returning param
8672 (emit_pattern_after_noloc): Strengthen return type from rtx to
8673 rtx_insn *. Add checked casts for now when converting "last" from
8674 rtx to rtx_insn *.
8675 (emit_insn_after_noloc): Strengthen return type from rtx to
8676 rtx_insn *.
8677 (emit_jump_insn_after_noloc): Likewise.
8678 (emit_call_insn_after_noloc): Likewise.
8679 (emit_debug_insn_after_noloc): Likewise.
8680 (emit_barrier_after): Strengthen return type from rtx to
8681 rtx_barrier *.
8682 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8683 Add checked cast for now when converting "label" from rtx to
8684 rtx_insn *.
8685 (emit_pattern_after_setloc): Strengthen return type from rtx to
8686 rtx_insn *. Add checked casts for now when converting "last" from
8687 rtx to rtx_insn *.
8688 (emit_pattern_after): Strengthen return type from rtx to
8689 rtx_insn *.
8690 (emit_insn_after_setloc): Likewise.
8691 (emit_insn_after): Likewise.
8692 (emit_jump_insn_after_setloc): Likewise.
8693 (emit_jump_insn_after): Likewise.
8694 (emit_call_insn_after_setloc): Likewise.
8695 (emit_call_insn_after): Likewise.
8696 (emit_debug_insn_after_setloc): Likewise.
8697 (emit_debug_insn_after): Likewise.
8698 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8699 when converting "last" from rtx to rtx_insn *.
8700 (emit_pattern_before): Strengthen return type from rtx to
8701 rtx_insn *.
8702 (emit_insn_before_setloc): Likewise.
8703 (emit_insn_before): Likewise.
8704 (emit_jump_insn_before_setloc): Likewise.
8705 (emit_jump_insn_before): Likewise.
8706 (emit_call_insn_before_setloc): Likewise.
8707 (emit_call_insn_before): Likewise.
8708 (emit_debug_insn_before_setloc): Likewise.
8709 (emit_debug_insn_before): Likewise.
8710 (emit_insn): Strengthen return type and locals "last", "insn",
8711 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8712 within cases where we know we have an insn.
8713 (emit_debug_insn): Likewise.
8714 (emit_jump_insn): Likewise.
8715 (emit_call_insn): Strengthen return type and local "insn" from rtx
8716 to rtx_insn *.
8717 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8718 a checked cast to rtx_insn * for now on "label".
8719 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8720 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8721 (emit_use): Likewise.
8722 (gen_use): Likewise, also for local "seq".
8723 (emit): Likewise for return type and local "insn".
8724 (rtx_insn): Likewise for return type and local "new_rtx".
8725
8726 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8727 from rtx to rtx_barrier *.
8728
8729 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8730 changed return type from rtx to rtx_insn *, we must update
8731 "emit_fn" type, and this in turn means updating...
8732 (frame_insn): ...this. Strengthen return type from rtx to
8733 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8734
8735 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8736
8737 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8738 rtx to rtx_jump_table_data *. Also for local.
8739 * rtl.h (emit_jump_table_data): Likewise.
8740
8741 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8742
8743 * basic-block.h (create_basic_block_structure): Strengthen third
8744 param "bb_note" from rtx to rtx_note *.
8745 * rtl.h (emit_note_before): Strengthen return type from rtx to
8746 rtx_note *.
8747 (emit_note_after): Likewise.
8748 (emit_note): Likewise.
8749 (emit_note_copy): Likewise. Also, strengthen param similarly.
8750 * function.h (struct rtl_data): Strengthen field
8751 "x_stack_check_probe_note" from rtx to rtx_note *.
8752
8753 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
8754 from rtx to rtx_note *.
8755 * cfgrtl.c (create_basic_block_structure): Strengthen third param
8756 "bb_note" from rtx to rtx_note *.
8757 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
8758 when calling emit_note_copy.
8759 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
8760 rtx_note *.
8761 (emit_note_after): Likewise.
8762 (emit_note_before): Likewise.
8763 (emit_note_copy): Likewise. Also, strengthen param similarly.
8764 (emit_note): Likewise.
8765 * except.c (emit_note_eh_region_end): Likewise for return type.
8766 Strengthen local "next" from rtx to rtx_insn *.
8767 (convert_to_eh_region_ranges): Strengthen local "note"
8768 from rtx to rtx_note *.
8769 * final.c (change_scope): Likewise.
8770 (reemit_insn_block_notes): Likewise, for both locals named "note".
8771 Also, strengthen local "insn" from rtx to rtx_insn *.
8772 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
8773 rtx to rtx_note *.
8774 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
8775 strengthen local "seq" from rtx to rtx_insn *.
8776 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
8777 to rtx_note *.
8778 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
8779 vec<rtx_note *>.
8780 (get_bb_note_from_pool): Strengthen return type from rtx to
8781 rtx_note *.
8782 (sel_create_basic_block): Strengthen local "new_bb_note" from
8783 insn_t to rtx_note *.
8784 * var-tracking.c (emit_note_insn_var_location): Strengthen local
8785 "note" from rtx to rtx_note *.
8786 (emit_notes_in_bb): Likewise.
8787
8788 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8789
8790 * function.h (struct rtl_data): Strengthen field
8791 "x_parm_birth_insn" from rtx to rtx_insn *.
8792 * function.c (struct assign_parm_data_all): Strengthen fields
8793 "first_conversion_insn" and "last_conversion_insn" from rtx to
8794 rtx_insn *.
8795
8796 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8797
8798 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
8799 to rtx_insn *; also for local "var_end_seq".
8800 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
8801 (maybe_cleanup_end_of_block): Likewise for param "last" and local
8802 "insn".
8803 (expand_gimple_cond): Likewise for locals "last2" and "last".
8804 (mark_transaction_restart_calls): Likewise for local "insn".
8805 (expand_gimple_stmt): Likewise for return type and locals "last"
8806 and "insn".
8807 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
8808 (avoid_complex_debug_insns): Likewise for param "insn".
8809 (expand_debug_locations): Likewise for locals "insn", "last",
8810 "prev_insn" and "insn2".
8811 (expand_gimple_basic_block): Likewise for local "last".
8812 (construct_exit_block): Likewise for locals "head", "end",
8813 "orig_end".
8814 (pass_expand::execute): Likewise for locals "var_seq",
8815 "var_ret_seq", "next".
8816
8817 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8818
8819 * asan.h (asan_emit_stack_protection): Strengthen return type from
8820 rtx to rtx_insn *.
8821 * asan.c (asan_emit_stack_protection): Likewise. Add local
8822 "insns" to hold the return value.
8823
8824 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8825
8826 * basic-block.h (bb_note): Strengthen return type from rtx to
8827 rtx_note *.
8828 * sched-int.h (bb_note): Likewise.
8829 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
8830
8831 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8832
8833 * rtl.h (make_insn_raw): Strengthen return type from rtx to
8834 rtx_insn *.
8835
8836 * emit-rtl.c (make_insn_raw): Strengthen return type and local
8837 "insn" from rtx to rtx_insn *.
8838 (make_debug_insn_raw): Strengthen return type from rtx to
8839 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
8840 (make_jump_insn_raw): Strengthen return type from rtx to
8841 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
8842 (make_call_insn_raw): Strengthen return type from rtx to
8843 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
8844 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
8845 callback from rtx to rtx_insn *; likewise for local "insn" and
8846 "next", adding a checked cast to rtx_insn in the relevant cases of
8847 the switch statement.
8848 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
8849 callback from rtx to rtx_insn *.
8850 (emit_pattern_after_setloc): Likewise.
8851 (emit_pattern_after): Likewise.
8852 (emit_pattern_before_setloc): Likewise.
8853 (emit_pattern_before): Likewise.
8854
8855 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8856
8857 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
8858 rtx_call_insn *.
8859 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
8860 accepting an rtx_insn *.
8861 (last_call_insn): Strengthen return type from rtx to
8862 rtx_call_insn *.
8863
8864 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8865
8866 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
8867 "insns" from rtx to rtx_insn *.
8868 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
8869 locals "insn" and "prev".
8870
8871 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8872
8873 * rtl.h (tablejump_p): Strengthen third param from rtx * to
8874 rtx_jump_table_data **.
8875
8876 * cfgbuild.c (make_edges): Introduce local "table", using it in
8877 place of "tmp" for jump table data.
8878 (find_bb_boundaries): Strengthen local "table" from rtx to
8879 rtx_jump_table_data *.
8880 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8881 (outgoing_edges_match): Likewise for locals "table1" and "table2".
8882 (try_crossjump_to_edge): Likewise.
8883 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
8884 "table".
8885 (patch_jump_insn): Introduce local "table", using it in place of
8886 "tmp" for jump table data.
8887 (force_nonfallthru_and_redirect): Introduce local "table", so that
8888 call to tablejump_p can receive an rtx_jump_table_data **. Update
8889 logic around the call to overwrite "note" appropriately if
8890 tablejump_p returns non-zero.
8891 (get_last_bb_insn): Introduce local "table", using it in place of
8892 "tmp" for jump table data.
8893 * dwarf2cfi.c (create_trace_edges): Likewise.
8894
8895 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
8896 from rtx to rtx_jump_table_data *.
8897 (create_fix_barrier): Strengthen local "tmp" from rtx to
8898 rtx_jump_table_data *.
8899 (arm_reorg): Likewise for local "table".
8900
8901 * config/s390/s390.c (s390_chunkify_start): Likewise.
8902
8903 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
8904
8905 * jump.c (delete_related_insns): Strengthen local "lab_next" from
8906 rtx to rtx_jump_table_data *.
8907
8908 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
8909 rtx_jump_table_data **. Add a checked cast when writing through
8910 the pointer: we know there that local "table" is non-NULL and that
8911 JUMP_TABLE_DATA_P (table) holds.
8912 (label_is_jump_target_p): Introduce local "table", using it in
8913 place of "tmp" for jump table data.
8914
8915 2014-08-19 Marek Polacek <polacek@redhat.com>
8916
8917 PR c++/62153
8918 * doc/invoke.texi: Document -Wbool-compare.
8919
8920 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8921
8922 * rtl.h (entry_of_function): Strengthen return type from rtx to
8923 rtx_insn *.
8924 * cfgrtl.c (entry_of_function): Likewise.
8925
8926 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8927
8928 * emit-rtl.h (get_insns): Strengthen return type from rtx to
8929 rtx_insn *, adding a checked cast for now.
8930 (get_last_insn): Likewise.
8931
8932 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8933
8934 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
8935 rtx_code_label *.
8936
8937 * emit-rtl.c (gen_label_rtx): Likewise.
8938
8939 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8940
8941 * rtl.h (previous_insn): Strengthen return type from rtx to
8942 rtx_insn *.
8943 (next_insn): Likewise.
8944 (prev_nonnote_insn): Likewise.
8945 (prev_nonnote_insn_bb): Likewise.
8946 (next_nonnote_insn): Likewise.
8947 (next_nonnote_insn_bb): Likewise.
8948 (prev_nondebug_insn): Likewise.
8949 (next_nondebug_insn): Likewise.
8950 (prev_nonnote_nondebug_insn): Likewise.
8951 (next_nonnote_nondebug_insn): Likewise.
8952 (prev_real_insn): Likewise.
8953 (next_real_insn): Likewise.
8954 (prev_active_insn): Likewise.
8955 (next_active_insn): Likewise.
8956
8957 * emit-rtl.c (next_insn): Strengthen return type from rtx to
8958 rtx_insn *, adding a checked cast.
8959 (previous_insn): Likewise.
8960 (next_nonnote_insn): Likewise.
8961 (next_nonnote_insn_bb): Likewise.
8962 (prev_nonnote_insn): Likewise.
8963 (prev_nonnote_insn_bb): Likewise.
8964 (next_nondebug_insn): Likewise.
8965 (prev_nondebug_insn): Likewise.
8966 (next_nonnote_nondebug_insn): Likewise.
8967 (prev_nonnote_nondebug_insn): Likewise.
8968 (next_real_insn): Likewise.
8969 (prev_real_insn): Likewise.
8970 (next_active_insn): Likewise.
8971 (prev_active_insn): Likewise.
8972
8973 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
8974 param "stepfunc" so that it returns an rtx_insn * rather than an
8975 rtx, to track the change to prev_nonnote_insn_bb, which is the
8976 only function this is called with.
8977 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
8978
8979 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
8980
8981 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
8982 assert.
8983
8984 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8985
8986 * coretypes.h (class rtx_debug_insn): Add forward declaration.
8987 (class rtx_nonjump_insn): Likewise.
8988 (class rtx_jump_insn): Likewise.
8989 (class rtx_call_insn): Likewise.
8990 (class rtx_jump_table_data): Likewise.
8991 (class rtx_barrier): Likewise.
8992 (class rtx_code_label): Likewise.
8993 (class rtx_note): Likewise.
8994
8995 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
8996 adding the invariant DEBUG_INSN_P (X).
8997 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
8998 the invariant NONJUMP_INSN_P (X).
8999 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9000 the invariant JUMP_P (X).
9001 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9002 the invariant CALL_P (X).
9003 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9004 invariant JUMP_TABLE_DATA_P (X).
9005 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9006 invariant BARRIER_P (X).
9007 (class rtx_code_label): New, a subclass of rtx_insn, adding
9008 the invariant LABEL_P (X).
9009 (class rtx_note): New, a subclass of rtx_insn, adding
9010 the invariant NOTE_P(X).
9011 (is_a_helper <rtx_debug_insn *>::test): New.
9012 (is_a_helper <rtx_nonjump_insn *>::test): New.
9013 (is_a_helper <rtx_jump_insn *>::test): New.
9014 (is_a_helper <rtx_call_insn *>::test): New.
9015 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9016 overloaded for both rtx and rtx_insn *.
9017 (is_a_helper <rtx_barrier *>::test): New.
9018 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9019 for both rtx and rtx_insn *.
9020 (is_a_helper <rtx_note *>::test): New.
9021
9022 2014-08-19 Marek Polacek <polacek@redhat.com>
9023
9024 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9025 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9026 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9027 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9028
9029 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9030
9031 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9032 rtx_insn *. To help with transition, for now, convert from an
9033 access macro into a pair of functions: BND_TO, returning an
9034 rtx_insn *, and...
9035 (SET_BND_TO): New function, for use where BND_TO is used as an
9036 lvalue.
9037
9038 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9039 SET_BND_TO.
9040 (BND_TO): New function, adding a checked cast.
9041 (SET_BND_TO): New function.
9042
9043 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9044 SET_BND_TO.
9045 (compute_av_set_on_boundaries): Likewise.
9046
9047 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9048
9049 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9050 destination if it is used in source.
9051 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9052 (*popcount<mode>2_falsedep_1): Likewise.
9053
9054 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9055
9056 PR other/62168
9057 * configure.ac: Set install_gold_as_default to no first.
9058 * configure: Regenerated.
9059
9060 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9061
9062 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9063 "note_list" field will eventually be an rtx_insn *. To help with
9064 transition, for now, convert from an access macro into a pair of
9065 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9066 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9067 used as an lvalue.
9068
9069 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9070 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9071
9072 * sel-sched-ir.c (init_bb): Likewise.
9073 (sel_restore_notes): Likewise.
9074 (move_bb_info): Likewise.
9075 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9076 (SET_BB_NOTE_LIST): New function.
9077
9078 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9079
9080 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9081 field will eventually be an rtx_insn *. To help with transition,
9082 for now, convert from an access macro into a pair of functions:
9083 VINSN_INSN_RTX, returning an rtx_insn *, and...
9084 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9085 is used as an lvalue.
9086
9087 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9088 SET_VINSN_INSN_RTX where it's used as an lvalue.
9089 (VINSN_INSN_RTX): New function.
9090 (SET_VINSN_INSN_RTX): New function.
9091
9092 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9093
9094 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9095 eventually be rtx_insn *, but to help with transition, for now,
9096 convert from an access macro into a pair of functions: DEP_PRO
9097 returning an rtx_insn * and...
9098 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9099 lvalue, returning an rtx&.
9100 (DEP_CON): Analogous changes to DEP_PRO above.
9101 (SET_DEP_CON): Likewise.
9102
9103 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9104 an lvalue to SET_DEP_CON.
9105 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9106 (sd_copy_back_deps): Likewise for DEP_CON.
9107 (DEP_PRO): New function, adding a checked cast for now.
9108 (DEP_CON): Likewise.
9109 (SET_DEP_PRO): New function.
9110 (SET_DEP_CON): Likewise.
9111
9112 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9113
9114 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9115 (extra_options): Add i386/cygwin.opt.
9116 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9117 (CPP_SPEC): Accept -pthread.
9118 (LINK_SPEC): Ditto.
9119 (GOMP_SELF_SPECS): Update comment.
9120 * config/i386/cygwin.opt: New file for -pthread flag.
9121
9122 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9123
9124 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9125 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9126 that we can return an rtx_insn *.
9127
9128 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9129
9130 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9131 when building executables, not DLLs. Add --large-address-aware
9132 under the same conditions.
9133 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9134 when building executables, not DLLs. Add --large-address-aware
9135 under the same conditions when using -m32.
9136
9137 * config/i386/cygwin-stdint.h: Throughout, make type
9138 definitions dependent on target architecture, not host.
9139
9140 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9141
9142 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9143 the return type from rtx to rtx_insn *, which will enable various
9144 conversions in followup patches. For now this is is done by a
9145 checked cast.
9146 (NEXT_INSN): Likewise.
9147 (SET_PREV_INSN): Convert to an inline function. This is intended
9148 for use as an lvalue, and so returns an rtx& to allow in-place
9149 modification.
9150 (SET_NEXT_INSN): Likewise.
9151
9152 2014-07-08 Mark Wielaard <mjw@redhat.com>
9153
9154 PR debug/59051
9155 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9156
9157 2014-08-19 Marek Polacek <polacek@redhat.com>
9158
9159 PR c/61271
9160 * cgraphunit.c (handle_alias_pairs): Fix condition.
9161
9162 2014-08-19 Richard Biener <rguenther@suse.de>
9163
9164 * gimple-fold.c (fold_gimple_assign): Properly build a
9165 null-pointer constant when devirtualizing addresses.
9166
9167 2014-07-07 Mark Wielaard <mjw@redhat.com>
9168
9169 * dwarf2out.c (decl_quals): New function.
9170 (modified_type_die): Take one cv_quals argument instead of two,
9171 one for const and one for volatile.
9172 (add_type_attribute): Likewise.
9173 (generic_parameter_die): Call add_type_attribute with one modifier
9174 argument.
9175 (base_type_for_mode): Likewise.
9176 (add_bounds_info): Likewise.
9177 (add_subscript_info): Likewise.
9178 (gen_array_type_die): Likewise.
9179 (gen_descr_array_type_die): Likewise.
9180 (gen_entry_point_die): Likewise.
9181 (gen_enumeration_type_die): Likewise.
9182 (gen_formal_parameter_die): Likewise.
9183 (gen_subprogram_die): Likewise.
9184 (gen_variable_die): Likewise.
9185 (gen_const_die): Likewise.
9186 (gen_field_die): Likewise.
9187 (gen_pointer_type_die): Likewise.
9188 (gen_reference_type_die): Likewise.
9189 (gen_ptr_to_mbr_type_die): Likewise.
9190 (gen_inheritance_die): Likewise.
9191 (gen_subroutine_type_die): Likewise.
9192 (gen_typedef_die): Likewise.
9193 (force_type_die): Likewise.
9194
9195 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9196
9197 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9198 if unset.
9199 * configure: Regenerate.
9200
9201 2014-08-19 Richard Biener <rguenther@suse.de>
9202
9203 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9204 DECL_EXTERNALs in BLOCKs as non-references.
9205 * tree-streamer-out.c (streamer_write_chain): Likewise.
9206
9207 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9208 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9209 Anna Tikhonova <anna.tikhonova@intel.com>
9210 Ilya Tocar <ilya.tocar@intel.com>
9211 Andrey Turetskiy <andrey.turetskiy@intel.com>
9212 Ilya Verbin <ilya.verbin@intel.com>
9213 Kirill Yukhin <kirill.yukhin@intel.com>
9214 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9215
9216 * config/i386/sse.md
9217 (define_mode_iterator VI48_AVX512F): Delete.
9218 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9219 (define_mode_iterator VI2_AVX512VL): Ditto.
9220 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9221 Delete.
9222 (define_insn
9223 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9224 New.
9225 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9226 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9227 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9228 with VI48_AVX512F_AVX512VL): New.
9229 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9230 with VI2_AVX512VL): Ditto.
9231
9232 2014-08-19 Marek Polacek <polacek@redhat.com>
9233
9234 * doc/invoke.texi: Document -Wc99-c11-compat.
9235
9236 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9237
9238 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9239 for rvalues, and...
9240 (SET_PREV_INSN): New macro, for use as an lvalue.
9241 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9242
9243 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9244 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9245 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9246 (fixup_abnormal_edges): Likewise.
9247 (unlink_insn_chain): Likewise.
9248 (fixup_reorder_chain): Likewise.
9249 (cfg_layout_delete_block): Likewise.
9250 (cfg_layout_merge_blocks): Likewise.
9251 * combine.c (update_cfg_for_uncondjump): Likewise.
9252 * emit-rtl.c (link_insn_into_chain): Likewise.
9253 (remove_insn): Likewise.
9254 (delete_insns_since): Likewise.
9255 (reorder_insns_nobb): Likewise.
9256 (emit_insn_after_1): Likewise.
9257 * final.c (rest_of_clean_state): Likewise.
9258 (final_scan_insn): Likewise.
9259 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9260 * haifa-sched.c (concat_note_lists): Likewise.
9261 (remove_notes): Likewise.
9262 (restore_other_notes): Likewise.
9263 (move_insn): Likewise.
9264 (unlink_bb_notes): Likewise.
9265 (restore_bb_notes): Likewise.
9266 * jump.c (delete_for_peephole): Likewise.
9267 * optabs.c (emit_libcall_block_1): Likewise.
9268 * reorg.c (emit_delay_sequence): Likewise.
9269 (fill_simple_delay_slots): Likewise.
9270 * sel-sched-ir.c (sel_move_insn): Likewise.
9271 (sel_remove_insn): Likewise.
9272 (get_bb_note_from_pool): Likewise.
9273 * sel-sched.c (move_nop_to_previous_block): Likewise.
9274
9275 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9276 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9277 (c6x_gen_bundles): Likewise.
9278 (hwloop_optimize): Likewise.
9279 * config/frv/frv.c (frv_function_prologue): Likewise.
9280 (frv_register_nop): Likewise.
9281 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9282 (ia64_reorg): Likewise.
9283 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9284 (mep_make_bundle): Likewise.
9285 (mep_bundle_insns): Likewise.
9286 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9287 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9288 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9289
9290 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9291
9292 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9293 return type from rtx to rtx_insn *.
9294 (BB_END): Likewise.
9295 (BB_HEADER): Likewise.
9296 (BB_FOOTER): Likewise.
9297 (SET_BB_HEAD): Convert to a function.
9298 (SET_BB_END): Likewise.
9299 (SET_BB_HEADER): Likewise.
9300 (SET_BB_FOOTER): Likewise.
9301
9302 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9303 Strengthen the return type from rtx to rtx_insn *. For now, this
9304 is done by adding a checked cast, but this will eventually
9305 become a field lookup.
9306 (BB_END): Likewise.
9307 (BB_HEADER): Likewise.
9308 (BB_FOOTER): Likewise.
9309 (SET_BB_HEAD): New function, from macro of same name. This is
9310 intended for use as an lvalue, and so returns an rtx& to allow
9311 in-place modification.
9312 (SET_BB_END): Likewise.
9313 (SET_BB_HEADER): Likewise.
9314 (SET_BB_FOOTER): Likewise.
9315
9316 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9317
9318 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9319 for rvalues, and...
9320 (SET_BB_HEAD): New macro, for use as a lvalue.
9321 (BB_END, SET_BB_END): Likewise.
9322 (BB_HEADER, SET_BB_HEADER): Likewise.
9323 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9324
9325 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9326 of BB_* macros into SET_BB_* macros.
9327 (fix_crossing_unconditional_branches): Likewise.
9328 * caller-save.c (save_call_clobbered_regs): Likewise.
9329 (insert_one_insn): Likewise.
9330 * cfgbuild.c (find_bb_boundaries): Likewise.
9331 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9332 (outgoing_edges_match): Likewise.
9333 (try_optimize_cfg): Likewise.
9334 * cfgexpand.c (expand_gimple_cond): Likewise.
9335 (expand_gimple_tailcall): Likewise.
9336 (expand_gimple_basic_block): Likewise.
9337 (construct_exit_block): Likewise.
9338 * cfgrtl.c (delete_insn): Likewise.
9339 (create_basic_block_structure): Likewise.
9340 (rtl_delete_block): Likewise.
9341 (rtl_split_block): Likewise.
9342 (emit_nop_for_unique_locus_between): Likewise.
9343 (rtl_merge_blocks): Likewise.
9344 (block_label): Likewise.
9345 (try_redirect_by_replacing_jump): Likewise.
9346 (emit_barrier_after_bb): Likewise.
9347 (fixup_abnormal_edges): Likewise.
9348 (record_effective_endpoints): Likewise.
9349 (relink_block_chain): Likewise.
9350 (fixup_reorder_chain): Likewise.
9351 (fixup_fallthru_exit_predecessor): Likewise.
9352 (cfg_layout_duplicate_bb): Likewise.
9353 (cfg_layout_split_block): Likewise.
9354 (cfg_layout_delete_block): Likewise.
9355 (cfg_layout_merge_blocks): Likewise.
9356 * combine.c (update_cfg_for_uncondjump): Likewise.
9357 * emit-rtl.c (add_insn_after): Likewise.
9358 (remove_insn): Likewise.
9359 (reorder_insns): Likewise.
9360 (emit_insn_after_1): Likewise.
9361 * haifa-sched.c (get_ebb_head_tail): Likewise.
9362 (restore_other_notes): Likewise.
9363 (move_insn): Likewise.
9364 (sched_extend_bb): Likewise.
9365 (fix_jump_move): Likewise.
9366 * ifcvt.c (noce_process_if_block): Likewise.
9367 (dead_or_predicable): Likewise.
9368 * ira.c (update_equiv_regs): Likewise.
9369 * reg-stack.c (change_stack): Likewise.
9370 * sel-sched-ir.c (sel_move_insn): Likewise.
9371 * sel-sched.c (move_nop_to_previous_block): Likewise.
9372
9373 * config/c6x/c6x.c (hwloop_optimize): Likewise.
9374 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9375
9376 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9377
9378 * rtl.h (for_each_rtx_in_insn): New function.
9379 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9380
9381 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9382
9383 * coretypes.h (class rtx_insn): Add forward declaration.
9384
9385 * rtl.h: Include is-a.h.
9386 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9387 workaround to ensure gengtype knows inheritance is occurring,
9388 whilst continuing to use the pre-existing special-casing for
9389 rtx_def.
9390 (class rtx_insn): New subclass of rtx_def, adding the
9391 invariant that we're dealing with something we can sanely use
9392 INSN_UID, NEXT_INSN, PREV_INSN on.
9393 (is_a_helper <rtx_insn *>::test): New.
9394 (is_a_helper <const rtx_insn *>::test): New.
9395
9396 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9397
9398 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9399
9400 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9401
9402 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9403 comdats as extern.
9404
9405 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9406
9407 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9408 to BUILT_IN_UNREACHABLE.
9409
9410 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9411
9412 PR target/62011
9413 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9414 New tune flag.
9415 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9416 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9417 (ffs<mode>2): Do not expand with tzcnt for
9418 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9419 (ffssi2_no_cmove): Ditto.
9420 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9421 (ctz<mode>2): New expander.
9422 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9423 (*ctz<mode>2_falsedep): New insn.
9424 (*ctz<mode>2): Rename from ctz<mode>2.
9425 (clz<mode>2_lzcnt): New expander.
9426 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9427 (*clz<mode>2_lzcnt_falsedep): New insn.
9428 (*clz<mode>2): Rename from ctz<mode>2.
9429 (popcount<mode>2): New expander.
9430 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9431 (*popcount<mode>2_falsedep): New insn.
9432 (*popcount<mode>2): Rename from ctz<mode>2.
9433 (*popcount<mode>2_cmp): Remove.
9434 (*popcountsi2_cmp_zext): Ditto.
9435
9436 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9437
9438 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9439 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9440 * config/microblaze/microblaze.h
9441 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9442
9443 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9444
9445 PR other/62168
9446 * configure.ac: Set install_gold_as_default to no for
9447 --enable-gold=no.
9448 * configure: Regenerated.
9449
9450 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9451
9452 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9453 * config.in: Add undef of HAVE_isl.
9454 * configure: Regenerate.
9455 * configure.ac: Add definition of HAVE_isl.
9456 * graphite-blocking.c: Add checking of HAVE_isl.
9457 * graphite-dependences.c: Likewise.
9458 * graphite-interchange.c: Likewise.
9459 * graphite-isl-ast-to-gimple.c: Likewise.
9460 * graphite-optimize-isl.c: Likewise.
9461 * graphite-poly.c: Likewise.
9462 * graphite-scop-detection.c: Likewise.
9463 * graphite-sese-to-poly.c: Likewise.
9464 * graphite.c: Likewise.
9465 * toplev.c: Replace the checking of HAVE_cloog with the checking
9466 of HAVE_isl.
9467
9468 2014-08-18 Richard Biener <rguenther@suse.de>
9469
9470 PR tree-optimization/62090
9471 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9472 (fold_builtin_3): Do not fold snprintf.
9473 (fold_builtin_4): Likewise.
9474 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9475 moved from builtins.c.
9476 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9477 (gimple_fold_builtin): Do not fold sprintf here.
9478
9479 2014-08-18 Richard Biener <rguenther@suse.de>
9480
9481 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9482 code to ...
9483 (maybe_canonicalize_mem_ref_addr): ... this function.
9484 (fold_stmt_1): Apply it here before all simplification.
9485
9486 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
9487
9488 PR ipa/61800
9489 * cgraph.h (cgraph_node::create_indirect_edge): Add
9490 compute_indirect_info param.
9491 * cgraph.c (cgraph_node::create_indirect_edge): Compute
9492 indirect_info only when it is required.
9493 * cgraphclones.c (cgraph_clone_edge): Do not recompute
9494 indirect_info fore cloned indirect edge.
9495
9496 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9497 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9498 Anna Tikhonova <anna.tikhonova@intel.com>
9499 Ilya Tocar <ilya.tocar@intel.com>
9500 Andrey Turetskiy <andrey.turetskiy@intel.com>
9501 Ilya Verbin <ilya.verbin@intel.com>
9502 Kirill Yukhin <kirill.yukhin@intel.com>
9503 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9504
9505 * config/i386/sse.md
9506 (define_mode_iterator VI8_AVX2_AVX512BW): New.
9507 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9508
9509 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9510 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9511 Anna Tikhonova <anna.tikhonova@intel.com>
9512 Ilya Tocar <ilya.tocar@intel.com>
9513 Andrey Turetskiy <andrey.turetskiy@intel.com>
9514 Ilya Verbin <ilya.verbin@intel.com>
9515 Kirill Yukhin <kirill.yukhin@intel.com>
9516 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9517
9518 * config/i386/sse.md
9519 (define_mode_iterator VF1_AVX512VL): New.
9520 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9521 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9522 New.
9523
9524 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9525 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9526 Anna Tikhonova <anna.tikhonova@intel.com>
9527 Ilya Tocar <ilya.tocar@intel.com>
9528 Andrey Turetskiy <andrey.turetskiy@intel.com>
9529 Ilya Verbin <ilya.verbin@intel.com>
9530 Kirill Yukhin <kirill.yukhin@intel.com>
9531 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9532
9533 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9534 * config/i386/i386.md
9535 (define_code_iterator any_float): New.
9536 (define_code_attr floatsuffix): New.
9537 * config/i386/sse.md
9538 (define_mode_iterator VF1_128_256VL): New.
9539 (define_mode_iterator VF2_512_256VL): New.
9540 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9541 TARGET check.
9542 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9543 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9544 New.
9545 (define_mode_attr qq2pssuff): New.
9546 (define_mode_attr sselongvecmode): New.
9547 (define_mode_attr sselongvecmodelower): New.
9548 (define_mode_attr sseintvecmode3): New.
9549 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9550 New.
9551 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9552 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9553 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9554 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9555
9556 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9557 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9558 Anna Tikhonova <anna.tikhonova@intel.com>
9559 Ilya Tocar <ilya.tocar@intel.com>
9560 Andrey Turetskiy <andrey.turetskiy@intel.com>
9561 Ilya Verbin <ilya.verbin@intel.com>
9562 Kirill Yukhin <kirill.yukhin@intel.com>
9563 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9564
9565 * config/i386/sse.md
9566 (define_mode_iterator VF2_AVX512VL): New.
9567 (define_mode_attr sseintvecmode2): New.
9568 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9569 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9570 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9571 (define_insn
9572 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9573 Ditto.
9574 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9575 Ditto.
9576 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9577 Ditto.
9578
9579 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9580 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9581 Anna Tikhonova <anna.tikhonova@intel.com>
9582 Ilya Tocar <ilya.tocar@intel.com>
9583 Andrey Turetskiy <andrey.turetskiy@intel.com>
9584 Ilya Verbin <ilya.verbin@intel.com>
9585 Kirill Yukhin <kirill.yukhin@intel.com>
9586 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9587
9588 * config/i386/i386.md
9589 (define_insn "*movoi_internal_avx"): Add evex version.
9590 (define_insn "*movti_internal"): Ditto.
9591
9592 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9593 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9594 Anna Tikhonova <anna.tikhonova@intel.com>
9595 Ilya Tocar <ilya.tocar@intel.com>
9596 Andrey Turetskiy <andrey.turetskiy@intel.com>
9597 Ilya Verbin <ilya.verbin@intel.com>
9598 Kirill Yukhin <kirill.yukhin@intel.com>
9599 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9600
9601 * config/i386/i386.md
9602 (define_attr "isa"): Add avx512dq, noavx512dq.
9603 (define_attr "enabled"): Ditto.
9604 * config/i386/sse.md
9605 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9606
9607 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9608 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9609 Anna Tikhonova <anna.tikhonova@intel.com>
9610 Ilya Tocar <ilya.tocar@intel.com>
9611 Andrey Turetskiy <andrey.turetskiy@intel.com>
9612 Ilya Verbin <ilya.verbin@intel.com>
9613 Kirill Yukhin <kirill.yukhin@intel.com>
9614 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9615
9616 * config/i386/i386.c
9617 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9618 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9619 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9620 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9621 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9622 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9623 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9624 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9625 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9626 * config/i386/sse.md
9627 (define_mode_iterator VMOVE): Allow V4TI mode.
9628 (define_mode_iterator V_AVX512VL): New.
9629 (define_mode_iterator V): New handling for AVX512VL.
9630 (define_insn "avx512f_load<mode>_mask"): Delete.
9631 (define_insn "<avx512>_load<mode>_mask"): New.
9632 (define_insn "avx512f_store<mode>_mask"): Delete.
9633 (define_insn "<avx512>_store<mode>_mask"): New.
9634
9635
9636 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9637
9638 PR sanitizer/62089
9639 * asan.c (instrument_derefs): Fix bitfield check.
9640
9641 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9642
9643 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9644 * config/rs6000/htm.md (ttest): Remove clobber.
9645 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9646 (and_operand): Reformat.
9647 (and_2rld_operand): New predicate.
9648 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9649 parameter.
9650 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9651 parameter. Handle AND directly.
9652 (rs6000_split_logical_di): Remove last parameter.
9653 (rs6000_split_logical): Remove last parameter. Remove obsolete
9654 comment.
9655 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9656 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9657 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9658 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9659 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9660 and 5 anonymous splitters): Delete.
9661 (and<mode>3): New expander.
9662 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9663 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9664 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9665 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9666 (floatdisf2_internal1): Remove clobbers.
9667 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9668 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9669 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9670 (and<mode>3 for BOOL_128): Remove clobber.
9671 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9672 rs6000_split_logical.
9673 (*bool<mode>3_internal for BOOL_128): Adjust call of
9674 rs6000_split_logical.
9675 (*boolc<mode>3_internal1 for BOOL_128,
9676 *boolc<mode>3_internal2 for BOOL_128,
9677 *boolcc<mode>3_internal1 for BOOL_128,
9678 *boolcc<mode>3_internal2 for BOOL_128,
9679 *eqv<mode>3_internal1 for BOOL_128,
9680 *eqv<mode>3_internal2 for BOOL_128,
9681 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9682 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9683 clobber.
9684 (*vec_reload_and_reg_<mptrsize>): Delete.
9685
9686 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9687
9688 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9689 and split, *boolccsi3_internal3 and split): Delete.
9690 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9691 *boolccdi3_internal3 and split): Delete.
9692 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9693 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9694
9695 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9696
9697 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9698 and split, *boolcsi3_internal3 and split): Delete.
9699 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9700 *boolcdi3_internal3 and split): Delete.
9701 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9702
9703 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9704
9705 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9706 <'u'>: Also support printing the low-order 16 bits.
9707 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9708 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9709 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9710 *booldi3_internal3 and split): Delete.
9711 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9712 *bool<mode>3_dot2): New.
9713 (two anonymous define_splits for non_logical_cint_operand): Merge.
9714
9715 2014-08-17 Marek Polacek <polacek@redhat.com>
9716 Manuel López-Ibáñez <manu@gcc.gnu.org>
9717
9718 PR c/62059
9719 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9720 (diagnostic_show_locus): Don't print caret diagnostic
9721 if a column is larger than the line_width.
9722
9723 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9724
9725 * common.opt: Make the ISL AST generator to be the main code generator
9726 of Graphite.
9727
9728 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9729
9730 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9731
9732 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9733
9734 PR target/61641
9735 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9736 Declare.
9737 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9738 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
9739 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
9740 Define.
9741 * config/pa/pa.md (begin_brtab): Delete insn.
9742 (end_brtab): Likewise.
9743
9744 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9745
9746 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
9747
9748 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
9749
9750 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9751 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9752 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9753 (get_dynamic_type): Remove.
9754 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9755 (clear_speculation): Bring to ipa-deivrt.h
9756 (get_class_context): Rename to ...
9757 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9758 (contains_type_p): Update.
9759 (get_dynamic_type): Rename to ...
9760 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9761 (possible_polymorphic_call_targets): UPdate.
9762 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
9763 * ipa-prop.c (ipa_analyze_call_uses): Update.
9764
9765 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
9766
9767 * doc/invoke.texi (SH options): Document missing processor variant
9768 options. Remove references to Hitachi. Undocument deprecated mspace
9769 option.
9770
9771 2014-08-15 Jason Merrill <jason@redhat.com>
9772
9773 * tree.c (type_hash_canon): Uncomment assert.
9774
9775 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9776
9777 * input.h (in_system_header_at): Add comment.
9778
9779 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9780
9781 PR fortran/44054
9782 * diagnostic.c (build_message_string): Make it extern.
9783 * diagnostic.h (build_message_string): Make it extern.
9784
9785 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
9786
9787 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
9788 load/store from/to non-floating class pseudo.
9789
9790 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9791
9792 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
9793
9794 2014-08-15 Richard Biener <rguenther@suse.de>
9795
9796 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
9797 (get_constraint_for_ssa_var): Remove dead code.
9798 (get_constraint_for_1): Adjust.
9799 (find_what_var_points_to): Likewise.
9800 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
9801
9802 2014-08-15 Ilya Tocar <tocarip@gmail.com>
9803
9804 PR target/61878
9805 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
9806 (_mm512_mask_cmpge_epu32_mask): Ditto.
9807 (_mm512_cmpge_epu32_mask): Ditto.
9808 (_mm512_mask_cmpge_epi64_mask): Ditto.
9809 (_mm512_cmpge_epi64_mask): Ditto.
9810 (_mm512_mask_cmpge_epu64_mask): Ditto.
9811 (_mm512_cmpge_epu64_mask): Ditto.
9812 (_mm512_mask_cmple_epi32_mask): Ditto.
9813 (_mm512_cmple_epi32_mask): Ditto.
9814 (_mm512_mask_cmple_epu32_mask): Ditto.
9815 (_mm512_cmple_epu32_mask): Ditto.
9816 (_mm512_mask_cmple_epi64_mask): Ditto.
9817 (_mm512_cmple_epi64_mask): Ditto.
9818 (_mm512_mask_cmple_epu64_mask): Ditto.
9819 (_mm512_cmple_epu64_mask): Ditto.
9820 (_mm512_mask_cmplt_epi32_mask): Ditto.
9821 (_mm512_cmplt_epi32_mask): Ditto.
9822 (_mm512_mask_cmplt_epu32_mask): Ditto.
9823 (_mm512_cmplt_epu32_mask): Ditto.
9824 (_mm512_mask_cmplt_epi64_mask): Ditto.
9825 (_mm512_cmplt_epi64_mask): Ditto.
9826 (_mm512_mask_cmplt_epu64_mask): Ditto.
9827 (_mm512_cmplt_epu64_mask): Ditto.
9828 (_mm512_mask_cmpneq_epi32_mask): Ditto.
9829 (_mm512_mask_cmpneq_epu32_mask): Ditto.
9830 (_mm512_cmpneq_epu32_mask): Ditto.
9831 (_mm512_mask_cmpneq_epi64_mask): Ditto.
9832 (_mm512_cmpneq_epi64_mask): Ditto.
9833 (_mm512_mask_cmpneq_epu64_mask): Ditto.
9834 (_mm512_cmpneq_epu64_mask): Ditto.
9835 (_mm512_castpd_ps): Ditto.
9836 (_mm512_castpd_si512): Ditto.
9837 (_mm512_castps_pd): Ditto.
9838 (_mm512_castps_si512): Ditto.
9839 (_mm512_castsi512_ps): Ditto.
9840 (_mm512_castsi512_pd): Ditto.
9841 (_mm512_castpd512_pd128): Ditto.
9842 (_mm512_castps512_ps128): Ditto.
9843 (_mm512_castsi512_si128): Ditto.
9844 (_mm512_castpd512_pd256): Ditto.
9845 (_mm512_castps512_ps256): Ditto.
9846 (_mm512_castsi512_si256): Ditto.
9847 (_mm512_castpd128_pd512): Ditto.
9848 (_mm512_castps128_ps512): Ditto.
9849 (_mm512_castsi128_si512): Ditto.
9850 (_mm512_castpd256_pd512): Ditto.
9851 (_mm512_castps256_ps512): Ditto.
9852 (_mm512_castsi256_si512): Ditto.
9853 (_mm512_cmpeq_epu32_mask): Ditto.
9854 (_mm512_mask_cmpeq_epu32_mask): Ditto.
9855 (_mm512_mask_cmpeq_epu64_mask): Ditto.
9856 (_mm512_cmpeq_epu64_mask): Ditto.
9857 (_mm512_cmpgt_epu32_mask): Ditto.
9858 (_mm512_mask_cmpgt_epu32_mask): Ditto.
9859 (_mm512_mask_cmpgt_epu64_mask): Ditto.
9860 (_mm512_cmpgt_epu64_mask): Ditto.
9861 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
9862 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
9863 * config/i386/i386.c (enum ix86_builtins): Add
9864 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
9865 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
9866 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
9867 (bdesc_args): Add __builtin_ia32_si512_256si,
9868 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
9869 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
9870 __builtin_ia32_pd512_pd.
9871 (ix86_expand_args_builtin): Handle new FTYPEs.
9872 * config/i386/sse.md (castmode): Add 512-bit modes.
9873 (AVX512MODE2P): New.
9874 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
9875 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
9876
9877 2014-08-15 Richard Biener <rguenther@suse.de>
9878
9879 * fold-const.c (tree_swap_operands_p): Put all constants
9880 last, also strip sign-changing NOPs when considering further
9881 canonicalization. Canonicalize also when optimizing for size.
9882
9883 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9884
9885 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
9886 one_match > zero_match case to just before simple_sequence.
9887
9888 2014-08-15 Richard Biener <rguenther@suse.de>
9889
9890 * data-streamer.h (streamer_string_index, string_for_index):
9891 Remove.
9892 * data-streamer-out.c (streamer_string_index): Make static.
9893 * data-streamer-in.c (string_for_index): Likewise.
9894 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
9895 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
9896
9897 2014-08-15 Richard Biener <rguenther@suse.de>
9898
9899 PR tree-optimization/62031
9900 * tree-data-ref.c (dr_analyze_indices): Do not set
9901 DR_UNCONSTRAINED_BASE.
9902 (dr_may_alias_p): All indirect accesses have to go the
9903 formerly DR_UNCONSTRAINED_BASE path.
9904 * tree-data-ref.h (struct indices): Remove
9905 unconstrained_base member.
9906 (DR_UNCONSTRAINED_BASE): Remove.
9907
9908 2014-08-15 Jakub Jelinek <jakub@redhat.com>
9909
9910 PR middle-end/62092
9911 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
9912 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
9913 in OMP_CLAUSE_MAP in some outer target region.
9914
9915 2014-08-15 Bin Cheng <bin.cheng@arm.com>
9916
9917 * tree-ssa-loop-ivopts.c (ivopts_data): New field
9918 name_expansion_cache.
9919 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
9920 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
9921 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
9922 (difference_cannot_overflow_p): New parameter. Use affine
9923 expansion for equality check.
9924 (iv_elimination_compare_lt): Pass new argument.
9925
9926 2014-08-14 DJ Delorie <dj@redhat.com>
9927
9928 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
9929 variables to the accumulator.
9930
9931 * config/rl78/predicates.md (rl78_near_mem_operand): New.
9932 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
9933 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
9934 with far-far moves.
9935
9936 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
9937 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
9938 (umulqihi3_virt): Likewise.
9939 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
9940 (umulqihi3_real): Likewise.
9941
9942 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
9943
9944 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9945
9946 PR tree-optimization/62091
9947 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
9948 function_entry_reached.
9949 (walk_aliased_vdefs): Clear it here.
9950 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
9951
9952 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9953
9954 * ipa-utils.h (compare_virtual_tables): Declare.
9955 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
9956
9957 2014-08-14 Marek Polacek <polacek@redhat.com>
9958
9959 DR 458
9960 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
9961 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
9962
9963 2014-08-14 Tom de Vries <tom@codesourcery.com>
9964
9965 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
9966
9967 2014-08-14 Tom de Vries <tom@codesourcery.com>
9968
9969 PR rtl-optimization/62004
9970 PR rtl-optimization/62030
9971 * ifcvt.c (rtx_interchangeable_p): New function.
9972 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
9973 * emit-rtl.h (mem_attrs_eq_p): Declare.
9974
9975 2014-08-14 Roman Gareev <gareevroman@gmail.com>
9976
9977 * graphite-scop-detection.c:
9978 Add inclusion of cp-tree.h.
9979 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
9980 in case they are pointers to object types
9981
9982 2014-08-14 Richard Biener <rguenther@suse.de>
9983
9984 * BASE-VER: Change to 5.0.0
9985
9986 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9988 Anna Tikhonova <anna.tikhonova@intel.com>
9989 Ilya Tocar <ilya.tocar@intel.com>
9990 Andrey Turetskiy <andrey.turetskiy@intel.com>
9991 Ilya Verbin <ilya.verbin@intel.com>
9992 Kirill Yukhin <kirill.yukhin@intel.com>
9993 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9994
9995 * config/i386/sse.md (define_mode_attr avx512): New.
9996 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
9997 V4DI modes.
9998 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
9999 (define_mode_attr ssse3_avx2): Ditto.
10000 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10001 (define_mode_attr avx2_avx512bw): New.
10002 (define_mode_attr ssedoublemodelower): New.
10003 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10004 V32HI, V64QI modes.
10005 (define_mode_attr ssebytemode): Allow V8DI modes.
10006 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10007 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10008 (define_mode_attr ssePSmode2): New.
10009 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10010 V16HI, V32HI modes.
10011 (define_mode_attr dbpsadbwmode): New.
10012 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10013 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10014 (vi8_sse4_1_avx2_avx512): New.
10015 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10016 mode attribute.
10017 (define_mode_attr blendbits): Move before its immediate use.
10018
10019 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10020 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10021 Anna Tikhonova <anna.tikhonova@intel.com>
10022 Ilya Tocar <ilya.tocar@intel.com>
10023 Andrey Turetskiy <andrey.turetskiy@intel.com>
10024 Ilya Verbin <ilya.verbin@intel.com>
10025 Kirill Yukhin <kirill.yukhin@intel.com>
10026 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10027
10028 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10029 * config/i386/subst.md
10030 (define_mode_iterator SUBST_V): Update.
10031 (define_mode_iterator SUBST_A): Ditto.
10032 (define_subst_attr "mask_operand7"): New.
10033 (define_subst_attr "mask_operand10"): New.
10034 (define_subst_attr "mask_operand_arg34") : New.
10035 (define_subst_attr "mask_expand_op3"): New.
10036 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10037 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10038 (define_subst_attr "mask_avx512vl_condition"): New.
10039 (define_subst_attr "round_mask_operand4"): Ditto.
10040 (define_subst_attr "round_mask_scalar_op3"): Delete.
10041 (define_subst_attr "round_mask_op4"): New.
10042 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10043 V16SImode.
10044 (define_subst_attr "round_modev8sf_condition"): New.
10045 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10046 <MODE>mode.
10047 (define_subst_attr "round_saeonly_mask_operand4"): New.
10048 (define_subst_attr "round_saeonly_mask_op4"): New.
10049 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10050 V8DImode, V16SImode.
10051 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10052 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10053 (define_subst_attr "mask_expand4_args"): New.
10054 (define_subst "mask_expand4"): New.
10055
10056 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10057 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10058 Anna Tikhonova <anna.tikhonova@intel.com>
10059 Ilya Tocar <ilya.tocar@intel.com>
10060 Andrey Turetskiy <andrey.turetskiy@intel.com>
10061 Ilya Verbin <ilya.verbin@intel.com>
10062 Kirill Yukhin <kirill.yukhin@intel.com>
10063 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10064
10065 * config/i386/i386.md
10066 (define_attr "isa"): Add avx512bw,noavx512bw.
10067 (define_attr "enabled"): Ditto.
10068 (define_split): Add 32/64-bit mask logic.
10069 (define_insn "*k<logic>qi"): New.
10070 (define_insn "*k<logic>hi"): New.
10071 (define_insn "*anddi_1"): Add mask version.
10072 (define_insn "*andsi_1"): Ditto.
10073 (define_insn "*<code><mode>_1"): Ditto.
10074 (define_insn "*<code>hi_1"): Ditto.
10075 (define_insn "kxnor<mode>"): New.
10076 (define_insn "kunpcksi"): New.
10077 (define_insn "kunpckdi"): New.
10078 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10079 (define_insn "*one_cmplhi2_1"): Ditto.
10080
10081 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10082 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10083 Anna Tikhonova <anna.tikhonova@intel.com>
10084 Ilya Tocar <ilya.tocar@intel.com>
10085 Andrey Turetskiy <andrey.turetskiy@intel.com>
10086 Ilya Verbin <ilya.verbin@intel.com>
10087 Kirill Yukhin <kirill.yukhin@intel.com>
10088 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10089
10090 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10091 V32HImode.
10092
10093 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10094 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10095 Anna Tikhonova <anna.tikhonova@intel.com>
10096 Ilya Tocar <ilya.tocar@intel.com>
10097 Andrey Turetskiy <andrey.turetskiy@intel.com>
10098 Ilya Verbin <ilya.verbin@intel.com>
10099 Kirill Yukhin <kirill.yukhin@intel.com>
10100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10101
10102 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10103 registers.
10104 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10105 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10106 xmm/ymm16+ when availble.
10107 * config/i386/i386.h
10108 (HARD_REGNO_NREGS): Add mask regs.
10109 (VALID_AVX512F_REG_MODE): Ditto.
10110 (VALID_AVX512F_REG_MODE) : Define.
10111 (VALID_MASK_AVX512BW_MODE): Ditto.
10112 (reg_class) (MASK_REG_P(X)): Define.
10113 * config/i386/i386.md: Do not split long moves with mask register,
10114 use kmovb if avx512bw is availible.
10115 (movdi_internal): Handle mask registers.
10116
10117 2014-08-14 Richard Biener <rguenther@suse.de>
10118
10119 PR tree-optimization/62081
10120 * tree-ssa-loop.c (pass_fix_loops): New pass.
10121 (pass_tree_loop::gate): Do not fixup loops here.
10122 * tree-pass.h (make_pass_fix_loops): Declare.
10123 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10124
10125 2014-08-14 Richard Biener <rguenther@suse.de>
10126
10127 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10128 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10129
10130 2014-08-14 Richard Biener <rguenther@suse.de>
10131
10132 PR tree-optimization/62090
10133 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10134 (fold_builtin_2): Do not fold sprintf.
10135 (fold_builtin_3): Likewise.
10136 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10137 moved from builtins.c.
10138 (gimple_fold_builtin): Fold sprintf.
10139
10140 2014-08-14 Richard Biener <rguenther@suse.de>
10141
10142 PR rtl-optimization/62079
10143 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10144 run cleanup_cfg.
10145
10146 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10147
10148 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10149 current_function_decl.
10150
10151 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10152
10153 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10154 cgraph_function_node to cgraph_node::function_symbol
10155 refactoring.
10156
10157 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10158
10159 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10160 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10161
10162 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10163
10164 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10165 warning.
10166
10167 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10168
10169 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10170 generator.
10171
10172 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10173
10174 PR target/62025
10175 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10176 any registers that are used in mem_insn.
10177
10178 2014-08-12 Steve Ellcey <sellcey@mips.com>
10179
10180 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10181
10182 2014-08-12 Steve Ellcey <sellcey@mips.com>
10183
10184 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10185 (MULTILIB_DIRNAMES): Ditto.
10186 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10187 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10188 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10189 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10190 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10191 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10192
10193 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10194
10195 PR target/61413
10196 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10197 of __ARM_SIZEOF_WCHAR_T.
10198
10199 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10200
10201 PR target/62098
10202 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10203 Remove unnecessary attributes.
10204
10205 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10206
10207 * internal-fn.c (init_internal_fns): Fix off-by-one.
10208
10209 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10210 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10211 Anna Tikhonova <anna.tikhonova@intel.com>
10212 Ilya Tocar <ilya.tocar@intel.com>
10213 Andrey Turetskiy <andrey.turetskiy@intel.com>
10214 Ilya Verbin <ilya.verbin@intel.com>
10215 Kirill Yukhin <kirill.yukhin@intel.com>
10216 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10217
10218 * config/i386/i386.c (standard_sse_constant_opcode): Use
10219 vpxord/vpternlog if avx512 is availible.
10220
10221 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10222
10223 PR middle-end/62103
10224 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10225 bitfields, that is when size doesn't match the size of type or the
10226 size of the constructor.
10227
10228 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10229
10230 * config/rs6000/constraints.md (wh constraint): New constraint,
10231 for FP registers if direct move is available.
10232 (wi constraint): New constraint, for VSX/FP registers that can
10233 handle 64-bit integers.
10234 (wj constraint): New constraint for VSX/FP registers that can
10235 handle 64-bit integers for direct moves.
10236 (wk constraint): New constraint for VSX/FP registers that can
10237 handle 64-bit doubles for direct moves.
10238 (wy constraint): Make documentation match implementation.
10239
10240 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10241 scalar_in_vmx_p field to simplify tests of whether SFmode or
10242 DFmode can go in the Altivec registers.
10243 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10244 (rs6000_setup_reg_addr_masks): Likewise.
10245 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10246 field, and wh/wi/wj/wk constraints.
10247 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10248 the wh/wi/wj/wk constraints.
10249 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10250 upper registers, prefer VSX registers unless the operation is a
10251 memory operation with REG+OFFSET addressing.
10252
10253 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10254 DImode. Change SFmode to use ww constraint instead of d to allow
10255 SF registers in the upper registers.
10256 (VSr2): Likewise.
10257 (VSr3): Likewise.
10258 (VSr5): Fix thinko in comment.
10259 (VSa): New mode attribute that is an alternative to wa, that
10260 returns the VSX register class that a mode can go in, but may not
10261 be the preferred register class.
10262 (VS_64dm): New mode attribute for appropriate register classes for
10263 referencing 64-bit elements of vectors for direct moves and normal
10264 moves.
10265 (VS_64reg): Likewise.
10266 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10267 register allocator to only registers the data type can handle.
10268 (vsx_le_perm_load_<mode>): Likewise.
10269 (vsx_le_perm_store_<mode>): Likewise.
10270 (vsx_xxpermdi2_le_<mode>): Likewise.
10271 (vsx_xxpermdi4_le_<mode>): Likewise.
10272 (vsx_lxvd2x2_le_<mode>): Likewise.
10273 (vsx_lxvd2x4_le_<mode>): Likewise.
10274 (vsx_stxvd2x2_le_<mode>): Likewise.
10275 (vsx_add<mode>3): Likewise.
10276 (vsx_sub<mode>3): Likewise.
10277 (vsx_mul<mode>3): Likewise.
10278 (vsx_div<mode>3): Likewise.
10279 (vsx_tdiv<mode>3_internal): Likewise.
10280 (vsx_fre<mode>2): Likewise.
10281 (vsx_neg<mode>2): Likewise.
10282 (vsx_abs<mode>2): Likewise.
10283 (vsx_nabs<mode>2): Likewise.
10284 (vsx_smax<mode>3): Likewise.
10285 (vsx_smin<mode>3): Likewise.
10286 (vsx_sqrt<mode>2): Likewise.
10287 (vsx_rsqrte<mode>2): Likewise.
10288 (vsx_tsqrt<mode>2_internal): Likewise.
10289 (vsx_fms<mode>4): Likewise.
10290 (vsx_nfma<mode>4): Likewise.
10291 (vsx_eq<mode>): Likewise.
10292 (vsx_gt<mode>): Likewise.
10293 (vsx_ge<mode>): Likewise.
10294 (vsx_eq<mode>_p): Likewise.
10295 (vsx_gt<mode>_p): Likewise.
10296 (vsx_ge<mode>_p): Likewise.
10297 (vsx_xxsel<mode>): Likewise.
10298 (vsx_xxsel<mode>_uns): Likewise.
10299 (vsx_copysign<mode>3): Likewise.
10300 (vsx_float<VSi><mode>2): Likewise.
10301 (vsx_floatuns<VSi><mode>2): Likewise.
10302 (vsx_fix_trunc<mode><VSi>2): Likewise.
10303 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10304 (vsx_x<VSv>r<VSs>i): Likewise.
10305 (vsx_x<VSv>r<VSs>ic): Likewise.
10306 (vsx_btrunc<mode>2): Likewise.
10307 (vsx_b2trunc<mode>2): Likewise.
10308 (vsx_floor<mode>2): Likewise.
10309 (vsx_ceil<mode>2): Likewise.
10310 (vsx_<VS_spdp_insn>): Likewise.
10311 (vsx_xscvspdp): Likewise.
10312 (vsx_xvcvspuxds): Likewise.
10313 (vsx_float_fix_<mode>2): Likewise.
10314 (vsx_set_<mode>): Likewise.
10315 (vsx_extract_<mode>_internal1): Likewise.
10316 (vsx_extract_<mode>_internal2): Likewise.
10317 (vsx_extract_<mode>_load): Likewise.
10318 (vsx_extract_<mode>_store): Likewise.
10319 (vsx_splat_<mode>): Likewise.
10320 (vsx_xxspltw_<mode>): Likewise.
10321 (vsx_xxspltw_<mode>_direct): Likewise.
10322 (vsx_xxmrghw_<mode>): Likewise.
10323 (vsx_xxmrglw_<mode>): Likewise.
10324 (vsx_xxsldwi_<mode>): Likewise.
10325 (vsx_xscvdpspn): Tighten constraints to only use register classes
10326 the types use.
10327 (vsx_xscvspdpn): Likewise.
10328 (vsx_xscvdpspn_scalar): Likewise.
10329
10330 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10331 wj, and wk constraints.
10332 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10333 general purpose registers.
10334
10335 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10336 direct moves.
10337 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10338 DImode instead of wm. Use wk constraint for direct move of DFmode
10339 instead of wm.
10340 (extendsidi2_lfiwax): Likewise.
10341 (lfiwax): Likewise.
10342 (lfiwzx): Likewise.
10343 (movdi_internal64): Likewise.
10344
10345 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10346 wk constraints. Make the wy constraint documentation match them
10347 implementation.
10348
10349 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10350
10351 Replacement of isl_int by isl_val
10352 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10353 (compute_bounds_for_param): use isl_val instead of isl_int
10354 (compute_bounds_for_loop): likewise
10355 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10356 (build_linearized_memory_access): use isl_val instead of isl_int
10357 (pdr_stride_in_loop): likewise
10358 * graphite-optimize-isl.c:
10359 (getPrevectorMap): use isl_val instead of isl_int
10360 * graphite-poly.c:
10361 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10362 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10363 (extern the_isl_ctx): declare
10364 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10365 (extract_affine_gmp): likewise
10366 (wrap): likewise
10367 (build_loop_iteration_domains): likewise
10368 (add_param_constraints): likewise
10369
10370 2014-08-11 Richard Biener <rguenther@suse.de>
10371
10372 PR tree-optimization/62075
10373 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10374 handle uses in patterns.
10375
10376 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10377 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10378 Anna Tikhonova <anna.tikhonova@intel.com>
10379 Ilya Tocar <ilya.tocar@intel.com>
10380 Andrey Turetskiy <andrey.turetskiy@intel.com>
10381 Ilya Verbin <ilya.verbin@intel.com>
10382 Kirill Yukhin <kirill.yukhin@intel.com>
10383 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10384
10385 * common/config/i386/i386-common.c
10386 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10387 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10388 (ix86_handle_option): Handle OPT_mavx512vl.
10389 * config/i386/cpuid.h (bit_AVX512VL): Define.
10390 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10391 set -mavx512vl accordingly.
10392 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10393 OPTION_MASK_ISA_AVX512VL.
10394 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10395 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10396 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10397 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10398 * config/i386/i386.h (TARGET_AVX512VL): Define.
10399 (TARGET_AVX512VL_P(x)): Ditto.
10400 * config/i386/i386.opt: Add mavx512vl.
10401
10402 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10403
10404 PR tree-optimization/62073
10405 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10406 a basic block.
10407
10408 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10409 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10410 Anna Tikhonova <anna.tikhonova@intel.com>
10411 Ilya Tocar <ilya.tocar@intel.com>
10412 Andrey Turetskiy <andrey.turetskiy@intel.com>
10413 Ilya Verbin <ilya.verbin@intel.com>
10414 Kirill Yukhin <kirill.yukhin@intel.com>
10415 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10416
10417 * common/config/i386/i386-common.c
10418 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10419 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10420 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10421 (ix86_handle_option): Handle OPT_mavx512bw.
10422 * config/i386/cpuid.h (bit_AVX512BW): Define.
10423 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10424 set -mavx512bw accordingly.
10425 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10426 OPTION_MASK_ISA_AVX512BW.
10427 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10428 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10429 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10430 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10431 * config/i386/i386.h (TARGET_AVX512BW): Define.
10432 (TARGET_AVX512BW_P(x)): Ditto.
10433 * config/i386/i386.opt: Add mavx512bw.
10434
10435 2014-08-11 Richard Biener <rguenther@suse.de>
10436
10437 PR tree-optimization/62070
10438 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10439 Remove SSA checking.
10440
10441 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10442
10443 * asan.c (asan_check_flags): New enum.
10444 (build_check_stmt_with_calls): Removed function.
10445 (build_check_stmt): Split inlining logic to
10446 asan_expand_check_ifn.
10447 (instrument_derefs): Rename parameter.
10448 (instrument_mem_region_access): Rename parameter.
10449 (instrument_strlen_call): Likewise.
10450 (asan_expand_check_ifn): New function.
10451 (asan_instrument): Remove old code.
10452 (pass_sanopt::execute): Change handling of
10453 asan-instrumentation-with-call-threshold.
10454 (asan_clear_shadow): Fix formatting.
10455 (asan_function_start): Likewise.
10456 (asan_emit_stack_protection): Likewise.
10457 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10458 Update description.
10459 * internal-fn.c (expand_ASAN_CHECK): New function.
10460 * internal-fn.def (ASAN_CHECK): New internal function.
10461 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10462 Update description.
10463 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10464 * tree.c: Small comment fix.
10465
10466 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10467
10468 * gimple.c (gimple_call_fnspec): Support internal functions.
10469 (gimple_call_return_flags): Use const.
10470 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10471 * internal-fn.def: Add fnspec information.
10472 * internal-fn.h (internal_fn_fnspec): New function.
10473 (init_internal_fns): Declare new function.
10474 * internal-fn.c (internal_fn_fnspec_array): New global variable.
10475 (init_internal_fns): New function.
10476 * tree-core.h: Update macro call.
10477 * tree.c (build_common_builtin_nodes): Initialize internal fns.
10478
10479 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
10480
10481 * lto-streamer.h (struct output_block::symbol): Change from
10482 struct symtab_node to plain symtab_node.
10483 (referenced_from_this_partition_p): Change first parameter
10484 from struct symtab_node to plain symtab_node.
10485
10486 2014-08-10 Marek Polacek <polacek@redhat.com>
10487
10488 PR c/51849
10489 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10490
10491 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
10492
10493 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10494 DECL correctly; do not give up on types in static storage.
10495
10496 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
10497
10498 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10499
10500 2014-08-09 Roman Gareev <gareevroman@gmail.com>
10501
10502 * graphite-isl-ast-to-gimple.c:
10503 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10504
10505 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10506
10507 2014-08-08 Guozhi Wei <carrot@google.com>
10508
10509 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10510
10511 2014-08-08 Cary Coutant <ccoutant@google.com>
10512
10513 * dwarf2out.c (get_skeleton_type_unit): Remove.
10514 (output_skeleton_debug_sections): Remove skeleton type units.
10515 (output_comdat_type_unit): Likewise.
10516 (dwarf2out_finish): Likewise.
10517
10518 2014-08-07 Yi Yang <ahyangyi@google.com>
10519
10520 * predict.c (expr_expected_value_1): Remove the redundant assignment.
10521
10522 2014-08-08 Richard Biener <rguenther@suse.de>
10523
10524 * lto-streamer.h (struct lto_input_block): Make it a class
10525 with a constructor.
10526 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10527 (struct lto_function_header, struct lto_simple_header,
10528 struct lto_simple_header_with_strings,
10529 struct lto_decl_header, struct lto_function_header): Make
10530 a simple inheritance hieararchy. Remove unused fields.
10531 (struct lto_asm_header): Remove.
10532 * lto-streamer-out.c (produce_asm): Adjust.
10533 (lto_output_toplevel_asms): Likewise.
10534 (produce_asm_for_decls): Likewise.
10535 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10536 * data-streamer-in.c (string_for_index): Likewise.
10537 * ipa-inline-analysis.c (inline_read_section): Likewise.
10538 * ipa-prop.c (ipa_prop_read_section): Likewise.
10539 (read_replacements_section): Likewise.
10540 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10541 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10542 (lto_destroy_simple_input_block): Likewise.
10543 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10544 (lto_input_toplevel_asms): Likewise.
10545
10546 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10547 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10548 Anna Tikhonova <anna.tikhonova@intel.com>
10549 Ilya Tocar <ilya.tocar@intel.com>
10550 Andrey Turetskiy <andrey.turetskiy@intel.com>
10551 Ilya Verbin <ilya.verbin@intel.com>
10552 Kirill Yukhin <kirill.yukhin@intel.com>
10553 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10554
10555 * common/config/i386/i386-common.c
10556 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10557 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10558 (ix86_handle_option): Handle OPT_mavx512dq.
10559 * config/i386/cpuid.h (bit_AVX512DQ): Define.
10560 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10561 set -mavx512dq accordingly.
10562 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10563 OPTION_MASK_ISA_AVX512DQ.
10564 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10565 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10566 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10567 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10568 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10569 (TARGET_AVX512DQ_P(x)): Ditto.
10570 * config/i386/i386.opt: Add mavx512dq.
10571
10572 2014-08-08 Richard Biener <rguenther@suse.de>
10573
10574 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10575 target_percent, target_percent_s): Export.
10576 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10577 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10578 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10579 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10580 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10581 Move to gimple-fold.c.
10582 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10583 strcat and strcpy.
10584 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10585 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10586 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10587 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10588 (rewrite_call_expr_array): Remove.
10589 (fold_builtin_sprintf_chk): Likewise.
10590 (fold_builtin_snprintf_chk): Likewise.
10591 (fold_builtin_varargs): Remove handling of sprintf_chk,
10592 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10593 (gimple_fold_builtin_sprintf_chk): Remove.
10594 (gimple_fold_builtin_snprintf_chk): Likewise.
10595 (gimple_fold_builtin_varargs): Likewise.
10596 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10597 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10598 * gimple.c (gimple_seq_add_seq_without_update): New function.
10599 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10600 * gimple-fold.c: Include output.h.
10601 (gsi_replace_with_seq_vops): New function, split out from ...
10602 (gimplify_and_update_call_from_tree): ... here.
10603 (replace_call_with_value): New function.
10604 (replace_call_with_call_and_fold): Likewise.
10605 (var_decl_component_p): Moved from builtins.c.
10606 (gimple_fold_builtin_memory_op): Moved from builtins.c
10607 fold_builtin_memory_op and rewritten to GIMPLE.
10608 (gimple_fold_builtin_memset): Likewise.
10609 (gimple_fold_builtin_strcpy): Likewise.
10610 (gimple_fold_builtin_strncpy): Likewise.
10611 (gimple_fold_builtin_strcat): Likewise.
10612 (gimple_fold_builtin_fputs): Likewise.
10613 (gimple_fold_builtin_memory_chk): Likewise.
10614 (gimple_fold_builtin_stxcpy_chk): Likewise.
10615 (gimple_fold_builtin_stxncpy_chk): Likewise.
10616 (gimple_fold_builtin_snprintf_chk): Likewise.
10617 (gimple_fold_builtin_sprintf_chk): Likewise.
10618 (gimple_fold_builtin_strlen): New function.
10619 (gimple_fold_builtin_with_strlen): New function split out from
10620 gimple_fold_builtin.
10621 (gimple_fold_builtin): Change signature and handle
10622 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10623 here. Call gimple_fold_builtin_with_strlen.
10624 (gimple_fold_call): Adjust.
10625
10626 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10627
10628 * calls.c (precompute_arguments): Check
10629 promoted_for_signed_and_unsigned_p and set the promoted mode.
10630 (promoted_for_signed_and_unsigned_p): New function.
10631 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10632 and set the promoted mode.
10633 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10634 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10635 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10636
10637
10638 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10639
10640 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10641 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10642 (expand_call): Likewise.
10643 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10644 to get promoted mode.
10645 * combine.c (record_promoted_value): Skip > 0 comparison with
10646 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10647 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10648 of SUBREG_PROMOTED_UNSIGNED_P.
10649 (convert_modes): Likewise.
10650 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10651 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10652 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10653 SUBREG_PROMOTED_UNSIGNED_SET.
10654 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10655 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10656 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10657 SUBREG_PROMOTED_SET.
10658 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10659 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10660 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10661 of SUBREG_PROMOTED_UNSIGNED_P.
10662 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10663 (SUBREG_PROMOTED_SET): New define.
10664 (SUBREG_PROMOTED_GET): Likewise.
10665 (SUBREG_PROMOTED_SIGN): Likewise.
10666 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10667 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10668 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10669 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10670 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10671 (nonzero_bits1): Skip > 0 comparison with the results as
10672 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10673 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10674 of !SUBREG_PROMOTED_UNSIGNED_P.
10675 * simplify-rtx.c (simplify_unary_operation_1): Use new
10676 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10677 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10678 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10679 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10680
10681 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10682
10683 * ipa-devirt.c: Include gimple-pretty-print.h
10684 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10685 further tests.
10686 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10687 (get_polymorphic_call_info): Fix return value
10688 (type_change_info): New sturcture based on ipa-prop
10689 variant.
10690 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10691 based on ipa-prop variant.
10692 (extr_type_from_vtbl_ptr_store): New function
10693 based on ipa-prop variant.
10694 (record_known_type): New function.
10695 (check_stmt_for_type_change): New function.
10696 (get_dynamic_type): New function.
10697 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10698 * tree-ssa-pre.c: ipa-utils.h
10699 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10700 machinery; sanity check with ipa-prop devirtualization.
10701 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10702 polymorphic flag.
10703
10704 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10705
10706 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10707 * alias.c, cfgexpand.c, cgraphbuild.c,
10708 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10709 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10710 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10711 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10712 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10713 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10714 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10715 dse.c, except.c, gengtype.c, gimple-expr.c,
10716 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10717 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10718 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10719 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10720 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10721 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10722 pointer-set.h.
10723 * pointer-set.c: Remove file.
10724 * pointer-set.h: Remove file.
10725
10726 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10727
10728 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10729 * config/arm/types.md (f_sels, f_seld): Delete.
10730
10731 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10732
10733 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10734 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10735 (aarch64_movdi_<mode>high): Likewise.
10736 (aarch64_mov<mode>high_di): Likewise.
10737 (aarch64_movdi_<mode>low): Likewise.
10738 (aarch64_mov<mode>low_di): Likewise.
10739 (aarch64_movtilow_tilow): Likewise.
10740 Add comment explaining usage of fp,simd attributes and of
10741 TARGET_FLOAT and TARGET_SIMD.
10742
10743 2014-08-07 Ian Bolton <ian.bolton@arm.com>
10744 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10745
10746 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
10747 Use MOVN when one of the half-words is 0xffff.
10748
10749 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10750
10751 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
10752
10753 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10754
10755 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
10756 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
10757 (rfs_str): String corresponding to RFS_* constants.
10758 (rank_for_schedule_stats_t): New typedef.
10759 (rank_for_schedule_stats): New static variable.
10760 (rfs_result): New static function.
10761 (rank_for_schedule): Track statistics for deciding heuristics.
10762 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
10763 static functions.
10764 (ready_sort): Use them for debug printouts.
10765 (schedule_block): Init statistics state. Print statistics on
10766 rank_for_schedule decisions.
10767
10768 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10769
10770 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
10771
10772 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
10773
10774 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
10775 constraint.
10776
10777 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10778
10779 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
10780 function to not conflict.
10781 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
10782 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
10783 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
10784 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
10785 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
10786 of pointer_map.
10787
10788 2014-08-07 Marek Polacek <polacek@redhat.com>
10789
10790 * fold-const.c (fold_binary_loc): Add folding of
10791 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
10792
10793 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
10794
10795 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
10796 instead of type size.
10797 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10798
10799 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10800
10801 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
10802 (*thumb1_movqi_insn): Likewise.
10803 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
10804
10805 2014-08-07 Tom de Vries <tom@codesourcery.com>
10806
10807 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10808 (glibc_2_11_or_earlier): Remove effective-target keywords.
10809
10810 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10811
10812 * config/arm/arm.c (bdesc_2arg): Fix typo.
10813 (arm_atomic_assign_expand_fenv): Remove The default implementation.
10814
10815 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
10816
10817 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
10818
10819 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
10820
10821 PR debug/61923
10822 * haifa-sched.c (advance_one_cycle): Fix dump.
10823 (schedule_block): Don't advance cycle if we are already at the
10824 beginning of the cycle.
10825
10826 2014-08-06 Martin Jambor <mjambor@suse.cz>
10827
10828 PR ipa/61393
10829 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
10830
10831 2014-08-06 Richard Biener <rguenther@suse.de>
10832
10833 PR lto/62034
10834 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
10835 SCCs here.
10836 (lto_input_tree): Pop SCCs here.
10837
10838 2014-08-06 Richard Biener <rguenther@suse.de>
10839
10840 PR tree-optimization/61320
10841 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
10842 handle misaligned loads.
10843
10844 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
10845
10846 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
10847 (aarch64_expand_vec_perm_const): Check for dup before zip.
10848
10849 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10850
10851 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
10852 CONST_INT_P instead of GET_CODE and compare.
10853 (aarch64_select_cc_mode): Likewise.
10854 (aarch64_print_operand): Likewise.
10855 (aarch64_rtx_costs): Likewise.
10856 (aarch64_simd_valid_immediate): Likewise.
10857 (aarch64_simd_check_vect_par_cnst_half): Likewise.
10858 (aarch64_simd_emit_pair_result_insn): Likewise.
10859
10860 2014-08-05 David Malcolm <dmalcolm@redhat.com>
10861
10862 * gdbhooks.py (find_gcc_source_dir): New helper function.
10863 (class PassNames): New class, locating and parsing passes.def.
10864 (class BreakOnPass): New command "break-on-pass".
10865
10866 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
10867
10868 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
10869 getting olde.
10870
10871 2014-08-05 Richard Biener <rguenther@suse.de>
10872
10873 PR rtl-optimization/61672
10874 * emit-rtl.h (mem_attrs_eq_p): Declare.
10875 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
10876 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
10877 * cfgcleanup.c (merge_memattrs): Likewise.
10878 Include emit-rtl.h.
10879
10880 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10881
10882 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
10883 rather than singleton vectors.
10884 (vqdmlsls_lane_s32): Likewise.
10885
10886 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10887
10888 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
10889 Use VSDQ_HSI mode iterator.
10890 (aarch64_sqrdmulh_laneq<mode>): Likewise.
10891 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
10892 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
10893 Use BUILTIN_VDQHS macro.
10894 (sqrdmulh_laneq): Likewise.
10895 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
10896 (vqdmlals_laneq_s32): Likewise.
10897 (vqdmlslh_laneq_s16): Likewise.
10898 (vqdmlsls_laneq_s32): Likewise.
10899 (vqdmulhh_laneq_s16): Likewise.
10900 (vqdmulhs_laneq_s32): Likewise.
10901 (vqrdmulhh_laneq_s16): Likewise.
10902 (vqrdmulhs_laneq_s32): Likewise.
10903
10904 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10905
10906 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
10907 (vmuld_laneq_f64): Likewise.
10908 (vmuls_laneq_f32): Likewise.
10909 (vmul_n_f64): Likewise.
10910 (vmuld_lane_f64): Reimplement in C.
10911 (vmuls_lane_f32): Likewise.
10912
10913 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10914
10915 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
10916 to reservation.
10917 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
10918
10919 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10920
10921 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
10922 (rbitsi2): Likewise.
10923 (*arm_rev): Set predicable and predicable_short_it attributes.
10924
10925 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10926
10927 * convert.c (convert_to_integer): Guard transformation to lrint by
10928 -fno-math-errno.
10929
10930 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
10931
10932 * config/aarch64/aarch64-builtins.c
10933 (aarch64_simd_builtin_type_mode): Delete.
10934 (v8qi_UP): Remap to V8QImode.
10935 (v4hi_UP): Remap to V4HImode.
10936 (v2si_UP): Remap to V2SImode.
10937 (v2sf_UP): Remap to V2SFmode.
10938 (v1df_UP): Remap to V1DFmode.
10939 (di_UP): Remap to DImode.
10940 (df_UP): Remap to DFmode.
10941 (v16qi_UP):V16QImode.
10942 (v8hi_UP): Remap to V8HImode.
10943 (v4si_UP): Remap to V4SImode.
10944 (v4sf_UP): Remap to V4SFmode.
10945 (v2di_UP): Remap to V2DImode.
10946 (v2df_UP): Remap to V2DFmode.
10947 (ti_UP): Remap to TImode.
10948 (ei_UP): Remap to EImode.
10949 (oi_UP): Remap to OImode.
10950 (ci_UP): Map to CImode.
10951 (xi_UP): Remap to XImode.
10952 (si_UP): Remap to SImode.
10953 (sf_UP): Remap to SFmode.
10954 (hi_UP): Remap to HImode.
10955 (qi_UP): Remap to QImode.
10956 (aarch64_simd_builtin_datum): Make mode a machine_mode.
10957 (VAR1): Build builtin name.
10958 (aarch64_init_simd_builtins): Remove dead code.
10959
10960 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10961
10962 * graphite-isl-ast-to-gimple.c:
10963 (set_options): New function.
10964 (scop_to_isl_ast): Add calling of set_options.
10965
10966 2014-08-05 Jakub Jelinek <jakub@redhat.com>
10967
10968 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
10969 (analyze_iv_to_split_insn): Don't initialize them.
10970 (get_ivts_expr): Removed.
10971 (allocate_basic_variable, insert_base_initialization): Use
10972 SET_SRC instead of *get_ivts_expr.
10973 (split_iv): Use &SET_SRC instead of get_ivts_expr.
10974
10975 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10976
10977 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
10978 (translate_isl_ast_for_loop): Add checking of the
10979 flag_loop_parallelize_all.
10980 (ast_build_before_for): New function.
10981 (scop_to_isl_ast): Add checking of the
10982 flag_loop_parallelize_all.
10983 * graphite-dependences.c: Move the defenition of the
10984 scop_get_dependences from graphite-optimize-isl.c to this file.
10985 (apply_schedule_on_deps): Add checking of the ux's emptiness.
10986 (carries_deps): Add checking of the x's value.
10987 * graphite-optimize-isl.c: Move the defenition of the
10988 scop_get_dependences to graphite-dependences.c.
10989 * graphite-poly.h: Add declarations of scop_get_dependences
10990 and carries_deps.
10991
10992 2014-08-04 Rohit <rohitarulraj@freescale.com>
10993
10994 PR target/60102
10995 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
10996 names.
10997 (alt_reg_names): Likewise.
10998 (rs6000_dwarf_register_span): For SPE high registers, replace
10999 dwarf register numbers with GCC hard register numbers.
11000 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11001 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11002 register number for the corresponding GCC hard register number.
11003 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11004 newly added GCC hard register numbers for SPE high registers.
11005 (DWARF_FRAME_REGISTERS): Likewise.
11006 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11007 (DWARF_FRAME_REGNUM): Likewise.
11008 (FIXED_REGISTERS): Likewise.
11009 (CALL_USED_REGISTERS): Likewise.
11010 (CALL_REALLY_USED_REGISTERS): Likewise.
11011 (REG_ALLOC_ORDER): Likewise.
11012 (enum reg_class): Likewise.
11013 (REG_CLASS_NAMES): Likewise.
11014 (REG_CLASS_CONTENTS): Likewise.
11015 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11016
11017 2014-08-04 Richard Biener <rguenther@suse.de>
11018
11019 * gimple-fold.h (gimple_fold_builtin): Remove.
11020 * gimple-fold.c (gimple_fold_builtin): Make static.
11021 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11022 fold_stmt, not gimple_fold_builtin.
11023
11024 2014-08-04 Martin Liska <mliska@suse.cz>
11025
11026 * cgraph.h (csi_end_p): Removed.
11027 (csi_next): Likewise.
11028 (csi_node): Likewise.
11029 (csi_start): Likewise.
11030 (cgraph_node_in_set_p): Likewise.
11031 (cgraph_node_set_size): Likewise.
11032 (vsi_end_p): Likewise.
11033 (vsi_next): Likewise.
11034 (vsi_node): Likewise.
11035 (vsi_start): Likewise.
11036 (varpool_node_set_size): Likewise.
11037 (cgraph_node_set_nonempty_p): Likewise.
11038 (varpool_node_set_nonempty_p): Likewise.
11039 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11040 cgraph_node_set.
11041 * ipa-inline-transform.c: Likewise.
11042 * ipa-utils.c (cgraph_node_set_new): Removed.
11043 (cgraph_node_set_add): Likewise.
11044 (cgraph_node_set_remove): Likewise.
11045 (cgraph_node_set_find): Likewise.
11046 (dump_cgraph_node_set): Likewise.
11047 (debug_cgraph_node_set): Likewise.
11048 (free_cgraph_node_set): Likewise.
11049 (varpool_node_set_new): Likewise.
11050 (varpool_node_set_add): Likewise.
11051 (varpool_node_set_remove): Likewise.
11052 (varpool_node_set_find): Likewise.
11053 (dump_varpool_node_set): Likewise.
11054 (free_varpool_node_set): Likewise.
11055 (debug_varpool_node_set): Likewise.
11056 * tree-emutls.c (struct tls_var_data):
11057 (emutls_index): Removed.
11058 (emutls_decl): Likewise.
11059 (gen_emutls_addr): Function implementation uses newly added
11060 hash_map<varpool_node *, tls_var_data>.
11061 (clear_access_vars): Likewise.
11062 (create_emultls_var): Likewise.
11063 (ipa_lower_emutls): Likewise.
11064 (reset_access): New function.
11065
11066 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11067
11068 * config/i386/i386.c (ix86_option_override_internal): Add
11069 PTA_RDRND and PTA_MOVBE for bdver4.
11070
11071 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11072 James Greenhalgh <james.greenhalgh@arm.com>
11073
11074 * doc/md.texi (clrsb): Document.
11075 (clz): Change reference to x into operand 1.
11076 (ctz): Likewise.
11077 (popcount): Likewise.
11078
11079 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11080
11081 PR target/61713
11082 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11083 move to subtarget in serial version if result is ignored.
11084
11085 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11086 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11087
11088 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11089 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11090 (sched_analyze_insn): Update use of try_group_insn to
11091 sched_macro_fuse_insns.
11092 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11093 arguments that are not conditional jumps.
11094
11095 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11096
11097 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11098 family information. Handle BTVER2 cpu with cpuid family value.
11099
11100 2014-08-04 Tom de Vries <tom@codesourcery.com>
11101
11102 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11103 (glibc_2_11_or_earlier): Document effective-target keywords.
11104
11105 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11106
11107 * ipa-devirt.c (odr_type_warn_count): Add type.
11108 (possible_polymorphic_call_targets): Set it.
11109 (ipa_devirt): Use it.
11110
11111 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11112
11113 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11114 Document.
11115 * ipa-devirt.c: Include hash-map.h
11116 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11117 (clear_speculation): Break out of ...
11118 (get_class_context): ... here; speed up handling obviously useless
11119 speculations.
11120 (odr_type_warn_count, decl_warn_count): New structures.
11121 (final_warning_record): New structure.
11122 (final_warning_records): New static variable.
11123 (possible_polymorphic_call_targets): Cleanup handling of
11124 speculative info; do not build speculation when user do not care;
11125 record info about warnings when asked for.
11126 (add_decl_warning): New function.
11127 (type_warning_cmp): New function.
11128 (decl_warning_cmp): New function.
11129 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11130 (gate): Enable pass when warnings are requested.
11131 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11132 options.
11133
11134 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11135
11136 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11137 Fix cast.
11138 (hash_map::remove): New method.
11139 (hash_map::traverse): New method.
11140 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11141 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11142 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11143 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11144 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11145 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11146 pointer_map.
11147
11148 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11149
11150 * hash-set.h: new File.
11151 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11152 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11153 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11154 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11155 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11156 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11157 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11158 varpool.c: Use hash_set instead of pointer_set.
11159
11160 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11161
11162 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11163
11164 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11165
11166 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11167 for frame access when strict_p is false.
11168
11169 2014-08-01 Renlin Li <renlin.li@arm.com>
11170 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11171
11172 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11173 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11174 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11175 Declaration.
11176 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11177 predicate.
11178 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11179 aarch64_mem_pair_offset.
11180
11181 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11182
11183 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11184 offset.
11185 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11186 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11187
11188 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11189
11190 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11191
11192 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11193
11194 PR regression/61510
11195 * cgraphunit.c (analyze_functions): Use get_create rather than get
11196 for decls which are clones of abstract functions.
11197
11198 2014-08-01 Martin Liska <mliska@suse.cz>
11199
11200 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11201 * ipa-prop.h (count_formal_params): Global function created from static.
11202 * ipa-prop.c (count_formal_params): Likewise.
11203 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11204 profiles for semantically equivalent functions.
11205 * passes.c (do_per_function): If we load body of a function
11206 during WPA, this condition should behave same.
11207 * varpool.c (ctor_for_folding): More tolerant assert for variable
11208 aliases created during WPA.
11209
11210 2014-08-01 Martin Liska <mliska@suse.cz>
11211
11212 * doc/invoke.texi (Options That Control Optimization): Documentation
11213 for -foptimize-strlen introduced. Optimization levels default options
11214 fixed.
11215
11216 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11217
11218 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11219 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11220 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11221 type to bool.
11222 * stor-layout.h (min_align_of_type): New prototype.
11223 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11224 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11225 check.
11226 * ubsan.c: Include builtins.h.
11227 (ubsan_expand_bounds_ifn): Change return type to bool,
11228 always return true.
11229 (ubsan_expand_null_ifn): Change return type to bool, change
11230 argument to gimple_stmt_iterator *. Handle both null and alignment
11231 sanitization, take type from ckind argument's type rather than
11232 first argument.
11233 (instrument_member_call): Removed.
11234 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11235 Handle both null and alignment sanitization, don't say whole
11236 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11237 call instead of 2 argument.
11238 (instrument_null): Adjust instrument_mem_ref caller. Don't
11239 instrument calls here.
11240 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11241 like SANITIZE_NULL.
11242 * stor-layout.c (min_align_of_type): New function.
11243 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11244 Or it into SANITIZE_UNDEFINED.
11245 * doc/invoke.texi (-fsanitize=alignment): Document.
11246
11247 2014-07-31 Andi Kleen <ak@linux.intel.com>
11248
11249 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11250
11251 2014-07-31 Andi Kleen <ak@linux.intel.com>
11252
11253 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11254 inchash.
11255 (vn_reference_compute_hash): Dito.
11256 (vn_nary_op_compute_hash): Dito.
11257 (vn_phi_compute_hash): Dito.
11258 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11259
11260 2014-07-31 Andi Kleen <ak@linux.intel.com>
11261
11262 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11263 Rename to inchash:add_expr_commutative. Convert to inchash.
11264 (iterative_hash_hashable_expr): Rename to
11265 inchash:add_hashable_expr. Convert to inchash.
11266 (avail_expr_hash): Dito.
11267
11268 2014-07-31 Andi Kleen <ak@linux.intel.com>
11269
11270 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11271 Convert to inchash.
11272
11273 2014-07-31 Andi Kleen <ak@linux.intel.com>
11274
11275 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11276
11277 2014-07-31 Andi Kleen <ak@linux.intel.com>
11278
11279 * Makefile.in (OBJS): Add rtlhash.o
11280 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11281 (loc_checksum): Dito.
11282 (loc_checksum_ordered): Dito.
11283 (hash_loc_operands): Dito.
11284 (hash_locs): Dito.
11285 (hash_loc_list): Dito.
11286 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11287 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11288 * rtlhash.c: New file.
11289 * rtlhash.h: New file.
11290
11291 2014-07-31 Andi Kleen <ak@linux.intel.com>
11292
11293 * inchash.h (inchash): Change inchash class to namespace.
11294 (class hash): ... Rename from inchash.
11295 (add_object): Move from macro to class template.
11296 * lto-streamer-out.c (hash_tree): Change inchash
11297 to inchash::hash.
11298 * tree.c (build_type_attribute_qual_variant): Dito.
11299 (type_hash_list): Dito.
11300 (attribute_hash_list): Dito.
11301 (iterative_hstate_expr): Rename to inchash::add_expr
11302 (build_range_type_1): Change inchash to inchash::hash
11303 and use hash::add_expr.
11304 (build_array_type_1): Dito.
11305 (build_function_type): Dito
11306 (build_method_type_directly): Dito.
11307 (build_offset_type): Dito.
11308 (build_complex_type): Dito.
11309 (make_vector_type): Dito.
11310 * tree.h (iterative_hash_expr): Dito.
11311
11312 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11313
11314 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11315
11316 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11317
11318 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11319 correct alphabetical position.
11320 (vpaddd_f64): Rewrite using builtins.
11321 (vpaddd_s64): Move to correct alphabetical position.
11322 (vpaddd_u64): New.
11323
11324 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11325
11326 PR target/61844
11327 * config/sh/sh.c (sh_legitimate_address_p,
11328 sh_legitimize_reload_address): Handle reg+reg address modes when
11329 ALLOW_INDEXED_ADDRESS is false.
11330 * config/sh/predicates.md (general_movsrc_operand,
11331 general_movdst_operand): Likewise.
11332
11333 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11334
11335 * config/aarch64/aarch64-builtins.c
11336 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11337 BYTES_BIG_ENDIAN.
11338
11339 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11340
11341 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11342 the generated mask based on BYTES_BIG_ENDIAN.
11343 (aarch64_simd_check_vect_par_cnst_half): New.
11344 * config/aarch64/aarch64-protos.h
11345 (aarch64_simd_check_vect_par_cnst_half): New.
11346 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11347 the check out to aarch64_simd_check_vect_par_cnst_half.
11348 (vect_par_cnst_lo_half): Likewise.
11349 * config/aarch64/aarch64-simd.md
11350 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11351 (move_hi_quad_<mode>): Always generate a low mask.
11352
11353 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11354
11355 * doc/invoke.texi (AVR Options): Add documentation about
11356 __AVR_DEVICE_NAME__ built-in macro.
11357
11358 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
11359
11360 PR target/61948
11361 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11362 constraints are satisfied.
11363 (<shift>di3_neon): Likewise.
11364
11365 2014-07-31 Richard Biener <rguenther@suse.de>
11366
11367 PR tree-optimization/61964
11368 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11369 by structural equality.
11370
11371 2014-07-31 Yury Gribov <y.gribov@samsung.com>
11372
11373 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11374 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11375 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11376 New enums.
11377 * gcc.c (sanitize_spec_function): Support new option.
11378 (SANITIZER_SPEC): Remove now redundant check.
11379 * opts.c (common_handle_option): Support new option.
11380 (finish_options): Check for incompatibilities.
11381 * toplev.c (process_options): Split userspace-specific checks.
11382
11383 2014-07-31 Richard Biener <rguenther@suse.de>
11384
11385 * lto-streamer.h (struct output_block): Remove global.
11386 (struct data_in): Remove labels, num_named_labels and
11387 num_unnamed_labels.
11388 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11389 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11390
11391 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11392
11393 PR c++/60517
11394 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11395 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11396 (isolate_path): New argument to avoid inserting a trap.
11397 (find_implicit_erroneous_behaviour): Handle returning the address
11398 of a local variable.
11399 (find_explicit_erroneous_behaviour): Likewise.
11400
11401 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11402
11403 PR lto/61868
11404 * toplev.c (init_random_seed): Move piece of code never called to
11405 set_random_seed.
11406 (set_random_seed): see above.
11407
11408 2014-07-31 Tom de Vries <tom@codesourcery.com>
11409
11410 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11411
11412 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11413
11414 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11415 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11416
11417 2014-07-31 Richard Biener <rguenther@suse.de>
11418
11419 * data-streamer.h (streamer_write_data_stream): Declare here,
11420 renamed from ...
11421 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11422 * lto-cgraph.c (lto_output_node): Adjust.
11423 (lto_output_varpool_node): Likewise.
11424 * data-streamer-out.c (streamer_string_index): Likewise.
11425 (streamer_write_data_stream, lto_append_block): Move from ...
11426 * lto-section-out.c (lto_output_data_stream,
11427 lto_append_block): ... here.
11428
11429 2014-07-30 Mike Stump <mikestump@comcast.net>
11430
11431 * configure.ac: Also check for popen.
11432 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11433 * configure: Regenerate.
11434 * config.in: Regenerate.
11435
11436 2014-07-30 Martin Jambor <mjambor@suse.cz>
11437
11438 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11439 parameter to gimple.
11440
11441 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11442
11443 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11444 address as second parameter to __tpf_eh_return routine.
11445
11446 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11447
11448 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11449 Thumb2.
11450
11451 2014-07-30 Tom Tromey <tromey@redhat.com>
11452
11453 PR c/59855
11454 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11455 * doc/extend.texi (Type Attributes): Document designated_init
11456 attribute.
11457
11458 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11459
11460 * graphite-isl-ast-to-gimple.c:
11461 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11462 (gcc_expression_from_isl_expression): Pass type to
11463 gcc_expression_from_isl_ast_expr_id.
11464
11465 2014-07-30 Richard Biener <rguenther@suse.de>
11466
11467 * lto-streamer.h (lto_write_data): New function.
11468 * langhooks.c (lhd_append_data): Do not free block.
11469 * lto-section-out.c (lto_write_data): New function writing
11470 raw data to the current section.
11471 (lto_write_stream): Adjust for langhook semantic change.
11472 (lto_destroy_simple_output_block): Write header directly.
11473 * lto-opts.c (lto_write_options): Write options directly.
11474 * lto-streamer-out.c (produce_asm): Write heaeder directly.
11475 (lto_output_toplevel_asms): Likewise.
11476 (copy_function_or_variable): Copy data directly.
11477 (write_global_references): Output index table directly.
11478 (lto_output_decl_state_refs): Likewise.
11479 (write_symbol): Write data directly.
11480 (produce_symtab): Adjust.
11481 (produce_asm_for_decls): Output header and refs directly.
11482
11483 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11484
11485 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11486 to speculative_targets
11487 (get_class_context): Fix handling of contextes without outer type;
11488 avoid matching non-polymorphic types in LTO.
11489 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11490 parameter to speculative_targetsp; handle speculation.
11491 (dump_possible_polymorphic_call_targets): Update dumping.
11492
11493 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11494
11495 * common.opt (Wodr): Enable by default.
11496
11497 2014-07-29 Olivier Hainque <hainque@adacore.com>
11498
11499 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11500
11501 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
11502
11503 PR bootstrap/61914
11504 * gengtype.c (strtoken): New function.
11505 (create_user_defined_type): Replace strtok with strtoken.
11506
11507 2014-07-29 Nathan Sidwell <nathan@acm.org>
11508
11509 * gcov-io.c (gcov_var): Make hidden.
11510 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11511 (gcov_do_dump): Declare.
11512 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11513
11514 2014-07-29 Martin Jambor <mjambor@suse.cz>
11515
11516 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11517 parameter to gimple.
11518 (sra_modify_assign): Likewise.
11519
11520 2014-07-29 Richard Biener <rguenther@suse.de>
11521
11522 PR middle-end/52478
11523 * expr.c (expand_expr_real_2): Revert last change.
11524
11525 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11526
11527 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11528 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11529 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11530 call.
11531 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11532 (contains_type_p): Forward declare.
11533 (polymorphic_call_target_hasher::hash): Hash speculative info.
11534 (polymorphic_call_target_hasher::equal): Compare speculative info.
11535 (get_class_context): Handle speuclation.
11536 (contains_type_p): Update.
11537 (get_polymorphic_call_info_for_decl): Update.
11538 (walk_ssa_copies): Break out from ...
11539 (get_polymorphic_call_info): ... here; set speculative context
11540 before giving up.
11541 * ipa-prop.c (ipa_write_indirect_edge_info,
11542 ipa_read_indirect_edge_info): Stream speculative context.
11543 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11544 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11545 SPECULATIVE_MAYBE_DERIVED_TYPE).
11546 (possible_polymorphic_call_targets overriders): Update.
11547 (dump_possible_polymorphic_call_targets overriders): Update.
11548 (dump_possible_polymorphic_call_target_p overriders): Update.
11549
11550 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11551
11552 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11553 ipa-devirt path; fix thinko there.
11554
11555 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11556
11557 * config/i386/i386.c (ix86_return_in_memory): Replace one
11558 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11559
11560 2014-07-28 Marek Polacek <polacek@redhat.com>
11561
11562 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
11563
11564 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
11565
11566 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11567 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11568 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11569 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11570 (USE_LD_AS_NEEDED): Likewise.
11571 (ASM_APP_ON): Likewise.
11572 (ASM_APP_OFF): Likewise.
11573 (TARGET_POSIX_IO): Likewise.
11574 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11575 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11576 (USE_LD_AS_NEEDED): Likewise.
11577 (ASM_APP_ON): Likewise.
11578 (ASM_APP_OFF): Likewise.
11579 (TARGET_POSIX_IO): Likewise.
11580
11581 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11582
11583 PR middle-end/61734
11584 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11585 operators other than the equality operators.
11586
11587 2014-07-28 Richard Biener <rguenther@suse.de>
11588
11589 PR middle-end/52478
11590 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11591 sure to register SImode ones, not only >= word_mode ones.
11592 * expr.c (expand_expr_real_2): When expanding -ftrapv
11593 binops do not use OPTAB_LIB_WIDEN.
11594
11595 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11596
11597 PR middle-end/61919
11598 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11599 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11600 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11601 inserting them in the insn stream.
11602
11603 2014-07-28 Marek Polacek <polacek@redhat.com>
11604
11605 PR middle-end/61913
11606 * common.opt (Wodr): Add Var.
11607
11608 2014-07-28 Richard Biener <rguenther@suse.de>
11609
11610 PR tree-optimization/61921
11611 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11612 if there is a varpool node before dereferencing it.
11613
11614 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11615
11616 * graphite-sese-to-poly.c:
11617 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11618 id of the pbb), which contains pointer to the pbb1.
11619
11620 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11621
11622 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11623
11624 * graphite-isl-ast-to-gimple.c:
11625 (graphite_create_new_guard): New function.
11626 (translate_isl_ast_node_if): New function.
11627 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11628
11629 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11630
11631 2014-07-27 Anthony Green <green@moxielogic.com>
11632
11633 * config.gcc: Add moxie-*-moxiebox* configuration.
11634 * config/moxie/moxiebox.h: New file.
11635
11636 2014-07-26 Andrew Pinski <apinski@cavium.com>
11637
11638 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11639 from the read only register.
11640
11641 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11642
11643 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11644 as the allocation class if it isn't likely to be spilled.
11645
11646 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11647
11648 * rtl.h (tls_referenced_p): Declare.
11649 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11650 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11651 (mips_cannot_force_const_mem): Use tls_referenced_p.
11652 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11653 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11654 instead of pa_tls_referenced_p.
11655 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11656 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11657 (pa_legitimate_constant_p): Likewise.
11658 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11659 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11660 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11661 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11662 rs6000_tls_referenced_p.
11663 (rs6000_tls_symbol_ref_1): Delete.
11664
11665 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11666
11667 PR target/44551
11668 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11669 Optimize inverse of a VEC_CONCAT.
11670
11671 2014-07-25 Xinliang David Li <davidxl@google.com>
11672
11673 * params.def: New parameter.
11674 * coverage.c (get_coverage_counts): Check new flag.
11675 (coverage_compute_profile_id): Check new flag.
11676 (coverage_begin_function): Check new flag.
11677 (coverage_end_function): Check new flag.
11678 * value-prof.c (coverage_node_map_initialized_p): New function.
11679 (init_node_map): Populate map with all functions.
11680 * doc/invoke.texi: Document new parameter.
11681
11682 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11683 Richard Biener <rguenther@suse.de>
11684
11685 * lto-streamer-out.c (struct sccs): Turn to ...
11686 (class DFS): ... this one; refactor the DFS walk so it can
11687 be re-done on per-SCC basis.
11688 (DFS::DFS): New constructor.
11689 (DFS::~DFS): New destructor.
11690 (hash_tree): Add new MAP argument holding in-SCC hash values;
11691 remove POINTER_TYPE hashing hack.
11692 (scc_entry_compare): Rename to ...
11693 (DFS::scc_entry_compare): ... this one.
11694 (hash_scc): Rename to ...
11695 (DFS::hash_scc): ... this one; pass output_block instead
11696 of streamer_cache; work harder to get unique and stable SCC
11697 hashes.
11698 (DFS_write_tree): Rename to ...
11699 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11700 (lto_output_tree): Update.
11701
11702 2014-07-25 Andi Kleen <ak@linux.intel.com>
11703
11704 * lto-streamer-out.c (hash_tree): Convert to inchash.
11705
11706 2014-07-25 Andi Kleen <ak@linux.intel.com>
11707
11708 * tree.c (build_type_attribute_qual_variant): Use inchash.
11709 (type_hash_list): Dito.
11710 (attribute_hash_list): Dito
11711 (iterative_hstate_expr): Dito.
11712 (iterative_hash_expr): Dito.
11713 (build_range_type_1): Dito.
11714 (build_array_type_1): Dito.
11715 (build_function_type): Dito.
11716 (build_method_type_directly): Dito.
11717 (build_offset_type): Dito.
11718 (build_complex_type): Dito.
11719 (make_vector_type): Dito.
11720 * tree.h (iterative_hash_expr): Add compat wrapper.
11721 (iterative_hstate_expr): Add.
11722
11723 2014-07-25 Andi Kleen <ak@linux.intel.com>
11724
11725 * Makefile.in (OBJS): Add inchash.o.
11726 (PLUGIN_HEADERS): Add inchash.h.
11727 * ipa-devirt.c: Include inchash.h.
11728 * lto-streamer-out.c: Dito.
11729 * tree-ssa-dom.c: Dito.
11730 * tree-ssa-pre.c: Dito.
11731 * tree-ssa-sccvn.c: Dito.
11732 * tree-ssa-tail-merge.c: Dito.
11733 * asan.c: Dito.
11734 * tree.c (iterative_hash_hashval_t): Move to ...
11735 (iterative_hash_host_wide_int): Move to ...
11736 * inchash.c: Here. New file.
11737 * tree.h (iterative_hash_hashval_t): Move to ...
11738 (iterative_hash_host_wide_int): Move to ...
11739 * inchash.h: Here. New file.
11740
11741 2014-07-25 Richard Biener <rguenther@suse.de>
11742
11743 PR middle-end/61762
11744 PR middle-end/61894
11745 * fold-const.c (native_encode_int): Add and handle offset
11746 parameter to do partial encodings of expr.
11747 (native_encode_fixed): Likewise.
11748 (native_encode_real): Likewise.
11749 (native_encode_complex): Likewise.
11750 (native_encode_vector): Likewise.
11751 (native_encode_string): Likewise.
11752 (native_encode_expr): Likewise.
11753 * fold-const.c (native_encode_expr): Add offset parameter
11754 defaulting to -1.
11755 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
11756 (fold_ctor_reference): Handle all reads from tcc_constant
11757 ctors.
11758
11759 2014-07-25 Richard Biener <rguenther@suse.de>
11760
11761 * tree-inline.c (estimate_move_cost): Mark speed_p argument
11762 as possibly unused.
11763
11764 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11765
11766 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
11767
11768 2014-07-24 Kyle McMartin <kyle@redhat.com>
11769
11770 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
11771
11772 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11773
11774 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
11775 Add prototype.
11776 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
11777 function.
11778 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
11779 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11780 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11781
11782 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11783
11784 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
11785 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
11786 aggregate types. Instead, *all* aggregate types, except for single-
11787 element or homogeneous float/vector aggregates, are quadword-aligned
11788 if required by their type alignment. Issue -Wpsabi note when a type
11789 is now treated differently than before.
11790
11791 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11792
11793 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
11794 does not fit fully into floating-point registers, and there is still
11795 space in the register parameter area, use GPRs to pass those parts
11796 of the argument. Issue -Wpsabi note if any parameter is now treated
11797 differently than before.
11798 (rs6000_arg_partial_bytes): Update.
11799
11800 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
11801
11802 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
11803
11804 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11805
11806 * rtl.h (target_rtl): Remove lang_dependent_initialized.
11807 * toplev.c (initialize_rtl): Don't use it. Move previously
11808 "language-dependent" calls to...
11809 (backend_init): ...here.
11810 (lang_dependent_init_target): Don't set lang_dependent_initialized.
11811 Assert that RTL initialization hasn't happend yet.
11812
11813 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11814
11815 PR rtl-optimization/61629
11816 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
11817 they have already been initialized.
11818
11819 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11820
11821 PR middle-end/61268
11822 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
11823 DECL_INCOMING_RTL and entry_parm.
11824 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
11825 * calls.c (load_register_parameters): Likewise argument values.
11826 (emit_library_call_value_1, store_one_arg): Likewise argument
11827 save areas.
11828 * config/i386/i386.c (assign_386_stack_local): Likewise the local
11829 stack slot.
11830 * explow.c (validize_mem): Modify the argument in-place.
11831
11832 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11833
11834 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
11835 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
11836
11837 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11838
11839 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
11840 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
11841
11842 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11843
11844 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
11845 (aarch64_save_callee_saves): New parameter "skip_wb".
11846 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
11847
11848 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11849
11850 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
11851 "wb_candidate2".
11852 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
11853
11854 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11855
11856 * graphite-isl-ast-to-gimple.c:
11857 (graphite_create_new_loop): Add calling of isl_id_free to properly
11858 decrement reference counts.
11859
11860 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
11861
11862 2014-07-24 Martin Liska <mliska@suse.cz>
11863 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
11864 function used.
11865 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
11866 (rs6000_code_end): Likewise.
11867
11868 2014-07-24 Martin Liska <mliska@suse.cz>
11869
11870 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
11871 symtab_node funtion used.
11872 (rs6000_xcoff_declare_object_name): Likewise.
11873
11874 2014-07-24 Martin Liska <mliska@suse.cz>
11875
11876 * cgraphunit.c (compile): Correct function used.
11877
11878 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11879
11880 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
11881 as non-indexable.
11882
11883 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11884
11885 PR lto/61802
11886 * varasm.c (bss_initializer_p): Handle offlined ctors.
11887 (align_variable, get_variable_align): Likewise.
11888 (make_decl_one_only): Likewise.
11889 (default_binds_local_p_1): Likewise.
11890 (decl_binds_to_current_def_p): Likewise.
11891 (get_variable_section): Get constructor if it is offlined.
11892 (assemble_variable_contents): Sanity check that the caller
11893 streamed in the ctor in LTO.
11894
11895 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11896
11897 * graphite-isl-ast-to-gimple.c:
11898 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
11899 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
11900 isl_ast_op_pdiv_r to the different case.
11901
11902 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
11903
11904 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11905
11906 PR middle-end/61876
11907 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
11908 when flag_errno_math is on.
11909
11910 2014-07-24 Martin Liska <mliska@suse.cz>
11911
11912 * cgraph.h (varpool_node):
11913 (availability get_availability (void)):
11914 created from cgraph_variable_initializer_availability
11915 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
11916 created from: cgraph_variable_initializer_availability
11917 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
11918 (void finalize_named_section_flags (void)):
11919 created from varpool_finalize_named_section_flags
11920 (bool assemble_decl (void)): created from varpool_assemble_decl
11921 (void analyze (void)): created from varpool_analyze_node
11922 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
11923 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
11924 (void remove_initializer (void)): created from varpool_remove_initializer
11925 (tree get_constructor (void)): created from varpool_get_constructor
11926 (bool externally_visible_p (void)): created from varpool_externally_visible_p
11927 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
11928 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
11929 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
11930 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
11931 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
11932 (static bool output_variables (void)): created from varpool_output_variables
11933 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
11934 created from varpool_extra_name_alias
11935 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
11936 (static void dump_varpool (FILE *f)): created from dump_varpool
11937 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
11938 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
11939 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
11940 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
11941 (void assemble_aliases (void)): created from assemble_aliases
11942
11943 2014-07-24 Martin Liska <mliska@suse.cz>
11944
11945 * cgraph.h (symtab_node):
11946 (void register_symbol (void)): created from symtab_register_node
11947 (void remove (void)): created from symtab_remove_node
11948 (void dump (FILE *f)): created from dump_symtab_node
11949 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
11950 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
11951 (struct ipa_ref *add_reference (symtab_node *referred_node,
11952 enum ipa_ref_use use_type)): created from add_reference
11953 (struct ipa_ref *add_reference (symtab_node *referred_node,
11954 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
11955 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
11956 gimple stmt)): created from maybe_add_reference
11957 (bool semantically_equivalent_p (symtab_node *target)): created from
11958 symtab_semantically_equivalent_p
11959 (void remove_from_same_comdat_group (void)): created from
11960 remove_from_same_comdat_group
11961 (void add_to_same_comdat_group (symtab_node *old_node)): created from
11962 symtab_add_to_same_comdat_group
11963 (void dissolve_same_comdat_group_list (void)): created from
11964 symtab_dissolve_same_comdat_group_list
11965 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
11966 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
11967 created from symtab_alias_ultimate_target
11968 (inline symtab_node *next_defined_symbol (void)): created from
11969 symtab_next_defined_symbol
11970 (bool resolve_alias (symtab_node *target)): created from
11971 symtab_resolve_alias
11972 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
11973 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
11974 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
11975 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
11976 (void set_section (const char *section)): created from set_section_1
11977 (enum availability get_availability (void)): created from symtab_node_availability
11978 (void make_decl_local (void)): created from symtab_make_decl_local
11979 (bool real_symbol_p (void)): created from symtab_read_node
11980 (can_be_discarded_p (void)): created from symtab_can_be_discarded
11981 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
11982 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
11983 symtab_in_same_comdat_p;
11984 (bool address_taken_from_non_vtable_p (void)): created from
11985 address_taken_from_non_vtable_p
11986 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
11987 (static void dump_table (FILE *)): created from dump_symtab
11988 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
11989 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
11990 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
11991 symtab_used_from_object_file_p
11992 (void dump_base (FILE *)): created from dump_symtab_base
11993 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
11994 (void unregister (void)): created from symtab_unregister_node
11995 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
11996 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
11997 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
11998 symtab_nonoverwritable_alias_1
11999 * cgraph.h (cgraph_node):
12000 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12001 created from cgraph_remove_node_and_inline_clones
12002 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12003 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12004 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12005 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12006 created from cgraph_function_node
12007 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12008 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12009 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12010 created from cgraph_create_clone
12011 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12012 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12013 created from cgraph_create_virtual_clone
12014 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12015 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12016 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12017 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12018 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12019 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12020 created from cgraph_function_version_info
12021 (struct cgraph_function_version_info *insert_new_function_version (void)):
12022 created from insert_new_cgraph_node_version
12023 (struct cgraph_function_version_info *function_version (void)): created from
12024 get_cgraph_node_version
12025 (void analyze (void)): created from analyze_function
12026 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12027 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12028 tree real_alias) cgraph_add_thunk
12029 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12030 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12031 created from cgraph_function_or_thunk_node
12032 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12033 created from expand_thunk
12034 (void reset (void)): created from cgraph_reset_node
12035 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12036 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12037 (void remove (void)): created from cgraph_remove_node
12038 (void dump (FILE *f)): created from dump_cgraph_node
12039 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12040 (bool get_body (void)): created from cgraph_get_body
12041 (void release_body (void)): created from cgraph_release_function_body
12042 (void unnest (void)): created from cgraph_unnest_node
12043 (void make_local (void)): created from cgraph_make_node_local
12044 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12045 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12046 gcov_type count, int freq)): created from cgraph_create_edge
12047 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12048 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12049 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12050 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12051 created from cgraph_create_edge_including_clones
12052 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12053 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12054 (void remove_callers (void)): created from cgraph_node_remove_callers
12055 (void remove_callees (void)): created from cgraph_node_remove_callees
12056 (enum availability get_availability (void)): created from cgraph_function_body_availability
12057 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12058 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12059 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12060 (void call_duplication_hooks (cgraph_node *node2)): created from
12061 cgraph_call_node_duplication_hooks
12062 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12063 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12064 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12065 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12066 (void call_function_insertion_hooks (void)):
12067 created from cgraph_call_function_insertion_hooks
12068 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12069 (bool local_p (void)): created from cgraph_local_node
12070 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12071 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12072 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12073 (inline bool only_called_directly_or_aliased_p (void)):
12074 created from cgraph_only_called_directly_or_aliased_p
12075 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12076 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12077 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12078 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12079 (bool can_remove_if_no_direct_calls_p (void)):
12080 created from cgraph_can_remove_if_no_direct_calls_p
12081 (inline bool has_gimple_body_p (void)):
12082 created from cgraph_function_with_gimple_body_p
12083 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12084 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12085 (static inline void debug_cgraph (void)): created from debug_cgraph
12086 (static void record_function_versions (tree decl1, tree decl2)):
12087 created from record_function_versions
12088 (static void delete_function_version (tree decl)):
12089 created from delete_function_version
12090 (static void add_new_function (tree fndecl, bool lowered)):
12091 created from cgraph_add_new_function
12092 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12093 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12094 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12095 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12096 (static cgraph_node *get_for_asmname (tree asmname)):
12097 created from cgraph_node_for_asm
12098 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12099 created from cgraph_same_body_alias
12100 (static bool used_from_object_file_p_worker (cgraph_node *node,
12101 void *): new function
12102 (static bool non_local_p (cgraph_node *node, void *)):
12103 created from cgraph_non_local_node_p_1
12104 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12105 created from verify_cgraph
12106 (static bool make_local (cgraph_node *node, void *)):
12107 created from cgraph_make_node_local
12108 (static cgraph_node *create_alias (tree alias, tree target)):
12109 created from cgraph_create_function_alias
12110 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12111 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12112 created from cgraph_create_edge_1
12113 * cgraph.h (varpool_node):
12114 (void remove (void)): created from varpool_remove_node
12115 (void dump (FILE *f)): created from dump_varpool_node
12116
12117 2014-07-24 Richard Biener <rguenther@suse.de>
12118
12119 PR ipa/61823
12120 * tree-ssa-structalias.c (create_variable_info_for_1):
12121 Use varpool_get_constructor.
12122 (create_variable_info_for): Likewise.
12123
12124 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12125
12126 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12127 subtract outgoing area size when restoring stack_pointer_rtx.
12128
12129 2014-07-24 Nick Clifton <nickc@redhat.com>
12130
12131 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12132 that operations are taking place in parallel.
12133 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12134
12135 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12136
12137 * omp-low.c (extract_omp_for_data): Add missing break statement.
12138
12139 2014-07-24 Richard Biener <rguenther@suse.de>
12140
12141 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12142 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12143 and adjust MOVE_RATIO query accordingly.
12144 (estimate_num_insns): Adjust callers.
12145 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12146 * ipa-cp.c (gather_context_independent_values,
12147 estimate_local_effects): Likewise.
12148 * ipa-split.c (consider_split): Likewise.
12149
12150 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12151
12152 * config/i386/driver-i386.c: Remove names of unused arguments and
12153 unnecessary unused attributes.
12154 * config/i386/host-mingw32.c: Likewise.
12155 * config/i386/i386.c: Likewise.
12156 * config/i386/winnt-stubs.c: Likewise.
12157 * config/i386/winnt.c: Likewise.
12158
12159 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12160
12161 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12162 (aarch64_gen_loadwb_pair): New helper function.
12163 (aarch64_expand_epilogue): Simplify code using new helper functions.
12164 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12165
12166 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12167
12168 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12169 (aarch64_gen_storewb_pair): New helper function.
12170 (aarch64_expand_prologue): Simplify code using new helper functions.
12171 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12172
12173 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12174
12175 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12176 Rename to aarch64_save_callee_saves, remove restore code.
12177 (aarch64_restore_callee_saves): New function.
12178
12179 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12180
12181 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12182 (aarch64_save_callee_saves): New function to handle reg save
12183 for both core and vectore regs.
12184
12185 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12186
12187 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12188 (aarch64_gen_store_pair): New helper function.
12189 (aarch64_save_or_restore_callee_save_registers)
12190 (aarch64_save_or_restore_fprs): Use new helper functions.
12191
12192 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12193
12194 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12195 (aarch64_save_or_restore_callee_save_registers)
12196 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12197
12198 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12199
12200 * config/aarch64/aarch64.c
12201 (aarch64_save_or_restore_callee_save_registers)
12202 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12203
12204 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12205
12206 * config/aarch64/aarch64.c
12207 (aarch64_save_or_restore_callee_save_registers)
12208 (aarch64_save_or_restore_fprs): Remove 'increment'.
12209
12210 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12211
12212 * config/aarch64/aarch64.c
12213 (aarch64_save_or_restore_callee_save_registers)
12214 (aarch64_save_or_restore_fprs): Use register offset in
12215 cfun->machine->frame.reg_offset.
12216
12217 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12218
12219 * config/aarch64/aarch64.c
12220 (aarch64_save_or_restore_callee_save_registers)
12221 (aarch64_save_or_restore_fprs): Remove base_rtx.
12222
12223 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12224
12225 * config/aarch64/aarch64.c
12226 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12227 to 'start_offset'. Remove local variable 'start_offset'.
12228
12229 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12230
12231 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12232 type to HOST_WIDE_INT.
12233
12234 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12235
12236 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12237 (aarch64_save_or_restore_fprs)
12238 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12239
12240 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12241
12242 * config/arm/t-rtems-eabi: Add
12243 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12244 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12245 mbig-endian/mthumb/march=armv7-r, and
12246 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12247 multilibs.
12248
12249 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12250 Chris Johns <chrisj@rtems.org>
12251 Joel Sherrill <joel.sherrill@oarcorp.com>
12252
12253 * config.gcc: Add nios2-*-rtems*.
12254 * config/nios2/rtems.h: New file.
12255 * gcc/config/nios2/t-rtems: New file.
12256
12257 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12258
12259 PR target/61396
12260 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12261 constant numbers, not general constants.
12262 (rs6000_expand_vector_init): Ditto.
12263
12264 2014-07-23 Nathan Sidwell <nathan@acm.org>
12265
12266 * gcov-tool.c (gcov_list): Declare here.
12267 (set_gcov_list): Remove.
12268 (gcov_output_files): Set gcov_list directly.
12269
12270 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12271
12272 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12273
12274 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12275
12276 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12277 callee-saved registers are available for padding purpose
12278 and r3 is not mandatory, then prefer use those callee-saved
12279 instead of r3.
12280
12281 2014-07-23 Richard Biener <rguenther@suse.de>
12282
12283 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12284 * combine.c: Include statistics.h and params.h.
12285 (combine_instructions): Guard three and four insn combines
12286 with max-combine-insns value. Record statistics for combines
12287 performed.
12288 * doc/invoke.texi (max-combine-insns): Document new param.
12289
12290 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12291
12292 * graphite-isl-ast-to-gimple.c:
12293 (translate_isl_ast_node_block): New function.
12294 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12295
12296 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12297 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12298
12299 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12300
12301 * graphite-isl-ast-to-gimple.c:
12302 (get_max_schedule_dimensions): New function.
12303 (extend_schedule): Likewise.
12304 (generate_isl_schedule): Add calling of extend_schedule and
12305 get_max_schedule_dimensions.
12306
12307 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12308
12309 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12310 (case UNSPEC): Handle UNSPEC_RBIT.
12311
12312 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12313
12314 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12315 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12316
12317 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12318
12319 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12320
12321 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12322
12323 * graphite-isl-ast-to-gimple.c:
12324 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12325 (ivs_params_clear):
12326 (build_iv_mapping): New function.
12327 (translate_isl_ast_node_user): Likewise.
12328 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12329
12330 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12331 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12332 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12333
12334 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12335
12336 PR target/55701
12337 * config/arm/arm.md (setmem): New pattern.
12338 * config/arm/arm-protos.h (struct tune_params): New fields.
12339 (arm_gen_setmem): New prototype.
12340 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12341 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12342 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12343 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12344 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12345 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12346 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12347 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12348 (arm_const_inline_cost): New function.
12349 (arm_block_set_max_insns): New function.
12350 (arm_block_set_non_vect_profit_p): New function.
12351 (arm_block_set_vect_profit_p): New function.
12352 (arm_block_set_unaligned_vect): New function.
12353 (arm_block_set_aligned_vect): New function.
12354 (arm_block_set_unaligned_non_vect): New function.
12355 (arm_block_set_aligned_non_vect): New function.
12356 (arm_block_set_vect, arm_gen_setmem): New functions.
12357
12358 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12359
12360 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12361
12362 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
12363
12364 PR target/61855
12365 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12366 out of #ifdef __OPTIMIZE__.
12367
12368 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12369
12370 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12371 different trapping status if -fnon-call-exceptions is enabled.
12372
12373 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12374
12375 * expr.c (store_field): Handle VOIDmode for calls that return values
12376 in multiple locations.
12377
12378 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12379
12380 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12381 (altivec_vsldoi_<mode>): Likewise.
12382
12383 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12384
12385 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12386 to the number of characters in the line.
12387
12388 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12389
12390 * graphite-isl-ast-to-gimple.c: Add using of
12391 build_nonstandard_integer_type instead of int128_integer_type_node.
12392
12393 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12394
12395 * toplev.c (output_stack_usage): Adjust the location of the warning.
12396
12397 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12398
12399 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12400 (*membar_storeload): Disable for LEON3.
12401
12402 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12403
12404 PR rtl-optimization/61461
12405 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12406
12407 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12408
12409 PR target/61794
12410 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12411 Fix instruction constraint.
12412 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12413
12414 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12415
12416 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12417
12418 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12419
12420 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12421 GNU coding standards.
12422 (nds32_register_move_cost): Likewise.
12423 (nds32_memory_move_cost): Likewise.
12424 (nds32_address_cost): Likewise.
12425
12426 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12427
12428 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12429
12430 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12431
12432 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12433 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12434 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12435 (HAVE_sync_compare_and_swapqi): Define.
12436 (HAVE_sync_compare_and_swaphi): Likewise.
12437 (HAVE_sync_compare_and_swapsi): Likewise.
12438
12439 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12440
12441 * config/mips/p5600.md: Add missing cpu tests.
12442
12443 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12444
12445 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12446 (vmla_f64): Likewise.
12447 (vfms_f64): Likewise.
12448 (vmls_f64): Likewise.
12449
12450 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12451
12452 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12453 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12454
12455 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12456
12457 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12458 (vmlal_high_lane_s32): Likewise.
12459 (vmlal_high_lane_u16): Likewise.
12460 (vmlal_high_lane_u32): Likewise.
12461 (vmlsl_high_lane_s16): Likewise.
12462 (vmlsl_high_lane_s32): Likewise.
12463 (vmlsl_high_lane_u16): Likewise.
12464 (vmlsl_high_lane_u32): Likewise.
12465
12466 2014-07-17 Terry Guo <terry.guo@arm.com>
12467
12468 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12469 (alus_reg): Renamed to alus_sreg.
12470 * config/arm/arm-fixed.md: Change type of non-dsp instructions
12471 from alu_reg to alu_sreg. Change type of dsp instructions from
12472 alu_reg to alu_dsp_reg.
12473 * config/arm/thumb1.md: Likewise.
12474 * config/arm/thumb2.md: Likewise.
12475 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12476 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12477 with alu_sreg and alus_sreg.
12478 * config/arm/arm1026ejs.md (alu_op): Likewise.
12479 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12480 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12481 * config/arm/fa526.md (526_alu_op): Likewise.
12482 * config/arm/fa606te.md (606te_alu_op): Likewise.
12483 * config/arm/fa626te.md (626te_alu_op): Likewise.
12484 * config/arm/fa726te.md (726te_alu_op): Likewise.
12485 * config/arm/fmp626.md (mp626_alu_op): Likewise.
12486 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12487 alu_sreg, alu_dsp_reg and alus_sreg.
12488 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12489 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12490 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12491 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12492 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12493 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12494 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12495 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12496 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12497 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12498 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12499 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12500 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12501 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12502 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12503 alus_reg to alus_sreg.
12504
12505 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
12506
12507 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12508 infinity format.
12509
12510 2014-07-17 Richard Biener <rguenther@suse.de>
12511
12512 PR rtl-optimization/61801
12513 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12514 don't set reg_pending_barrier if it appears in a debug-insn.
12515
12516 2014-07-16 DJ Delorie <dj@redhat.com>
12517
12518 * config/rx/rx.c (rx_option_override): Fix alignment values.
12519 (rx_align_for_label): Likewise.
12520
12521 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
12522
12523 PR target/61737.
12524 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12525 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12526 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12527 functions.
12528 (cris_print_index, cris_print_operand, cris_constant_index_p)
12529 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12530 (cris_address_cost): Ditto last CONSTANT_P.
12531 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12532 callers changed. Yield cris_offsettable_symbol for non-PIC
12533 constant symbolic expressions including labels. Yield cris_unspec
12534 for all unspecs.
12535 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12536 target to pic_offset_table_rtx for calls that will likely go
12537 through PLT, const0_rtx when they can't. All callers changed.
12538 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12539 symbolic expressions to be PICified. Remove second, redundant,
12540 assert on can_create_pseudo_p returning non-zero. Use
12541 replace_equiv_address_nv, not replace_equiv_address, for final
12542 operand update.
12543 * config/cris/cris.md ("movsi"): Move variable t to pattern
12544 toplevel. Adjust assert for new cris_symbol_type member. Use
12545 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12546 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12547 for lapc stricter.
12548 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12549 ("call", "call_value"): Use second incoming operand as a marker
12550 for pic-offset-table-register being used.
12551 ("*expanded_call_non_v32", "*expanded_call_v32")
12552 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12553 second incoming operand to CALL, match cris_call_type_marker.
12554 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12555 ("*expanded_call_side"): Ditto. Fix typo in comment.
12556 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12557 CONSTANT_P.
12558 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12559 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12560 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
12561 users changed. Add members cris_offsettable_symbol and cris_unspec.
12562 (cris_symbol_type): Rename from cris_pic_symbol_type.
12563 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12564 just CONSTANT_P.
12565 * config/cris/cris-protos.h (cris_symbol_type_of,
12566 cris_expand_pic_call_address): Adjust prototypes.
12567 (cris_legitimate_constant_p): New prototype.
12568
12569 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12570 an existing tmake_file. Don't add t-slibgcc and t-linux.
12571
12572 2014-07-17 Jason Merrill <jason@redhat.com>
12573
12574 PR c++/61623
12575 * symtab.c (symtab_remove_from_same_comdat_group): Also
12576 set_comdat_group to NULL_TREE.
12577 (verify_symtab): Fix diagnostic.
12578
12579 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12580
12581 PR target/61662
12582 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12583
12584 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12585
12586 Support location tracking for built-in macro tokens
12587 * input.h (is_location_from_builtin_token): New function declaration.
12588 * input.c (is_location_from_builtin_token): New function definition.
12589 * toplev.c (general_init): Tell libcpp what the pre-defined
12590 spelling location for built-in tokens is.
12591
12592 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12593
12594 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12595 on the FUNCTION_DECL.
12596
12597 2014-07-16 Richard Biener <rguenther@suse.de>
12598
12599 PR other/61782
12600 * doc/extend.texi (always_inline): Clarify.
12601
12602 2014-07-15 Eric Christopher <echristo@gmail.com>
12603
12604 * doc/invoke.texi (Link Options): Document -z option.
12605
12606 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12607
12608 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12609 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12610
12611 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12612
12613 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12614
12615 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12616
12617 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12618 varpool_assemble_decl.
12619 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12620 true.
12621
12622 2014-07-15 Michael Matz <matz@suse.de>
12623
12624 PR rtl-optimization/61772
12625 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12626
12627 2014-07-15 Richard Biener <rguenther@suse.de>
12628
12629 * opts.c (default_options_table): Disable bit-ccp at -Og.
12630
12631 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12632
12633 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12634
12635 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12636
12637 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12638 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12639 call langhook for unknown declaration.
12640 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12641 * tree.h (DECL_ARGUMENTS): Update.
12642 * print-tree.c (print_node): Update.
12643 * tree-core.h (tree_decl_non_common): Remove arguments.
12644 (tree_function_decl): Add arguments.
12645
12646 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12647
12648 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12649
12650 2014-07-14 Richard Biener <rguenther@suse.de>
12651
12652 PR tree-optimization/61779
12653 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12654 simplifying a condition.
12655
12656 2014-07-14 Richard Biener <rguenther@suse.de>
12657
12658 * builtins.c (c_strlen): Make only_value == 2 really only
12659 affect warning generation.
12660
12661 2014-07-14 Richard Biener <rguenther@suse.de>
12662
12663 PR tree-optimization/61757
12664 PR tree-optimization/61783
12665 PR tree-optimization/61787
12666 * tree-ssa-dom.c (record_equality): Revert canonicalization
12667 change and add comment.
12668 (propagate_rhs_into_lhs): Revert previous fix, removing
12669 loop depth restriction again.
12670
12671 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12672
12673 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12674 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12675 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12676 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12677 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12678 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12679 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12680
12681 2014-07-14 Richard Biener <rguenther@suse.de>
12682
12683 * cgraph.h (decl_in_symtab_p): Make inline.
12684
12685 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12686
12687 PR middle-end/61294
12688 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12689
12690 PR target/61656
12691 * config/i386/i386.c (classify_argument): Don't merge classes above
12692 number of words.
12693
12694 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12695
12696 * cgraph.h (symtab_node): Add nonzero_address.
12697 (decl_in_symtab_p): Break out from ...
12698 (symtab_get_node): ... here.
12699 * fold-const.c: Include cgraph.h
12700 (tree_single_nonzero_warnv_p): Use symtab to determine
12701 if symbol is non-zero.
12702 * symtab.c (symtab_node::nonzero_address): New method.
12703
12704 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12705
12706 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12707 forgotten in previous commit.
12708
12709 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12710
12711 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12712 on builtin types.
12713 * ipa-devirt.c: Include stor-layout.h and intl.h
12714 (odr_subtypes_equivalent_p): New function.
12715 (warn_odr): New function.
12716 (warn_type_mismatch): New function.
12717 (odr_types_equivalent_p): New function.
12718 (add_type_duplicate): Use it.
12719 * common.opt (Wodr): New flag.
12720 * doc/invoke.texi (Wodr): Document new warning.
12721
12722 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12723
12724 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12725 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12726 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12727 (varpool_get_constructor): Push CTORS_IN timevar.
12728 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12729
12730 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12731
12732 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12733 Remove VOID_FTYPE_PUSHORT.
12734 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12735 Change code to USHORT_FTYPE_VOID.
12736 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12737 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12738 (ix86_atomic_assign_expand_fenv): Update for
12739 __builtin_ia32_fnstsw changes.
12740 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
12741 (fnstsw): Change operand 0 to nonimmediate operand.
12742
12743 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12744
12745 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
12746 (varpool_get_constructor): New function.
12747 (varpool_ctor_useable_for_folding_p): Break out from ...
12748 (ctor_for_folding): ... here; use varpool_get_constructor.
12749 (varpool_assemble_decl): Likewise.
12750 * lto-streamer.h (struct output_block): Turn cgraph_node
12751 to symbol filed.
12752 (lto_input_variable_constructor): Declare.
12753 * ipa-visibility.c (function_and_variable_visibility): Use
12754 varpool_get_constructor.
12755 * cgraph.h (varpool_get_constructor): Declare.
12756 (varpool_ctor_useable_for_folding_p): New function.
12757 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
12758 parameter; return error_mark_node for non-trivial constructors.
12759 (lto_write_tree_1, DFS_write_tree): Update use of
12760 get_symbol_initial_value.
12761 (output_function): Update initialization of symbol.
12762 (output_constructor): New function.
12763 (copy_function): Rename to ..
12764 (copy_function_or_variable): ... this one; handle vars too.
12765 (lto_output): Output variable sections.
12766 * lto-streamer-in.c (input_constructor): New function.
12767 (lto_read_body): Rename from ...
12768 (lto_read_body_or_constructor): ... this one; handle vars too.
12769 (lto_input_variable_constructor): New function.
12770 * ipa-prop.c (ipa_prop_write_jump_functions,
12771 ipa_prop_write_all_agg_replacement): Update.
12772 * lto-cgraph.c (compute_ltrans_boundary): Use it.
12773 (output_cgraph_opt_summary): Set symbol to NULL.
12774
12775 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12776
12777 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
12778 non-polymorphic types.
12779 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
12780 * ipa-devirt.c (types_same_for_odr): Do not explode when one
12781 of types is not polymorphic.
12782
12783 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
12784
12785 * lra-constraints.c (remove_inheritance_pseudos): Process
12786 destination pseudo too.
12787
12788 2014-07-11 Rong Xu <xur@google.com>
12789
12790 * gcov-tool.c (gcov_output_files): Fix build error introduced in
12791 commit r212448.
12792
12793 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12794
12795 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
12796 * config/avr/avr-devices.c (AVR_MCU): Same.
12797 (avr_mcu_types): add text start value to end of device list.
12798 * config/avr/avr-mcus.def: Add text section start for all devices.
12799 (ata5782): Add new avr5 device.
12800 (ata5831): Same.
12801 * config/avr/avr-tables.opt: Regenerate.
12802 * config/avr/avr.h: Add declaration for text section start handler.
12803 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
12804 SPEC functions.
12805 (LINK_SPEC): Include text section start handler to linker spec.
12806 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
12807 pass -Ttext option to linker if the text section start for the device
12808 is not zero.
12809 * config/avr/t-multilib: Regenerate.
12810 * doc/avr-mmcu.texi: Regenerate.
12811
12812 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
12813
12814 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
12815 * config/rs6000/aix52.h (LINK_SPEC): Same.
12816 * config/rs6000/aix53.h (LINK_SPEC): Same.
12817 * config/rs6000/aix61.h (LINK_SPEC): Same.
12818 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
12819
12820 2014-07-11 Roman Gareev <gareevroman@gmail.com>
12821
12822 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
12823 (graphite_verify): New function.
12824 (ivs_params_clear): New function.
12825 (gcc_expression_from_isl_ast_expr_id): New function.
12826 (gcc_expression_from_isl_expr_int): New function.
12827 (binary_op_to_tree): New function.
12828 (ternary_op_to_tree): New function.
12829 (unary_op_to_tree): New function.
12830 (nary_op_to_tree): New function.
12831 (gcc_expression_from_isl_expr_op): New function.
12832 (gcc_expression_from_isl_expression): New function.
12833 (graphite_create_new_loop): New function.
12834 (translate_isl_ast_for_loop): New function.
12835 (get_upper_bound): New function.
12836 (graphite_create_new_loop_guard): New function.
12837 (translate_isl_ast_node_for): New function.
12838 (translate_isl_ast): New function.
12839 (add_parameters_to_ivs_params): New function.
12840 (scop_to_isl_ast): New parameter ip.
12841 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
12842
12843 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12844
12845 * config/xtensa/predicates.md (call expander): Update for
12846 DECL_SECTION_NAME being string.
12847
12848 2014-07-11 Richard Biener <rguenther@suse.de>
12849
12850 PR middle-end/61473
12851 * builtins.c (fold_builtin_memory_op): Inline memory moves that
12852 can be implemented with a single load followed by a single store.
12853 (c_strlen): Only warn when only_value is not 2.
12854
12855 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
12856
12857 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
12858
12859 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
12860
12861 PR target/61561
12862 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
12863 (*movhi_bytes): Likewise.
12864 (*arm_movqi_insn): Likewise.
12865
12866 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
12867
12868 PR target/56858
12869 * config/alpha/alpha.c: Include tree-pass.h, context.h
12870 and pass_manager.h.
12871 (pass_data_handle_trap_shadows): New pass.
12872 (pass_handle_trap_shadows::gate): New pass gate function.
12873 (make_pass_handle_trap_shadows): New function.
12874 (rest_of_handle_trap_shadows): Ditto.
12875
12876 (alpha_align_insns_1): Rename from alpha_align_insns.
12877 (pass_data_align_insns): New pass.
12878 (pass_align_insns::gate): New pass gate function.
12879 (make_pass_aling_insns): New function.
12880 (rest_of_align_insns): Ditto.
12881 (alpha_align_insns): Ditto.
12882
12883 (alpha_option_override): Declare handle_trap_shadows info
12884 and align_insns_info. Register handle_trap_shadows and align_insns
12885 passes here.
12886 (alpha_reorg): Do not call alpha_trap_shadows and
12887 alpha_align_insn from here.
12888
12889 (alpha_pad_function_end): Do not skip BARRIERs.
12890
12891 2014-07-10 Rong Xu <xur@google.com>
12892
12893 Add gcov-tool: an offline gcda profile processing tool support.
12894 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
12895 (gcov_is_error): Ditto.
12896 (gcov_read_string): Ditto.
12897 (gcov_read_sync): Ditto.
12898 * gcov-io.h: Move counter defines to gcov-counter.def.
12899 * gcov-dump.c (tag_counters): Use gcov-counter.def.
12900 * coverage.c: Ditto.
12901 * gcov-tool.c: Offline gcda profile processing tool.
12902 (unlink_gcda_file): Remove one gcda file.
12903 (unlink_profile_dir): Remove gcda files from the profile path.
12904 (gcov_output_files): Output gcda files to an output dir.
12905 (profile_merge): Merge two profiles in directory.
12906 (print_merge_usage_message): Print merge usage.
12907 (merge_usage): Print merge usage and exit.
12908 (do_merge): Driver for profile merge sub-command.
12909 (profile_rewrite): Rewrite profile.
12910 (print_rewrite_usage_message): Print rewrite usage.
12911 (rewrite_usage): Print rewrite usage and exit.
12912 (do_rewrite): Driver for profile rewrite sub-command.
12913 (print_usage): Print gcov-info usage and exit.
12914 (print_version): Print gcov-info version.
12915 (process_args): Process arguments.
12916 (main): Main routine for gcov-tool.
12917 * Makefile.in: Build and install gcov-tool.
12918 * gcov-counter.def: New file split from gcov-io.h.
12919 * doc/gcc.texi: Include gcov-tool.texi.
12920 * doc/gcov-tool.texi: Document for gcov-tool.
12921
12922 2014-07-10 Richard Biener <rguenther@suse.de>
12923
12924 PR tree-optimization/61757
12925 * tree-ssa-dom.c (loop_depth_of_name): Restore.
12926 (propagate_rhs_into_lhs): Revert part of last change.
12927
12928 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
12929
12930 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
12931 FUNCTION_DECLs.
12932
12933 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
12934
12935 PR middle-end/53590
12936 * function.c (allocate_struct_function): Revert r188667 change.
12937
12938 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
12939
12940 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
12941
12942 * doc/install.texi: Remove links to defunct package providers for
12943 Solaris.
12944
12945 2014-07-09 Tom de Vries <tom@codesourcery.com>
12946
12947 * final.c (get_call_fndecl): Declare.
12948 (self_recursive_call_p): New function.
12949 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
12950
12951 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12952
12953 * ipa-devirt.c (record_node): Walk through aliases.
12954
12955 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12956
12957 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
12958
12959 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12960
12961 Revert:
12962 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12963
12964 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12965
12966 * ipa-visibility.c (function_and_variable_visibility): Remove
12967 temporary hack disabling local aliases on AIX.
12968
12969 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12970
12971 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
12972 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
12973
12974 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12975
12976 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
12977 * rs6000/rs6000.c: Inline output of .set instruction.
12978 (declare_alias_data): New struct.
12979 (rs6000_declare_alias): New function.
12980 (rs6000_xcoff_declare_function_name): Use it.
12981 (rs6000_xcoff_declare_object_name): New function.
12982 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
12983 (ASM_OUTPUT_DEF): Turn to empty definition.
12984
12985 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12986
12987 PR bootstrap/61679
12988 * hash-table.h: use hash_table::value_type instead of
12989 Descriptor::value_type in the return types of several methods.
12990
12991 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12992
12993 * tree-pass.h (pass_data): Remove has_execute member.
12994 * passes.c (execute_one_pass): Don't check pass->has_execute.
12995 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
12996 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
12997 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
12998 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
12999 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13000 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13001 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13002 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13003 gimple-low.c, gimple-ssa-isolate-paths.c,
13004 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13005 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13006 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13007 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13008 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13009 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13010 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13011 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13012 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13013 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13014 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13015 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13016 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13017 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13018 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13019 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13020 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13021 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13022 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13023 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13024 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13025 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13026 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13027 web.c: Remove initializer for pass_data::has_execute.
13028
13029 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13030
13031 * graphite-htab.h: Use hash_map instead of hash_table.
13032 * graphite-clast-to-gimple.c: Adjust.
13033 * passes.c: Use hash_map instead of hash_table.
13034 * sese.c: Likewise.
13035 * sese.h: Remove now unused code.
13036
13037 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13038
13039 PR target/61599
13040 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13041 than zero.
13042
13043 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13044
13045 PR rtl-optimization/61673
13046 * combine.c (simplify_comparison): Test just mode's sign bit
13047 in tmode rather than the sign bit and any bits above it.
13048
13049 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13050
13051 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13052 Add __isl_give to the declaration.
13053 (generate_isl_schedule): Likewise.
13054 (scop_to_isl_ast): Likewise.
13055
13056 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13057
13058 * config/arm/arm.c (cortexa5_extra_costs): New table.
13059 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13060
13061 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13062
13063 PR tree-optimization/61725
13064 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13065 range, use range_includes_zerop_p instead of integer_zerop on
13066 vr0->min, only use log2 of max if min is not negative.
13067
13068 2014-07-08 Richard Biener <rguenther@suse.de>
13069
13070 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13071 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13072 restriction on loop depth difference.
13073 (record_equality): Likewise.
13074 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13075 (loop_depth_of_name): Remove.
13076 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13077 restriction on loop depth difference.
13078 (init_copy_prop): Likewise.
13079
13080 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13081
13082 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13083 parameter.
13084 (walk_aliased_vdefs): Likewise.
13085 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13086 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13087 (detect_type_change_from_memory_writes): Check if entry was reached.
13088
13089 2014-07-08 Richard Biener <rguenther@suse.de>
13090
13091 PR tree-optimization/61681
13092 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13093 NONLOCAL inside ESCAPED.
13094
13095 2014-07-08 Richard Biener <rguenther@suse.de>
13096
13097 PR tree-optimization/61680
13098 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13099 Handle properly all read-write dependences with group accesses.
13100
13101 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13102
13103 PR tree-optimization/61576
13104 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13105 block containing reduction statement is predecessor of phi basi block.
13106
13107 2014-07-08 Marek Polacek <polacek@redhat.com>
13108
13109 PR c/60226
13110 * fold-const.c (round_up_loc): Change the parameter type.
13111 Remove assert.
13112 * fold-const.h (round_up_loc): Adjust declaration.
13113 * stor-layout.c (finalize_record_size): Check for too large types.
13114
13115 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13116
13117 * symtab.c: Include calls.h.
13118 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13119
13120 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13121
13122 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13123 little-endian code generation.
13124 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13125 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13126 (spe_evmergehilo): Rename to...
13127 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13128 (spe_evmergelo): Rename to...
13129 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13130 (spe_evmergelohi): Rename to...
13131 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13132 (spe_evmergehi, spe_evmergehilo): New expanders.
13133 (spe_evmergelo, spe_evmergelohi): Likewise.
13134 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13135 (*frob_tf_ti): Likewise.
13136 (*frob_<mode>_di_2): Likewise.
13137 (*frob_tf_di_8_2): Likewise.
13138 (*frob_di_<mode>): Likewise.
13139 (*frob_ti_tf): Likewise.
13140 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13141 (*frob_ti_<mode>_8_2): Likewise.
13142 (*frob_ti_tf_2): Likewise.
13143 (mov_si<mode>_e500_subreg0): Rename to...
13144 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13145 endianness only.
13146 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13147 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13148 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13149 the big endianness only.
13150 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13151 (*mov_si<mode>_e500_subreg0_2): Rename to...
13152 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13153 big big endianness only.
13154 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13155 (*mov_si<mode>_e500_subreg4): Rename to...
13156 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13157 endianness only.
13158 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13159 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13160 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13161 the big endianness only.
13162 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13163 pattern.
13164 (*mov_si<mode>_e500_subreg4_2): Rename to...
13165 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13166 endianness only.
13167 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13168 (*mov_sitf_e500_subreg8): Rename to...
13169 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13170 endianness only.
13171 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13172 (*mov_sitf_e500_subreg8_2): Rename to...
13173 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13174 endianness only.
13175 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13176 (*mov_sitf_e500_subreg12): Rename to...
13177 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13178 endianness only.
13179 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13180 (*mov_sitf_e500_subreg12_2): Rename to...
13181 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13182 endianness only.
13183 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13184
13185 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13186
13187 * asan.c (instrument_strlen_call): Do not instrument first byte
13188 in strlen if already instrumented.
13189
13190 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13191
13192 * config/arm/arm.opt (mwords-little-endian): Delete.
13193 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13194 of TARGET_LITTLE_WORDS.
13195 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13196 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13197 warning.
13198 * doc/invoke.texi: Remove references to -mwords-little-endian.
13199
13200 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13201
13202 * expmed.c (struct init_expmed_rtl): Change all fields but
13203 pow2 and cint from struct rtx_def to rtx.
13204 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13205 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13206 at the end again.
13207
13208 2014-07-06 Marek Polacek <polacek@redhat.com>
13209
13210 PR c/6940
13211 * doc/invoke.texi: Document -Wsizeof-array-argument.
13212
13213 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13214
13215 * wide-int.h (wide_int_storage): Change declaration from struct
13216 to class.
13217
13218 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13219
13220 * cgraph.c (cgraph_create_indirect_edge): Update call of
13221 get_polymorphic_call_info.
13222 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13223 (possible_polymorphic_call_targets): Add parameter call.
13224 (decl_maybe_in_construction_p): New predicate.
13225 (get_polymorphic_call_info): Add parameter call;
13226 use decl_maybe_in_construction_p.
13227 * gimple-fold.c (fold_gimple_assign): Update use of
13228 possible_polymorphic_call_targets.
13229 (gimple_fold_call): Likewise.
13230 * ipa-prop.c: Inlcude calls.h
13231 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13232 (param_type_may_change_p): New predicate.
13233 (detect_type_change_from_memory_writes): Break out from ...
13234 (detect_type_change): ... this one; use param_type_may_change_p.
13235 (detect_type_change_ssa): Use param_type_may_change_p.
13236 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13237
13238 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13239
13240 PR target/49423
13241 * config/arm/arm-protos.h (arm_legitimate_address_p,
13242 arm_is_constant_pool_ref): Add prototypes.
13243 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13244 (arm_is_constant_pool_ref) New function.
13245 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13246 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13247 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13248 operand. Remove pool_range and neg_pool_range attributes.
13249 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13250 pool_range and neg_pool_range attributes.
13251 * config/arm/constraints.md (Uh): New constraint.
13252 (Uq): Don't allow constant pool references.
13253
13254 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13255
13256 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13257 (move_lo_quad_internal_be_<mode>): Likewise.
13258 (move_lo_quad_<mode>): Convert to define_expand.
13259 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13260 (aarch64_simd_move_hi_quad_be_<mode>): New.
13261 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13262 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13263 (aarch64_combinez_be<mode>): New.
13264 (aarch64_combine<mode>): Convert to define_expand.
13265 (aarch64_combine_internal<mode>): New.
13266 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13267
13268 2014-07-04 Tom de Vries <tom@codesourcery.com>
13269
13270 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13271 combination of earlyclobber and read/write modifiers.
13272
13273 2014-07-04 Tom de Vries <tom@codesourcery.com>
13274
13275 * config/aarch64/aarch64-simd.md
13276 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13277
13278 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13279
13280 PR target/61714
13281 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13282
13283 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13284
13285 PR middle-end/61654
13286 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13287
13288 PR tree-optimization/61684
13289 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13290 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13291
13292 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13293 Kito Cheng <kito@0xlab.org>
13294 Monk Chiang <sh.chiang04@gmail.com>
13295
13296 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13297 (nds32_symbol_load_store_p): Move to ...
13298 (nds32_fp_as_gp_check_available): Move to ...
13299 * config/nds32/nds32-fp-as-gp.c: ... here.
13300 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13301 extern declaration.
13302
13303 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13304 Kito Cheng <kito@0xlab.org>
13305 Monk Chiang <sh.chiang04@gmail.com>
13306
13307 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13308 (nds32_expand_store_multiple): Move to ...
13309 (nds32_expand_movmemqi): Move to ...
13310 * config/nds32/nds32-memory-manipulation.c: ... here.
13311
13312 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13313 Kito Cheng <kito@0xlab.org>
13314 Monk Chiang <sh.chiang04@gmail.com>
13315
13316 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13317 (nds32_output_casesi_pc_relative): Move to ...
13318 (nds32_output_casesi): Move to ...
13319 (nds32_mem_format): Move to ...
13320 (nds32_output_16bit_store): Move to ...
13321 (nds32_output_16bit_load): Move to ...
13322 (nds32_output_32bit_store): Move to ...
13323 (nds32_output_32bit_load): Move to ...
13324 (nds32_output_32bit_load_s): Move to ...
13325 (nds32_output_stack_push): Move to ...
13326 (nds32_output_stack_pop): Move to ...
13327 * config/nds32/nds32-md-auxiliary.c: ... here.
13328
13329 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13330 Ling-Hua Tseng <uranus@tinlans.org>
13331
13332 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13333 the purpose of this file.
13334
13335 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13336 Kito Cheng <kito@0xlab.org>
13337 Monk Chiang <sh.chiang04@gmail.com>
13338
13339 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13340 (nds32_address_cost): Move implementation to ...
13341 * config/nds32/nds32-cost.c: ... here.
13342 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13343 (nds32_address_cost_impl): Declare.
13344
13345 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13346 Kito Cheng <kito@0xlab.org>
13347 Monk Chiang <sh.chiang04@gmail.com>
13348
13349 * config/nds32/nds32.c
13350 (nds32_consecutive_registers_load_store_p): Move to ...
13351 (nds32_valid_multiple_load_store): Move to ...
13352 (nds32_valid_stack_push_pop): Move to ...
13353 (nds32_can_use_bclr_p): Move to ...
13354 (nds32_can_use_bset_p): Move to ...
13355 (nds32_can_use_btgl_p): Move to ...
13356 (nds32_can_use_bitci_p): Move to ...
13357 * config/nds32/nds32-predicates.c: ... here.
13358
13359 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13360 Kito Cheng <kito@0xlab.org>
13361 Monk Chiang <sh.chiang04@gmail.com>
13362
13363 * config/nds32/nds32.c
13364 (nds32_expand_builtin_null_ftype_reg): Move to ...
13365 (nds32_expand_builtin_reg_ftype_imm): Move to ...
13366 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13367 (nds32_init_builtins): Move implementation to ...
13368 (nds32_expand_builtin): Move implementation to ...
13369 * config/nds32/nds32-intrinsic.c: ... here.
13370 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13371 (nds32_expand_builtin_impl): Declare.
13372
13373 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13374 Kito Cheng <kito@0xlab.org>
13375 Monk Chiang <sh.chiang04@gmail.com>
13376
13377 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13378 (nds32_emit_section_tail_template): Move to ...
13379 (nds32_emit_isr_jmptbl_section): Move to ...
13380 (nds32_emit_isr_vector_section): Move to ...
13381 (nds32_emit_isr_reset_conten): Move to ...
13382 (nds32_check_isr_attrs_conflict): Move to ...
13383 (nds32_construct_isr_vectors_information): Move to ...
13384 (nds32_asm_file_start): Move implementation to ...
13385 (nds32_asm_file_end): Move implementation to ...
13386 * config/nds32/nds32-isr.c: ... here.
13387 * config/nds32/nds32-protos.h
13388 (nds32_check_isr_attrs_conflict): Declare.
13389 (nds32_construct_isr_vectors_information): Declare.
13390 (nds32_asm_file_start_for_isr): Declare.
13391 (nds32_asm_file_end_for_isr): Declare.
13392
13393 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13394 Kito Cheng <kito@0xlab.org>
13395 Monk Chiang <sh.chiang04@gmail.com>
13396
13397 * config.gcc (nds32*): Add new modules to extra_objs.
13398 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13399 (nds32be-*-*): Likewise.
13400 * config/nds32/nds32-cost.c: New file.
13401 * config/nds32/nds32-fp-as-gp.c: New file.
13402 * config/nds32/nds32-intrinsic.c: New file.
13403 * config/nds32/nds32-isr.c: New file.
13404 * config/nds32/nds32-md-auxiliary.c: New file.
13405 * config/nds32/nds32-memory-manipulation.c: New file.
13406 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13407 * config/nds32/nds32-predicates.c: New file.
13408 * config/nds32/t-nds32: New file.
13409
13410 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13411
13412 PR tree-optimization/61682
13413 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13414 using cases and when one of the operands is equal to 1.
13415
13416 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13417
13418 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13419 ashr<mode>3): Correct mode of operands[2].
13420 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13421 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13422 Correct mode of operands[2]. Fix split condition.
13423
13424 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13425
13426 * arm.md (arch): Add armv6_or_vfpv3.
13427 (arch_enabled): Add test for the above.
13428 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13429 on VFP9.
13430 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13431
13432 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13433
13434 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13435 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13436 HWI 1 and negate the unsigned value.
13437 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13438 use AND instead of shift.
13439 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13440
13441 2014-07-03 Marek Polacek <polacek@redhat.com>
13442
13443 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13444 (-fsanitize=float-divide-by-zero): Move to the table with
13445 -fsanitize=undefined suboptions.
13446 (-fsanitize=float-cast-overflow): Likewise.
13447
13448 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13449
13450 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13451 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13452 endianness.
13453
13454 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13455
13456 * loop-invariant.c (struct invariant): Add a new member: eqno;
13457 (find_identical_invariants): Update eqno;
13458 (create_new_invariant): Init eqno;
13459 (get_inv_cost): Compute comp_cost with eqno;
13460
13461 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13462
13463 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13464 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13465 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13466 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13467 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13468
13469 2014-07-02 Christian Bruel <christian.bruel@st.com>
13470
13471 PR target/29349
13472 PR target/53513
13473 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13474 (make_preds_opaque): Delete.
13475 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13476 (commit_mode_sets): New function.
13477 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13478 Process all modes at once.
13479 * basic-block.h (pre_edge_lcm_avs): Declare.
13480 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13481 Call clear_aux_for_edges. Fix comments.
13482 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13483 (pre_edge_rev_lcm): Idem.
13484 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13485 parameter.
13486 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13487 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13488 Idem.
13489 * config/i386/i386.c (x96_emit_mode_set): Idem.
13490 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13491 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
13492 (fpscr_toggle) Disallow from delay slot.
13493 * target.def (emit_mode_set): Add prev_mode parameter.
13494 * doc/tm.texi: Regenerate.
13495
13496 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13497
13498 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13499 variable i.
13500
13501 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13502
13503 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13504 vtable_pointer_value_to_vtable): Constify.
13505 (contains_polymorphic_type_p): Declare.
13506 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13507 vtable_pointer_value_to_vtable): Constify.
13508 (contains_polymorphic_type_p): New predicate.
13509 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13510 polymorphic types.
13511 (ipa_set_ancestor_jf): Likewise.
13512 (detect_type_change): Return false in easy cases.
13513 (compute_complex_assign_jump_func): Require type to contain
13514 polymorphic type.
13515 (compute_known_type_jump_func): Likewise.
13516
13517 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13518
13519 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13520 Remove.
13521 (type_in_anonymous_namespace_p): Constify argument.
13522 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13523 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13524 (main_odr_variant): New function.
13525 (hash_type_name): Make static; update assert; do not ICE on
13526 non-records.
13527 (types_same_for_odr): Bring here from tree.c; simplify and remove
13528 old structural comparing code that doesn't work for templates.
13529 (odr_hasher::equal): Update assert.
13530 (add_type_duplicate): Return true when bases should be computed;
13531 replace incomplete loader by complete; do not output duplicated
13532 warnings; do not ICE on non-records; set odr_violated flag.
13533 (get_odr_type): Be ready to replace incomplete type by complete
13534 one; work on ODR variants instead of main variants; reorder item
13535 in array so bases have still smaller indexes.
13536 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13537 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13538
13539 2014-07-01 Cary Coutant <ccoutant@google.com>
13540
13541 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13542 lookup.
13543 (resolve_addr_in_expr): When replacing the rtx in a location list
13544 entry, get a new address table entry.
13545 (dwarf2out_finish): Call index_location_lists even if there are no
13546 addr_index_table entries yet.
13547
13548 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13549
13550 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13551 change for not being obvious.
13552
13553 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13554
13555 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13556 unused argument.
13557
13558 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13559
13560 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13561 (vcagt_f64): Likewise.
13562 (vcale_f64): Likewise.
13563 (vcaled_f64): Likewise.
13564 (vcales_f32): Likewise.
13565 (vcalt_f64): Likewise.
13566 (vcaltd_f64): Likewise.
13567 (vcalts_f32): Likewise.
13568
13569 2014-07-01 Marek Polacek <polacek@redhat.com>
13570
13571 * doc/invoke.texi: Document -Wint-conversion.
13572
13573 2014-07-01 Marek Polacek <polacek@redhat.com>
13574
13575 PR c/58286
13576 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13577
13578 2014-07-01 Martin Liska <mliska@suse.cz>
13579
13580 IPA REF alias refactoring
13581 * cgraph.h (iterate_direct_aliases): New function.
13582 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13583 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13584 FOR_EACH_ALIAS added.
13585 (cgraph_for_node_and_aliases): Likewise.
13586 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13587 * ipa-inline.c (reset_edge_caches): Likewise.
13588 (update_caller_keys): Likewise.
13589 * trans-mem.c (ipa_tm_execute): Likewise.
13590 *varpool.c (varpool_analyze_node): Likewise.
13591 (varpool_for_node_and_aliases): Likewise.
13592 * ipa-ref.h (first_alias): New function.
13593 (last_alias): Likewise.
13594 (has_aliases_p): Likewise.
13595 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13596 is sensitive to IPA_REF_ALIASes.
13597 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13598 are put at the beginning of the list.
13599 (symtab_node::iterate_direct_aliases): New function.
13600
13601 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13602
13603 Revert:
13604 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13605 type is complete.
13606 (write_ts_type_common_tree_pointers): Do not stream fields not set
13607 for incomplete types; do not stream duplicated fields for variants;
13608 sanity check that variant and type match.
13609 (write_ts_type_non_common_tree_pointers): Likewise.
13610 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13611 TYPE_SIZE whether type is complete.
13612 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13613 write_ts_type_common_tree_pointers
13614 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13615
13616 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13617
13618 * var-tracking.c (add_stores): Return instead of asserting if old
13619 and new values for conditional store are the same.
13620
13621 2014-06-30 Richard Henderson <rth@redhat.com>
13622
13623 PR rtl-opt/61608
13624 PR target/39284
13625 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13626 the cfg if there were any changes.
13627 * passes.def: Revert move of peephole2 after reorder_blocks;
13628 move duplicate_computed_gotos before peephole2.
13629
13630 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13631
13632 * except.c (emit_note_eh_region_end): New helper function.
13633 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13634 emit EH_REGION_END note.
13635 * jump.c (cleanup_barriers): Do not split a call and its
13636 corresponding CALL_ARG_LOCATION note.
13637
13638 2014-06-30 Jeff Law <law@redhat.com>
13639
13640 PR tree-optimization/61607
13641 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13642 deeper into the SSA_NAME_VALUE chain.
13643
13644 2014-06-30 Marek Polacek <polacek@redhat.com>
13645
13646 * convert.c (convert_to_integer): Don't instrument conversions if the
13647 function has no_sanitize_undefined attribute.
13648 * ubsan.c: Don't run the ubsan pass if the function has
13649 no_sanitize_undefined attribute.
13650
13651 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13652
13653 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13654 -fsanitize=undefined suboptions.
13655
13656 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13657
13658 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13659 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13660 against bigendian and adjust indices.
13661
13662 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13663
13664 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13665
13666 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13667
13668 PR target/61633
13669 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13670 Add alternative; make early clobber. Adjust both split patterns
13671 to use operand 0 as the working register.
13672
13673 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13674
13675 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13676 as ira_object_id_map might be NULL, or 1.
13677
13678 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13679
13680 * loop-invariant.c (get_inv_cost): Handle register class.
13681 (gain_for_invariant): Check the register pressure of the inv
13682 and its overlapped register class, other than all.
13683
13684 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13685
13686 * doc/invoke.texi (Optimize Options): Fix descriptions of
13687 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13688
13689 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13690
13691 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13692 documentation.
13693
13694 2014-06-29 Tobias Grosser <tobias@grosser.es>
13695
13696 PR bootstrap/61650
13697 * graphite-isl-ast-to-gimple.c: Add missing guards.
13698
13699 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13700
13701 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13702 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13703 * flag-types.h: Add new enum fgraphite_generator.
13704 * graphite-isl-ast-to-gimple.c: New.
13705 * graphite-isl-ast-to-gimple.h: New.
13706 * graphite.c (graphite_transform_loops): Add choice of Graphite
13707 code generator, which depends on flag_graphite_code_gen.
13708
13709 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13710
13711 * graphite-dependences.c (subtract_commutative_associative_deps):
13712 Add NULL checking of the following variables: must_raw_no_source,
13713 may_raw_no_source, must_war_no_source, may_war_no_source,
13714 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13715 must_war, may_war, must_waw, may_waw.
13716
13717 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13718
13719 * graphite-clast-to-gimple.c: gloog is renamed to
13720 graphite_regenerate_ast_cloog. gloog_error is renamed to
13721 graphite_regenerate_error.
13722 * graphite-clast-to-gimple.h: The definition of the struct
13723 bb_pbb_def is moved to graphite-htab.h.
13724 Add inclusion of the hash-table.h.
13725 * graphite-htab.h: The declaration of the function gloog is moved
13726 to graphite-clast-to-gimple.h and renamed to
13727 graphite_regenerate_ast_cloog.
13728 * graphite.c (graphite_transform_loops): gloog is renamed
13729 to graphite_regenerate_ast_cloog.
13730
13731 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13732
13733 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13734 type is complete.
13735 (write_ts_type_common_tree_pointers): Do not stream fields not set
13736 for incomplete types; do not stream duplicated fields for variants;
13737 sanity check that variant and type match.
13738 (write_ts_type_non_common_tree_pointers): Likewise.
13739 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13740 TYPE_SIZE whether type is complete.
13741 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13742 write_ts_type_common_tree_pointers
13743 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13744
13745 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13746
13747 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
13748
13749 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13750
13751 * tree-inline.c (remap_type_1): Do not duplicate fields
13752 that are shared in between type and its main variant.
13753
13754 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13755
13756 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13757 of the type.
13758 (ipa_set_ancestor_jf) Likewise.
13759 (check_stmt_for_type_change): Check that we work on main variant.
13760 (detect_type_change): Look into main variant.
13761 (compute_known_type_jump_func): Check that main variant has BINFO.
13762
13763 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13764
13765 * ipa-devirt.c (set_type_binfo): New function.
13766 (add_type_duplicate): Use it.
13767 (get_odr_type): Sanity check that binfos points to main variants.
13768 (get_class_context): Be sure the context's outer_type is main variant.
13769 (contains_type_p): Walk main variant.
13770 (get_polymorphic_call_info_for_decl): Set outer_type to be
13771 main variant.
13772 (get_polymorphic_call_info): Likewise.
13773 (possible_polymorphic_call_targets): Sanity check that we operate
13774 on main variant.
13775
13776 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13777
13778 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13779
13780 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13781
13782 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
13783 accidental change due to wide-int branch merge.
13784
13785 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13786
13787 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
13788 compressed debug support.
13789 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
13790 * configure: Regenerate.
13791 * config.in: Regenerate.
13792 * common.opt (compressed_debug_sections): New enum.
13793 (gz, gz=): New options.
13794 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
13795 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
13796 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
13797 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
13798 LINK_COMPRESS_DEBUG_SPEC.
13799 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
13800 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
13801 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
13802 (Debugging Options): Document -gz[=type].
13803
13804 2014-06-27 Martin Jambor <mjambor@suse.cz>
13805
13806 PR ipa/61160
13807 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
13808 args_to_skip, use those from node instead. Copy args_to_skip and
13809 combined_args_to_skip from node to the new thunk.
13810 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
13811 (cgraph_create_virtual_clone): Moved computation of
13812 combined_args_to_skip...
13813 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
13814
13815 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
13816
13817 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
13818 redundant diagnostic machinary.
13819
13820 2014-06-27 Richard Biener <rguenther@suse.de>
13821
13822 * tree-ssa-math-opts.c (bswap_replace): Fix
13823 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
13824
13825 2014-06-27 Martin Liska <mliska@suse.cz>
13826
13827 * gimple.h (gimple_location_safe): New function introduced.
13828 * cgraphunit.c (walk_polymorphic_call_targets): Usage
13829 of gimple_location_safe replaces gimple_location.
13830 (gimple_fold_call): Likewise.
13831 * ipa-devirt.c (ipa_devirt): Likewise.
13832 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13833 * ipa.c (walk_polymorphic_call_targets): Likewise.
13834 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
13835
13836 2014-06-27 Jakub Jelinek <jakub@redhat.com>
13837
13838 PR tree-optimization/57233
13839 PR tree-optimization/61299
13840 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
13841 functions.
13842 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
13843 would be lowered to scalar shifts, check if corresponding
13844 shifts and vector BIT_IOR_EXPR are supported and don't lower
13845 or lower just to narrower vector type in that case.
13846 * expmed.c (expand_shift_1): Fix up handling of vector
13847 shifts and rotates.
13848
13849 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
13850
13851 PR target/61586
13852 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
13853
13854 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
13855
13856 * doc/invoke.texi (-fsemantic-interposition): Document.
13857 * common.opt (fsemantic-interposition): New flag.
13858 * varasm.c (decl_replaceable_p): Use it.
13859
13860 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13861
13862 PR target/61542
13863 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
13864 extraction other than index 3.
13865
13866 2014-06-26 Teresa Johnson <tejohnson@google.com>
13867
13868 * doc/invoke.texi: Fix typo.
13869 * dumpfile.c: Add support for documented -fdump-* options
13870 optimized/missed/note/optall.
13871
13872 2014-06-26 Martin Jambor <mjambor@suse.cz>
13873
13874 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
13875 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
13876 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
13877 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
13878 * opts.c (default_options_optimization): Set
13879 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
13880 * doc/invoke.texi (allow-load-data-races)
13881 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
13882 (allow-store-data-races): Document the new default.
13883
13884 2014-06-26 Martin Jambor <mjambor@suse.cz>
13885
13886 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
13887 renamed to ipa_impossible_devirt_target. Fix typo.
13888 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
13889 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
13890 ipa_impossible_devirt_target.
13891
13892 2014-06-26 Richard Biener <rguenther@suse.de>
13893
13894 PR tree-optimization/61607
13895 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
13896 explaining why we restrict copies on loop depth.
13897 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13898 on loop depth.
13899 (record_equivalences_from_phis): Instead add it here.
13900
13901 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
13902
13903 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
13904 (LTO_WRAPPER_OBJS): New variable.
13905 (lto-wrapper$(exeext)): Use it.
13906 * collect2.c: Include "collect-utils.h".
13907 (verbose, debug): Remove variables.
13908 (at_file_supplied): No longer static.
13909 (tool_name): New variable.
13910 (do_wait, fork_execute, maybe_unlink): Don't declare.
13911 (tool_cleanup): No longer static.
13912 (notice): Remove function.
13913 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
13914 fork_execute calls.
13915 (collect_wait, do_wait, collect_execute): Remove functions.
13916 (maybe_unlink): No longer static.
13917 * collect2.h (verbose, debug): Don't declare.
13918 (at_file_supplied): Declare.
13919 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
13920 changed.
13921 (collect_execute): Replace with implementation from collect2, plus a
13922 new arg use_atfile. All callers changed.
13923 (collect_wait): Replace with implementation from collect2.
13924 (maybe_unlink_file): Remove function.
13925 (fork_execute): Replace with implementation from collect2, plus a
13926 new arg use_atfile. All callers changed.
13927 (do_wait): Add call to utils_cleanup to the error path.
13928 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
13929 (tool_cleanup): Adjust declarations.
13930 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
13931 * tlink.c: Include "collect-utils.h".
13932 (tlink_execute): New arg use_atfile. All callers changed.
13933 (tlink_init, tlink_execute): Remove declarations.
13934
13935 * collect-utils.c (save_temps): New variable.
13936 (do_wait): Use it instead of debug. Use fatal_error.
13937 * collect-utils.h (save_temps): Declare.
13938 * collect2.c (verbose): Rename from vflag. All uses changed.
13939 (tool_cleanup): New function, copied from collect_atexit.
13940 (collect_atexit, handler): Just call it.
13941 * collect2.h (verbose): Declaration renamed from vflag.
13942 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
13943 debug.
13944
13945 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
13946 (lto-wrapper$(exeext)): Link with collect-utils.o.
13947 * collect-utils.c: New file.
13948 * collect-utils.h: New file.
13949 * lto-wrapper.c: Include "collect-utils.h".
13950 (args_name): Delete variable.
13951 (tool_name): New variable.
13952 (tool_cleanup): New function.
13953 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
13954 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
13955 (fork_execute): Remove functions.
13956
13957 2014-06-26 Nick Clifton <nickc@redhat.com>
13958
13959 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
13960
13961 * doc/extend.texi (Function Attributes): Fix typo in description
13962 of RX vector attribute.
13963
13964 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13965
13966 * config.gcc (supported_defaults): Error when passing either
13967 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
13968
13969 2014-06-26 Richard Biener <rguenther@suse.de>
13970
13971 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13972 propagating volatile pointers.
13973
13974 2014-06-26 Richard Biener <rguenther@suse.de>
13975
13976 PR tree-optimization/61607
13977 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
13978 loop if we redirected its latch edge.
13979 (thread_block_1): Do not cancel loops prematurely.
13980
13981 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
13982
13983 * toplev.c (backend_init_target): Move init_emit_regs and
13984 init_regs to...
13985 (backend_init) ... here; skip ira_init_once and backend_init_target.
13986 (target_reinit) ... and here; clear
13987 this_target_rtl->lang_dependent_initialized.
13988 (lang_dependent_init_target): Clear
13989 this_target_rtl->lang_dependent_initialized;
13990 break out rtl initialization to ...
13991 (initialize_rtl): ... here; call also backend_init_target
13992 and ira_init_once.
13993 * toplev.h (initialize_rtl): New function.
13994 * function.c: Include toplev.h
13995 (init_function_start): Call initialize_rtl.
13996 * rtl.h (target_rtl): Add target_specific_initialized,
13997 lang_dependent_initialized.
13998
13999 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14000 Jakub Jelinek <jakub@redhat.com>
14001
14002 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14003
14004 2014-06-25 Tom de Vries <tom@codesourcery.com>
14005
14006 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14007
14008 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14009
14010 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14011 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14012 Issue a strict overflow warning if appropriate.
14013
14014 2014-06-25 Martin Liska <mliska@suse.cz>
14015
14016 IPA REF refactoring
14017 * Makefile.in: Removed header file (ipa-ref-inline.h).
14018 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14019 called.
14020 (cgraph_speculative_call_info): Likewise.
14021 (cgraph_for_node_thunks_and_aliases): Likewise.
14022 (cgraph_for_node_and_aliases): Likewise.
14023 (verify_cgraph_node): Likewise.
14024 * cgraph.h: Batch of IPA REF functions become member functions of
14025 symtab_node: add_reference, maybe_add_reference, clone_references,
14026 clone_referring, clone_reference, find_reference,
14027 remove_stmt_references, remove_all_references,
14028 remove_all_referring, dump_references, dump_referring,
14029 has_alias_p, iterate_reference, iterate_referring.
14030 * cgraphbuild.c (record_reference): New IPA REF function used.
14031 (record_type_list): Likewise.
14032 (record_eh_tables): Likewise.
14033 (mark_address): Likewise.
14034 (mark_load): Likewise.
14035 (mark_store): Likewise.
14036 (pass_build_cgraph_edges): Likewise.
14037 (rebuild_cgraph_edge): Likewise.
14038 (cgraph_rebuild_references): Likewise.
14039 (pass_remove_cgraph_callee_edges): Likewise.
14040 * cgraphclones.c (cgraph_clone_node): Likewise.
14041 (cgraph_create_virtual_clone): Likewise.
14042 (cgraph_materialize_clone): Likewise.
14043 (cgraph_materialize_all_clones): Likewise.
14044 * cgraphunit.c (cgraph_reset_node): Likewise.
14045 (cgraph_reset_node): Likewise.
14046 (analyze_function): Likewise.
14047 (assemble_thunks_and_aliases): Likewise.
14048 (expand_function): Likewise.
14049 * ipa-comdats.c (propagate_comdat_group): Likewise.
14050 (enqueue_references): Likewise.
14051 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14052 (create_specialized_node): Likewise.
14053 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14054 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14055 * ipa-inline.c (reset_edge_caches): Likewise.
14056 (update_caller_keys): Likewise.
14057 (execute): Likewise.
14058 * ipa-prop.c (remove_described_reference): Likewise.
14059 (propagate_controlled_uses): Likewise.
14060 (ipa_edge_duplication_hook): Likewise.
14061 (ipa_modify_call_arguments): Likewise.
14062 * ipa-pure-const.c (propagate_pure_const): Likewise.
14063 * ipa-ref-inline.h: Header file removed, functions moved
14064 to symtab_node class.
14065 * ipa-ref.c (remove_reference): New class member function.
14066 (cannot_lead_to_return): New class member function.
14067 (referring_ref_list): Likewise.
14068 (referred_ref_list): Likewise.
14069 Rest of functions moved to symtab_node class.
14070 * ipa-ref.h: New member functions remove_reference,
14071 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14072 to ipa_ref class.
14073 ipa_ref_list class has new member functions: first_reference,
14074 first_referring, clear, nreferences.
14075 * ipa-reference.c (analyze_function): New IPA REF function used.
14076 (write_node_summary_p): Likewise.
14077 (ipa_reference_write_optimization_summary): Likewise.
14078 * ipa-split.c (split_function): Likewise.
14079 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14080 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14081 (function_and_variable_visibility): Likewise.
14082 * ipa.c (has_addr_references_p): Likewise.
14083 (process_references): Argument type changed.
14084 (symtab_remove_unreachable_nodes): New IPA REF function used.
14085 (process_references): Likewise.
14086 (set_writeonly_bit): Likewise.
14087 * lto-cgraph.c: Implementation of new symtab_node member functions
14088 that uses new IPA REF functions.
14089 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14090 function used.
14091 * lto-streamer-out.c (output_symbol_p): Likewise.
14092 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14093 changed.
14094 * symtab.c: Implementation of new IPA REF API.
14095 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14096 (ipa_tm_create_version): Likewise.
14097 (ipa_tm_execute): Likewise.
14098 * tree-emutls.c (gen_emutls_addr): Likewise.
14099 * tree-inline.c (copy_bb): Likewise.
14100 (delete_unreachable_blocks_update_callgraph): Likewise.
14101 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14102 (varpool_for_node_and_aliases): Likewise.
14103
14104 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14105
14106 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14107
14108 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14109
14110 PR bootstrap/61598
14111 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14112 tree_node * instead of tree_node *.
14113 (fold): Adjust.
14114 (print_fold_checksum): Likewise.
14115 (fold_check_failed): Likewise.
14116 (debug_fold_checksum): Likewise.
14117 (fold_build1_stat_loc): Likewise.
14118 (fold_build2_stat_loc): Likewise.
14119 (fold_build3_stat_loc): Likewise.
14120 (fold_build_call_array_loc): Likewise.
14121
14122 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14123
14124 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14125 implementation with call to...
14126 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14127 function.
14128 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14129 Declare.
14130
14131 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14132
14133 PR tree-optimization/57742
14134 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14135 after replacing the statement.
14136
14137 2014-06-25 Nick Clifton <nickc@redhat.com>
14138
14139 * config/v850/v850.c (GHS_default_section_names): Change to const
14140 char * type.
14141 (GHS_current_section_names): Likewise.
14142 (v850_insert_attributes): Do not build strings, just assign the
14143 names directly. Change the type of 'chosen_section' to const
14144 char*.
14145 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14146 directly to the array entry.
14147 * config/v850/v850.h (GHS_default_section_names): Change to const
14148 char * type.
14149 (GHS_current_section_names): Likewise.
14150
14151 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14152
14153 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14154 (LANG_HOOKS_DECLS): Add it.
14155 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14156 has correct type.
14157 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14158 * langhooks.h (struct lang_hooks_for_decls): Add
14159 omp_clause_linear_ctor hook.
14160 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14161 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14162 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14163 combined simd loop use omp_clause_linear_ctor hook.
14164
14165 2014-06-24 Cong Hou <congh@google.com>
14166
14167 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14168 pattern recognition.
14169 (type_conversion_p): PROMOTION is true if it's a type promotion
14170 conversion, and false otherwise. Return true if the given expression
14171 is a type conversion one.
14172 * tree-vectorizer.h: Adjust the number of patterns.
14173 * tree.def: Add SAD_EXPR.
14174 * optabs.def: Add sad_optab.
14175 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14176 * expr.c (expand_expr_real_2): Likewise.
14177 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14178 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14179 * optabs.c (optab_for_tree_code): Likewise.
14180 * tree-cfg.c (estimate_operator_cost): Likewise.
14181 * tree-ssa-operands.c (get_expr_operands): Likewise.
14182 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14183 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14184 * doc/generic.texi: Add document for SAD_EXPR.
14185 * doc/md.texi: Add document for ssad and usad.
14186
14187 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14188
14189 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14190 qualification in cast.
14191
14192 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14193
14194 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14195 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14196 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14197 (tree_function_decl): ... here.
14198 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14199 streaming of vindex to ...
14200 (write_ts_function_decl_tree_pointers): ... here.
14201 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14202 Do not stream DECL_VINDEX.
14203 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14204
14205 2014-06-24 Catherine Moore <clm@codesourcery.com>
14206 Sandra Loosemore <sandra@codesourcery.com>
14207
14208 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14209 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14210 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14211
14212 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14213
14214 * doc/invoke.texi (Warning Options): Remove duplicated
14215 -Wmaybe-uninitialized.
14216
14217 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14218
14219 PR tree-optimization/57742
14220 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14221 (handle_builtin_malloc, handle_builtin_memset): New functions.
14222 (strlen_optimize_stmt): Call them.
14223 * passes.def: Move strlen after loop+dom but before vrp.
14224
14225 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14226
14227 PR target/61570
14228 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14229 model family 6 CPU with has_longmode never use a CPU without
14230 64-bit support.
14231
14232 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14233
14234 PR target/61570
14235 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14236 the last change.
14237
14238 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14239
14240 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14241 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14242 pointer_map.
14243 * hash-map.h: New file.
14244 * ipa-comdats.c: Use hash_map instead of pointer_map.
14245 * ipa.c: Likewise.
14246 * lto-section-out.c: Adjust.
14247 * lto-streamer.h: Replace pointer_map with hash_map.
14248 * symtab.c (verify_symtab): Likewise.
14249 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14250 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14251 * tree-streamer.h: Likewise.
14252 * tree-streamer.c: Adjust.
14253 * pointer-set.h: Remove pointer_map.
14254
14255 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14256
14257 * hash-table.h: Add a template arg to choose between storing values
14258 and storing pointers to values, and then provide partial
14259 specializations for both.
14260 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14261 should store, not the type values should point to.
14262 * tree-into-ssa.c (var_info_hasher): Likewise.
14263 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14264 * tree-complex.c: Adjust.
14265 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14266 table instead of int_tree_map *.
14267 * tree-parloops.c: Adjust.
14268 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14269 type is being stored.
14270 * tree-vectorizer.c: Adjust.
14271
14272 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14273
14274 * hash-table.h: Remove a layer of indirection from hash_table so that
14275 it contains the hash table's data instead of a pointer to the data.
14276 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14277 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14278 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14279 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14280 fold-const.c, gcse.c, ggc-common.c,
14281 gimple-ssa-strength-reduction.c, gimplify.c,
14282 graphite-clast-to-gimple.c, graphite-dependences.c,
14283 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14284 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14285 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14286 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14287 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14288 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14289 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14290 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14291 tree-ssa-live.c, tree-ssa-loop-im.c,
14292 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14293 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14294 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14295 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14296 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14297 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14298 vtable-verify.c, vtable-verify.h: Adjust.
14299
14300 2014-06-24 Richard Biener <rguenther@suse.de>
14301
14302 PR tree-optimization/61572
14303 * tree-ssa-sink.c (statement_sink_location): Do not sink
14304 loads from hard registers.
14305
14306 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14307
14308 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14309 not mentioned in clauses use private clause if the iterator is
14310 declared in #pragma omp for simd, and when adding lastprivate
14311 instead, add it to the outer #pragma omp for too. Diagnose
14312 if the variable is private in outer context. For simd collapse > 1
14313 loops, replace all iterators with temporaries.
14314 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14315 same even in collapse > 1 loops.
14316
14317 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14318 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14319 non-NULL.
14320 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14321 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14322 non-NULL.
14323 (gimplify_adjust_omp_clauses): Likewise.
14324 * omp-low.c (lower_rec_simd_input_clauses,
14325 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14326 safelen the same as safelen(1).
14327 * tree-nested.c (convert_nonlocal_omp_clauses,
14328 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14329 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14330 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14331 Fixup handling of GIMPLE_OMP_TARGET.
14332 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14333 GIMPLE_OMP_TARGET.
14334
14335 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14336
14337 PR tree-optimization/61554
14338 * tree-ssa-propagate.c: Include "bitmap.h".
14339 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14340 properly update constructor/destructor.
14341 (substitute_and_fold_dom_walker::before_dom_children):
14342 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14343 need_eh_cleaup instead.
14344 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14345 need_eh_cleanup.
14346
14347 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14348
14349 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14350 * tree-pass.h (make_pass_ipa_single_use): New pass.
14351 * cgraph.h (used_by_single_function): New flag.
14352 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14353 Stream it.
14354 * passes.def (pass_ipa_single_use): Scedule.
14355 * ipa.c (BOTTOM): New macro.
14356 (meet): New function
14357 (propagate_single_user): New function.
14358 (ipa_single_use): New function.
14359 (pass_data_ipa_single_use): New pass.
14360 (pass_ipa_single_use): New pass.
14361 (pass_ipa_single_use::gate): New gate.
14362 (make_pass_ipa_single_use): New function.
14363
14364 2014-06-23 Kai Tietz <ktietz@redhat.com>
14365
14366 PR target/39284
14367 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14368 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14369
14370 2014-06-23 Richard Biener <rguenther@suse.de>
14371
14372 * tree-ssa-loop.c (gate_loop): New function.
14373 (pass_tree_loop::gate): Call it.
14374 (pass_data_tree_no_loop, pass_tree_no_loop,
14375 make_pass_tree_no_loop): New.
14376 * tree-vectorizer.c: Include tree-scalar-evolution.c
14377 (pass_slp_vectorize::execute): Initialize loops and SCEV if
14378 required.
14379 (pass_slp_vectorize::clone): New method.
14380 * timevar.def (TV_TREE_NOLOOP): New.
14381 * tree-pass.h (make_pass_tree_no_loop): Declare.
14382 * passes.def (pass_tree_no_loop): New pass group with
14383 SLP vectorizer.
14384
14385 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14386
14387 PR target/61570
14388 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14389 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14390
14391 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14392
14393 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14394 "yes" where needed.
14395
14396 2014-06-23 Alan Modra <amodra@gmail.com>
14397
14398 PR bootstrap/61583
14399 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14400 to zero on debug statements.
14401
14402 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14403
14404 PR target/60825
14405 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14406 Ignore third operand if present by marking qualifier_internal.
14407
14408 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14409
14410 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14411 vector extension.
14412 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14413 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14414 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14415 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14416 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14417 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14418 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14419 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14420 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14421 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14422 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14423 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14424 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14425 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14426 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14427 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14428 logic in GCC vector extensions
14429
14430 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14431 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14432 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14433 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14434 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14435 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14436 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14437 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14438 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14439 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14440
14441 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14442
14443 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14444 extensions.
14445
14446 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14447 (vget_low_s64): Use __GET_LOW macro.
14448 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14449 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14450 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14451 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14452 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14453
14454 (vcombine_s64): Use GCC vector extensions; remove cast.
14455 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14456 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14457 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14458 Fix type signature; remove cast.
14459
14460 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14461
14462 PR target/60825
14463 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14464 V1DFmode.
14465 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14466 add V1DFmode
14467 (BUILTIN_VD1): New.
14468 (BUILTIN_VD_RE): Remove.
14469 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14470 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14471 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14472 variant but not df.
14473 (vreinterpretv1df*, vreinterpret*v1df): New.
14474 (vreinterpretdf*, vreinterpret*df): Remove.
14475 * config/aarch64/aarch64-simd.md (aarch64_create,
14476 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14477 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14478 (VD1): New.
14479 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14480 (vcreate_f64): Remove cast, use v1df builtin.
14481 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14482 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14483 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14484 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14485 vmov_n_f64, vst1_f64): Use gcc vector extensions.
14486 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14487 add range check using __builtin_aarch64_im_lane_boundsi.
14488 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14489 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14490 type signature, use gcc vector extensions.
14491 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14492 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14493 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14494 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14495 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14496 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14497 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14498 vreinterpret_u64_f64): Use v1df builtin not df.
14499
14500 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14501
14502 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14503 vector registers.
14504
14505 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14506
14507 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14508 priority directly.
14509
14510 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14511
14512 * loop-invariant.c (pre_check_invariant_p): New function.
14513 (find_invariant_insn): Call pre_check_invariant_p.
14514
14515 2014-06-22 Richard Henderson <rth@redhat.com>
14516
14517 PR target/61565
14518 * compare-elim.c (struct comparison): Add eh_note.
14519 (find_comparison_dom_walker::before_dom_children): Don't eliminate
14520 a redundant comparison in a different EH region. Purge EH edges if
14521 necessary.
14522
14523 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14524
14525 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14526 (var_shift): Use it.
14527 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14528 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14529 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14530 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14531 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14532 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14533 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14534 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14535 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14536 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14537 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14538 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14539 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14540 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14541 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14542 *rotldi3_internal15be): Use the new attribute. Merge register and
14543 integer alternatives.
14544
14545 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14546
14547 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14548 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14549 split, *ashrdi3_internal3 and split): Delete, merge into...
14550 (ashr<mode>3): New expander.
14551 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14552 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14553
14554 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14555
14556 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14557 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14558 *rotldi3_internal3 and split): Delete, merge into...
14559 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14560 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
14561 Use "rotlw" extended mnemonic.
14562
14563 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14564
14565 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14566 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14567 and split, *ashldi3_internal3 and split): Delete, merge into...
14568 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14569 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14570
14571 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14572
14573 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14574 (lshrsi3, two anonymous define_insns and define_splits,
14575 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14576 *lshrdi3_internal3 and split): Delete, merge into...
14577 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14578 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14579
14580 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14581
14582 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14583 Remove "O" alternative.
14584
14585 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14586
14587 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14588 (mips_move_from_gpr_cost): Likewise.
14589 (mips_register_move_cost): Update accordingly.
14590 (mips_secondary_reload_class): Remove name of in_p.
14591
14592 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14593
14594 PR target/61503
14595 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14596 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14597
14598 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14599
14600 * config/nios2/nios2.c: Include "builtins.h".
14601
14602 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14603
14604 * cgraph.h (tls_model_names): New variable.
14605 * print-tree.c (print_node): Simplify.
14606 * varpool.c (tls_model_names): New variable.
14607 (dump_varpool_node): Output tls model.
14608
14609 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14610
14611 * ipa-visibility.c (function_and_variable_visibility): Disable
14612 temporarily local aliases for some targets.
14613
14614 2014-06-20 Marek Polacek <polacek@redhat.com>
14615
14616 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14617 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14618 into SANITIZE_UNDEFINED.
14619 * doc/invoke.texi: Describe -fsanitize=bounds.
14620 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14621 functions created in the FEs.
14622 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14623 (expand_UBSAN_BOUNDS): New function.
14624 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14625 * internal-fn.h: Don't define internal functions here.
14626 * opts.c (common_handle_option): Add -fsanitize=bounds.
14627 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14628 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14629 * tree-core.h: Define internal functions here.
14630 (struct tree_base): Add ifn field.
14631 * tree-pretty-print.c: Include "internal-fn.h".
14632 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14633 * tree.c (get_callee_fndecl): Likewise.
14634 (build_call_expr_internal_loc): New function.
14635 * tree.def (CALL_EXPR): Update description.
14636 * tree.h (CALL_EXPR_IFN): Define.
14637 (build_call_expr_internal_loc): Declare.
14638 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14639 types.
14640 (ubsan_type_descriptor): Change bool parameter to enum
14641 ubsan_print_style. Adjust the code. Add handling of
14642 UBSAN_PRINT_ARRAY.
14643 (ubsan_expand_bounds_ifn): New function.
14644 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14645 (ubsan_build_overflow_builtin): Likewise.
14646 (instrument_bool_enum_load): Likewise.
14647 (ubsan_instrument_float_cast): Likewise.
14648 * ubsan.h (enum ubsan_print_style): New enum.
14649 (ubsan_expand_bounds_ifn): Declare.
14650 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14651
14652 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14653
14654 * config/rs6000/rs6000.md: Append `DONE' to preparation
14655 statements of `bswap' pattern splitters.
14656
14657 2014-06-20 Tom de Vries <tom@codesourcery.com>
14658
14659 * target.def (call_fusage_contains_non_callee_clobbers): Update
14660 definition.
14661 * doc/tm.texi: Regenerate.
14662
14663 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14664 Max Ostapenko <m.ostapenko@partner.samsung.com>
14665
14666 PR sanitizer/61547
14667 * asan.c (instrument_strlen_call): Fixed instrumentation of
14668 trailing byte.
14669
14670 2014-06-20 Martin Jambor <mjambor@suse.cz>
14671
14672 PR ipa/61540
14673 * ipa-prop.c (impossible_devirt_target): New function.
14674 (try_make_edge_direct_virtual_call): Use it, also instead of
14675 asserting.
14676
14677 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14678 Max Ostapenko <m.ostapenko@partner.samsung.com>
14679
14680 PR sanitizer/61530
14681 * asan.c (build_check_stmt): Add condition.
14682
14683 2014-06-20 Martin Jambor <mjambor@suse.cz>
14684
14685 PR ipa/61211
14686 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14687 expanded clones.
14688
14689 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14690
14691 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14692 Update comments.
14693 (VCONQ): Make comment more helpful.
14694 (VCON): Delete.
14695 * config/aarch64/aarch64-simd.md
14696 (aarch64_sqdmulh_lane<mode>):
14697 Use VCOND for operands 2. Update lane checking and flipping logic.
14698 (aarch64_sqrdmulh_lane<mode>): Likewise.
14699 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14700 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14701 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14702 attribute of operand 3 to VCOND.
14703 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14704 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14705 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14706 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14707 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14708 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14709 define_insn.
14710 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14711 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14712 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14713 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14714 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14715 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14716 operand to VCOND. Update lane flipping and bounds checking logic.
14717 (aarch64_sqdmlal2_lane<mode>): Likewise.
14718 (aarch64_sqdmlsl_lane<mode>): Likewise.
14719 (aarch64_sqdmull_lane<mode>): Likewise.
14720 (aarch64_sqdmull2_lane<mode>): Likewise.
14721 (aarch64_sqdmlal_laneq<mode>):
14722 Replace VCON usage with VCONQ.
14723 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14724 (aarch64_sqdmlal2_laneq<mode>): Emit
14725 aarch64_sqdmlal2_laneq<mode>_internal insn.
14726 Replace VCON with VCONQ.
14727 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14728 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14729 (aarch64_sqdmull_laneq<mode>): Emit
14730 aarch64_sqdmull_laneq<mode>_internal insn.
14731 Replace VCON with VCONQ.
14732 (aarch64_sqdmull2_laneq<mode>): Emit
14733 aarch64_sqdmull2_laneq<mode>_internal insn.
14734 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14735 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14736 of 3rd argument to int16x4_t.
14737 (vqdmlalh_lane_s16): Likewise.
14738 (vqdmlslh_lane_s16): Likewise.
14739 (vqdmull_high_lane_s16): Likewise.
14740 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
14741 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
14742 (vqdmlsl_lane_s16): Likewise.
14743 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
14744 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
14745 (vqdmlals_lane_s32): Likewise.
14746 (vqdmlsls_lane_s32): Likewise.
14747 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
14748 (vqdmulls_lane_s32): Likewise.
14749 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
14750 (vqdmlsl_lane_s32): Likewise.
14751 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
14752 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
14753 (vqrdmulhh_lane_s16): Likewise.
14754 (vqdmlsl_high_lane_s16): Likewise.
14755 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
14756 (vqdmlsl_high_lane_s32): Likewise.
14757 (vqrdmulhs_lane_s32): Likewise.
14758
14759 2014-06-20 Tom de Vries <tom@codesourcery.com>
14760
14761 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
14762 get_call_reg_set_usage.
14763
14764 2014-06-20 Tom de Vries <tom@codesourcery.com>
14765
14766 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
14767 it contains all call_used_regs.
14768
14769 2014-06-20 Tom de Vries <tom@codesourcery.com>
14770
14771 * final.c (collect_fn_hard_reg_usage): Add and use variable
14772 function_used_regs.
14773
14774 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14775
14776 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
14777 (set_init_priority, get_init_priority, set_fini_priority,
14778 get_fini_priority): New methods.
14779 * tree.c (init_priority_for_decl): Remove.
14780 (init_ttree): Do not initialize init priority.
14781 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
14782 (decl_priority_info): Remove.
14783 (decl_init_priority_insert): Rewrite.
14784 (decl_fini_priority_insert): Rewrite.
14785 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
14786 tree_priority_map_marked_p): Remove.
14787 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
14788 * lto-streamer-out.c (hash_tree): Do not hash priorities.
14789 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
14790 not output priorities.
14791 (pack_ts_function_decl_value_fields): Likewise.
14792 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14793 not input priorities.
14794 (unpack_ts_function_decl_value_fields): Likewise.
14795 * symtab.c (symbol_priority_map): Declare.
14796 (init_priority_hash): Declare.
14797 (symtab_unregister_node): Unregister from priority hash, too.
14798 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
14799 New methods.
14800 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
14801 (symbol_priority_info): New function.
14802 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
14803 New methods.
14804 * tree-core.h (tree_priority_map): Remove.
14805
14806 2014-06-20 Jakub Jelinek <jakub@redhat.com>
14807
14808 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
14809 0xff to uint64_t before shifting it up.
14810
14811 2014-06-20 Julian Brown <julian@codesourcery.com>
14812 Chung-Lin Tang <cltang@codesourcery.com>
14813
14814 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
14815 TARGET_THUMB1_ONLY. Add comments.
14816
14817 2014-06-19 Tom de Vries <tom@codesourcery.com>
14818
14819 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
14820 return type to void.
14821 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
14822
14823 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14824
14825 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
14826 as "move", from depends_on.
14827
14828 2014-06-19 Terry Guo <terry.guo@arm.com>
14829
14830 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
14831 stage.
14832
14833 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
14834
14835 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
14836 Remove cr5.
14837 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
14838
14839 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14840
14841 PR target/61550
14842 * config/sh/sh.c (prepare_move_operands): Don't process TLS
14843 addresses here if reload in progress or completed.
14844
14845 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14846
14847 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
14848 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
14849 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
14850 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
14851 (mips_register_priority): New function that implements the target
14852 hook TARGET_REGISTER_PRIORITY.
14853 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
14854 (mips_lra_p): Likewise for TARGET_LRA_P.
14855 (TARGET_REGISTER_PRIORITY): Define macro.
14856 (TARGET_SPILL_CLASS): Likewise.
14857 (TARGET_LRA_P): Likewise.
14858 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
14859 classes.
14860 (REG_CLASS_NAMES): Likewise.
14861 (REG_CLASS_CONTENTS): Likewise.
14862 (BASE_REG_CLASS): Use M16_SP_REGS.
14863 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
14864 New set attribute to enable alternatives depending on the register
14865 allocator used.
14866 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
14867 (*lea64): Disable pattern for MIPS16.
14868 * config/mips/mips.opt (mlra): New option.
14869
14870 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14871
14872 * lra-constraints.c (base_to_reg): New function.
14873 (process_address): Use new function.
14874
14875 2014-06-18 Tom de Vries <tom@codesourcery.com>
14876
14877 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
14878 * config/aarch64/aarch64.c
14879 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
14880 (aarch64_emit_call_insn): New function.
14881 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
14882 of emit_call_insn.
14883 * config/aarch64/aarch64.md (define_expand "call_internal")
14884 (define_expand "call_value_internal", define_expand "sibcall_internal")
14885 (define_expand "sibcall_value_internal"): New.
14886 (define_expand "call", define_expand "call_value")
14887 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
14888 expand variant and aarch64_emit_call_insn.
14889
14890 2014-06-18 Radovan Obradovic <robradovic@mips.com>
14891 Tom de Vries <tom@codesourcery.com>
14892
14893 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
14894 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14895 Redefine to true.
14896 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
14897 clobbers to CALL_INSN_FUNCTION_USAGE.
14898 (define_expand "sibcall_internal")
14899 (define_expand "sibcall_value_internal"): New.
14900 (define_expand "call", define_expand "call_value"): Add argument to
14901 arm_emit_call_insn.
14902 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
14903 (define_expand "sibcall_value"): Use sibcall_value_internal and
14904 arm_emit_call_insn.
14905
14906 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14907
14908 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
14909
14910 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14911
14912 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
14913 __udivmoddi4.
14914
14915 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14916
14917 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
14918 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
14919 annotations. Fix DWARF information.
14920
14921 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14922
14923 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
14924 __udivmoddi4, and fixups for negative operands.
14925
14926 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14927
14928 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
14929
14930 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14931
14932 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
14933 to __udivmoddi4.
14934
14935 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14936
14937 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
14938 manipulation.
14939
14940 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14941
14942 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
14943 describing register usage on function entry and exit.
14944
14945 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14946
14947 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
14948 (__aeabi_ldivmod): Fix whitespace.
14949
14950 2014-06-18 Andreas Schwab <schwab@suse.de>
14951
14952 * doc/md.texi (Standard Names): Use @itemx for grouped items.
14953 Remove blank line after @item.
14954
14955 2014-06-18 Richard Henderson <rth@redhat.com>
14956
14957 PR target/61545
14958 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
14959
14960 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14961
14962 * config/arm/arm.c (neon_vector_mem_operand): Allow register
14963 POST_MODIFY for neon loads and stores.
14964 (arm_print_operand): Output post-index register for neon loads and
14965 stores.
14966
14967 2014-06-18 Richard Biener <rguenther@suse.de>
14968
14969 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
14970
14971 2014-06-18 Richard Biener <rguenther@suse.de>
14972
14973 * tree-pass.h (make_pass_dce_loop): Remove.
14974 * passes.def: Replace pass_dce_loop with pass_dce.
14975 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
14976 changed free niter estimates and reset the scev cache.
14977 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
14978 make_pass_dce_loop): Remove.
14979 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
14980 (fini_copy_prop): Return whether something changed. Always
14981 let substitute_and_fold perform DCE and free niter estimates
14982 and reset the scev cache if so.
14983 (execute_copy_prop): If sth changed schedule cleanup-cfg.
14984 (pass_data_copy_prop): Do not unconditionally schedule
14985 cleanup-cfg or update-ssa.
14986
14987 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14988
14989 PR tree-optimization/61518
14990 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14991 reduction var is used in reduction stmt or phi-function only.
14992
14993 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14994
14995 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
14996
14997 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
14998
14999 PR tree-optimization/61517
15000 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15001 whose rhs's first tree is the source expression instead of the
15002 expression itself.
15003 (find_bswap_or_nop): Likewise.
15004 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15005 gimple stmt whose rhs's first tree is the source. In the memory source
15006 case, move the stmt to be replaced close to one of the original load to
15007 avoid the problem of a store between the load and the stmt's original
15008 location.
15009 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15010 signature.
15011
15012 2014-06-18 Andreas Schwab <schwab@suse.de>
15013
15014 PR rtl-optimization/54555
15015 * postreload.c (move2add_use_add2_insn): Substitute
15016 STRICT_LOW_PART only if it is cheaper.
15017
15018 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15019
15020 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15021 Do not use unspec as call operand. Use memory_operand instead of
15022 memory_nox32_operand and add "m" operand constraint. Disable
15023 pattern for TARGET_X32.
15024 (*sibcall_pop_memory): Ditto.
15025 (*sibcall_value_memory): Ditto.
15026 (*sibcall_value_pop_memory): Ditto.
15027 (sibcall peepholes): Merge SImode and DImode patterns using
15028 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15029 Disable pattern for TARGET_X32. Check if eliminated register is
15030 really dead after call insn. Generate call RTX without unspec operand.
15031 (sibcall_value peepholes): Ditto.
15032 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15033 instead of memory_nox32_operand. Check if eliminated register is
15034 really dead after call insn. Generate call RTX without unspec operand.
15035 (sibcall_value_pop peepholes): Ditto.
15036 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15037
15038 2014-06-18 Terry Guo <terry.guo@arm.com>
15039
15040 PR target/61544
15041 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15042 reach the head.
15043
15044 2014-06-18 Olivier Hainque <hainque@adacore.com>
15045
15046 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15047 memorization of the end of block source location.
15048 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15049 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15050 end source location info we have on the block entry/exit code we
15051 generate.
15052
15053 2014-06-18 Richard Biener <rguenther@suse.de>
15054
15055 * common.opt (fssa-phiopt): New option.
15056 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15057 but not with -Og.
15058 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15059 * doc/invoke.texi (-fssa-phiopt): Document.
15060
15061 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15062
15063 * genattrtab.c (n_bypassed): New variable.
15064 (process_bypasses): Initialise n_bypassed.
15065 Count number of bypassed reservations.
15066 (make_automaton_attrs): Allocate space for bypassed reservations
15067 rather than number of bypasses.
15068
15069 2014-06-18 Richard Biener <rguenther@suse.de>
15070
15071 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15072 we propagated anything.
15073 (substitute_and_fold_dom_walker::before_dom_children): Something
15074 changed if we propagated into PHI arguments.
15075 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15076 we removed a stmt.
15077
15078 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15079
15080 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15081 vector case.
15082 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15083 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15084 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15085 Introduces alternative way of loads group permutaions.
15086 (vect_transform_grouped_load): Try alternative way of permutations.
15087
15088 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15089
15090 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15091 changed in ORT_TARGET region, don't jump to do_outer.
15092 (struct gimplify_adjust_omp_clauses_data): New type.
15093 (gimplify_adjust_omp_clauses_1): Adjust for data being
15094 a struct gimplify_adjust_omp_clauses_data pointer instead
15095 of tree *. Pass pre_p as a new argument to
15096 lang_hooks.decls.omp_finish_clause hook.
15097 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15098 splay_tree_foreach to pass both list_p and pre_p.
15099 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15100 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15101 gimplify_adjust_omp_clauses callers.
15102 * langhooks.c (lhd_omp_finish_clause): New function.
15103 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15104 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15105 * langhooks.h (struct lang_hooks_for_decls): Add a new
15106 gimple_seq * argument to omp_finish_clause hook.
15107 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15108 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15109 (scan_omp_parallel, lower_omp_for): When adding
15110 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15111 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15112 * tree-nested.c (convert_nonlocal_omp_clauses,
15113 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15114 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15115
15116 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15117
15118 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15119 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15120
15121 2014-06-17 Xinliang David Li <davidxl@google.com>
15122
15123 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15124 * passes.c (pass_init_dump_file): Do not set initialize
15125 flag to false unconditionally.
15126
15127 2014-06-17 Richard Biener <rguenther@suse.de>
15128
15129 * genopinit.c (main): Use vec<>::qsort method.
15130 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15131 Likewise.
15132 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15133
15134 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15135
15136 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15137 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15138 (mips_move_to_gpr_cost): Remove ST_REGS case.
15139 (mips_move_from_gpr_cost): Likewise.
15140 (mips_register_move_cost): Likewise.
15141 (mips_secondary_reload_class): Likewise.
15142
15143 2014-06-17 Richard Biener <rguenther@suse.de>
15144
15145 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15146 (pass_all_optimizations): Move 3rd copy-prop pass from after
15147 fre to before ifcombine/phiopt.
15148
15149 2014-06-17 Richard Biener <rguenther@suse.de>
15150
15151 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15152 and allow all blocks to be forwarders.
15153
15154 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15155
15156 PR target/61483
15157 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15158 variable 'size'; calculate 'size' right in the front; use
15159 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15160 pcum->aapcs_stack_words.
15161
15162 2014-06-17 Nick Clifton <nickc@redhat.com>
15163
15164 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15165 (umulhi3, mulsidi3, umulsidi3): Likewise.
15166
15167 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15168
15169 PR middle-end/61508
15170 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15171 check for section name.
15172
15173 2014-06-17 Richard Biener <rguenther@suse.de>
15174
15175 * tree-ssa-propagate.c: Include domwalk.h.
15176 (substitute_and_fold): Outline main worker into a domwalker ...
15177 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15178 Schedule stmts we can fully propagate for removal. Remove
15179 poor-mans DCE.
15180 (substitute_and_fold): Apply a dominator walk to perform
15181 substitution. Process stmts scheduled for removal here.
15182
15183 2014-06-17 Richard Biener <rguenther@suse.de>
15184
15185 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15186 of PHI node moving.
15187
15188 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15189
15190 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15191 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15192 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15193 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15194 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15195 TARGET_HARD_FLOAT.
15196 (get_fpscr) : Likewise.
15197
15198 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15199
15200 PR rtl-optimization/61325
15201 * lra-constraints.c (valid_address_p): Add forward declaration.
15202 (simplify_operand_subreg): Check address validity before and after
15203 alter_reg of memory subreg.
15204
15205 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15206
15207 * config/i386/i386.c (decide_alg): Correctly handle
15208 maximum size of stringop algorithm.
15209
15210 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15211
15212 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15213
15214 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15215
15216 PR rtl-optimization/61522
15217 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15218
15219 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15220
15221 Revert:
15222 * symtab.c (symtab_node::reset_section): New method.
15223 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15224 for localization.
15225 * cgraph.h (reset_section): Declare.
15226 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15227 do not consider comdat locals.
15228 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15229 for new symbol.
15230 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15231 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15232 reset sections of symbols dragged out of the comdats.
15233 (function_and_variable_visibility): Reset sections of
15234 localized symbols.
15235
15236 2014-06-16 Richard Biener <rguenther@suse.de>
15237
15238 PR tree-optimization/61482
15239 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15240 [-INF(OVF), +INF(OVF)] range.
15241
15242 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15243
15244 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15245 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15246 handling 32-bit multiplication.
15247
15248 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15249
15250 PR middle-end/61430
15251 * lra-lives.c (process_bb_lives): Skip creating copy during
15252 insn scan when src/dest has constrained to same regno.
15253
15254 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15255
15256 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15257 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15258
15259 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15260
15261 * asan.c (check_func): New function.
15262 (maybe_create_ssa_name): Likewise.
15263 (build_check_stmt_with_calls): Likewise.
15264 (use_calls_p): Likewise.
15265 (report_error_func): Change interface.
15266 (build_check_stmt): Allow non-integer lengths; add support
15267 for new parameter.
15268 (asan_instrument): Likewise.
15269 (instrument_mem_region_access): Moved code to build_check_stmt.
15270 (instrument_derefs): Likewise.
15271 (instrument_strlen_call): Likewise.
15272 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15273 * doc/invoke.texi: Describe new parameter.
15274 * params.def: Define new parameter.
15275 * params.h: Likewise.
15276 * sanitizer.def: Describe new builtins.
15277
15278 2014-06-16 Richard Biener <rguenther@suse.de>
15279
15280 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15281 Make all defs available at the end.
15282 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15283
15284 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15285
15286 PR plugins/45078
15287 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15288
15289 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15290
15291 PR bootstrap/61516
15292 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15293 initialization. Replace remaining use of uid.
15294
15295 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15296
15297 * c-family/c-common.c (handle_tls_model_attribute): Use
15298 set_decl_tls_model.
15299 * c-family/c-common.c (handle_tls_model_attribute): Use
15300 set_decl_tls_model.
15301 * cgraph.h (struct varpool_node): Add tls_model.
15302 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15303 * tree.h (DECL_TLS_MODEL): Update.
15304 (DECL_THREAD_LOCAL_P): Check that variable is static.
15305 (decl_tls_model): Declare.
15306 (set_decl_tls_model): Declare.
15307 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15308 set symbol prorperties.
15309 (get_emutls_init_templ_addr): Cleanup.
15310 (new_emutls_decl): Update.
15311 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15312 (lto_input_varpool_node): Likewise.
15313 * lto-streamer-out.c (hash_tree): Likewise.
15314 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15315 not stream DECL_TLS_MODEL.
15316 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15317 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15318
15319 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15320
15321 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15322
15323 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15324
15325 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15326 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15327 lists.
15328 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15329 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15330 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15331 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15332 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15333 (df_get_artificial_defs, df_get_artificial_uses)
15334 (df_single_def, df_single_use): Update accordingly.
15335 (df_refs_chain_dump): Take the first element in a linked list as
15336 parameter, rather than a pointer to an array of pointers.
15337 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15338 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15339 (df_chain_create_bb_process_use): Likewise.
15340 (df_md_bb_local_compute_process_def): Likewise.
15341 * fwprop.c (process_defs, process_uses): Likewise.
15342 (register_active_defs, update_uses): Likewise.
15343 (forward_propagate_asm): Update for new df_ref linking.
15344 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15345 (df_null_ref_rec, df_null_mw_rec): Likewise.
15346 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15347 explicitly.
15348 (df_scan_free_bb_info): Remove check for null artificial_defs.
15349 (df_install_ref_incremental): Adjust for new df_ref linking.
15350 Use a single-element insertion rather than a full sort.
15351 (df_ref_chain_delete_du_chain): Take the first element
15352 in a linked list as parameter, rather than a pointer to an array of
15353 pointers.
15354 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15355 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15356 (df_insn_info_delete): Remove check for null defs and call to
15357 df_scan_free_mws_vec.
15358 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15359 null rather than df_null_*_rec.
15360 (df_insn_rescan_debug_internal): Likewise, and update null
15361 checks in the same way. Remove check for null defs.
15362 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15363 Move a single element rather doing a full sort.
15364 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15365 linking.
15366 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
15367 Initialize df_ref and df_mw_hardreg lists to null rather than
15368 df_null_*_rec.
15369 (df_ref_compare): Take df_refs as parameter, transferring the
15370 old interface to...
15371 (df_ref_ptr_compare): ...this new function.
15372 (df_sort_and_compress_refs): Update accordingly.
15373 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15374 old interface to...
15375 (df_mw_ptr_compare): ...this new function.
15376 (df_sort_and_compress_mws): Update accordingly.
15377 (df_install_refs, df_install_mws): Return a linked list rather than
15378 an array of pointers.
15379 (df_refs_add_to_chains): Assert that old lists are empty rather
15380 than freeing them.
15381 (df_insn_refs_verify): Don't handle null defs speciailly.
15382 * web.c (union_match_dups): Update for new df_ref linking.
15383
15384 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15385
15386 * df.h (df_ref_create, df_ref_remove): Delete.
15387 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15388 (df_ref_remove): Likewise.
15389
15390 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15391
15392 * df.h (df_single_def, df_single_use): New functions.
15393 * ira.c (find_moveable_pseudos): Use them.
15394
15395 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15396
15397 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15398 * df-problems.c (df_note_bb_compute): Use it.
15399 * regstat.c (regstat_bb_compute_ri): Likewise.
15400
15401 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15402
15403 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15404 * cse.c (cse_extended_basic_block): Use them.
15405 * dce.c (mark_artificial_use): Likewise.
15406 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15407 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15408 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15409 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15410 (df_simulate_initialize_backwards): Likewise.
15411 (df_simulate_finalize_backwards): Likewise.
15412 (df_simulate_initialize_forwards): Likewise.
15413 (df_md_simulate_artificial_defs_at_top): Likewise.
15414 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15415 * regrename.c (init_rename_info): Likewise.
15416 * regstat.c (regstat_bb_compute_ri): Likewise.
15417 (regstat_bb_compute_calls_crossed): Likewise.
15418
15419 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15420
15421 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15422 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15423 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15424 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15425 * combine.c (create_log_links): Likewise.
15426 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15427 (try_eliminate_compare): Likewise.
15428 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15429 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15430 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15431 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15432 (word_dce_process_block, dce_process_block): Likewise.
15433 * ddg.c (def_has_ccmode_p): Likewise.
15434 * df-core.c (df_bb_regno_first_def_find): Likewise.
15435 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15436 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15437 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15438 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15439 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15440 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15441 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15442 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15443 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15444 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15445 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15446 * fwprop.c (local_ref_killed_between_p): Likewise.
15447 (all_uses_available_at, free_load_extend): Likewise.
15448 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15449 * hw-doloop.c (scan_loop): Likewise.
15450 * ifcvt.c (dead_or_predicable): Likewise.
15451 * init-regs.c (initialize_uninitialized_regs): Likewise.
15452 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15453 (process_bb_node_lives): Likewise.
15454 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15455 (find_moveable_pseudos): Likewise.
15456 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15457 * recog.c (peep2_find_free_register): Likewise.
15458 * ree.c (get_defs): Likewise.
15459 * regstat.c (regstat_bb_compute_ri): Likewise.
15460 (regstat_bb_compute_calls_crossed): Likewise.
15461 * sched-deps.c (find_inc, find_mem): Likewise.
15462 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15463 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15464 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15465 (prepare_shrink_wrap): Likewise.
15466 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15467 * web.c (union_defs, pass_web::execute): Likewise.
15468 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15469 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15470
15471 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
15472
15473 * lra-assign.c (assign_by_spills): Add code to assign vector regs
15474 to inheritance pseudos.
15475 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15476
15477 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
15478
15479 PR target/61415
15480 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15481 (BU_MISC_2): Rename to ...
15482 (BU_LDBL128_2): ... this.
15483 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15484 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15485 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15486 RS6000_BTM_LDBL128.
15487 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15488 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15489 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15490 (unpacktf_1): Likewise.
15491 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15492 (__builtin_longdouble_dw1): Likewise.
15493 * doc/sourcebuild.texi (longdouble128): Document.
15494
15495 2014-06-13 Jeff Law <law@redhat.com>
15496
15497 PR rtl-optimization/61094
15498 PR rtl-optimization/61446
15499 * ree.c (combine_reaching_defs): Get the mode for the copy from
15500 the extension insn rather than the defining insn.
15501
15502 2014-06-13 Dehao Chen <dehao@google.com>
15503
15504 * dwarf2out.c (add_linkage_name): Emit more linkage name.
15505
15506 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
15507
15508 * doc/install.texi (--enable-linker-plugin-configure-flags)
15509 (--enable-linker-plugin-flags): Document new flags.
15510
15511 2014-06-13 Martin Jambor <mjambor@suse.cz>
15512
15513 PR ipa/61186
15514 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15515 cache_token if returning early.
15516
15517 2014-06-13 Nick Clifton <nickc@redhat.com>
15518
15519 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15520 requested alignment is active.
15521 (LABEL_ALIGN): Likewise.
15522 (LOOP_ALIGN): Likewise.
15523
15524 2014-06-13 Richard Biener <rguenther@suse.de>
15525
15526 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15527 Rewrite to propagate the VN result into all uses where
15528 possible and to remove stmts becoming dead because of that.
15529 (eliminate): Generalize stmt removal handling, remove in
15530 reverse dominator order to support proper debug stmt
15531 generation. Update stmts before removing stmts.
15532 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15533
15534 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15535
15536 PR tree-optimization/61375
15537 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15538 symbolic number cannot be represented in an uint64_t.
15539 (find_bswap_or_nop_1): Likewise.
15540
15541 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15542
15543 * symtab.c (symtab_node::reset_section): New method.
15544 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15545 for localization.
15546 * cgraph.h (reset_section): Declare.
15547 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15548 do not consider comdat locals.
15549 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15550 for new symbol.
15551 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15552 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15553 reset sections of symbols dragged out of the comdats.
15554 (function_and_variable_visibility): Reset sections of
15555 localized symbols.
15556
15557 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15558
15559 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15560 to use symtab and decl_binds_to_current_def_p
15561 * tree-vectorizer.c (increase_alignment): Increase alignment
15562 of alias target, too.
15563
15564 2014-06-12 Jakub Jelinek <jakub@redhat.com>
15565
15566 PR middle-end/61486
15567 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15568 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15569 if outer combined construct is distribute.
15570 (gimplify_omp_for): For OMP_DISTRIBUTE set
15571 gimplify_omp_ctxp->distribute.
15572 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15573 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15574 mapping into decl map.
15575
15576 2014-06-12 Jason Merrill <jason@redhat.com>
15577
15578 * common.opt (fabi-version): Change default to 0.
15579
15580 2014-06-12 Jason Merrill <jason@redhat.com>
15581
15582 * toplev.c (process_options): Reject -fabi-version=1.
15583
15584 2014-06-12 Jeff Law <law@redhat.com>
15585
15586 PR tree-optimization/61009
15587 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15588 value when we stop processing a block due to problematic PHIs.
15589
15590 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15591
15592 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15593 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15594 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15595 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15596 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15597 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15598 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15599 are not in the spec.
15600
15601 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15602
15603 PR target/59843
15604 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15605 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15606 Support V1DFmode.
15607
15608 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15609
15610 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15611
15612 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15613
15614 PR target/61443
15615 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15616 loading from address spaces.
15617
15618 2014-06-12 Martin Liska <mliska@suse.cz>
15619
15620 PR ipa/61462
15621 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15622 statement is reachable.
15623
15624 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15625
15626 * symtab.c (section_hash): New hash.
15627 (symtab_unregister_node): Clear section before freeing.
15628 (hash_section_hash_entry): New haser.
15629 (eq_sections): New function.
15630 (symtab_node::set_section_for_node): New method.
15631 (set_section_1): Update.
15632 (symtab_node::set_section): Take string instead of tree as parameter.
15633 (symtab_resolve_alias): Update.
15634 * cgraph.h (section_hash_entry_d): New structure.
15635 (section_hash_entry): New typedef.
15636 (cgraph_node): Change comdat_group_ to x_comdat_group,
15637 change section_ to x_section and turn into section_hash_entry;
15638 update accestors; put set_section_for_node offline.
15639 * tree.c (decl_section_name): Turn into string.
15640 (set_decl_section_name): Change parameter to be string.
15641 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15642 * sdbout.c (sdbout_one_type): Update.
15643 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15644 * varasm.c (IN_NAMED_SECTION, get_named_section,
15645 resolve_unique_section, hot_function_section, get_named_text_section,
15646 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15647 make_decl_rtl, default_unique_section): Update.
15648 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15649 (c6x_elf_unique_section): Update.
15650 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15651 * config/pa/pa.c (pa_function_section): Update.
15652 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15653 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15654 * config/arc/arc.c (arc_in_small_data_p): Update.
15655 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15656 * config/mcore/mcore.c (mcore_unique_section): Update.
15657 * config/mips/mips.c (mips16_build_function_stub): Update.
15658 (mips16_build_call_stub): Update.
15659 (mips_function_rodata_section): Update.
15660 (mips_in_small_data_p): Update.
15661 * config/score/score.c (score_in_small_data_p): Update.
15662 * config/rx/rx.c (rx_in_small_data): Update.
15663 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15664 (rs6000_xcoff_asm_named_section): Update.
15665 (rs6000_xcoff_unique_section): Update.
15666 * config/frv/frv.c (frv_string_begins_with): Update.
15667 (frv_in_small_data_p): Update.
15668 * config/v850/v850.c (v850_encode_data_area): Update.
15669 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15670 (bfin_handle_l1_data_attribute): Update.
15671 (bfin_handle_l2_attribute): Update.
15672 * config/mep/mep.c (mep_unique_section): Update.
15673 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15674 Update.
15675 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15676 (h8300_handle_tiny_data_attribute): Update.
15677 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15678 (m32r_in_small_data_p): Update.
15679 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15680 * config/i386/i386.c (ix86_in_large_data_p): Update.
15681 * config/i386/winnt.c (i386_pe_unique_section): Update.
15682 * config/darwin.c (darwin_function_section): Update.
15683 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15684 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15685 (new_emutls_decl): Update.
15686 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15687 input_varpool_node): Update.
15688 (ead_string_cst): Turn to ...
15689 (read_string): ... this one.
15690 * dwarf2out.c (secname_for_decl): Update.
15691 * asan.c (asan_protect_global): Update.
15692
15693 2014-06-11 DJ Delorie <dj@redhat.com>
15694
15695 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15696 cache lines.
15697 * config/rx/rx.c (rx_option_override): Likewise.
15698 (rx_align_for_label): Likewise.
15699
15700 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15701
15702 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15703
15704 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15705 prototype.
15706
15707 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15708
15709 * common.md: New file.
15710 * doc/md.texi: Update description of generic, machine-independent
15711 constraints.
15712 * config/s390/constraints.md (e): Delete.
15713 * Makefile.in (md_file): Include common.md.
15714 * config/m32c/t-m32c (md_file): Likewise.
15715 * genpreds.c (general_mem): New array.
15716 (generic_constraint_letters): Remove constraints now defined by
15717 common.md.
15718 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15719 Allow the first character to be '<' or '>' as well.
15720 * genoutput.c (general_mem): New array.
15721 (indep_constraints): Remove constraints now defined by common.md.
15722 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15723 Remove special handling of 'm'.
15724 * ira-costs.c (record_reg_classes): Remove special handling of
15725 constraints now defined by common.md.
15726 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15727 * ira-lives.c (single_reg_class): Likewise.
15728 (ira_implicitly_set_insn_hard_regs): Likewise.
15729 * lra-constraints.c (reg_class_from_constraints): Likewise.
15730 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15731 * postreload.c (reload_cse_simplify_operands): Likewise.
15732 * reload.c (push_secondary_reload, scratch_reload_class)
15733 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15734 * reload1.c (maybe_fix_stack_asms): Likewise.
15735 * targhooks.c (default_secondary_reload): Likewise.
15736 * stmt.c (parse_output_constraint): Likewise.
15737 * recog.c (preprocess_constraints): Likewise.
15738 (constrain_operands, peep2_find_free_register): Likewise.
15739 (asm_operand_ok): Likewise, but add a comment saying why 'o'
15740 must be handled specially.
15741
15742 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15743
15744 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
15745 * genpreds.c (have_const_dbl_constraints): Delete.
15746 (add_constraint): Don't set it.
15747 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
15748 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
15749 constraints using the lookup_constraint logic.
15750 * ira-lives.c (single_reg_class): Likewise.
15751 * ira.c (ira_setup_alts): Likewise.
15752 * lra-constraints.c (process_alt_operands): Likewise.
15753 * recog.c (asm_operand_ok, constrain_operands): Likewise.
15754 * reload.c (find_reloads): Likewise.
15755
15756 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15757
15758 * genpreds.c (const_int_start, const_int_end): New variables.
15759 (choose_enum_order): Output CONST_INT constraints before memory
15760 constraints.
15761 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
15762 Add CT_CONST_INT.
15763 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
15764 * ira.c (ira_setup_alts): Likewise.
15765 * lra-constraints.c (process_alt_operands): Likewise.
15766 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15767 * reload.c (find_reloads): Likewise.
15768
15769 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15770
15771 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
15772 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
15773 * recog.c (preprocess_constraints): Update accordingly.
15774
15775 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15776
15777 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
15778 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
15779 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
15780 * genpreds.c (print_type_tree): New function.
15781 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
15782 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
15783 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
15784 Write out enum constraint_type and get_constraint_type.
15785 * lra-constraints.c (satisfies_memory_constraint_p): Take a
15786 constraint_num rather than a constraint string.
15787 (satisfies_address_constraint_p): Likewise.
15788 (reg_class_from_constraints): Avoid old constraint macros.
15789 (process_alt_operands, process_address_1): Likewise.
15790 (curr_insn_transform): Likewise.
15791 * ira-costs.c (record_reg_classes): Likewise.
15792 (record_operand_costs): Likewise.
15793 * ira-lives.c (single_reg_class): Likewise.
15794 (ira_implicitly_set_insn_hard_regs): Likewise.
15795 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15796 * postreload.c (reload_cse_simplify_operands): Likewise.
15797 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15798 (constrain_operands, peep2_find_free_register): Likewise.
15799 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
15800 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15801 * reload1.c (maybe_fix_stack_asms): Likewise.
15802 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15803 * targhooks.c (default_secondary_reload): Likewise.
15804 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
15805 to EXTRA_CONSTRAINT_STR.
15806 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
15807
15808 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15809
15810 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
15811 (write_constraint_satisfied_p_array): ...this new function.
15812 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
15813 an array.
15814 (write_insn_preds_c): Update accordingly.
15815
15816 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15817
15818 * genpreds.c (write_lookup_constraint): Rename to...
15819 (write_lookup_constraint_1): ...this.
15820 (write_lookup_constraint_array): New function.
15821 (write_tm_preds_h): Define lookup_constraint as an inline function
15822 that uses write_lookup_constraint_array where possible.
15823 (write_insn_preds_c): Update for the changes above.
15824
15825 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15826
15827 * doc/md.texi (regclass_for_constraint): Rename to...
15828 (reg_class_for_constraint): ...this.
15829 * genpreds.c (num_constraints, enum_order, register_start)
15830 (register_end, satisfied_start, memory_start, memory_end)
15831 (address_start, address_end): New variables.
15832 (add_constraint): Count the number of constraints.
15833 (choose_enum_order): New function.
15834 (write_enum_constraint_num): Iterate over enum_order.
15835 (write_regclass_for_constraint): Rename to...
15836 (write_reg_class_for_constraint_1): ...this and update output
15837 accordingly.
15838 (write_constraint_satisfied_p): Rename to...
15839 (write_constraint_satisfied_p_1): ...this and update output
15840 accordingly. Do nothing if all extra constraints are register
15841 constraints.
15842 (write_insn_extra_memory_constraint): Delete.
15843 (write_insn_extra_address_constraint): Delete.
15844 (write_range_function): New function.
15845 (write_tm_preds_h): Define constraint_satisfied_p and
15846 reg_class_for_constraint as inline functions that do a range check
15847 before calling the out-of-line function. Use write_range_function
15848 to implement insn_extra_{register,memory,address}_constraint,
15849 the first of which is new.
15850 (write_insn_preds_c): Update after above changes to write_* functions.
15851 (main): Call choose_enum_order.
15852
15853 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
15854
15855 PR tree-optimization/61306
15856 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
15857 expression instead of its size.
15858 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
15859 false to prevent optimization when the result is unpredictable due to
15860 arithmetic right shift of signed type with highest byte is set.
15861 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
15862 (init_symbolic_number): Likewise.
15863 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
15864 when the result is unpredictable due to sign extension.
15865
15866 2014-06-11 Terry Guo <terry.guo@arm.com>
15867
15868 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
15869 (*thumb1_addsi3): Ditto.
15870 (*thumb_subdi3): Ditto.
15871 (thumb1_subsi3_insn): Ditto.
15872 (*thumb_mulsi3): Ditto.
15873 (*thumb_mulsi3_v6): Ditto.
15874 (*thumb1_andsi3_insn): Ditto.
15875 (thumb1_bicsi3): Ditto.
15876 (*thumb1_iorsi3_insn): Ditto.
15877 (*thumb1_xorsi3_insn): Ditto.
15878 (*thumb1_ashlsi3): Ditto.
15879 (*thumb1_ashrsi3): Ditto.
15880 (*thumb1_lshrsi3): Ditto.
15881 (*thumb1_rotrsi3): Ditto.
15882 (*thumb1_negdi2): Ditto.
15883 (*thumb1_negsi2): Ditto.
15884 (*thumb1_abssi2): Ditto.
15885 (*thumb1_neg_abssi2): Ditto.
15886 (*thumb1_one_cmplsi2): Ditto.
15887 (*thumb1_zero_extendhisi2): Ditto.
15888 (*thumb1_zero_extendqisi2): Ditto.
15889 (*thumb1_zero_extendqisi2_v6): Ditto.
15890 (thumb1_extendhisi2): Ditto.
15891 (thumb1_extendqisi2): Ditto.
15892 (*thumb1_movdi_insn): Ditto.
15893 (*thumb1_movsi_insn): Ditto.
15894 (*thumb1_movhi_insn): Ditto.
15895 (thumb_movhi_clobber): Ditto.
15896 (*thumb1_movqi_insn): Ditto.
15897 (*thumb1_movhf): Ditto.
15898 (*thumb1_movsf_insn): Ditto.
15899 (*thumb_movdf_insn): Ditto.
15900 (movmem12b): Ditto.
15901 (movmem8b): Ditto.
15902 (cbranchqi4): Ditto.
15903 (cbranchsi4_insn): Ditto.
15904 (cbranchsi4_scratch): Ditto.
15905 (*negated_cbranchsi4): Ditto.
15906 (*tbit_cbranch): Ditto.
15907 (*tlobits_cbranch): Ditto.
15908 (*tstsi3_cbranch): Ditto.
15909 (*cbranchne_decr1): Ditto.
15910 (*addsi3_cbranch): Ditto.
15911 (*addsi3_cbranch_scratch): Ditto.
15912 (*thumb_cmpdi_zero): Ditto.
15913 (cstoresi_eq0_thumb1): Ditto.
15914 (cstoresi_ne0_thumb1): Ditto.
15915 (*cstoresi_eq0_thumb1_insn): Ditto.
15916 (*cstoresi_ne0_thumb1_insn): Ditto.
15917 (cstoresi_nltu_thumb1): Ditto.
15918 (cstoresi_ltu_thumb1): Ditto.
15919 (thumb1_addsi3_addgeu): Ditto.
15920 (*thumb_jump): Ditto.
15921 (*call_reg_thumb1_v5): Ditto.
15922 (*call_reg_thumb1): Ditto.
15923 (*call_value_reg_thumb1_v5): Ditto.
15924 (*call_value_reg_thumb1): Ditto.
15925 (*call_insn): Ditto.
15926 (*call_value_insn): Ditto.
15927 (thumb1_casesi_internal_pic): Ditto.
15928 (thumb1_casesi_dispatch): Ditto.
15929 (*thumb1_indirect_jump): Ditto.
15930 (prologue_thumb1_interwork): Ditto.
15931 (*epilogue_insns): Ditto.
15932 (consttable_1): Ditto.
15933 (consttable_2): Ditto.
15934 (tablejump): Ditto.
15935 (*thumb1_tablejump): Ditto.
15936 (thumb_eh_return): Ditto.
15937 (define_peephole2): Two of them are thumb1 only and got moved into
15938 new file thumb1.md.
15939 (define_split): Six of them are thumb1 only and got moved into new
15940 file thumb1.md.
15941 * config/arm/thumb1.md: New file comprised of above thumb1 only
15942 patterns.
15943
15944 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15945
15946 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
15947 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
15948 dependencies.
15949 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
15950 (aarch64_crc_builtin_datum): New struct.
15951 (aarch64_crc_builtin_data): New.
15952 (aarch64_init_crc32_builtins): New function.
15953 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
15954 (aarch64_crc32_expand_builtin): New.
15955 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
15956 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15957 __ARM_FEATURE_CRC32 when appropriate.
15958 (TARGET_CRC32): Define.
15959 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
15960 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
15961 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
15962 (aarch64_<crc_variant>): New pattern.
15963 * config/aarch64/arm_acle.h: New file.
15964 * config/aarch64/iterators.md (CRC): New int iterator.
15965 (crc_variant, crc_mode): New int attributes.
15966 * doc/aarch64-acle-intrinsics.texi: New file.
15967 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
15968 Include aarch64-acle-intrinsics.texi.
15969
15970 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
15971
15972 * tree-vect-data-refs.c (vect_grouped_store_supported): New
15973 check for stores group of length 3.
15974 (vect_permute_store_chain): New permutations for stores group of
15975 length 3.
15976 * tree-vect-stmts.c (vect_model_store_cost): Change cost
15977 of vec_perm_shuffle for the new permutations.
15978
15979 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15980
15981 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
15982 table rewriting temporarily on targets not supporting ONE_ONLY.
15983
15984 2014-06-11 Richard Biener <rguenther@suse.de>
15985
15986 PR middle-end/61437
15987 Revert
15988 2014-06-04 Richard Biener <rguenther@suse.de>
15989
15990 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15991 TREE_PUBLIC and DECL_EXTERNAL decls.
15992
15993 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15994
15995 * varasm.c (set_implicit_section): New function.
15996 (resolve_unique_section): Use it to set implicit section
15997 for aliases, too.
15998 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
15999 (default_function_section): Likewise.
16000 (decl_binds_to_current_def_p): Constify argument.
16001 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16002 * asan.c (asan_protect_global): Use
16003 symtab_get_node (decl)->implicit_section.
16004 * symtab.c (dump_symtab_base): Dump implicit sections.
16005 (verify_symtab_base): Verify sanity of sectoins and comdats.
16006 (symtab_resolve_alias): Alias share the section of its target.
16007 (set_section_1): New function.
16008 (symtab_node::set_section): Move here, recurse to aliases.
16009 (verify_symtab): Check for duplicated symtab lists.
16010 * tree-core.h (implicit_section_name_p): Remove.
16011 * tree-vect-data-refs.c: Include varasm.h.
16012 (vect_can_force_dr_alignment_p): Fix conditional on when
16013 decl bints to current definition; use
16014 symtab_get_node (decl)->implicit_section.
16015 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16016 * cgraph.h (struct symtab_node): Add implicit_section.
16017 (set_section): Rename to ...
16018 (set_section_for_node): ... this one.
16019 (set_section): Declare.
16020 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16021 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16022 input_overwrite_node, input_varpool_node): Stream implicit_section.
16023 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16024 removal; it will fail in LTO.
16025
16026 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16027
16028 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16029 Change second alternative type to f_mcr.
16030 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16031 and 12th alternatives' types to f_mcr and f_mrc.
16032 (*movdi_aarch64): Same for 12th and 13th alternatives.
16033 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16034 (aarch64_movtilow_tilow): Change type to fmov.
16035
16036 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16037
16038 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16039 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16040
16041 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16042
16043 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16044 New expander.
16045 (aarch64_sqrdmulh_lane<mode>): Likewise.
16046 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16047 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16048 (aarch64_sqdmulh_laneq<mode>): New expander.
16049 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16050 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16051 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16052 (aarch64_sqdmulh_lane<mode>): New expander.
16053 (aarch64_sqrdmulh_lane<mode>): Likewise.
16054 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16055 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16056 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16057 (aarch64_sqdmlal_laneq<mode>): Likewise.
16058 (aarch64_sqdmlsl_lane<mode>): Likewise.
16059 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16060 (aarch64_sqdmlal2_lane<mode>): Likewise.
16061 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16062 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16063 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16064 (aarch64_sqdmull_lane<mode>): Likewise.
16065 (aarch64_sqdmull_laneq<mode>): Likewise.
16066 (aarch64_sqdmull2_lane<mode>): Likewise.
16067 (aarch64_sqdmull2_laneq<mode>): Likewise.
16068
16069 2014-06-10 Richard Biener <rguenther@suse.de>
16070
16071 PR tree-optimization/61438
16072 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16073 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16074 insertion of IVs if running PRE.
16075 (eliminate): Adjust.
16076 (pass_pre::execute): Likewise.
16077 (pass_fre::execute): Likewise.
16078
16079 2014-06-10 Richard Biener <rguenther@suse.de>
16080
16081 PR middle-end/61456
16082 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16083 Do not use the main variant for the type comparison.
16084 (ncr_compar): Likewise.
16085 (nonoverlapping_component_refs_p): Likewise.
16086
16087 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16088
16089 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16090 REG_CFA_RESTORE mode.
16091
16092 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16093
16094 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16095 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16096 expand_vec_perm_pblendv.
16097
16098 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16099
16100 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16101 available.
16102 Simplify description of __crc32d and __crc32cd intrinsics.
16103 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16104 availability.
16105
16106 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16107
16108 PR lto/61334
16109 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16110 * config.in: Regenerate.
16111 * configure: Likewise.
16112
16113 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16114
16115 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16116 and public vars.
16117 (intersect_static_var_sets): Remove.
16118 (propagate): Do not prune local statics.
16119
16120 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16121
16122 PR fortran/60928
16123 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16124 Set lastprivate_firstprivate even if omp_private_outer_ref
16125 langhook returns true.
16126 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16127 langhook, call unshare_expr on new_var and call
16128 build_outer_var_ref to get the last argument.
16129
16130 2014-06-10 Marek Polacek <polacek@redhat.com>
16131
16132 PR c/60988
16133 * doc/extend.texi: Add cindex for transparent_union.
16134
16135 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16136
16137 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16138 init_symbolic_number ().
16139
16140 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16141
16142 PR middle-end/61141
16143 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16144 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16145 (verify_rtl_sharing): Likewise.
16146
16147 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16148
16149 PR c++/54442
16150 * tree.c (build_qualified_type): Use a canonical type for
16151 TYPE_CANONICAL.
16152
16153 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16154
16155 * config/arm/arm-modes.def: Remove XFmode.
16156
16157 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16158
16159 PR target/61062
16160 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16161 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16162 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16163 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16164 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16165 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16166 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16167 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16168 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16169
16170 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16171
16172 * tree-core.h (tree_decl_with_vis): Remove section_name.
16173
16174 2014-06-09 Kito Cheng <kito@0xlab.org>
16175
16176 * ira.c (ira): Don't call init_caller_save if LRA enabled
16177 since LRA use its own infrastructure to handle that.
16178
16179 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16180
16181 * symtab.c (dump_symtab_base): Update dumping.
16182 (symtab_make_decl_local): Clear only DECL_COMDAT.
16183 * tree-vect-data-refs.c (Check that variable is static before
16184 tampering with sections.
16185 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16186 (cgraph_create_virtual_clone): Likewise.
16187 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16188 (decl_section_name, set_decl_section_name): New accessors.
16189 (find_decls_types_r): Do not walk section name
16190 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16191 (decl_comdat_group, decl_comdat_group_id): Constify.
16192 (decl_section_name, set_decl_section_name): Update.
16193 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16194 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16195 (cgraph_make_node_local_1): Clear section and comdat group.
16196 * cgraph.h (set_comdat_group): Sanity check.
16197 (get_section, set_section): New.
16198 * ipa-comdats.c (ipa_comdats): Use get_section.
16199 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16200 * lto-streamer-out.c: Do not follow section names.
16201 * c-family/c-common.c (handle_section_attribute): Update.
16202 * lto-cgraph.c (lto_output_node): Output section.
16203 (lto_output_varpool_node): Likewise.
16204 (read_comdat_group): Rename to ...
16205 (read_identifier): ... this one.
16206 (read_string_cst): New function.
16207 (input_node, input_varpool_node): Input section names.
16208 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16209 (new_emutls_decl): Update.
16210 (secname_for_decl): Check section names only of static vars.
16211 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16212 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16213 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16214 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16215 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16216 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16217 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16218 * config/v850/v850.c (v850_insert_attributes): Likewise.
16219 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16220 Likewise.
16221 (h8300_handle_tiny_data_attribute): Likewise.
16222 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16223 (bfin_handle_l2_attribute): Likewise.
16224
16225 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16226
16227 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16228 remove static initializer.
16229
16230 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16231
16232 * varasm.c (use_blocks_for_decl_p): Check symbol table
16233 instead of alias attribute.
16234 (place_block_symbol): Recurse on aliases.
16235
16236 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16237
16238 * ipa-visibility.c: Include varasm.h
16239 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16240
16241 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16242
16243 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16244 outputting aliases.
16245
16246 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16247
16248 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16249 from test_insn into GGC space escape via SET_SRC.
16250
16251 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16252
16253 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16254 call statement, if any.
16255 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16256 statements, if any. Tidy up.
16257
16258 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16259
16260 PR target/61431
16261 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16262 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16263 handles swapping the two 64-bit double words on little endian
16264 systems. Include V1TImode and optionally TImode in VSX_LE so that
16265 these types are properly swapped. Change all of the insns and
16266 splits that do the 64-bit swaps to use VSX_LE.
16267 (vsx_le_perm_load_<mode>): Likewise.
16268 (vsx_le_perm_store_<mode>): Likewise.
16269 (splitters for little endian memory operations): Likewise.
16270 (vsx_xxpermdi2_le_<mode>): Likewise.
16271 (vsx_lxvd2x2_le_<mode>): Likewise.
16272 (vsx_stxvd2x2_le_<mode>): Likewise.
16273
16274 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16275
16276 PR target/61423
16277 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16278 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16279 and corresponding splitters. Zero extend general register
16280 or memory input operand to XMM temporary. Enable for
16281 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16282 (floatunssi<mode>2): Update expander predicate.
16283
16284 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16285
16286 PR rtl-optimization/61325
16287 * lra-constraints.c (process_address_1): Check scale equal to one
16288 to prevent transformation: base + scale * index => base + new_reg.
16289
16290 2014-06-06 Richard Biener <rguenther@suse.de>
16291
16292 PR tree-optimization/59299
16293 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16294 a def operand.
16295 (nearest_common_dominator_of_uses): Likewise.
16296 (statement_sink_location): Adjust. Support sinking loads.
16297
16298 2014-06-06 Martin Jambor <mjambor@suse.cz>
16299
16300 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16301 (build_agg_jump_func_from_list): Likewise.
16302 (determine_known_aggregate_parts): Renamed to
16303 determine_locally_known_aggregate_parts. Moved some functionality
16304 to the two functions above, removed bound checks.
16305
16306 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16307
16308 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16309 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16310 (aarch64_progress_pointer): Likewise.
16311 (aarch64_copy_one_part_and_move_pointers): Likewise.
16312 (aarch64_expand_movmen): Likewise.
16313 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16314 * config/aarch64/aarch64.md (movmem<mode>): New.
16315
16316 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16317
16318 * targhooks.c (default_add_stmt_cost): Call target specific
16319 hook instead of default one.
16320
16321 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16322
16323 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16324 endianness instead of host endianness.
16325 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16326 comments.
16327
16328 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16329
16330 PR debug/53927
16331 * function.c (instantiate_decls): Process the saved static chain.
16332 (expand_function_start): If not optimizing, save the static chain
16333 onto the stack.
16334 * tree-nested.c (convert_all_function_calls): Always create the static
16335 chain for nested functions if not optimizing.
16336
16337 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16338
16339 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16340
16341 2014-06-06 Richard Biener <rguenther@suse.de>
16342
16343 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16344 (construct_init_block): Likewise.
16345 (construct_exit_block): Likewise.
16346 (pass_expand::execute): Likewise.
16347 * graphite.c (graphite_transforms): Replace check for current_loops
16348 with a check for > 1 loops.
16349 (pass_graphite_transforms::execute): Adjust.
16350 * ipa-split.c (split_function): Remove check for current_loops.
16351 * omp-low.c (expand_parallel_call): Likewise.
16352 (expand_omp_for_init_counts): Likewise.
16353 (extract_omp_for_update_vars): Likewise.
16354 (expand_omp_for_generic): Likewise.
16355 (expand_omp_sections): Likewise.
16356 (expand_omp_target): Likewise.
16357 * tracer.c (tail_duplicate): Likewise.
16358 (pass_tracer::execute): Likewise.
16359 * trans-mem.c (expand_transaction): Likewise.
16360 * tree-complex.c (expand_complex_div_wide): Likewise.
16361 * tree-eh.c (lower_resx): Likewise.
16362 (cleanup_empty_eh_merge_phis): Likewise.
16363 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16364 current_loops with a check for > 1 loops.
16365 (pass_predcom::execute): Adjust.
16366 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16367 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16368 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16369 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16370 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16371 * tree-switch-conversion.c (process_switch): Likewise.
16372 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16373 * tree-vrp.c (vrp_visit_phi_node): Likewise.
16374 (execute_vrp): Likewise.
16375 * ubsan.c (ubsan_expand_null_ifn): Likewise.
16376
16377 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16378
16379 * rtl.h (insn_location): Declare.
16380 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16381 with UNKNOWN_LOCATION.
16382 * emit-rtl.c (insn_location): New function.
16383 * final.c (notice_source_line): Check that the instruction has a
16384 location before retrieving it and use insn_location.
16385 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16386 * print-rtl.c (print_rtx): Likewise.
16387
16388 2014-06-06 Richard Biener <rguenther@suse.de>
16389
16390 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16391
16392 2014-06-06 Christian Bruel <christian.bruel@st.com>
16393
16394 PR tree-optimization/43934
16395 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16396 cost.
16397
16398 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16399
16400 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16401 return NO_REGS for extra address and memory constraints. Handle
16402 operands that match (or are equivalent to something that matches)
16403 extra constant constraints. Ignore other non-register operands.
16404
16405 2014-06-06 Alan Modra <amodra@gmail.com>
16406
16407 PR target/61300
16408 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16409 * doc/tm.texi: Regenerate.
16410 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16411 Use throughout in place of REG_PARM_STACK_SPACE.
16412 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16413 "incoming" param. Pass to rs6000_function_parms_need_stack.
16414 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16415 prototype_p when incoming. Use function decl when incoming
16416 to handle K&R style functions.
16417 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16418 (INCOMING_REG_PARM_STACK_SPACE): Define.
16419
16420 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16421
16422 PR target/52472
16423 * cfgexpand.c (expand_debug_expr): Use address space of nested
16424 TREE_TYPE for ADDR_EXPR and MEM_REF.
16425
16426 2014-06-05 Jeff Law <law@redhat.com>
16427
16428 PR tree-optimization/61289
16429 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16430 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16431 looking for those which match LHS. All callers changed.
16432 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16433 parameters and code which manipulated them. All callers changed.
16434 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16435 and DST_MAP parameters. Simplify invalidation code by just calling
16436 invalidate_equivalences. All callers changed.
16437 (thread_across_edge): Simplify now that we don't need to maintain
16438 the map of equivalences to invalidate.
16439
16440 2014-06-05 Kai Tietz <ktietz@redhat.com>
16441 Richard Henderson <rth@redhat.com>
16442
16443 PR target/46219
16444 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16445 checking for !TARGET_X32.
16446 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16447 (sibcall_intern): New define_insn, plus required peepholes.
16448 (sibcall_pop_intern): Likewise.
16449 (sibcall_value_intern): Likewise.
16450 (sibcall_value_pop_intern): Likewise.
16451
16452 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16453
16454 * tree-inline.c (tree_function_versioning): Check DF info existence
16455 before accessing it.
16456
16457 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16458
16459 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16460 frame_size.
16461 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16462 aarch64_frame hard_fp_offset and frame_size.
16463 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16464 frame_size; remove original_frame_size.
16465 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16466 (aarch64_initial_elimination_offset): Remove frame_size and
16467 offset. Use aarch64_frame frame_size.
16468
16469 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16470 Jiong Wang <jiong.wang@arm.com>
16471 Renlin <renlin.li@arm.com>
16472
16473 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16474 initialization of R30 offset. Update offset. Iterate core
16475 regisers upto X30. Remove X29, X30 specific code.
16476
16477 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16478 Jiong Wang <jiong.wang@arm.com>
16479
16480 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16481 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16482 (aarch64_register_saved_on_entry): Adjust test.
16483
16484 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16485
16486 * config/aarch64/aarch64.h (machine_function): Move
16487 saved_varargs_size from here...
16488 (aarch64_frame): ... to here.
16489
16490 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16491 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16492 (aarch64_initial_elimination_offset)
16493 (aarch64_setup_incoming_varargs): Adjust location of
16494 saved_varargs_size.
16495
16496 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16497
16498 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16499 layout comment.
16500
16501 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
16502 Prachi Godbole <Prachi.Godbole@imgtec.com>
16503
16504 * config/mips/mips-cpus.def: Add definition for p5600. Updated
16505 mips32r5 entry to use PROCESSOR_P5600.
16506 * config/mips/mips-tables.opt: Regenerate.
16507 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16508 * config/mips/mips.c (mips_fmadd_bypass): New function.
16509 (mips_rtx_cost_data): Add costs for p5600.
16510 (mips_issue_rate): Add support for p5600.
16511 (mips_multipass_dfa_lookahead): Likewise.
16512 * config/mips/mips.h (TUNE_P5600): New define.
16513 (TUNE_MACC_CHAINS): Add TUNE_P5600.
16514 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16515 * config/mips/mips.md: Include p5600.md.
16516 (processor): Add p5600.
16517 * config/mips/p5600.md: New file.
16518
16519 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
16520
16521 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16522 * config/i386/predicates.md (palignr_operand): New.
16523 Indicates if permutation is suitable for palignr instruction.
16524
16525 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16526
16527 PR tree-optimization/61319
16528 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16529 stmt belongs to loop.
16530
16531 2014-06-05 Richard Biener <rguenther@suse.de>
16532
16533 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16534 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16535 (lookup_tmp_var): Adjust.
16536 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16537
16538 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16539
16540 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16541
16542 2014-06-05 Marek Polacek <polacek@redhat.com>
16543
16544 PR c/49706
16545 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16546
16547 2014-06-04 Tom de Vries <tom@codesourcery.com>
16548
16549 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16550 CONST_INT.
16551
16552 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16553
16554 PR tree-optimization/61385
16555 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16556
16557 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16558
16559 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
16560 changed to use fatal_error.
16561 (main): Ensure lto_wrapper_cleanup is run atexit.
16562
16563 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16564
16565 * lra-constraints.c (valid_address_p): Move earlier in file.
16566 (address_eliminator): New structure.
16567 (satisfies_memory_constraint_p): New function.
16568 (satisfies_address_constraint_p): Likewise.
16569 (process_alt_operands, process_address, curr_insn_transform): Use them.
16570
16571 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16572
16573 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16574 const pointer.
16575 (target_lra_int, default_target_lra_int, this_target_lra_int)
16576 (op_alt_data): Delete.
16577 * lra.h (lra_init): Delete.
16578 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16579 (init_insn_code_data_once): Remove op_alt_data handling.
16580 (finish_insn_code_data_once): Likewise.
16581 (init_op_alt_data): Delete.
16582 (get_static_insn_data): Initialize operand_alternative to null.
16583 (free_insn_recog_data): Cast operand_alternative before freeing it.
16584 (setup_operand_alternative): Take the operand_alternative as
16585 parameter and assume it isn't already cached in the static
16586 insn data.
16587 (lra_set_insn_recog_data): Update accordingly.
16588 (lra_init): Delete.
16589 * ira.c (ira_init): Don't call lra_init.
16590 * target-globals.h (this_target_lra_int): Declare.
16591 (target_globals): Remove lra_int.
16592 (restore_target_globals): Update accordingly.
16593 * target-globals.c: Don't include lra-int.h.
16594 (default_target_globals, save_target_globals): Remove lra_int.
16595
16596 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16597
16598 * recog.h (operand_alternative): Convert reg_class, reject,
16599 matched and matches into bitfields.
16600 (preprocess_constraints): New overload.
16601 (preprocess_insn_constraints): New function.
16602 (preprocess_constraints): Take the insn as parameter.
16603 (recog_op_alt): Change into a pointer.
16604 (target_recog): Add x_op_alt.
16605 * recog.c (asm_op_alt): New variable.
16606 (recog_op_alt): Change into a pointer.
16607 (preprocess_constraints): New overload, replacing the old function
16608 definition with one that doesn't use global state.
16609 (preprocess_insn_constraints): New function.
16610 (preprocess_constraints): Use them. Take the insn as parameter.
16611 Use asm_op_alt for asms.
16612 (recog_init): Free existing x_op_alt entries.
16613 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16614 pointer const.
16615 (make_early_clobber_and_input_conflicts): Likewise.
16616 (process_bb_node_lives): Pass the insn to process_constraints.
16617 * reg-stack.c (check_asm_stack_operands): Likewise.
16618 (subst_asm_stack_regs): Likewise.
16619 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16620 * regrename.c (build_def_use): Likewise.
16621 * sched-deps.c (sched_analyze_insn): Likewise.
16622 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16623 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16624 (note_invalid_constants): Likewise.
16625 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16626 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16627 const.
16628
16629 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16630
16631 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16632 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16633 alternatives.
16634 (make_early_clobber_and_input_conflicts): Likewise.
16635 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16636
16637 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16638
16639 * recog.h (alternative_class): New function.
16640 (which_op_alt): Return a const recog_op_alt.
16641 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16642 (subst_asm_stack_regs): Likewise.
16643 * config/arm/arm.c (note_invalid_constants): Likewise.
16644 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16645 the operand_alternative; use alternative class instead.
16646 * sel-sched.c (get_reg_class): Likewise.
16647 * regrename.c (build_def_use): Likewise.
16648 (hide_operands, restore_operands, record_out_operands): Update type
16649 accordingly.
16650
16651 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16652
16653 * recog.h (recog_op_alt): Convert to a flat array.
16654 (which_op_alt): New function.
16655 * recog.c (recog_op_alt): Convert to a flat array.
16656 (preprocess_constraints): Update accordingly, grouping all
16657 operands of the same alternative together, rather than the
16658 other way around.
16659 * ira-lives.c (check_and_make_def_conflict): Likewise.
16660 (make_early_clobber_and_input_conflicts): Likewise.
16661 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16662 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16663 (subst_asm_stack_regs): Likewise.
16664 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16665 * regrename.c (hide_operands, record_out_operands): Likewise.
16666 (build_def_use): Likewise.
16667 * sel-sched.c (get_reg_class): Likewise.
16668 * config/arm/arm.c (note_invalid_constants): Likewise.
16669
16670 2014-06-04 Jason Merrill <jason@redhat.com>
16671
16672 PR c++/51253
16673 PR c++/61382
16674 * gimplify.c (gimplify_arg): Non-static.
16675 * gimplify.h: Declare it.
16676
16677 2014-06-04 Richard Biener <rguenther@suse.de>
16678
16679 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16680 TREE_PUBLIC and DECL_EXTERNAL decls.
16681
16682 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16683
16684 * regcprop.c (copyprop_hardreg_forward_1): Account for
16685 HARD_REGNO_CALL_PART_CLOBBERED.
16686
16687 2014-06-04 Richard Biener <rguenther@suse.de>
16688
16689 * configure.ac: Check whether the underlying type of int64_t
16690 is long or long long.
16691 * configure: Regenerate.
16692 * config.in: Likewise.
16693 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16694 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16695
16696 2014-06-04 Richard Biener <rguenther@suse.de>
16697
16698 PR tree-optimization/60098
16699 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16700 we hit a kill.
16701 (dse_optimize_stmt): Simplify, now that we found a kill
16702 earlier.
16703
16704 2014-06-04 Richard Biener <rguenther@suse.de>
16705
16706 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16707 of accesses with non-invariant address.
16708
16709 2014-06-04 Martin Liska <mliska@suse.cz>
16710
16711 * cgraph.h (cgraph_make_wrapper): New function introduced.
16712 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16713 * ipa-inline.h (inline_analyze_function): The function is global.
16714 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16715
16716 2014-06-04 Martin Liska <mliska@suse.cz>
16717
16718 * tree.h (private_lookup_attribute_starting): New function.
16719 (lookup_attribute_starting): Likewise.
16720 * tree.c (private_lookup_attribute_starting): Likewise.
16721
16722 2014-06-04 Martin Liska <mliska@suse.cz>
16723
16724 * cgraph.h (expand_thunk): New argument added.
16725 (address_taken_from_non_vtable_p): New global function.
16726 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16727 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16728 * cgraphunit.c (analyze_function): Likewise.
16729 (assemble_thunks_and_aliases): Argument added to call.
16730 (expand_thunk): New argument forces to produce GIMPLE thunk.
16731
16732 2014-06-04 Martin Liska <mliska@suse.cz>
16733
16734 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16735 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16736 * profile.c (branch_prob): Likewise.
16737
16738 2014-06-04 Martin Jambor <mjambor@suse.cz>
16739
16740 PR ipa/61340
16741 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
16742 handler for switch on an ipa_ref_use enum.
16743 * ipa-reference.c (analyze_function): Likewise.
16744
16745 2014-06-04 Kai Tietz <ktietz@redhat.com>
16746
16747 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
16748 from old call-instruction.
16749
16750 2014-06-04 Bin Cheng <bin.cheng@arm.com>
16751
16752 * config/aarch64/aarch64.c (aarch64_classify_address)
16753 (aarch64_legitimize_reload_address): Support full addressing modes
16754 for vector modes.
16755 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
16756 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
16757
16758 2014-06-03 Andrew Pinski <apinski@cavium.com>
16759
16760 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
16761 for OP0.
16762
16763 2014-06-03 Andrew Pinski <apinski@cavium.com>
16764
16765 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
16766 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
16767
16768 2014-06-03 Kai Tietz <ktietz@redhat.com>
16769
16770 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
16771 for 64-bit ms-abi.
16772
16773 2014-06-03 Dehao Chen <dehao@google.com>
16774
16775 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
16776 the same loop.
16777
16778 2014-06-03 Marek Polacek <polacek@redhat.com>
16779
16780 PR c/60439
16781 * doc/invoke.texi: Document -Wswitch-bool.
16782 * function.c (stack_protect_epilogue): Cast controlling expression of
16783 the switch to int.
16784 * gengtype.c (walk_type): Generate switch expression with its
16785 controlling expression cast to int.
16786
16787 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
16788
16789 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
16790 and attiny841.
16791 * config/avr/avr-tables.opt: Regenerate.
16792 * config/avr/t-multilib: Regenerate.
16793 * doc/avr-mmcu.texi: Regenerate.
16794
16795 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
16796 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16797
16798 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
16799 (ata6617c, ata664251): Add new avr35 devices.
16800 (ata6612c): Add new avr4 device.
16801 (ata6613c, ata6614q): Add new avr5 devices.
16802 * config/avr/avr-tables.opt: Regenerate.
16803 * config/avr/t-multilib: Regenerate.
16804 * doc/avr-mmcu.texi: Regenerate.
16805
16806 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16807
16808 * gcc/config/aarch64/aarch64-builtins.c
16809 (aarch64_types_binop_ssu_qualifiers): New static data.
16810 (TYPES_BINOP_SSU): Define.
16811 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
16812 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
16813 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
16814 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
16815 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
16816 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
16817 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
16818 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
16819 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
16820 suffix to builtin function name, remove cast.
16821 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
16822 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
16823 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
16824
16825 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16826
16827 * gcc/config/aarch64/aarch64-builtins.c
16828 (aarch64_types_binop_uus_qualifiers,
16829 aarch64_types_shift_to_unsigned_qualifiers,
16830 aarch64_types_unsigned_shiftacc_qualifiers): Define.
16831 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
16832 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
16833 sqshlu_n, uqshl_n): Update qualifiers.
16834 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
16835 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
16836 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
16837 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
16838 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
16839 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
16840 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
16841 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
16842 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
16843 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
16844 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
16845 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
16846 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
16847 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
16848 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
16849 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
16850 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
16851 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
16852 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
16853 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
16854 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
16855 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
16856 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
16857 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
16858 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
16859 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
16860 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
16861
16862 2014-06-03 Teresa Johnson <tejohnson@google.com>
16863
16864 * tree-sra.c (modify_function): Record caller nodes after rebuild.
16865
16866 2014-06-02 Jason Merrill <jason@redhat.com>
16867
16868 PR c++/61020
16869 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
16870
16871 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16872
16873 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
16874 location == 0.
16875
16876 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16877
16878 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
16879 New pattern.
16880 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
16881 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
16882 * config/aarch64/iterators.md (REVERSE): New iterator.
16883 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
16884 (rev_op): New int_attribute.
16885 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
16886 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
16887 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
16888 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
16889 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
16890 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
16891 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
16892 Replace temporary __asm__ with __builtin_shuffle.
16893
16894 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16895
16896 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
16897 mips64r5.
16898 * config/mips/mips-tables.opt: Regenerate.
16899 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
16900 to use mips_isa_rev rather than ISA_MIPS32R2.
16901 * config/mips/mips.h (ISA_MIPS32R3): New define.
16902 (ISA_MIPS32R5): New define.
16903 (ISA_MIPS64R3): New define.
16904 (ISA_MIPS64R5): New define.
16905 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
16906 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
16907 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
16908 and mips64r5.
16909 (MIPS_ISA_SYNCI_SPEC): Likewise.
16910 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
16911 (LINK_SPEC): Added mips32r3 and mips32r5.
16912 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
16913 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
16914 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
16915 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
16916 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
16917 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
16918 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
16919
16920 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16921
16922 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
16923 options.
16924 * config/mips/mips.opt (mxpa): New option.
16925 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
16926 assembler.
16927
16928 2014-06-03 Martin Jambor <mjambor@suse.cz>
16929
16930 PR ipa/61160
16931 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
16932 thunks.
16933
16934 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
16935
16936 PR tree-optimization/61328
16937 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
16938 initialization from find_bswap_or_nop_1.
16939 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
16940 in source_expr2 before using the size value the function sets. Also
16941 make use of init_symbolic_number () in both the old place and
16942 find_bswap_or_nop_load () to avoid reading uninitialized memory when
16943 doing recursion in the GIMPLE_BINARY_RHS case.
16944
16945 2014-06-03 Richard Biener <rguenther@suse.de>
16946
16947 PR tree-optimization/61383
16948 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
16949 stmts can't trap.
16950
16951 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
16952
16953 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
16954 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
16955 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
16956 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
16957 in this file.
16958 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
16959 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
16960 * system.h: ...here and make it unconditional.
16961 * target.def (conditional_register_usage): Mention
16962 define_register_constraint instead of old-style constraint macros.
16963 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
16964 * doc/tm.texi: Regenerate.
16965 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
16966 protected by !USE_MD_CONSTRAINTS.
16967 * config/frv/frv.md: Remove quote from old version of documentation.
16968 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
16969 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
16970 CONST_DOUBLE_OK_FOR_LETTER.
16971 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
16972
16973 2014-06-02 Andrew Pinski <apinski@cavium.com>
16974
16975 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
16976 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
16977 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
16978 file whose name depends on -mabi= and -mbig-endian.
16979 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
16980 Handle LP64 better and handle ilp32 too.
16981 (MULTILIB_OPTIONS): Delete.
16982 (MULTILIB_DIRNAMES): Delete.
16983
16984 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
16985
16986 * expr.h: Remove prototypes of functions defined in builtins.c.
16987 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
16988 Remove prototypes of functions defined in builtins.c.
16989 * builtins.h: Update prototype list to include all exported functions.
16990 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
16991 no_c99_libc_has_function): Move to targhooks.c
16992 (build_string_literal, build_call_expr_loc_array,
16993 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
16994 to tree.c.
16995 (expand_builtin_object_size, fold_builtin_object_size): Make static.
16996 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
16997 no_c99_libc_has_function): Relocate from builtins.c.
16998 * tree.c: Include builtins.h.
16999 (build_call_expr_loc_array, build_call_expr_loc_vec,
17000 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17001 from builtins.c.
17002 * fold-const.h (fold_fma): Move prototype to builtins.h.
17003 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17004 * asan.c: Include builtins.h.
17005 * cfgexpand.c: Likewise.
17006 * convert.c: Likewise.
17007 * emit-rtl.c: Likewise.
17008 * except.c: Likewise.
17009 * expr.c: Likewise.
17010 * fold-const.c: Likewise.
17011 * gimple-fold.c: Likewise.
17012 * gimple-ssa-strength-reduction.c: Likewise.
17013 * gimplify.c: Likewise.
17014 * ipa-inline.c: Likewise.
17015 * ipa-prop.c: Likewise.
17016 * lto-streamer-out.c: Likewise.
17017 * stmt.c: Likewise.
17018 * tree-inline.c: Likewise.
17019 * tree-object-size.c: Likewise.
17020 * tree-sra.c: Likewise.
17021 * tree-ssa-ccp.c: Likewise.
17022 * tree-ssa-forwprop.c: Likewise.
17023 * tree-ssa-loop-ivcanon.c: Likewise.
17024 * tree-ssa-loop-ivopts.c: Likewise.
17025 * tree-ssa-math-opts.c: Likewise.
17026 * tree-ssa-reassoc.c: Likewise.
17027 * tree-ssa-threadedge.c: Likewise.
17028 * tree-streamer-in.c: Likewise.
17029 * tree-vect-data-refs.c: Likewise.
17030 * tree-vect-patterns.c: Likewise.
17031 * tree-vect-stmts.c: Likewise.
17032 * config/aarch64/aarch64.c: Likewise.
17033 * config/alpha/alpha.c: Likewise.
17034 * config/arc/arc.c: Likewise.
17035 * config/arm/arm.c: Likewise.
17036 * config/avr/avr.c: Likewise.
17037 * config/bfin/bfin.c: Likewise.
17038 * config/c6x/c6x.c: Likewise.
17039 * config/cr16/cr16.c: Likewise.
17040 * config/cris/cris.c: Likewise.
17041 * config/epiphany/epiphany.c: Likewise.
17042 * config/fr30/fr30.c: Likewise.
17043 * config/frv/frv.c: Likewise.
17044 * config/h8300/h8300.c: Likewise.
17045 * config/i386/i386.c: Likewise.
17046 * config/i386/winnt.c: Likewise.
17047 * config/ia64/ia64.c: Likewise.
17048 * config/iq2000/iq2000.c: Likewise.
17049 * config/lm32/lm32.c: Likewise.
17050 * config/m32c/m32c.c: Likewise.
17051 * config/m32r/m32r.c: Likewise.
17052 * config/m68k/m68k.c: Likewise.
17053 * config/mcore/mcore.c: Likewise.
17054 * config/mep/mep.c: Likewise.
17055 * config/microblaze/microblaze.c: Likewise.
17056 * config/mips/mips.c: Likewise.
17057 * config/mmix/mmix.c: Likewise.
17058 * config/mn10300/mn10300.c: Likewise.
17059 * config/moxie/moxie.c: Likewise.
17060 * config/msp430/msp430.c: Likewise.
17061 * config/nds32/nds32.c: Likewise.
17062 * config/pa/pa.c: Likewise.
17063 * config/pdp11/pdp11.c: Likewise.
17064 * config/picochip/picochip.c: Likewise.
17065 * config/rl78/rl78.c: Likewise.
17066 * config/rs6000/rs6000.c: Likewise.
17067 * config/rx/rx.c: Likewise.
17068 * config/s390/s390.c: Likewise.
17069 * config/score/score.c: Likewise.
17070 * config/sh/sh.c: Likewise.
17071 * config/sparc/sparc.c: Likewise.
17072 * config/spu/spu.c: Likewise.
17073 * config/stormy16/stormy16.c: Likewise.
17074 * config/tilegx/tilegx.c: Likewise.
17075 * config/tilepro/tilepro.c: Likewise.
17076 * config/v850/v850.c: Likewise.
17077 * config/vax/vax.c: Likewise.
17078 * config/xtensa/xtensa.c: Likewise.
17079
17080 2014-06-02 Jeff Law <law@redhat.com>
17081
17082 PR rtl-optimization/61094
17083 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17084 was marked as do_no_reextend. If a copy is needed to eliminate
17085 an extension, then mark it as do_not_reextend.
17086
17087 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17088
17089 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17090
17091 2014-06-02 Richard Henderson <rth@redhat.com>
17092
17093 PR target/61336
17094 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17095 addresses inside asms. Use output_operand_lossage instead of
17096 gcc_unreachable.
17097
17098 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17099
17100 PR target/61239
17101 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17102 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17103
17104 2014-06-02 Tom de Vries <tom@codesourcery.com>
17105
17106 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17107 case that x has VOIDmode.
17108
17109 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17110
17111 * varasm.c (copy_constant): Delete function.
17112 (build_constant_desc): Don't call it.
17113
17114 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17115
17116 PR target/61154
17117 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17118 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17119 with immediate_operand.
17120
17121 2014-06-02 Andreas Schwab <schwab@suse.de>
17122
17123 * config/ia64/ia64.c
17124 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17125 pending_data_specs first.
17126
17127 2014-06-02 Richard Biener <rguenther@suse.de>
17128
17129 PR tree-optimization/61378
17130 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17131 valueized_anything.
17132
17133 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17134
17135 * config/i386/constraints.md (Bw): Rename from 'w'.
17136 (Bz): Rename from 'z'.
17137 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17138
17139 2014-06-01 Kai Tietz <ktietz@redhat.com>
17140
17141 PR target/61377
17142 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17143 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17144 instead of m constraint.
17145
17146 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17147
17148 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17149 a separate alternative where the scratch operand 2 is marked as
17150 early clobber.
17151
17152 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17153
17154 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17155 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17156 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17157 and __builtins_arm_get_fpscr.
17158 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17159 __builtins_arm_get_fpscr.
17160 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17161 __builtins_arm_ldfpscr.
17162 (arm_atomic_assign_expand_fenv): New function.
17163 * config/arm/vfp.md (set_fpscr): New pattern.
17164 (get_fpscr) : Likewise.
17165 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17166 VUNSPEC_SET_FPSCR.
17167 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17168 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17169
17170 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17171
17172 * asan.c (report_error_func): Add SLOW_P argument, use
17173 BUILT_IN_ASAN_*_N if set.
17174 (build_check_stmt): Likewise.
17175 (instrument_derefs): If T has insufficient alignment,
17176 force same handling as for odd sizes.
17177
17178 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17179 BUILT_IN_ASAN_REPORT_STORE_N): New.
17180 * asan.c (struct asan_mem_ref): Change access_size type to
17181 HOST_WIDE_INT.
17182 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17183 update_mem_ref_hash_table): Likewise.
17184 (asan_mem_ref_hasher::hash): Hash in a HWI.
17185 (report_error_func): Change size_in_bytes argument to HWI.
17186 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17187 two.
17188 (build_shadow_mem_access): New function.
17189 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17190 Handle size_in_bytes not power of two or larger than 16.
17191 (instrument_derefs): Don't give up if size_in_bytes is not
17192 power of two or is larger than 16.
17193
17194 2014-05-30 Kai Tietz <ktietz@redhat.com>
17195
17196 PR target/60104
17197 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17198 for sibling-tail-calls.
17199 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17200 to its use.
17201 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17202 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17203
17204 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17205
17206 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17207 * config/avr/avr-tables.opt: Regenerate.
17208 * config/avr/t-multilib: Regenerate.
17209 * doc/avr-mmcu.texi: Regenerate.
17210
17211 2014-05-30 Ian Lance Taylor <iant@google.com>
17212
17213 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17214 target("sse").
17215
17216 2014-05-30 Tom de Vries <tom@codesourcery.com>
17217
17218 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17219 Redefine as true.
17220
17221 2014-05-30 Tom de Vries <tom@codesourcery.com>
17222
17223 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17224 * lra.c (initialize_lra_reg_info_element): Add init of
17225 actual_call_used_reg_set field.
17226 (lra): Call lra_create_live_ranges before lra_inheritance for
17227 -fuse-caller-save.
17228 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17229 -fuse-caller-save.
17230 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17231 instead of call_used_reg_set for -fuse-caller-save.
17232 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17233
17234 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17235
17236 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17237 to mov_imm.
17238 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17239
17240 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17241
17242 * ira.c (ira_get_dup_out_num): Check for output operands at
17243 the start of the loop. Handle cases where an included alternative
17244 follows an excluded one.
17245
17246 2014-05-29 Mike Stump <mikestump@comcast.net>
17247
17248 PR debug/61352
17249 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17250 post ld passes when lto is used.
17251
17252 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17253
17254 PR rtl-optimization/61325
17255 * lra-constraints.c (process_address): Rename to process_address_1.
17256 (process_address): New function.
17257
17258 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17259
17260 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17261 TYPES_BINOPV): New static data.
17262 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17263 New builtin.
17264 * config/aarch64/aarch64-simd.md (aarch64_ext,
17265 aarch64_im_lane_boundsi): New patterns.
17266 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17267 patterns for EXT.
17268 (aarch64_evpc_ext): New function.
17269
17270 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17271
17272 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17273 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17274 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17275 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17276 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17277
17278 2014-05-29 Tom de Vries <tom@codesourcery.com>
17279
17280 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17281
17282 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17283 Richard Sandiford <rdsandiford@googlemail.com>
17284
17285 * arm/iterators.md (shiftable_ops): New code iterator.
17286 (t2_binop0, arith_shift_insn): New code attributes.
17287 * arm/predicates.md (shift_nomul_operator): New predicate.
17288 * arm/arm.md (insn_enabled): Delete.
17289 (enabled): Remove insn_enabled test.
17290 (*arith_shiftsi): Delete. Replace with ...
17291 (*<arith_shift_insn>_multsi): ... new pattern.
17292 (*<arith_shift_insn>_shiftsi): ... new pattern.
17293 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17294
17295 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17296 Tom de Vries <tom@codesourcery.com>
17297
17298 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17299 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17300 clobber.
17301 (mips_split_call): Use POST_CALL_TMP_REG.
17302 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17303
17304 2014-05-29 Tom de Vries <tom@codesourcery.com>
17305
17306 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17307 with #ifdef STACK_REGS.
17308
17309 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17310
17311 * varasm.c (get_variable_section): Walk aliases.
17312 (place_block_symbol): Walk aliases.
17313
17314 2014-05-28 Tom de Vries <tom@codesourcery.com>
17315
17316 Revert:
17317 2014-05-28 Tom de Vries <tom@codesourcery.com>
17318
17319 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17320 * lra.c (initialize_lra_reg_info_element): Add init of
17321 actual_call_used_reg_set field.
17322 (lra): Call lra_create_live_ranges before lra_inheritance for
17323 -fuse-caller-save.
17324 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17325 -fuse-caller-save.
17326 * lra-constraints.c (need_for_call_save_p): Use
17327 actual_call_used_reg_set instead of call_used_reg_set for
17328 -fuse-caller-save.
17329 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17330
17331 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17332
17333 * doc/md.texi: Document that the % constraint character must
17334 be at the beginning of the string.
17335 * genoutput.c (validate_insn_alternatives): Check that '=',
17336 '+' and '%' only appear at the beginning of a constraint.
17337 * ira.c (commutative_constraint_p): Delete.
17338 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17339 at the start of the string.
17340 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17341 duplicate '='s.
17342 * config/arm/neon.md (bicdi3_neon): Likewise.
17343 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17344 (slt_si, sltu_si): Likewise.
17345 * config/vax/vax.md (sbcdi3): Likewise.
17346 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17347 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17348 (mul64): Move '%' to beginning of constraint.
17349 * config/arm/arm.md (*xordi3_insn): Likewise.
17350 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17351 (xorsi3): Likewise.
17352
17353 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17354
17355 * doc/md.texi: Document the restrictions on the "enabled" attribute.
17356
17357 2014-05-28 Jason Merrill <jason@redhat.com>
17358
17359 PR c++/47202
17360 * cgraph.h (symtab_node::get_comdat_group_id): New.
17361 * cgraphunit.c (analyze_functions): Call it.
17362 * symtab.c (dump_symtab_node): Likewise.
17363 * tree.c (decl_comdat_group_id): New.
17364 * tree.h: Declare it.
17365 * lto-streamer-out.c (write_symbol): Use it.
17366 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17367
17368 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17369
17370 PR bootstrap/PR61146
17371 * wide-int.cc: Do not include longlong.h when compiling with clang.
17372
17373 2014-05-28 Richard Biener <rguenther@suse.de>
17374
17375 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17376 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17377 (vrp_visit_assignment_or_call): Print less vertical space.
17378 (vrp_visit_stmt): Likewise.
17379 (vrp_visit_phi_node): Likewise. For a PHI argument with
17380 VR_VARYING range consider recording it as copy.
17381
17382 2014-05-28 Richard Biener <rguenther@suse.de>
17383
17384 Revert
17385 2014-05-28 Richard Biener <rguenther@suse.de>
17386
17387 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17388
17389 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17390
17391 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17392 sufficiently aligned and an offset is used at the same time.
17393 (expand_expr_real_1): Likewise.
17394
17395 2014-05-28 Richard Biener <rguenther@suse.de>
17396
17397 PR middle-end/61045
17398 * fold-const.c (fold_comparison): When folding
17399 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17400 the sign of the remaining constant operand stays the same.
17401
17402 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17403
17404 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17405 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17406 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17407 to the assembler.
17408 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17409 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17410 (m32bit-doubles) Likewise.
17411 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17412 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17413 option for RL78.
17414
17415 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17416
17417 * configure.ac ($gcc_cv_ld_clearcap): New test.
17418 * configure: Regenerate.
17419 * config.in: Regenerate.
17420 * config/sol2.opt (mclear-hwcap): New option.
17421 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17422 * config/sol2-clearcap.map: Moved here from
17423 testsuite/gcc.target/i386/clearcap.map.
17424 * config/sol2-clearcapv2.map: Move here from
17425 gcc.target/i386/clearcapv2.map.
17426 * config/t-sol2 (install): Depend on install-clearcap-map.
17427 (install-clearcap-map): New target.
17428 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17429 -mclear-hwcap.
17430
17431 2014-05-28 Richard Biener <rguenther@suse.de>
17432
17433 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17434 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17435 ... here and remove the rest.
17436 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17437
17438 2014-05-28 Richard Biener <rguenther@suse.de>
17439
17440 PR tree-optimization/61335
17441 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17442 new range fails, drop to varying.
17443
17444 2014-05-28 Olivier Hainque <hainque@adacore.com>
17445
17446 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17447 (CPP_SPEC): Add entry for -mcpu=8548.
17448 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17449 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17450
17451 2014-05-28 Tom de Vries <tom@codesourcery.com>
17452
17453 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17454 * lra.c (initialize_lra_reg_info_element): Add init of
17455 actual_call_used_reg_set field.
17456 (lra): Call lra_create_live_ranges before lra_inheritance for
17457 -fuse-caller-save.
17458 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17459 -fuse-caller-save.
17460 * lra-constraints.c (need_for_call_save_p): Use
17461 actual_call_used_reg_set instead of call_used_reg_set for
17462 -fuse-caller-save.
17463 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17464
17465 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17466 Tom de Vries <tom@codesourcery.com>
17467
17468 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17469 to gccoptlist.
17470 (@item -fuse-caller-save): New item.
17471
17472 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17473 Tom de Vries <tom@codesourcery.com>
17474
17475 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17476 OPT_fuse_caller_save.
17477
17478 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17479 Tom de Vries <tom@codesourcery.com>
17480
17481 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17482 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17483 get_call_reg_set_usage.
17484 * resource.c (mark_set_resources, mark_target_live_regs): Use
17485 get_call_reg_set_usage.
17486 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17487 field.
17488 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17489 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17490 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17491 * ira-build.c (ira_create_allocno): Init
17492 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17493 (create_cap_allocno, propagate_allocno_info)
17494 (propagate_some_info_from_allocno)
17495 (copy_info_to_removed_store_destinations): Handle
17496 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17497 * ira-costs.c (ira_tune_allocno_costs): Use
17498 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17499
17500 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17501 Tom de Vries <tom@codesourcery.com>
17502
17503 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17504 and function_used_regs_valid fields.
17505 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17506 find_all_hard_reg_sets.
17507 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17508 (get_call_reg_set_usage): New function.
17509 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17510 * regs.h (get_call_reg_set_usage): Declare.
17511
17512 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17513
17514 PR libgcc/61152
17515 * config/dbx.h (License): Add Runtime Library Exception.
17516 * config/newlib-stdint.h (License): Same.
17517 * config/rtems.h (License): Same
17518 * config/initfini-array.h (License): Same
17519 * config/v850/v850.h (License): Same.
17520 * config/v850/v850-opts.h (License): Same
17521 * config/v850/rtems.h (License): Same.
17522
17523 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17524
17525 PR target/61044
17526 * doc/extend.texi (Local Labels): Note that label differences are
17527 not supported for AVR.
17528
17529 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17530 Olivier Hainque <hainque@adacore.com>
17531
17532 * rtl.h (set_for_reg_notes): Declare.
17533 * emit-rtl.c (set_for_reg_notes): New function.
17534 (set_unique_reg_note): Use it.
17535 * optabs.c (add_equal_note): Likewise
17536
17537 2014-05-27 Andrew Pinski <apinski@cavium.com>
17538
17539 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17540 Use <w> for the register in assembly template.
17541 (stack_protect_test): Use the mode of operands[0] for the result.
17542 (stack_protect_test_<mode>): Use <w> for the register
17543 in assembly template.
17544
17545 2014-05-27 DJ Delorie <dj@redhat.com>
17546
17547 * config/rx/rx.c (add_vector_labels): New.
17548 (rx_output_function_prologue): Call it.
17549 (rx_handle_func_attribute): Don't require empty arguments.
17550 (rx_handle_vector_attribute): New.
17551 (rx_attribute_table): Add "vector" attribute.
17552 * doc/extend.texi (interrupt, vector): Document new/changed
17553 RX-specific attributes.
17554
17555 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17556
17557 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17558
17559 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17560 predicate to detect a negative quotient.
17561
17562 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17563
17564 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17565 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17566 Add X - Y CMP 0 to X CMP Y transformation.
17567 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17568
17569 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17570
17571 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17572 before printing.
17573
17574 2014-05-27 Steve Ellcey <sellcey@mips.com>
17575
17576 * config/mips/mips.c: Add include of cgraph.h.
17577
17578 2014-05-27 Richard Biener <rguenther@suse.de>
17579
17580 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17581
17582 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17583
17584 PR libgcc/61152
17585 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17586 * config/arm/arm-cores.def (License): Same.
17587 * config/arm/arm-opts.h (License): Same.
17588 * config/arm/aout.h (License): Same.
17589 * config/arm/bpabi.h (License): Same.
17590 * config/arm/elf.h (License): Same.
17591 * config/arm/linux-elf.h (License): Same.
17592 * config/arm/linux-gas.h (License): Same.
17593 * config/arm/netbsd-elf.h (License): Same.
17594 * config/arm/uclinux-eabi.h (License): Same.
17595 * config/arm/uclinux-elf.h (License): Same.
17596 * config/arm/vxworks.h (License): Same.
17597
17598 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17599
17600 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17601 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17602 (arm_init_neon_builtins): Handle NEON_BSWAP.
17603 Define required type nodes.
17604 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17605 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17606 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17607 * config/arm/iterators.md (VDQHSD): New mode iterator.
17608
17609 2014-05-27 Richard Biener <rguenther@suse.de>
17610
17611 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17612 Try using literal operands when comparing value-ranges failed.
17613
17614 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17615
17616 * ira.c (commutative_operand): Adjust for change to recog_data.
17617 [Missing from previous commit.]
17618
17619 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17620
17621 * system.h (TEST_BIT): New macro.
17622 * recog.h (alternative_mask): New type.
17623 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17624 (recog_data_d): Replace alternative_enabled_p array with
17625 enabled_alternatives.
17626 (target_recog): New structure.
17627 (default_target_recog, this_target_recog): Declare.
17628 (get_enabled_alternatives, recog_init): Likewise.
17629 * recog.c (default_target_recog, this_target_recog): New variables.
17630 (get_enabled_alternatives): New function.
17631 (extract_insn): Use it.
17632 (recog_init): New function.
17633 (preprocess_constraints, constrain_operands): Adjust for change to
17634 recog_data.
17635 * postreload.c (reload_cse_simplify_operands): Likewise.
17636 * reload.c (find_reloads): Likewise.
17637 * ira-costs.c (record_reg_classes): Likewise.
17638 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17639 all alternatives after a disabled one would be skipped.
17640 (ira_implicitly_set_insn_hard_regs): Likewise.
17641 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17642 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17643 with enabled_alternatives.
17644 * lra.c (free_insn_recog_data): Update accordingly.
17645 (lra_update_insn_recog_data): Likewise.
17646 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17647 * lra-constraints.c (process_alt_operands): Likewise. Handle
17648 only_alternative as part of the enabled mask.
17649 * target-globals.h (this_target_recog): Declare.
17650 (target_globals): Add a recog field.
17651 (restore_target_globals): Restore this_target_recog.
17652 * target-globals.c: Include recog.h.
17653 (default_target_globals): Initialize recog field.
17654 (save_target_globals): Likewise.
17655 * reginfo.c (reinit_regs): Call recog_init.
17656 * toplev.c (backend_init_target): Likewise.
17657
17658 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17659
17660 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17661 rather than any named insn's code.
17662
17663 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17664
17665 PR libgcc/61152
17666 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17667 * config/arm/arm-cores.def (License): Same.
17668
17669 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17670
17671 * tree.h (decl_comdat_group): Declare.
17672 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17673 * tree.c (decl_comdat_group): Here.
17674
17675 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17676
17677 PR rtl-optimization/61222
17678 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17679 the shift, truncate the PLUS operand to the result mode.
17680
17681 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17682
17683 PR target/61271
17684 * config/i386/i386.c (ix86_rtx_costs)
17685 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17686 Fix condition.
17687
17688 2014-05-26 Martin Jambor <mjambor@suse.cz>
17689
17690 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17691 subreg uses.
17692
17693 2014-05-26 Richard Biener <rguenther@suse.de>
17694
17695 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17696 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17697 Provide specializations.
17698 (wi::int_traits <HOST_WIDE_INT>,
17699 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17700
17701 2014-05-26 Alan Modra <amodra@gmail.com>
17702
17703 PR target/61098
17704 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17705 params and return a bool. Remove dead code. Update comment.
17706 Assert we have a const_int source. Remove bogus code from
17707 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17708 handling of constants > 2G and reg_equal note, from..
17709 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17710 return value. Update comment. If we can, use a new pseudo
17711 for intermediate calculations.
17712 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17713 prototype.
17714 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17715 call to rs6000_emit_set_const in splitter.
17716 (movdi_internal64+2, +3): Likewise.
17717
17718 2014-05-26 Richard Biener <rguenther@suse.de>
17719
17720 * system.h: Define __STDC_FORMAT_MACROS before
17721 including inttypes.h.
17722 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17723 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17724 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17725 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17726 HOST_WIDEST_INT_C): Remove.
17727 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17728 if C99 inttypes.h is not available.
17729 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17730 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17731 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17732 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17733 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17734 (struct output_info): Likewise.
17735 (print_statistics): Adjust.
17736 (dump_bitmap_statistics): Likewise.
17737 * bt-load.c (migrate_btr_defs): Print with PRId64.
17738 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
17739 (MAX_SAFE_MULTIPLIER): Adjust.
17740 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
17741 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
17742 dump_cgraph_node): Likewise.
17743 * final.c (dump_basic_block_info): Likewise.
17744 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
17745 * gcov.c (format_gcov): Likewise.
17746 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
17747 for calculation.
17748 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
17749 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
17750 (inline_small_functions, dump_overall_stats, dump_inline_stats):
17751 Use PRId64 for dumping.
17752 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
17753 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
17754 (add_allocno_hard_regs): Adjust.
17755 * loop-doloop.c (doloop_modify): Print using PRId64.
17756 * loop-iv.c (inverse): Compute in uint64_t.
17757 (determine_max_iter, iv_number_of_iterations): Likewise.
17758 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
17759 Print using PRId64.
17760 * lto-streamer-out.c (write_symbol): Use uint64_t.
17761 * mcf.c (CAP_INFINITY): Use int64_t maximum.
17762 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
17763 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
17764 * modulo-sched.c (const_iteration_count): Use int64_t.
17765 (sms_schedule): Dump using PRId64.
17766 * predict.c (dump_prediction): Likewise.
17767 * pretty-print.h (pp_widest_integer): Remove.
17768 * profile.c (get_working_sets, is_edge_inconsistent,
17769 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
17770 * tree-pretty-print.c (pp_double_int): Remove case handling
17771 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
17772 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
17773 and adjust users.
17774 (pass_optimize_bswap::execute): Remove restriction on hosts.
17775 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
17776 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
17777 * tree.c (widest_int_cst_value): Remove.
17778 * tree.h (widest_int_cst_value): Likewise.
17779 * value-prof.c (dump_histogram_value): Print using PRId64.
17780 * gengtype.c (main): Also inject int64_t.
17781 * ggc-page.c (struct max_alignment): Use int64_t.
17782 * alloc-pool.c (struct allocation_object_def): Likewise.
17783 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
17784 for computation.
17785 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
17786 * doc/tm.texi: Regenerated.
17787 * gengtype-lex.l (IWORD): Handle [u]int64_t.
17788 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
17789 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
17790 mmix_output_register_setting): Use [u]int64_t in prototypes.
17791 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
17792 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
17793 mmix_output_octa, mmix_output_shifted_value): Adjust.
17794 (mmix_intval): Adjust. Remove unreachable case.
17795 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
17796
17797 2014-05-26 Richard Biener <rguenther@suse.de>
17798
17799 * configure.ac: Drop __int64 type check. Insist that we
17800 found uint64_t and int64_t.
17801 * hwint.h (HOST_BITS_PER___INT64): Remove.
17802 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
17803 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
17804 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
17805 (HOST_WIDEST_FAST_INT): Remove __int64 case.
17806 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
17807 for dst_q_src_df_rms_cdt.
17808 * configure: Regenerate.
17809 * config.in: Likewise.
17810
17811 2014-05-26 Michael Tautschnig <mt@debian.org>
17812
17813 PR target/61249
17814 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
17815 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
17816
17817 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17818
17819 PR rtl-optimization/61278
17820 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
17821
17822 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17823
17824 PR rtl-optimization/61220
17825 Part of PR rtl-optimization/61225
17826 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
17827 insn; skip split_edge for a block with only one successor.
17828
17829 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17830
17831 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
17832 for variables.
17833
17834 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17835
17836 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
17837 (update_vtable_references): New function.
17838 (function_and_variable_visibility): Rewrite also vtable initializers.
17839 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
17840
17841 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17842
17843 * ggc.h (ggc_grow): New function.
17844 * ggc-none.c (ggc_grow): New function.
17845 * ggc-page.c (ggc_grow): Likewise.
17846
17847 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17848
17849 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
17850 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
17851 comdat_can_be_unshared_p, cgraph_externally_visible_p,
17852 varpool_externally_visible_p, can_replace_by_local_alias,
17853 update_visibility_by_resolution_info, function_and_variable_visibility,
17854 pass_data_ipa_function_and_variable_visibility,
17855 make_pass_ipa_function_and_variable_visibility,
17856 whole_program_function_and_variable_visibility,
17857 pass_data_ipa_whole_program_visibility,
17858 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
17859 * cgraph.h (cgraph_local_node_p): Declare.
17860 * ipa-visibility.c: New file.
17861 * Makefile.in (OBJS): Add ipa-visiblity.o
17862
17863 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17864
17865 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
17866 that var decl is available.
17867
17868 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17869
17870 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
17871 symtab_node pointer.
17872 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
17873 (find_decls_types_r): Do not walk COMDAT_GROUP.
17874 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
17875 * varasm.c (make_decl_one_only): Use set_comdat_group;
17876 create node if needed.
17877 * ipa-inline-transform.c (save_inline_function_body): Update
17878 way we decl->symtab mapping.
17879 * symtab.c (symtab_hash, hash_node, eq_node
17880 symtab_insert_node_to_hashtable): Remove.
17881 (symtab_register_node): Update.
17882 (symtab_unregister_node): Update.
17883 (symtab_get_node): Reimplement as inline function.
17884 (symtab_add_to_same_comdat_group): Update.
17885 (symtab_dissolve_same_comdat_group_list): Update.
17886 (dump_symtab_base): Update.
17887 (verify_symtab_base): Update.
17888 (symtab_make_decl_local): Update.
17889 (fixup_same_cpp_alias_visibility): Update.
17890 (symtab_nonoverwritable_alias): Update.
17891 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
17892 * ipa.c (update_visibility_by_resolution_info): UPdate.
17893 * bb-reorder.c: Include cgraph.h
17894 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
17895 with comdat groups.
17896 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
17897 * cgraph.c (cgraph_get_create_node): Update.
17898 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
17899 and comdat_group_.
17900 (symtab_get_node): Make inline.
17901 (symtab_insert_node_to_hashtable): Remove.
17902 (symtab_can_be_discarded): Update.
17903 (decl_comdat_group): New function.
17904 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
17905 Update.
17906 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
17907 comdat group name.
17908 (read_comdat_group): New function.
17909 (input_node, input_varpool_node): Use it.
17910 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
17911 comdat groups.
17912 * mips.c (mips_start_unique_function): Likewise.
17913 (ix86_code_end): Likewise.
17914 (rs6000_code_end): Likweise.
17915 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
17916
17917 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17918
17919 * gengtype-state.c (fatal_reading_state): Bring offline.
17920 * optabs.c (widening_optab_handler): Bring offline.
17921 * optabs.h (widening_optab_handler): Likewise.
17922 * final.c (get_attr_length_1): Likewise.
17923
17924 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17925
17926 * sched-int.h (sd_iterator_cond): Manually tail recurse.
17927
17928 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17929
17930 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
17931 (ppc440-compare): Include shift with dot.
17932 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
17933 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
17934 without dot.
17935 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
17936 without dot.
17937 (e6500_sfx2): Include it.
17938 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
17939 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
17940 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
17941 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
17942 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
17943 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
17944 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
17945 *lshiftrt_internal1le, *lshiftrt_internal1be,
17946 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
17947 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
17948 *rotldi3_internal10le, *rotldi3_internal10be,
17949 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
17950 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
17951 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
17952 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
17953 define_insns): Use type "shift" in the appropriate alternatives.
17954
17955 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17956
17957 * config/rs6000/rs6000.md (type): Add "logical". Delete
17958 "fast_compare".
17959 (dot): Adjust comment.
17960 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
17961 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
17962 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
17963 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
17964 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
17965 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
17966 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
17967 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17968
17969 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17970 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17971 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17972 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17973 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17974 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17975 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17976 * config/rs6000/8540.md (ppc8540_su): Adjust.
17977 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17978 cell-cmp-microcoded): Adjust.
17979 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17980 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17981 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17982 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17983 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17984 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17985 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17986 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17987 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17988 Adjust.
17989 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17990 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
17991 Adjust. Adjust comment.
17992 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17993 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17994
17995 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17996
17997 * config/rs6000/rs6000.md (type): Add "add".
17998 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
17999 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18000 define_insns): Use it.
18001 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18002
18003 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18004 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18005 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18006 * config/rs6000/601.md (ppc601-integer): Adjust.
18007 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18008 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18009 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18010 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18011 * config/rs6000/8540.md (ppc8540_su): Adjust.
18012 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18013 cell-cmp-microcoded): Adjust.
18014 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18015 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18016 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18017 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18018 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18019 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18020 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18021 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18022 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18023 Adjust.
18024 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18025 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18026 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18027 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18028
18029 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18030
18031 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18032 "delayed_compare", "var_delayed_compare".
18033 (var_shift): New attribute.
18034 (cell_micro): Adjust.
18035 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18036 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18037 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18038 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18039 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18040 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18041 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18042 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18043 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18044 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18045 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18046 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18047 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18048 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18049 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18050 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18051 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18052 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18053 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18054 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18055 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18056 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18057 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18058 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18059 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18060
18061 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18062 * config/rs6000/440.md (ppc440-integer): Adjust.
18063 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18064 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18065 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18066 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18067 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18068 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18069 * config/rs6000/8540.md (ppc8540_su): Adjust.
18070 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18071 cell-cmp-microcoded): Adjust.
18072 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18073 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18074 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18075 e500mc64_delayed): Adjust.
18076 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18077 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18078 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18079 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18080 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18081 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18082 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18083 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18084 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18085 Adjust comment.
18086 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18087 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18088
18089 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18090
18091 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18092 (bits): New mode_attr.
18093 (idiv_ldiv): Delete mode_attr.
18094 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18095 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18096 rs6000_adjust_priority, is_nonpipeline_insn,
18097 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18098
18099 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18100 * config/rs6000/440.md (ppc440-idiv): Adjust.
18101 * config/rs6000/476.md (ppc476-idiv): Adjust.
18102 * config/rs6000/601.md (ppc601-idiv): Adjust.
18103 * config/rs6000/603.md (ppc603-idiv): Adjust.
18104 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18105 ppc620-ldiv): Adjust.
18106 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18107 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18108 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18109 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18110 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18111 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18112 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18113 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18114 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18115 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18116 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18117 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18118 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18119 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18120 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18121 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18122 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18123 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18124
18125 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18126
18127 * config/rs6000/rs6000.md (type): Delete "insert_word",
18128 "insert_dword". Add "insert".
18129 (size): Update comment.
18130 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18131 insn_must_be_first_in_group): Adjust.
18132 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18133 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18134 *insvsi_internal6, insvdi_internal): Adjust.
18135
18136 * config/rs6000/40x.md (ppc403-integer): Adjust.
18137 * config/rs6000/440.md (ppc440-integer): Adjust.
18138 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18139 * config/rs6000/601.md (ppc601-integer): Adjust.
18140 * config/rs6000/603.md (ppc603-integer): Adjust.
18141 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18142 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18143 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18144 * config/rs6000/8540.md (ppc8540_su): Adjust.
18145 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18146 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18147 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18148 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18149 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18150 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18151 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18152 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18153 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18154 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18155 * config/rs6000/power7.md (power7-integer): Adjust.
18156 * config/rs6000/power8.md (power8-1cyc): Adjust.
18157 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18158 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18159
18160 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18161
18162 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18163 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18164 (size): New attribute.
18165 (dot): New attribute.
18166 (cell_micro): Adjust.
18167 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18168 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18169 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18170 umuldi3_highpart): Adjust.
18171 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18172 rs6000_adjust_priority, is_nonpipeline_insn,
18173 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18174
18175 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18176 ppc405-imul3): Adjust.
18177 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18178 * config/rs6000/476.md (ppc476-imul): Adjust.
18179 * config/rs6000/601.md (ppc601-imul): Adjust.
18180 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18181 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18182 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18183 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18184 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18185 Adjust.
18186 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18187 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18188 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18189 cell-imul): Adjust.
18190 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18191 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18192 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18193 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18194 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18195 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18196 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18197 power4-lmul, power4-imul, power4-imul3): Adjust.
18198 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18199 power5-lmul, power5-imul, power5-imul3): Adjust.
18200 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18201 power6-lmul, power6-imul, power6-imul3): Adjust.
18202 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18203 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18204
18205 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18206 rs64a-lmul): Adjust.
18207 * config/rs6000/titan.md (titan_imul): Adjust.
18208
18209 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18210
18211 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18212 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18213 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18214 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18215 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18216 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18217 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18218 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18219 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18220 * config/rs6000/titan.md: Delete nonsensical comment.
18221 (titan_imul): Add type imul3.
18222 (titan_mulhw): Remove type imul3; add type halfmul.
18223
18224 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18225
18226 * config/rs6000/rs6000.md (type): Reorder, reformat.
18227
18228 2014-05-23 Martin Jambor <mjambor@suse.cz>
18229
18230 PR tree-optimization/53787
18231 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18232 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18233 analysis_done, update all uses.
18234 * ipa-prop.c: Include domwalk.h
18235 (param_analysis_info): Removed.
18236 (param_aa_status): New type.
18237 (ipa_bb_info): Likewise.
18238 (func_body_info): Likewise.
18239 (ipa_get_bb_info): New function.
18240 (aa_overwalked): Likewise.
18241 (find_dominating_aa_status): Likewise.
18242 (parm_bb_aa_status_for_bb): Likewise.
18243 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18244 (load_from_unmodified_param): Accept func_body_info as a parameter
18245 instead of parms_ainfo.
18246 (parm_ref_data_preserved_p): Changed to use new param AA info.
18247 (parm_ref_data_pass_through_p): Likewise.
18248 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18249 (compute_complex_assign_jump_func): Changed to use new param AA info.
18250 (compute_complex_ancestor_jump_func): Likewise.
18251 (ipa_compute_jump_functions_for_edge): Likewise.
18252 (ipa_compute_jump_functions): Removed.
18253 (ipa_compute_jump_functions_for_bb): New function.
18254 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18255 declarations down.
18256 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18257 and info, moved variable declarations down.
18258 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18259 node and info.
18260 (ipa_analyze_stmt_uses): Likewise.
18261 (ipa_analyze_params_uses): Removed.
18262 (ipa_analyze_params_uses_in_bb): New function.
18263 (ipa_analyze_controlled_uses): Likewise.
18264 (free_ipa_bb_info): Likewise.
18265 (analysis_dom_walker): New class.
18266 (ipa_analyze_node): Handle node-specific forbidden analysis,
18267 initialize and free func_body_info, use dominator walker.
18268 (ipcp_modif_dom_walker): New class.
18269 (ipcp_transform_function): Create and free func_body_info, use
18270 ipcp_modif_dom_walker, moved a lot of functionality there.
18271
18272 2014-05-23 Marek Polacek <polacek@redhat.com>
18273 Jakub Jelinek <jakub@redhat.com>
18274
18275 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18276 * gcc.c (sanitize_spec_function): Likewise.
18277 * convert.c (convert_to_integer): Include "ubsan.h". Add
18278 floating-point to integer instrumentation.
18279 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18280 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18281 SANITIZE_NONDEFAULT.
18282 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18283 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18284 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18285 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18286 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18287 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18288 float/double/long double.
18289 (ubsan_instrument_float_cast): New function.
18290 * ubsan.h (ubsan_instrument_float_cast): Declare.
18291
18292 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18293
18294 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18295 predicate.
18296 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18297 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18298 Adjust for tailcalling through registers.
18299 * config/aarch64/aarch64.h (enum reg_class): New caller save
18300 register class.
18301 (REG_CLASS_NAMES): Likewise.
18302 (REG_CLASS_CONTENTS): Likewise.
18303 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18304 Allow tailcalling without decls.
18305
18306 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18307
18308 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18309 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18310
18311 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18312 gsi, and variables v_* to v*.
18313
18314 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18315
18316 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18317
18318 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18319
18320 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18321 * omp-low.c: Update accordingly.
18322
18323 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18324 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18325 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18326 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18327 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18328 GF_OMP_TARGET_KIND_UPDATE.
18329
18330 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18331 Explicitly enumerate the expected region types.
18332
18333 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18334
18335 PR other/56955
18336 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18337 documentation; the old documentation didn't clearly state the
18338 constraints on the contents of the pointed-to storage.
18339
18340 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18341
18342 Fix bootstrap error on ia64
18343 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18344 Return default value.
18345
18346 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18347
18348 PR tree-optimization/54733
18349 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18350 (CMPNOP): Define.
18351 (find_bswap_or_nop_load): New.
18352 (find_bswap_1): Renamed to ...
18353 (find_bswap_or_nop_1): This. Also add support for memory source.
18354 (find_bswap): Renamed to ...
18355 (find_bswap_or_nop): This. Also add support for memory source and
18356 detection of bitwise operations equivalent to load in target
18357 endianness.
18358 (execute_optimize_bswap): Likewise. Also move its leading comment back
18359 in place and split statement transformation into ...
18360 (bswap_replace): This.
18361
18362 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18363
18364 PR rtl-optimization/61215
18365 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18366 simplify_gen_subreg until final substitution.
18367
18368 2014-05-23 Alan Modra <amodra@gmail.com>
18369
18370 PR target/61231
18371 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18372 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18373 Use "Y" constraint rather than "m".
18374
18375 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18376
18377 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18378 define.
18379 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18380 New function declaration.
18381 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18382 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18383 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18384 (aarch64_init_builtins) : Initialize builtins
18385 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18386 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18387 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18388 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18389 and __builtins_aarch64_set_fpsr.
18390 (aarch64_atomic_assign_expand_fenv): New function.
18391 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18392 (get_fpcr) : Likewise.
18393 (set_fpsr) : Likewise.
18394 (get_fpsr) : Likewise.
18395 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18396 and UNSPECV_SET_FPSR.
18397 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18398 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18399 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18400
18401 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18402
18403 PR rtl-optimization/60969
18404 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18405 constraints. Set up mem cost for NO_REGS case.
18406
18407 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18408
18409 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18410
18411 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18412
18413 * config/darwin.c: Include "lto-section-names.h".
18414 (LTO_SEGMENT_NAME): Don't define.
18415 * config/i386/winnt.c: Include "lto-section-names.h".
18416 * lto-streamer.c: Include "lto-section-names.h".
18417 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18418 * lto-wrapper.c: Include "lto-section-names.h".
18419 (LTO_SECTION_NAME_PREFIX): Don't define.
18420 * lto-section-names.h: New file.
18421 * cgraphunit.c: Include "lto-section-names.h".
18422
18423 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18424
18425 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18426
18427 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18428
18429 PR target/61208
18430 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18431
18432 2014-05-22 Nick Clifton <nickc@redhat.com>
18433
18434 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18435
18436 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18437
18438 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18439 -> (T)A transformation to integer types.
18440
18441 2014-05-22 Teresa Johnson <tejohnson@google.com>
18442
18443 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18444 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18445 (gcov_rewrite): Use gcov_nonruntime_assert.
18446 (gcov_open): Ditto.
18447 (gcov_write_words): Ditto.
18448 (gcov_write_length): Ditto.
18449 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18450 gcc_assert from IN_LIBGCOV code.
18451 (gcov_read_summary): Use gcov_error to flag profile corruption.
18452 (gcov_sync): Use gcov_nonruntime_assert.
18453 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18454 (gcov_histo_index): Use gcov_nonruntime_assert.
18455 (static void gcov_histogram_merge): Ditto.
18456 (compute_working_sets): Ditto.
18457 * gcov-io.h (gcov_nonruntime_assert): Define.
18458 (gcov_error): Define for !IN_LIBGCOV
18459
18460 2014-05-22 Richard Biener <rguenther@suse.de>
18461
18462 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18463 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18464 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18465 and deallocation site.
18466 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18467 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18468 passing through the incoming points-to set.
18469 (handle_lhs_call): Use flags argument instead of recomputing it.
18470 (find_func_aliases_for_call): Call handle_lhs_call with proper
18471 call return flags.
18472
18473 2014-05-22 Jakub Jelinek <jakub@redhat.com>
18474
18475 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18476 all padding bits in REAL_VALUE_TYPE are cleared.
18477
18478 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18479
18480 Cleanup and improve multipass_dfa_lookahead_guard
18481 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18482 (core2i7_first_cycle_multipass_begin,)
18483 (core2i7_first_cycle_multipass_issue,)
18484 (core2i7_first_cycle_multipass_backtrack): Update signature.
18485 * config/ia64/ia64.c
18486 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18487 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18488 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18489 hook definition.
18490 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18491 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
18492 values.
18493 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18494 return values.
18495 * doc/tm.texi: Regenerate.
18496 * doc/tm.texi.in
18497 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18498 * haifa-sched.c (ready_try): Make signed to allow negative values.
18499 (rebug_ready_list_1): Update.
18500 (choose_ready): Simplify.
18501 (sched_extend_ready_list): Update.
18502
18503 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18504
18505 Remove IA64 speculation tweaking flags
18506 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18507 speculation tuning flags.
18508 (msched-prefer-non-data-spec-insns,)
18509 (msched-prefer-non-control-spec-insns): Obsolete options.
18510 * haifa-sched.c (choose_ready): Remove handling of
18511 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18512 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18513 and PREFER_NON_DATA_SPEC.
18514 * sel-sched.c (process_spec_exprs): Remove handling of
18515 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18516
18517 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18518
18519 Improve scheduling debug output
18520 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18521 (advance_one_cycle): Update.
18522 (schedule_insn, queue_to_ready): Add debug printouts.
18523 (debug_ready_list_1): New static function.
18524 (debug_ready_list): Update.
18525 (max_issue): Add debug printouts.
18526 (dump_insn_stream): New static function.
18527 (schedule_block): Use it. Also better indent printouts.
18528
18529 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18530
18531 Fix sched_insn debug counter
18532 * haifa-sched.c (schedule_insn): Update.
18533 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18534 (save_backtrack_point, restore_backtrack_point): Update.
18535 (first_nonscheduled_insn): New static function.
18536 (queue_to_ready, choose_ready): Use it.
18537 (schedule_block): Init nonscheduled_insns_begin.
18538 (sched_emit_insn): Update.
18539
18540
18541 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18542
18543 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18544 to GENERAL_REGS.
18545 (aarch64_secondary_reload) : LikeWise.
18546 (aarch64_class_max_nregs) : Remove CORE_REGS.
18547 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18548 (REG_CLASS_NAMES) : Likewise.
18549 (REG_CLASS_CONTENTS) : LikeWise.
18550 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18551
18552 2014-05-21 Guozhi Wei <carrot@google.com>
18553
18554 PR target/61202
18555 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18556 constraint.
18557 (vqdmulhq_n_s16): Likewise.
18558
18559 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18560
18561 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18562
18563 2014-05-21 Marek Polacek <polacek@redhat.com>
18564
18565 PR sanitizer/61272
18566 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18567
18568 2014-05-21 Martin Jambor <mjambor@suse.cz>
18569
18570 * doc/invoke.texi (Optimize Options): Document parameters
18571 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18572 ipa-cp-array-index-hint-bonus.
18573
18574 2014-05-21 Mark Wielaard <mjw@redhat.com>
18575
18576 PR debug/16063
18577 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18578 version >= 3 or not strict DWARF.
18579 * langhooks.h (struct lang_hooks_for_types): Add
18580 enum_underlying_base_type.
18581 * langhooks.c (lhd_enum_underlying_base_type): New function.
18582 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18583 enum_underlying_base_type.
18584 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18585 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18586 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18587
18588 2014-05-21 Richard Biener <rguenther@suse.de>
18589
18590 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18591
18592 2014-05-21 John Marino <gnugcc@marino.st>
18593
18594 * config.gcc (*-*-dragonfly*): New target.
18595 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18596 * configure: Regenerate.
18597 * config/dragonfly-stdint.h: New.
18598 * config/dragonfly.h: New.
18599 * config/dragonfly.opt: New.
18600 * config/i386/dragonfly.h: New.
18601 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18602
18603 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18604
18605 * tree.def (VOID_CST): New.
18606 * tree-core.h (TI_VOID): New.
18607 * tree.h (void_node): New.
18608 * tree.c (tree_node_structure_for_code, tree_code_size)
18609 (iterative_hash_expr): Handle VOID_CST.
18610 (build_common_tree_nodes): Initialize void_node.
18611
18612 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18613
18614 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18615 functions.
18616 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18617
18618 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18619 more places.
18620
18621 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18622 flag_reorder_blocks_and_partition.
18623 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18624
18625 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18626
18627 PR target/54236
18628 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18629 constraints.
18630 (*addc_r_t): Add new insn_and_split.
18631
18632 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18633
18634 PR middle-end/61252
18635 * omp-low.c (handle_simd_reference): New function.
18636 (lower_rec_input_clauses): Use it. Defer adding reference
18637 initialization even for reduction without placeholder if in simd,
18638 handle it properly later on.
18639
18640 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18641
18642 PR tree-optimization/60899
18643 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18644 assume all static symbols will have definition wile parsing and
18645 check the do have definition later in compilation; check that
18646 variable referring symbol will be output before concluding that
18647 reference is safe; be conservative for referring local statics;
18648 be more precise about when comdat is output in other partition.
18649
18650 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18651
18652 PR bootstrap/60984
18653 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18654 parameter.
18655 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18656 (ipa_inline): Loop inline_to_all_callers until no more aliases
18657 are removed.
18658
18659 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18660
18661 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18662 set writeonly flag only for vars actually written to.
18663
18664 2014-05-20 Dehao Chen <dehao@google.com>
18665
18666 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18667 and callee count to get clone count.
18668 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18669 count in copy_body.
18670
18671 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18672
18673 PR rtl-optimization/61243
18674 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18675
18676 2014-05-20 Xinliang David Li <davidxl@google.com>
18677
18678 * cgraphunit.c (walk_polymorphic_call_targets): Add
18679 dbgcnt and fopt-info support.
18680 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18681 * ipa-devirt.c (ipa_devirt): Ditto.
18682 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18683 * ipa.c (walk_polymorphic_call_targets): Ditto.
18684 * gimple-fold.c (fold_gimple_assign): Ditto.
18685 (gimple_fold_call): Ditto.
18686 * dbgcnt.def: New counter.
18687
18688 2014-05-20 DJ Delorie <dj@redhat.com>
18689
18690 * config/msp430/msp430.md (split): Don't allow subregs when
18691 splitting SImode adds.
18692 (andneghi): Fix subtraction logic.
18693 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18694
18695 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18696
18697 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18698 symbols.
18699 * except.c (switch_to_exception_section, resolve_unique_section,
18700 get_named_text_section, default_function_rodata_section,
18701 align_variable, get_block_for_decl, default_section_type_flags):
18702 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18703 * symtab.c (symtab_add_to_same_comdat_group,
18704 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18705 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18706 Likewise.
18707 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18708 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18709 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18710 (c6x_function_in_section_p): Likewise.
18711 * config/darwin.c (machopic_select_section): Likewise.
18712 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18713 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18714 * config/mep/mep.c (mep_select_section): LIkewise.
18715 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18716
18717 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18718
18719 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18720 EH region of calls to pure functions that can throw an exception.
18721 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18722 (copy_reference_ops_from_call): Also copy the EH region of the call if
18723 it can throw an exception.
18724
18725 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18726
18727 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18728 nested VEC_SELECTs that are inverses of each other.
18729
18730 2014-05-20 Richard Biener <rguenther@suse.de>
18731
18732 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18733 (extract_and_process_scc_for_name): not here.
18734 (cond_dom_walker::before_dom_children): Only process
18735 stmts that end the BB in interesting ways.
18736 (run_scc_vn): Mark param uses as visited.
18737
18738 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18739
18740 * config/arm/arm.md (arith_shiftsi): Do not predicate for
18741 arm_restrict_it.
18742
18743 2014-05-20 Nick Clifton <nickc@redhat.com>
18744
18745 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18746 (msp430_gimplify_va_arg_expr): New function.
18747 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
18748
18749 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
18750 operand 0 in order to prevent confusion about the number of
18751 registers involved.
18752
18753 2014-05-20 Richard Biener <rguenther@suse.de>
18754
18755 PR tree-optimization/61221
18756 * tree-ssa-pre.c (el_to_update): Remove.
18757 (eliminate_dom_walker::before_dom_children): Handle released
18758 VDEFs by value-numbering them to the associated VUSE. Update
18759 stmt immediately for substituted call address.
18760 (eliminate): Remove delayed stmt updating code.
18761 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
18762 possibly late re-numbered vuses.
18763 (vn_reference_lookup_2): Adjust.
18764 (vn_reference_lookup_pieces): Likewise.
18765 (vn_reference_lookup): Likewise.
18766
18767 2014-05-20 Richard Biener <rguenther@suse.de>
18768
18769 * config.gcc: Remove need_64bit_hwint.
18770 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
18771 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
18772 it to be true.
18773 * config.in: Regenerate.
18774 * configure: Likewise.
18775
18776 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
18777
18778 * doc/extend.texi: Create Label Attributes section,
18779 move all label attributes into it and reference it.
18780
18781 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
18782
18783 * arm.c (thumb1_reorg): When scanning backwards skip anything
18784 that's not a proper insn.
18785
18786 2014-05-19 Richard Biener <rguenther@suse.de>
18787
18788 PR tree-optimization/61221
18789 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18790 Do nothing for unreachable blocks.
18791 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
18792 Improve unreachability detection.
18793
18794 2014-05-19 Richard Biener <rguenther@suse.de>
18795
18796 PR tree-optimization/61209
18797 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
18798
18799 2014-05-19 Nick Clifton <nickc@redhat.com>
18800
18801 * except.c (init_eh): Fix computation of builtin setjmp buffer
18802 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
18803
18804 2014-05-19 Richard Biener <rguenther@suse.de>
18805
18806 PR tree-optimization/61184
18807 * tree-vrp.c (is_negative_overflow_infinity): Use
18808 TREE_OVERFLOW_P and do that check first.
18809 (is_positive_overflow_infinity): Likewise.
18810 (is_overflow_infinity): Likewise.
18811 (vrp_operand_equal_p): Properly treat operands with
18812 differing overflow as not equal.
18813
18814 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
18815
18816 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
18817 shift simplification where it was intended.
18818
18819 2014-05-19 Christian Bruel <christian.bruel@st.com>
18820
18821 PR target/61195
18822 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
18823
18824 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
18825
18826 PR target/61084
18827 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
18828 than wide_int.
18829
18830 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18831
18832 * reg-notes.def (CROSSING_JUMP): Likewise.
18833 * rtl.h (rtx_def): Update comment for jump flag.
18834 (CROSSING_JUMP_P): Define.
18835 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
18836 of a REG_CROSSING_JUMP note.
18837 * cfghooks.c (tidy_fallthru_edges): Likewise.
18838 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
18839 * emit-rtl.c (try_split): Likewise.
18840 * haifa-sched.c (sched_create_recovery_edges): Likewise.
18841 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
18842 * jump.c (redirect_jump_2): Likewise.
18843 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
18844 (relax_delay_slots): Likewise.
18845 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
18846 (bbit_di): Likewise.
18847 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
18848 * config/sh/sh.md (jump_compact): Likewise.
18849 * bb-reorder.c (rotate_loop): Likewise.
18850 (pass_duplicate_computed_gotos::execute): Likewise.
18851 (add_reg_crossing_jump_notes): Rename to...
18852 (update_crossing_jump_flags): ...this.
18853 (pass_partition_blocks::execute): Update accordingly.
18854
18855 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18856
18857 * tree.h: Remove extraneous template <>.
18858
18859 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18860
18861 * ipa.c (symtab_remove_unreachable_nodes): Remove
18862 symbol from comdat group if its body was eliminated.
18863 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
18864 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
18865 (symtab_unregister_node): ... this one.
18866 (verify_symtab_base): More strict checking of comdats.
18867 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
18868
18869 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18870
18871 * tree-pass.h (make_pass_ipa_comdats): New pass.
18872 * timevar.def (TV_IPA_COMDATS): New timevar.
18873 * passes.def (pass_ipa_comdats): Add.
18874 * Makefile.in (OBJS): Add ipa-comdats.o
18875 * ipa-comdats.c: New file.
18876
18877 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18878
18879 * ipa.c (update_visibility_by_resolution_info): New function.
18880 (function_and_variable_visibility): Use it.
18881
18882 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18883
18884 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
18885 New functions.
18886 (FOR_EACH_DEFINED_SYMBOL): New macro.
18887 (varpool_first_static_initializer, varpool_next_static_initializer,
18888 varpool_first_defined_variable, varpool_next_defined_variable):
18889 Fix comments.
18890 (symtab_in_same_comdat_p): Correctly deal with inline functions.
18891
18892 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18893
18894 * ggc-page.c (ggc_handle_finalizers): Add comment.
18895
18896 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18897
18898 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
18899 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
18900 (ggc_internal_cleared_alloc): Likewise.
18901 * ggc-page.c (finalizer): New class.
18902 (vec_finalizer): Likewise.
18903 (globals::finalizers): New member.
18904 (globals::vec_finalizers): Likewise.
18905 (ggc_internal_alloc): Record the finalizer if any for the block being
18906 allocated.
18907 (ggc_handle_finalizers): New function.
18908 (ggc_collect): Call ggc_handle_finalizers.
18909 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
18910 finalizer.
18911 (ggc_internal_cleared_alloc): Likewise.
18912 (finalize): New function.
18913 (need_finalization_p): Likewise.
18914 (ggc_alloc): Install the type's destructor as the finalizer if it
18915 might do something.
18916 (ggc_cleared_alloc): Likewise.
18917 (ggc_vec_alloc): Likewise.
18918 (ggc_cleared_vec_alloc): Likewise.
18919
18920 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18921
18922 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
18923
18924 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18925
18926 * alias.c (record_alias_subset): Adjust.
18927 * bitmap.c (bitmap_element_allocate): Likewise.
18928 (bitmap_gc_alloc_stat): Likewise.
18929 * cfg.c (init_flow): Likewise.
18930 (alloc_block): Likewise.
18931 (unchecked_make_edge): Likewise.
18932 * cfgloop.c (alloc_loop): Likewise.
18933 (flow_loops_find): Likewise.
18934 (rescan_loop_exit): Likewise.
18935 * cfgrtl.c (init_rtl_bb_info): Likewise.
18936 * cgraph.c (insert_new_cgraph_node_version): Likewise.
18937 (cgraph_allocate_node): Likewise.
18938 (cgraph_create_edge_1): Likewise.
18939 (cgraph_allocate_init_indirect_info): Likewise.
18940 * cgraphclones.c (cgraph_clone_edge): Likewise.
18941 * cgraphunit.c (add_asm_node): Likewise.
18942 (init_lowered_empty_function): Likewise.
18943 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
18944 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
18945 (alpha_use_linkage): Likewise.
18946 * config/arc/arc.c (arc_init_machine_status): Likewise.
18947 * config/arm/arm.c (arm_init_machine_status): Likewise.
18948 * config/avr/avr.c (avr_init_machine_status): Likewise.
18949 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
18950 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
18951 * config/cris/cris.c (cris_init_machine_status): Likewise.
18952 * config/darwin.c (machopic_indirection_name): Likewise.
18953 (darwin_build_constant_cfstring): Likewise.
18954 (darwin_enter_string_into_cfstring_table): Likewise.
18955 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
18956 * config/frv/frv.c (frv_init_machine_status): Likewise.
18957 * config/i386/i386.c (get_dllimport_decl): Likewise.
18958 (ix86_init_machine_status): Likewise.
18959 (assign_386_stack_local): Likewise.
18960 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18961 (i386_pe_maybe_record_exported_symbol): Likewise.
18962 (i386_pe_record_stub): Likewise.
18963 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
18964 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
18965 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
18966 (m32c_note_pragma_address): Likewise.
18967 * config/mep/mep.c (mep_init_machine_status): Likewise.
18968 (mep_note_pragma_flag): Likewise.
18969 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
18970 (mips16_local_alias): Likewise.
18971 (mips_init_machine_status): Likewise.
18972 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
18973 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
18974 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
18975 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
18976 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
18977 * config/pa/pa.c (pa_init_machine_status): Likewise.
18978 (pa_get_deferred_plabel): Likewise.
18979 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
18980 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
18981 (rs6000_init_machine_status): Likewise.
18982 (output_toc): Likewise.
18983 * config/s390/s390.c (s390_init_machine_status): Likewise.
18984 * config/score/score.c (score_output_external): Likewise.
18985 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
18986 * config/spu/spu.c (spu_init_machine_status): Likewise.
18987 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
18988 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
18989 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
18990 * coverage.c (coverage_end_function): Likewise.
18991 * dbxout.c (dbxout_init): Likewise.
18992 * doc/gty.texi: Don't mention variable_size attribute.
18993 * dwarf2cfi.c (new_cfi): Adjust.
18994 (new_cfi_row): Likewise.
18995 (copy_cfi_row): Likewise.
18996 (create_cie_data): Likewise.
18997 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
18998 (new_loc_descr): Likewise.
18999 (find_AT_string_in_table): Likewise.
19000 (add_addr_table_entry): Likewise.
19001 (new_die): Likewise.
19002 (add_var_loc_to_decl): Likewise.
19003 (clone_die): Likewise.
19004 (clone_as_declaration): Likewise.
19005 (break_out_comdat_types): Likewise.
19006 (new_loc_list): Likewise.
19007 (add_loc_descr_to_each): Likewise.
19008 (add_location_or_const_value_attribute): Likewise.
19009 (add_linkage_name): Likewise.
19010 (lookup_filename): Likewise.
19011 (dwarf2out_var_location): Likewise.
19012 (new_line_info_table): Likewise.
19013 (dwarf2out_init): Likewise.
19014 (mem_loc_descriptor): Likewise.
19015 (loc_descriptor): Likewise.
19016 (add_const_value_attribute): Likewise.
19017 (tree_add_const_value_attribute): Likewise.
19018 (comp_dir_string): Likewise.
19019 (dwarf2out_vms_debug_main_pointer): Likewise.
19020 (string_cst_pool_decl): Likewise.
19021 * emit-rtl.c (set_mem_attrs): Likewise.
19022 (get_reg_attrs): Likewise.
19023 (start_sequence): Likewise.
19024 (init_emit): Likewise.
19025 (init_emit_regs): Likewise.
19026 * except.c (init_eh_for_function): Likewise.
19027 (gen_eh_region): Likewise.
19028 (gen_eh_region_catch): Likewise.
19029 (gen_eh_landing_pad): Likewise.
19030 (add_call_site): Likewise.
19031 * function.c (add_frame_space): Likewise.
19032 (insert_temp_slot_address): Likewise.
19033 (assign_stack_temp_for_type): Likewise.
19034 (get_hard_reg_initial_val): Likewise.
19035 (allocate_struct_function): Likewise.
19036 (prepare_function_start): Likewise.
19037 (types_used_by_var_decl_insert): Likewise.
19038 * gengtype.c (variable_size_p): Remove function.
19039 (enum alloc_quantity): Remove enum.
19040 (write_typed_alloc_def): Remove function.
19041 (write_typed_struct_alloc_def): Likewise.
19042 (write_typed_typedef_alloc_def): Likewise.
19043 (write_typed_alloc_defns): Likewise.
19044 (main): Adjust.
19045 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19046 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19047 * ggc.h (ggc_alloc): new function.
19048 (ggc_cleared_alloc): Likewise.
19049 (ggc_vec_alloc): Template on type of vector element, and remove
19050 element size argument.
19051 (ggc_cleared_vec_alloc): Likewise.
19052 * gimple.c (gimple_build_omp_for): Adjust.
19053 (gimple_copy): Likewise.
19054 * ipa-cp.c (get_replacement_map): Likewise.
19055 (find_aggregate_values_for_callers_subset): Likewise.
19056 (known_aggs_to_agg_replacement_list): Likewise.
19057 * ipa-devirt.c (get_odr_type): Likewise.
19058 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19059 (read_agg_replacement_chain): Likewise.
19060 * loop-iv.c (get_simple_loop_desc): Likewise.
19061 * lto-cgraph.c (input_node_opt_summary): Likewise.
19062 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19063 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19064 (input_eh_region): Likewise.
19065 (input_eh_lp): Likewise.
19066 (input_cfg): Likewise.
19067 * optabs.c (set_optab_libfunc): Likewise.
19068 (init_tree_optimization_optabs): Likewise.
19069 (set_conv_libfunc): Likewise.
19070 * passes.c (do_per_function_toporder): Likewise.
19071 * rtl.h: Don't use variable_size gty attribute.
19072 * sese.c (if_region_set_false_region): Adjust.
19073 * stringpool.c (gt_pch_save_stringpool): Likewise.
19074 * target-globals.c (save_target_globals): Likewise.
19075 * toplev.c (general_init): Likewise.
19076 * trans-mem.c (record_tm_replacement): Likewise.
19077 (split_bb_make_tm_edge): Likewise.
19078 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19079 * tree-data-ref.h (lambda_vector_new): Likewise.
19080 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19081 * tree-iterator.c (tsi_link_before): Likewise.
19082 (tsi_link_after): Likewise.
19083 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19084 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19085 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19086 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19087 * tree-ssa.c (init_tree_ssa): Adjust.
19088 * tree-ssanames.c (set_range_info): Likewise.
19089 (get_ptr_info): Likewise.
19090 (duplicate_ssa_name_ptr_info): Likewise.
19091 (duplicate_ssa_name_range_info): Likewise.
19092 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19093 (unpack_ts_fixed_cst_value_fields): Likewise.
19094 * tree.c (build_fixed): Likewise.
19095 (build_real): Likewise.
19096 (build_string): Likewise.
19097 (decl_priority_info): Likewise.
19098 (decl_debug_expr_insert): Likewise.
19099 (decl_value_expr_insert): Likewise.
19100 (decl_debug_args_insert): Likewise.
19101 (type_hash_add): Likewise.
19102 (build_omp_clause): Likewise.
19103 * ubsan.c (decl_for_type_insert): Likewise.
19104 * varasm.c (get_unnamed_section): Likewise.
19105 (get_noswitch_section): Likewise.
19106 (get_section): Likewise.
19107 (get_block_for_section): Likewise.
19108 (create_block_symbol): Likewise.
19109 (build_constant_desc): Likewise.
19110 (create_constant_pool): Likewise.
19111 (force_const_mem): Likewise.
19112 (record_tm_clone_pair): Likewise.
19113 * varpool.c (varpool_create_empty_node): Likewise.
19114
19115 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19116
19117 * dwarf2out.c (tree_add_const_value_attribute): Call
19118 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19119 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19120 instead of ggc_internal_<x>alloc_stat.
19121 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19122 (ggc_realloc): Likewise.
19123 * ggc-none.c (ggc_internal_alloc): Likewise.
19124 (ggc_internal_cleared_alloc): Likewise.
19125 * ggc-page.c: Likewise.
19126 * ggc.h (ggc_internal_alloc_stat): Likewise.
19127 (ggc_internal_alloc): Remove macro.
19128 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19129 (ggc_internal_cleared_alloc): Remove macro.
19130 (GGC_RESIZEVEC): Adjust.
19131 (ggc_resizevar): Remove macro.
19132 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19133 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19134 (ggc_internal_vec_cleared_alloc): Remove macro.
19135 (ggc_alloc_atomic_stat): Drop _stat suffix.
19136 (ggc_alloc_atomic): Remove macro.
19137 (ggc_alloc_cleared_atomic): Remove macro.
19138 (ggc_alloc_string_stat): Drop _stat suffix.
19139 (ggc_alloc_string): Remove macro.
19140 (ggc_alloc_rtx_def_stat): Adjust.
19141 (ggc_alloc_tree_node_stat): Likewise.
19142 (ggc_alloc_cleared_tree_node_stat): Likewise.
19143 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19144 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19145 * gimple.c (gimple_build_omp_for): Likewise.
19146 (gimple_copy): Likewise.
19147 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19148 * toplev.c (realloc_for_line_map): Adjust.
19149 * tree-data-ref.h (lambda_vector_new): Likewise.
19150 * tree-phinodes.c (allocate_phi_node): Likewise.
19151 * tree.c (grow_tree_vec_stat): Likewise.
19152 * vec.h (va_gc::reserve): Adjust.
19153
19154 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19155
19156 * config/microblaze/microblaze.c (break_handler): New Declaration.
19157 (microblaze_break_function_p,microblaze_is_break_handler): New.
19158 (compute_frame_size): Use microblaze_break_function_p.
19159 Add the test of break_handler.
19160 (microblaze_function_prologue) : Add the test of variable
19161 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19162 (microblaze_function_epilogue) : Add the test of break_handler.
19163 (microblaze_globalize_label) : Add the test of break_handler.
19164 Check the name by BREAK_HANDLER_NAME.
19165
19166 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19167
19168 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19169 microblaze_is_break_handler test.
19170 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19171 Use SYMBOL_REF_DECL.
19172
19173 * config/microblaze/microblaze-protos.h
19174 (microblaze_break_function_p,microblaze_is_break_handler):
19175 New Declaration.
19176
19177 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19178 new MicroBlaze break_handler functions.
19179
19180 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19181
19182 * doc/extend.texi (Size of an asm): Move node text according
19183 to its @menu entry position.
19184
19185 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19186
19187 PR tree-optimization/61140
19188 PR tree-optimization/61150
19189 PR tree-optimization/61197
19190 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19191
19192 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19193
19194 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19195
19196 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19197
19198 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19199 __SIZEOF_INT128__ is defined.
19200
19201 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19202
19203 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19204 (rs6000_delegitimize_address): Use it.
19205
19206 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19207
19208 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19209 inplace argument. Store the new address in the original MEM when true.
19210 * emit-rtl.c (change_address_1): Likewise.
19211 (adjust_address_1, adjust_automodify_address_1, offset_address):
19212 Update accordingly.
19213 * rtl.h (plus_constant): Add an inplace argument.
19214 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19215 when true. Avoid generating (plus X (const_int 0)).
19216 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19217 in-place. Pass true to plus_constant.
19218 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19219
19220 2014-05-16 Dehao Chen <dehao@google.com>
19221
19222 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19223
19224 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19225
19226 PR target/54089
19227 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19228 patterns.
19229 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19230
19231 2014-05-16 Dehao Chen <dehao@google.com>
19232
19233 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19234 optimize_function_for_size_p.
19235 * regs.h (REG_FREQ_FROM_BB): Likewise.
19236
19237 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19238
19239 PR target/51244
19240 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19241 negt_reg_operand cases.
19242 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19243 predicate.
19244 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19245
19246 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19247
19248 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19249 target variants.
19250
19251 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19252
19253 Revert:
19254 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19255
19256 * tree-cfg.c (dump_function_to_file): Dump the return type of
19257 functions, in a line to itself before the function body, mimicking
19258 the layout of a C function.
19259
19260 2014-05-16 Dehao Chen <dehao@google.com>
19261
19262 * cfghooks.c (make_forwarder_block): Use direct computation to
19263 get fall-through edge's count and frequency.
19264
19265 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19266
19267 * config/arc/arc.c (arc_init): Fix typo in error message.
19268 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19269 (split_stack_prologue_scratch_regno): Likewise.
19270 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19271 word from error message.
19272
19273 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19274
19275 * ira-costs.c: Fix typo in comment.
19276
19277 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19278
19279 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19280
19281 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19282
19283 * varpool.c (dump_varpool_node): Dump write-only flag.
19284 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19285 write-only flag.
19286 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19287 write-only variables.
19288 * ipa.c (process_references): New function.
19289 (set_readonly_bit): New function.
19290 (set_writeonly_bit): New function.
19291 (clear_addressable_bit): New function.
19292 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19293 fix handling of aliases.
19294 * cgraph.h (struct varpool_node): Add writeonly flag.
19295
19296 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19297
19298 PR rtl-optimization/60969
19299 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19300 Calculate costs for this case.
19301
19302 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19303
19304 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19305 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19306
19307 2014-05-16 Richard Biener <rguenther@suse.de>
19308
19309 PR tree-optimization/61194
19310 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19311 bool patterns ending in a COND_EXPR.
19312
19313 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19314
19315 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19316
19317 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19318
19319 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19320 where we were unable to cost an RTX.
19321
19322 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19323
19324 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19325 HIGH, LO_SUM.
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): Cost TRUNCATE.
19331
19332 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19333 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19334
19335 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19336 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19337
19338 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19339 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19340
19341 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19342 operators.
19343
19344 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19345 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19346
19347 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19348 DIV/MOD.
19349
19350 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19351 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19352
19353 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19354 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19355
19356 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19357 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19358
19359 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19360 rotates and shifts.
19361
19362 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19363 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19364
19365 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19366 ZERO_EXTEND and SIGN_EXTEND better.
19367
19368 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19369 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19370
19371 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19372 logical operations.
19373
19374 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19375 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19376
19377 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19378 costs when costing loads and stores to memory.
19379
19380 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19381 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19382
19383 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19384 for SET RTX.
19385
19386 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19387
19388 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19389
19390 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19391 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19392
19393 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19394 to...
19395 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19396 well formed.
19397 (aarch64_rtx_mult_cost): New.
19398 (aarch64_rtx_costs): Use it, refactor as appropriate.
19399
19400 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19401 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19402
19403 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19404 emit instructions, return number of instructions which would
19405 be emitted.
19406 (aarch64_add_constant): Update call to aarch64_build_constant.
19407 (aarch64_output_mi_thunk): Likewise.
19408 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19409 a CONST_DOUBLE.
19410
19411 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19412
19413 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19414 (TARGET_RTX_COSTS): Call it.
19415
19416 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19417
19418 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19419 (cortexa57_vector_cost): Likewise.
19420 (cortexa57_tunings): Use them.
19421
19422 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19423
19424 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19425 (cpu_addrcost_table): Use it.
19426 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19427 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19428 move it.
19429
19430 2014-05-16 Richard Biener <rguenther@suse.de>
19431
19432 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19433 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19434 (visit_phi): Ignore edges marked as not executable.
19435 (class cond_dom_walker): New.
19436 (cond_dom_walker::before_dom_children): Value-number
19437 control statements and mark successor edges as not
19438 executable if possible.
19439 (run_scc_vn): First walk all control statements in
19440 dominator order, marking edges as not executable.
19441 * tree-inline.c (copy_edges_for_bb): Be not confused
19442 about random edge flags.
19443
19444 2014-05-16 Richard Biener <rguenther@suse.de>
19445
19446 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19447
19448 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19449
19450 PR target/61193
19451 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19452 (__TM_simple_begin): Use it.
19453 (__TM_begin): Likewise.
19454
19455 2014-05-15 Martin Jambor <mjambor@suse.cz>
19456
19457 PR ipa/61085
19458 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19459 type_preserved flag when the indirect edge is polymorphic.
19460
19461 2014-05-15 Martin Jambor <mjambor@suse.cz>
19462
19463 PR tree-optimization/61090
19464 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19465 build_ref_for_model.
19466
19467 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19468
19469 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19470 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19471
19472 2014-05-15 Jakub Jelinek <jakub@redhat.com>
19473
19474 PR tree-optimization/61158
19475 * fold-const.c (fold_binary_loc): If X is zero-extended and
19476 shiftc >= prec, make sure zerobits is all ones instead of
19477 invoking undefined behavior.
19478
19479 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19480
19481 * regcprop.h: New file.
19482 * regcprop.c (skip_debug_insn_p): New decl.
19483 (replace_oldest_value_reg): Check skip_debug_insn_p.
19484 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19485 * shrink-wrap.c: Include regcprop.h.
19486 (prepare_shrink_wrap): Call
19487 copyprop_hardreg_forward_bb_without_debug_insn.
19488
19489 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19490
19491 * shrink-wrap.h: Update comment.
19492 * shrink-wrap.c: Update comment.
19493 (next_block_for_reg): Rename to live_edge_for_reg.
19494 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19495 (move_insn_for_shrink_wrap): Split live_edge.
19496 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19497
19498 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19499
19500 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19501 Delete.
19502 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19503 * config/sparc/sparc.md (fptype_ut699): New attribute.
19504 (in_branch_delay): Return false if -mfix-ut699 is specified and
19505 fptype_ut699 is set to single.
19506 (truncdfsf2): Add fptype_ut699 attribute.
19507 (fix_truncdfsi2): Likewise.
19508 (floatsisf2): Change fptype attribute.
19509 (fix_truncsfsi2): Likewise.
19510 (negtf2_notv9): Delete.
19511 (negtf2_v9): Likewise.
19512 (negtf2_hq): New instruction.
19513 (negtf2): New instruction and splitter.
19514 (negdf2_notv9): Rewrite.
19515 (abstf2_notv9): Delete.
19516 (abstf2_hq_v9): Likewise.
19517 (abstf2_v9): Likewise.
19518 (abstf2_hq): New instruction.
19519 (abstf2): New instruction and splitter.
19520 (absdf2_notv9): Rewrite.
19521
19522 2014-05-14 Cary Coutant <ccoutant@google.com>
19523
19524 PR debug/61013
19525 * opts.c (common_handle_option): Don't special-case "-g".
19526 (set_debug_level): Default to at least level 2 with "-g".
19527
19528 2014-05-14 DJ Delorie <dj@redhat.com>
19529
19530 * config/msp430/msp430.c (msp430_builtin): Add
19531 MSP430_BUILTIN_DELAY_CYCLES.
19532 (msp430_init_builtins): Register void __delay_cycles(long long).
19533 (msp430_builtin_decl): Add it.
19534 (cg_magic_constant): New.
19535 (msp430_expand_delay_cycles): New.
19536 (msp430_expand_builtin): Call it.
19537 (msp430_print_operand_raw): Change integer printing from "int" to
19538 HOST_WIDE_INT.
19539 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19540 (delay_cycles_start): New.
19541 (delay_cycles_end): New.
19542 (delay_cycles_32): New.
19543 (delay_cycles_32x): New.
19544 (delay_cycles_16): New.
19545 (delay_cycles_16x): New.
19546 (delay_cycles_2): New.
19547 (delay_cycles_1): New.
19548 * doc/extend.texi: Document __delay_cycles().
19549
19550 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19551
19552 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19553 length attribute computation.
19554
19555 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19556
19557 PR debug/61188
19558 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19559
19560 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
19561
19562 PR target/61084
19563 * config/sparc/sparc.md: Fix types of low and high in DI constant
19564 splitter. Use gen_int_mode in some other splitters.
19565
19566 2014-05-14 Martin Jambor <mjambor@suse.cz>
19567
19568 PR ipa/60897
19569 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19570
19571 2014-05-14 James Norris <jnorris@codesourcery.com>
19572
19573 * omp-low.c (expand_parallel_call): Remove shadow variable.
19574 (expand_omp_taskreg): Likewise.
19575
19576 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19577
19578 * common/config/i386/i386-common.c
19579 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19580 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19581 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19582 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19583 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19584 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19585 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19586 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19587 xsavecintrin.h, xsavesintrin.h.
19588 (x86_64-*-*): Ditto.
19589 * config/i386/clflushoptintrin.h: New.
19590 * config/i386/xsavecintrin.h: Ditto.
19591 * config/i386/xsavesintrin.h: Ditto.
19592 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19593 (bit_XSAVES): Ditto.
19594 (bit_XSAVES): Ditto.
19595 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19596 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19597 -mno-clflushopt.
19598 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19599 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19600 OPTION_MASK_ISA_XSAVES.
19601 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19602 -mxsavec, -mxsaves.
19603 (PTA_CLFLUSHOPT) Define.
19604 (PTA_XSAVEC): Ditto.
19605 (PTA_XSAVES): Ditto.
19606 (ix86_option_override_internal): Handle new options.
19607 (ix86_valid_target_attribute_inner_p): Ditto.
19608 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19609 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19610 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19611 (bdesc_special_args): Add __builtin_ia32_xsaves,
19612 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19613 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19614 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19615 (ix86_expand_builtin): Handle new builtins.
19616 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19617 (TARGET_CLFLUSHOPT_P): Ditto.
19618 (TARGET_XSAVEC): Ditto.
19619 (TARGET_XSAVEC_P): Ditto.
19620 (TARGET_XSAVES): Ditto.
19621 (TARGET_XSAVES_P): Ditto.
19622 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19623 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19624 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19625 (ANY_XRSTOR): New.
19626 (ANY_XRSTOR64): Ditto.
19627 (xrstor): Ditto.
19628 (xrstor): Change into <xrstor>.
19629 (xrstor_rex64): Change into <xrstor>_rex64.
19630 (xrstor64): Change into <xrstor>64
19631 (clflushopt): New.
19632 * config/i386/i386.opt (mclflushopt): New.
19633 (mxsavec): Ditto.
19634 (mxsaves): Ditto.
19635 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19636 xsavecintrin.h.
19637 * doc/invoke.texi: Document new options.
19638
19639 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19640
19641 PR rtl-optimization/60866
19642 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19643 Default it to -1. Pass it down to init_simplejump_data.
19644 (init_simplejump_data): New parameter old_seqno. Pass it down
19645 to get_seqno_for_a_jump.
19646 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19647 initializing new jump seqno as a last resort. Add comment.
19648 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19649 jump and pass it down to sel_init_new_insn.
19650 (sel_redirect_edge_and_branch_force): Likewise.
19651
19652 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19653
19654 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19655 shifted values to avoid build warning.
19656
19657 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19658
19659 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19660 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19661 (cfg_layout_merge_blocks): Likewise.
19662 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19663
19664 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19665
19666 PR rtl-optimization/60901
19667 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19668 bb predecessor belongs to the same scheduling region. Adjust comment.
19669
19670 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19671
19672 * doc/sourcebuild.texi: (dfp_hw): Document.
19673 (p8vector_hw): Likewise.
19674 (powerpc_eabi_ok): Likewise.
19675 (powerpc_elfv2): Likewise.
19676 (powerpc_htm_ok): Likewise.
19677 (ppc_recip_hw): Likewise.
19678 (vsx_hw): Likewise.
19679
19680 2014-05-13 Cary Coutant <ccoutant@google.com>
19681
19682 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19683
19684 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19685
19686 * gengtype-parse.c (require3): Eliminate in favor of...
19687 (require4): New.
19688 (require_template_declaration): Update to support optional single *
19689 on a type.
19690
19691 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19692 (create_user_defined_type): Handle a single level of explicit
19693 pointerness within template arguments.
19694 (struct write_types_data): Add field "kind".
19695 (filter_type_name): Handle "*" character.
19696 (write_user_func_for_structure_ptr): Require a write_types_data
19697 rather than just a prefix string, so that we can look up the kind
19698 of the wtd and use it as an index into wrote_user_func_for_ptr,
19699 ensuring that such functions are written at most once. Support
19700 subclasses by invoking the marking function of the ultimate base class.
19701 (write_user_func_for_structure_body): Require a write_types_data
19702 rather than just a prefix string, so that we can pass this to
19703 write_user_func_for_structure_ptr.
19704 (write_func_for_structure): Likewise.
19705 (ggc_wtd): Add initializer of new "kind" field.
19706 (pch_wtd): Likewise.
19707
19708 * gengtype.h (enum write_types_kinds): New.
19709 (struct type): Add field wrote_user_func_for_ptr to the "s"
19710 union member.
19711
19712 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19713
19714 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19715 instead of const_binop.
19716 (fold_binary_loc): Likewise.
19717
19718 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19719
19720 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19721 calculation to match get_ref_base_and_extent.
19722
19723 2014-05-13 Catherine Moore <clm@codesourcery.com>
19724 Sandra Loosemore <sandra@codesourcery.com>
19725
19726 * configure.ac: Fix assembly for explicit JALR relocation check.
19727 * configure: Regenerate.
19728
19729 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19730
19731 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19732 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19733 Remove associated type declarations and initialisations.
19734 (arm_expand_neon_builtin): Likewise.
19735 (neon_emit_pair_result_insn): Delete.
19736 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19737 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19738 (neon_vzip<mode>): Likewise.
19739 (neon_vuzp<mode>): Likewise.
19740
19741 2014-05-13 Richard Biener <rguenther@suse.de>
19742
19743 PR ipa/60973
19744 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
19745 it needs revisiting whether the call still may be tail-called.
19746
19747 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19748
19749 * rtl.def (SYMBOL_REF): Remove middle "0" field.
19750 * rtl.h (block_symbol): Reduce number of fields to 2.
19751 (rtx_def): Add u2.symbol_ref_flags.
19752 (SYMBOL_REF_FLAGS): Use it.
19753 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
19754 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
19755 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
19756 Lower index of SYMBOL_REF_DATA.
19757 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
19758 Print SYMBOL_REF_FLAGS at the same time.
19759 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
19760
19761 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19762
19763 * rtl.def (VAR_LOCATION): Remove "i" field.
19764 * rtl.h (rtx_def): Add u2.var_location_status.
19765 (PAT_VAR_LOCATION_STATUS): Use it.
19766 (gen_rtx_VAR_LOCATION): Declare.
19767 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
19768 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
19769 * var-tracking.c (emit_note_insn_var_location): Remove casts.
19770
19771 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19772
19773 * rtl.def (scratch): Fix outdated comment and remove "0" field.
19774 * gengtype.c (adjust_field_rtx_def): Update accordingly.
19775
19776 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19777
19778 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
19779 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
19780 * rtl.h (rtx_def): Add insn_uid to u2 field.
19781 (RTX_FLAG_CHECK8): Delete in favor of...
19782 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
19783 (INSN_DELETED_P): Update accordingly.
19784 (INSN_UID): Use u2.insn_uid.
19785 (INSN_CHAIN_CODE_P): Define.
19786 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
19787 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
19788 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
19789 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
19790 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
19791 indices accordingly.
19792 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
19793 Update indices for insn-chain rtxes.
19794 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
19795 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
19796 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
19797 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
19798 * combine.c (try_combine): Likewise.
19799 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19800
19801 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19802
19803 * rtl.def (REG): Remove middle field.
19804 * rtl.h (rtx_def): Add orignal_regno to u2.
19805 (ORIGINAL_REGNO): Use it instead of field 1.
19806 (REG_ATTRS): Lower field index accordingly.
19807 * gengtype.c (adjust_field_rtx_def): Remove handling of
19808 ORIGINAL_REGNO. Move REG_ATTRS index down.
19809 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
19810 code that prints the REGNO.
19811
19812 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19813
19814 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
19815 GENERATOR_FILE.
19816
19817 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19818
19819 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
19820
19821 2014-05-13 Bin Cheng <bin.cheng@arm.com>
19822
19823 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
19824 (alloc_iv): Lower base expressions containing ADDR_EXPR.
19825
19826 2014-05-13 Ian Bolton <ian.bolton@arm.com>
19827
19828 * config/aarch64/aarch64-protos.h
19829 (aarch64_hard_regno_caller_save_mode): New prototype.
19830 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
19831 New function.
19832 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
19833
19834 2014-05-13 Christian Bruel <christian.bruel@st.com>
19835
19836 * target.def (mode_switching): New hook vector.
19837 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
19838 (mode_exit, modepriority_to_mode): Likewise.
19839 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
19840 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19841 * target.h: Include tm.h and hard-reg-set.h.
19842 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
19843 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
19844 * doc/tm.texi Regenerate.
19845 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19846 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19847 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
19848 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
19849 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19850 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19851 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
19852 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
19853 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
19854 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
19855 (ix86_emit_mode_set): Hookify.
19856 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
19857 Delete.
19858 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19859 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
19860 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
19861 (epiphany_mode_priority_to_mode): Remove declaration.
19862 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
19863 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
19864 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
19865 Likewise.
19866 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
19867 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
19868 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
19869
19870 2014-05-13 Jakub Jelinek <jakub@redhat.com>
19871
19872 PR target/61060
19873 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
19874 is const0_rtx, return immediately. Don't test count == 0 when
19875 it is always true.
19876
19877 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19878
19879 * Makefile.in: add shrink-wrap.o.
19880 * config/i386/i386.c: include "shrink-wrap.h"
19881 * function.c: Likewise.
19882 (requires_stack_frame_p, next_block_for_reg,
19883 move_insn_for_shrink_wrap, prepare_shrink_wrap,
19884 dup_block_and_redirect): Move to shrink-wrap.c
19885 (thread_prologue_and_epilogue_insns): Extract three code segments
19886 as functions in shrink-wrap.c
19887 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
19888 shrink-wrap.h
19889 * shrink-wrap.c: New file.
19890 * shrink-wrap.h: New file.
19891
19892 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19893
19894 * doc/extend.texi: Reflect current numbers of pragmas. Remove
19895 reference to Solaris.
19896
19897 2014-05-12 Mike Stump <mikestump@comcast.net>
19898
19899 PR other/31778
19900 * genattrtab.c (filename): Add.
19901 (convert_set_attr_alternative): Improve error message.
19902 (check_defs): Restore read_md_filename for error messages.
19903 (gen_insn): Save filename.
19904
19905 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
19906
19907 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
19908 -fno-local-ivars and -fivar-visibility.
19909 * c-family/c.opt: Make -Wshadow also implicitly enable
19910 -Wshadow-ivar.
19911
19912 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19913
19914 * doc/tm.texi: Remove reference to deleted macro.
19915 * doc/tm.texi.in: Likewise.
19916
19917 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19918
19919 PR target/60991
19920 * config/avr/avr.c (avr_out_store_psi): Use correct constant
19921 to restore Y.
19922
19923 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
19924
19925 PR libgcc/61152
19926 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
19927 * config/arm/aout.h (License): Same.
19928 * config/arm/bpabi.h (License): Same.
19929 * config/arm/elf.h (License): Same.
19930 * config/arm/linux-elf.h (License): Same.
19931 * config/arm/linux-gas.h (License): Same.
19932 * config/arm/netbsd-elf.h (License): Same.
19933 * config/arm/uclinux-eabi.h (License): Same.
19934 * config/arm/uclinux-elf.h (License): Same.
19935 * config/arm/vxworks.h (License): Same.
19936
19937 2014-05-11 Jakub Jelinek <jakub@redhat.com>
19938
19939 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
19940 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
19941 number of operands to 3.
19942 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
19943 * tree-nested.c (convert_nonlocal_omp_clauses,
19944 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
19945 * gimplify.c (gimplify_scan_omp_clauses): Handle
19946 OMP_CLAUSE_LINEAR_STMT.
19947 * omp-low.c (lower_rec_input_clauses): Fix typo.
19948 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
19949 cast between Fortran boolean_type_node and C _Bool if
19950 needed.
19951
19952 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
19953
19954 PR tree-optimization/61136
19955 * wide-int.h (multiple_of_p): Define a version that doesn't return
19956 the quotient.
19957 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
19958 integer_zerop/const_binop pair.
19959 (multiple_of_p): Likewise, converting both operands to widest_int
19960 precision.
19961
19962 2014-05-09 Teresa Johnson <tejohnson@google.com>
19963
19964 * cgraphunit.c (analyze_functions): Use correct dump file.
19965
19966 2014-05-09 Florian Weimer <fweimer@redhat.com>
19967
19968 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
19969 expand_used_vars.
19970 (stack_protect_return_slot_p): New function.
19971 (expand_used_vars): Call stack_protect_decl_p and
19972 stack_protect_return_slot_p for -fstack-protector-strong.
19973
19974 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
19975 Andrew Haley <aph@redhat.com>
19976 Richard Sandiford <rdsandiford@googlemail.com>
19977
19978 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
19979 pages.
19980
19981 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
19982
19983 PR middle-end/61111
19984 * fold-const.c (fold_binary_loc): Changed width of mask.
19985
19986 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19987
19988 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
19989 unsigned int initializers for regno_in, regno_out.
19990
19991 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19992
19993 PR target/61055
19994 * config/avr/avr.md (cc): Add new attribute set_vzn.
19995 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
19996 Set cc insn attribute to set_vzn instead of set_zn for alternatives
19997 with INC, DEC or NEG.
19998 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
19999 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20000 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20001
20002 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20003
20004 Revert:
20005 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20006
20007 * wide-int.cc (UTItype): Define.
20008 (UDWtype): Define for appropriate W_TYPE_SIZE.
20009
20010 2014-05-09 Richard Biener <rguenther@suse.de>
20011
20012 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20013 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20014 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20015 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20016 ssa_propagate): Adjust.
20017
20018 2014-05-08 Jeff Law <law@redhat.com>
20019
20020 PR tree-optimization/61009
20021 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20022 tri-state rather than a boolean. When a block is too big to
20023 thread through, inform caller via negative return value.
20024 (thread_across_edge): If a block was too big for normal threading,
20025 then it's too big for a joiner too, so remove temporary equivalences
20026 and return immediately.
20027
20028 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20029 Matthias Klose <doko@ubuntu.com>
20030
20031 PR driver/61106
20032 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20033
20034 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20035
20036 PR target/59952
20037 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20038
20039 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20040
20041 PR target/61092
20042 * config/alpha/alpha.c: Include gimple-iterator.h.
20043 (alpha_gimple_fold_builtin): New function. Move
20044 ALPHA_BUILTIN_UMULH folding from ...
20045 (alpha_fold_builtin): ... here.
20046 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20047
20048 2014-05-08 Wei Mi <wmi@google.com>
20049
20050 PR target/58066
20051 * config/i386/i386.c (ix86_compute_frame_layout): Update
20052 preferred_stack_boundary for call, expanded from tls descriptor.
20053 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20054 to depend on SP register.
20055 (*tls_local_dynamic_base_32_gnu): Ditto.
20056 (*tls_local_dynamic_32_once): Ditto.
20057 (tls_global_dynamic_64_<mode>): Set
20058 ix86_tls_descriptor_calls_expanded_in_cfun.
20059 (tls_local_dynamic_base_64_<mode>): Ditto.
20060 (tls_global_dynamic_32): Set
20061 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20062 to depend on SP register.
20063 (tls_local_dynamic_base_32): Ditto.
20064
20065 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20066
20067 * config/arm/arm_neon.h: Update comment.
20068 * config/arm/neon-docgen.ml: Delete.
20069 * config/arm/neon-gen.ml: Delete.
20070 * doc/arm-neon-intrinsics.texi: Update comment.
20071
20072 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20073
20074 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20075 and v4sf versions.
20076 (vand, vorr, veor, vorn, vbic): Remove.
20077 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20078 iterator.
20079 (neon_vsub_unspec): Likewise.
20080 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20081
20082 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20083
20084 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20085 (vadd_s16): Likewise.
20086 (vadd_s32): Likewise.
20087 (vadd_f32): Likewise.
20088 (vadd_u8): Likewise.
20089 (vadd_u16): Likewise.
20090 (vadd_u32): Likewise.
20091 (vadd_s64): Likewise.
20092 (vadd_u64): Likewise.
20093 (vaddq_s8): Likewise.
20094 (vaddq_s16): Likewise.
20095 (vaddq_s32): Likewise.
20096 (vaddq_s64): Likewise.
20097 (vaddq_f32): Likewise.
20098 (vaddq_u8): Likewise.
20099 (vaddq_u16): Likewise.
20100 (vaddq_u32): Likewise.
20101 (vaddq_u64): Likewise.
20102 (vmul_s8): Likewise.
20103 (vmul_s16): Likewise.
20104 (vmul_s32): Likewise.
20105 (vmul_f32): Likewise.
20106 (vmul_u8): Likewise.
20107 (vmul_u16): Likewise.
20108 (vmul_u32): Likewise.
20109 (vmul_p8): Likewise.
20110 (vmulq_s8): Likewise.
20111 (vmulq_s16): Likewise.
20112 (vmulq_s32): Likewise.
20113 (vmulq_f32): Likewise.
20114 (vmulq_u8): Likewise.
20115 (vmulq_u16): Likewise.
20116 (vmulq_u32): Likewise.
20117 (vsub_s8): Likewise.
20118 (vsub_s16): Likewise.
20119 (vsub_s32): Likewise.
20120 (vsub_f32): Likewise.
20121 (vsub_u8): Likewise.
20122 (vsub_u16): Likewise.
20123 (vsub_u32): Likewise.
20124 (vsub_s64): Likewise.
20125 (vsub_u64): Likewise.
20126 (vsubq_s8): Likewise.
20127 (vsubq_s16): Likewise.
20128 (vsubq_s32): Likewise.
20129 (vsubq_s64): Likewise.
20130 (vsubq_f32): Likewise.
20131 (vsubq_u8): Likewise.
20132 (vsubq_u16): Likewise.
20133 (vsubq_u32): Likewise.
20134 (vsubq_u64): Likewise.
20135 (vand_s8): Likewise.
20136 (vand_s16): Likewise.
20137 (vand_s32): Likewise.
20138 (vand_u8): Likewise.
20139 (vand_u16): Likewise.
20140 (vand_u32): Likewise.
20141 (vand_s64): Likewise.
20142 (vand_u64): Likewise.
20143 (vandq_s8): Likewise.
20144 (vandq_s16): Likewise.
20145 (vandq_s32): Likewise.
20146 (vandq_s64): Likewise.
20147 (vandq_u8): Likewise.
20148 (vandq_u16): Likewise.
20149 (vandq_u32): Likewise.
20150 (vandq_u64): Likewise.
20151 (vorr_s8): Likewise.
20152 (vorr_s16): Likewise.
20153 (vorr_s32): Likewise.
20154 (vorr_u8): Likewise.
20155 (vorr_u16): Likewise.
20156 (vorr_u32): Likewise.
20157 (vorr_s64): Likewise.
20158 (vorr_u64): Likewise.
20159 (vorrq_s8): Likewise.
20160 (vorrq_s16): Likewise.
20161 (vorrq_s32): Likewise.
20162 (vorrq_s64): Likewise.
20163 (vorrq_u8): Likewise.
20164 (vorrq_u16): Likewise.
20165 (vorrq_u32): Likewise.
20166 (vorrq_u64): Likewise.
20167 (veor_s8): Likewise.
20168 (veor_s16): Likewise.
20169 (veor_s32): Likewise.
20170 (veor_u8): Likewise.
20171 (veor_u16): Likewise.
20172 (veor_u32): Likewise.
20173 (veor_s64): Likewise.
20174 (veor_u64): Likewise.
20175 (veorq_s8): Likewise.
20176 (veorq_s16): Likewise.
20177 (veorq_s32): Likewise.
20178 (veorq_s64): Likewise.
20179 (veorq_u8): Likewise.
20180 (veorq_u16): Likewise.
20181 (veorq_u32): Likewise.
20182 (veorq_u64): Likewise.
20183 (vbic_s8): Likewise.
20184 (vbic_s16): Likewise.
20185 (vbic_s32): Likewise.
20186 (vbic_u8): Likewise.
20187 (vbic_u16): Likewise.
20188 (vbic_u32): Likewise.
20189 (vbic_s64): Likewise.
20190 (vbic_u64): Likewise.
20191 (vbicq_s8): Likewise.
20192 (vbicq_s16): Likewise.
20193 (vbicq_s32): Likewise.
20194 (vbicq_s64): Likewise.
20195 (vbicq_u8): Likewise.
20196 (vbicq_u16): Likewise.
20197 (vbicq_u32): Likewise.
20198 (vbicq_u64): Likewise.
20199 (vorn_s8): Likewise.
20200 (vorn_s16): Likewise.
20201 (vorn_s32): Likewise.
20202 (vorn_u8): Likewise.
20203 (vorn_u16): Likewise.
20204 (vorn_u32): Likewise.
20205 (vorn_s64): Likewise.
20206 (vorn_u64): Likewise.
20207 (vornq_s8): Likewise.
20208 (vornq_s16): Likewise.
20209 (vornq_s32): Likewise.
20210 (vornq_s64): Likewise.
20211 (vornq_u8): Likewise.
20212 (vornq_u16): Likewise.
20213 (vornq_u32): Likewise.
20214 (vornq_u64): Likewise.
20215
20216 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20217
20218 * wide-int.cc (UTItype): Define.
20219 (UDWtype): Define for appropriate W_TYPE_SIZE.
20220
20221 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20222
20223 PR tree-optimization/59100
20224 * tree-ssa-phiopt.c: Include tree-inline.h.
20225 (neutral_element_p, absorbing_element_p): New functions.
20226 (value_replacement): Handle conditional binary operations with a
20227 neutral or absorbing element.
20228
20229 2014-05-08 Richard Biener <rguenther@suse.de>
20230
20231 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20232 folding the expression.
20233 (valueize_expr): Remove.
20234 (visit_reference_op_load): Do not valueize the result of
20235 vn_get_expr_for.
20236 (simplify_binary_expression): Likewise.
20237 (simplify_unary_expression): Likewise.
20238
20239 2014-05-08 Richard Biener <rguenther@suse.de>
20240
20241 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20242 looking at TYPE_ARG_TYPES.
20243
20244 2014-05-08 Richard Biener <rguenther@suse.de>
20245
20246 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20247 pointer propagation special-case.
20248
20249 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20250
20251 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20252 core part of address expressions.
20253
20254 2014-05-08 Alan Modra <amodra@gmail.com>
20255
20256 PR target/60737
20257 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20258 loads and stores when -mno-strict-align at any alignment.
20259 (expand_block_clear): Similarly. Also correct calculation of
20260 instruction count.
20261
20262 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20263
20264 PR middle-end/39246
20265 * tree-complex.c (expand_complex_move): Keep line info when expanding
20266 complex move.
20267 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20268 of complex expression. Use new argument to display correct location
20269 for values coming from phi statement.
20270 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20271 (warn_uninitialized_phi): Pass location of phi argument to
20272 warn_uninit.
20273 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20274 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20275
20276 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20277
20278 * config/rs6000/predicates.md (indexed_address_mem): New.
20279 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20280 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20281 fpstore_ux, fpstore_u.
20282 (sign_extend, indexed, update): New.
20283 (cell_micro): Adjust.
20284 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20285 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20286 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20287 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20288 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20289 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20290 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20291 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20292 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20293 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20294 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20295 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20296 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20297 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20298 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20299
20300 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20301 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20302 *vsx_extract_<mode>_store): Adjust.
20303 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20304 is_cracked_insn, insn_must_be_first_in_group,
20305 insn_must_be_last_in_group): Adjust.
20306
20307 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20308 Adjust.
20309 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20310 ppc440-fpstore): Adjust.
20311 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20312 ppc476-fpstore): Adjust.
20313 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20314 ppc601-fpstore): Adjust.
20315 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20316 Adjust.
20317 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20318 Adjust.
20319 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20320 ppc7450-fpstore): Adjust.
20321 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20322 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20323 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20324 Adjust.
20325 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20326 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20327 cell-fpstore, cell-fpstore-update): Adjust.
20328 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20329 ppce300c3_store, ppce300c3_fpstore): Adjust.
20330 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20331 e500mc_fpstore): Adjust.
20332 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20333 e500mc64_store, e500mc64_fpstore): Adjust.
20334 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20335 e5500_fpstore): Adjust.
20336 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20337 e6500_fpstore): Adjust.
20338 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20339 Adjust.
20340 * config/rs6000/power4.md (power4-load, power4-load-ext,
20341 power4-load-ext-update, power4-load-ext-update-indexed,
20342 power4-load-update-indexed, power4-load-update, power4-fpload,
20343 power4-fpload-update, power4-store, power4-store-update,
20344 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20345 Adjust.
20346 * config/rs6000/power5.md (power5-load, power5-load-ext,
20347 power5-load-ext-update, power5-load-ext-update-indexed,
20348 power5-load-update-indexed, power5-load-update, power5-fpload,
20349 power5-fpload-update, power5-store, power5-store-update,
20350 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20351 Adjust.
20352 * config/rs6000/power6.md (power6-load, power6-load-ext,
20353 power6-load-update, power6-load-update-indexed,
20354 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20355 power6-fpload-update, power6-store, power6-store-update,
20356 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20357 Adjust.
20358 * config/rs6000/power7.md (power7-load, power7-load-ext,
20359 power7-load-update, power7-load-update-indexed,
20360 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20361 power7-fpload-update, power7-store, power7-store-update,
20362 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20363 Adjust.
20364 * config/rs6000/power8.md (power8-load, power8-load-update,
20365 power8-load-ext, power8-load-ext-update, power8-fpload,
20366 power8-fpload-update, power8-store, power8-store-update-indexed,
20367 power8-fpstore, power8-fpstore-update): Adjust.
20368 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20369 Adjust.
20370 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20371 titan_lsu_store, titan_lsu_fpstore): Adjust.
20372 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20373
20374 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20375
20376 PR target/60884
20377 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20378 unrolled byte insns. Emit address increments after move insns.
20379
20380 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20381
20382 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20383 const_gimple, rather than a gimple.
20384 (gimple_call_builtin_p): Likewise, for the three variants.
20385
20386 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20387 (gimple_call_builtin_p): Likewise, for the three variants.
20388
20389 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20390
20391 PR tree-optimization/61095
20392 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20393
20394 2014-05-07 Richard Biener <rguenther@suse.de>
20395
20396 PR tree-optimization/61034
20397 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20398 (maybe_skip_until): Use translate to take into account
20399 lattices when trying to do disambiguations.
20400 (get_continuation_for_phi_1): Likewise.
20401 (get_continuation_for_phi): Adjust for added translate arguments.
20402 (walk_non_aliased_vuses): Likewise.
20403 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20404 (walk_non_aliased_vuses): Likewise.
20405 (call_may_clobber_ref_p_1): Declare.
20406 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20407 calls. Stop early if we are only supposed to disambiguate.
20408 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20409
20410 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20411
20412 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20413 Emit an error when the function has arguments.
20414
20415 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20416
20417 * cfgloop.h (unswitch_loops): Remove.
20418 * doc/passes.texi: Remove references to loop-unswitch.c
20419 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20420
20421 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20422
20423 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20424 check for loads group of length 3.
20425 (vect_permute_load_chain): New permutations for loads group of
20426 length 3.
20427 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20428 of vec_perm_shuffle for the new permutations.
20429
20430 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20431
20432 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20433 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20434 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20435 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20436 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20437 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20438 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20439 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20440
20441 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20442
20443 * loop-unswitch.c: Delete.
20444
20445 2014-05-07 Richard Biener <rguenther@suse.de>
20446
20447 * config.gcc: Always set need_64bit_hwint to yes.
20448
20449 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20450
20451 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20452 of using optimize_size.
20453
20454 2014-05-06 Mike Stump <mikestump@comcast.net>
20455
20456 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20457
20458 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20459
20460 * config/i386/sse.md (*mov<mode>_internal)
20461 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20462 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20463 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20464 (*<code><mode>3, *andnot<mode>3<mask_name>)
20465 (<mask_codefor><code><mode>3<mask_name>): Only consider
20466 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20467
20468 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20469
20470 Revert:
20471 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20472
20473 * lra-constraints.c (valid_address_p): Move earlier in file.
20474 Add a constraint argument to the address_info version.
20475 (satisfies_memory_constraint_p): New function.
20476 (satisfies_address_constraint_p): Likewise.
20477 (process_alt_operands, curr_insn_transform): Use them.
20478 (process_address): Pass the constraint to valid_address_p when
20479 checking address operands.
20480
20481 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
20482
20483 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20484 to their respective blocks. Fix inadvertent use of "node".
20485
20486 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20487
20488 * emit-rtl.c (init_derived_machine_modes): New functionm, split
20489 out from...
20490 (init_emit_once): ...here.
20491 * rtl.h (init_derived_machine_modes): Declare.
20492 * toplev.c (do_compile): Call it even if no_backend.
20493
20494 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
20495 Mike Stump <mikestump@comcast.net>
20496 Richard Sandiford <rdsandiford@googlemail.com>
20497 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20498
20499 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20500 (rtx_equal_for_memref_p): Update comment.
20501 (adjust_offset_for_component_ref): Use wide-int interfaces.
20502 * builtins.c (get_object_alignment_2): Likewise.
20503 (c_readstr): Likewise.
20504 (target_char_cast): Add comment.
20505 (determine_block_size): Use wide-int interfaces.
20506 (expand_builtin_signbit): Likewise.
20507 (fold_builtin_int_roundingfn): Likewise.
20508 (fold_builtin_bitop): Likewise.
20509 (fold_builtin_bswap): Likewise.
20510 (fold_builtin_logarithm): Use signop.
20511 (fold_builtin_pow): Likewise.
20512 (fold_builtin_memory_op): Use wide-int interfaces.
20513 (fold_builtin_object_size): Likewise.
20514 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20515 nb_iterations_estimate.
20516 (record_niter_bound): Use wide-int interfaces.
20517 (get_estimated_loop_iterations_int): Likewise.
20518 (get_estimated_loop_iterations): Likewise.
20519 (get_max_loop_iterations): Likewise.
20520 * cfgloop.h: Include wide-int.h.
20521 (struct nb_iter_bound): Change bound to widest_int.
20522 (struct loop): Change nb_iterations_upper_bound and
20523 nb_iterations_estimate to widest_int.
20524 (record_niter_bound): Switch to use widest_int.
20525 (get_estimated_loop_iterations): Likewise.
20526 (get_max_loop_iterations): Likewise.
20527 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20528 update for wide-int.
20529 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20530 * combine.c (try_combine): Likewise.
20531 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20532 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20533 interfaces.
20534 (aarch64_float_const_representable_p): Likewise.
20535 * config/arc/arc.c: Include wide-int.h.
20536 (arc_can_use_doloop_p): Use wide-int interfaces.
20537 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20538 (vfp3_const_double_index): Likewise.
20539 * config/avr/avr.c (avr_out_round): Likewise.
20540 (avr_fold_builtin): Likewise.
20541 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20542 (bfin_can_use_doloop_p): Likewise.
20543 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20544 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20545 * config/i386/i386.c: Include wide-int.h.
20546 (ix86_data_alignment): Use wide-int interfaces.
20547 (ix86_local_alignment): Likewise.
20548 (ix86_emit_swsqrtsf): Update real_from_integer.
20549 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20550 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20551 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20552 (zero_constant): Likewise.
20553 (input_operand): Likewise.
20554 (splat_input_operand): Likewise.
20555 (non_logical_cint_operand): Change const_double to const_wide_int.
20556 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20557 (easy_altivec_constant): Remove comment.
20558 (paired_expand_vector_init): Use CONSTANT_P.
20559 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20560 (rs6000_emit_move): Update checks.
20561 (rs6000_aggregate_candidate): Use wide-int interfaces.
20562 (rs6000_expand_ternop_builtin): Likewise.
20563 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20564 (rs6000_assemble_integer): Likewise.
20565 (rs6000_hash_constant): Likewise.
20566 (output_toc): Likewise.
20567 (rs6000_rtx_costs): Likewise.
20568 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20569 * config/rs6000/rs6000-c.c: Include wide-int.h.
20570 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20571 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20572 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20573 Handle CONST_WIDE_INT.
20574 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20575 Use tree_fits_uhwi_p.
20576 * config/sparc/sparc.c: Include wide-int.h.
20577 (sparc_fold_builtin): Use wide-int interfaces.
20578 * config/vax/vax.c: Include wide-int.h.
20579 (vax_float_literal): Use real_from_integer.
20580 * coretypes.h (struct hwivec_def): New.
20581 (hwivec): New.
20582 (const_hwivec): New.
20583 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20584 (equiv_constant): Handle CONST_WIDE_INT.
20585 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20586 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20587 * dbxout.c (stabstr_U): Use wide-int interfaces.
20588 (dbxout_type): Update to use cst_fits_shwi_p.
20589 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20590 (TARGET_SUPPORTS_WIDE_INT): Add default.
20591 * dfp.c: Include wide-int.h.
20592 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20593 decimal_real_to_integer.
20594 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20595 decimal_real_to_integer.
20596 * doc/generic.texi (Constant expressions): Update for wide_int.
20597 * doc/rtl.texi (const_double): Likewise.
20598 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20599 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20600 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20601 (REAL_VALUE_FROM_INT): Remove.
20602 (TARGET_SUPPORTS_WIDE_INT): New.
20603 * doc/tm.texi: Regenerate.
20604 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20605 * double-int.h: Include wide-int.h.
20606 (struct wi::int_traits): New.
20607 * dwarf2out.c (get_full_len): New.
20608 (dw_val_equal_p): Add case dw_val_class_wide_int.
20609 (size_of_loc_descr): Likewise.
20610 (output_loc_operands): Likewise.
20611 (insert_double): Remove.
20612 (insert_wide_int): New.
20613 (add_AT_wide): New.
20614 (print_die): Add case dw_val_class_wide_int.
20615 (attr_checksum): Likewise.
20616 (attr_checksum_ordered): Likewise.
20617 (same_dw_val_p): Likewise.
20618 (size_of_die): Likewise.
20619 (value_format): Likewise.
20620 (output_die): Likewise.
20621 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20622 Use wide-int.
20623 (clz_loc_descriptor): Use wide-int interfaces.
20624 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20625 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20626 (round_up_to_align): Use wide-int interfaces.
20627 (field_byte_offset): Likewise.
20628 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20629 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20630 CONST_DOUBLE handling. Use wide-int interfaces.
20631 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20632 (gen_enumeration_type_die): Use add_AT_wide.
20633 (hash_loc_operands): Add case dw_val_class_wide_int.
20634 (compare_loc_operands): Likewise.
20635 * dwarf2out.h: Include wide-int.h.
20636 (wide_int_ptr): New.
20637 (enum dw_val_class): Add dw_val_class_wide_int.
20638 (struct dw_val_struct): Add val_wide.
20639 * emit-rtl.c (const_wide_int_htab): New.
20640 (const_wide_int_htab_hash): New.
20641 (const_wide_int_htab_eq): New.
20642 (lookup_const_wide_int): New.
20643 (const_double_htab_hash): Use wide-int interfaces.
20644 (const_double_htab_eq): Likewise.
20645 (rtx_to_double_int): Conditionally compile for wide-int.
20646 (immed_double_int_const): Rename to immed_wide_int_const and
20647 update for wide-int.
20648 (immed_double_const): Conditionally compile for wide-int.
20649 (init_emit_once): Use wide-int interfaces.
20650 * explow.c (plus_constant): Likewise.
20651 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20652 (lshift_value): Use wide-int interfaces.
20653 (expand_mult): Likewise.
20654 (choose_multiplier): Likewise.
20655 (expand_smod_pow2): Likewise.
20656 (make_tree): Likewise.
20657 * expr.c (convert_modes): Consolidate handling of constants.
20658 Use wide-int interfaces.
20659 (emit_group_load_1): Add note.
20660 (store_expr): Update comment.
20661 (get_inner_reference): Use wide-int interfaces.
20662 (expand_constructor): Update comment.
20663 (expand_expr_real_2): Use wide-int interfaces.
20664 (expand_expr_real_1): Likewise.
20665 (reduce_to_bit_field_precision): Likewise.
20666 (const_vector_from_tree): Likewise.
20667 * final.c: Include wide-int-print.h.
20668 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20669 * fixed-value.c: Include wide-int.h.
20670 (fixed_from_string): Use wide-int interfaces.
20671 (fixed_to_decimal): Likewise.
20672 (fixed_convert_from_real): Likewise.
20673 (real_convert_from_fixed): Likewise.
20674 * fold-const.h (mem_ref_offset): Return an offset_int.
20675 (div_if_zero_remainder): Remove code parameter.
20676 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20677 Use wide-int interfaces.
20678 (may_negate_without_overflow_p): Use wide-int interfaces.
20679 (negate_expr_p): Likewise.
20680 (fold_negate_expr): Likewise.
20681 (int_const_binop_1): Likewise.
20682 (const_binop): Likewise.
20683 (fold_convert_const_int_from_int): Likewise.
20684 (fold_convert_const_int_from_real): Likewise.
20685 (fold_convert_const_int_from_fixed): Likewise.
20686 (fold_convert_const_fixed_from_int): Likewise.
20687 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20688 (sign_bit_p): Use wide-int interfaces.
20689 (make_range_step): Likewise.
20690 (build_range_check): Likewise. Pass an integer of the correct type
20691 instead of using integer_one_node.
20692 (range_predecessor): Pass an integer of the correct type instead
20693 of using integer_one_node.
20694 (range_successor): Likewise.
20695 (merge_ranges): Likewise.
20696 (unextend): Use wide-int interfaces.
20697 (extract_muldiv_1): Likewise.
20698 (fold_div_compare): Likewise.
20699 (fold_single_bit_test): Likewise.
20700 (fold_sign_changed_comparison): Likewise.
20701 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20702 (fold_plusminus_mult_expr): Use wide-int interfaces.
20703 (native_encode_int): Likewise.
20704 (native_interpret_int): Likewise.
20705 (fold_unary_loc): Likewise.
20706 (pointer_may_wrap_p): Likewise.
20707 (size_low_cst): Likewise.
20708 (mask_with_tz): Likewise.
20709 (fold_binary_loc): Likewise.
20710 (fold_ternary_loc): Likewise.
20711 (multiple_of_p): Likewise.
20712 (tree_call_nonnegative_warnv_p): Update calls to
20713 tree_int_cst_min_precision and real_from_integer.
20714 (fold_negate_const): Use wide-int interfaces.
20715 (fold_abs_const): Likewise.
20716 (fold_relational_const): Use tree_int_cst_lt.
20717 (round_up_loc): Use wide-int interfaces.
20718 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20719 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20720 * gengtype.c: Remove include of double-int.h.
20721 (do_typedef): Use wide-int interfaces.
20722 (open_base_files): Add wide-int.h.
20723 (main): Add offset_int and widest_int typedefs.
20724 * gengtype-lex.l: Handle "^".
20725 (CXX_KEYWORD): Add "static".
20726 * gengtype-parse.c (require3): New.
20727 (require_template_declaration): Handle constant template arguments
20728 and nested templates.
20729 * gengtype-state.c: Don't include "double-int.h".
20730 * genpreds.c (write_one_predicate_function): Update comment.
20731 (write_tm_constrs_h): Add check for hval and lval use in
20732 CONST_WIDE_INT.
20733 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20734 (add_to_sequence): Likewise.
20735 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20736 and const_double_operand.
20737 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20738 interfaces.
20739 * gimple-fold.c (get_base_constructor): Likewise.
20740 (fold_array_ctor_reference): Likewise.
20741 (fold_nonarray_ctor_reference): Likewise.
20742 (fold_const_aggregate_ref_1): Likewise.
20743 (gimple_val_nonnegative_real_p): Likewise.
20744 (gimple_fold_indirect_ref): Likewise.
20745 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
20746 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
20747 (struct slsr_cand_d): Change index to be widest_int.
20748 (struct incr_info_d): Change incr to be widest_int.
20749 (alloc_cand_and_find_basis): Use wide-int interfaces.
20750 (slsr_process_phi): Likewise.
20751 (backtrace_base_for_ref): Likewise. Return a widest_int.
20752 (restructure_reference): Take a widest_int instead of a double_int.
20753 (slsr_process_ref): Use wide-int interfaces.
20754 (create_mul_ssa_cand): Likewise.
20755 (create_mul_imm_cand): Likewise.
20756 (create_add_ssa_cand): Likewise.
20757 (create_add_imm_cand): Take a widest_int instead of a double_int.
20758 (slsr_process_add): Use wide-int interfaces.
20759 (slsr_process_cast): Likewise.
20760 (slsr_process_copy): Likewise.
20761 (dump_candidate): Likewise.
20762 (dump_incr_vec): Likewise.
20763 (replace_ref): Likewise.
20764 (cand_increment): Likewise. Return a widest_int.
20765 (cand_abs_increment): Likewise.
20766 (replace_mult_candidate): Take a widest_int instead of a double_int.
20767 (replace_unconditional_candidate): Use wide-int interfaces.
20768 (incr_vec_index): Take a widest_int instead of a double_int.
20769 (create_add_on_incoming_edge): Likewise.
20770 (create_phi_basis): Use wide-int interfaces.
20771 (replace_conditional_candidate): Likewise.
20772 (record_increment): Take a widest_int instead of a double_int.
20773 (record_phi_increments): Use wide-int interfaces.
20774 (phi_incr_cost): Take a widest_int instead of a double_int.
20775 (lowest_cost_path): Likewise.
20776 (total_savings): Likewise.
20777 (analyze_increments): Use wide-int interfaces.
20778 (ncd_with_phi): Take a widest_int instead of a double_int.
20779 (ncd_of_cand_and_phis): Likewise.
20780 (nearest_common_dominator_for_cands): Likewise.
20781 (insert_initializers): Use wide-int interfaces.
20782 (all_phi_incrs_profitable): Likewise.
20783 (replace_one_candidate): Likewise.
20784 (replace_profitable_candidates): Likewise.
20785 * godump.c: Include wide-int-print.h.
20786 (go_output_typedef): Use wide-int interfaces.
20787 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
20788 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
20789 (build_loop_iteration_domains): Likewise.
20790 * hooks.h: Include wide-int.h rather than double-int.h.
20791 (hook_bool_dint_dint_uint_bool_true): Delete.
20792 (hook_bool_wint_wint_uint_bool_true): Declare.
20793 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
20794 (hook_bool_wint_wint_uint_bool_true): New.
20795 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
20796 interfaces.
20797 (ubsan_expand_si_overflow_mul_check): Likewise.
20798 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
20799 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
20800 (get_ancestor_addr_info): Likewise.
20801 (ipa_modify_call_arguments): Likewise.
20802 * loop-doloop.c (doloop_modify): Likewise.
20803 (doloop_optimize): Likewise.
20804 * loop-iv.c (iv_number_of_iterations): Likewise.
20805 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
20806 (unroll_loop_constant_iterations): Likewise.
20807 (decide_unroll_runtime_iterations): Likewise.
20808 (unroll_loop_runtime_iterations): Likewise.
20809 (decide_peel_simple): Likewise.
20810 (decide_unroll_stupid): Likewise.
20811 * lto-streamer-in.c (streamer_read_wi): Add.
20812 (input_cfg): Use wide-int interfaces.
20813 (lto_input_tree_1): Likewise.
20814 * lto-streamer-out.c (streamer_write_wi): Add.
20815 (hash_tree): Use wide-int interfaces.
20816 (output_cfg): Likewise.
20817 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
20818 (GTFILES): Add wide-int.h and signop.h.
20819 (TAGS): Look for .cc files too.
20820 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
20821 * optabs.c (expand_subword_shift): Likewise.
20822 (expand_doubleword_shift): Likewise.
20823 (expand_absneg_bit): Likewise.
20824 (expand_copysign_absneg): Likewise.
20825 (expand_copysign_bit): Likewise.
20826 * postreload.c (reload_cse_simplify_set): Likewise.
20827 * predict.c (predict_iv_comparison): Likewise.
20828 * pretty-print.h: Include wide-int-print.h.
20829 (pp_wide_int) New.
20830 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
20831 * print-tree.c: Include wide-int-print.h.
20832 (print_node_brief): Use wide-int interfaces.
20833 (print_node): Likewise.
20834 * read-rtl.c (validate_const_wide_int): New.
20835 (read_rtx_code): Add CONST_WIDE_INT case.
20836 * real.c: Include wide-int.h.
20837 (real_to_integer2): Delete.
20838 (real_to_integer): New function, returning a wide_int.
20839 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20840 (ten_to_ptwo): Update call to real_from_integer.
20841 (real_digit): Likewise.
20842 * real.h: Include signop.h, wide-int.h and insn-modes.h.
20843 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
20844 (REAL_VALUE_TO_INT): Delete.
20845 (real_to_integer): Declare a wide-int form.
20846 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20847 * recog.c (const_int_operand): Improve comment.
20848 (const_scalar_int_operand): New.
20849 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
20850 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
20851 (split_double): Likewise.
20852 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
20853 (rtx_size): Likewise.
20854 (rtx_alloc_stat_v): New.
20855 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
20856 (cwi_output_hex): New.
20857 (iterative_hash_rtx): Handle CONST_WIDE_INT.
20858 (cwi_check_failed_bounds): New.
20859 * rtl.def (CONST_WIDE_INT): New.
20860 * rtl.h: Include <utility> and wide-int.h.
20861 (struct hwivec_def): New.
20862 (CWI_GET_NUM_ELEM): New.
20863 (CWI_PUT_NUM_ELEM): New.
20864 (struct rtx_def): Add num_elem and hwiv.
20865 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
20866 (CASE_CONST_UNIQUE): Likewise.
20867 (CASE_CONST_ANY): Likewise.
20868 (CONST_SCALAR_INT_P): Likewise.
20869 (CONST_WIDE_INT_P): New.
20870 (CWI_ELT): New.
20871 (HWIVEC_CHECK): New.
20872 (cwi_check_failed_bounds): New.
20873 (CWI_ELT): New.
20874 (HWIVEC_CHECK): New.
20875 (CONST_WIDE_INT_VEC) New.
20876 (CONST_WIDE_INT_NUNITS) New.
20877 (CONST_WIDE_INT_ELT) New.
20878 (rtx_mode_t): New type.
20879 (wi::int_traits <rtx_mode_t>): New.
20880 (wi::shwi): New.
20881 (wi::min_value): New.
20882 (wi::max_value): New.
20883 (rtx_alloc_v) New.
20884 (const_wide_int_alloc): New.
20885 (immed_wide_int_const): New.
20886 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
20887 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
20888 * signop.h: New file.
20889 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
20890 (simplify_const_unary_operation): Use wide-int interfaces.
20891 (simplify_binary_operation_1): Likewise.
20892 (simplify_const_binary_operation): Likewise.
20893 (simplify_const_relational_operation): Likewise.
20894 (simplify_immed_subreg): Likewise.
20895 * stmt.c (expand_case): Likewise.
20896 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
20897 signop rather than a bool.
20898 * stor-layout.c (layout_type): Use wide-int interfaces.
20899 (initialize_sizetypes): Update calls to
20900 set_min_and_max_values_for_integral_type.
20901 (set_min_and_max_values_for_integral_type): Take a signop rather
20902 than a bool. Use wide-int interfaces.
20903 (fixup_signed_type): Update accordingly. Remove
20904 HOST_BITS_PER_DOUBLE_INT limit.
20905 (fixup_unsigned_type): Likewise.
20906 * system.h (STATIC_CONSTANT_P): New.
20907 (STATIC_ASSERT): New.
20908 * target.def (can_use_doloop_p): Take widest_ints rather than
20909 double_ints.
20910 * target.h: Include wide-int.h rather than double-int.h.
20911 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
20912 than double_ints.
20913 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
20914 rather than INT_CST_LT_UNSIGNED.
20915 (can_use_doloop_if_innermost): Take widest_ints rather than
20916 double_ints.
20917 * tree-affine.c: Include wide-int-print.h.
20918 (double_int_ext_for_comb): Delete.
20919 (wide_int_ext_for_comb): New.
20920 (aff_combination_zero): Use wide-int interfaces.
20921 (aff_combination_const): Take a widest_int instead of a double_int.
20922 (aff_combination_elt): Use wide-int interfaces.
20923 (aff_combination_scale): Take a widest_int instead of a double_int.
20924 (aff_combination_add_elt): Likewise.
20925 (aff_combination_add_cst): Likewise.
20926 (aff_combination_add): Use wide-int interfaces.
20927 (aff_combination_convert): Likewise.
20928 (tree_to_aff_combination): Likewise.
20929 (add_elt_to_tree): Take a widest_int instead of a double_int.
20930 (aff_combination_to_tree): Use wide-int interfaces.
20931 (aff_combination_remove_elt): Likewise.
20932 (aff_combination_add_product): Take a widest_int instead of
20933 a double_int.
20934 (aff_combination_mult): Use wide-int interfaces.
20935 (aff_combination_expand): Likewise.
20936 (double_int_constant_multiple_p): Delete.
20937 (wide_int_constant_multiple_p): New.
20938 (aff_combination_constant_multiple_p): Take a widest_int pointer
20939 instead of a double_int pointer.
20940 (print_aff): Use wide-int interfaces.
20941 (get_inner_reference_aff): Take a widest_int pointer
20942 instead of a double_int pointer.
20943 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
20944 * tree-affine.h: Include wide-int.h.
20945 (struct aff_comb_elt): Change type of coef to widest_int.
20946 (struct affine_tree_combination): Change type of offset to widest_int.
20947 (double_int_ext_for_comb): Delete.
20948 (wide_int_ext_for_comb): New.
20949 (aff_combination_const): Use widest_int instead of double_int.
20950 (aff_combination_scale): Likewise.
20951 (aff_combination_add_elt): Likewise.
20952 (aff_combination_constant_multiple_p): Likewise.
20953 (get_inner_reference_aff): Likewise.
20954 (aff_comb_cannot_overlap_p): Likewise.
20955 (aff_combination_zero_p): Use wide-int interfaces.
20956 * tree.c: Include tree.h.
20957 (init_ttree): Use make_int_cst.
20958 (tree_code_size): Removed code for INTEGER_CST case.
20959 (tree_size): Add INTEGER_CST case.
20960 (make_node_stat): Update comment.
20961 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
20962 (build_int_cst_type): Use wide-int interfaces.
20963 (double_int_to_tree): Likewise.
20964 (double_int_fits_to_tree_p): Delete.
20965 (force_fit_type_double): Delete.
20966 (force_fit_type): New.
20967 (int_cst_hash_hash): Use wide-int interfaces.
20968 (int_cst_hash_eq): Likewise.
20969 (build_int_cst_wide): Delete.
20970 (wide_int_to_tree): New.
20971 (cache_integer_cst): Use wide-int interfaces.
20972 (build_low_bits_mask): Likewise.
20973 (cst_and_fits_in_hwi): Likewise.
20974 (real_value_from_int_cst): Likewise.
20975 (make_int_cst_stat): New.
20976 (integer_zerop): Use wide_int interfaces.
20977 (integer_onep): Likewise.
20978 (integer_all_onesp): Likewise.
20979 (integer_pow2p): Likewise.
20980 (integer_nonzerop): Likewise.
20981 (tree_log2): Likewise.
20982 (tree_floor_log2): Likewise.
20983 (tree_ctz): Likewise.
20984 (int_size_in_bytes): Likewise.
20985 (mem_ref_offset): Return an offset_int rather than a double_int.
20986 (build_type_attribute_qual_variant): Use wide_int interfaces.
20987 (type_hash_eq): Likewise
20988 (tree_int_cst_equal): Likewise.
20989 (tree_int_cst_lt): Delete.
20990 (tree_int_cst_compare): Likewise.
20991 (tree_fits_shwi_p): Use wide_int interfaces.
20992 (tree_fits_uhwi_p): Likewise.
20993 (tree_int_cst_sign_bit): Likewise.
20994 (tree_int_cst_sgn): Likewise.
20995 (tree_int_cst_min_precision): Take a signop rather than a bool.
20996 (simple_cst_equal): Use wide_int interfaces.
20997 (compare_tree_int): Likewise.
20998 (iterative_hash_expr): Likewise.
20999 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21000 INT_CST_LT.
21001 (get_type_static_bounds): Use wide_int interfaces.
21002 (tree_int_cst_elt_check_failed): New.
21003 (build_common_tree_nodes): Reordered to set prec before filling in
21004 value.
21005 (int_cst_value): Check cst_and_fits_in_hwi.
21006 (widest_int_cst_value): Use wide_int interfaces.
21007 (upper_bound_in_type): Likewise.
21008 (lower_bound_in_type): Likewise.
21009 (num_ending_zeros): Likewise.
21010 (drop_tree_overflow): Likewise.
21011 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21012 (gen_conditions_for_pow_cst_base): Likewise.
21013 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21014 (group_case_labels_stmt): Use wide-int interfaces.
21015 (verify_gimple_assign_binary): Likewise.
21016 (print_loop): Likewise.
21017 * tree-chrec.c (tree_fold_binomial): Likewise.
21018 * tree-core.h (struct tree_base): Add int_length.
21019 (struct tree_int_cst): Change rep of value.
21020 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21021 (dr_may_alias_p): Likewise.
21022 (max_stmt_executions_tree): Likewise.
21023 * tree.def (INTEGER_CST): Update comment.
21024 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21025 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21026 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21027 (dequeue_and_dump): Use wide-int interfaces.
21028 * tree.h: Include wide-int.h.
21029 (NULL_TREE): Moved to earlier loc in file.
21030 (TREE_INT_CST_ELT_CHECK): New.
21031 (tree_int_cst_elt_check_failed): New.
21032 (TYPE_SIGN): New.
21033 (TREE_INT_CST): Delete.
21034 (TREE_INT_CST_LOW): Use wide-int interfaces.
21035 (TREE_INT_CST_HIGH): Delete.
21036 (TREE_INT_CST_NUNITS): New.
21037 (TREE_INT_CST_EXT_NUNITS): Likewise.
21038 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21039 (TREE_INT_CST_ELT): Likewise.
21040 (INT_CST_LT): Delete.
21041 (tree_int_cst_elt_check): New (two forms).
21042 (type_code_size): Update comment.
21043 (make_int_cst_stat, make_int_cst): New.
21044 (tree_to_double_int): Delete.
21045 (double_int_fits_to_tree_p): Delete.
21046 (force_fit_type_double): Delete.
21047 (build_int_cstu): Replace with out-of-line function.
21048 (build_int_cst_wide): Delete.
21049 (tree_int_cst_lt): Define inline.
21050 (tree_int_cst_le): New.
21051 (tree_int_cst_compare): Define inline.
21052 (tree_int_cst_min_precision): Take a signop rather than a bool.
21053 (wi::int_traits <const_tree>): New.
21054 (wi::int_traits <tree>): New.
21055 (wi::extended_tree): New.
21056 (wi::int_traits <wi::extended_tree>): New.
21057 (wi::to_widest): New.
21058 (wi::to_offset): New.
21059 (wi::fits_to_tree_p): New.
21060 (wi::min_value): New.
21061 (wi::max_value): New.
21062 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21063 (copy_tree_body_r): Likewise.
21064 * tree-object-size.c (compute_object_offset): Likewise.
21065 (addr_object_size): Likewise.
21066 * tree-predcom.c: Include wide-int-print.h.
21067 (struct dref_d): Change type of offset to widest_int.
21068 (dump_dref): Call wide-int printer.
21069 (aff_combination_dr_offset): Use wide-int interfaces.
21070 (determine_offset): Take a widest_int pointer rather than a
21071 double_int pointer.
21072 (split_data_refs_to_components): Use wide-int interfaces.
21073 (suitable_component_p): Likewise.
21074 (order_drefs): Likewise.
21075 (add_ref_to_chain): Likewise.
21076 (valid_initializer_p): Likewise.
21077 (determine_roots_comp): Likewise.
21078 * tree-pretty-print.c: Include wide-int-print.h.
21079 (dump_generic_node): Use wide-int interfaces.
21080 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21081 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21082 (move_fixed_address_to_symbol): Likewise.
21083 (move_hint_to_base): Likewise.
21084 (move_pointer_to_base): Likewise.
21085 (move_variant_to_index): Likewise.
21086 (most_expensive_mult_to_index): Likewise.
21087 (addr_to_parts): Likewise.
21088 (copy_ref_info): Likewise.
21089 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21090 (indirect_refs_may_alias_p): Likewise.
21091 (stmt_kills_ref_p_1): Likewise.
21092 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21093 * tree-ssa-ccp.c: Update comment at top of file. Include
21094 wide-int-print.h.
21095 (struct prop_value_d): Change type of mask to widest_int.
21096 (extend_mask): New function.
21097 (dump_lattice_value): Use wide-int interfaces.
21098 (get_default_value): Likewise.
21099 (set_constant_value): Likewise.
21100 (set_value_varying): Likewise.
21101 (valid_lattice_transition): Likewise.
21102 (set_lattice_value): Likewise.
21103 (value_to_double_int): Delete.
21104 (value_to_wide_int): New.
21105 (get_value_from_alignment): Use wide-int interfaces.
21106 (get_value_for_expr): Likewise.
21107 (do_dbg_cnt): Likewise.
21108 (ccp_finalize): Likewise.
21109 (ccp_lattice_meet): Likewise.
21110 (bit_value_unop_1): Use widest_ints rather than double_ints.
21111 (bit_value_binop_1): Likewise.
21112 (bit_value_unop): Use wide-int interfaces.
21113 (bit_value_binop): Likewise.
21114 (bit_value_assume_aligned): Likewise.
21115 (evaluate_stmt): Likewise.
21116 (ccp_fold_stmt): Likewise.
21117 (visit_cond_stmt): Likewise.
21118 (ccp_visit_stmt): Likewise.
21119 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21120 (constant_pointer_difference): Likewise.
21121 (associate_pointerplus): Likewise.
21122 (combine_conversions): Likewise.
21123 * tree-ssa-loop.h: Include wide-int.h.
21124 (struct tree_niter_desc): Change type of max to widest_int.
21125 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21126 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21127 (remove_redundant_iv_tests): Likewise.
21128 (canonicalize_loop_induction_variables): Likewise.
21129 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21130 (constant_multiple_of): Take a widest_int pointer instead of
21131 a double_int pointer.
21132 (get_computation_aff): Use wide-int interfaces.
21133 (ptr_difference_cost): Likewise.
21134 (difference_cost): Likewise.
21135 (get_loop_invariant_expr_id): Likewise.
21136 (get_computation_cost_at): Likewise.
21137 (iv_elimination_compare_lt): Likewise.
21138 (may_eliminate_iv): Likewise.
21139 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21140 instead of double_int.
21141 (max_loop_iterations): Likewise.
21142 (max_stmt_executions): Likewise.
21143 (estimated_stmt_executions): Likewise.
21144 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21145 (split_to_var_and_offset): Use wide-int interfaces.
21146 (determine_value_range): Likewise.
21147 (bound_difference_of_offsetted_base): Likewise.
21148 (bounds_add): Take a widest_int instead of a double_int.
21149 (number_of_iterations_ne_max): Use wide-int interfaces.
21150 (number_of_iterations_ne): Likewise.
21151 (number_of_iterations_lt_to_ne): Likewise.
21152 (assert_loop_rolls_lt): Likewise.
21153 (number_of_iterations_lt): Likewise.
21154 (number_of_iterations_le): Likewise.
21155 (number_of_iterations_cond): Likewise.
21156 (number_of_iterations_exit): Likewise.
21157 (finite_loop_p): Likewise.
21158 (derive_constant_upper_bound_assign): Likewise.
21159 (derive_constant_upper_bound): Return a widest_int.
21160 (derive_constant_upper_bound_ops): Likewise.
21161 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21162 (record_estimate): Take a widest_int rather than a double_int.
21163 (record_nonwrapping_iv): Use wide-int interfaces.
21164 (double_int_cmp): Delete.
21165 (wide_int_cmp): New.
21166 (bound_index): Take a widest_int rather than a double_int.
21167 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21168 (maybe_lower_iteration_bound): Likewise.
21169 (estimate_numbers_of_iterations_loop): Likewise.
21170 (estimated_loop_iterations): Take a widest_int pointer than than
21171 a double_int pointer.
21172 (estimated_loop_iterations_int): Use wide-int interfaces.
21173 (max_loop_iterations): Take a widest_int pointer than than
21174 a double_int pointer.
21175 (max_loop_iterations_int): Use wide-int interfaces.
21176 (max_stmt_executions): Take a widest_int pointer than than
21177 a double_int pointer.
21178 (estimated_stmt_executions): Likewise.
21179 (n_of_executions_at_most): Use wide-int interfaces.
21180 (scev_probably_wraps_p): Likewise.
21181 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21182 to real_to_integer.
21183 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21184 interfaces.
21185 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21186 double_ints. Adjust for trailing_wide_ints <3> representation.
21187 (set_nonzero_bits): Likewise.
21188 (get_range_info): Return wide_ints rather than double_ints.
21189 Adjust for trailing_wide_ints <3> representation.
21190 (get_nonzero_bits): Likewise.
21191 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21192 representation.
21193 * tree-ssanames.h (struct range_info_def): Replace min, max and
21194 nonzero_bits with a trailing_wide_ints <3>.
21195 (set_range_info): Use wide_int_refs rather than double_ints.
21196 (set_nonzero_bits): Likewise.
21197 (get_range_info): Return wide_ints rather than double_ints.
21198 (get_nonzero_bits): Likewise.
21199 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21200 * tree-ssa-pre.c (phi_translate_1): Likewise.
21201 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21202 (acceptable_pow_call): Likewise.
21203 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21204 interfaces.
21205 (vn_reference_fold_indirect): Likewise.
21206 (vn_reference_maybe_forwprop_address): Likewise.
21207 (valueize_refs_1): Likewise.
21208 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21209 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21210 tree_int_cst_lt and tree_int_cst_le.
21211 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21212 interfaces.
21213 (streamer_alloc_tree): Likewise.
21214 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21215 (streamer_write_tree_header): Likewise.
21216 (streamer_write_integer_cst): Likewise.
21217 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21218 (build_constructors): Likewise.
21219 (array_value_type): Likewise.
21220 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21221 (vect_check_gather): Likewise.
21222 * tree-vect-generic.c (build_replicated_const): Likewise.
21223 (expand_vector_divmod): Likewise.
21224 * tree-vect-loop.c (vect_transform_loop): Likewise.
21225 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21226 (vect_do_peeling_for_alignment): Likewise.
21227 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21228 * tree-vrp.c: Include wide-int.h.
21229 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21230 (extract_range_from_assert): Use wide-int interfaces.
21231 (vrp_int_const_binop): Likewise.
21232 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21233 double_int pointers.
21234 (ranges_from_anti_range): Use wide-int interfaces.
21235 (quad_int_cmp): Delete.
21236 (quad_int_pair_sort): Likewise.
21237 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21238 (extract_range_from_unary_expr_1): Likewise.
21239 (adjust_range_with_scev): Likewise.
21240 (masked_increment): Take and return wide_ints rather than double_ints.
21241 (register_edge_assert_for_2): Use wide-int interfaces.
21242 (check_array_ref): Likewise.
21243 (search_for_addr_array): Likewise.
21244 (maybe_set_nonzero_bits): Likewise.
21245 (union_ranges): Pass an integer of the correct type instead of
21246 using integer_one_node.
21247 (intersect_ranges): Likewise.
21248 (simplify_truth_ops_using_ranges): Likewise.
21249 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21250 (range_fits_type_p): Likewise.
21251 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21252 a bool.
21253 (simplify_conversion_using_ranges): Use wide-int interfaces.
21254 (simplify_float_conversion_using_ranges): Likewise.
21255 (vrp_finalize): Likewise.
21256 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21257 (gimple_stringops_transform): Likewise.
21258 * varasm.c (decode_addr_const): Likewise.
21259 (const_hash_1): Likewise.
21260 (const_rtx_hash_1): Likewise
21261 (output_constant): Likewise.
21262 (array_size_for_constructor): Likewise.
21263 (output_constructor_regular_field): Likewise.
21264 (output_constructor_bitfield): Likewise.
21265 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21266 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21267 GENERATOR_FILEs.
21268 * gencheck.c: Define BITS_PER_UNIT.
21269 * wide-int.cc: New.
21270 * wide-int.h: New.
21271 * wide-int-print.cc: New.
21272 * wide-int-print.h: New.
21273
21274 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21275
21276 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21277
21278 2014-05-06 Richard Biener <rguenther@suse.de>
21279
21280 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21281 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21282 (TODO_verify_all): Adjust.
21283 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21284 TODO_verify_stmts and TODO_verify_rtl_sharing.
21285 * bb-reorder.c: Likewise.
21286 * cfgexpand.c: Likewise.
21287 * cprop.c: Likewise.
21288 * cse.c: Likewise.
21289 * function.c: Likewise.
21290 * fwprop.c: Likewise.
21291 * gcse.c: Likewise.
21292 * gimple-ssa-isolate-paths.c: Likewise.
21293 * gimple-ssa-strength-reduction.c: Likewise.
21294 * ipa-split.c: Likewise.
21295 * loop-init.c: Likewise.
21296 * loop-unroll.c: Likewise.
21297 * lower-subreg.c: Likewise.
21298 * modulo-sched.c: Likewise.
21299 * postreload-gcse.c: Likewise.
21300 * predict.c: Likewise.
21301 * recog.c: Likewise.
21302 * sched-rgn.c: Likewise.
21303 * store-motion.c: Likewise.
21304 * tracer.c: Likewise.
21305 * trans-mem.c: Likewise.
21306 * tree-call-cdce.c: Likewise.
21307 * tree-cfg.c: Likewise.
21308 * tree-cfgcleanup.c: Likewise.
21309 * tree-complex.c: Likewise.
21310 * tree-eh.c: Likewise.
21311 * tree-emutls.c: Likewise.
21312 * tree-if-conv.c: Likewise.
21313 * tree-into-ssa.c: Likewise.
21314 * tree-loop-distribution.c: Likewise.
21315 * tree-object-size.c: Likewise.
21316 * tree-parloops.c: Likewise.
21317 * tree-pass.h: Likewise.
21318 * tree-sra.c: Likewise.
21319 * tree-ssa-ccp.c: Likewise.
21320 * tree-ssa-copy.c: Likewise.
21321 * tree-ssa-copyrename.c: Likewise.
21322 * tree-ssa-dce.c: Likewise.
21323 * tree-ssa-dom.c: Likewise.
21324 * tree-ssa-dse.c: Likewise.
21325 * tree-ssa-forwprop.c: Likewise.
21326 * tree-ssa-ifcombine.c: Likewise.
21327 * tree-ssa-loop-ch.c: Likewise.
21328 * tree-ssa-loop-ivcanon.c: Likewise.
21329 * tree-ssa-loop.c: Likewise.
21330 * tree-ssa-math-opts.c: Likewise.
21331 * tree-ssa-phiopt.c: Likewise.
21332 * tree-ssa-phiprop.c: Likewise.
21333 * tree-ssa-pre.c: Likewise.
21334 * tree-ssa-reassoc.c: Likewise.
21335 * tree-ssa-sink.c: Likewise.
21336 * tree-ssa-strlen.c: Likewise.
21337 * tree-ssa-tail-merge.c: Likewise.
21338 * tree-ssa-uncprop.c: Likewise.
21339 * tree-switch-conversion.c: Likewise.
21340 * tree-tailcall.c: Likewise.
21341 * tree-vect-generic.c: Likewise.
21342 * tree-vectorizer.c: Likewise.
21343 * tree-vrp.c: Likewise.
21344 * tsan.c: Likewise.
21345 * var-tracking.c: Likewise.
21346 * bt-load.c: Likewise.
21347 * cfgcleanup.c: Likewise.
21348 * combine-stack-adj.c: Likewise.
21349 * combine.c: Likewise.
21350 * compare-elim.c: Likewise.
21351 * config/epiphany/resolve-sw-modes.c: Likewise.
21352 * config/i386/i386.c: Likewise.
21353 * config/mips/mips.c: Likewise.
21354 * config/s390/s390.c: Likewise.
21355 * config/sh/sh_treg_combine.cc: Likewise.
21356 * config/sparc/sparc.c: Likewise.
21357 * dce.c: Likewise.
21358 * dse.c: Likewise.
21359 * final.c: Likewise.
21360 * ifcvt.c: Likewise.
21361 * mode-switching.c: Likewise.
21362 * passes.c: Likewise.
21363 * postreload.c: Likewise.
21364 * ree.c: Likewise.
21365 * reg-stack.c: Likewise.
21366 * regcprop.c: Likewise.
21367 * regrename.c: Likewise.
21368 * web.c: Likewise.
21369
21370 2014-05-06 Richard Biener <rguenther@suse.de>
21371
21372 PR middle-end/61070
21373 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21374 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21375
21376 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
21377
21378 PR ipa/60965
21379 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21380
21381 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21382 Tom de Vries <tom@codesourcery.com>
21383
21384 * target.def (call_fusage_contains_non_callee_clobbers): New
21385 DEFHOOKPOD.
21386 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21387 Hooks to @menu.
21388 (@node Miscellaneous Register Hooks): New node.
21389 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21390 * doc/tm.texi: Regenerate.
21391
21392 2014-05-05 Marek Polacek <polacek@redhat.com>
21393
21394 PR driver/61065
21395 * opts.c (common_handle_option): Call error_at instead of warning_at.
21396
21397 2014-05-05 Richard Biener <rguenther@suse.de>
21398
21399 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21400 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21401 under the TODO_verify_il umbrella.
21402
21403 2014-05-05 Richard Biener <rguenther@suse.de>
21404
21405 * passes.c (execute_function_todo): Move TODO_verify_flow under
21406 the TODO_verify_ul umbrella.
21407
21408 2014-05-05 Richard Biener <rguenther@suse.de>
21409
21410 PR middle-end/61010
21411 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21412 X & CST away from a CST that is the mask of a mode.
21413
21414 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21415
21416 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21417 int argument to enum machine_mode.
21418 (picochip_class_max_nregs): Ditto.
21419 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21420 (picochip_class_max_nregs): Ditto.
21421
21422 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21423
21424 * target.def: Add new target hook.
21425 * doc/tm.texi: Regenerate.
21426 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21427 * targhooks.c (default_keep_leaf_when_profiled): New function.
21428
21429 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21430 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21431
21432 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21433
21434 PR tree-optimization/60363
21435 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21436 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21437 (update_destination_phis): New parameter.
21438 (create_edge_and_update_destination_phis): Ditto.
21439 (ssa_fix_duplicate_block_edges): Pass new arguments.
21440 (thread_single_edge): Ditto.
21441
21442 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21443
21444 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21445 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21446 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21447 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21448 Use RS6000_BTM_HARD_FLOAT.
21449 (BU_MISC_2): Likewise.
21450 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21451 RS6000_BTM_HARD_FLOAT.
21452 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21453 is explicitly used.
21454 (rs6000_invalid_builtin): Add hard floating builtin support.
21455 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21456 hard float builtins.
21457 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21458
21459 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21460
21461 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21462 Add missing function* argument.
21463
21464 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21465
21466 * lra-constraints.c (valid_address_p): Move earlier in file.
21467 Add a constraint argument to the address_info version.
21468 (satisfies_memory_constraint_p): New function.
21469 (satisfies_address_constraint_p): Likewise.
21470 (process_alt_operands, curr_insn_transform): Use them.
21471 (process_address): Pass the constraint to valid_address_p when
21472 checking address operands.
21473
21474 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21475
21476 * config/mips/mips.c (mips_isa_rev): New variable.
21477 (mips_set_architecture): Set it.
21478 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21479 from mips_isa_rev.
21480 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21481 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21482 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21483 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21484 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21485 conditions in terms of mips_isa_rev.
21486 (mips_isa_rev): Declare.
21487
21488 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21489
21490 * config/sh/sh-mem.cc: Use tabs instead of spaces.
21491 (prob_unlikely, prob_likely): Make variables const.
21492
21493 2014-05-03 Denis Chertykov <chertykov@gmail.com>
21494
21495 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21496
21497 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21498
21499 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21500
21501 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21502
21503 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21504 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21505 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21506 functions.
21507 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21508 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21509 sh_pass_in_reg_p.
21510 Replace usage of ROUND_REG with sh_round_reg.
21511 Use CEIL instead of ROUND_ADVANCE.
21512
21513 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21514
21515 PR target/61026
21516 * config/sh/sh.c: Include stdlib headers before everything else.
21517
21518 2014-05-02 Jakub Jelinek <jakub@redhat.com>
21519
21520 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21521 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21522 (gimplify_adjust_omp_clauses): Simd region is never
21523 directly nested in combined parallel. Instead, for linear
21524 with copyin/copyout, if in combined for simd loop, make decl
21525 firstprivate/lastprivate on OMP_FOR.
21526 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21527 expand_omp_for_static_chunk): When setting endvar, also set
21528 fd->loop.v to the same value.
21529
21530 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21531
21532 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21533
21534 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21535
21536 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21537 expression.
21538
21539 2014-05-02 Marek Polacek <polacek@redhat.com>
21540
21541 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21542
21543 2014-05-02 Kito Cheng <kito@0xlab.org>
21544
21545 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21546 to a C expression marco.
21547 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21548 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21549 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21550 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21551 HONOR_REG_ALLOC_ORDER.
21552 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21553
21554 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21555
21556 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21557
21558 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21559
21560 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21561
21562 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21563
21564 * tree-if-conv.c (is_cond_scalar_reduction): New function.
21565 (convert_scalar_cond_reduction): Likewise.
21566 (predicate_scalar_phi): Add recognition and transformation
21567 of simple conditioanl reduction to be vectorizable.
21568
21569 2014-05-01 Marek Polacek <polacek@redhat.com>
21570
21571 PR c/43245
21572 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21573
21574 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21575
21576 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21577 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21578 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21579 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21580 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21581 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21582 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21583 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21584
21585 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21586
21587 * config/arc/arc.opt (mlra): Move comment above option name
21588 to avoid mis-parsing as language options.
21589
21590 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21591
21592 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21593 * config/sol2.h: ... here.
21594 * config/sol2-10.h: Remove.
21595
21596 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21597 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21598 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21599 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21600 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21601 * config/sol2.h: ... here.
21602 (SECTION_NAME_FORMAT): Don't redefine.
21603 (STARTFILE_ARCH32_SPEC): Rename to ...
21604 (STARTFILE_ARCH_SPEC): ... this.
21605 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21606 * config/sparc/sol2.h: ... here.
21607 (SECTION_NAME_FORMAT): Don't undef.
21608 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21609 (SUBTARGET_EXTRA_SPECS): Remove.
21610 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21611
21612 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21613 (MD_STARTFILE_PREFIX): Remove.
21614 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21615 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21616 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21617 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21618 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21619 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21620 * config/i386/sol2.h: ... here.
21621 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21622 * config/i386/sol2-bi.h: Remove.
21623 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21624 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21625
21626 * config/i386/t-sol2-64: Rename to ...
21627 * config/i386/t-sol2: ... this.
21628 * config/sparc/t-sol2-64: Rename to ...
21629 * config/sparc/t-sol2: ... this.
21630
21631 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21632 sol2_tm_file_head, sol2_tm_file_tail.
21633 Include ${cpu_type}/sol2.h before sol2.h.
21634 Remove sol2-10.h.
21635 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21636 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21637 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21638 Reflect i386/t-sol2-64 renaming.
21639 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21640 Reflect sparc/t-sol2-64 renaming.
21641
21642 2014-04-30 Richard Biener <rguenther@suse.de>
21643
21644 * passes.c (execute_function_todo): Move TODO_verify_stmts
21645 and TODO_verify_ssa under the TODO_verify_il umbrella.
21646 * tree-ssa.h (verify_ssa): Adjust prototype.
21647 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21648 we should verify SSA operands.
21649 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21650 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21651 whether we should verify whether not throwing stmts have EH info.
21652 * graphite-scop-detection.c (create_sese_edges): Adjust.
21653 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21654 * tree-eh.c (lower_try_finally_switch): Do not add the
21655 default case label twice.
21656
21657 2014-04-30 Marek Polacek <polacek@redhat.com>
21658
21659 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21660 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21661 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21662 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21663
21664 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21665
21666 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21667 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21668 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21669 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21670 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21671 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21672 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21673 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21674
21675 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21676
21677 * tree-cfg.c (dump_function_to_file): Dump the return type of
21678 functions, in a line to itself before the function body, mimicking
21679 the layout of a C function.
21680
21681 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21682
21683 PR tree-optimization/60971
21684 * tree-tailcall.c (process_assignment): Reject conversions which
21685 reduce precision.
21686
21687 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21688
21689 * calls.c (initialize_argument_information): Always treat
21690 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21691 (expand_call): Likewise.
21692 (emit_library_call_calue_1): Likewise.
21693 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21694 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21695 code accordingly.
21696
21697 2014-04-29 Nick Clifton <nickc@redhat.com>
21698
21699 * config/msp430/msp430.md (umulsidi): Fix typo.
21700 (mulhisi3): Enable even inside interrupt handlers.
21701 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21702 bigger return address pushed in large mode.
21703
21704 2014-04-29 Nick Clifton <nickc@redhat.com>
21705
21706 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21707 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21708 available modes.
21709 * config/m32r/m32r.c (init_reg_tables): Likewise.
21710 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21711 enum to hold the modes.
21712
21713 2014-04-29 Richard Biener <rguenther@suse.de>
21714
21715 * dominance.c (free_dominance_info): Add overload with
21716 function parameter.
21717 (dom_info_state): Likewise.
21718 (dom_info_available_p): Likewise.
21719 * basic-block.h (free_dominance_info, dom_info_state,
21720 dom_info_available_p): Declare overloads.
21721 * passes.c (execute_function_todo): Verify that verifiers
21722 don't change dominator info state. Drop dominator info
21723 for IPA pass invocations.
21724 * cgraph.c (release_function_body): Restore asserts that
21725 dominator information is released.
21726
21727 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21728
21729 * doc/invoke.texi: Fix typo.
21730 * tree-vrp.c: Fix typos.
21731 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21732
21733 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21734
21735 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21736
21737 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21738
21739 * config/aarch64/aarch64-builtins.c
21740 (aarch64_types_storestruct_lane_qualifiers): New.
21741 (TYPES_STORESTRUCT_LANE): Likewise.
21742 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
21743 (st3_lane): Likewise.
21744 (st4_lane): Likewise.
21745 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
21746 (vec_store_lanesci_lane<mode>): Likewise.
21747 (vec_store_lanesxi_lane<mode>): Likewise.
21748 (aarch64_st2_lane<VQ:mode>): Likewise.
21749 (aarch64_st3_lane<VQ:mode>): Likewise.
21750 (aarch64_st4_lane<VQ:mode>): Likewise.
21751 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
21752 * config/aarch64/arm_neon.h
21753 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
21754 use new macro arguments.
21755 (__ST3_LANE_FUNC): Likewise.
21756 (__ST4_LANE_FUNC): Likewise.
21757 * config/aarch64/iterators.md (V_TWO_ELEM): New.
21758 (V_THREE_ELEM): Likewise.
21759 (V_FOUR_ELEM): Likewise.
21760
21761 2014-04-28 David Malcolm <dmalcolm@redhat.com>
21762
21763 * doc/gimple.texi: Replace the description of the now-defunct
21764 union gimple_statement_d with a diagram showing the
21765 gimple_statement_base class hierarchy and its relationships to
21766 the GSS_ and GIMPLE_ enums.
21767
21768 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21769
21770 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
21771 * config/aarch64/aarch64.c
21772 (aarch64_cannot_change_mode_class): Weaken conditions.
21773 (aarch64_modes_tieable_p): New.
21774 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
21775
21776 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
21777
21778 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21779 (loadsync_<mode>): Change mode.
21780 (load_quadpti, store_quadpti): New.
21781 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21782 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21783
21784 2014-04-28 Martin Jambor <mjambor@suse.cz>
21785
21786 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
21787 same alias type as the original statement.
21788 (subreplacement_assignment_data): New type.
21789 (handle_unscalarized_data_in_subtree): New type of parameter,
21790 generate new memory accesses with same alias type as the original
21791 statement.
21792 (load_assign_lhs_subreplacements): Likewise.
21793 (sra_modify_constructor_assign): Generate new memory accesses with
21794 same alias type as the original statement.
21795
21796 2014-04-28 Richard Biener <rguenther@suse.de>
21797
21798 * tree-pass.h (TODO_verify_il): Define.
21799 (TODO_verify_all): Complete properly.
21800 * passes.c (execute_function_todo): Move existing loop-closed
21801 SSA verification under TODO_verify_il.
21802 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
21803 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
21804 Fix tree sharing issue.
21805
21806 2014-04-28 Richard Biener <rguenther@suse.de>
21807
21808 PR middle-end/60092
21809 * builtins.def (DEF_C11_BUILTIN): Add.
21810 (BUILT_IN_ALIGNED_ALLOC): Likewise.
21811 * coretypes.h (enum function_class): Add function_c11_misc.
21812 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21813 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
21814 (call_may_clobber_ref_p_1): Likewise.
21815 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21816 (mark_all_reaching_defs_necessary_1): Likewise.
21817 (propagate_necessity): Likewise.
21818 (eliminate_unnecessary_stmts): Likewise.
21819 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
21820
21821 2014-04-28 Richard Biener <rguenther@suse.de>
21822
21823 * tree-vrp.c (vrp_var_may_overflow): Remove.
21824 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
21825 with overflow immediately bump to one before that value and
21826 let iteration figure out overflow status.
21827
21828 2014-04-28 Richard Biener <rguenther@suse.de>
21829
21830 * configure.ac: Do valgrind header checks unconditionally.
21831 Add --enable-valgrind-annotations.
21832 * system.h: Guard valgrind header inclusion with
21833 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
21834 * alloc-pool.c (pool_alloc, pool_free): Use
21835 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
21836 to guard possibly dead code.
21837 * config.in: Regenerated.
21838 * configure: Likewise.
21839
21840 2014-04-28 Jeff Law <law@redhat.com>
21841
21842 PR tree-optimization/60902
21843 * tree-ssa-threadedge.c
21844 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
21845 over real defs when invalidating outputs from statements that do not
21846 produce useful outputs for threading.
21847
21848 2014-04-28 Richard Biener <rguenther@suse.de>
21849
21850 PR tree-optimization/60979
21851 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
21852 SCOPs that end in a block with a successor with abnormal
21853 predecessors.
21854
21855 2014-04-28 Richard Biener <rguenther@suse.de>
21856
21857 * tree-pass.h (execute_pass_list): Adjust prototype.
21858 * passes.c (pass_manager::execute_early_local_passes): Adjust.
21859 (do_per_function): Change callback signature, push all actual
21860 work to the callbals.
21861 (do_per_function_toporder): Likewise.
21862 (execute_function_dump): Adjust.
21863 (execute_function_todo): Likewise.
21864 (clear_last_verified): Likewise.
21865 (verify_curr_properties): Likewise.
21866 (update_properties_after_pass): Likewise.
21867 (execute_pass_list_1): Split out from ...
21868 (execute_pass_list): ... here. Adjust.
21869 (execute_ipa_pass_list): Likewise.
21870 * cgraphunit.c (cgraph_add_new_function): Adjust.
21871 (analyze_function): Likewise.
21872 (expand_function): Likewise.
21873 * cgraph.c (release_function_body): Free dominance info
21874 here instead of asserting it was magically freed elsewhere.
21875
21876 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
21877
21878 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
21879 * configure: Regenerate.
21880 * config/sparc/sparc.opt (muser-mode): New option.
21881 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
21882 for LEON3.
21883 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
21884 * doc/invoke.texi (SPARC options): Document -muser-mode.
21885
21886 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
21887
21888 * cselib.c (find_slot_memmode): Delete.
21889 (cselib_hasher): Change compare_type to a struct.
21890 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
21891 constants.
21892 (preserve_constants_and_equivs): Adjust for new compare_type.
21893 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
21894 (wrap_constant): Delete.
21895 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
21896
21897 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
21898
21899 * doc/install.texi (Building with profile feedback): Remove
21900 outdated sentence.
21901
21902 2014-04-26 Tom de Vries <tom@codesourcery.com>
21903
21904 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
21905 array accesses.
21906
21907 2014-04-25 Cary Coutant <ccoutant@google.com>
21908
21909 PR debug/60929
21910 * dwarf2out.c (should_move_die_to_comdat): A type definition
21911 can contain a subprogram definition, but don't move it to a
21912 comdat unit.
21913 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
21914 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
21915 from original DIE.
21916 (clone_tree_hash): Rename to...
21917 (clone_tree_partial): ...this; change callers. Copy
21918 DW_TAG_subprogram DIEs as declarations.
21919 (copy_decls_walk): Don't copy children of a declaration into a
21920 type unit.
21921
21922 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
21923
21924 PR target/60969
21925 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
21926 alternative 12.
21927
21928 2014-04-25 Jiong Wang <jiong.wang@arm.com>
21929
21930 * config/arm/predicates.md (call_insn_operand): Add long_call check.
21931 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
21932 reg for long_call.
21933 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
21934 restriction.
21935
21936 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21937
21938 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
21939
21940 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21941
21942 PR tree-optimization/60930
21943 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
21944 creating a multiply candidate by folding two constant
21945 multiplicands when the result overflows.
21946
21947 2014-04-25 Jakub Jelinek <jakub@redhat.com>
21948
21949 PR tree-optimization/60960
21950 * tree-vect-generic.c (expand_vector_operation): Only call
21951 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
21952
21953 2014-04-25 Tom de Vries <tom@codesourcery.com>
21954
21955 * expr.c (clobber_reg_mode): New function.
21956 * expr.h (clobber_reg): New function.
21957
21958 2014-04-25 Tom de Vries <tom@codesourcery.com>
21959
21960 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
21961 clobbers.
21962
21963 2014-04-25 Radovan Obradovic <robradovic@mips.com>
21964 Tom de Vries <tom@codesourcery.com>
21965
21966 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
21967 handle.
21968 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
21969 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
21970 new argument to find_all_hard_reg_sets call.
21971
21972 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21973
21974 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
21975 Use HOST_WIDE_INT_C for mask literal.
21976 (aarch_rev16_shleft_mask_imm_p): Likewise.
21977
21978 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
21979
21980 PR target/60941
21981 * config/sparc/sparc.md (ashlsi3_extend): Delete.
21982
21983 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
21984
21985 PR preprocessor/56540
21986 * config/i386/i386-c.c (ix86_target_macros): Define
21987 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
21988
21989 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21990
21991 * configure.ac (tga_func): Remove.
21992 (LIB_TLS_SPEC): Remove.
21993 * configure: Regenerate.
21994 * config.in: Regenerate.
21995 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
21996
21997 2014-04-25 Richard Biener <rguenther@suse.de>
21998
21999 PR ipa/60912
22000 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22001 call stmt use/clobber sets during stmt walk instead of
22002 walking the possibly incomplete set of caller edges.
22003
22004 2014-04-25 Richard Biener <rguenther@suse.de>
22005
22006 PR ipa/60911
22007 * passes.c (apply_ipa_transforms): Inline into only caller ...
22008 (execute_one_pass): ... here. Properly bring in function
22009 bodies for nodes we want to apply IPA transforms to.
22010
22011 2014-04-24 Cong Hou <congh@google.com>
22012
22013 PR tree-optimization/60896
22014 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22015 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22016 (vect_mark_pattern_stmts): Set the def type of all statements in
22017 PATTERN_DEF_SEQ as vect_internal_def.
22018
22019 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22020
22021 * doc/extend.texi (PowerPC Built-in Functions): Document new
22022 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22023 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22024
22025 * config/rs6000/predicates.md (const_0_to_3_operand): New
22026 predicate to match 0..3 integer constants.
22027
22028 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22029 to support adding miscellaneous builtin functions.
22030 (BU_DFP_MISC_2): Likewise.
22031 (BU_P7_MISC_1): Likewise.
22032 (BU_P7_MISC_2): Likewise.
22033 (BU_P8V_MISC_3): Likewise.
22034 (BU_MISC_1): Likewise.
22035 (BU_MISC_2): Likewise.
22036 (DIVWE): Add extended divide builtin functions.
22037 (DIVWEO): Likewise.
22038 (DIVWEU): Likewise.
22039 (DIVWEUO): Likewise.
22040 (DIVDE): Likewise.
22041 (DIVDEO): Likewise.
22042 (DIVDEU): Likewise.
22043 (DIVDEUO): Likewise.
22044 (DXEX): Add decimal floating-point builtin functions.
22045 (DXEXQ): Likewise.
22046 (DDEDPD): Likewise.
22047 (DDEDPDQ): Likewise.
22048 (DENBCD): Likewise.
22049 (DENBCDQ): Likewise.
22050 (DIEX): Likewise.
22051 (DIEXQ): Likewise.
22052 (DSCLI): Likewise.
22053 (DSCLIQ): Likewise.
22054 (DSCRI): Likewise.
22055 (DSCRIQ): Likewise.
22056 (CDTBCD): Add new BCD builtin functions.
22057 (CBCDTD): Likewise.
22058 (ADDG6S): Likewise.
22059 (BCDADD): Likewise.
22060 (BCDADD_LT): Likewise.
22061 (BCDADD_EQ): Likewise.
22062 (BCDADD_GT): Likewise.
22063 (BCDADD_OV): Likewise.
22064 (BCDSUB): Likewise.
22065 (BCDSUB_LT): Likewise.
22066 (BCDSUB_EQ): Likewise.
22067 (BCDSUB_GT): Likewise.
22068 (BCDSUB_OV): Likewise.
22069 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22070 (UNPACK_TD): Likewise.
22071 (PACK_TF): Likewise.
22072 (UNPACK_TF): Likewise.
22073 (UNPACK_TF_0): Likewise.
22074 (UNPACK_TF_1): Likewise.
22075 (PACK_V1TI): Likewise.
22076 (UNPACK_V1TI): Likewise.
22077
22078 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22079 support for decimal floating point builtin functions.
22080 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22081 functions that take constant arguments.
22082 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22083 (rs6000_init_builtins): Setup long double, _Decimal64, and
22084 _Decimal128 types for new builtin functions.
22085 (builtin_function_type): Set the unsigned flags appropriately for
22086 the new builtin functions.
22087 (rs6000_opt_masks): Add support for decimal floating point builtin
22088 functions.
22089
22090 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22091 floating point builtin functions.
22092 (RS6000_BTM_COMMON): Likewise.
22093 (RS6000_BTI_long_double): Likewise.
22094 (RS6000_BTI_dfloat64): Likewise.
22095 (RS6000_BTI_dfloat128): Likewise.
22096 (long_double_type_internal_node): Likewise.
22097 (dfloat64_type_internal_node): Likewise.
22098 (dfloat128_type_internal_node): Likewise.
22099
22100 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22101 2.07 bcd arithmetic instructions.
22102 (UNSPEC_BCDSUB): Likewise.
22103 (UNSPEC_BCD_OVERFLOW): Likewise.
22104 (UNSPEC_BCD_ADD_SUB): Likewise.
22105 (bcd_add_sub): Likewise.
22106 (BCD_TEST): Likewise.
22107 (bcd<bcd_add_sub>): Likewise.
22108 (bcd<bcd_add_sub>_test): Likewise.
22109 (bcd<bcd_add_sub>_test2): Likewise.
22110 (bcd<bcd_add_sub>_<code>): Likewise.
22111 (peephole2 for combined bcd ops): Likewise.
22112
22113 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22114 decimal floating point builtin functions.
22115 (UNSPEC_DENBCD): Likewise.
22116 (UNSPEC_DXEX): Likewise.
22117 (UNSPEC_DIEX): Likewise.
22118 (UNSPEC_DSCLI): Likewise.
22119 (UNSPEC_DSCRI): Likewise.
22120 (D64_D128): Likewise.
22121 (dfp_suffix): Likewise.
22122 (dfp_ddedpd_<mode>): Likewise.
22123 (dfp_denbcd_<mode>): Likewise.
22124 (dfp_dxex_<mode>): Likewise.
22125 (dfp_diex_<mode>): Likewise.
22126 (dfp_dscli_<mode>): Likewise.
22127 (dfp_dscri_<mode>): Likewise.
22128
22129 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22130 builtin functions.
22131 (UNSPEC_CDTBCD): Likewise.
22132 (UNSPEC_CBCDTD): Likewise.
22133 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22134 (UNSPEC_DIVEO): Likewise.
22135 (UNSPEC_DIVEU): Likewise.
22136 (UNSPEC_DIVEUO): Likewise.
22137 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22138 pack/unpack 128-bit types.
22139 (UNSPEC_PACK_128BIT): Likewise.
22140 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22141 (udiv<mode>3): Use idiv_ldiv mode attribute.
22142 (div<mode>3): Likewise.
22143 (addg6s): Add new BCD builtin functions.
22144 (cdtbcd): Likewise.
22145 (cbcdtd): Likewise.
22146 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22147 (div_extend): Likewise.
22148 (div<div_extend>_<mode>"): Likewise.
22149 (FP128_64): Add support for new builtin functions to pack/unpack
22150 128-bit types.
22151 (unpack<mode>): Likewise.
22152 (unpacktf_0): Likewise.
22153 (unpacktf_1): Likewise.
22154 (unpack<mode>_dm): Likewise.
22155 (unpack<mode>_nodm): Likewise.
22156 (pack<mode>): Likewise.
22157 (unpackv1ti): Likewise.
22158 (packv1ti): Likewise.
22159
22160 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22161
22162 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22163 is disabled.
22164
22165 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22166
22167 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22168 * gimplify.c (omp_is_private): Change last argument's type to int.
22169 Only diagnose lastprivate if the simd argument is 1, only diagnose
22170 linear if the simd argument is 2.
22171 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22172 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22173 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22174 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22175 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22176 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22177 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22178 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22179 * tree-nested.c (convert_nonlocal_omp_clauses,
22180 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22181
22182 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22183
22184 PR target/60822
22185 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22186 operand 1.
22187
22188 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22189
22190 * flag-types.h (enum ivar_visibility): Add.
22191
22192 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22193
22194 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22195 function * argument.
22196
22197 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22198
22199 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22200
22201 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22202 Tom de Vries <tom@codesourcery.com>
22203
22204 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22205 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22206 reg-note.
22207 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22208 * emit-rtl.c (try_split): Same.
22209
22210 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22211 Tom de Vries <tom@codesourcery.com>
22212
22213 * common.opt (fuse-caller-save): New option.
22214
22215 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22216
22217 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22218 elements for big-endian.
22219
22220 2014-04-24 Richard Biener <rguenther@suse.de>
22221
22222 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22223 during TER and instead use the sepops interface for expanding
22224 non-GIMPLE_SINGLE_RHS.
22225
22226 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22227
22228 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22229 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22230
22231 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22232
22233 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22234 assembler 64-bit option.
22235 * configure: Regenerate.
22236
22237 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22238
22239 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22240 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22241 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22242 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22243 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22244
22245 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22246
22247 * config/aarch64/aarch64-builtins.c
22248 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22249 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22250 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22251 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22252 builtins.
22253 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22254 (Vrevsuff): New mode attribute.
22255
22256 2014-04-24 Terry Guo <terry.guo@arm.com>
22257
22258 * config/arm/arm.h (machine_function): Define variable
22259 after_arm_reorg here.
22260 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22261 (arm_split_constant): Update the way to access variable
22262 after_arm_reorg.
22263 (arm_reorg): Ditto.
22264 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22265
22266 2014-04-23 Tom de Vries <tom@codesourcery.com>
22267
22268 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22269
22270 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22271
22272 * is-a.h: Update comments to reflect the following changes to the
22273 "pointerness" of the API, making the template parameter match the
22274 return type, allowing use of is-a.h with typedefs of pointers.
22275 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22276 that the return type matches the parameter to the is_a_helper.
22277 (as_a): Likewise.
22278 (dyn_cast): Likewise.
22279
22280 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22281 pointer from the is-a.h API.
22282
22283 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22284 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22285 is-a.h API.
22286 (is_a_helper <varpool_node>::test): Likewise, convert to...
22287 (is_a_helper <varpool_node *>::test): ...this.
22288
22289 (varpool_first_variable): Update for removal of implicit pointer
22290 from the is-a.h API.
22291 (varpool_next_variable): Likewise.
22292 (varpool_first_static_initializer): Likewise.
22293 (varpool_next_static_initializer): Likewise.
22294 (varpool_first_defined_variable): Likewise.
22295 (varpool_next_defined_variable): Likewise.
22296 (cgraph_first_defined_function): Likewise.
22297 (cgraph_next_defined_function): Likewise.
22298 (cgraph_first_function): Likewise.
22299 (cgraph_next_function): Likewise.
22300 (cgraph_first_function_with_gimple_body): Likewise.
22301 (cgraph_next_function_with_gimple_body): Likewise.
22302 (cgraph_alias_target): Likewise.
22303 (varpool_alias_target): Likewise.
22304 (cgraph_function_or_thunk_node): Likewise.
22305 (varpool_variable_node): Likewise.
22306 (symtab_real_symbol_p): Likewise.
22307 * cgraphunit.c (referred_to_p): Likewise.
22308 (analyze_functions): Likewise.
22309 (handle_alias_pairs): Likewise.
22310 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22311 * gimple-ssa.h (gimple_vuse_op): Likewise.
22312 (gimple_vdef_op): Likewise.
22313 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22314 * gimple.c (gimple_build_asm_1): Likewise.
22315 (gimple_build_try): Likewise.
22316 (gimple_build_resx): Likewise.
22317 (gimple_build_eh_dispatch): Likewise.
22318 (gimple_build_omp_for): Likewise.
22319 (gimple_omp_for_set_clauses): Likewise.
22320
22321 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22322 (is_a_helper <gimple_statement_asm *>::test): ...this.
22323 (is_a_helper <gimple_statement_bind>::test): Convert to...
22324 (is_a_helper <gimple_statement_bind *>::test): ...this.
22325 (is_a_helper <gimple_statement_call>::test): Convert to...
22326 (is_a_helper <gimple_statement_call *>::test): ...this.
22327 (is_a_helper <gimple_statement_catch>::test): Convert to...
22328 (is_a_helper <gimple_statement_catch *>::test): ...this.
22329 (is_a_helper <gimple_statement_resx>::test): Convert to...
22330 (is_a_helper <gimple_statement_resx *>::test): ...this.
22331 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22332 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22333 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22334 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22335 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22336 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22337 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22338 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22339 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22340 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22341 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22342 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22343 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22344 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22345 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22346 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22347 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22348 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22349 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22350 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22351 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22352 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22353 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22354 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22355 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22356 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22357 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22358 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22359 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22360 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22361 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22362 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22363 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22364 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22365 (is_a_helper <gimple_statement_phi>::test): Convert to...
22366 (is_a_helper <gimple_statement_phi *>::test): ...this.
22367 (is_a_helper <gimple_statement_transaction>::test): Convert to...
22368 (is_a_helper <gimple_statement_transaction *>::test): ...this.
22369 (is_a_helper <gimple_statement_try>::test): Convert to...
22370 (is_a_helper <gimple_statement_try *>::test): ...this.
22371 (is_a_helper <gimple_statement_wce>::test): Convert to...
22372 (is_a_helper <gimple_statement_wce *>::test): ...this.
22373 (is_a_helper <const gimple_statement_asm>::test): Convert to...
22374 (is_a_helper <const gimple_statement_asm *>::test): ...this.
22375 (is_a_helper <const gimple_statement_bind>::test): Convert to...
22376 (is_a_helper <const gimple_statement_bind *>::test): ...this.
22377 (is_a_helper <const gimple_statement_call>::test): Convert to...
22378 (is_a_helper <const gimple_statement_call *>::test): ...this.
22379 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22380 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22381 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22382 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22383 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22384 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22385 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22386 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22387 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22388 Convert to...
22389 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22390 ...this.
22391 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22392 Convert to...
22393 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22394 ...this.
22395 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22396 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22397 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22398 to...
22399 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22400 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22401 to...
22402 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22403 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22404 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22405 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22406 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22407 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22408 to...
22409 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22410 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22411 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22412 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22413 to...
22414 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22415 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22416 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22417 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22418 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22419 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22420 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22421 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22422 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22423 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22424 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22425 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22426 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22427 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22428 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22429 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22430 to...
22431 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22432 ...this.
22433 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22434 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22435
22436 (gimple_use_ops): Update for removal of implicit pointer from the
22437 is-a.h API.
22438 (gimple_set_use_ops): Likewise.
22439 (gimple_vuse): Likewise.
22440 (gimple_vdef): Likewise.
22441 (gimple_vuse_ptr): Likewise.
22442 (gimple_vdef_ptr): Likewise.
22443 (gimple_set_vuse): Likewise.
22444 (gimple_set_vdef): Likewise.
22445 (gimple_omp_return_set_lhs): Likewise.
22446 (gimple_omp_return_lhs): Likewise.
22447 (gimple_omp_return_lhs_ptr): Likewise.
22448 (gimple_call_fntype): Likewise.
22449 (gimple_call_set_fntype): Likewise.
22450 (gimple_call_set_internal_fn): Likewise.
22451 (gimple_call_use_set): Likewise.
22452 (gimple_call_clobber_set): Likewise.
22453 (gimple_bind_vars): Likewise.
22454 (gimple_bind_set_vars): Likewise.
22455 (gimple_bind_body_ptr): Likewise.
22456 (gimple_bind_set_body): Likewise.
22457 (gimple_bind_add_stmt): Likewise.
22458 (gimple_bind_block): Likewise.
22459 (gimple_bind_set_block): Likewise.
22460 (gimple_asm_ninputs): Likewise.
22461 (gimple_asm_noutputs): Likewise.
22462 (gimple_asm_nclobbers): Likewise.
22463 (gimple_asm_nlabels): Likewise.
22464 (gimple_asm_input_op): Likewise.
22465 (gimple_asm_input_op_ptr): Likewise.
22466 (gimple_asm_output_op): Likewise.
22467 (gimple_asm_output_op_ptr): Likewise.
22468 (gimple_asm_set_output_op): Likewise.
22469 (gimple_asm_clobber_op): Likewise.
22470 (gimple_asm_set_clobber_op): Likewise.
22471 (gimple_asm_label_op): Likewise.
22472 (gimple_asm_set_label_op): Likewise.
22473 (gimple_asm_string): Likewise.
22474 (gimple_catch_types): Likewise.
22475 (gimple_catch_types_ptr): Likewise.
22476 (gimple_catch_handler_ptr): Likewise.
22477 (gimple_catch_set_types): Likewise.
22478 (gimple_catch_set_handler): Likewise.
22479 (gimple_eh_filter_types): Likewise.
22480 (gimple_eh_filter_types_ptr): Likewise.
22481 (gimple_eh_filter_failure_ptr): Likewise.
22482 (gimple_eh_filter_set_types): Likewise.
22483 (gimple_eh_filter_set_failure): Likewise.
22484 (gimple_eh_must_not_throw_fndecl): Likewise.
22485 (gimple_eh_must_not_throw_set_fndecl): Likewise.
22486 (gimple_eh_else_n_body_ptr): Likewise.
22487 (gimple_eh_else_e_body_ptr): Likewise.
22488 (gimple_eh_else_set_n_body): Likewise.
22489 (gimple_eh_else_set_e_body): Likewise.
22490 (gimple_try_eval_ptr): Likewise.
22491 (gimple_try_cleanup_ptr): Likewise.
22492 (gimple_try_set_eval): Likewise.
22493 (gimple_try_set_cleanup): Likewise.
22494 (gimple_wce_cleanup_ptr): Likewise.
22495 (gimple_wce_set_cleanup): Likewise.
22496 (gimple_phi_capacity): Likewise.
22497 (gimple_phi_num_args): Likewise.
22498 (gimple_phi_result): Likewise.
22499 (gimple_phi_result_ptr): Likewise.
22500 (gimple_phi_set_result): Likewise.
22501 (gimple_phi_arg): Likewise.
22502 (gimple_phi_set_arg): Likewise.
22503 (gimple_resx_region): Likewise.
22504 (gimple_resx_set_region): Likewise.
22505 (gimple_eh_dispatch_region): Likewise.
22506 (gimple_eh_dispatch_set_region): Likewise.
22507 (gimple_omp_critical_name): Likewise.
22508 (gimple_omp_critical_name_ptr): Likewise.
22509 (gimple_omp_critical_set_name): Likewise.
22510 (gimple_omp_for_clauses): Likewise.
22511 (gimple_omp_for_clauses_ptr): Likewise.
22512 (gimple_omp_for_set_clauses): Likewise.
22513 (gimple_omp_for_collapse): Likewise.
22514 (gimple_omp_for_index): Likewise.
22515 (gimple_omp_for_index_ptr): Likewise.
22516 (gimple_omp_for_set_index): Likewise.
22517 (gimple_omp_for_initial): Likewise.
22518 (gimple_omp_for_initial_ptr): Likewise.
22519 (gimple_omp_for_set_initial): Likewise.
22520 (gimple_omp_for_final): Likewise.
22521 (gimple_omp_for_final_ptr): Likewise.
22522 (gimple_omp_for_set_final): Likewise.
22523 (gimple_omp_for_incr): Likewise.
22524 (gimple_omp_for_incr_ptr): Likewise.
22525 (gimple_omp_for_set_incr): Likewise.
22526 (gimple_omp_for_pre_body_ptr): Likewise.
22527 (gimple_omp_for_set_pre_body): Likewise.
22528 (gimple_omp_parallel_clauses): Likewise.
22529 (gimple_omp_parallel_clauses_ptr): Likewise.
22530 (gimple_omp_parallel_set_clauses): Likewise.
22531 (gimple_omp_parallel_child_fn): Likewise.
22532 (gimple_omp_parallel_child_fn_ptr): Likewise.
22533 (gimple_omp_parallel_set_child_fn): Likewise.
22534 (gimple_omp_parallel_data_arg): Likewise.
22535 (gimple_omp_parallel_data_arg_ptr): Likewise.
22536 (gimple_omp_parallel_set_data_arg): Likewise.
22537 (gimple_omp_task_clauses): Likewise.
22538 (gimple_omp_task_clauses_ptr): Likewise.
22539 (gimple_omp_task_set_clauses): Likewise.
22540 (gimple_omp_task_child_fn): Likewise.
22541 (gimple_omp_task_child_fn_ptr): Likewise.
22542 (gimple_omp_task_set_child_fn): Likewise.
22543 (gimple_omp_task_data_arg): Likewise.
22544 (gimple_omp_task_data_arg_ptr): Likewise.
22545 (gimple_omp_task_set_data_arg): Likewise.
22546 (gimple_omp_taskreg_clauses): Likewise.
22547 (gimple_omp_taskreg_clauses_ptr): Likewise.
22548 (gimple_omp_taskreg_set_clauses): Likewise.
22549 (gimple_omp_taskreg_child_fn): Likewise.
22550 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22551 (gimple_omp_taskreg_set_child_fn): Likewise.
22552 (gimple_omp_taskreg_data_arg): Likewise.
22553 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22554 (gimple_omp_taskreg_set_data_arg): Likewise.
22555 (gimple_omp_task_copy_fn): Likewise.
22556 (gimple_omp_task_copy_fn_ptr): Likewise.
22557 (gimple_omp_task_set_copy_fn): Likewise.
22558 (gimple_omp_task_arg_size): Likewise.
22559 (gimple_omp_task_arg_size_ptr): Likewise.
22560 (gimple_omp_task_set_arg_size): Likewise.
22561 (gimple_omp_task_arg_align): Likewise.
22562 (gimple_omp_task_arg_align_ptr): Likewise.
22563 (gimple_omp_task_set_arg_align): Likewise.
22564 (gimple_omp_single_clauses): Likewise.
22565 (gimple_omp_single_clauses_ptr): Likewise.
22566 (gimple_omp_single_set_clauses): Likewise.
22567 (gimple_omp_target_clauses): Likewise.
22568 (gimple_omp_target_clauses_ptr): Likewise.
22569 (gimple_omp_target_set_clauses): Likewise.
22570 (gimple_omp_target_child_fn): Likewise.
22571 (gimple_omp_target_child_fn_ptr): Likewise.
22572 (gimple_omp_target_set_child_fn): Likewise.
22573 (gimple_omp_target_data_arg): Likewise.
22574 (gimple_omp_target_data_arg_ptr): Likewise.
22575 (gimple_omp_target_set_data_arg): Likewise.
22576 (gimple_omp_teams_clauses): Likewise.
22577 (gimple_omp_teams_clauses_ptr): Likewise.
22578 (gimple_omp_teams_set_clauses): Likewise.
22579 (gimple_omp_sections_clauses): Likewise.
22580 (gimple_omp_sections_clauses_ptr): Likewise.
22581 (gimple_omp_sections_set_clauses): Likewise.
22582 (gimple_omp_sections_control): Likewise.
22583 (gimple_omp_sections_control_ptr): Likewise.
22584 (gimple_omp_sections_set_control): Likewise.
22585 (gimple_omp_for_set_cond): Likewise.
22586 (gimple_omp_for_cond): Likewise.
22587 (gimple_omp_atomic_store_set_val): Likewise.
22588 (gimple_omp_atomic_store_val): Likewise.
22589 (gimple_omp_atomic_store_val_ptr): Likewise.
22590 (gimple_omp_atomic_load_set_lhs): Likewise.
22591 (gimple_omp_atomic_load_lhs): Likewise.
22592 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22593 (gimple_omp_atomic_load_set_rhs): Likewise.
22594 (gimple_omp_atomic_load_rhs): Likewise.
22595 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22596 (gimple_omp_continue_control_def): Likewise.
22597 (gimple_omp_continue_control_def_ptr): Likewise.
22598 (gimple_omp_continue_set_control_def): Likewise.
22599 (gimple_omp_continue_control_use): Likewise.
22600 (gimple_omp_continue_control_use_ptr): Likewise.
22601 (gimple_omp_continue_set_control_use): Likewise.
22602 (gimple_transaction_body_ptr): Likewise.
22603 (gimple_transaction_label): Likewise.
22604 (gimple_transaction_label_ptr): Likewise.
22605 (gimple_transaction_set_body): Likewise.
22606 (gimple_transaction_set_label): Likewise.
22607
22608 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22609 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22610 * ipa-ref.c (ipa_record_reference): Likewise.
22611 * ipa-reference.c (analyze_function): Likewise.
22612 (ipa_reference_write_optimization_summary): Likewise.
22613 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22614 (address_taken_from_non_vtable_p): Likewise.
22615 (comdat_can_be_unshared_p_1): Likewise.
22616 * lto-cgraph.c (lto_output_ref): Likewise.
22617 (add_references): Likewise.
22618 (compute_ltrans_boundary): Likewise.
22619 (output_symtab): Likewise.
22620 (input_ref): Likewise.
22621 (input_cgraph_1): Likewise.
22622 (output_cgraph_opt_summary): Likewise.
22623 * lto-streamer-out.c (lto_output): Likewise.
22624 (output_symbol_p): Likewise.
22625 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22626 (lsei_start_function_in_partition): Likewise.
22627 (lsei_next_variable_in_partition): Likewise.
22628 (lsei_start_variable_in_partition): Likewise.
22629 * symtab.c (insert_to_assembler_name_hash): Likewise.
22630 (unlink_from_assembler_name_hash): Likewise.
22631 (symtab_unregister_node): Likewise.
22632 (symtab_remove_node): Likewise.
22633 (dump_symtab_node): Likewise.
22634 (verify_symtab_base): Likewise.
22635 (verify_symtab_node): Likewise.
22636 (symtab_make_decl_local): Likewise.
22637 (symtab_alias_ultimate_target): Likewise.
22638 (symtab_resolve_alias): Likewise.
22639 (symtab_get_symbol_partitioning_class): Likewise.
22640 * tree-phinodes.c (allocate_phi_node): Likewise.
22641 (reserve_phi_args_for_new_edge): Likewise.
22642 (remove_phi_args): Likewise.
22643 * varpool.c (varpool_node_for_asm): Likewise.
22644 (varpool_remove_unreferenced_decls): Likewise.
22645
22646 2014-04-23 Jeff Law <law@redhat.com>
22647
22648 PR tree-optimization/60902
22649 * tree-ssa-threadedge.c
22650 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22651 invalidate outputs from statements that do not produce useful
22652 outputs for threading.
22653
22654 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22655
22656 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22657 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22658 machine descriptions for Stack Smashing Protector.
22659
22660 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22661
22662 * aarch64.md (<optab>_rol<mode>3): New pattern.
22663 (<optab>_rolsi3_uxtw): Likewise.
22664 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22665
22666 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22667
22668 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22669 (arm_cortex_a12_tune): Likewise.
22670
22671 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22672
22673 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22674
22675 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22676
22677 * config/arm/arm.md (arm_rev16si2): New pattern.
22678 (arm_rev16si2_alt): Likewise.
22679 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22680
22681 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22682
22683 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22684 (rev16<mode>2_alt): Likewise.
22685 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22686 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22687 (aarch_rev16_shleft_mask_imm_p): Likewise.
22688 (aarch_rev16_p_1): Likewise.
22689 (aarch_rev16_p): Likewise.
22690 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22691 (aarch_rev16_shright_mask_imm_p): Likewise.
22692 (aarch_rev16_shleft_mask_imm_p): Likewise.
22693
22694 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22695
22696 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22697 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22698 rev cost.
22699 (cortex_a53_extra_costs): Likewise.
22700 (cortex_a57_extra_costs): Likewise.
22701 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22702 (cortexa7_extra_costs): Likewise.
22703 (cortexa8_extra_costs): Likewise.
22704 (cortexa12_extra_costs): Likewise.
22705 (cortexa15_extra_costs): Likewise.
22706 (v7m_extra_costs): Likewise.
22707 (arm_new_rtx_costs): Handle BSWAP.
22708
22709 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22710
22711 * config/arm/arm.c (cortexa8_extra_costs): New table.
22712 (arm_cortex_a8_tune): New tuning struct.
22713 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22714
22715 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22716
22717 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22718
22719 2014-04-23 Richard Biener <rguenther@suse.de>
22720
22721 * Makefile.in (OBJS): Remove loop-unswitch.o.
22722 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22723 * passes.def (pass_rtl_unswitch): Likewise.
22724 * loop-init.c (gate_rtl_unswitch): Likewise.
22725 (rtl_unswitch): Likewise.
22726 (pass_data_rtl_unswitch): Likewise.
22727 (pass_rtl_unswitch): Likewise.
22728 (make_pass_rtl_unswitch): Likewise.
22729 * rtl.h (reversed_condition): Likewise.
22730 (compare_and_jump_seq): Likewise.
22731 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22732 and make static.
22733 * loop-unroll.c (compare_and_jump_seq): Likewise.
22734
22735 2014-04-23 Richard Biener <rguenther@suse.de>
22736
22737 PR tree-optimization/60903
22738 * tree-ssa-loop-im.c (analyze_memory_references): Remove
22739 commented code block.
22740 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
22741 loop flags to newly created BBs and edges.
22742
22743 2014-04-23 Nick Clifton <nickc@redhat.com>
22744
22745 * config/msp430/msp430.c (msp430_handle_option): Move function
22746 to msp430-common.c
22747 (msp430_option_override): Simplify mcu and mcpu option handling.
22748 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
22749 support for -mhwmult command line option.
22750 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
22751 -mhwmult command line option.
22752 (msp430_hwmult_enabled): Delete.
22753 (msp43o_output_labelref): Add support for -mhwmult command line option.
22754 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
22755 (umulsidi3): Likewise.
22756 * config/msp430/msp430.opt (mmcu): Add Report attribute.
22757 (mcpu, mlarge, msmall): Likewise.
22758 (mhwmult): New option.
22759 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
22760 prototype.
22761 (msp430_is_f5_mcu): Remove prototype.
22762 (msp430_use_f5_series_hwmult): Add prototype.
22763 * config/msp430/msp430-opts.h: New file.
22764 * common/config/msp430: New directory.
22765 * common/config/msp430/msp430-common.c: New file.
22766 * config.gcc (msp430): Remove target_has_targetm_common.
22767 * doc/invoke.texi: Document -mhwmult command line option.
22768
22769 2014-04-23 Nick Clifton <nickc@redhat.com>
22770
22771 * config/i386/cygwin.h (ENDFILE_SPEC): Include
22772 default-manifest.o if it can be found in the search path.
22773 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22774
22775 2014-04-23 Terry Guo <terry.guo@arm.com>
22776
22777 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
22778
22779 2014-04-23 Richard Biener <rguenther@suse.de>
22780
22781 PR middle-end/60895
22782 * tree-inline.c (declare_return_variable): Use mark_addressable.
22783
22784 2014-04-23 Richard Biener <rguenther@suse.de>
22785
22786 PR middle-end/60891
22787 * loop-init.c (loop_optimizer_init): Make sure to apply
22788 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
22789
22790 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22791
22792 PR sanitizer/60275
22793 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
22794 New options.
22795 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
22796 if flag_sanitize_undefined_trap_on_error.
22797 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
22798 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
22799 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
22800 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
22801 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
22802 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
22803 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
22804 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
22805 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
22806 * ubsan.c (ubsan_instrument_unreachable): Return
22807 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
22808 (ubsan_expand_null_ifn): Emit __builtin_trap ()
22809 if flag_sanitize_undefined_trap_on_error and
22810 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
22811 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
22812 instrument_bool_enum_load): Emit __builtin_trap () if
22813 flag_sanitize_undefined_trap_on_error and
22814 __builtin_handle_*_abort () if !flag_sanitize_recover.
22815 * doc/invoke.texi (-fsanitize-recover,
22816 -fsanitize-undefined-trap-on-error): Document.
22817
22818 2014-04-22 Christian Bruel <christian.bruel@st.com>
22819
22820 * config/sh/sh.md (mov<mode>): Replace movQIHI.
22821 Force immediates to SImode.
22822
22823 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
22824
22825 * config/nios2/nios2.md (UNSPEC_ROUND): New.
22826 (lroundsfsi2): New.
22827 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
22828 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
22829 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
22830 (nios2_fpu_insn): Add entry for round.
22831 (N2FPU_NO_ERRNO_P): Define.
22832 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
22833 flag_errno_math.
22834 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
22835
22836 2014-04-22 Richard Henderson <rth@redhat.com>
22837
22838 * config/aarch64/aarch64 (addti3, subti3): New expanders.
22839 (add<GPI>3_compare0): Remove leading * from name.
22840 (add<GPI>3_carryin): Likewise.
22841 (sub<GPI>3_compare0): Likewise.
22842 (sub<GPI>3_carryin): Likewise.
22843 (<su_optab>mulditi3): New expander.
22844 (multi3): New expander.
22845 (madd<GPI>): Remove leading * from name.
22846
22847 2014-04-22 Martin Jambor <mjambor@suse.cz>
22848
22849 * cgraphclones.c (cgraph_function_versioning): Copy
22850 ipa_transforms_to_apply instead of asserting it is empty.
22851
22852 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
22853
22854 PR target/60868
22855 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
22856 on count_exp to get mode.
22857
22858 2014-04-22 Andrew Pinski <apinski@cavium.com>
22859
22860 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22861 Handle TLS for ILP32.
22862 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
22863 (tlsie_small_<mode>): this and handle PTR.
22864 (tlsie_small_sidi): New pattern.
22865 (tlsle_small): Change to an expand to handle ILP32.
22866 (tlsle_small_<mode>): New pattern.
22867 (tlsdesc_small): Rename to ...
22868 (tlsdesc_small_<mode>): this and handle PTR.
22869
22870 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22871
22872 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
22873
22874 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22875
22876 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22877 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
22878 (aarch64_types_signed_poly_qualifiers): Likewise.
22879 (aarch64_types_unsigned_signed_qualifiers): Likewise.
22880 (aarch64_types_poly_signed_qualifiers): Likewise.
22881 (TYPES_REINTERP_SS): Type macro added.
22882 (TYPES_REINTERP_SU): Likewise.
22883 (TYPES_REINTERP_SP): Likewise.
22884 (TYPES_REINTERP_US): Likewise.
22885 (TYPES_REINTERP_PS): Likewise.
22886 (aarch64_fold_builtin): New expression folding added.
22887 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
22888 Declarations removed.
22889 (REINTERP_SS): Declarations added.
22890 (REINTERP_US): Likewise.
22891 (REINTERP_PS): Likewise.
22892 (REINTERP_SU): Likewise.
22893 (REINTERP_SP): Likewise.
22894 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
22895 (vreinterpretq_p8_f64): Likewise.
22896 (vreinterpret_p16_f64): Likewise.
22897 (vreinterpretq_p16_f64): Likewise.
22898 (vreinterpret_f32_f64): Likewise.
22899 (vreinterpretq_f32_f64): Likewise.
22900 (vreinterpret_f64_f32): Likewise.
22901 (vreinterpret_f64_p8): Likewise.
22902 (vreinterpret_f64_p16): Likewise.
22903 (vreinterpret_f64_s8): Likewise.
22904 (vreinterpret_f64_s16): Likewise.
22905 (vreinterpret_f64_s32): Likewise.
22906 (vreinterpret_f64_s64): Likewise.
22907 (vreinterpret_f64_u8): Likewise.
22908 (vreinterpret_f64_u16): Likewise.
22909 (vreinterpret_f64_u32): Likewise.
22910 (vreinterpret_f64_u64): Likewise.
22911 (vreinterpretq_f64_f32): Likewise.
22912 (vreinterpretq_f64_p8): Likewise.
22913 (vreinterpretq_f64_p16): Likewise.
22914 (vreinterpretq_f64_s8): Likewise.
22915 (vreinterpretq_f64_s16): Likewise.
22916 (vreinterpretq_f64_s32): Likewise.
22917 (vreinterpretq_f64_s64): Likewise.
22918 (vreinterpretq_f64_u8): Likewise.
22919 (vreinterpretq_f64_u16): Likewise.
22920 (vreinterpretq_f64_u32): Likewise.
22921 (vreinterpretq_f64_u64): Likewise.
22922 (vreinterpret_s64_f64): Likewise.
22923 (vreinterpretq_s64_f64): Likewise.
22924 (vreinterpret_u64_f64): Likewise.
22925 (vreinterpretq_u64_f64): Likewise.
22926 (vreinterpret_s8_f64): Likewise.
22927 (vreinterpretq_s8_f64): Likewise.
22928 (vreinterpret_s16_f64): Likewise.
22929 (vreinterpretq_s16_f64): Likewise.
22930 (vreinterpret_s32_f64): Likewise.
22931 (vreinterpretq_s32_f64): Likewise.
22932 (vreinterpret_u8_f64): Likewise.
22933 (vreinterpretq_u8_f64): Likewise.
22934 (vreinterpret_u16_f64): Likewise.
22935 (vreinterpretq_u16_f64): Likewise.
22936 (vreinterpret_u32_f64): Likewise.
22937 (vreinterpretq_u32_f64): Likewise.
22938
22939 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22940
22941 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22942 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
22943 (vreinterpret_p8_s8): Likewise.
22944 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
22945 (vreinterpret_p8_s16): Likewise.
22946 (vreinterpret_p8_s32): Likewise.
22947 (vreinterpret_p8_s64): Likewise.
22948 (vreinterpret_p8_f32): Likewise.
22949 (vreinterpret_p8_u8): Likewise.
22950 (vreinterpret_p8_u16): Likewise.
22951 (vreinterpret_p8_u32): Likewise.
22952 (vreinterpret_p8_u64): Likewise.
22953 (vreinterpret_p8_p16): Likewise.
22954 (vreinterpretq_p8_s8): Likewise.
22955 (vreinterpretq_p8_s16): Likewise.
22956 (vreinterpretq_p8_s32): Likewise.
22957 (vreinterpretq_p8_s64): Likewise.
22958 (vreinterpretq_p8_f32): Likewise.
22959 (vreinterpretq_p8_u8): Likewise.
22960 (vreinterpretq_p8_u16): Likewise.
22961 (vreinterpretq_p8_u32): Likewise.
22962 (vreinterpretq_p8_u64): Likewise.
22963 (vreinterpretq_p8_p16): Likewise.
22964 (vreinterpret_p16_s8): Likewise.
22965 (vreinterpret_p16_s16): Likewise.
22966 (vreinterpret_p16_s32): Likewise.
22967 (vreinterpret_p16_s64): Likewise.
22968 (vreinterpret_p16_f32): Likewise.
22969 (vreinterpret_p16_u8): Likewise.
22970 (vreinterpret_p16_u16): Likewise.
22971 (vreinterpret_p16_u32): Likewise.
22972 (vreinterpret_p16_u64): Likewise.
22973 (vreinterpret_p16_p8): Likewise.
22974 (vreinterpretq_p16_s8): Likewise.
22975 (vreinterpretq_p16_s16): Likewise.
22976 (vreinterpretq_p16_s32): Likewise.
22977 (vreinterpretq_p16_s64): Likewise.
22978 (vreinterpretq_p16_f32): Likewise.
22979 (vreinterpretq_p16_u8): Likewise.
22980 (vreinterpretq_p16_u16): Likewise.
22981 (vreinterpretq_p16_u32): Likewise.
22982 (vreinterpretq_p16_u64): Likewise.
22983 (vreinterpretq_p16_p8): Likewise.
22984 (vreinterpret_f32_s8): Likewise.
22985 (vreinterpret_f32_s16): Likewise.
22986 (vreinterpret_f32_s32): Likewise.
22987 (vreinterpret_f32_s64): Likewise.
22988 (vreinterpret_f32_u8): Likewise.
22989 (vreinterpret_f32_u16): Likewise.
22990 (vreinterpret_f32_u32): Likewise.
22991 (vreinterpret_f32_u64): Likewise.
22992 (vreinterpret_f32_p8): Likewise.
22993 (vreinterpret_f32_p16): Likewise.
22994 (vreinterpretq_f32_s8): Likewise.
22995 (vreinterpretq_f32_s16): Likewise.
22996 (vreinterpretq_f32_s32): Likewise.
22997 (vreinterpretq_f32_s64): Likewise.
22998 (vreinterpretq_f32_u8): Likewise.
22999 (vreinterpretq_f32_u16): Likewise.
23000 (vreinterpretq_f32_u32): Likewise.
23001 (vreinterpretq_f32_u64): Likewise.
23002 (vreinterpretq_f32_p8): Likewise.
23003 (vreinterpretq_f32_p16): Likewise.
23004 (vreinterpret_s64_s8): Likewise.
23005 (vreinterpret_s64_s16): Likewise.
23006 (vreinterpret_s64_s32): Likewise.
23007 (vreinterpret_s64_f32): Likewise.
23008 (vreinterpret_s64_u8): Likewise.
23009 (vreinterpret_s64_u16): Likewise.
23010 (vreinterpret_s64_u32): Likewise.
23011 (vreinterpret_s64_u64): Likewise.
23012 (vreinterpret_s64_p8): Likewise.
23013 (vreinterpret_s64_p16): Likewise.
23014 (vreinterpretq_s64_s8): Likewise.
23015 (vreinterpretq_s64_s16): Likewise.
23016 (vreinterpretq_s64_s32): Likewise.
23017 (vreinterpretq_s64_f32): Likewise.
23018 (vreinterpretq_s64_u8): Likewise.
23019 (vreinterpretq_s64_u16): Likewise.
23020 (vreinterpretq_s64_u32): Likewise.
23021 (vreinterpretq_s64_u64): Likewise.
23022 (vreinterpretq_s64_p8): Likewise.
23023 (vreinterpretq_s64_p16): Likewise.
23024 (vreinterpret_u64_s8): Likewise.
23025 (vreinterpret_u64_s16): Likewise.
23026 (vreinterpret_u64_s32): Likewise.
23027 (vreinterpret_u64_s64): Likewise.
23028 (vreinterpret_u64_f32): Likewise.
23029 (vreinterpret_u64_u8): Likewise.
23030 (vreinterpret_u64_u16): Likewise.
23031 (vreinterpret_u64_u32): Likewise.
23032 (vreinterpret_u64_p8): Likewise.
23033 (vreinterpret_u64_p16): Likewise.
23034 (vreinterpretq_u64_s8): Likewise.
23035 (vreinterpretq_u64_s16): Likewise.
23036 (vreinterpretq_u64_s32): Likewise.
23037 (vreinterpretq_u64_s64): Likewise.
23038 (vreinterpretq_u64_f32): Likewise.
23039 (vreinterpretq_u64_u8): Likewise.
23040 (vreinterpretq_u64_u16): Likewise.
23041 (vreinterpretq_u64_u32): Likewise.
23042 (vreinterpretq_u64_p8): Likewise.
23043 (vreinterpretq_u64_p16): Likewise.
23044 (vreinterpret_s8_s16): Likewise.
23045 (vreinterpret_s8_s32): Likewise.
23046 (vreinterpret_s8_s64): Likewise.
23047 (vreinterpret_s8_f32): Likewise.
23048 (vreinterpret_s8_u8): Likewise.
23049 (vreinterpret_s8_u16): Likewise.
23050 (vreinterpret_s8_u32): Likewise.
23051 (vreinterpret_s8_u64): Likewise.
23052 (vreinterpret_s8_p8): Likewise.
23053 (vreinterpret_s8_p16): Likewise.
23054 (vreinterpretq_s8_s16): Likewise.
23055 (vreinterpretq_s8_s32): Likewise.
23056 (vreinterpretq_s8_s64): Likewise.
23057 (vreinterpretq_s8_f32): Likewise.
23058 (vreinterpretq_s8_u8): Likewise.
23059 (vreinterpretq_s8_u16): Likewise.
23060 (vreinterpretq_s8_u32): Likewise.
23061 (vreinterpretq_s8_u64): Likewise.
23062 (vreinterpretq_s8_p8): Likewise.
23063 (vreinterpretq_s8_p16): Likewise.
23064 (vreinterpret_s16_s8): Likewise.
23065 (vreinterpret_s16_s32): Likewise.
23066 (vreinterpret_s16_s64): Likewise.
23067 (vreinterpret_s16_f32): Likewise.
23068 (vreinterpret_s16_u8): Likewise.
23069 (vreinterpret_s16_u16): Likewise.
23070 (vreinterpret_s16_u32): Likewise.
23071 (vreinterpret_s16_u64): Likewise.
23072 (vreinterpret_s16_p8): Likewise.
23073 (vreinterpret_s16_p16): Likewise.
23074 (vreinterpretq_s16_s8): Likewise.
23075 (vreinterpretq_s16_s32): Likewise.
23076 (vreinterpretq_s16_s64): Likewise.
23077 (vreinterpretq_s16_f32): Likewise.
23078 (vreinterpretq_s16_u8): Likewise.
23079 (vreinterpretq_s16_u16): Likewise.
23080 (vreinterpretq_s16_u32): Likewise.
23081 (vreinterpretq_s16_u64): Likewise.
23082 (vreinterpretq_s16_p8): Likewise.
23083 (vreinterpretq_s16_p16): Likewise.
23084 (vreinterpret_s32_s8): Likewise.
23085 (vreinterpret_s32_s16): Likewise.
23086 (vreinterpret_s32_s64): Likewise.
23087 (vreinterpret_s32_f32): Likewise.
23088 (vreinterpret_s32_u8): Likewise.
23089 (vreinterpret_s32_u16): Likewise.
23090 (vreinterpret_s32_u32): Likewise.
23091 (vreinterpret_s32_u64): Likewise.
23092 (vreinterpret_s32_p8): Likewise.
23093 (vreinterpret_s32_p16): Likewise.
23094 (vreinterpretq_s32_s8): Likewise.
23095 (vreinterpretq_s32_s16): Likewise.
23096 (vreinterpretq_s32_s64): Likewise.
23097 (vreinterpretq_s32_f32): Likewise.
23098 (vreinterpretq_s32_u8): Likewise.
23099 (vreinterpretq_s32_u16): Likewise.
23100 (vreinterpretq_s32_u32): Likewise.
23101 (vreinterpretq_s32_u64): Likewise.
23102 (vreinterpretq_s32_p8): Likewise.
23103 (vreinterpretq_s32_p16): Likewise.
23104 (vreinterpret_u8_s8): Likewise.
23105 (vreinterpret_u8_s16): Likewise.
23106 (vreinterpret_u8_s32): Likewise.
23107 (vreinterpret_u8_s64): Likewise.
23108 (vreinterpret_u8_f32): Likewise.
23109 (vreinterpret_u8_u16): Likewise.
23110 (vreinterpret_u8_u32): Likewise.
23111 (vreinterpret_u8_u64): Likewise.
23112 (vreinterpret_u8_p8): Likewise.
23113 (vreinterpret_u8_p16): Likewise.
23114 (vreinterpretq_u8_s8): Likewise.
23115 (vreinterpretq_u8_s16): Likewise.
23116 (vreinterpretq_u8_s32): Likewise.
23117 (vreinterpretq_u8_s64): Likewise.
23118 (vreinterpretq_u8_f32): Likewise.
23119 (vreinterpretq_u8_u16): Likewise.
23120 (vreinterpretq_u8_u32): Likewise.
23121 (vreinterpretq_u8_u64): Likewise.
23122 (vreinterpretq_u8_p8): Likewise.
23123 (vreinterpretq_u8_p16): Likewise.
23124 (vreinterpret_u16_s8): Likewise.
23125 (vreinterpret_u16_s16): Likewise.
23126 (vreinterpret_u16_s32): Likewise.
23127 (vreinterpret_u16_s64): Likewise.
23128 (vreinterpret_u16_f32): Likewise.
23129 (vreinterpret_u16_u8): Likewise.
23130 (vreinterpret_u16_u32): Likewise.
23131 (vreinterpret_u16_u64): Likewise.
23132 (vreinterpret_u16_p8): Likewise.
23133 (vreinterpret_u16_p16): Likewise.
23134 (vreinterpretq_u16_s8): Likewise.
23135 (vreinterpretq_u16_s16): Likewise.
23136 (vreinterpretq_u16_s32): Likewise.
23137 (vreinterpretq_u16_s64): Likewise.
23138 (vreinterpretq_u16_f32): Likewise.
23139 (vreinterpretq_u16_u8): Likewise.
23140 (vreinterpretq_u16_u32): Likewise.
23141 (vreinterpretq_u16_u64): Likewise.
23142 (vreinterpretq_u16_p8): Likewise.
23143 (vreinterpretq_u16_p16): Likewise.
23144 (vreinterpret_u32_s8): Likewise.
23145 (vreinterpret_u32_s16): Likewise.
23146 (vreinterpret_u32_s32): Likewise.
23147 (vreinterpret_u32_s64): Likewise.
23148 (vreinterpret_u32_f32): Likewise.
23149 (vreinterpret_u32_u8): Likewise.
23150 (vreinterpret_u32_u16): Likewise.
23151 (vreinterpret_u32_u64): Likewise.
23152 (vreinterpret_u32_p8): Likewise.
23153 (vreinterpret_u32_p16): Likewise.
23154 (vreinterpretq_u32_s8): Likewise.
23155 (vreinterpretq_u32_s16): Likewise.
23156 (vreinterpretq_u32_s32): Likewise.
23157 (vreinterpretq_u32_s64): Likewise.
23158 (vreinterpretq_u32_f32): Likewise.
23159 (vreinterpretq_u32_u8): Likewise.
23160 (vreinterpretq_u32_u16): Likewise.
23161 (vreinterpretq_u32_u64): Likewise.
23162 (vreinterpretq_u32_p8): Likewise.
23163 (vreinterpretq_u32_p16): Likewise.
23164
23165 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23166
23167 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23168 Pattern extended.
23169 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23170 (sqabs): Likewise.
23171 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23172 (vqnegd_s64): Likewise.
23173 (vqabs_s64): Likewise.
23174 (vqabsd_s64): Likewise.
23175
23176 2014-04-22 Richard Henderson <rth@redhat.com>
23177
23178 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23179 computation to the top of the loop.
23180
23181 2014-04-22 Renlin <renlin.li@arm.com>
23182 Jiong Wang <jiong.wang@arm.com>
23183
23184 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23185 * config/aarch64/aarch64.c (aarch64_layout_frame)
23186 (aarch64_initial_elimination_offset): Likewise.
23187
23188 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23189
23190 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23191 Fix indentation.
23192
23193 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23194
23195 * machmode.h (bitwise_mode_for_mode): Declare.
23196 * stor-layout.h (bitwise_type_for_mode): Likewise.
23197 * stor-layout.c (bitwise_mode_for_mode): New function.
23198 (bitwise_type_for_mode): Likewise.
23199 * builtins.c (fold_builtin_memory_op): Use it instead of
23200 int_mode_for_mode and build_nonstandard_integer_type.
23201
23202 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23203
23204 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23205 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23206 (*-*-solaris2*): Simplify.
23207 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23208 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23209 *-*-solaris2.9* handling.
23210
23211 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23212 as bug.
23213 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23214 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23215 handling, simplify.
23216 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23217 * configure: Regenerate.
23218
23219 * config/i386/sol2-9.h: Remove.
23220
23221 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23222 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23223 Remove Solaris 9 references.
23224
23225 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23226
23227 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23228 (floatuns<GPI:mode><GPF:mode>2): Remove.
23229 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23230 and floatuns conversions.
23231 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23232 and floatuns conversions.
23233 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23234 (w1,w2): New mode attributes for inequal width conversions.
23235
23236 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23237
23238 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23239 the output asm format.
23240
23241 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23242
23243 * config/aarch64/aarch64-simd.md
23244 (aarch64_cm<optab>di): Always split.
23245 (*aarch64_cm<optab>di): New.
23246 (aarch64_cmtstdi): Always split.
23247 (*aarch64_cmtstdi): New.
23248
23249 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23250
23251 PR tree-optimization/60823
23252 * omp-low.c (ipa_simd_modify_function_body): Go through
23253 all SSA_NAMEs and for those refering to vector arguments
23254 which are going to be replaced adjust SSA_NAME_VAR and,
23255 if it is a default definition, change it into a non-default
23256 definition assigned at the beginning of function from new_decl.
23257 (ipa_simd_modify_stmt_ops): Rewritten.
23258 * tree-dfa.c (set_ssa_default_def): When removing default def,
23259 check for NULL loc instead of NULL *loc.
23260
23261 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23262
23263 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23264 restrictions on core registers for DImode values in Thumb2.
23265
23266 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23267
23268 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23269 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23270
23271 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23272
23273 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23274 (*iordi_notzesidi_di): Likewise.
23275 (*iordi_notsesidi_di): Likewise.
23276
23277 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23278
23279 * config/arm/arm-protos.h (tune_params): New struct members.
23280 * config/arm/arm.c: Initialise tune_params per processor.
23281 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23282 for speed, based on new tune_params.
23283
23284 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23285
23286 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23287 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23288 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23289 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23290 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23291 (vrnda_f64): Likewise.
23292 (vrndi_f64): Likewise.
23293 (vrndm_f64): Likewise.
23294 (vrndn_f64): Likewise.
23295 (vrndp_f64): Likewise.
23296 (vrndx_f64): Likewise.
23297
23298 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23299
23300 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23301 GET_MODE_SIZE argument is enum machine_mode.
23302
23303 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23304
23305 PR target/60910
23306 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23307 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23308
23309 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23310
23311 PR middle-end/60281
23312 * asan.c (asan_emit_stack_protection): Force the base to align to
23313 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23314 appropriate bits if STRICT_ALIGNMENT.
23315 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23316 when asan is on.
23317 (expand_used_vars): Leave a space in the stack frame for alignment
23318 if STRICT_ALIGNMENT.
23319
23320 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23321
23322 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23323 than a gimple.
23324 (gimple_store_p): Likewise.
23325 (gimple_assign_load_p): Likewise.
23326 (gimple_assign_cast_p): Likewise.
23327 (gimple_clobber_p): Likewise.
23328
23329 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23330 rather than a gimple.
23331 (gimple_assign_cast_p): Likewise.
23332
23333 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23334
23335 PR target/60735
23336 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23337 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23338
23339 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23340 more debug information for E500 if -mdebug=reg.
23341
23342 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23343
23344 PR target/60909
23345 * config/i386/i386.c (ix86_expand_builtin)
23346 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23347 register for target RTX.
23348 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23349
23350 2014-04-18 Cong Hou <congh@google.com>
23351
23352 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23353 the widen-mult pattern by handling two operands with different sizes,
23354 and operands whose size is smaller than half of the result type.
23355
23356 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23357
23358 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23359 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23360 (do_estimate_edge_time): Compute it.
23361 * ipa-inline.c (want_inline_small_function_p): Bypass
23362 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23363
23364 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23365
23366 * ipa-inline.c (spec_rem): New static variable.
23367 (dump_overall_stats): New function.
23368 (dump_inline_stats): New function.
23369
23370 2014-04-18 Richard Henderson <rth@redhat.com>
23371
23372 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23373 to GET_MODE_SIZE, not a reg_class_t.
23374
23375 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23376
23377 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23378 (vsx_xxmrglw_<mode>): Likewise.
23379
23380 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23381
23382 PR target/60876
23383 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23384 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23385 (rs6000_init_hard_regno_mode_ok): Likewise.
23386
23387 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23388
23389 * ipa-inline.c (inline_small_functions): Account only non-cold
23390 functions.
23391 * doc/invoke.texi (inline-unit-growth): Update documentation.
23392
23393 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23394
23395 * config/rs6000/rs6000.md (addti3, subti3): New.
23396
23397 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23398
23399 PR target/60863
23400 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23401 comment. Check optimize_insn_for_size_p instead of
23402 optimize_insn_for_speed_p.
23403
23404 2014-04-17 Martin Jambor <mjambor@suse.cz>
23405
23406 * gimple-iterator.c (gsi_start_edge): New function.
23407 * gimple-iterator.h (gsi_start_edge): Declare.
23408 * tree-sra.c (single_non_eh_succ): New function.
23409 (disqualify_ops_if_throwing_stmt): Renamed to
23410 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23411 having one non-EH successor BB.
23412 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23413 generate loads into replacements.
23414 (sra_modify_assign): Likewise and and also use the simple path for
23415 such statements.
23416 (sra_modify_function_body): Commit statements on edges.
23417
23418 2014-04-17 Richard Biener <rguenther@suse.de>
23419
23420 PR middle-end/60849
23421 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23422 comparison results and add clarifying comment.
23423
23424 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23425
23426 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23427 (blank_mode): Initialize it.
23428 (emit_mode_size_inline, emit_mode_nunits_inline,
23429 emit_mode_inner_inline): New functions.
23430 (emit_insn_modes_h): Call them and surround their output with
23431 #if GCC_VERSION >= 4001 ... #endif.
23432 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23433 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23434 mode_* arrays if the argument is __builtin_constant_p.
23435 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23436 is enum machine_mode.
23437
23438 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23439
23440 * passes.c (opt_pass::execute): Adjust.
23441 (pass_manager::execute_pass_mode_switching): Likewise.
23442 (early_local_passes::execute): Likewise.
23443 (execute_one_pass): Pass cfun to the pass's execute method.
23444 * tree-pass.h (opt_pass::execute): Add function * argument.
23445 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23446 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23447 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23448 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23449 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23450 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23451 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23452 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23453 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23454 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23455 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23456 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23457 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23458 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23459 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23460 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23461 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23462 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23463 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23464 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23465 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23466 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23467 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23468 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23469 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23470 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23471 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23472 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23473 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23474 Adjust.
23475
23476 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23477
23478 * passes.c (opt_pass::gate): Take function * argument.
23479 (gate_all_early_local_passes): Merge into
23480 (early_local_passes::gate): this.
23481 (gate_all_early_optimizations): Merge into
23482 (all_early_optimizations::gate): this.
23483 (gate_all_optimizations): Mege into
23484 (all_optimizations::gate): this.
23485 (gate_all_optimizations_g): Merge into
23486 (all_optimizations_g::gate): this.
23487 (gate_rest_of_compilation): Mege into
23488 (rest_of_compilation::gate): this.
23489 (gate_postreload): Merge into
23490 (postreload::gate): this.
23491 (dump_one_pass): Pass cfun to the pass's gate method.
23492 (execute_ipa_summary_passes): Likewise.
23493 (execute_one_pass): Likewise.
23494 (ipa_write_summaries_2): Likewise.
23495 (ipa_write_optimization_summaries_1): Likewise.
23496 (ipa_read_summaries_1): Likewise.
23497 (ipa_read_optimization_summaries_1): Likewise.
23498 (execute_ipa_stmt_fixups): Likewise.
23499 * tree-pass.h (opt_pass::gate): Add function * argument.
23500 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23501 combine-stack-adj.c, combine.c, compare-elim.c,
23502 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23503 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23504 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23505 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
23506 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23507 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23508 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23509 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23510 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23511 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23512 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23513 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23514 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23515 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23516 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23517 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23518 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23519 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23520 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23521 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23522 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23523 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23524 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23525 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23526 var-tracking.c, vtable-verify.c, web.c: Adjust.
23527
23528 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23529
23530 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23531 * configure: Regenerate.
23532
23533 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23534
23535 * passes.c (dump_one_pass): don't check pass->has_gate.
23536 (execute_ipa_summary_passes): Likewise.
23537 (execute_one_pass): Likewise.
23538 (ipa_write_summaries_2): Likewise.
23539 (ipa_write_optimization_summaries_1): Likewise.
23540 (ipa_read_optimization_summaries_1): Likewise.
23541 (execute_ipa_stmt_fixups): Likewise.
23542 * tree-pass.h (pass_data::has_gate): Remove.
23543 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23544 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23545 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23546 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23547 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23548 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23549 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23550 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23551 gimple-low.c, gimple-ssa-isolate-paths.c,
23552 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23553 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23554 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23555 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23556 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23557 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23558 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23559 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23560 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23561 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23562 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23563 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23564 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23565 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23566 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23567 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23568 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23569 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23570 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23571 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23572 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23573 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23574 Adjust.
23575
23576 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23577
23578 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23579 declaration.
23580 * passes.c (pass_manager::register_dump_files_1): Merge into
23581 (pass_manager::register_dump_files): this, and remove its handling of
23582 properties since the pass always has the properties anyway.
23583 (pass_manager::pass_manager): Adjust.
23584
23585 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23586
23587 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23588 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23589 dealing with properties.
23590 (pass_manager::register_dump_files): Adjust.
23591
23592 2014-03-20 Mark Wielaard <mjw@redhat.com>
23593
23594 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23595 then represent the bound as normal constant value.
23596
23597 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23598
23599 PR target/60847
23600 Forward port from 4.8 branch
23601 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23602
23603 * config/i386/bmiintrin.h (_blsi_u32): New.
23604 (_blsi_u64): Ditto.
23605 (_blsr_u32): Ditto.
23606 (_blsr_u64): Ditto.
23607 (_blsmsk_u32): Ditto.
23608 (_blsmsk_u64): Ditto.
23609 (_tzcnt_u32): Ditto.
23610 (_tzcnt_u64): Ditto.
23611
23612 2014-04-17 Kito Cheng <kito@0xlab.org>
23613
23614 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23615
23616 2014-04-17 Richard Biener <rguenther@suse.de>
23617
23618 PR middle-end/60849
23619 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23620 boolean results for comparisons.
23621
23622 2014-04-17 Richard Biener <rguenther@suse.de>
23623
23624 PR tree-optimization/60836
23625 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23626 initial PHI args to be gimple values.
23627
23628 2014-04-17 Richard Biener <rguenther@suse.de>
23629
23630 PR tree-optimization/60841
23631 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23632 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23633 of stmts to SLP build.
23634 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23635 (vect_analyze_slp): Likewise.
23636 (vect_analyze_slp_instance): Likewise.
23637 (vect_build_slp_tree): Limit overall SLP tree growth.
23638 * tree-vectorizer.h (vect_analyze_data_refs,
23639 vect_analyze_slp): Adjust prototypes.
23640
23641 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23642
23643 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23644 Silvermont.
23645
23646 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23647
23648 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23649 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23650 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23651 for TARGET_SLOW_PSHUFB
23652
23653 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23654
23655 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23656 * config/i386/i386.c (intel_cost): Ditto.
23657
23658 2014-04-17 Joey Ye <joey.ye@arm.com>
23659
23660 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23661
23662 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23663
23664 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23665 with -fuse-profile.
23666
23667 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23668
23669 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23670 (type_all_derivations_known_p): New predicate.
23671 (type_all_ctors_visible_p): New predicate.
23672 (type_possibly_instantiated_p): New predicate.
23673 (get_odr_type): Compute all_derivations_known.
23674 (dump_odr_type): Dump the flag.
23675 (maybe_record_type): Cleanup.
23676 (record_target_from_binfo): Add bases_to_consider array;
23677 record bases for types w/o instances and skip CXX destructor.
23678 (possible_polymorphic_call_targets_1): Add bases_to_consider
23679 and consider_construction parameters; check if type may have instance.
23680 (get_polymorphic_call_info): Set maybe_in_construction to true
23681 when we know nothing.
23682 (record_targets_from_bases): Skip CXX destructors; they are
23683 never called for types in construction.
23684 (possible_polymorphic_call_targets): Do not record target when
23685 type may not have instance.
23686
23687 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23688
23689 PR ipa/60854
23690 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23691 external aliases alive, too.
23692
23693 2014-04-16 Andrew Pinski <apinski@cavium.com>
23694
23695 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23696 definition.
23697
23698 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23699
23700 * final.c (compute_alignments): Do not apply loop alignment to a block
23701 falling through to the exit.
23702
23703 2014-04-16 Catherine Moore <clm@codesourcery.com>
23704
23705 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23706 Adjust constraints for microMIPS store patterns.
23707
23708 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23709
23710 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23711
23712 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23713
23714 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23715 (append_use): Run at -O0.
23716 (append_vdef): Likewise.
23717 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23718 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23719
23720 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23721
23722 PR tree-optimization/60844
23723 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23724 (propagate_op_to_single_use, remove_visited_stmt_chain,
23725 linearize_expr, repropagate_negates, reassociate_bb): Use it
23726 instead of gsi_remove.
23727
23728 2014-04-16 Martin Jambor <mjambor@suse.cz>
23729
23730 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23731 ipa_transforms_to_apply.
23732 (cgraph_function_versioning): Assert that old_node has empty
23733 ipa_transforms_to_apply.
23734 * trans-mem.c (ipa_tm_create_version): Likewise.
23735 * tree-inline.c (tree_function_versioning): Do not duplicate
23736 ipa_transforms_to_apply.
23737
23738 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23739
23740 PR target/60817
23741 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
23742 x86_64-*-* cases.
23743 Pass necessary as flags on 64-bit Solaris/x86.
23744 Use lowercase relocs for x86_64-*-*.
23745 * configure: Regenerate.
23746
23747 2014-04-15 Jan Hubicka <jh@suse.cz>
23748
23749 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
23750 (maybe_record_node, likely_target_p): Use it.
23751
23752 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23753
23754 PR target/60839
23755 Revert following patch
23756
23757 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23758
23759 PR target/60735
23760 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23761 software floating point or no floating point registers, do not
23762 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23763 in GPRs that occurs after we tested for GPRs that would never be
23764 true.
23765
23766 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23767 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23768 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23769 specifically allow DDmode, since that does not use the SPE SIMD
23770 instructions.
23771
23772 2014-03-21 Mark Wielaard <mjw@redhat.com>
23773
23774 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
23775 as unsigned or int depending on type and value used.
23776
23777 2014-04-15 Richard Biener <rguenther@suse.de>
23778
23779 PR rtl-optimization/56965
23780 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
23781 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
23782 ... here.
23783 * alias.c (true_dependence_1): Do not call
23784 nonoverlapping_component_refs_p.
23785 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
23786 nonoverlapping_component_refs_p.
23787 (indirect_refs_may_alias_p): Likewise.
23788
23789 2014-04-15 Teresa Johnson <tejohnson@google.com>
23790
23791 * cfg.c (dump_bb_info): Fix flags check.
23792 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
23793
23794 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23795
23796 PR rtl-optimization/60663
23797 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
23798 avoid 0 cost.
23799
23800 2014-04-15 Richard Biener <rguenther@suse.de>
23801
23802 * lto-streamer.h (LTO_major_version): Bump to 4.
23803
23804 2014-04-15 Richard Biener <rguenther@suse.de>
23805
23806 * common.opt (lto_partition_model): New enum.
23807 (flto-partition=): Merge separate options with a single with argument,
23808 add -flto-partition=one support.
23809 * flag-types.h (enum lto_partition_model): Declare.
23810 * opts.c (finish_options): Remove duplicate -flto-partition=
23811 option check.
23812 * lto-wrapper.c (run_gcc): Adjust.
23813
23814 2014-04-15 Richard Biener <rguenther@suse.de>
23815
23816 * alias.c (ncr_compar): New function.
23817 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
23818
23819 2014-04-15 Richard Biener <rguenther@suse.de>
23820
23821 * alias.c (record_component_aliases): Do not walk BINFOs.
23822
23823 2014-04-15 Richard Biener <rguenther@suse.de>
23824
23825 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23826 Add struct function argument and adjust.
23827 (find_func_aliases_for_call): Likewise.
23828 (find_func_aliases): Likewise.
23829 (find_func_clobbers): Likewise.
23830 (intra_create_variable_infos): Likewise.
23831 (compute_points_to_sets): Likewise.
23832 (ipa_pta_execute): Adjust. Do not push/pop cfun.
23833
23834 2014-04-15 Richard Biener <rguenther@suse.de>
23835
23836 * tree.c (iterative_hash_expr): Use enum tree_code_class
23837 to store TREE_CODE_CLASS.
23838 (tree_block): Likewise.
23839 (tree_set_block): Likewise.
23840 * tree.h (fold_build_pointer_plus_loc): Use
23841 convert_to_ptrofftype_loc.
23842
23843 2014-04-15 Jakub Jelinek <jakub@redhat.com>
23844
23845 PR plugins/59335
23846 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
23847 added in 4.9.
23848
23849 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
23850
23851 * cfgloop.h (struct loop): Move force_vectorize down.
23852 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
23853 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
23854 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
23855 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
23856 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
23857 * tree-core.h (enum annot_expr_kind): Add new kind values.
23858 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
23859 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
23860 kinds.
23861 * tree.def (ANNOTATE_EXPR): Tweak comment.
23862
23863 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23864
23865 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
23866 cxa_pure_virtual).
23867
23868 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
23869
23870 * tree.h (TYPE_IDENTIFIER): Declare.
23871 * tree.c (subrange_type_for_debug_p): Use it.
23872 * godump.c (go_format_type): Likewise.
23873 * dwarf2out.c (is_cxx_auto, modified_type_die,
23874 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
23875 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
23876
23877 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23878
23879 PR lto/60820
23880 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
23881
23882 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
23883
23884 * config/i386/i386.c (examine_argument): Return bool. Return true if
23885 parameter should be passed in memory.
23886 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
23887 (construct_container): Update calls to examine_argument.
23888 (function_arg_advance_64): Ditto.
23889 (return_in_memory_32): Merge with ix86_return_in_memory.
23890 (return_in_memory_64): Ditto.
23891 (return_in_memory_ms_64): Ditto.
23892
23893 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23894
23895 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
23896 * coverage.c (coverage_compute_profile_id): Handle externally visible
23897 symbols.
23898
23899 2014-04-14 Martin Jambor <mjambor@suse.cz>
23900
23901 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
23902 DECL_DISREGARD_INLINE_LIMITS functions.
23903
23904 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23905
23906 PR target/60827
23907 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
23908
23909 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23910
23911 PR target/60827
23912 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
23913 optimize_insn_for_speed_p instead of
23914 optimize_function_for_speed_p.
23915
23916 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
23917
23918 * doc/invoke.texi (free): Document AArch64.
23919
23920 2014-04-14 Richard Biener <rguenther@suse.de>
23921
23922 PR tree-optimization/60042
23923 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
23924 (insert_into_preds_of_block): Do not prevent PHI insertion
23925 for REFERENCE exprs here ...
23926 (eliminate_dom_walker::before_dom_children): ... but prevent
23927 their use here under similar conditions when applied to the
23928 IL after PRE optimizations.
23929
23930 2014-04-14 Richard Biener <rguenther@suse.de>
23931
23932 * passes.def: Move early points-to after early SRA.
23933
23934 2014-04-14 Richard Biener <rguenther@suse.de>
23935
23936 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
23937 check for which sign-changes we allow when forwarding
23938 a converted value into a switch.
23939
23940 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23941
23942 * stor-layout.c (place_field): Finalize non-constant offset for the
23943 field, if any.
23944
23945 2014-04-14 Richard Biener <rguenther@suse.de>
23946
23947 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
23948 as argument.
23949 (expand_switch_using_bit_tests_p): Likewise.
23950 (process_switch): Compute and pass on speed_p based on the
23951 switch stmt.
23952 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
23953 optimize_bb_for_speed_p.
23954
23955 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23956
23957 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
23958 * function.h (struct function): Rename has_force_vect_loops into
23959 has_force_vectorize_loops.
23960 * lto-streamer-in.c (input_cfg): Adjust for renaming.
23961 (input_struct_function_base): Likewise.
23962 * lto-streamer-out.c (output_cfg): Likewise.
23963 (output_struct_function_base): Likewise.
23964 * omp-low.c (expand_omp_simd): Likewise.
23965 * tree-cfg.c (move_sese_region_to_fn): Likewise.
23966 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
23967 (version_loop_for_if_conversion): Likewise.
23968 (tree_if_conversion): Likewise.
23969 (main_tree_if_conversion): Likewise.
23970 (gate_tree_if_conversion): Likewise.
23971 * tree-inline.c (copy_loops): Likewise.
23972 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
23973 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
23974 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23975 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
23976 * tree-vectorizer.c (vectorize_loops): Likewise.
23977 * tree-vectorizer.h (unlimited_cost_model): Likewise.
23978
23979 2014-04-14 Richard Biener <rguenther@suse.de>
23980
23981 PR lto/60720
23982 * lto-streamer-out.c (wrap_refs): New function.
23983 (lto_output): Wrap symbol references in global initializes in
23984 type-preserving MEM_REFs.
23985
23986 2014-04-14 Christian Bruel <christian.bruel@st.com>
23987
23988 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
23989
23990 2014-04-14 Christian Bruel <christian.bruel@st.com>
23991
23992 * config/sh/sh.md (setmemqi): New expand pattern.
23993 * config/sh/sh.h (CLEAR_RATIO): Define.
23994 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
23995 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
23996
23997 2014-04-14 Richard Biener <rguenther@suse.de>
23998
23999 PR middle-end/55022
24000 * fold-const.c (negate_expr_p): Don't negate directional rounding
24001 division.
24002 (fold_negate_expr): Likewise.
24003
24004 2014-04-14 Richard Biener <rguenther@suse.de>
24005
24006 PR tree-optimization/59817
24007 PR tree-optimization/60453
24008 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24009 recursion to catch all CHRECs in the scalar evolution and restrict
24010 the predicate for the remains appropriately.
24011
24012 2014-04-12 Catherine Moore <clm@codesourcery.com>
24013
24014 * config/mips/constraints.md: Add new register constraint "kb".
24015 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24016 (*movhi_internal): Likewise.
24017 (*movqi_internal): Likewise.
24018 * config/mips/mips.h (M16_STORE_REGS): New register class.
24019 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24020 (REG_CLASS_CONTENTS): Likewise.
24021 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24022
24023 2014-04-11 Tobias Burnus <burnus@net-b.de>
24024
24025 PR c/60194
24026 * doc/invoke.texi (-Wformat-signedness): Document it.
24027 (Wformat=2): Mention that this enables -Wformat-signedness.
24028
24029 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24030
24031 * common/config/epiphany/epiphany-common.c
24032 (epiphany_option_optimization_table): Enable section anchors by
24033 default at -O1 or higher.
24034 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24035 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24036 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24037 carries no extra cost.
24038 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24039 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24040 * config/epiphany/predicates.md (memclob_operand): New predicate.
24041 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24042 Use memclob_operand predicate and X constraint for operand 3.
24043
24044 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24045
24046 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24047 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24048 its operands.
24049
24050 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24051
24052 PR rtl-optimization/60651
24053 * mode-switching.c (optimize_mode_switching): Make sure to emit
24054 sets of a lower numbered entity before sets of a higher numbered
24055 entity to a mode of the same or lower priority.
24056 When creating a seginfo for a basic block that starts with a code
24057 label, move the insertion point past the code label.
24058 (new_seginfo): Document and enforce requirement that
24059 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24060 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24061 * doc/tm.texi: Regenerate.
24062
24063 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24064
24065 PR target/60811
24066 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24067
24068 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24069
24070 * BASE-VER: Set to 4.10.0.
24071
24072 2014-04-11 Tobias Burnus <burnus@net-b.de>
24073
24074 PR other/59055
24075 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24076 * doc/gcc.texi (Service): Update description in the @menu
24077 * doc/invoke.texi (Option Summary): Remove misplaced and
24078 duplicated @menu.
24079
24080 2014-04-11 Steve Ellcey <sellcey@mips.com>
24081 Jakub Jelinek <jakub@redhat.com>
24082
24083 PR middle-end/60556
24084 * expr.c (convert_move): Use emit_store_flag_force instead of
24085 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24086 argument to it.
24087
24088 2014-04-11 Richard Biener <rguenther@suse.de>
24089
24090 PR middle-end/60797
24091 * varasm.c (assemble_alias): Avoid endless error reporting
24092 recursion by setting TREE_ASM_WRITTEN.
24093
24094 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24095
24096 * config/s390/s390.md: Add a splitter for NOT rtx.
24097
24098 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24099
24100 PR rtl-optimization/60663
24101 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24102
24103 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24104 Jakub Jelinek <jakub@redhat.com>
24105
24106 PR lto/60567
24107 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24108 flag from decl_node to node.
24109
24110 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24111
24112 PR debug/60655
24113 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24114 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24115 ameliorating the cases where it can be.
24116
24117 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24118
24119 Revert
24120 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24121
24122 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24123 (loadsync_<mode>): Change mode.
24124 (load_quadpti, store_quadpti): New.
24125 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24126 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24127 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24128
24129 2014-04-09 Cong Hou <congh@google.com>
24130
24131 PR testsuite/60773
24132 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24133 documentation.
24134
24135 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24136
24137 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24138 instead of vnor to exploit possible fusion opportunity in the
24139 future.
24140 (altivec_expand_vec_perm_const_le): Likewise.
24141
24142 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24143
24144 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24145 (loadsync_<mode>): Change mode.
24146 (load_quadpti, store_quadpti): New.
24147 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24148 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24149
24150 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24151
24152 PR target/60763
24153 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24154 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24155 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24156
24157 2014-04-08 Richard Biener <rguenther@suse.de>
24158
24159 PR middle-end/60706
24160 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24161 a 64bit widest int print double-int similar to on HWI64 hosts.
24162
24163 2014-04-08 Richard Biener <rguenther@suse.de>
24164
24165 PR tree-optimization/60785
24166 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24167 default defs properly.
24168
24169 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24170
24171 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24172 (Weffc++): Likewise.
24173
24174 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24175
24176 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24177 set completep to false rather than true.
24178
24179 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24180
24181 PR target/60504
24182 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24183 ARM_TARGET2_DWARF_FORMAT.
24184
24185 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24186
24187 PR target/60609
24188 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24189 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24190 ADDR_DIFF_VEC.
24191
24192 2014-04-07 Richard Biener <rguenther@suse.de>
24193
24194 PR tree-optimization/60766
24195 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24196 (may_eliminate_iv): Convert cand_value_at result to desired type.
24197
24198 2014-04-07 Jason Merrill <jason@redhat.com>
24199
24200 PR c++/60731
24201 * common.opt (-fno-gnu-unique): Add.
24202 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24203
24204 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24205
24206 * haifa-sched.c: Fix outdated function reference and minor
24207 grammar errors in introductory comment.
24208
24209 2014-04-07 Richard Biener <rguenther@suse.de>
24210
24211 PR middle-end/60750
24212 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24213 for noreturn calls.
24214 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24215
24216 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24217
24218 PR debug/55794
24219 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24220 size accounting for thunks.
24221 (pa_asm_output_mi_thunk): Use final_start_function() and
24222 final_end_function() to output function start and end directives.
24223
24224 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24225
24226 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24227 device specific ISA/ feature information. Remove short_sp and
24228 errata_skip ds. Add avr_device_specific_features enum to have device
24229 specific info.
24230 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24231 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24232 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24233 updated device specific info.
24234 * config/avr/avr-mcus.def: Merge device specific details to
24235 dev_attribute field.
24236 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24237 errata_skip.
24238 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24239 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24240 assembler if RMW isa supported by current device.
24241 * config/avr/genmultilib.awk: Update as device info structure changed.
24242 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24243
24244 2014-04-04 Cong Hou <congh@google.com>
24245
24246 PR tree-optimization/60656
24247 * tree-vect-stmts.c (supportable_widening_operation):
24248 Fix a bug that elements in a vector with vect_used_by_reduction
24249 property are incorrectly reordered when the operation on it is not
24250 consistant with the one in reduction operation.
24251
24252 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24253
24254 PR rtl-optimization/60155
24255 * gcse.c (record_set_data): New function.
24256 (single_set_gcse): New function.
24257 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24258 (hoist_code): Likewise.
24259 (get_pressure_class_and_nregs): Likewise.
24260
24261 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24262
24263 * explow.c (probe_stack_range): Emit a final optimization blockage.
24264
24265 2014-04-04 Anthony Green <green@moxielogic.com>
24266
24267 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24268 typos.
24269
24270 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24271
24272 PR ipa/59626
24273 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24274 flags are set only during streaming.
24275 * ipa.c (process_references, walk_polymorphic_call_targets,
24276 symtab_remove_unreachable_nodes): Drop bodies of always inline
24277 after early inlining.
24278 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24279
24280 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24281 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24282
24283 PR debug/60655
24284 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24285 containing a NOT.
24286
24287 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24288
24289 PR bootstrap/60743
24290 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24291 duration.
24292 (cortex_a53_fdivd): Likewise.
24293
24294 2014-04-04 Martin Jambor <mjambor@suse.cz>
24295
24296 PR ipa/60640
24297 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24298 Adjust all callers.
24299 * cgraph.c (clone_of_p): Also return true if thunks match.
24300 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24301 cgraph_function_or_thunk_node and an obsolete comment.
24302 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24303 file.
24304 (build_function_decl_skip_args): Likewise.
24305 (set_new_clone_decl_and_node_flags): New function.
24306 (duplicate_thunk_for_node): Likewise.
24307 (redirect_edge_duplicating_thunks): Likewise.
24308 (cgraph_clone_node): New parameter args_to_skip, pass it to
24309 redirect_edge_duplicating_thunks which is called instead of
24310 cgraph_redirect_edge_callee.
24311 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24312 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24313
24314 2014-04-04 Jeff Law <law@redhat.com>
24315
24316 PR target/60657
24317 * config/arm/predicates.md (const_int_I_operand): New predicate.
24318 (const_int_M_operand): Similarly.
24319 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24320 const_int_operand.
24321 (insv_t2, extv_reg, extzv_t2): Likewise.
24322 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24323 (pop_multiple_with_writeback_and_return): Likewise.
24324 (vfp_pop_multiple_with_writeback): Likewise
24325
24326 2014-04-04 Richard Biener <rguenther@suse.de>
24327
24328 PR ipa/60746
24329 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24330 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24331 non-GIMPLE_LABELs.
24332 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24333 * gimplify.c (gimple_add_tmp_var_fn): New function.
24334 * gimple-expr.h (create_tmp_reg_fn): Declare.
24335 * gimple-expr.c (create_tmp_reg_fn): New function.
24336 * gimple-low.c (record_vars_into): Don't change cfun.
24337 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24338 code generation without cfun.
24339
24340 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24341
24342 PR bootstrap/60719
24343 * Makefile.in (install-driver): Fix shell scripting.
24344
24345 2014-04-03 Cong Hou <congh@google.com>
24346
24347 PR tree-optimization/60505
24348 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24349 threshold of number of iterations below which no vectorization
24350 will be done.
24351 * tree-vect-loop.c (new_loop_vec_info):
24352 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24353 * tree-vect-loop.c (vect_analyze_loop_operations):
24354 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24355 * tree-vect-loop.c (vect_transform_loop):
24356 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24357 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24358 of iterations of the loop and see if we should build the epilogue.
24359
24360 2014-04-03 Richard Biener <rguenther@suse.de>
24361
24362 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24363 (streamer_tree_cache_create): Adjust.
24364 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24365 to allow optional nodes array.
24366 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24367 (streamer_tree_cache_append): Likewise.
24368 (streamer_tree_cache_create): Create nodes array optionally
24369 as specified by parameter.
24370 * lto-streamer-out.c (create_output_block): Avoid maintaining
24371 the node array in the writer cache.
24372 (DFS_write_tree): Remove assertion.
24373 (produce_asm_for_decls): Free the out decl state hash table early.
24374 * lto-streamer-in.c (lto_data_in_create): Adjust for
24375 streamer_tree_cache_create prototype change.
24376
24377 2014-04-03 Richard Biener <rguenther@suse.de>
24378
24379 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24380 set TREE_CHAIN to NULL_TREE.
24381
24382 2014-04-03 Richard Biener <rguenther@suse.de>
24383
24384 PR tree-optimization/60740
24385 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24386 over all GIMPLE_COND operands.
24387
24388 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24389
24390 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24391 (Weffc++): Remove Scott's numbering, merge lists and reference
24392 Wnon-virtual-dtor.
24393
24394 2014-04-03 Nick Clifton <nickc@redhat.com>
24395
24396 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24397 properly.
24398
24399 2014-04-03 Martin Jambor <mjambor@suse.cz>
24400
24401 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24402 mention gcc_unreachable before failing.
24403 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24404 removed symbols.
24405
24406 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24407
24408 PR ipa/60659
24409 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24410 inconsistent code and instead mark the context inconsistent.
24411 (possible_polymorphic_call_targets): For inconsistent contexts
24412 return empty complete list.
24413
24414 2014-04-02 Anthony Green <green@moxielogic.com>
24415
24416 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24417 (extendqisi2, extendhisi2): Define.
24418 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24419 (WCHAR_TYPE): Change to unsigned int.
24420
24421 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24422
24423 PR tree-optimization/60733
24424 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24425 insertion point for PHI candidates to be the end of the feeding
24426 block for the PHI argument.
24427
24428 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24429
24430 PR rtl-optimization/60650
24431 * lra-constraints.c (process_alt_operands): Decrease reject for
24432 earlyclobber matching.
24433
24434 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24435
24436 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24437
24438 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24439
24440 * config/spu/spu.c (pad_bb): Do not crash when the last
24441 insn is CODE_FOR_blockage.
24442
24443 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24444
24445 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24446 lies outside the target mode.
24447
24448 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24449
24450 PR target/60735
24451 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24452 software floating point or no floating point registers, do not
24453 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24454 in GPRs that occurs after we tested for GPRs that would never be
24455 true.
24456
24457 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24458 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24459 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24460 specifically allow DDmode, since that does not use the SPE SIMD
24461 instructions.
24462
24463 2014-04-02 Richard Biener <rguenther@suse.de>
24464
24465 PR middle-end/60729
24466 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24467 MODE_INTs. Properly use negv_optab.
24468 (expand_abs): Likewise.
24469
24470 2014-04-02 Richard Biener <rguenther@suse.de>
24471
24472 PR bootstrap/60719
24473 * Makefile.in (install-driver): Guard extra installs with special
24474 names properly.
24475
24476 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
24477
24478 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24479 Document vec_vgbbd.
24480
24481 2014-04-01 Richard Henderson <rth@redhat.com>
24482
24483 PR target/60704
24484 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24485 alternative enabled before register allocation.
24486
24487 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
24488
24489 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24490 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24491 typo.
24492 (nios2_large_got_address): Remove unneeded 'sym' parameter.
24493 (nios2_got_address): Update nios2_large_got_address call site.
24494 (nios2_delegitimize_address): New function.
24495 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24496 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24497 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24498
24499 2014-04-01 Martin Husemann <martin@duskware.de>
24500
24501 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24502 for -mabi=32.
24503
24504 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
24505
24506 PR rtl-optimization/60604
24507 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24508 check from register_operand.
24509 (register_operand): Redefine in terms of general_operand.
24510 (nonmemory_operand): Use register_operand for the non-constant cases.
24511
24512 2014-04-01 Richard Biener <rguenther@suse.de>
24513
24514 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24515
24516 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
24517
24518 * doc/invoke.texi (mapp-regs): Clarify.
24519
24520 2014-03-31 Ulrich Drepper <drepper@gmail.com>
24521
24522 * config/i386/avx512fintrin.h (__v32hi): Define type.
24523 (__v64qi): Likewise.
24524 (_mm512_set1_epi8): Define.
24525 (_mm512_set1_epi16): Define.
24526 (_mm512_set4_epi32): Define.
24527 (_mm512_set4_epi64): Define.
24528 (_mm512_set4_pd): Define.
24529 (_mm512_set4_ps): Define.
24530 (_mm512_setr4_epi64): Define.
24531 (_mm512_setr4_epi32): Define.
24532 (_mm512_setr4_pd): Define.
24533 (_mm512_setr4_ps): Define.
24534 (_mm512_setzero_epi32): Define.
24535
24536 2014-03-31 Martin Jambor <mjambor@suse.cz>
24537
24538 PR middle-end/60647
24539 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24540 callsite_arguments_match_p. Updated all callers. Also check types of
24541 corresponding formal parameters and actual arguments.
24542 (not_all_callers_have_enough_arguments_p) Renamed to
24543 some_callers_have_mismatched_arguments_p.
24544
24545 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24546
24547 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24548
24549 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24550
24551 PR target/60034
24552 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24553 section anchor.
24554
24555 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24556
24557 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24558 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24559 Split out
24560 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24561 Use FMAMODE_NOVF512 mode iterator.
24562 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24563 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24564 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24565 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24566 Split out
24567 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24568 Use VF_128_256 mode iterator.
24569 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24570 Ditto.
24571
24572 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24573
24574 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24575 static chain if needed.
24576
24577 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24578
24579 PR target/60697
24580 * lra-constraints.c (index_part_to_reg): New.
24581 (process_address): Use it.
24582
24583 2014-03-27 Jeff Law <law@redhat.com>
24584 Jakub Jelinek <jakub@redhat.com>
24585
24586 PR target/60648
24587 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24588 gen_rtx_{PLUS,MULT} to build up the address expression.
24589
24590 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24591 creating non-canonical RTL.
24592
24593 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24594
24595 PR ipa/60243
24596 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24597 functions; reorganize to make cheap checks first.
24598 (inline_small_functions): Do not estimate growth when dumping;
24599 it is expensive.
24600 * ipa-inline.h (inline_summary): Add min_size.
24601 (growth_likely_positive): New function.
24602 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24603 (set_cond_stmt_execution_predicate): Cleanup.
24604 (estimate_edge_size_and_time): Compute min_size.
24605 (estimate_calls_size_and_time): Likewise.
24606 (estimate_node_size_and_time): Likewise.
24607 (inline_update_overall_summary): Update min_size.
24608 (do_estimate_edge_time): Likewise.
24609 (do_estimate_edge_size): Update.
24610 (do_estimate_edge_hints): Update.
24611 (growth_likely_positive): New function.
24612
24613 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24614
24615 PR target/60693
24616 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24617 also if addr has VOIDmode.
24618
24619 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24620
24621 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24622 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24623 Declare extern.
24624 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24625 instructions as well as AdvancedSIMD loads.
24626
24627 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24628
24629 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24630 Use crypto_aese type.
24631 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24632 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24633 crypto_aese, crypto_aesmc. Move to types.md.
24634 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24635 crypto_aesmc.
24636 * config/arm/iterators.md (crypto_type): Likewise.
24637
24638 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24639
24640 * cgraph.c: Include expr.h and tree-dfa.h.
24641 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24642 remove LHS.
24643
24644 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24645
24646 PR target/60675
24647 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24648 regs from checking multi-reg pseudos.
24649
24650 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24651
24652 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24653
24654 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24655
24656 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24657 if it would clobber the stack pointer, even temporarily.
24658
24659 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24660
24661 * mode-switching.c: Make small adjustments to the top comment.
24662
24663 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24664
24665 * config/rs6000/constraints.md (wD constraint): New constraint to
24666 match the constant integer to get the top DImode/DFmode out of a
24667 vector in a VSX register.
24668
24669 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24670 match the constant integer to get the top DImode/DFmode out of a
24671 vector in a VSX register.
24672
24673 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24674 for ISA 2.07.
24675
24676 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24677 vbpermq builtins.
24678
24679 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24680 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24681
24682 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24683 Optimize vec_extract of 64-bit values, where the value being
24684 extracted is in the top word, where we can use scalar
24685 instructions. Add direct move and store support. Combine the big
24686 endian/little endian vector select load support into a single insn.
24687 (vsx_extract_<mode>_internal1): Likewise.
24688 (vsx_extract_<mode>_internal2): Likewise.
24689 (vsx_extract_<mode>_load): Likewise.
24690 (vsx_extract_<mode>_store): Likewise.
24691 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24692 combined into vsx_extract_<mode>_load.
24693 (vsx_extract_<mode>_one_le): Likewise.
24694
24695 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24696 define the top 64-bit vector element.
24697
24698 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24699 constraint.
24700
24701 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24702 Document vec_vbpermq builtin.
24703
24704 PR target/60672
24705 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24706 enable use of xxsldwi and xxpermdi builtin functions.
24707 (vec_xxpermdi): Likewise.
24708
24709 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24710 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24711
24712 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24713
24714 PR rtl-optimization/60650
24715 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24716 first_p. Use it.
24717 (find_spills_for): New.
24718 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24719 Spill all pseudos on the second iteration.
24720
24721 2014-03-27 Marek Polacek <polacek@redhat.com>
24722
24723 PR c/50347
24724 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24725 types.
24726
24727 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24728
24729 * config/s390/s390.c (s390_can_use_return_insn): Check for
24730 call-saved FPRs on 31 bit.
24731
24732 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24733
24734 PR middle-end/60682
24735 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24736 if they need regimplification, just drop them instead of
24737 calling gimple_regimplify_operands on them.
24738
24739 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
24740
24741 PR target/60580
24742 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
24743 (aarch64_frame_pointer_required): Adjust logic.
24744 (aarch64_can_eliminate): Adjust logic.
24745 (aarch64_override_options_after_change): Adjust logic.
24746
24747 2014-03-27 Dehao Chen <dehao@google.com>
24748
24749 * ipa-inline.c (early_inliner): Update node's inline info.
24750
24751 2014-03-26 Dehao Chen <dehao@google.com>
24752
24753 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
24754 compiler inserted conditional jumps for NAN float check.
24755
24756 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24757
24758 * ubsan.h (ubsan_create_data): Change second argument's type
24759 to const location_t *.
24760 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
24761 _("<unknown>").
24762 (ubsan_create_data): Change second argument to const location_t *PLOC.
24763 Create Loc field whenever PLOC is non-NULL.
24764 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
24765 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
24766 callers.
24767
24768 PR other/59545
24769 * real.c (real_to_integer2): Change type of low to UHWI.
24770
24771 2014-03-26 Tobias Burnus <burnus@net-b.de>
24772
24773 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
24774 (CILK_SELF_SPECS): New define.
24775 (driver_self_specs): Use it.
24776
24777 2014-03-26 Richard Biener <rguenther@suse.de>
24778
24779 * tree-pretty-print.c (percent_K_format): Implement special
24780 case for LTO and its stripped down BLOCK tree.
24781
24782 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24783
24784 PR sanitizer/60636
24785 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
24786
24787 * tree-vrp.c (simplify_internal_call_using_ranges): If only
24788 one range is range_int_cst_p, but not both, at least optimize
24789 addition/subtraction of 0 and multiplication by 0 or 1.
24790 * gimple-fold.c (gimple_fold_call): Fold
24791 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
24792 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
24793 INTEGER_CSTs, try to fold at least x * 0 and y - y.
24794
24795 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
24796
24797 PR rtl-optimization/60452
24798 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
24799 <case REG>: Return 1 for invalid offsets from the frame pointer.
24800
24801 2014-03-26 Marek Polacek <polacek@redhat.com>
24802
24803 PR c/37428
24804 * doc/extend.texi (C Extensions): Mention variable-length arrays in
24805 a structure/union.
24806
24807 2014-03-26 Marek Polacek <polacek@redhat.com>
24808
24809 PR c/39525
24810 * doc/extend.texi (Designated Inits): Describe what happens to omitted
24811 field members.
24812
24813 2014-03-26 Marek Polacek <polacek@redhat.com>
24814
24815 PR other/59545
24816 * ira-color.c (update_conflict_hard_regno_costs): Perform the
24817 multiplication in unsigned type.
24818
24819 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24820
24821 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
24822
24823 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24824
24825 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
24826
24827 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24828
24829 PR ipa/60315
24830 * cif-code.def (UNREACHABLE) New code.
24831 * ipa-inline.c (inline_small_functions): Skip edges to
24832 __builtlin_unreachable.
24833 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
24834 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
24835 predicate to __bulitin_unreachable.
24836 (set_cond_stmt_execution_predicate): Fix issue when
24837 invert_tree_comparison returns ERROR_MARK.
24838 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
24839 propagate to inline clones.
24840 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
24841 to unreachable.
24842 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
24843 * cgraphclones.c (cgraph_clone_node): If call destination is already
24844 ureachable, do not redirect it back.
24845 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
24846 unreachable.
24847
24848 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24849
24850 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
24851 Do not modify inline clones.
24852
24853 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24854
24855 * config/i386/i386.md (general_sext_operand): New mode attr.
24856 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
24857 don't generate (sign_extend (const_int)).
24858 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
24859 operands[2]. Use We constraint instead of <i> and
24860 <general_sext_operand> predicate instead of <general_operand>.
24861 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
24862 * config/i386/constraints.md (We): New constraint.
24863 * config/i386/predicates.md (x86_64_sext_operand,
24864 sext_operand): New predicates.
24865
24866 2014-03-25 Martin Jambor <mjambor@suse.cz>
24867
24868 PR ipa/60600
24869 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
24870 inconsistent devirtualizations to __builtin_unreachable.
24871
24872 2014-03-25 Marek Polacek <polacek@redhat.com>
24873
24874 PR c/35449
24875 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
24876
24877 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
24878
24879 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
24880 order of elements for big-endian.
24881
24882 2014-03-25 Richard Biener <rguenther@suse.de>
24883
24884 PR middle-end/60635
24885 * gimplify-me.c (gimple_regimplify_operands): Update the
24886 re-gimplifed stmt.
24887
24888 2014-03-25 Martin Jambor <mjambor@suse.cz>
24889
24890 PR ipa/59176
24891 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
24892 (lto_output_varpool_node): Likewise.
24893 (input_overwrite_node): Likewise.
24894 (input_varpool_node): Likewise.
24895
24896 2014-03-25 Richard Biener <rguenther@suse.de>
24897
24898 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
24899 (run_gcc): Likewise.
24900
24901 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24902
24903 * combine.c (simplify_compare_const): Add MODE argument.
24904 Handle mode_width 0 as very large mode_width.
24905 (try_combine, simplify_comparison): Adjust callers.
24906
24907 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
24908 type to avoid signed integer overflow.
24909 * explow.c (plus_constant): Likewise.
24910
24911 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
24912
24913 * doc/generic.texi: Correct typos.
24914
24915 2014-03-24 Tobias Burnus <burnus@net-b.de>
24916
24917 * doc/invoke.texi (-flto): Expand section about
24918 using static libraries with LTO.
24919
24920 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24921
24922 PR rtl-optimization/60501
24923 * optabs.def (addptr3_optab): New optab.
24924 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
24925 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
24926 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
24927
24928 * lra.c (emit_add3_insn): Use the addptr pattern if available.
24929
24930 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
24931
24932 2014-03-24 Ulrich Drepper <drepper@gmail.com>
24933
24934 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
24935 _mm512_set1_pd.
24936
24937 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
24938 (_mm256_undefined_ps): Define.
24939 (_mm256_undefined_pd): Define.
24940 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
24941 (_mm_undefined_pd): Define.
24942 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
24943 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
24944 (_mm512_undefined_ps): Define.
24945 (_mm512_undefined_pd): Define.
24946 Use _mm*_undefined_*.
24947 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
24948
24949 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
24950
24951 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
24952 (lshr_simd): DI mode added.
24953 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
24954 (aarch64_ushr_simddi): Likewise.
24955 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
24956 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
24957 (vshrd_n_u64): Likewise.
24958
24959 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24960
24961 * Makefile.in (s-macro_list): Depend on cc1.
24962
24963 2014-03-23 Teresa Johnson <tejohnson@google.com>
24964
24965 * ipa-utils.c (ipa_print_order): Use specified dump file.
24966
24967 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
24968
24969 PR rtl-optimization/60601
24970 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
24971
24972 * gcc.c (eval_spec_function): Initialize save_growing_value.
24973
24974 2014-03-22 Jakub Jelinek <jakub@redhat.com>
24975
24976 PR sanitizer/60613
24977 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
24978 code == MINUS_EXPR, never swap op0 with op1.
24979
24980 * toplev.c (init_local_tick): Avoid signed integer multiplication
24981 overflow.
24982 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
24983 shift by first operand's bitsize.
24984
24985 2014-03-21 Jakub Jelinek <jakub@redhat.com>
24986
24987 PR target/60610
24988 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
24989 redefine to 1 or 0.
24990 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
24991 TARGET_ISA_64BIT_P(x).
24992
24993 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24994
24995 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
24996 pattern for vector nor instead of subtract from splat(-1).
24997 (altivec_expand_vec_perm_const_le): Likewise.
24998
24999 2014-03-21 Richard Henderson <rth@twiddle.net>
25000
25001 PR target/60598
25002 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25003 related insns after epilogue_completed.
25004
25005 2014-03-21 Martin Jambor <mjambor@suse.cz>
25006
25007 PR ipa/59176
25008 * cgraph.h (symtab_node): New flag body_removed.
25009 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25010 when removing bodies.
25011 * symtab.c (dump_symtab_base): Dump body_removed flag.
25012 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25013 had their bodies removed.
25014
25015 2014-03-21 Martin Jambor <mjambor@suse.cz>
25016
25017 PR ipa/60419
25018 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25019 in the border.
25020
25021 2014-03-21 Richard Biener <rguenther@suse.de>
25022
25023 PR tree-optimization/60577
25024 * tree-core.h (struct tree_base): Document nothrow_flag use
25025 in DECL_NONALIASED.
25026 * tree.h (DECL_NONALIASED): New.
25027 (may_be_aliased): Adjust.
25028 * coverage.c (build_var): Set DECL_NONALIASED.
25029
25030 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25031
25032 * expr.c (expand_expr_real_1): Remove outdated comment.
25033
25034 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25035
25036 PR middle-end/60597
25037 * ira.c (adjust_cleared_regs): Call copy_rtx on
25038 *reg_equiv[REGNO (loc)].src_p before passing it to
25039 simplify_replace_fn_rtx.
25040
25041 PR target/60568
25042 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25043 into CONST, put pic register as first operand of PLUS. Use
25044 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25045
25046 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25047
25048 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25049
25050 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25051
25052 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25053 around for store forwarding issue in the FPU on the UT699.
25054 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25055 loads and operations if -mfix-ut699 is specified.
25056 (divtf3_hq): Tweak attribute.
25057 (sqrttf2_hq): Likewise.
25058
25059 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25060
25061 * calls.c (store_one_arg): Remove incorrect const qualification on the
25062 type of the temporary.
25063 * cfgexpand.c (expand_return): Likewise.
25064 * expr.c (expand_constructor): Likewise.
25065 (expand_expr_real_1): Likewise.
25066
25067 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25068
25069 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25070 of parts.
25071
25072 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25073
25074 PR target/60039
25075 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25076
25077 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25078
25079 * config/arm/aarch-common-protos.h
25080 (alu_cost_table): Fix spelling of "extend".
25081 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25082
25083 2014-03-19 Richard Biener <rguenther@suse.de>
25084
25085 PR middle-end/60553
25086 * tree-core.h (tree_type_common): Re-order pointer members
25087 to reduce recursion depth during GC walks.
25088
25089 2014-03-19 Marek Polacek <polacek@redhat.com>
25090
25091 PR sanitizer/60569
25092 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25093 before accessing it.
25094
25095 2014-03-19 Richard Biener <rguenther@suse.de>
25096
25097 PR lto/59543
25098 * lto-streamer-in.c (input_function): In WPA stage do not drop
25099 debug stmts.
25100
25101 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25102
25103 PR tree-optimization/60559
25104 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25105 with build_zero_cst assignment.
25106
25107 2014-03-18 Kai Tietz <ktietz@redhat.com>
25108
25109 PR rtl-optimization/56356
25110 * sdbout.c (sdbout_parms): Verify that parms'
25111 incoming argument is valid.
25112 (sdbout_reg_parms): Likewise.
25113
25114 2014-03-18 Richard Henderson <rth@redhat.com>
25115
25116 PR target/60562
25117 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25118 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25119 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25120
25121 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25122
25123 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25124 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25125 Italicize plugin event names in description. Explain that
25126 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25127 Remind that no GCC functions should be called after PLUGIN_FINISH.
25128 Explain what pragmas with expansion are.
25129
25130 2014-03-18 Martin Liska <mliska@suse.cz>
25131
25132 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25133 gimple call statement is update.
25134 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25135 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25136
25137 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25138
25139 PR sanitizer/60557
25140 * ubsan.c (ubsan_instrument_unreachable): Call
25141 initialize_sanitizer_builtins.
25142 (ubsan_pass): Likewise.
25143
25144 PR sanitizer/60535
25145 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25146 varpool_finalize_decl instead of rest_of_decl_compilation.
25147
25148 2014-03-18 Richard Biener <rguenther@suse.de>
25149
25150 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25151 by using bitmap_and_compl instead of bitmap_and_compl_into.
25152 (df_rd_transfer_function): Likewise.
25153
25154 2014-03-18 Richard Biener <rguenther@suse.de>
25155
25156 * doc/lto.texi (fresolution): Fix typo.
25157
25158 2014-03-18 Richard Biener <rguenther@suse.de>
25159
25160 * doc/invoke.texi (flto): Update for changes in 4.9.
25161
25162 2014-03-18 Richard Biener <rguenther@suse.de>
25163
25164 * doc/loop.texi: Remove section on the removed lambda framework.
25165 Update loop docs with recent changes in preserving loop structure.
25166
25167 2014-03-18 Richard Biener <rguenther@suse.de>
25168
25169 * doc/lto.texi (-fresolution): Document.
25170
25171 2014-03-18 Richard Biener <rguenther@suse.de>
25172
25173 * doc/contrib.texi: Adjust my name.
25174
25175 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25176
25177 PR ipa/58721
25178 * internal-fn.c: Include diagnostic-core.h.
25179 (expand_BUILTIN_EXPECT): New function.
25180 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25181 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25182 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25183 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25184 IFN_BUILTIN_EXPECT.
25185 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25186 Revert 3 argument __builtin_expect code.
25187 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25188 * gimple-fold.c (gimple_fold_call): Likewise.
25189 * tree.h (fold_builtin_expect): New prototype.
25190 * builtins.c (build_builtin_expect_predicate): Add predictor
25191 argument, if non-NULL, create 3 argument __builtin_expect.
25192 (fold_builtin_expect): No longer static. Add ARG2 argument,
25193 pass it through to build_builtin_expect_predicate.
25194 (fold_builtin_2): Adjust caller.
25195 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25196 * internal-fn.def (BUILTIN_EXPECT): New.
25197
25198 2014-03-18 Tobias Burnus <burnus@net-b.de>
25199
25200 PR ipa/58721
25201 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25202 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25203 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25204
25205 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25206
25207 PR ipa/58721
25208 * predict.c (combine_predictions_for_bb): Fix up formatting.
25209 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25210 fill what it points to if non-NULL.
25211 (tree_predict_by_opcode): Adjust caller, use the predictor.
25212 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25213
25214 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25215
25216 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25217 proper constant for the store mode.
25218
25219 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25220
25221 * symtab.c (change_decl_assembler_name): Fix transparent alias
25222 chain construction.
25223
25224 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25225
25226 * config/aarch64/aarch64.c: Correct the comments about the
25227 aarch64 stack layout.
25228
25229 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25230
25231 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25232 check for GF_OMP_FOR_KIND_FOR.
25233
25234 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25235
25236 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25237 ymm and zmm register names.
25238
25239 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25240
25241 PR target/60516
25242 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25243 note creation for the 2010-08-31 changes.
25244
25245 2014-03-17 Marek Polacek <polacek@redhat.com>
25246
25247 PR middle-end/60534
25248 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25249 as -fno-tree-loop-vectorize.
25250 (expand_omp_simd): Likewise.
25251
25252 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25253
25254 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25255 (eligible_for_call_delay): New prototype.
25256 * config/sparc/sparc.c (tls_call_delay): Rename into...
25257 (eligible_for_call_delay): ...this. Return false if the instruction
25258 cannot be put in the delay slot of a branch.
25259 (eligible_for_restore_insn): Simplify.
25260 (eligible_for_return_delay): Return false if the instruction cannot be
25261 put in the delay slot of a branch and simplify.
25262 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25263 put in the delay slot of a branch.
25264 * config/sparc/sparc.md (fix_ut699): New attribute.
25265 (tls_call_delay): Delete.
25266 (in_call_delay): Reimplement.
25267 (eligible_for_sibcall_delay): Rename into...
25268 (in_sibcall_delay): ...this.
25269 (eligible_for_return_delay): Rename into...
25270 (in_return_delay): ...this.
25271 (in_branch_delay): Reimplement.
25272 (in_uncond_branch_delay): Delete.
25273 (in_annul_branch_delay): Delete.
25274
25275 2014-03-14 Richard Henderson <rth@redhat.com>
25276
25277 PR target/60525
25278 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25279 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25280 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25281 (floathi splitters): Remove.
25282 (float<SWI48x>xf2): New pattern.
25283 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25284 code that tried to handle DImode for 32-bit, but which was excluded
25285 by the pattern's condition. Drop allocation of stack temporary.
25286 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25287 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25288 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25289 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25290 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25291 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25292 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25293 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25294 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25295 (*float<SWI48x><X87MODEF>2_i387): Remove.
25296 (all float _with_temp splitters): Remove.
25297 (*float<SWI48x><MODEF>2_i387): New pattern.
25298 (*float<SWI48><MODEF>2_sse): New pattern.
25299 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25300 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25301
25302 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25303 Marek Polacek <polacek@redhat.com>
25304
25305 PR middle-end/60484
25306 * common.opt (dump_base_name_prefixed): New Variable.
25307 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25308 if x_dump_base_name_prefixed is already set, set it at the end.
25309
25310 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25311
25312 PR rtl-optimization/60508
25313 * lra-constraints.c (get_reload_reg): Add new parameter
25314 in_subreg_p.
25315 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25316 Pass the new parameter values.
25317
25318 2014-03-14 Richard Biener <rguenther@suse.de>
25319
25320 * common.opt: Revert unintented changes from r205065.
25321 * opts.c: Likewise.
25322
25323 2014-03-14 Richard Biener <rguenther@suse.de>
25324
25325 PR middle-end/60518
25326 * cfghooks.c (split_block): Properly adjust all loops the
25327 block was a latch of.
25328
25329 2014-03-14 Martin Jambor <mjambor@suse.cz>
25330
25331 PR lto/60461
25332 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25333 and simplify it.
25334
25335 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25336
25337 PR target/59396
25338 * config/avr/avr.c (avr_set_current_function): Pass function name
25339 through default_strip_name_encoding before sanity checking instead
25340 of skipping the first char of the assembler name.
25341
25342 2014-03-13 Richard Henderson <rth@redhat.com>
25343
25344 PR debug/60438
25345 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25346 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25347 * config/i386/i386-protos.h: Likewise.
25348 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25349 in the expander instead of a splitter.
25350 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25351 any possibility of requiring a memory.
25352 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25353 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25354 (fp branch splitters): Update for ix86_split_fp_branch.
25355 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25356 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25357 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25358 (*fop_<MODEF>_2_i387): Remove f/r alternative.
25359 (*fop_<MODEF>_3_i387): Likewise.
25360 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25361 (splitters for the fop_* register patterns): Remove.
25362 (fscalexf4_i387): Rename from *fscalexf4_i387.
25363 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25364
25365 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25366
25367 PR tree-optimization/59779
25368 * tree-dfa.c (get_ref_base_and_extent): Use double_int
25369 type for bitsize and maxsize instead of HOST_WIDE_INT.
25370
25371 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
25372
25373 PR rtl-optimization/57320
25374 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25375 the CFG after thread_prologue_and_epilogue_insns.
25376
25377 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
25378
25379 PR rtl-optimization/57189
25380 * lra-constraints.c (process_alt_operands): Disfavor spilling
25381 vector pseudos.
25382
25383 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25384
25385 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25386
25387 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25388
25389 PR tree-optimization/59025
25390 PR middle-end/60418
25391 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25392 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25393
25394 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25395
25396 PR target/60486
25397 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25398 calls of avr_out_plus_1.
25399
25400 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25401
25402 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25403 BB's single pred and update the father loop's latch info later.
25404
25405 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25406
25407 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25408 (VEC_M): Likewise.
25409 (VEC_N): Likewise.
25410 (VEC_R): Likewise.
25411 (VEC_base): Likewise.
25412 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25413 registers, we need to swap double words in little endian mode.
25414
25415 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25416 to be a container mode for 128-bit integer operations added in ISA
25417 2.07. Unlike TImode and PTImode, the preferred register set is
25418 the Altivec/VMX registers for the 128-bit operations.
25419
25420 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25421 declarations.
25422 (rs6000_split_128bit_ok_p): Likewise.
25423
25424 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25425 macros for creating ISA 2.07 normal and overloaded builtin
25426 functions with 3 arguments.
25427 (BU_P8V_OVERLOAD_3): Likewise.
25428 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25429 for use as overloaded functions.
25430 (VPERM_1TI_UNS): Likewise.
25431 (VSEL_1TI): Likewise.
25432 (VSEL_1TI_UNS): Likewise.
25433 (ST_INTERNAL_1ti): Likewise.
25434 (LD_INTERNAL_1ti): Likewise.
25435 (XXSEL_1TI): Likewise.
25436 (XXSEL_1TI_UNS): Likewise.
25437 (VPERM_1TI): Likewise.
25438 (VPERM_1TI_UNS): Likewise.
25439 (XXPERMDI_1TI): Likewise.
25440 (SET_1TI): Likewise.
25441 (LXVD2X_V1TI): Likewise.
25442 (STXVD2X_V1TI): Likewise.
25443 (VEC_INIT_V1TI): Likewise.
25444 (VEC_SET_V1TI): Likewise.
25445 (VEC_EXT_V1TI): Likewise.
25446 (EQV_V1TI): Likewise.
25447 (NAND_V1TI): Likewise.
25448 (ORC_V1TI): Likewise.
25449 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25450 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25451 overloaded builtin.
25452 (VADDUQM): Likewise.
25453 (VSUBCUQ): Likewise.
25454 (VADDEUQM): Likewise.
25455 (VADDECUQ): Likewise.
25456 (VSUBEUQM): Likewise.
25457 (VSUBECUQ): Likewise.
25458
25459 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25460 __int128_t and __uint128_t types.
25461 (__uint128_type): Likewise.
25462 (altivec_categorize_keyword): Add support for vector __int128_t,
25463 vector __uint128_t, vector __int128, and vector unsigned __int128
25464 as a container type for TImode operations that need to be done in
25465 VSX/Altivec registers.
25466 (rs6000_macro_to_expand): Likewise.
25467 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25468 to support 128-bit integer instructions vaddcuq, vadduqm,
25469 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25470 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25471
25472 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25473 for V1TImode, and set up preferences to use VSX/Altivec registers.
25474 Setup VSX reload handlers.
25475 (rs6000_debug_reg_global): Likewise.
25476 (rs6000_init_hard_regno_mode_ok): Likewise.
25477 (rs6000_preferred_simd_mode): Likewise.
25478 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25479 (easy_altivec_constant): Likewise.
25480 (output_vec_const_move): Likewise.
25481 (rs6000_expand_vector_set): Convert V1TImode set and extract to
25482 simple move.
25483 (rs6000_expand_vector_extract): Likewise.
25484 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25485 addressing.
25486 (rs6000_const_vec): Add support for V1TImode.
25487 (rs6000_emit_le_vsx_load): Swap double words when loading or
25488 storing TImode/V1TImode.
25489 (rs6000_emit_le_vsx_store): Likewise.
25490 (rs6000_emit_le_vsx_move): Likewise.
25491 (rs6000_emit_move): Add support for V1TImode.
25492 (altivec_expand_ld_builtin): Likewise.
25493 (altivec_expand_st_builtin): Likewise.
25494 (altivec_expand_vec_init_builtin): Likewise.
25495 (altivec_expand_builtin): Likewise.
25496 (rs6000_init_builtins): Add support for V1TImode type. Add
25497 support for ISA 2.07 128-bit integer builtins. Define type names
25498 for the VSX/Altivec vector types.
25499 (altivec_init_builtins): Add support for overloaded vector
25500 functions with V1TImode type.
25501 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25502 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25503 external function.
25504 (rs6000_split_128bit_ok_p): Likewise.
25505 (rs6000_handle_altivec_attribute): Create V1TImode from vector
25506 __int128_t and vector __uint128_t.
25507
25508 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25509 and mode attributes.
25510 (VSX_M): Likewise.
25511 (VSX_M2): Likewise.
25512 (VSm): Likewise.
25513 (VSs): Likewise.
25514 (VSr): Likewise.
25515 (VSv): Likewise.
25516 (VS_scalar): Likewise.
25517 (VS_double): Likewise.
25518 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25519
25520 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25521 we support the ISA 2.07 128-bit integer arithmetic instructions.
25522 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25523 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25524 and TImode types for use with the builtin functions.
25525 (V1TI_type_node): Likewise.
25526 (unsigned_V1TI_type_node): Likewise.
25527 (intTI_type_internal_node): Likewise.
25528 (uintTI_type_internal_node): Likewise.
25529
25530 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25531 128-bit builtin functions.
25532 (UNSPEC_VADDEUQM): Likewise.
25533 (UNSPEC_VADDECUQ): Likewise.
25534 (UNSPEC_VSUBCUQ): Likewise.
25535 (UNSPEC_VSUBEUQM): Likewise.
25536 (UNSPEC_VSUBECUQ): Likewise.
25537 (VM): Add V1TImode to vector mode iterators.
25538 (VM2): Likewise.
25539 (VI_unit): Likewise.
25540 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25541 (altivec_vaddcuq): Likewise.
25542 (altivec_vsubuqm): Likewise.
25543 (altivec_vsubcuq): Likewise.
25544 (altivec_vaddeuqm): Likewise.
25545 (altivec_vaddecuq): Likewise.
25546 (altivec_vsubeuqm): Likewise.
25547 (altivec_vsubecuq): Likewise.
25548
25549 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25550 mode iterators.
25551 (BOOL_128): Likewise.
25552 (BOOL_REGS_OUTPUT): Likewise.
25553 (BOOL_REGS_OP1): Likewise.
25554 (BOOL_REGS_OP2): Likewise.
25555 (BOOL_REGS_UNARY): Likewise.
25556 (BOOL_REGS_AND_CR0): Likewise.
25557
25558 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25559 128-bit integer builtin support.
25560 (vec_vadduqm): Likewise.
25561 (vec_vaddecuq): Likewise.
25562 (vec_vaddeuqm): Likewise.
25563 (vec_vsubecuq): Likewise.
25564 (vec_vsubeuqm): Likewise.
25565 (vec_vsubcuq): Likewise.
25566 (vec_vsubuqm): Likewise.
25567
25568 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25569 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25570 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25571 128-bit integer add/subtract to ISA 2.07.
25572
25573 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25574
25575 * config/arc/arc.c (arc_predicate_delay_insns):
25576 Fix third argument passed to conditionalize_nonjump.
25577
25578 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25579
25580 * config/aarch64/aarch64-builtins.c
25581 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25582 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25583 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25584 instead of __builtin_lfloor.
25585 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25586
25587 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25588
25589 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25590 (tree_ssa_ifcombine_bb_1): New function.
25591 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25592 is an empty forwarder block to then_bb or vice versa and then_bb
25593 and else_bb are effectively swapped.
25594
25595 2014-03-12 Christian Bruel <christian.bruel@st.com>
25596
25597 PR target/60264
25598 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25599 REG_CFA_DEF_CFA note.
25600 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25601 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25602
25603 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25604
25605 PR tree-optimization/60454
25606 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25607
25608 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25609
25610 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25611 Do not define target_cpu_default2 to generic.
25612 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25613 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25614 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25615
25616 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25617 Marc Glisse <marc.glisse@inria.fr>
25618
25619 PR tree-optimization/60502
25620 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25621 instead of build_low_bits_mask.
25622
25623 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25624
25625 PR middle-end/60482
25626 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25627 if there are multiple uses, but op doesn't live on E edge.
25628 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25629 clobber stmts before __builtin_unreachable.
25630
25631 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25632
25633 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25634 hard_frame_pointer_rtx.
25635 * cse.c (cse_insn): Remove volatile check.
25636 * cselib.c (cselib_process_insn): Likewise.
25637 * dse.c (scan_insn): Likewise.
25638
25639 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25640
25641 * config/arc/arc.c (conditionalize_nonjump): New function,
25642 broken out of ...
25643 (arc_ifcvt): ... this.
25644 (arc_predicate_delay_insns): Use it.
25645
25646 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25647
25648 * config/arc/predicates.md (extend_operand): During/after reload,
25649 allow const_int_operand.
25650 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25651 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25652 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25653 to "i".
25654 (umulsi3_highpart_i): Likewise.
25655
25656 2014-03-11 Richard Biener <rguenther@suse.de>
25657
25658 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25659 Add asserts to guard possible wrong-code bugs.
25660
25661 2014-03-11 Richard Biener <rguenther@suse.de>
25662
25663 PR tree-optimization/60429
25664 PR tree-optimization/60485
25665 * tree-ssa-structalias.c (set_union_with_increment): Properly
25666 take into account all fields that overlap the shifted vars.
25667 (do_sd_constraint): Likewise.
25668 (do_ds_constraint): Likewise.
25669 (get_constraint_for_ptr_offset): Likewise.
25670
25671 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25672
25673 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25674 (nios2_compute_frame_layout):
25675 Add calculation of cfun->machine->fp_save_offset.
25676 (nios2_expand_prologue): Correct setting of frame pointer register
25677 in prologue.
25678 (nios2_expand_epilogue): Update recovery of stack pointer from
25679 frame pointer accordingly.
25680 (nios2_initial_elimination_offset): Update calculation of offset
25681 for eliminating to HARD_FRAME_POINTER_REGNUM.
25682
25683 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25684
25685 PR ipa/60457
25686 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25687 cgraph_get_create_node on VAR_DECLs.
25688
25689 2014-03-10 Richard Biener <rguenther@suse.de>
25690
25691 PR middle-end/60474
25692 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25693
25694 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25695
25696 * config/vms/vms.opt (vms_float_format): New variable.
25697
25698 2014-03-08 Tobias Burnus <burnus@net-b.de>
25699
25700 * doc/invoke.texi (-fcilkplus): Update implementation status.
25701
25702 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25703 Richard Biener <rguenther@suse.de>
25704
25705 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25706 consistently accross all TUs.
25707 (run_gcc): Enable -fshort-double automatically at link at link-time
25708 and disallow override.
25709
25710 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25711
25712 PR target/58271
25713 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25714 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25715 if they can't be used.
25716
25717 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25718
25719 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25720 for Solaris 11/x86 ld.
25721 * configure: Regenerate.
25722
25723 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25724
25725 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25726 (LIB_TLS_SPEC): Save as ld_tls_libs.
25727 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25728 (HAVE_AS_IX86_TLSLDM): New test.
25729 * configure, config.in: Regenerate.
25730 * config/i386/i386.c (legitimize_tls_address): Fall back to
25731 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25732 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25733 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25734 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25735
25736 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25737
25738 * common.opt (fira-loop-pressure): Mark as optimization.
25739
25740 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
25741
25742 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
25743 an OpenMP mappable type.
25744
25745 2014-03-06 Matthias Klose <doko@ubuntu.com>
25746
25747 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
25748 MULTILIB_OSDIRNAMES is not defined.
25749
25750 2014-03-06 Jakub Jelinek <jakub@redhat.com>
25751 Meador Inge <meadori@codesourcery.com>
25752
25753 PR target/58595
25754 * config/arm/arm.c (arm_tls_symbol_p): Remove.
25755 (arm_legitimize_address): Call legitimize_tls_address for any
25756 arm_tls_referenced_p expression, handle constant addend. Call it
25757 before testing for !TARGET_ARM.
25758 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
25759
25760 2014-03-06 Richard Biener <rguenther@suse.de>
25761
25762 PR middle-end/60445
25763 PR lto/60424
25764 PR lto/60427
25765 Revert
25766 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25767
25768 * tree-streamer.c (record_common_node): Assert we don't record
25769 nodes with type double.
25770 (preload_common_node): Skip type double, complex double and double
25771 pointer since it is now frontend dependent due to fshort-double option.
25772
25773 2014-03-06 Richard Biener <rguenther@suse.de>
25774
25775 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
25776 or -fno-lto is specified and the linker has full plugin support.
25777 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
25778 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
25779 * lto-wrapper.c (merge_and_complain): Merge compile-time
25780 optimization levels.
25781 (run_gcc): And pass it through to the link options.
25782
25783 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
25784
25785 PR debug/60381
25786 Revert:
25787 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25788 PR debug/59992
25789 * cselib.c (remove_useless_values): Skip to avoid quadratic
25790 behavior if the condition moved from...
25791 (cselib_process_insn): ... here holds.
25792
25793 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25794
25795 PR plugins/59335
25796 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
25797 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
25798
25799 PR plugins/59335
25800 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
25801 (TM_H): Add x86-tune.def.
25802
25803 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25804
25805 * config/aarch64/aarch64.c (generic_tunings):
25806 Use cortexa57_extra_costs.
25807
25808 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25809
25810 PR lto/60404
25811 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
25812 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
25813 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
25814 cost for in_lto_p.
25815
25816 2014-03-04 Heiher <r@hev.cc>
25817
25818 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
25819 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
25820
25821 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
25822
25823 * config/i386/predicates.md (const2356_operand): Change to ...
25824 (const2367_operand): ... this.
25825 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
25826 const2367_operand.
25827 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25828 (*avx512pf_scatterpf<mode>sf): Ditto.
25829 (avx512pf_scatterpf<mode>df): Ditto.
25830 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25831 (*avx512pf_scatterpf<mode>df): Ditto.
25832 * config/i386/i386.c (ix86_expand_builtin): Update
25833 incorrect hint operand error message.
25834
25835 2014-03-04 Richard Biener <rguenther@suse.de>
25836
25837 * lto-section-in.c (lto_get_section_data): Fix const cast.
25838
25839 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25840
25841 * tree-streamer.c (record_common_node): Assert we don't record
25842 nodes with type double.
25843 (preload_common_node): Skip type double, complex double and double
25844 pointer since it is now frontend dependent due to fshort-double option.
25845
25846 2014-03-04 Richard Biener <rguenther@suse.de>
25847
25848 PR lto/60405
25849 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
25850 (lto_input_toplevel_asms): Likewise.
25851 * lto-section-in.c (lto_get_section_data): Instead do it here
25852 for every section.
25853
25854 2014-03-04 Richard Biener <rguenther@suse.de>
25855
25856 PR tree-optimization/60382
25857 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
25858 dead PHIs a reduction.
25859
25860 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
25861
25862 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
25863 hint value.
25864 (_mm_prefetch): Move out of GCC target("sse") pragma.
25865 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
25866 GCC target("prfchw") pragma.
25867 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
25868 for locality <= 2.
25869 * config/i386/i386.c (ix86_option_override_internal): Enable
25870 -mprfchw with -mprefetchwt1.
25871
25872 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25873
25874 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
25875 Mark as varying.
25876
25877 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25878
25879 * opts.h (CL_PCH_IGNORE): Define.
25880 * targhooks.c (option_affects_pch_p):
25881 Return false for options that have CL_PCH_IGNORE set.
25882 * opt-functions.awk: Process PchIgnore.
25883 * doc/options.texi: Document PchIgnore.
25884
25885 * config/arc/arc.opt (misize): Add PchIgnore property.
25886
25887 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25888
25889 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
25890 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
25891 constraint on constants to permit them being loaded into
25892 GENERAL_REGS or BASE_REGS.
25893
25894 2014-03-03 Nick Clifton <nickc@redhat.com>
25895
25896 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
25897 anti-cacnonical alternatives.
25898 (negandhi3_real): New pattern.
25899 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
25900
25901 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25902
25903 * config/avr/avr-mcus.def: Remove atxmega16x1.
25904 * config/avr/avr-tables.opt: Regenerate.
25905 * config/avr/t-multilib: Regenerate.
25906 * doc/avr-mmcu.texi: Regenerate.
25907
25908 2014-03-03 Tobias Grosser <tobias@grosser.es>
25909 Mircea Namolaru <mircea.namolaru@inria.fr>
25910
25911 PR tree-optimization/58028
25912 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
25913 scalar dimensions.
25914
25915 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25916
25917 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
25918 not handled by recognizers.
25919
25920 2014-03-03 Jakub Jelinek <jakub@redhat.com>
25921
25922 PR middle-end/60175
25923 * function.c (expand_function_end): Don't emit
25924 clobber_return_register sequence if clobber_after is a BARRIER.
25925 * cfgexpand.c (construct_exit_block): Append instructions before
25926 return_label to prev_bb.
25927
25928 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25929
25930 * config/rs6000/constraints.md: Document reserved use of "wc".
25931
25932 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25933
25934 PR ipa/60150
25935 * ipa.c (function_and_variable_visibility): When dissolving comdat
25936 group, also set all symbols to local.
25937
25938 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25939
25940 PR ipa/60306
25941
25942 Revert:
25943 2013-12-14 Jan Hubicka <jh@suse.cz>
25944 PR middle-end/58477
25945 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
25946
25947 2014-03-02 Jon Beniston <jon@beniston.com>
25948
25949 PR bootstrap/48230
25950 PR bootstrap/50927
25951 PR bootstrap/52466
25952 PR target/46898
25953 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
25954 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
25955 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
25956 (simple_return, *simple_return): New patterns
25957 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
25958 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
25959
25960 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
25961
25962 * dwarf2out.c (gen_subprogram_die): Tidy.
25963
25964 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
25965
25966 PR target/60071
25967 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
25968 (*mov_t_msb_neg_negc): ... this new insn.
25969
25970 2014-02-28 Jason Merrill <jason@redhat.com>
25971
25972 PR c++/58678
25973 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
25974 function.
25975
25976 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
25977
25978 PR c++/60314
25979 * dwarf2out.c (decltype_auto_die): New static.
25980 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
25981 (gen_type_die_with_usage): Handle 'decltype(auto)'.
25982 (is_cxx_auto): Likewise.
25983
25984 2014-02-28 Ian Bolton <ian.bolton@arm.com>
25985
25986 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
25987 we are not using general regs only.
25988
25989 2014-02-28 Richard Biener <rguenther@suse.de>
25990
25991 PR target/60280
25992 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
25993 previous fix and only allow to remove trivial pre-headers
25994 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
25995 (remove_forwarder_block): Properly update the latch of a loop.
25996
25997 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25998
25999 PR debug/59992
26000 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26001 (cselib_preserved_hash_table): New.
26002 (preserve_constants_and_equivs): Move preserved vals to it.
26003 (cselib_find_slot): Look it up first.
26004 (cselib_init): Initialize it.
26005 (cselib_finish): Release it.
26006 (dump_cselib_table): Dump it.
26007
26008 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26009
26010 PR debug/59992
26011 * cselib.c (remove_useless_values): Skip to avoid quadratic
26012 behavior if the condition moved from...
26013 (cselib_process_insn): ... here holds.
26014
26015 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26016
26017 PR debug/57232
26018 * var-tracking.c (vt_initialize): Apply the same condition to
26019 preserve the CFA base value.
26020
26021 2014-02-28 Joey Ye <joey.ye@arm.com>
26022
26023 PR target/PR60169
26024 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26025 if reload in progress or completed.
26026
26027 2014-02-28 Tobias Burnus <burnus@net-b.de>
26028
26029 PR middle-end/60147
26030 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26031 NAMELIST_DECL.
26032
26033 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26034
26035 * doc/tm.texi.in (Condition Code Status): Update documention for
26036 relative locations of cc0-setter and cc0-user.
26037
26038 2014-02-27 Jeff Law <law@redhat.com>
26039
26040 PR rtl-optimization/52714
26041 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26042 into two independent simple sets, if I3 is a jump, ensure the
26043 pattern we place into I3 is a (set (pc) ...).
26044
26045 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26046 Jeff Law <law@redhat.com>
26047
26048 PR rtl-optimization/49847
26049 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26050 are in different blocks.
26051 * doc/tm.texi (Condition Code Status): Update documention for
26052 relative locations of cc0-setter and cc0-user.
26053
26054 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26055
26056 PR target/59222
26057 * lra.c (lra_emit_add): Check SUBREG too.
26058
26059 2014-02-27 Andreas Schwab <schwab@suse.de>
26060
26061 * config/m68k/m68k.c (m68k_option_override): Disable
26062 -flive-range-shrinkage for classic m68k.
26063 (m68k_override_options_after_change): Likewise.
26064
26065 2014-02-27 Marek Polacek <polacek@redhat.com>
26066
26067 PR middle-end/59223
26068 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26069 -Wmaybe-uninitialized.
26070
26071 2014-02-27 Alan Modra <amodra@gmail.com>
26072
26073 PR target/57936
26074 * reload1.c (emit_input_reload_insns): When reload_override_in,
26075 set old to rl->in_reg when rl->in_reg is a subreg.
26076
26077 2014-02-26 Richard Biener <rguenther@suse.de>
26078
26079 PR bootstrap/60343
26080 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26081
26082 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26083
26084 * common/config/i386/predicates.md (const1256_operand): Remove.
26085 (const2356_operand): New.
26086 (const_1_to_2_operand): Remove.
26087 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26088 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26089 (*avx512pf_gatherpf<mode>sf): Ditto.
26090 (avx512pf_gatherpf<mode>df): Ditto.
26091 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26092 (*avx512pf_gatherpf<mode>df): Ditto.
26093 (avx512pf_scatterpf<mode>sf): Ditto.
26094 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26095 (*avx512pf_scatterpf<mode>sf): Ditto.
26096 (avx512pf_scatterpf<mode>df): Ditto.
26097 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26098 (*avx512pf_scatterpf<mode>df): Ditto.
26099 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26100
26101 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26102
26103 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26104 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26105 (_mm512_mask_testn_epi64_mask): Move to ...
26106 * config/i386/avx512cdintrin.h: Here.
26107 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26108 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26109 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26110 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26111 TARGET_AVX512F from TARGET_AVX512CD.
26112
26113 2014-02-26 Richard Biener <rguenther@suse.de>
26114
26115 PR ipa/60327
26116 * ipa.c (walk_polymorphic_call_targets): Properly guard
26117 call to inline_update_overall_summary.
26118
26119 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26120
26121 PR target/60280
26122 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26123 and latches only if requested. Fix latch if it is removed.
26124 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26125 LOOPS_HAVE_PREHEADERS.
26126
26127 2014-02-25 Andrew Pinski <apinski@cavium.com>
26128
26129 * builtins.c (expand_builtin_thread_pointer): Create a new target
26130 when the target is NULL.
26131
26132 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26133
26134 PR rtl-optimization/60317
26135 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26136 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26137 * lra-assigns.c: Include params.h.
26138 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26139 other reload pseudos considerations.
26140
26141 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26142
26143 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26144 to use canonical form for nor<mode>3.
26145
26146 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26147
26148 PR target/55426
26149 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26150 conversions.
26151
26152 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26153
26154 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26155 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26156 (ix86_handle_option): Handle OPT_mprefetchwt1.
26157 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26158 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26159 PREFETCHWT1 CPUID.
26160 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26161 OPTION_MASK_ISA_PREFETCHWT1.
26162 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26163 (PTA_PREFETCHWT1): New.
26164 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26165 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26166 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26167 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26168 (*prefetch_avx512pf_<mode>_: Change into ...
26169 (*prefetch_prefetchwt1_<mode>: This.
26170 * config/i386/i386.opt (mprefetchwt1): New.
26171 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26172 (_mm_prefetch): Handle intent to write.
26173 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26174
26175 2014-02-25 Richard Biener <rguenther@suse.de>
26176
26177 PR middle-end/60291
26178 * emit-rtl.c (mem_attrs_htab): Remove.
26179 (mem_attrs_htab_hash): Likewise.
26180 (mem_attrs_htab_eq): Likewise.
26181 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26182 (init_emit_once): Do not allocate mem_attrs_htab.
26183
26184 2014-02-25 Richard Biener <rguenther@suse.de>
26185
26186 PR lto/60319
26187 * lto-opts.c (lto_write_options): Output non-explicit conservative
26188 -fwrapv, -fno-trapv and -fno-strict-overflow.
26189 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26190 (run_gcc): And pass them through.
26191
26192 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26193
26194 * sel-sched.c (calculate_new_fences): New parameter ptime.
26195 Calculate it as a maximum over all fence cycles.
26196 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26197 Print the final schedule timing when sched_verbose.
26198
26199 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26200
26201 PR rtl-optimization/60292
26202 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26203 bit fot the fence instruction.
26204
26205 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26206
26207 * calls.h: Fix typo in comment.
26208
26209 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26210
26211 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26212 adjusting offsetable addresses.
26213
26214 2014-02-24 Guozhi Wei <carrot@google.com>
26215
26216 * sparseset.h (sparseset_pop): Fix the wrong index.
26217
26218 2014-02-24 Walter Lee <walt@tilera.com>
26219
26220 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26221 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26222 triplet.
26223 * common/config/tilegx/tilegx-common.c
26224 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26225 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26226 (LINK_SPEC): Ditto.
26227 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26228 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26229 (tilegx_gimplify_va_arg_expr): Handle big endian.
26230 (tilegx_expand_unaligned_load): Ditto.
26231 (tilegx_expand_unaligned_store): Ditto.
26232 (TARGET_RETURN_IN_MSB): New.
26233 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26234 (TARGET_ENDIAN_DEFAULT): New.
26235 (TARGET_BIG_ENDIAN): Handle big endian.
26236 (BYTES_BIG_ENDIAN): Ditto.
26237 (WORDS_BIG_ENDIAN): Ditto.
26238 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26239 (ENDIAN_SPEC): New.
26240 (EXTRA_SPECS): New.
26241 * config/tilegx/tilegx.md (extv): Handle big endian.
26242 (extzv): Ditto.
26243 (insn_st<n>): Ditto.
26244 (insn_st<n>_add<bitsuffix>): Ditto.
26245 (insn_stnt<n>): Ditto.
26246 (insn_stnt<n>_add<bitsuffix>):Ditto.
26247 (vec_interleave_highv8qi): Handle big endian.
26248 (vec_interleave_highv8qi_be): New.
26249 (vec_interleave_highv8qi_le): New.
26250 (insn_v1int_h): Handle big endian.
26251 (vec_interleave_lowv8qi): Handle big endian.
26252 (vec_interleave_lowv8qi_be): New.
26253 (vec_interleave_lowv8qi_le): New.
26254 (insn_v1int_l): Handle big endian.
26255 (vec_interleave_highv4hi): Handle big endian.
26256 (vec_interleave_highv4hi_be): New.
26257 (vec_interleave_highv4hi_le): New.
26258 (insn_v2int_h): Handle big endian.
26259 (vec_interleave_lowv4hi): Handle big endian.
26260 (vec_interleave_lowv4hi_be): New.
26261 (vec_interleave_lowv4hi_le): New.
26262 (insn_v2int_l): Handle big endian.
26263 (vec_interleave_highv2si): Handle big endian.
26264 (vec_interleave_highv2si_be): New.
26265 (vec_interleave_highv2si_le): New.
26266 (insn_v4int_h): Handle big endian.
26267 (vec_interleave_lowv2si): Handle big endian.
26268 (vec_interleave_lowv2si_be): New.
26269 (vec_interleave_lowv2si_le): New.
26270 (insn_v4int_l): Handle big endian.
26271 * config/tilegx/tilegx.opt (mbig-endian): New option.
26272 (mlittle-endian): New option.
26273 * doc/install.texi: Document tilegxbe-linux.
26274 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26275
26276 2014-02-24 Martin Jambor <mjambor@suse.cz>
26277
26278 PR ipa/60266
26279 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26280 there are no parameter descriptors.
26281
26282 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26283
26284 PR rtl-optimization/60268
26285 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26286 initialization to ...
26287 (sched_rgn_init): ... here.
26288 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26289
26290 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26291
26292 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26293 names.
26294
26295 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26296
26297 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26298 definition.
26299
26300 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26301
26302 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26303 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26304
26305 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26306
26307 * config/microblaze/predicates.md: Add cmp_op predicate.
26308 * config/microblaze/microblaze.md: Add branch_compare instruction
26309 which uses cmp_op predicate and emits cmp insn before branch.
26310 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26311 to microblaze_expand_conditional_branch and consolidate logic.
26312 (microblaze_expand_conditional_branch): emit branch_compare
26313 insn instead of handling cmp op separate from branch insn.
26314
26315 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26316
26317 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26318 to permit subregs.
26319
26320 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26321
26322 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26323 define_insn with define_expand and new define_insn
26324 *altivec_lve<VI_char>x_internal.
26325 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26326 and new define_insn *altivec_stve<VI_char>x_internal.
26327 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26328 prototype.
26329 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26330 lve*x built-ins.
26331 (altivec_expand_stvex_be): New function.
26332
26333 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26334
26335 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26336 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26337 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26338 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26339
26340 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26341
26342 PR target/60298
26343 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26344 instead of emit_move_insn.
26345
26346 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26347
26348 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26349 vspltw with vsldoi.
26350 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26351 gen_altivec_vsumsws.
26352
26353 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26354
26355 * config/rs6000/altivec.md (altivec_lvxl): Rename as
26356 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26357 (altivec_lvxl_<mode>): New define_expand incorporating
26358 -maltivec=be semantics where needed.
26359 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26360 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26361 semantics where needed.
26362 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26363 (altivec_stvx_<mode>): New define_expand incorporating
26364 -maltivec=be semantics where needed.
26365 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26366 VM2 iterator instead of V4SI.
26367 (altivec_stvxl_<mode>): New define_expand incorporating
26368 -maltivec=be semantics where needed.
26369 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26370 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26371 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26372 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26373 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26374 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26375 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26376 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26377 ALTIVEC_BUILTIN_STVXL.
26378 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26379 (altivec_expand_stvx_be): Likewise.
26380 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26381 (altivec_expand_lvx_be): Likewise.
26382 (altivec_expand_stvx_be): Likewise.
26383 (altivec_expand_builtin): Add cases for
26384 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26385 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26386 (altivec_init_builtins): Add definitions for
26387 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26388 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26389
26390 2014-02-21 Catherine Moore <clm@codesourcery.com>
26391
26392 * doc/invoke.texi (mvirt, mno-virt): Document.
26393 * config/mips/mips.opt (mvirt): New option.
26394 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26395
26396 2014-02-21 Richard Biener <rguenther@suse.de>
26397
26398 PR tree-optimization/60276
26399 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26400 (STMT_VINFO_MIN_NEG_DIST): New macro.
26401 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26402 STMT_VINFO_MIN_NEG_DIST.
26403 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26404 made for negative dependence distances still hold.
26405
26406 2014-02-21 Richard Biener <rguenther@suse.de>
26407
26408 PR middle-end/60291
26409 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26410 DECL_INITIAL for globals not in the current function context.
26411
26412 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26413
26414 PR tree-optimization/56490
26415 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26416 * tree-ssa-uninit.c: Include params.h.
26417 (compute_control_dep_chain): Add num_calls argument, return false
26418 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26419 num_calls to recursive call.
26420 (find_predicates): Change dep_chain into normal array,
26421 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26422 variable and adjust compute_control_dep_chain caller.
26423 (find_def_preds): Likewise.
26424
26425 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26426
26427 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26428 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26429
26430 2014-02-21 Nick Clifton <nickc@redhat.com>
26431
26432 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26433 (pushhi1): Likewise.
26434 (popqi1): Add mode to pre_dec.
26435 (pophi1): Likewise.
26436
26437 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26438
26439 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26440 mode for mask of V8SFmode permutation.
26441
26442 2014-02-20 Richard Henderson <rth@redhat.com>
26443
26444 PR c++/60272
26445 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26446 a new pseudo for OLDVAL.
26447
26448 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26449
26450 PR target/57896
26451 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26452 gen_reg_rtx if d->testing_p.
26453 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26454 if d->testing_p and we will certainly return true.
26455 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26456 if d->testing_p.
26457
26458 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26459
26460 * emit-rtl.c (gen_reg_rtx): Assert that
26461 crtl->emit.regno_pointer_align_length is non-zero.
26462
26463 2014-02-20 Richard Henderson <rth@redhat.com>
26464
26465 PR c++/60272
26466 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26467 on failure the store back into EXPECT.
26468
26469 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
26470 Sandra Loosemore <sandra@codesourcery.com>
26471
26472 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26473 * config/nios2/nios2.c (nios2_function_profiler): Add
26474 -fPIC (flag_pic == 2) support.
26475 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26476 (nios2_large_offset_p): New function.
26477 (nios2_unspec_reloc_p): Move up position, update to use
26478 nios2_large_offset_p.
26479 (nios2_unspec_address): Remove function.
26480 (nios2_unspec_offset): New function.
26481 (nios2_large_got_address): New function.
26482 (nios2_got_address): Add large offset support.
26483 (nios2_legitimize_tls_address): Update usage of removed and new
26484 functions.
26485 (nios2_symbol_binds_local_p): New function.
26486 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26487 (nios2_legitimize_address): Update to use nios2_large_offset_p.
26488 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26489 (nios2_print_operand): Merge H/L processing, add hiadj/lo
26490 processing for (const (unspec ...)).
26491 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26492
26493 2014-02-20 Richard Biener <rguenther@suse.de>
26494
26495 * tree-cfg.c (replace_uses_by): Mark altered BBs before
26496 doing the substitution.
26497 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26498
26499 2014-02-20 Martin Jambor <mjambor@suse.cz>
26500
26501 PR ipa/55260
26502 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26503 info when checking whether lattices are bottom.
26504
26505 2014-02-20 Richard Biener <rguenther@suse.de>
26506
26507 PR middle-end/60221
26508 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26509 regions at -O0.
26510
26511 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
26512
26513 PR ipa/58555
26514 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26515 parameter specifying the scaling.
26516 (inline_call): Update.
26517 (want_inline_recursively): Guard division by zero.
26518 (recursive_inlining): Update.
26519 * ipa-inline.h (clone_inlined_nodes): Update.
26520
26521 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26522
26523 PR target/60204
26524 * config/i386/i386.c (classify_argument): Pass structures of size
26525 64 bytes or less in register.
26526
26527 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26528 Kirill Yukhin <kirill.yukhin@intel.com>
26529
26530 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26531 (_mm_rcp28_round_ss): Ditto.
26532 (_mm_rsqrt28_round_sd): Ditto.
26533 (_mm_rsqrt28_round_ss): Ditto.
26534 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26535 (_mm_rcp14_round_ss): Ditto.
26536 (_mm_rsqrt14_round_sd): Ditto.
26537 (_mm_rsqrt14_round_ss): Ditto.
26538 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26539 the first input operand, get rid of match_dup.
26540 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26541 attribute to sse.
26542 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26543 Ditto.
26544 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26545 operand as the first input operand, set type attribute.
26546 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26547 Set type attribute.
26548 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26549 operand as the first input operand, set type attribute.
26550
26551 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26552
26553 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26554 bit of zero.
26555
26556 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26557
26558 PR target/60207
26559 * config/i386/i386.c (construct_container): Remove TFmode check
26560 for X86_64_INTEGER_CLASS.
26561
26562 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
26563
26564 PR target/59794
26565 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26566 only when -Wpsabi is enabled.
26567
26568 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26569
26570 PR target/59799
26571 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26572 passing arrays in registers are the same as for structs, so remove the
26573 special case for them.
26574
26575 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26576
26577 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26578 destination type, extract only the valid bits if the source type is not
26579 integral and has a different mode.
26580
26581 2014-02-19 Richard Biener <rguenther@suse.de>
26582
26583 PR ipa/60243
26584 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26585 for all calls.
26586
26587 2014-02-19 Richard Biener <rguenther@suse.de>
26588
26589 PR ipa/60243
26590 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26591 (ipa_modify_call_arguments): Emit an argument load explicitely and
26592 preserve virtual SSA form there and for the replacement call.
26593 Do not update SSA form nor free dominance info.
26594
26595 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26596
26597 * ipa.c (function_and_variable_visibility): Also clear WEAK
26598 flag when disolving COMDAT_GROUP.
26599
26600 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26601
26602 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26603 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26604 not devirtualizing.
26605 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26606 do more sanity checks.
26607 (detect_type_change): Return true when giving up early.
26608 (compute_complex_assign_jump_func): Fix type parameter of
26609 ipa_set_ancestor_jf.
26610 (compute_complex_ancestor_jump_func): Likewise.
26611 (update_jump_functions_after_inlining): Fix updating of
26612 ancestor function.
26613 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26614
26615 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26616
26617 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26618 inline clones when edge disappears.
26619
26620 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26621
26622 PR target/60203
26623 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26624 Split 64-bit moves into 2 patterns. Do not allow the use of
26625 direct move for TDmode in little endian, since the decimal value
26626 has little endian bytes within a word, but the 64-bit pieces are
26627 ordered in a big endian fashion, and normal subreg's of TDmode are
26628 not allowed.
26629 (mov<mode>_64bit_dm): Likewise.
26630 (movtd_64bit_nodm): Likewise.
26631
26632 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26633
26634 PR tree-optimization/60174
26635 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26636 statement of an SSA_NAME that occurs in an abnormal PHI node.
26637
26638 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26639
26640 PR sanitizer/60142
26641 * final.c (SEEN_BB): Remove.
26642 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26643 (final_scan_insn): Don't force_source_line on second
26644 NOTE_INSN_BASIC_BLOCK.
26645
26646 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26647
26648 PR target/60205
26649 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26650 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26651 (type_natural_mode): Warn ABI change when %zmm register is not
26652 available for AVX512F vector value passing.
26653
26654 2014-02-18 Kai Tietz <ktietz@redhat.com>
26655
26656 PR target/60193
26657 * config/i386/i386.c (ix86_expand_prologue): Use value in
26658 rax register as displacement when restoring %r10 or %rax.
26659 Fix wrong offset when restoring both registers.
26660
26661 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26662
26663 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26664 assertion with conditional return.
26665
26666 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26667 Uros Bizjak <ubizjak@gmail.com>
26668
26669 PR driver/60233
26670 * config/i386/driver-i386.c (host_detect_local_cpu): If
26671 YMM state is not saved by the OS, also clear has_f16c. Move
26672 CPUID 0x80000001 handling before YMM state saving checking.
26673
26674 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26675
26676 PR rtl-optimization/58960
26677 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26678 factored out from ...
26679 (sched_init): ... here.
26680 (free_global_sched_pressure_data): New, factored out from ...
26681 (sched_finish): ... here.
26682 * sched-int.h (free_global_sched_pressure_data): Declare.
26683 * sched-rgn.c (nr_regions_initial): New static global.
26684 (haifa_find_rgns): Initialize it.
26685 (schedule_region): Disable sched-pressure for the newly
26686 generated regions.
26687
26688 2014-02-17 Richard Biener <rguenther@suse.de>
26689
26690 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26691 release SSA defs of pattern stmts.
26692
26693 2014-02-17 Richard Biener <rguenther@suse.de>
26694
26695 * tree-inline.c (expand_call_inline): Release the virtual
26696 operand defined by the call we are about to inline.
26697
26698 2014-02-17 Richard Biener <rguenther@suse.de>
26699
26700 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26701
26702 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26703 Ilya Tocar <ilya.tocar@intel.com>
26704
26705 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26706 arguments order in builtin.
26707 (_mm512_permutexvar_epi64): Ditto.
26708 (_mm512_mask_permutexvar_epi64): Ditto
26709 (_mm512_maskz_permutexvar_epi32): Ditto
26710 (_mm512_permutexvar_epi32): Ditto
26711 (_mm512_mask_permutexvar_epi32): Ditto
26712
26713 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26714
26715 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26716 (p8_vmrgow): Likewise.
26717
26718 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26719
26720 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26721 endian targets.
26722
26723 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26724
26725 PR target/60203
26726 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26727 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26728 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26729 using direct move instructions on ISA 2.07. Also adjust
26730 instruction length for 64-bit.
26731 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26732 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26733
26734 2014-02-15 Alan Modra <amodra@gmail.com>
26735
26736 PR target/58675
26737 PR target/57935
26738 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26739 find_replacement on parts of insn rtl that might be reloaded.
26740
26741 2014-02-15 Richard Biener <rguenther@suse.de>
26742
26743 PR tree-optimization/60183
26744 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
26745 (tree_ssa_phiprop): Calculate and free post-dominators.
26746
26747 2014-02-14 Jeff Law <law@redhat.com>
26748
26749 PR rtl-optimization/60131
26750 * ree.c (get_extended_src_reg): New function.
26751 (combine_reaching_defs): Use it rather than assuming location of REG.
26752 (find_and_remove_re): Verify first operand of extension is
26753 a REG before adding the insns to the copy list.
26754
26755 2014-02-14 Roland McGrath <mcgrathr@google.com>
26756
26757 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
26758 * configure: Regenerated.
26759 * config.in: Regenerated.
26760 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
26761 instead of ASM_SHORT.
26762
26763 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
26764 Richard Earnshaw <rearnsha@arm.com>
26765
26766 PR rtl-optimization/59535
26767 * lra-constraints.c (process_alt_operands): Encourage alternative
26768 when unassigned pseudo class is superset of the alternative class.
26769 (inherit_reload_reg): Don't inherit when optimizing for code size.
26770 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
26771 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
26772 modes not less than 4 for Thumb1.
26773
26774 2014-02-14 Kyle McMartin <kyle@redhat.com>
26775
26776 PR pch/60010
26777 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
26778
26779 2014-02-14 Richard Biener <rguenther@suse.de>
26780
26781 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
26782 (get_frame_arg): Drop the assert with langhook types_compatible_p.
26783 Do not strip INDIRECT_REFs.
26784
26785 2014-02-14 Richard Biener <rguenther@suse.de>
26786
26787 PR lto/60179
26788 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
26789 DECL_FUNCTION_SPECIFIC_TARGET.
26790 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
26791 * tree-streamer-out.c (pack_ts_target_option): Remove.
26792 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
26793 (write_ts_function_decl_tree_pointers): Do not stream
26794 DECL_FUNCTION_SPECIFIC_TARGET.
26795 * tree-streamer-in.c (unpack_ts_target_option): Remove.
26796 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
26797 (lto_input_ts_function_decl_tree_pointers): Do not stream
26798 DECL_FUNCTION_SPECIFIC_TARGET.
26799
26800 2014-02-14 Jakub Jelinek <jakub@redhat.com>
26801
26802 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
26803 (get_initial_def_for_induction, vectorizable_induction): Ignore
26804 debug stmts when looking for exit_phi.
26805 (vectorizable_live_operation): Fix up condition.
26806
26807 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26808
26809 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
26810 nreverse() because it changes the content of original tree list.
26811
26812 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26813
26814 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
26815 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
26816
26817 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26818
26819 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
26820 GNU coding standards.
26821
26822 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26823
26824 PR debug/60152
26825 * dwarf2out.c (gen_subprogram_die): Don't call
26826 add_calling_convention_attribute if subr_die is old_die.
26827
26828 2014-02-13 Sharad Singhai <singhai@google.com>
26829
26830 * doc/optinfo.texi: Fix order of nodes.
26831
26832 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
26833
26834 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
26835 operands[2], not operands[3].
26836
26837 2014-02-13 Richard Biener <rguenther@suse.de>
26838
26839 PR bootstrap/59878
26840 * doc/install.texi (ISL): Update recommended version to 0.12.2,
26841 mention the possibility of an in-tree build.
26842 (CLooG): Update recommended version to 0.18.1, mention the
26843 possibility of an in-tree build and clarify that the ISL
26844 bundled with CLooG does not work.
26845
26846 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26847
26848 PR target/43546
26849 * expr.c (compress_float_constant): If x is a hard register,
26850 extend into a pseudo and then move to x.
26851
26852 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
26853
26854 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
26855 caused by bad second argument to warning_at() with -mhotpatch and
26856 nested functions (e.g. with gfortran).
26857
26858 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
26859
26860 * opts.c (option_name): Remove "enabled by default" rider.
26861
26862 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
26863
26864 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
26865
26866 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
26867 Uros Bizjak <ubizjak@gmail.com>
26868
26869 PR target/60151
26870 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
26871 * configure: Regenerated.
26872
26873 2014-02-12 Richard Biener <rguenther@suse.de>
26874
26875 * vec.c (vec_prefix::calculate_allocation): Move as
26876 inline variant to vec.h.
26877 (vec_prefix::calculate_allocation_1): New out-of-line version.
26878 * vec.h (vec_prefix::calculate_allocation_1): Declare.
26879 (vec_prefix::m_has_auto_buf): Rename to ...
26880 (vec_prefix::m_using_auto_storage): ... this.
26881 (vec_prefix::calculate_allocation): Inline the easy cases
26882 and dispatch to calculate_allocation_1 which doesn't need the
26883 prefix address.
26884 (va_heap::reserve): Use gcc_checking_assert.
26885 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
26886 m_using_auto_storage.
26887 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
26888 member and adjust.
26889 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
26890 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
26891 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
26892
26893 2014-02-12 Richard Biener <rguenther@suse.de>
26894
26895 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
26896 when we found a dependence.
26897
26898 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
26899
26900 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
26901 common code...
26902 (maybe_fold_stmt): ... into this new function.
26903 * omp-low.c (lower_omp): Update comment.
26904
26905 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
26906 last use.
26907
26908 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
26909 dereference.
26910
26911 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
26912
26913 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
26914 identifiers in comments.
26915 (cortexa53_extra_costs): Likewise.
26916 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
26917 (cortexa7_extra_costs): Likewise.
26918 (cortexa12_extra_costs): Likewise.
26919 (cortexa15_extra_costs): Likewise.
26920 (v7m_extra_costs): Likewise.
26921
26922 2014-02-12 Richard Biener <rguenther@suse.de>
26923
26924 PR middle-end/60092
26925 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
26926 of posix_memalign being successful.
26927 (lower_stmt): Restrict lowering of posix_memalign to when
26928 -ftree-bit-ccp is enabled.
26929
26930 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26931
26932 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
26933 arg_loc.
26934 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26935
26936 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
26937
26938 PR rtl-optimization/60116
26939 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
26940 other_insn once the combination has been validated.
26941
26942 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
26943
26944 PR lto/59468
26945 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
26946 and wrapper.
26947 * ipa-devirt.c: Include demangle.h
26948 (odr_violation_reported): New static variable.
26949 (add_type_duplicate): Update odr_violations.
26950 (maybe_record_node): Add completep parameter; update it.
26951 (record_target_from_binfo): Add COMPLETEP parameter;
26952 update it as needed.
26953 (possible_polymorphic_call_targets_1): Likewise.
26954 (struct polymorphic_call_target_d): Add nonconstruction_targets;
26955 rename FINAL to COMPLETE.
26956 (record_targets_from_bases): Sanity check we found the binfo;
26957 fix COMPLETEP updating.
26958 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
26959 parameter, fix computing of COMPLETEP.
26960 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
26961 at LTO time do demangling.
26962 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
26963 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
26964 parameter.
26965 (gimple_get_virt_method_for_binfo): Likewise.
26966 * gimple-fold.h (gimple_get_virt_method_for_binfo,
26967 gimple_get_virt_method_for_vtable): Update prototypes.
26968
26969 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
26970
26971 PR target/49008
26972 * genautomata.c (add_presence_absence): Fix typo with
26973 {final_}presence_list.
26974
26975 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26976
26977 PR target/60137
26978 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
26979 for VSX/Altivec vectors that land in GPR registers.
26980
26981 2014-02-11 Richard Henderson <rth@redhat.com>
26982 Jakub Jelinek <jakub@redhat.com>
26983
26984 PR debug/59776
26985 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
26986 around drhs if type conversion to lacc->type is not useless.
26987
26988 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26989
26990 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
26991 tuning struct.
26992 (cortex-a57.cortex-a53): Likewise.
26993 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
26994
26995 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26996
26997 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
26998 arm_restrict_it.
26999
27000 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27001
27002 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27003 add_options_for_arm_vfp3.
27004
27005 2014-02-11 Jeff Law <law@redhat.com>
27006
27007 PR middle-end/54041
27008 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27009 object with an undesirable mode.
27010
27011 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27012
27013 PR libgomp/60107
27014 * config/i386/sol2-9.h: New file.
27015 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27016 *-*-solaris2.9*): Use it.
27017
27018 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27019
27020 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27021 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27022
27023 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27024
27025 * config/microblaze/microblaze.c: Extend mcpu version format
27026
27027 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27028
27029 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27030
27031 2014-02-10 Richard Henderson <rth@redhat.com>
27032
27033 PR target/59927
27034 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27035 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27036 ms-abi vs -mno-accumulate-outgoing-args.
27037 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27038 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27039 respect to ms-abi.
27040
27041 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27042
27043 PR middle-end/60080
27044 * cfgexpand.c (expand_asm_operands): Attach source location to
27045 ASM_INPUT rtx objects.
27046 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27047
27048 2014-02-10 Nick Clifton <nickc@redhat.com>
27049
27050 * config/mn10300/mn10300.c (popcount): New function.
27051 (mn10300_expand_prologue): Include saved registers in stack usage
27052 count.
27053
27054 2014-02-10 Jeff Law <law@redhat.com>
27055
27056 PR middle-end/52306
27057 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27058 when changing the SET_DEST of a prior insn to avoid an input reload.
27059
27060 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27061
27062 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27063 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27064 -mcall-openbsd, or -mcall-linux.
27065 (CC1_ENDIAN_BIG_SPEC): Remove.
27066 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27067 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27068 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27069 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27070 and %cc1_endian_default.
27071 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27072
27073 2014-02-10 Richard Biener <rguenther@suse.de>
27074
27075 PR tree-optimization/60115
27076 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27077 MEM_REF handling. Properly verify that the accesses are not
27078 out of the objects bound.
27079
27080 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27081
27082 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27083 coretex to cortex.
27084
27085 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27086
27087 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27088 proper constants and fix formatting.
27089 (possible_polymorphic_call_targets): Fix formatting.
27090
27091 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27092 Ilya Tocar <ilya.tocar@intel.com>
27093
27094 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27095 (_mm512_loadu_epi32): Renamed into...
27096 (_mm512_loadu_si512): This.
27097 (_mm512_storeu_epi32): Renamed into...
27098 (_mm512_storeu_si512): This.
27099 (_mm512_maskz_ceil_ps): Removed.
27100 (_mm512_maskz_ceil_pd): Ditto.
27101 (_mm512_maskz_floor_ps): Ditto.
27102 (_mm512_maskz_floor_pd): Ditto.
27103 (_mm512_floor_round_ps): Ditto.
27104 (_mm512_floor_round_pd): Ditto.
27105 (_mm512_ceil_round_ps): Ditto.
27106 (_mm512_ceil_round_pd): Ditto.
27107 (_mm512_mask_floor_round_ps): Ditto.
27108 (_mm512_mask_floor_round_pd): Ditto.
27109 (_mm512_mask_ceil_round_ps): Ditto.
27110 (_mm512_mask_ceil_round_pd): Ditto.
27111 (_mm512_maskz_floor_round_ps): Ditto.
27112 (_mm512_maskz_floor_round_pd): Ditto.
27113 (_mm512_maskz_ceil_round_ps): Ditto.
27114 (_mm512_maskz_ceil_round_pd): Ditto.
27115 (_mm512_expand_pd): Ditto.
27116 (_mm512_expand_ps): Ditto.
27117 * config/i386/i386.c (ix86_builtins): Remove
27118 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27119 (bdesc_args): Ditto.
27120 * config/i386/predicates.md (const1256_operand): New.
27121 (const_1_to_2_operand): Ditto.
27122 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27123 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27124 (*avx512pf_gatherpf<mode>sf): Ditto.
27125 (avx512pf_gatherpf<mode>df): Ditto.
27126 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27127 (*avx512pf_gatherpf<mode>df): Ditto.
27128 (avx512pf_scatterpf<mode>sf): Ditto.
27129 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27130 (*avx512pf_scatterpf<mode>sf): Ditto.
27131 (avx512pf_scatterpf<mode>df): Ditto.
27132 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27133 (*avx512pf_scatterpf<mode>df): Ditto.
27134 (avx512f_expand<mode>): Removed.
27135 (<shift_insn><mode>3<mask_name>): Change predicate type.
27136
27137 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27138
27139 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27140 not at the end of datarefs vector use ordered_remove to avoid
27141 reordering datarefs vector.
27142
27143 PR c/59984
27144 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27145 mark local addressable non-static vars as GOVD_PRIVATE
27146 instead of GOVD_LOCAL.
27147 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27148 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27149 than copying them.
27150
27151 PR middle-end/60092
27152 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27153 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27154 assume_aligned or alloc_align attributes.
27155 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27156 arguments. Handle also assume_aligned and alloc_align attributes.
27157 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27158 calls to functions with assume_aligned or alloc_align attributes.
27159 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27160
27161 2014-02-08 Terry Guo <terry.guo@arm.com>
27162
27163 * doc/invoke.texi: Document ARM -march=armv7e-m.
27164
27165 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27166
27167 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27168 flag on __cilkrts_rethrow builtin.
27169
27170 PR ipa/60026
27171 * ipa-cp.c (determine_versionability): Fail at -O0
27172 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27173 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27174
27175 Revert:
27176 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27177
27178 PR ipa/60026
27179 * tree-inline.c (copy_forbidden): Fail for
27180 __attribute__((optimize (0))) functions.
27181
27182 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27183
27184 * varpool.c: Include pointer-set.h.
27185 (varpool_remove_unreferenced_decls): Variables in other partitions
27186 will not be output; be however careful to not lose information
27187 about partitioning.
27188
27189 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27190
27191 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27192 lookup in the vtable constructor.
27193
27194 2014-02-07 Jeff Law <law@redhat.com>
27195
27196 PR target/40977
27197 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27198 define_insn_and_split.
27199
27200 * ipa-inline.c (inline_small_functions): Fix typos.
27201
27202 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27203
27204 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27205 (s390_can_use_return_insn): Declare.
27206 * config/s390/s390.h (EPILOGUE_USES): Define.
27207 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27208 instructions.
27209 (s390_chunkify_start): Handle return JUMP_LABELs.
27210 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27211 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27212 (s390_can_use_return_insn): New functions.
27213 (s390_fix_long_loop_prediction): Handle conditional returns.
27214 (TARGET_SET_UP_BY_PROLOGUE): Define.
27215 * config/s390/s390.md (ANY_RETURN): New code iterator.
27216 (*creturn, *csimple_return, return, simple_return): New patterns.
27217
27218 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27219
27220 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27221 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27222 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27223 REG_CFA_RESTORE list when deciding not to restore a register.
27224
27225 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27226
27227 * config/s390/s390.c: Include tree-pass.h and context.h.
27228 (s390_early_mach): New function, split out from...
27229 (s390_emit_prologue): ...here.
27230 (pass_data_s390_early_mach): New pass structure.
27231 (pass_s390_early_mach): New class.
27232 (s390_option_override): Create and register early_mach pass.
27233 Move to end of file.
27234
27235 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27236
27237 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27238 to match for the exit block.
27239
27240 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27241
27242 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27243 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27244 Reject misaligned operands.
27245
27246 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27247
27248 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27249
27250 2014-02-07 Richard Biener <rguenther@suse.de>
27251
27252 PR middle-end/60092
27253 * gimple-low.c (lower_builtin_posix_memalign): New function.
27254 (lower_stmt): Call it to lower posix_memalign in a way
27255 to make alignment info accessible.
27256
27257 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27258
27259 PR c++/60082
27260 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27261 __builtin_setjmp_receiver.
27262
27263 2014-02-07 Richard Biener <rguenther@suse.de>
27264
27265 PR middle-end/60092
27266 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27267 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27268 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27269 Handle BUILT_IN_POSIX_MEMALIGN.
27270 (find_func_clobbers): Likewise.
27271 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27272 (call_may_clobber_ref_p_1): Likewise.
27273
27274 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27275
27276 PR ipa/59918
27277 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27278 sanity check.
27279
27280 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27281
27282 PR ipa/59469
27283 * lto-cgraph.c (lto_output_node): Use
27284 symtab_get_symbol_partitioning_class.
27285 (lto_output_varpool_node): likewise.
27286 (symtab_get_symbol_partitioning_class): Move here from
27287 lto/lto-partition.c
27288 * cgraph.h (symbol_partitioning_class): Likewise.
27289 (symtab_get_symbol_partitioning_class): Declare.
27290
27291 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27292
27293 * ggc.h (ggc_internal_cleared_alloc): New macro.
27294 * vec.h (vec_safe_copy): Handle memory stats.
27295 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27296 * target-globals.c (save_target_globals): Likewise.
27297
27298 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27299
27300 PR target/60077
27301 * expr.c (emit_move_resolve_push): Export; be bit more selective
27302 on when to clear alias set.
27303 * expr.h (emit_move_resolve_push): Declare.
27304 * function.h (struct function): Add tail_call_marked.
27305 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27306 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27307 * config/i386/i386.md (TImode move expander): De not call
27308 ix86_expand_push.
27309 (FP push expanders): Preserve memory attributes.
27310 * config/i386/sse.md (push<mode>1): Remove.
27311 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27312 (ix86_expand_push): Remove.
27313 * config/i386/mmx.md (push<mode>1): Remove.
27314
27315 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27316
27317 PR rtl-optimization/60030
27318 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27319 lopart with paradoxical subreg before shifting it up by hprec.
27320
27321 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27322
27323 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27324 Remove extra newline at end of file.
27325 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27326 (arm_issue_rate): Handle cortexa57.
27327 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27328 (cortex-a57.cortex-a53): Likewise.
27329
27330 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27331
27332 PR target/59575
27333 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27334 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27335 bitmask.
27336 (arm_expand_prologue): Adjust all callers.
27337 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27338 info, registers also at the lowest numbered registers side. Use
27339 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27340 XEXP.
27341
27342 PR debug/59992
27343 * var-tracking.c (adjust_mems): Before adding a SET to
27344 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27345
27346 2014-02-06 Alan Modra <amodra@gmail.com>
27347
27348 PR target/60032
27349 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27350 change SDmode to DDmode when lra_in_progress.
27351
27352 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27353
27354 PR middle-end/59150
27355 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27356 free_data_ref on the dr first, and before goto again also set dr
27357 to the next dr. For simd_lane_access, free old datarefs[i] before
27358 overwriting it. For get_vectype_for_scalar_type failure, don't
27359 free_data_ref if simd_lane_access.
27360
27361 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27362
27363 PR target/60062
27364 * tree.h (opts_for_fn): New inline function.
27365 (opt_for_fn): Define.
27366 * config/i386/i386.c (ix86_function_regparm): Use
27367 opt_for_fn (decl, optimize) instead of optimize.
27368
27369 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
27370
27371 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27372 for SYMBOL_REF in large memory model.
27373
27374 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27375
27376 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27377 and crypto support.
27378 (cortex-a57): Likewise.
27379 (cortex-a57.cortex-a53): Likewise.
27380
27381 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27382 Kugan Vivekanandarajah <kuganv@linaro.org>
27383
27384 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27385 unaligned_access.
27386 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27387
27388 2014-02-06 Richard Biener <rguenther@suse.de>
27389
27390 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27391 set_loop_copy and initialize_original_copy_tables.
27392
27393 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27394
27395 * config/aarch64/aarch64-simd.md
27396 (aarch64_ashr_simddi): Change QI to SI.
27397
27398 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27399 Jakub Jelinek <jakub@redhat.com>
27400
27401 PR middle-end/60013
27402 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27403 of the dataflow.
27404
27405 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27406
27407 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27408 CODE_FOR_altivec_vpku[hw]um to
27409 CODE_FOR_altivec_vpku[hw]um_direct.
27410 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27411 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27412 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27413 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27414
27415 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27416
27417 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27418 generation for -maltivec=be.
27419 (altivec_vsumsws): Simplify redundant test.
27420
27421 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27422
27423 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27424 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27425 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27426 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27427 gen_altivec_vpkuwum.
27428 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27429 BYTES_BIG_ENDIAN.
27430 (altivec_vpks<VI_char>ss): Likewise.
27431 (altivec_vpks<VI_char>us): Likewise.
27432 (altivec_vpku<VI_char>us): Likewise.
27433 (altivec_vpku<VI_char>um): Likewise.
27434 (altivec_vpku<VI_char>um_direct): New (copy of
27435 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27436 internal use).
27437 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27438 target is little endian and -maltivec=be is not specified.
27439 (*altivec_vupkhs<VU_char>_direct): New (copy of
27440 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27441 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27442 target is little endian and -maltivec=be is not specified.
27443 (*altivec_vupkls<VU_char>_direct): New (copy of
27444 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27445 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27446 little endian and -maltivec=be is not specified.
27447 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27448 little endian and -maltivec=be is not specified.
27449
27450 2014-02-05 Richard Henderson <rth@redhat.com>
27451
27452 PR debug/52727
27453 * combine-stack-adj.c: Revert r206943.
27454 * sched-int.h (struct deps_desc): Add last_args_size.
27455 * sched-deps.c (init_deps): Initialize it.
27456 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27457 contain REG_ARGS_SIZE notes.
27458
27459 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27460
27461 * lto-cgraph.c (asm_nodes_output): Make global.
27462 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27463 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27464 (driver_handle_option): Handle OPT_fwpa.
27465
27466 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27467
27468 PR ipa/59947
27469 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27470 a comment typo and formatting issue. If odr_hash hasn't been
27471 created, return vNULL and set *completep to false.
27472
27473 PR middle-end/57499
27474 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27475 bb with no successors.
27476
27477 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
27478
27479 PR target/59718
27480 * doc/invoke.texi (-march): Clarify documentation for ARM.
27481 (-mtune): Likewise.
27482 (-mcpu): Likewise.
27483
27484 2014-02-05 Richard Biener <rguenther@suse.de>
27485
27486 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27487 when not vectorizing because of too many alias checks.
27488 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27489 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27490
27491 2014-02-05 Nick Clifton <nickc@redhat.com>
27492
27493 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27494 accept extended registers in any mode when compiling for the MN10300.
27495
27496 2014-02-05 Yury Gribov <y.gribov@samsung.com>
27497
27498 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27499 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27500 sanitization attributes.
27501 (can_inline_edge_p): Likewise.
27502 (sanitize_attrs_match_for_inline_p): New function.
27503
27504 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27505
27506 * ipa-prop.c (detect_type_change): Shor circuit testing of
27507 type changes on THIS pointer.
27508
27509 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
27510
27511 PR target/59777
27512 * config/pa/pa.c (legitimize_tls_address): Return original address
27513 if not passed a SYMBOL_REF rtx.
27514 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27515 addresses.
27516 (pa_emit_move_sequence): Simplify TLS source operands.
27517 (pa_legitimate_constant_p): Reject all TLS constants.
27518 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27519 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27520
27521 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27522
27523 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27524 groups when we know they are controlled by LTO.
27525 * varasm.c (default_binds_local_p_1): If object is in other partition,
27526 it will be resolved locally.
27527
27528 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27529
27530 * config/host-linux.c (linux_gt_pch_use_address): Don't
27531 use SSIZE_MAX because it is not always defined.
27532
27533 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27534
27535 PR bootstrap/59913
27536 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27537 threshold for pseudo splitting.
27538 (update_ebb_live_info): Process call argument hard registers and
27539 hard registers from insn definition too.
27540 (max_small_class_regs_num): New constant.
27541 (inherit_in_ebb): Update live hard regs through EBBs. Update
27542 reloads_num only for small register classes. Don't split for
27543 outputs of jumps.
27544
27545 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27546
27547 PR ipa/60058
27548 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27549 is non-null.
27550
27551 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27552
27553 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27554 visibility is safe.
27555
27556 2014-02-04 Marek Polacek <polacek@redhat.com>
27557
27558 * gdbinit.in (pel): Define.
27559
27560 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27561
27562 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27563 behavior.
27564
27565 2014-02-04 Richard Biener <rguenther@suse.de>
27566
27567 PR lto/59723
27568 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27569 in function context local.
27570 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27571 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27572 similar to LTO_imported_decl_ref.
27573
27574 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27575
27576 PR tree-optimization/60002
27577 * cgraphclones.c (build_function_decl_skip_args): Clear
27578 DECL_LANG_SPECIFIC.
27579
27580 PR tree-optimization/60023
27581 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27582 false to gsi_replace.
27583 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27584 has been in some EH region and vec_stmt could throw, add
27585 vec_stmt into the same EH region.
27586 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27587 has no lhs, ignore it.
27588 * internal-fn.c (expand_MASK_LOAD): Likewise.
27589
27590 PR ipa/60026
27591 * tree-inline.c (copy_forbidden): Fail for
27592 __attribute__((optimize (0))) functions.
27593
27594 PR other/58712
27595 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27596 is set, copy one less argument.
27597 (expand_simd_clones): Don't subtract clone_info->inbranch
27598 from simd_clone_struct_alloc argument.
27599
27600 PR rtl-optimization/57915
27601 * recog.c (simplify_while_replacing): If all unary/binary/relational
27602 operation arguments are constant, attempt to simplify those.
27603
27604 PR middle-end/59261
27605 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27606 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27607
27608 2014-02-04 Richard Biener <rguenther@suse.de>
27609
27610 PR tree-optimization/60012
27611 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27612 TBAA disambiguation to all DDRs.
27613
27614 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27615
27616 PR target/59788
27617 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27618 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27619
27620 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27621
27622 PR ipa/59882
27623 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27624
27625 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27626
27627 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27628 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27629
27630 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27631
27632 PR ipa/59831
27633 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27634 to figure out targets of polymorphic calls with known decl.
27635 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27636 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27637 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27638 (get_polymorphic_call_info): ... here.
27639 (get_polymorphic_call_info_from_invariant): New function.
27640
27641 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27642
27643 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27644 lookup via vtable pointer; check for type consistency
27645 and turn inconsitent facts into UNREACHABLE.
27646 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27647 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27648 type inconsistent querries; return UNREACHABLE instead.
27649
27650 2014-02-03 Richard Henderson <rth@twiddle.net>
27651
27652 PR tree-opt/59924
27653 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27654 already processed this node.
27655 (normalize_one_pred_1): Pass along mark_set.
27656 (normalize_one_pred): Create and destroy a pointer_set_t.
27657 (normalize_one_pred_chain): Likewise.
27658
27659 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27660
27661 PR gcov-profile/58602
27662 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27663
27664 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27665
27666 PR ipa/59831
27667 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27668 -fno-devirtualize; try to devirtualize by the knowledge of
27669 virtual table pointer given by aggregate propagation.
27670 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27671 (ipa_print_node_jump_functions): Dump also offset that
27672 is relevant for polymorphic calls.
27673 (determine_known_aggregate_parts): Add arg_type parameter; use it
27674 instead of determining the type from pointer type.
27675 (ipa_compute_jump_functions_for_edge): Update call of
27676 determine_known_aggregate_parts.
27677 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27678 (gimple_get_virt_method_for_binfo): ... here; simplify using
27679 vtable_pointer_value_to_vtable.
27680 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27681 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27682 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27683 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27684 POINTER_PLUS_EXPR.
27685 (vtable_pointer_value_to_binfo): ... here.
27686 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27687
27688 2014-02-03 Teresa Johnson <tejohnson@google.com>
27689
27690 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27691 redef of outer loop index variable.
27692
27693 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27694
27695 PR c++/53017
27696 PR c++/59211
27697 * doc/extend.texi (Function Attributes): Typo.
27698
27699 2014-02-03 Cong Hou <congh@google.com>
27700
27701 PR tree-optimization/60000
27702 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27703 if the vectorized statement is a store. A store statement can only
27704 appear at the end of pattern statements.
27705
27706 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27707
27708 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27709 (ix86_option_override_internal): Default long double to 64-bit for
27710 32-bit Bionic and to 128-bit for 64-bit Bionic.
27711
27712 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27713 TARGET_LONG_DOUBLE_128 is true.
27714 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27715
27716 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27717 (mlong-double-64): Negate -mlong-double-128.
27718 (mlong-double-128): New option.
27719
27720 * config/i386/i386-c.c (ix86_target_macros): Define
27721 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27722
27723 * doc/invoke.texi: Document -mlong-double-128.
27724
27725 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27726
27727 PR rtl-optimization/60024
27728 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27729
27730 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27731
27732 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27733
27734 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27735
27736 PR rtl-optimization/57662
27737 * sel-sched.c (code_motion_path_driver): Do not mark already not
27738 existing blocks in the visiting bitmap.
27739
27740 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27741
27742 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
27743 on the insn being emitted.
27744
27745 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
27746 Will Deacon <will.deacon@arm.com>
27747
27748 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
27749
27750 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27751
27752 * config/arm/arm-tables.opt: Regenerate.
27753
27754 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27755
27756 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
27757 for vector types other than V16QImode.
27758 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
27759 define_expand, and call altivec_expand_vec_perm_le when producing
27760 code with little endian element order.
27761 (*altivec_vperm_<mode>_internal): New insn having previous
27762 behavior of altivec_vperm_<mode>.
27763 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
27764 altivec_expand_vec_perm_le when producing code with little endian
27765 element order.
27766 (*altivec_vperm_<mode>_uns_internal): New insn having previous
27767 behavior of altivec_vperm_<mode>_uns.
27768
27769 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27770
27771 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
27772 (altivec_vsumsws): Add handling for -maltivec=be with a little
27773 endian target.
27774 (altivec_vsumsws_direct): New.
27775 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
27776 gen_altivec_vsumsws.
27777
27778 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27779
27780 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
27781 vtable_pointer_value_to_binfo): New functions.
27782 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
27783 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
27784
27785 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
27786
27787 * config/nios2/nios2.md (load_got_register): Initialize GOT
27788 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
27789 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
27790
27791 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27792
27793 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
27794 preserverd by passthrough, do not propagate the type.
27795
27796 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27797
27798 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
27799 (mips_atomic_assign_expand_fenv): New function.
27800 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27801
27802 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27803
27804 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
27805 (__builtin_mips_set_fcsr): Likewise.
27806 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
27807 MIPS_USI_FTYPE_VOID.
27808 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
27809 (mips16_expand_set_fcsr): Likewise.
27810 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
27811 (mips16_set_fcsr_stub): Likewise.
27812 (mips16_get_fcsr_one_only_stub): New class.
27813 (mips16_set_fcsr_one_only_stub): Likewise.
27814 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
27815 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
27816 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
27817 (hard_float): New availability predicate.
27818 (mips_builtins): Add get_fcsr and set_fcsr.
27819 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
27820 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
27821 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
27822 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
27823 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
27824 patterns.
27825
27826 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27827
27828 * config/mips/mips.c (mips_one_only_stub): New class.
27829 (mips_need_mips16_rdhwr_p): Replace with...
27830 (mips16_rdhwr_stub): ...this new variable.
27831 (mips16_stub_call_address): New function.
27832 (mips16_rdhwr_one_only_stub): New class.
27833 (mips_expand_thread_pointer): Use mips16_stub_call_address.
27834 (mips_output_mips16_rdhwr): Delete.
27835 (mips_finish_stub): New function.
27836 (mips_code_end): Use it to handle rdhwr stubs.
27837
27838 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
27839
27840 PR target/60017
27841 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
27842 when calculating size of integer atomic types.
27843
27844 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
27845
27846 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
27847
27848 2014-02-01 Jakub Jelinek <jakub@redhat.com>
27849
27850 PR tree-optimization/60003
27851 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
27852 * profile.c (branch_prob): Use gimple_call_builtin_p
27853 to check for BUILT_IN_SETJMP_RECEIVER.
27854 * tree-inline.c (copy_bb): Call notice_special_calls.
27855
27856 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
27857
27858 PR bootstrap/59985
27859 * lra-constraints.c (process_alt_operands): Update reload_sum only
27860 on the first pass.
27861
27862 2014-01-31 Richard Henderson <rth@redhat.com>
27863
27864 PR middle-end/60004
27865 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
27866 until after else_eh is processed.
27867
27868 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27869
27870 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
27871 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
27872 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
27873 in smmintrin.h, remove them.
27874 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
27875 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
27876 * config/i386/i386.md (ROUND_SAE): Fix value.
27877 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
27878 (const48_operand): New.
27879 * config/i386/subst.md (round), (round_expand): Use
27880 const_4_or_8_to_11_operand.
27881 (round_saeonly), (round_saeonly_expand): Use const48_operand.
27882
27883 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27884
27885 * config/i386/constraints.md (Yk): Swap meaning with k.
27886 * config/i386/i386.md (movhi_internal): Change Yk to k.
27887 (movqi_internal): Ditto.
27888 (*k<logic><mode>): Ditto.
27889 (*andhi_1): Ditto.
27890 (*andqi_1): Ditto.
27891 (kandn<mode>): Ditto.
27892 (*<code>hi_1): Ditto.
27893 (*<code>qi_1): Ditto.
27894 (kxnor<mode>): Ditto.
27895 (kortestzhi): Ditto.
27896 (kortestchi): Ditto.
27897 (kunpckhi): Ditto.
27898 (*one_cmplhi2_1): Ditto.
27899 (*one_cmplqi2_1): Ditto.
27900 * config/i386/sse.md (): Change k to Yk.
27901 (avx512f_load<mode>_mask): Ditto.
27902 (avx512f_blendm<mode>): Ditto.
27903 (avx512f_store<mode>_mask): Ditto.
27904 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
27905 (avx512f_storedqu<mode>_mask): Ditto.
27906 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
27907 Ditto.
27908 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
27909 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
27910 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
27911 (avx512f_maskcmp<mode>3): Ditto.
27912 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
27913 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
27914 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
27915 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
27916 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
27917 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
27918 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
27919 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
27920 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
27921 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
27922 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
27923 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
27924 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
27925 (vec_extract_lo_<mode>_maskm): Ditto.
27926 (vec_extract_hi_<mode>_maskm): Ditto.
27927 (avx512f_vternlog<mode>_mask): Ditto.
27928 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
27929 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
27930 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
27931 (avx512f_<code>v8div16qi2_mask): Ditto.
27932 (avx512f_<code>v8div16qi2_mask_store): Ditto.
27933 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
27934 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
27935 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
27936 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
27937 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27938 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27939 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27940 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27941 (avx512cd_maskb_vec_dupv8di): Ditto.
27942 (avx512cd_maskw_vec_dupv16si): Ditto.
27943 (avx512f_vpermi2var<mode>3_maskz): Ditto.
27944 (avx512f_vpermi2var<mode>3_mask): Ditto.
27945 (avx512f_vpermi2var<mode>3_mask): Ditto.
27946 (avx512f_vpermt2var<mode>3_maskz): Ditto.
27947 (*avx512f_gathersi<mode>): Ditto.
27948 (*avx512f_gathersi<mode>_2): Ditto.
27949 (*avx512f_gatherdi<mode>): Ditto.
27950 (*avx512f_gatherdi<mode>_2): Ditto.
27951 (*avx512f_scattersi<mode>): Ditto.
27952 (*avx512f_scatterdi<mode>): Ditto.
27953 (avx512f_compress<mode>_mask): Ditto.
27954 (avx512f_compressstore<mode>_mask): Ditto.
27955 (avx512f_expand<mode>_mask): Ditto.
27956 * config/i386/subst.md (mask): Change k to Yk.
27957 (mask_scalar_merge): Ditto.
27958 (sd): Ditto.
27959
27960 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
27961
27962 * doc/extend.texi (Vector Extensions): Document ?: in C++.
27963
27964 2014-01-31 Richard Biener <rguenther@suse.de>
27965
27966 PR middle-end/59990
27967 * builtins.c (fold_builtin_memory_op): Make sure to not
27968 use a floating-point mode or a boolean or enumeral type for
27969 the copy operation.
27970
27971 2014-01-30 DJ Delorie <dj@redhat.com>
27972
27973 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
27974 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
27975 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
27976 whenever main() has an epilogue.
27977
27978 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27979
27980 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
27981 unused variable "field".
27982 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
27983 (vsx_mergeh_<mode>): Likewise.
27984 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
27985 (altivec_vmrghh): Likewise.
27986 (altivec_vmrghw): Likewise.
27987 (altivec_vmrglb): Likewise.
27988 (altivec_vmrglh): Likewise.
27989 (altivec_vmrglw): Likewise.
27990 (altivec_vspltb): Add missing uses.
27991 (altivec_vsplth): Likewise.
27992 (altivec_vspltw): Likewise.
27993 (altivec_vspltsf): Likewise.
27994
27995 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27996
27997 PR target/59923
27998 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
27999 frame related instructions.
28000
28001 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28002
28003 PR rtl-optimization/59959
28004 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28005 any reload of register whose subreg is invalid.
28006
28007 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28008
28009 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28010 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28011 Add missing return type - void.
28012
28013 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28014
28015 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28016 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28017 remove element index adjustment for endian (now handled in vsx.md
28018 and altivec.md).
28019 (altivec_expand_vec_perm_const): Use
28020 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28021 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28022 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28023 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28024 define_expand and a new define_insn *altivec_vspltb_internal;
28025 adjust for -maltivec=be on a little endian target.
28026 (altivec_vspltb_direct): New.
28027 (altivec_vsplth): Divide into a define_expand and a new
28028 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28029 little endian target.
28030 (altivec_vsplth_direct): New.
28031 (altivec_vspltw): Divide into a define_expand and a new
28032 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28033 little endian target.
28034 (altivec_vspltw_direct): New.
28035 (altivec_vspltsf): Divide into a define_expand and a new
28036 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28037 a little endian target.
28038
28039 2014-01-30 Richard Biener <rguenther@suse.de>
28040
28041 PR tree-optimization/59993
28042 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28043 can propagate form the earlier stmt and avoid the transform
28044 when the intermediate result is needed.
28045
28046 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28047
28048 * README.Portability: Fix typo.
28049
28050 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28051
28052 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28053 comparison_operator with ordered_comparison_operator.
28054
28055 2014-01-30 Nick Clifton <nickc@redhat.com>
28056
28057 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28058 Rename to mn10300_store_multiple_regs.
28059 * config/mn10300/mn10300.c: Likewise.
28060 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28061 store_multiple_regs.
28062 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28063 Call mn10300_store_multiple_regs.
28064
28065 2014-01-30 Nick Clifton <nickc@redhat.com>
28066 DJ Delorie <dj@redhat.com>
28067
28068 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28069 %fp 2 to keep registers after it properly word-aligned.
28070 (rl78_alloc_physical_registers_umul): Handle the case where both
28071 input operands are the same.
28072
28073 2014-01-30 Richard Biener <rguenther@suse.de>
28074
28075 PR tree-optimization/59903
28076 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28077 check properly.
28078
28079 2014-01-30 Jason Merrill <jason@redhat.com>
28080
28081 PR c++/59633
28082 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28083
28084 PR c++/59645
28085 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28086
28087 2014-01-30 Richard Biener <rguenther@suse.de>
28088
28089 PR tree-optimization/59951
28090 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28091
28092 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28093
28094 PR target/59784
28095 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28096 SFmode to DFmode case.
28097
28098 2014-01-29 DJ Delorie <dj@redhat.com>
28099
28100 * config/msp430/msp430.opt (-minrt): New.
28101 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28102 if -minrt given.
28103 (ENDFILE_SPEC): Likewise.
28104
28105 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28106
28107 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28108 (estimate_function_body_sizes): Use it.
28109
28110 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28111
28112 PR c++/58561
28113 * dwarf2out.c (is_cxx_auto): New.
28114 (is_base_type): Use it.
28115 (gen_type_die_with_usage): Likewise.
28116
28117 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28118
28119 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28120 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28121 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28122 -maltivec=be with LE targets.
28123 (vsx_mergeh_<mode>): Likewise.
28124 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28125 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28126 (altivec_vmrghb): Replace with define_expand and new
28127 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28128 (altivec_vmrghb_direct): New define_insn.
28129 (altivec_vmrghh): Replace with define_expand and new
28130 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28131 (altivec_vmrghh_direct): New define_insn.
28132 (altivec_vmrghw): Replace with define_expand and new
28133 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28134 (altivec_vmrghw_direct): New define_insn.
28135 (*altivec_vmrghsf): Adjust for endianness.
28136 (altivec_vmrglb): Replace with define_expand and new
28137 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28138 (altivec_vmrglb_direct): New define_insn.
28139 (altivec_vmrglh): Replace with define_expand and new
28140 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28141 (altivec_vmrglh_direct): New define_insn.
28142 (altivec_vmrglw): Replace with define_expand and new
28143 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28144 (altivec_vmrglw_direct): New define_insn.
28145 (*altivec_vmrglsf): Adjust for endianness.
28146 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28147 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28148 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28149 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28150 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28151 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28152 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28153 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28154
28155 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28156
28157 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28158 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28159 whitespace.
28160
28161 2014-01-29 Richard Biener <rguenther@suse.de>
28162
28163 PR tree-optimization/58742
28164 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28165 associate_pointerplus_align.
28166 (associate_pointerplus_diff): New function.
28167 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28168 and associate_pointerplus_diff.
28169
28170 2014-01-29 Richard Biener <rguenther@suse.de>
28171
28172 * lto-streamer.h (LTO_major_version): Bump to 3.
28173 (LTO_minor_version): Reset to 0.
28174
28175 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28176
28177 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28178 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28179 (arm_file_start): Generate correct asm header for armv7ve.
28180 * config/arm/bpabi.h: Add multilib support for armv7ve.
28181 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28182 and cortex-a15 to armv7ve.
28183 * config/arm/t-aprofile: Add multilib support for armv7ve.
28184 * doc/invoke.texi: Document -march=armv7ve.
28185
28186 2014-01-29 Richard Biener <rguenther@suse.de>
28187
28188 PR tree-optimization/58742
28189 * tree-ssa-forwprop.c (associate_plusminus): Return true
28190 if we changed sth, defer EH cleanup to ...
28191 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28192 (simplify_mult): New function.
28193
28194 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28195
28196 PR middle-end/59917
28197 PR tree-optimization/59920
28198 * tree.c (build_common_builtin_nodes): Remove
28199 __builtin_setjmp_dispatcher initialization.
28200 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28201 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28202 instead of gsi_after_labels + manually skipping debug stmts.
28203 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28204 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28205 * tree-inline.c (copy_edges_for_bb): Remove
28206 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28207 argument. Ignore computed_goto_p stmts. Don't call
28208 make_abnormal_goto_edges. If a call might need abnormal edges
28209 for non-local gotos, see if it already has an edge to
28210 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28211 with true argument, don't do anything then, otherwise add
28212 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28213 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28214 caller.
28215 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28216 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28217 (lower_stmt): Don't set data->calls_builtin_setjmp.
28218 (lower_builtin_setjmp): Adjust comment.
28219 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28220 * tree-cfg.c (found_computed_goto): Remove.
28221 (factor_computed_gotos): Remove.
28222 (make_goto_expr_edges): Return bool, true for computed gotos.
28223 Don't call make_abnormal_goto_edges.
28224 (build_gimple_cfg): Don't set found_computed_goto, don't call
28225 factor_computed_gotos.
28226 (computed_goto_p): No longer static.
28227 (make_blocks): Don't set found_computed_goto.
28228 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28229 (make_edges): If make_goto_expr_edges returns true, push bb
28230 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28231 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28232 vector. Record mapping between bbs and OpenMP regions if there
28233 are any, adjust make_gimple_omp_edges caller. Call
28234 handle_abnormal_edges.
28235 (make_abnormal_goto_edges): Remove.
28236 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28237 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28238 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28239 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28240 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28241 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28242 filling *region also set *region_idx to (*region)->entry->index.
28243
28244 PR other/58712
28245 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28246 For REGs set ORIGINAL_REGNO.
28247
28248 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28249
28250 * doc/md.texi: Mention that a target shouldn't implement
28251 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28252 than hi/lo pair.
28253
28254 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28255
28256 PR tree-optimization/59594
28257 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28258 a copy of the datarefs vector rather than the vector itself.
28259
28260 2014-01-28 Jason Merrill <jason@redhat.com>
28261
28262 PR c++/53756
28263 * dwarf2out.c (auto_die): New static.
28264 (gen_type_die_with_usage): Handle C++1y 'auto'.
28265 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28266 on definition.
28267
28268 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28269
28270 PR target/59672
28271 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28272 (SPEC_X32): Likewise.
28273 (SPEC_64): Likewise.
28274 * config/i386/i386.c (ix86_option_override_internal): Turn off
28275 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28276 for TARGET_16BIT.
28277 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28278 * config/i386/i386.h (TARGET_16BIT): New macro.
28279 (TARGET_16BIT_P): Likewise.
28280 * config/i386/i386.opt: Add m16.
28281 * doc/invoke.texi: Document -m16.
28282
28283 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28284
28285 PR preprocessor/59935
28286 * input.c (location_get_source_line): Bail out on when line number
28287 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28288
28289 2014-01-28 Richard Biener <rguenther@suse.de>
28290
28291 PR tree-optimization/58742
28292 * tree-ssa-forwprop.c (associate_plusminus): Handle
28293 pointer subtraction of the form (T)(P + A) - (T)P.
28294
28295 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28296
28297 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28298 at const_int_cost.
28299
28300 2014-01-28 Richard Biener <rguenther@suse.de>
28301
28302 Revert
28303 2014-01-28 Richard Biener <rguenther@suse.de>
28304
28305 PR rtl-optimization/45364
28306 PR rtl-optimization/59890
28307 * var-tracking.c (local_get_addr_clear_given_value): Handle
28308 already cleared slot.
28309 (val_reset): Handle not allocated local_get_addr_cache.
28310 (vt_find_locations): Use post-order on the inverted CFG.
28311
28312 2014-01-28 Richard Biener <rguenther@suse.de>
28313
28314 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28315
28316 2014-01-28 Richard Biener <rguenther@suse.de>
28317
28318 PR rtl-optimization/45364
28319 PR rtl-optimization/59890
28320 * var-tracking.c (local_get_addr_clear_given_value): Handle
28321 already cleared slot.
28322 (val_reset): Handle not allocated local_get_addr_cache.
28323 (vt_find_locations): Use post-order on the inverted CFG.
28324
28325 2014-01-28 Alan Modra <amodra@gmail.com>
28326
28327 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28328 * configure.ac <recursive call for build != host>: Define
28329 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28330 and LD_FOR_BUILD too.
28331 * configure: Regenerate.
28332
28333 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28334
28335 * config/i386/i386.c (get_builtin_code_for_version): Separate
28336 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28337 Broadwell from Haswell.
28338
28339 2014-01-27 Steve Ellcey <sellcey@mips.com>
28340
28341 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28342 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28343 * config/mips/mips.c (mips_option_override): Change setting
28344 of TARGET_DSP.
28345 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28346 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28347 Change from Mask to Var.
28348
28349 2014-01-27 Jeff Law <law@redhat.com>
28350
28351 * ipa-inline.c (inline_small_functions): Fix typo.
28352
28353 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
28354
28355 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28356 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28357 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28358 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28359 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28360 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28361 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28362 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28363 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28364 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28365 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28366 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28367 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28368 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28369 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28370 (_mm512_storeu_epi64): Ditto.
28371 (_mm512_cmpge_epi32_mask): Ditto.
28372 (_mm512_cmpge_epu32_mask): Ditto.
28373 (_mm512_cmpge_epi64_mask): Ditto.
28374 (_mm512_cmpge_epu64_mask): Ditto.
28375 (_mm512_cmple_epi32_mask): Ditto.
28376 (_mm512_cmple_epu32_mask): Ditto.
28377 (_mm512_cmple_epi64_mask): Ditto.
28378 (_mm512_cmple_epu64_mask): Ditto.
28379 (_mm512_cmplt_epi32_mask): Ditto.
28380 (_mm512_cmplt_epu32_mask): Ditto.
28381 (_mm512_cmplt_epi64_mask): Ditto.
28382 (_mm512_cmplt_epu64_mask): Ditto.
28383 (_mm512_cmpneq_epi32_mask): Ditto.
28384 (_mm512_cmpneq_epu32_mask): Ditto.
28385 (_mm512_cmpneq_epi64_mask): Ditto.
28386 (_mm512_cmpneq_epu64_mask): Ditto.
28387 (_mm512_expand_pd): Ditto.
28388 (_mm512_expand_ps): Ditto.
28389 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28390 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28391 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28392 * config/i386/i386.c (ix86_builtins): Add
28393 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28394 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28395 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28396 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28397 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28398 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28399 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28400 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28401 IX86_BUILTIN_PMOVUSQW512_MEM.
28402 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28403 __builtin_ia32_pmovsqd512mem_mask,
28404 __builtin_ia32_pmovqd512mem_mask,
28405 __builtin_ia32_pmovusqw512mem_mask,
28406 __builtin_ia32_pmovsqw512mem_mask,
28407 __builtin_ia32_pmovqw512mem_mask,
28408 __builtin_ia32_pmovusdw512mem_mask,
28409 __builtin_ia32_pmovsdw512mem_mask,
28410 __builtin_ia32_pmovdw512mem_mask,
28411 __builtin_ia32_pmovqb512mem_mask,
28412 __builtin_ia32_pmovusqb512mem_mask,
28413 __builtin_ia32_pmovsqb512mem_mask,
28414 __builtin_ia32_pmovusdb512mem_mask,
28415 __builtin_ia32_pmovsdb512mem_mask,
28416 __builtin_ia32_pmovdb512mem_mask.
28417 (bdesc_args): Add __builtin_ia32_expanddf512,
28418 __builtin_ia32_expandsf512.
28419 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28420 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28421 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28422 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28423 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28424 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28425 (avx512f_<code>v8div16qi2_mask_store): This.
28426 (avx512f_expand<mode>): New.
28427
28428 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28429
28430 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28431 New.
28432 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28433 (_mm512_prefetch_i32scatter_pd): Ditto.
28434 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28435 (_mm512_prefetch_i64scatter_pd): Ditto.
28436 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28437 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28438 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28439 (_mm512_prefetch_i32scatter_ps): Ditto.
28440 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28441 (_mm512_prefetch_i64scatter_ps): Ditto.
28442 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28443 * config/i386/i386-builtin-types.def: Define
28444 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28445 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28446 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28447 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28448 IX86_BUILTIN_SCATTERPFQPD.
28449 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28450 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28451 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28452 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28453 __builtin_ia32_scatterpfqps.
28454 (ix86_expand_builtin): Expand new built-ins.
28455 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28456 fix memory access data type.
28457 (*avx512pf_gatherpf<mode>_mask): Ditto.
28458 (*avx512pf_gatherpf<mode>): Ditto.
28459 (avx512pf_scatterpf<mode>): Ditto.
28460 (*avx512pf_scatterpf<mode>_mask): Ditto.
28461 (*avx512pf_scatterpf<mode>): Ditto.
28462 (GATHER_SCATTER_SF_MEM_MODE): New.
28463 (avx512pf_gatherpf<mode>df): Ditto.
28464 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28465 (*avx512pf_scatterpf<mode>df): Ditto.
28466
28467 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28468
28469 PR bootstrap/59934
28470 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28471 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28472 reached.
28473
28474 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28475
28476 * common/config/arm/arm-common.c
28477 (arm_rewrite_mcpu): Handle multiple names.
28478 * config/arm/arm.h
28479 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28480
28481 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28482
28483 * gimple-builder.h (create_gimple_tmp): Delete.
28484
28485 2014-01-27 Christian Bruel <christian.bruel@st.com>
28486
28487 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28488 words comparisons.
28489
28490 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
28491
28492 * config/pa/pa.md (call): Generate indirect long calls to non-local
28493 functions when outputing 32-bit code.
28494 (call_value): Likewise except for special call to buggy powf function.
28495
28496 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28497 portable runtime and PIC indirect calls.
28498 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28499 and PIC call sequences. Use ldo instead of blr to set return register
28500 in PIC call sequence.
28501
28502 2014-01-25 Walter Lee <walt@tilera.com>
28503
28504 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28505 avoid clobbering a live register.
28506
28507 2014-01-25 Walter Lee <walt@tilera.com>
28508
28509 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28510 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28511 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28512 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28513
28514 2014-01-25 Walter Lee <walt@tilera.com>
28515
28516 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28517 arguments on even registers.
28518 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28519 STACK_BOUNDARY.
28520 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28521 (BIGGEST_ALIGNMENT): Ditto.
28522 (BIGGEST_FIELD_ALIGNMENT): Ditto.
28523
28524 2014-01-25 Walter Lee <walt@tilera.com>
28525
28526 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28527 insns before bundling.
28528 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28529
28530 2014-01-25 Walter Lee <walt@tilera.com>
28531
28532 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28533 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28534 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28535
28536 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28537
28538 * config/mips/constraints.md (kl): Delete.
28539 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28540 define expands, using...
28541 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28542 instructions for MIPS16.
28543 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28544 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28545
28546 2014-01-25 Walter Lee <walt@tilera.com>
28547
28548 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28549 (clzdi2): Ditto.
28550 (ffsdi2): Ditto.
28551
28552 2014-01-25 Walter Lee <walt@tilera.com>
28553
28554 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28555 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28556
28557 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28558
28559 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28560 Handle XOR.
28561
28562 2014-01-25 Jakub Jelinek <jakub@redhat.com>
28563
28564 * print-rtl.c (in_call_function_usage): New var.
28565 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28566 EXPR_LIST mode as mode and not as reg note name.
28567
28568 PR middle-end/59561
28569 * cfgloopmanip.c (copy_loop_info): If
28570 loop->warned_aggressive_loop_optimizations, make sure
28571 the flag is set in target loop too.
28572
28573 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28574
28575 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28576 flag_cilkplus.
28577 * builtins.def: Likewise.
28578 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28579 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28580 * ira.c (ira_setup_eliminable_regset): Likewise.
28581 * omp-low.c (gate_expand_omp): Likewise.
28582 (execute_lower_omp): Likewise.
28583 (diagnose_sb_0): Likewise.
28584 (gate_diagnose_omp_blocks): Likewise.
28585 (simd_clone_clauses_extract): Likewise.
28586 (gate): Likewise.
28587
28588 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28589
28590 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28591 correction for little endian...
28592 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28593 here.
28594
28595 2014-01-24 Jeff Law <law@redhat.com>
28596
28597 PR tree-optimization/59919
28598 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28599 for non-returning calls.
28600
28601 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28602
28603 * common/config/aarch64/aarch64-common.c
28604 (aarch64_rewrite_mcpu): Handle multiple names.
28605 * config/aarch64/aarch64.h
28606 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28607
28608 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28609
28610 * input.c (add_file_to_cache_tab): Handle the case where fopen
28611 returns NULL.
28612
28613 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28614
28615 PR target/59929
28616 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28617 from push operand if code of push isn't PRE_DEC.
28618
28619 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28620
28621 PR target/59909
28622 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28623 -mquad-memory-atomic. Update -mquad-memory documentation to say
28624 it is only used for non-atomic loads/stores.
28625
28626 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28627 -mquad-memory or -mquad-memory-atomic switches.
28628
28629 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28630 -mquad-memory-atomic to ISA 2.07 support.
28631
28632 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28633 to separate support of normal quad word memory operations (ldq, stq)
28634 from the atomic quad word memory operations.
28635
28636 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28637 support to separate non-atomic quad word operations from atomic
28638 quad word operations. Disable non-atomic quad word operations in
28639 little endian mode so that we don't have to swap words after the
28640 load and before the store.
28641 (quad_load_store_p): Add comment about atomic quad word support.
28642 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28643 options printed with -mdebug=reg.
28644
28645 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28646 -mquad-memory-atomic as the test for whether we have quad word
28647 atomic instructions.
28648 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28649 or -mp8-vector are used, allow byte/half-word atomic operations.
28650
28651 * config/rs6000/sync.md (load_lockedti): Insure that the address
28652 is a proper indexed or indirect address for the lqarx instruction.
28653 On little endian systems, swap the hi/lo registers after the lqarx
28654 instruction.
28655 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28656 insure the address is valid for the lqarx instruction.
28657 (store_conditionalti): Insure that the address is a proper indexed
28658 or indirect address for the stqcrx. instruction. On little endian
28659 systems, swap the hi/lo registers before doing the stqcrx.
28660 instruction.
28661 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28662 insure the address is valid for the stqcrx. instruction.
28663
28664 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28665 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28666 type of quad memory support is available.
28667
28668 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28669
28670 PR regression/59915
28671 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28672 there is a danger of looping.
28673
28674 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28675
28676 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28677 force flag_ira_loop_pressure if set via command line.
28678
28679 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28680
28681 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28682 (ashr_simd): New builtin handling DI mode.
28683 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28684 (aarch64_sshr_simddi): New match pattern.
28685 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28686 (vshrd_n_s64): Likewise.
28687 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28688
28689 2014-01-23 Nick Clifton <nickc@redhat.com>
28690
28691 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28692 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28693 favour of mcu specific scripts.
28694 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28695 430x multilibs.
28696
28697 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28698 Alex Velenko <Alex.Velenko@arm.com>
28699
28700 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28701 (vaddv_s16): Likewise.
28702 (vaddv_s32): Likewise.
28703 (vaddv_u8): Likewise.
28704 (vaddv_u16): Likewise.
28705 (vaddv_u32): Likewise.
28706 (vaddvq_s8): Likewise.
28707 (vaddvq_s16): Likewise.
28708 (vaddvq_s32): Likewise.
28709 (vaddvq_s64): Likewise.
28710 (vaddvq_u8): Likewise.
28711 (vaddvq_u16): Likewise.
28712 (vaddvq_u32): Likewise.
28713 (vaddvq_u64): Likewise.
28714 (vaddv_f32): Likewise.
28715 (vaddvq_f32): Likewise.
28716 (vaddvq_f64): Likewise.
28717 (vmaxv_f32): Likewise.
28718 (vmaxv_s8): Likewise.
28719 (vmaxv_s16): Likewise.
28720 (vmaxv_s32): Likewise.
28721 (vmaxv_u8): Likewise.
28722 (vmaxv_u16): Likewise.
28723 (vmaxv_u32): Likewise.
28724 (vmaxvq_f32): Likewise.
28725 (vmaxvq_f64): Likewise.
28726 (vmaxvq_s8): Likewise.
28727 (vmaxvq_s16): Likewise.
28728 (vmaxvq_s32): Likewise.
28729 (vmaxvq_u8): Likewise.
28730 (vmaxvq_u16): Likewise.
28731 (vmaxvq_u32): Likewise.
28732 (vmaxnmv_f32): Likewise.
28733 (vmaxnmvq_f32): Likewise.
28734 (vmaxnmvq_f64): Likewise.
28735 (vminv_f32): Likewise.
28736 (vminv_s8): Likewise.
28737 (vminv_s16): Likewise.
28738 (vminv_s32): Likewise.
28739 (vminv_u8): Likewise.
28740 (vminv_u16): Likewise.
28741 (vminv_u32): Likewise.
28742 (vminvq_f32): Likewise.
28743 (vminvq_f64): Likewise.
28744 (vminvq_s8): Likewise.
28745 (vminvq_s16): Likewise.
28746 (vminvq_s32): Likewise.
28747 (vminvq_u8): Likewise.
28748 (vminvq_u16): Likewise.
28749 (vminvq_u32): Likewise.
28750 (vminnmv_f32): Likewise.
28751 (vminnmvq_f32): Likewise.
28752 (vminnmvq_f64): Likewise.
28753
28754 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28755
28756 * config/aarch64/aarch64-simd.md
28757 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
28758 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
28759 (*aarch64_mul3_elt<mode>): Likewise.
28760 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
28761 (*aarch64_mul3_elt_to_64v2df): Likewise.
28762 (*aarch64_mla_elt<mode>): Likewise.
28763 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28764 (*aarch64_mls_elt<mode>): Likewise.
28765 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28766 (*aarch64_fma4_elt<mode>): Likewise.
28767 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28768 (*aarch64_fma4_elt_to_64v2df): Likewise.
28769 (*aarch64_fnma4_elt<mode>): Likewise.
28770 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28771 (*aarch64_fnma4_elt_to_64v2df): Likewise.
28772 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
28773 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
28774 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28775 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28776 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
28777 (aarch64_sqdmull_lane<mode>_internal): Likewise.
28778 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
28779
28780 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
28781
28782 * config/aarch64/aarch64-simd.md
28783 (aarch64_be_checked_get_lane<mode>): New define_expand.
28784 * config/aarch64/aarch64-simd-builtins.def
28785 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
28786 New builtin definition.
28787 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
28788 Use new safe be builtin.
28789
28790 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28791
28792 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
28793 New define_insn.
28794 (aarch64_be_st1<mode>): Likewise.
28795 (aarch_ld1<VALL:mode>): Define_expand modified.
28796 (aarch_st1<VALL:mode>): Likewise.
28797 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
28798 (UNSPEC_ST1): Likewise.
28799
28800 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
28801
28802 * config/microblaze/microblaze.md: Add trap insn and attribute
28803
28804 2014-01-23 Dodji Seketeli <dodji@redhat.com>
28805
28806 PR preprocessor/58580
28807 * input.h (location_get_source_line): Take an additional line_size
28808 parameter.
28809 (void diagnostics_file_cache_fini): Declare new function.
28810 * input.c (struct fcache): New type.
28811 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
28812 New static constants.
28813 (diagnostic_file_cache_init, total_lines_num)
28814 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
28815 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
28816 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
28817 (get_next_line, read_next_line, goto_next_line, read_line_num):
28818 New static function definitions.
28819 (diagnostic_file_cache_fini): New function.
28820 (location_get_source_line): Take an additional output line_len
28821 parameter. Re-write using lookup_or_add_file_to_cache_tab and
28822 read_line_num.
28823 * diagnostic.c (diagnostic_finish): Call
28824 diagnostic_file_cache_fini.
28825 (adjust_line): Take an additional input parameter for the length
28826 of the line, rather than calculating it with strlen.
28827 (diagnostic_show_locus): Adjust the use of
28828 location_get_source_line and adjust_line with respect to their new
28829 signature. While displaying a line now, do not stop at the first
28830 null byte. Rather, display the zero byte as a space and keep
28831 going until we reach the size of the line.
28832 * Makefile.in: Add vec.o to OBJS-libcommon
28833
28834 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28835 Ilya Tocar <ilya.tocar@intel.com>
28836
28837 * config/i386/avx512fintrin.h (_mm512_kmov): New.
28838 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
28839 (__builtin_ia32_kmov16): Ditto.
28840 * config/i386/i386.md (UNSPEC_KMOV): New.
28841 (kmovw): Ditto.
28842
28843 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28844
28845 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
28846 (_mm512_storeu_si512): Ditto.
28847
28848 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
28849
28850 PR target/52125
28851 * rtl.h (get_referenced_operands): Declare.
28852 * recog.c (get_referenced_operands): New function.
28853 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
28854 operands have been referenced when recording LO_SUM references.
28855
28856 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
28857
28858 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
28859
28860 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28861
28862 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
28863 Enable for generic and recent AMD targets.
28864
28865 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28866
28867 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
28868 ARG_SIZE note when adjustment was eliminated.
28869
28870 2014-01-22 Jeff Law <law@redhat.com>
28871
28872 PR tree-optimization/59597
28873 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
28874 in file. Accept new argument REGISTERING and use it to modify
28875 dump output appropriately.
28876 (register_jump_thread): Corresponding changes.
28877 (mark_threaded_blocks): Reinstate code to cancel unprofitable
28878 thread paths involving joiner blocks. Add code to dump cancelled
28879 jump threading paths.
28880
28881 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
28882
28883 PR rtl-optimization/59477
28884 * lra-constraints.c (inherit_in_ebb): Process call for living hard
28885 regs. Update reloads_num and potential_reload_hard_regs for all insns.
28886
28887 2014-01-22 Tom Tromey <tromey@redhat.com>
28888
28889 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
28890 PARAMS.
28891 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
28892
28893 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28894
28895 PR rtl-optimization/59896
28896 * lra-constraints.c (process_alt_operands): Check unused note for
28897 matched operands of insn with no output reloads.
28898
28899 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
28900
28901 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
28902 (mips_move_from_gpr_cost): Likewise.
28903
28904 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28905
28906 PR rtl-optimization/59858
28907 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
28908 ira_class_hard_regs_num.
28909 (process_alt_operands): Increase reject for dying matched operand.
28910
28911 2014-01-21 Jakub Jelinek <jakub@redhat.com>
28912
28913 PR target/59003
28914 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
28915 smaller than size, perform several stores or loads and stores
28916 at dst + count - size to store or copy all of size bytes, rather
28917 than just last modesize bytes.
28918
28919 2014-01-20 DJ Delorie <dj@redhat.com>
28920
28921 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
28922 that CLOBBERs are REGs before propogating their values.
28923
28924 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
28925
28926 PR middle-end/59789
28927 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
28928 (cgraph_inline_failed_type): New function.
28929 * cgraph.h (DEFCIFCODE): Add type.
28930 (cgraph_inline_failed_type_t): New enum.
28931 (cgraph_inline_failed_type): New prototype.
28932 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
28933 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28934 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
28935 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
28936 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
28937 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
28938 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
28939 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
28940 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
28941 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
28942 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
28943 OPTIMIZATION_MISMATCH.
28944 * tree-inline.c (expand_call_inline): Emit errors during
28945 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
28946
28947 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28948
28949 PR target/59685
28950 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
28951 mode attribute in insn output.
28952
28953 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
28954
28955 * output.h (output_constant): Delete.
28956 * varasm.c (output_constant): Make private.
28957
28958 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
28959
28960 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
28961
28962 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28963
28964 PR middle-end/59860
28965 * tree.h (fold_builtin_strcat): New prototype.
28966 * builtins.c (fold_builtin_strcat): No longer static. Add len
28967 argument, if non-NULL, don't call c_strlen. Optimize
28968 directly into __builtin_memcpy instead of __builtin_strcpy.
28969 (fold_builtin_2): Adjust fold_builtin_strcat caller.
28970 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
28971
28972 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28973
28974 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28975 for SImode_address_operand operands, having only a REG argument.
28976
28977 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
28978
28979 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
28980 loader name using mbig-endian.
28981 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
28982
28983 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28984
28985 * doc/invoke.texi (-march): Clarify documentation for AArch64.
28986 (-mtune): Likewise.
28987 (-mcpu): Likewise.
28988
28989 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
28990
28991 * config/aarch64/aarch64-protos.h
28992 (aarch64_cannot_change_mode_class_ptr): Declare.
28993 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
28994 aarch64_cannot_change_mode_class_ptr): New.
28995 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
28996 backend hook aarch64_cannot_change_mode_class.
28997
28998 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28999
29000 * common/config/aarch64/aarch64-common.c
29001 (aarch64_handle_option): Don't handle any option order logic here.
29002 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29003 selected_cpu, warn on architecture version mismatch.
29004 (aarch64_override_options): Fix parsing order for option strings.
29005
29006 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29007 Iain Sandoe <iain@codesourcery.com>
29008
29009 PR bootstrap/59496
29010 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29011 warning. Amend comment to reflect current functionality.
29012
29013 2014-01-20 Richard Biener <rguenther@suse.de>
29014
29015 PR middle-end/59860
29016 * builtins.c (fold_builtin_strcat): Remove case better handled
29017 by tree-ssa-strlen.c.
29018
29019 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29020
29021 * config/aarch64/aarch64.opt
29022 (mcpu, march, mtune): Make case-insensitive.
29023
29024 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29025
29026 PR target/59880
29027 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29028 if operands[1] is a REG or ZERO_EXTEND of a REG.
29029
29030 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29031
29032 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29033
29034 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29035
29036 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29037 long non-pic millicode calls.
29038
29039 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29040
29041 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29042
29043 2014-01-19 Kito Cheng <kito@0xlab.org>
29044
29045 * builtins.c (expand_movstr): Check movstr expand done or fail.
29046
29047 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29048 H.J. Lu <hongjiu.lu@intel.com>
29049
29050 PR target/59379
29051 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29052 to DImode for zero-extended addresses.
29053
29054 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29055
29056 PR rtl-optimization/57763
29057 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29058 on the new indirect jump_insn and increment LABEL_NUSES (label).
29059
29060 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29061
29062 PR bootstrap/59580
29063 PR bootstrap/59583
29064 * config.gcc (x86_archs): New variable.
29065 (x86_64_archs): Likewise.
29066 (x86_cpus): Likewise.
29067 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29068 --with-arch/--with-cpu= options.
29069 Support --with-arch=/--with-cpu={nehalem,westmere,
29070 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29071
29072 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29073
29074 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29075 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29076
29077 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29078
29079 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29080
29081 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29082
29083 PR target/58944
29084 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29085 clear cpp_get_options (parse_in)->warn_unused_macros for
29086 ix86_target_macros_internal with cpp_define.
29087
29088 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29089
29090 * jump.c (delete_related_insns): Keep (use (insn))s.
29091 * reorg.c (redundant_insn): Check for barriers too.
29092
29093 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29094
29095 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29096
29097 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29098
29099 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29100 call to $$dyncall when TARGET_LONG_CALLS is true.
29101
29102 2014-01-17 Jeff Law <law@redhat.com>
29103
29104 * ree.c (combine_set_extension): Temporarily disable test for
29105 changing number of hard registers.
29106
29107 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29108
29109 PR middle-end/58125
29110 * ipa-inline-analysis.c (inline_free_summary):
29111 Do not free summary of aliases.
29112
29113 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29114
29115 PR middle-end/59706
29116 * gimplify.c (gimplify_expr): Use create_tmp_var
29117 instead of create_tmp_var_raw. If cond doesn't have
29118 integral type, don't add the IFN_ANNOTATE builtin at all.
29119
29120 2014-01-17 Martin Jambor <mjambor@suse.cz>
29121
29122 PR ipa/59736
29123 * ipa-cp.c (prev_edge_clone): New variable.
29124 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29125 Also resize prev_edge_clone vector.
29126 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29127 (ipcp_edge_removal_hook): New function.
29128 (ipcp_driver): Register ipcp_edge_removal_hook.
29129
29130 2014-01-17 Andrew Pinski <apinski@cavium.com>
29131 Steve Ellcey <sellcey@mips.com>
29132
29133 PR target/59462
29134 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29135 of operator mode.
29136
29137 2014-01-17 Jeff Law <law@redhat.com>
29138
29139 PR middle-end/57904
29140 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29141 so that pass_ccp runs first.
29142
29143 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29144
29145 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29146 (ix86_adjust_cost): Use !TARGET_XXX.
29147 (do_reorder_for_imul): Likewise.
29148 (swap_top_of_ready_list): Likewise.
29149 (ix86_sched_reorder): Likewise.
29150
29151 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29152
29153 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29154 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29155 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29156 (intel_memset): New. Duplicate slm_memset.
29157 (intel_cost): New. Duplicate slm_cost.
29158 (m_INTEL): New macro.
29159 (processor_target_table): Add "intel".
29160 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29161 with PROCESSOR_INTEL for "intel".
29162 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29163 PROCESSOR_SILVERMONT.
29164 (ix86_issue_rate): Likewise.
29165 (ix86_adjust_cost): Likewise.
29166 (ia32_multipass_dfa_lookahead): Likewise.
29167 (swap_top_of_ready_list): Likewise.
29168 (ix86_sched_reorder): Likewise.
29169 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29170 instead of TARGET_OPT_AGU.
29171 * config/i386/i386.h (TARGET_INTEL): New.
29172 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29173 (processor_type): Add PROCESSOR_INTEL.
29174 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29175 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29176
29177 2014-01-17 Marek Polacek <polacek@redhat.com>
29178
29179 PR c/58346
29180 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29181 size is zero.
29182
29183 2014-01-17 Richard Biener <rguenther@suse.de>
29184
29185 PR tree-optimization/46590
29186 * opts.c (default_options_table): Add entries for
29187 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29188 all enabled at -O1 but not for -Og.
29189 * common.opt (fbranch-count-reg): Remove Init(1).
29190 (fmove-loop-invariants): Likewise.
29191 (ftree-pta): Likewise.
29192
29193 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29194
29195 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29196 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29197 decls to at least the GCC 4.8 used alignments.
29198
29199 PR fortran/59440
29200 * tree-nested.c (convert_nonlocal_reference_stmt,
29201 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29202 of GIMPLE_BIND stmts, adjust associated decls.
29203
29204 2014-01-17 Richard Biener <rguenther@suse.de>
29205
29206 PR tree-optimization/46590
29207 * vec.h (vec<>::bseach): New member function implementing
29208 binary search according to C89 bsearch.
29209 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29210 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29211 bitmap pointer again. Make accesses_in_loop a flat array.
29212 (mem_ref_obstack): New global.
29213 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29214 (mark_ref_stored): Likewise.
29215 (ref_indep_loop_p_2): Likewise.
29216 (set_ref_stored_in_loop): New helper function.
29217 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29218 (memref_free): Adjust.
29219 (record_mem_ref_loc): Simplify.
29220 (gather_mem_refs_stmt): Adjust.
29221 (sort_locs_in_loop_postorder_cmp): New function.
29222 (analyze_memory_references): Sort accesses_in_loop after
29223 loop postorder number.
29224 (find_ref_loc_in_loop_cmp): New function.
29225 (for_all_locs_in_loop): Find relevant cluster of locs in
29226 accesses_in_loop and iterate without recursion.
29227 (execute_sm): Avoid uninit warning.
29228 (struct ref_always_accessed): Simplify.
29229 (ref_always_accessed::operator ()): Likewise.
29230 (ref_always_accessed_p): Likewise.
29231 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29232 loop postorder numbers here.
29233 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29234 numbers.
29235
29236 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29237
29238 PR c++/57945
29239 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29240 on decls for which assemble_alias has been called.
29241
29242 2014-01-17 Nick Clifton <nickc@redhat.com>
29243
29244 * config/msp430/msp430.opt: (mcpu): New option.
29245 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29246 (msp430_option_override): Parse target_cpu. If the MCU name
29247 matches a generic string, clear target_mcu.
29248 (msp430_attr): Allow numeric interrupt values up to 63.
29249 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29250 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29251 option.
29252 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29253 Add mcpu matches.
29254 * config/msp430/msp430.md (popm): Use %J rather than %I.
29255 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29256 (addhi_cy_i): Use immediate_operand for operand 2.
29257 * doc/invoke.texi: Document -mcpu option.
29258
29259 2014-01-17 Richard Biener <rguenther@suse.de>
29260
29261 PR rtl-optimization/38518
29262 * df.h (df_analyze_loop): Declare.
29263 * df-core.c: Include cfgloop.h.
29264 (df_analyze_1): Split out main part of df_analyze.
29265 (df_analyze): Adjust.
29266 (loop_inverted_post_order_compute): New function.
29267 (loop_post_order_compute): Likewise.
29268 (df_analyze_loop): New function avoiding whole-function
29269 postorder computes.
29270 * loop-invariant.c (find_defs): Use df_analyze_loop.
29271 (find_invariants): Adjust.
29272 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29273
29274 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29275
29276 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29277 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29278
29279 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29280
29281 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29282 traversal when removing references.
29283
29284 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29285
29286 PR ipa/59775
29287 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29288
29289 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29290
29291 PR middle-end/56791
29292 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29293 pushing a reload for an autoinc when we had previously reloaded an
29294 inner part of the address.
29295
29296 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29297
29298 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29299 field.
29300 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29301 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29302 when not giving up or versioning for alias only because of
29303 loop->safelen.
29304 (vect_analyze_data_ref_dependences): Set to true.
29305 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29306 is a GIMPLE_PHI.
29307 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29308 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29309 to the condition.
29310
29311 PR middle-end/58344
29312 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29313
29314 PR target/59839
29315 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29316 operand 0 predicate for gathers, use a new pseudo as subtarget.
29317
29318 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29319
29320 PR middle-end/59609
29321 * lra-constraints.c (process_alt_operands): Add printing debug info.
29322 Check absence of input/output reloads for matched operands too.
29323
29324 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29325
29326 PR rtl-optimization/59835
29327 * ira.c (ira_init_register_move_cost): Increase cost for
29328 impossible modes.
29329
29330 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29331
29332 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29333
29334 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29335
29336 PR target/59780
29337 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29338 non-register objects. Use gen_(high/low)part more consistently.
29339 Fix assertions.
29340
29341 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29342
29343 PR target/59844
29344 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29345 endian support, remove tests for WORDS_BIG_ENDIAN.
29346 (p8_mfvsrd_3_<mode>): Likewise.
29347 (reload_gpr_from_vsx<mode>): Likewise.
29348 (reload_gpr_from_vsxsf): Likewise.
29349 (p8_mfvsrd_4_disf): Likewise.
29350
29351 2014-01-16 Richard Biener <rguenther@suse.de>
29352
29353 PR rtl-optimization/46590
29354 * lcm.c (compute_antinout_edge): Use postorder iteration.
29355 (compute_laterin): Use inverted postorder iteration.
29356
29357 2014-01-16 Nick Clifton <nickc@redhat.com>
29358
29359 PR middle-end/28865
29360 * varasm.c (output_constant): Return the number of bytes actually
29361 emitted.
29362 (output_constructor_array_range): Update the field size with the
29363 number of bytes emitted by output_constant.
29364 (output_constructor_regular_field): Likewise. Also do not
29365 complain if the total number of bytes emitted is now greater
29366 than the expected fieldpos.
29367 * output.h (output_constant): Update prototype and descriptive comment.
29368
29369 2014-01-16 Marek Polacek <polacek@redhat.com>
29370
29371 PR middle-end/59827
29372 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29373 it is error_mark_node.
29374
29375 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
29376
29377 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29378 VALID_AVX256_REG_OR_OI_MODE.
29379
29380 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29381
29382 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29383 current procedure should be profiled.
29384
29385 2014-01-15 Andrew Pinski <apinski@cavium.com>
29386
29387 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29388 of moving from/to the STACK_REG register class.
29389
29390 2014-01-15 Richard Henderson <rth@redhat.com>
29391
29392 PR debug/54694
29393 * reginfo.c (global_regs_decl): Globalize.
29394 * rtl.h (global_regs_decl): Declare.
29395 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29396 reserved via global_regs.
29397
29398 2014-01-15 Teresa Johnson <tejohnson@google.com>
29399
29400 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29401
29402 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29403
29404 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29405 and vmulosh rather than call gen_vec_widen_smult_*.
29406 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29407 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29408 (vec_widen_smult_even_v16qi): Likewise.
29409 (vec_widen_umult_even_v8hi): Likewise.
29410 (vec_widen_smult_even_v8hi): Likewise.
29411 (vec_widen_umult_odd_v16qi): Likewise.
29412 (vec_widen_smult_odd_v16qi): Likewise.
29413 (vec_widen_umult_odd_v8hi): Likewise.
29414 (vec_widen_smult_odd_v8hi): Likewise.
29415 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29416 vmuloub rather than call gen_vec_widen_umult_*.
29417 (vec_widen_umult_lo_v16qi): Likewise.
29418 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29419 vmulosb rather than call gen_vec_widen_smult_*.
29420 (vec_widen_smult_lo_v16qi): Likewise.
29421 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29422 rather than call gen_vec_widen_umult_*.
29423 (vec_widen_umult_lo_v8hi): Likewise.
29424 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29425 rather than call gen_vec_widen_smult_*.
29426 (vec_widen_smult_lo_v8hi): Likewise.
29427
29428 2014-01-15 Jeff Law <law@redhat.com>
29429
29430 PR tree-optimization/59747
29431 * ree.c (find_and_remove_re): Properly handle case where a second
29432 eliminated extension requires widening a copy created for elimination
29433 of a prior extension.
29434 (combine_set_extension): Ensure that the number of hard regs needed
29435 for a destination register does not change when we widen it.
29436
29437 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29438
29439 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29440 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29441 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29442 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29443 (avr-*-rtems*): Likewise.
29444 (bfin*-rtems*): Likewise.
29445 (moxie-*-rtems*): Likewise.
29446 (h8300-*-rtems*): Likewise.
29447 (i[34567]86-*-rtems*): Likewise.
29448 (lm32-*-rtems*): Likewise.
29449 (m32r-*-rtems*): Likewise.
29450 (m68k-*-rtems*): Likewise.
29451 (microblaze*-*-rtems*): Likewise.
29452 (mips*-*-rtems*): Likewise.
29453 (powerpc-*-rtems*): Likewise.
29454 (sh-*-rtems*): Likewise.
29455 (sparc-*-rtems*): Likewise.
29456 (sparc64-*-rtems*): Likewise.
29457 (v850-*-rtems*): Likewise.
29458 (m32c-*-rtems*): Likewise.
29459
29460 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29461
29462 PR rtl-optimization/59511
29463 * ira.c (ira_init_register_move_cost): Use memory costs for some
29464 cases of register move cost calculations.
29465 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29466 instead of BB frequency.
29467 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29468 * lra-assigns.c (find_hard_regno_for): Ditto.
29469
29470 2014-01-15 Richard Biener <rguenther@suse.de>
29471
29472 PR tree-optimization/59822
29473 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29474 (vectorizable_load): Use it to hoist defs of uses of invariant
29475 loads out of the loop.
29476
29477 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
29478 Kugan Vivekanandarajah <kuganv@linaro.org>
29479
29480 PR target/59695
29481 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29482 truncation.
29483
29484 2014-01-15 Richard Biener <rguenther@suse.de>
29485
29486 PR rtl-optimization/59802
29487 * lcm.c (compute_available): Use inverted postorder to seed
29488 the initial worklist.
29489
29490 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29491
29492 PR target/59803
29493 * config/s390/s390.c (s390_preferred_reload_class): Don't return
29494 ADDR_REGS for invalid symrefs in non-PIC code.
29495
29496 2014-01-15 Jakub Jelinek <jakub@redhat.com>
29497
29498 PR other/58712
29499 * builtins.c (determine_block_size): Initialize *probable_max_size
29500 even if len_rtx is CONST_INT.
29501
29502 2014-01-14 Andrew Pinski <apinski@cavium.com>
29503
29504 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29505 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29506 (cortexa53_tunings): Likewise.
29507 (aarch64_sched_issue_rate): New function.
29508 (TARGET_SCHED_ISSUE_RATE): Define.
29509
29510 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29511
29512 * ira-costs.c (find_costs_and_classes): Add missed
29513 ira_init_register_move_cost_if_necessary.
29514
29515 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29516
29517 PR target/59787
29518 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29519
29520 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
29521
29522 PR target/59794
29523 * config/i386/i386.c (type_natural_mode): Add a bool parameter
29524 to indicate if type is used for function return value. Warn ABI
29525 change if the vector mode isn't available for function return value.
29526 (ix86_function_arg_advance): Pass false to type_natural_mode.
29527 (ix86_function_arg): Likewise.
29528 (ix86_gimplify_va_arg): Likewise.
29529 (function_arg_32): Don't warn ABI change.
29530 (ix86_function_value): Pass true to type_natural_mode.
29531 (ix86_return_in_memory): Likewise.
29532 (ix86_struct_value_rtx): Removed.
29533 (TARGET_STRUCT_VALUE_RTX): Likewise.
29534
29535 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29536
29537 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29538 converting a conditional jump into a conditional return.
29539
29540 2014-01-14 Richard Biener <rguenther@suse.de>
29541
29542 PR tree-optimization/58921
29543 PR tree-optimization/59006
29544 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29545 hoisting invariant stmts.
29546 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29547 invariant loads on the preheader edge if possible.
29548
29549 2014-01-14 Joey Ye <joey.ye@arm.com>
29550
29551 * doc/plugin.texi (Building GCC plugins): Update to C++.
29552
29553 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29554
29555 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29556 (_mm_rcp28_round_ss): Ditto.
29557 (_mm_rsqrt28_round_sd): Ditto.
29558 (_mm_rsqrt28_round_ss): Ditto.
29559 (_mm_rcp28_sd): Ditto.
29560 (_mm_rcp28_ss): Ditto.
29561 (_mm_rsqrt28_sd): Ditto.
29562 (_mm_rsqrt28_ss): Ditto.
29563 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29564 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29565 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29566 (IX86_BUILTIN_RCP28SD): Ditto.
29567 (IX86_BUILTIN_RCP28SS): Ditto.
29568 (IX86_BUILTIN_RSQRT28SD): Ditto.
29569 (IX86_BUILTIN_RSQRT28SS): Ditto.
29570 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29571 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29572 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29573 (ix86_expand_special_args_builtin): Expand new FTYPE.
29574 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29575 (srcp14<mode>): Make insn unary.
29576 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29577 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29578 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29579 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29580 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29581 Fix rounding: make it SAE only.
29582 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29583 Ditto.
29584 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29585 Ditto.
29586 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29587 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29588 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29589 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29590 (round_saeonly_mask_scalar_operand4): Ditto.
29591 (round_saeonly_mask_scalar_op3): Ditto.
29592 (round_saeonly_mask_scalar_op4): Ditto.
29593
29594 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29595
29596 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29597 Implement -maltivec=be for vec_insert and vec_extract.
29598
29599 2014-01-10 DJ Delorie <dj@redhat.com>
29600
29601 * config/msp430/msp430.md (call_internal): Don't allow memory
29602 references with SP as the base register.
29603 (call_value_internal): Likewise.
29604 * config/msp430/constraints.md (Yc): New. For memory references
29605 that don't use SP as a base register.
29606
29607 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29608 "an integer without a # prefix"
29609 * config/msp430/msp430.md (epilogue_helper): Use it.
29610
29611 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29612
29613 PR target/59617
29614 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29615 AVX512F gather builtins.
29616 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29617 on gather decls with INTEGER_TYPE masktype.
29618 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29619 directly into the builtin rather than hoisting it before loop.
29620
29621 PR tree-optimization/59387
29622 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29623 (scev_const_prop): If folded_casts and type has undefined overflow,
29624 use force_gimple_operand instead of force_gimple_operand_gsi and
29625 for each added stmt if it is assign with
29626 arith_code_with_undefined_signed_overflow, call
29627 rewrite_to_defined_overflow.
29628 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29629 gimple-fold.h instead.
29630 (arith_code_with_undefined_signed_overflow,
29631 rewrite_to_defined_overflow): Moved to ...
29632 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29633 rewrite_to_defined_overflow): ... here. No longer static.
29634 Include gimplify-me.h.
29635 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29636 rewrite_to_defined_overflow): New prototypes.
29637
29638 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29639
29640 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29641
29642 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29643
29644 * builtins.c (get_object_alignment_2): Minor tweak.
29645 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29646
29647 2014-01-13 Christian Bruel <christian.bruel@st.com>
29648
29649 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29650 optimized non constant lengths.
29651
29652 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29653
29654 PR libgomp/59194
29655 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29656 load as __atomic_load_N if possible.
29657
29658 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29659
29660 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29661 target parameter.
29662 (rs6000_expand_builtin): Adjust call.
29663
29664 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29665
29666 PR target/58115
29667 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29668 * config/rs6000/rs6000.c: Include target-globals.h.
29669 (rs6000_set_current_function): Instead of doing target_reinit
29670 unconditionally, use save_target_globals_default_opts and
29671 restore_target_globals.
29672
29673 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29674 FPSCR.
29675 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29676 (rs6000_expand_builtin): Handle mffs and mtfsf.
29677 (rs6000_init_builtins): Define mffs and mtfsf.
29678 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29679 (rs6000_mffs): New pattern.
29680 (rs6000_mtfsf): New pattern.
29681
29682 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29683
29684 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29685 Start narrowing with START. Apply candidate-use pair
29686 and check overall cost in narrowing.
29687 (iv_ca_prune): Pass new argument.
29688
29689 2014-01-10 Jeff Law <law@redhat.com>
29690
29691 PR middle-end/59743
29692 * ree.c (combine_reaching_defs): Ensure the defining statement
29693 occurs before the extension when optimizing extensions with
29694 different source and destination hard registers.
29695
29696 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29697
29698 PR ipa/58585
29699 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29700 vtables into the type inheritance graph.
29701
29702 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29703
29704 PR rtl-optimization/59754
29705 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29706 modes in the REGNO != REGNO case.
29707
29708 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29709
29710 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29711
29712 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29713
29714 PR tree-optimization/59745
29715 * tree-predcom.c (tree_predictive_commoning_loop): Call
29716 free_affine_expand_cache if giving up because components is NULL.
29717
29718 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29719 GC in payload of target_globals struct instead of allocating them on
29720 the heap and the larger structs separately using GC.
29721 * target-globals.h (struct target_globals): Make regs, hard_regs,
29722 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29723 of GTY((skip)) and change type to void *.
29724 (reset_target_globals): Cast loads from those fields to corresponding
29725 types.
29726
29727 2014-01-10 Steve Ellcey <sellcey@mips.com>
29728
29729 PR plugins/59335
29730 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29731 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29732 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29733
29734 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29735
29736 PR target/59744
29737 * aarch64-modes.def (CC_Zmode): New flags mode.
29738 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
29739 represents an equality.
29740 (aarch64_get_condition_code): Handle CC_Zmode.
29741 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
29742
29743 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29744
29745 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
29746 extraction in good case.
29747
29748 2014-01-10 Richard Biener <rguenther@suse.de>
29749
29750 PR tree-optimization/59374
29751 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
29752 checking after SLP discovery. Mark stmts not participating
29753 in any SLP instance properly.
29754
29755 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29756
29757 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
29758 when handling a SET rtx.
29759
29760 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29761
29762 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
29763 (cortex-a57): Likewise.
29764 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
29765
29766 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29767
29768 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
29769 non-iwmmxt builtins.
29770
29771 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29772
29773 PR ipa/58252
29774 PR ipa/59226
29775 * ipa-devirt.c record_target_from_binfo): Take as argument
29776 stack of binfos and lookup matching one for virtual inheritance.
29777 (possible_polymorphic_call_targets_1): Update.
29778
29779 2014-01-10 Huacai Chen <chenhc@lemote.com>
29780
29781 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
29782 kernel strings for Loongson-2E/2F/3A.
29783
29784 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29785
29786 PR middle-end/59670
29787 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
29788 is_gimple_call before calling gimple_call_internal_p.
29789
29790 2014-01-09 Steve Ellcey <sellcey@mips.com>
29791
29792 * Makefile.in (TREE_FLOW_H): Remove.
29793 (TREE_SSA_H): Add file names from tree-flow.h.
29794 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
29795 * tree.h: Remove tree-flow.h reference.
29796 * hash-table.h: Remove tree-flow.h reference.
29797 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
29798 reference with tree-ssa-loop.h.
29799
29800 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29801
29802 * doc/invoke.texi: Add -maltivec={be,le} options, and document
29803 default element-order behavior for -maltivec.
29804 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
29805 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
29806 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
29807 when targeting big endian, at least for now.
29808 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
29809
29810 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29811
29812 PR middle-end/47735
29813 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
29814 var satisfies use_register_for_decl, just take into account type
29815 alignment, rather than decl alignment.
29816
29817 PR tree-optimization/59622
29818 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
29819 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
29820 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
29821 Don't devirtualize for inplace at all. For targets.length () == 1,
29822 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
29823
29824 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29825
29826 * config/i386/i386.md (cpu): Remove the unused btver1.
29827
29828 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29829
29830 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
29831
29832 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29833
29834 PR target/58115
29835 * tree-core.h (struct target_globals): New forward declaration.
29836 (struct tree_target_option): Add globals field.
29837 * tree.h (TREE_TARGET_GLOBALS): Define.
29838 (prepare_target_option_nodes_for_pch): New prototype.
29839 * target-globals.h (struct target_globals): Define even if
29840 !SWITCHABLE_TARGET.
29841 * tree.c (prepare_target_option_node_for_pch,
29842 prepare_target_option_nodes_for_pch): New functions.
29843 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
29844 * config/i386/i386.c: Include target-globals.h.
29845 (ix86_set_current_function): Instead of doing target_reinit
29846 unconditionally, use save_target_globals_default_opts and
29847 restore_target_globals.
29848
29849 2014-01-09 Richard Biener <rguenther@suse.de>
29850
29851 PR tree-optimization/59715
29852 * tree-cfg.h (split_critical_edges): Declare.
29853 * tree-cfg.c (split_critical_edges): Export.
29854 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
29855
29856 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
29857
29858 * cfgexpand.c (expand_stack_vars): Optionally disable
29859 asan stack protection.
29860 (expand_used_vars): Likewise.
29861 (partition_stack_vars): Likewise.
29862 * asan.c (asan_emit_stack_protection): Optionally disable
29863 after return stack usage.
29864 (instrument_derefs): Optionally disable memory access instrumentation.
29865 (instrument_builtin_call): Likewise.
29866 (instrument_strlen_call): Likewise.
29867 (asan_protect_global): Optionally disable global variables protection.
29868 * doc/invoke.texi: Added doc for new options.
29869 * params.def: Added new options.
29870 * params.h: Likewise.
29871
29872 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29873
29874 PR rtl-optimization/59724
29875 * ifcvt.c (cond_exec_process_if_block): Don't call
29876 flow_find_head_matching_sequence with 0 longest_match.
29877 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
29878 non-active insns if !stop_after.
29879 (try_head_merge_bb): Revert 2014-01-07 changes.
29880
29881 2014-01-08 Jeff Law <law@redhat.com>
29882
29883 * ree.c (get_sub_rtx): New function, extracted from...
29884 (merge_def_and_ext): Here.
29885 (combine_reaching_defs): Use get_sub_rtx.
29886
29887 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
29888
29889 * cgraph.h (varpool_variable_node): Do not choke on null node.
29890
29891 2014-01-08 Catherine Moore <clm@codesourcery.com>
29892
29893 * config/mips/mips.md (simple_return): Attempt to use JRC
29894 for microMIPS.
29895 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
29896
29897 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29898
29899 PR rtl-optimization/59137
29900 * reorg.c (steal_delay_list_from_target): Call update_block for
29901 elided insns.
29902 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
29903
29904 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29905
29906 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
29907 two duplicate entries.
29908
29909 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29910
29911 Revert:
29912 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
29913
29914 * config/mips/mips.c (mips_truncated_op_cost): New function.
29915 (mips_rtx_costs): Adjust test for BADDU.
29916 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
29917
29918 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
29919
29920 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
29921 (*baddu_si): ...this new pattern.
29922
29923 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29924
29925 PR ipa/59722
29926 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
29927
29928 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
29929
29930 PR middle-end/57748
29931 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
29932 inner_reference_p.
29933 (expand_expr, expand_normal): Adjust.
29934 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
29935 inner_reference_p. Use inner_reference_p to expand inner references.
29936 (store_expr): Adjust.
29937 * cfgexpand.c (expand_call_stmt): Adjust.
29938
29939 2014-01-08 Rong Xu <xur@google.com>
29940
29941 * gcov-io.c (gcov_var): Move from gcov-io.h.
29942 (gcov_position): Ditto.
29943 (gcov_is_error): Ditto.
29944 (gcov_rewrite): Ditto.
29945 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
29946 only part to libgcc/libgcov.h.
29947
29948 2014-01-08 Marek Polacek <polacek@redhat.com>
29949
29950 PR middle-end/59669
29951 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
29952
29953 2014-01-08 Marek Polacek <polacek@redhat.com>
29954
29955 PR sanitizer/59667
29956 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
29957
29958 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29959
29960 PR rtl-optimization/59649
29961 * stor-layout.c (get_mode_bounds): For BImode return
29962 0 and STORE_FLAG_VALUE.
29963
29964 2014-01-08 Richard Biener <rguenther@suse.de>
29965
29966 PR middle-end/59630
29967 * gimple.h (is_gimple_builtin_call): Remove.
29968 (gimple_builtin_call_types_compatible_p): New.
29969 (gimple_call_builtin_p): New overload.
29970 * gimple.c (is_gimple_builtin_call): Remove.
29971 (validate_call): Rename to ...
29972 (gimple_builtin_call_types_compatible_p): ... this and export. Also
29973 check return types.
29974 (validate_type): New static function.
29975 (gimple_call_builtin_p): New overload and adjust.
29976 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
29977 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
29978 (gimple_fold_stmt_to_constant_1): Likewise.
29979 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
29980
29981 2014-01-08 Richard Biener <rguenther@suse.de>
29982
29983 PR middle-end/59471
29984 * gimplify.c (gimplify_expr): Gimplify register-register type
29985 VIEW_CONVERT_EXPRs to separate stmts.
29986
29987 2014-01-07 Jeff Law <law@redhat.com>
29988
29989 PR middle-end/53623
29990 * ree.c (combine_set_extension): Handle case where source
29991 and destination registers in an extension insn are different.
29992 (combine_reaching_defs): Allow source and destination registers
29993 in extension to be different under limited circumstances.
29994 (add_removable_extension): Remove restriction that the
29995 source and destination registers in the extension are the same.
29996 (find_and_remove_re): Emit a copy from the extension's
29997 destination to its source after the defining insn if
29998 the source and destination registers are different.
29999
30000 PR middle-end/59285
30001 * ifcvt.c (merge_if_block): If we are merging a block with more than
30002 one successor with a block with no successors, remove any BARRIER
30003 after the second block.
30004
30005 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30006
30007 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30008
30009 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30010
30011 PR target/59652
30012 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30013 for 14-bit register offsets when INT14_OK_STRICT is false.
30014
30015 2014-01-07 Roland Stigge <stigge@antcom.de>
30016 Michael Meissner <meissner@linux.vnet.ibm.com>
30017
30018 PR 57386/target
30019 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30020 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30021
30022 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30023
30024 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30025 -mcpu.
30026
30027 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30028
30029 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30030 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30031 rtx is const0_rtx or not.
30032
30033 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30034
30035 PR target/58115
30036 * target-globals.c (save_target_globals): Remove this_fn_optab
30037 handling.
30038 * toplev.c: Include optabs.h.
30039 (target_reinit): Temporarily restore the global options if another
30040 set of options are in force.
30041
30042 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30043
30044 PR rtl-optimization/58668
30045 * cfgcleanup.c (flow_find_cross_jump): Don't count
30046 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30047 to determine what is counted.
30048 (flow_find_head_matching_sequence): Use active_insn_p to determine
30049 what is counted.
30050 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30051 counting change.
30052 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30053 determine what is counted.
30054
30055 PR tree-optimization/59643
30056 * tree-predcom.c (split_data_refs_to_components): If one dr is
30057 read and one write, determine_offset fails and the write isn't
30058 in the bad component, just put the read into the bad component.
30059
30060 2014-01-07 Mike Stump <mikestump@comcast.net>
30061 Jakub Jelinek <jakub@redhat.com>
30062
30063 PR pch/59436
30064 * tree-core.h (struct tree_optimization_option): Change optabs
30065 type from unsigned char * to void *.
30066 * optabs.c (init_tree_optimization_optabs): Adjust
30067 TREE_OPTIMIZATION_OPTABS initialization.
30068
30069 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30070
30071 PR target/59644
30072 * config/i386/i386.h (struct machine_function): Add
30073 no_drap_save_restore field.
30074 * config/i386/i386.c (ix86_save_reg): Use
30075 !cfun->machine->no_drap_save_restore instead of
30076 crtl->stack_realign_needed.
30077 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30078 this function clears frame_pointer_needed. Set
30079 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30080 and DRAP reg is needed.
30081
30082 2014-01-06 Marek Polacek <polacek@redhat.com>
30083
30084 PR c/57773
30085 * doc/implement-c.texi: Mention that other integer types are
30086 permitted as bit-field types in strictly conforming mode.
30087
30088 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30089
30090 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30091 is newly allocated.
30092
30093 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30094
30095 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30096
30097 2014-01-06 Martin Jambor <mjambor@suse.cz>
30098
30099 PR ipa/59008
30100 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30101 to int.
30102 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30103
30104 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30105
30106 PR debug/59350
30107 PR debug/59510
30108 * var-tracking.c (add_stores): Preserve the value of the source even if
30109 we don't record the store.
30110
30111 2014-01-06 Terry Guo <terry.guo@arm.com>
30112
30113 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30114
30115 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30116
30117 PR bootstrap/59541
30118 * config/darwin.c (darwin_function_section): Adjust return values to
30119 correspond to optimisation changes made in r206070.
30120
30121 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30122
30123 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30124 from prefetch_block tune setting.
30125 (nocona_cost): Correct size of prefetch block to 64.
30126
30127 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30128
30129 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30130 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30131 used to save the static chain register in the computation of the offset
30132 from which the FP registers need to be restored.
30133
30134 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30135
30136 PR tree-optimization/59519
30137 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30138 ICE if get_current_def (current_new_name) is already non-NULL, as long
30139 as it is a phi result of some other phi in *new_exit_bb that has
30140 the same argument.
30141
30142 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30143 or vmovdqu* for misaligned_operand.
30144 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30145 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30146 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30147 aligned_mem for AVX512F masked aligned load and store builtins and for
30148 non-temporal moves.
30149
30150 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30151
30152 PR tree-optimization/59651
30153 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30154 Address range for negative step should be added by TYPE_SIZE_UNIT.
30155
30156 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30157
30158 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30159 overlapping registers also for registers other than the stack pointer.
30160
30161 2014-01-03 Marek Polacek <polacek@redhat.com>
30162
30163 PR other/59661
30164 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30165 __builtin_FILE.
30166
30167 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30168
30169 PR target/59625
30170 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30171 asm goto as jump.
30172
30173 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30174 (push splitter): Use <P:MODE_SIZE> instead of
30175 GET_MODE_SIZE (<P:MODE>mode).
30176 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30177 (mov -1, reg peephole2): Likewise.
30178 * config/i386/sse.md (*mov<mode>_internal,
30179 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30180 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30181 *<code><mode>3, *andnot<mode>3<mask_name>,
30182 <mask_codefor><code><mode>3<mask_name>): Likewise.
30183 * config/i386/subst.md (mask_mode512bit_condition,
30184 sd_mask_mode512bit_condition): Likewise.
30185
30186 2014-01-02 Xinliang David Li <davidxl@google.com>
30187
30188 PR tree-optimization/59303
30189 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30190 (dump_predicates): Better output format.
30191 (pred_equal_p): New function.
30192 (is_neq_relop_p): Ditto.
30193 (is_neq_zero_form_p): Ditto.
30194 (pred_expr_equal_p): Ditto.
30195 (pred_neg_p): Ditto.
30196 (simplify_pred): Ditto.
30197 (simplify_preds_2): Ditto.
30198 (simplify_preds_3): Ditto.
30199 (simplify_preds_4): Ditto.
30200 (simplify_preds): Ditto.
30201 (push_pred): Ditto.
30202 (push_to_worklist): Ditto.
30203 (get_pred_info_from_cmp): Ditto.
30204 (is_degenerated_phi): Ditto.
30205 (normalize_one_pred_1): Ditto.
30206 (normalize_one_pred): Ditto.
30207 (normalize_one_pred_chain): Ditto.
30208 (normalize_preds): Ditto.
30209 (normalize_cond_1): Remove function.
30210 (normalize_cond): Ditto.
30211 (is_gcond_subset_of): Ditto.
30212 (is_subset_of_any): Ditto.
30213 (is_or_set_subset_of): Ditto.
30214 (is_and_set_subset_of): Ditto.
30215 (is_norm_cond_subset_of): Ditto.
30216 (pred_chain_length_cmp): Ditto.
30217 (convert_control_dep_chain_into_preds): Type change.
30218 (find_predicates): Ditto.
30219 (find_def_preds): Ditto.
30220 (destroy_predicates_vecs): Ditto.
30221 (find_matching_predicates_in_rest_chains): Ditto.
30222 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30223 (is_pred_expr_subset): Ditto.
30224 (is_pred_chain_subset_of): Ditto.
30225 (is_included_in): Ditto.
30226 (is_superset_of): Ditto.
30227
30228 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30229
30230 Update copyright years.
30231
30232 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30233
30234 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30235 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30236 config/arc/arc.md, config/arc/arc.opt,
30237 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30238 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30239 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30240 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30241 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30242 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30243 vtable-verify.c, vtable-verify.h: Use the standard form for the
30244 copyright notice.
30245
30246 2014-01-02 Tobias Burnus <burnus@net-b.de>
30247
30248 * gcc.c (process_command): Update copyright notice dates.
30249 * gcov-dump.c: Ditto.
30250 * gcov.c: Ditto.
30251 * doc/cpp.texi: Bump @copying's copyright year.
30252 * doc/cppinternals.texi: Ditto.
30253 * doc/gcc.texi: Ditto.
30254 * doc/gccint.texi: Ditto.
30255 * doc/gcov.texi: Ditto.
30256 * doc/install.texi: Ditto.
30257 * doc/invoke.texi: Ditto.
30258
30259 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30260
30261 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30262
30263 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30264
30265 * config/i386/sse.md (*mov<mode>_internal): Guard
30266 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30267
30268 PR rtl-optimization/59647
30269 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30270 new_rtx into UNSIGNED_FLOAT rtxes.
30271 \f
30272 Copyright (C) 2014 Free Software Foundation, Inc.
30273
30274 Copying and distribution of this file, with or without modification,
30275 are permitted in any medium without royalty provided the copyright
30276 notice and this notice are preserved.