re PR lto/63166 (ICE (LTO): ipa_intraprocedural_devirtualization, at ipa-prop.c:2611)
[gcc.git] / gcc / ChangeLog
1 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
2
3 PR ipa/63166
4 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5
6 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
7 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8 Anna Tikhonova <anna.tikhonova@intel.com>
9 Ilya Tocar <ilya.tocar@intel.com>
10 Andrey Turetskiy <andrey.turetskiy@intel.com>
11 Ilya Verbin <ilya.verbin@intel.com>
12 Kirill Yukhin <kirill.yukhin@intel.com>
13 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14
15 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
16 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
17 (define_mode_iterator FMAMODE_AVX512): New.
18 (define_mode_iterator FMAMODE): Remove conditions.
19 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
20 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
21 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
22 mode iterator.
23 (define_mode_iterator FMAMODE_NOVF512): Remove.
24 (define_insn "*fma_fmadd_<mode>"): Rename from
25 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
26 FMAMODE mode iterator.
27 (define_mode_iterator VF_SF_AVX512VL): New.
28 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
29 Use VF_SF_AVX512VL mode iterator.
30 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
31 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
32 iterator.
33 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
34 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
35 iterator.
36 (define_insn "*fma_fmsub_<mode>"): Rename from
37 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
38 FMAMODE mode iterator.
39 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
40 Use VF_SF_AVX512VL mode iterator.
41 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
42 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
43 iterator.
44 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
45 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
46 iterator.
47 (define_insn "*fma_fnmadd_<mode>"): Rename from
48 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
49 use FMAMODE mode iterator.
50 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
51 Use VF_SF_AVX512VL mode iterator.
52 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
53 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
54 iterator.
55 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
56 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
57 iterator.
58 (define_insn "*fma_fnmsub_<mode>"): Rename from
59 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
60 FMAMODE mode iterator.
61 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
62 Use VF_SF_AVX512VL mode iterator.
63 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
64 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
65 iterator.
66 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
67 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
68 iterator.
69 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
70 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
71 use VF_AVX512VL mode iterator.
72 (define_insn "*fma_fmaddsub_<mode>"): Rename from
73 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
74 remove subst usage.
75 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
76 Use VF_SF_AVX512VL mode iterator.
77 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
78 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
79 iterator.
80 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
81 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
82 iterator.
83 (define_insn "*fma_fmsubadd_<mode>"): Rename from
84 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
85 remove usage of subst.
86 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
87 Use VF_SF_AVX512VL mode iterator.
88 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
89 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
90 iterator.
91 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
92 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
93 iterator.
94
95 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
96
97 Revert r213751:
98 * calls.c (precompute_arguments): Check
99 promoted_for_signed_and_unsigned_p and set the promoted mode.
100 (promoted_for_signed_and_unsigned_p): New function.
101 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
102 and set the promoted mode.
103 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
104 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
105 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
106
107 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
108
109 * opth-gen.awk: Generate mapping from cpp message reasons to the
110 options that enable them.
111 * doc/options.texi (CppReason): Document.
112
113 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
114
115 * doc/invoke.texi (Wnormalized=): Update.
116
117 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
118
119 PR target/63195
120 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
121 operands. Split off the constant operand alternative to ...
122 (*bool<mode>3_imm): New.
123
124 2014-09-09 David Malcolm <dmalcolm@redhat.com>
125
126 * rtl.h (single_set_2): Strengthen first param from const_rtx to
127 const rtx_insn *, and move prototype to above...
128 (single_set): ...this. Convert this from a macro to an inline
129 function, enforcing the requirement that the param is a const
130 rtx_insn *.
131 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
132
133 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
134 Strengthen both params from rtx to rtx_insn *.
135 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
136 Likewise; introduce locals "producer_set", "consumer_set", using
137 them in place of "producer" and "consumer" when dealing with SET
138 rather than insn.
139 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
140 when invoking single_set in region guarded by INSN_P.
141 (avr_out_bitop): Likewise.
142 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
143 region guarded by GET_CODE check, using methods to strengthen
144 local "this_insn" from rtx to rtx_insn *, and for clarity.
145 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
146 Strengthen local "insn" from rtx to rtx_insn *.
147 (define_insn_and_split "xload<mode>_A"): Likewise.
148 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
149 "insn".
150 (find_load): Likewise for return type.
151 (workaround_speculation): Likewise for both locals named
152 "load_insn".
153 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
154 local "cc0_user".
155 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
156 for local "prev".
157 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
158 param 2.
159 * config/h8300/h8300.c (notice_update_cc): Likewise.
160 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
161 "insn" and "dep_insn".
162 (exact_store_load_dependency): Likewise for both params.
163 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
164 since this now clashes with inline function. Instead, delay
165 calling single_set until the point where its needed, and then
166 assign the result to "compare_set" and rework the conditional that
167 follows.
168 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
169 local "last" from rtx to rtx_insn *.
170 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
171 second param.
172 (mips_store_data_bypass_p): Likewise for both params.
173 * config/mips/mips.c (mips_load_store_insns): Likewise for second
174 param.
175 (mips_store_data_bypass_p): Likewise for both params.
176 (mips_orphaned_high_part_p): Likewise for param "insn".
177 * config/mn10300/mn10300.c (extract_bundle): Likewise.
178 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
179 Introduce local rtx "insn2_pat".
180 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
181 "ninsn".
182 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
183 Introduce local rtx "set", using it in place of "insn" for the
184 result of single_set. This appears to fix a bug, since the call
185 to find_regno_note on a SET does nothing.
186 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
187 params from rtx to rtx_insn *.
188 (set_to_load_agen): Likewise.
189 * config/s390/s390.c (s390_label_align): Likewise for local
190 "prev_insn". Introduce new rtx locals "set" and "src", using
191 them in place of "prev_insn" for the results of single_set
192 and SET_SRC respectively.
193 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
194 Introduce new rtx local "set" using in place of "jump" for the
195 result of single_set. Use SET_SRC (set) rather than plain
196 XEXP (set, 1).
197 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
198 rtx to rtx_insn *.
199 (noncall_uses_reg): Likewise.
200 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
201 guarded by GET_CODE check, using its methods for clarity, and to
202 enable strengthening local "this_insn" from rtx to rtx_insn *.
203 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
204 "insn" from rtx to rtx_insn *.
205 (define_expand "umulhisi3"): Likewise.
206 (define_expand "smulsi3_highpart"): Likewise.
207 (define_expand "umulsi3_highpart"): Likewise.
208 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
209 local "after". Replace GET_CODE check with a dyn_cast,
210 introducing new local rtx_sequence * "seq", using insn method for
211 typesafety.
212
213 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
214 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
215 place of "insn" once we're dealing with patterns rather than the
216 input insn.
217 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
218 (scan_trace): Likewise for local "elt", updating lookups within
219 sequence to use insn method rather than element method.
220 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
221 to rtx_insn *.
222 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
223 * ifcvt.c (noce_try_abs): Likewise for local "insn".
224 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
225 invoking single_set.
226 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
227 "insn" from rtx to rtx_insn *.
228 (skip_usage_debug_insns): Likewise for return type, adding a
229 checked cast.
230 (check_secondary_memory_needed_p): Likewise for local "insn".
231 (inherit_reload_reg): Likewise.
232 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
233 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
234 checked casts.
235 (store_data_bypass_p): Likewise for both params.
236 (if_test_bypass_p): Likewise.
237 * recog.h (store_data_bypass_p): Likewise for both params.
238 (if_test_bypass_p): Likewise.
239 * reload.c (find_equiv_reg): Likewise for local "where".
240 * reorg.c (delete_jump): Likewise for param "insn".
241 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
242 to const rtx_insn *.
243 * store-motion.c (replace_store_insn): Likewise for param "del".
244 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
245 and use its methods for clarity, and to strengthen local "del"
246 from rtx to rtx_insn *.
247 (build_store_vectors): Use insn method of "st" when calling
248 replace_store_insn for typesafety and clarity.
249
250 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
251
252 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
253 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
254 on how to make it legal in future.
255
256 2014-09-09 David Malcolm <dmalcolm@redhat.com>
257
258 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
259 to rtx_insn *.
260 (restinsn): Likewise.
261 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
262 Likewise for param.
263 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
264 Likewise.
265 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
266 first param.
267 (arc_hazard): Likewise for both params.
268 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
269 checked casts to rtx_sequence * and uses of the insn method for
270 type-safety.
271 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
272 (arc_adjust_insn_length): Likewise for param "insn".
273 (struct insn_length_parameters_s): Likewise for first param of
274 "get_variants" callback field.
275 (arc_get_insn_variants): Likewise for first param and local
276 "inner". Replace a check of GET_CODE with a dyn_cast to
277 rtx_sequence *, using methods for type-safety and clarity.
278 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
279 rtx_sequence * and uses of the insn method for type-safety when
280 invoking arc_adjust_insn_length.
281 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
282 for param.
283 (arm_address_offset_is_imm): Likewise.
284 (struct tune_params): Likewise for params 1 and 3 of the
285 "sched_adjust_cost" callback field.
286 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
287 params 1 and 3 ("insn" and "dep").
288 (xscale_sched_adjust_cost): Likewise.
289 (fa726te_sched_adjust_cost): Likewise.
290 (cortexa7_older_only): Likewise for param "insn".
291 (cortexa7_younger): Likewise.
292 (arm_attr_length_move_neon): Likewise.
293 (arm_address_offset_is_imm): Likewise.
294 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
295 * config/avr/avr.c (avr_notice_update_cc): Likewise.
296 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
297 (workaround_speculation): Likewise for local "last_condjump".
298 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
299 (shadow_or_blockage_p): Likewise.
300 (get_unit_reqs): Likewise.
301 (get_unit_operand_masks): Likewise.
302 (c6x_registers_update): Likewise.
303 (returning_call_p): Likewise.
304 (can_use_callp): Likewise.
305 (convert_to_callp): Likewise.
306 (find_last_same_clock): Likwise for local "t".
307 (reorg_split_calls): Likewise for local "shadow".
308 (hwloop_pattern_reg): Likewise for param "insn".
309 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
310 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
311 (frv_extract_membar): Likewise.
312 (frv_optimize_membar_local): Strengthen param "last_membar" from
313 rtx * to rtx_insn **.
314 (frv_optimize_membar_global): Strengthen param "membar" from rtx
315 to rtx_insn *.
316 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
317 to rtx_insn **.
318 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
319 both params from rtx to rtx_insn *.
320 (ia64_ld_address_bypass_p): Likewise.
321 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
322 "insn".
323 (ia64_safe_type): Likewise.
324 (group_barrier_needed): Likewise.
325 (safe_group_barrier_needed): Likewise.
326 (ia64_single_set): Likewise.
327 (is_load_p): Likewise.
328 (record_memory_reference): Likewise.
329 (get_mode_no_for_insn): Likewise.
330 (important_for_bundling_p): Likewise.
331 (unknown_for_bundling_p): Likewise.
332 (ia64_st_address_bypass_p): Likewise for both params.
333 (ia64_ld_address_bypass_p): Likewise.
334 (expand_vselect): Introduce new local rtx_insn * "insn", using it
335 in place of rtx "x" after the emit_insn call.
336 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
337 Strengthen param from rtx to rtx_insn *.
338 (ix86_agi_dependent): Likewise for both params.
339 (ix86_attr_length_immediate_default): Likewise for param 1.
340 (ix86_attr_length_address_default): Likewise for param.
341 (ix86_attr_length_vex_default): Likewise for param 1.
342 * config/i386/i386.c (ix86_attr_length_immediate_default):
343 Likewise for param "insn".
344 (ix86_attr_length_address_default): Likewise.
345 (ix86_attr_length_vex_default): Likewise.
346 (ix86_agi_dependent): Likewise for both params.
347 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
348 (vselect_insn): Likewise for this variable.
349 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
350 for param 1.
351 (m68k_sched_attr_opy_type): Likewise.
352 * config/m68k/m68k.c (sched_get_operand): Likewise.
353 (sched_attr_op_type): Likewise.
354 (m68k_sched_attr_opx_type): Likewise.
355 (m68k_sched_attr_opy_type): Likewise.
356 (sched_get_reg_operand): Likewise.
357 (sched_get_mem_operand): Likewise.
358 (m68k_sched_address_bypass_p): Likewise for both params.
359 (sched_get_indexed_address_scale): Likewise.
360 (m68k_sched_indexed_address_bypass_p): Likewise.
361 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
362 (m68k_sched_indexed_address_bypass_p): Likewise.
363 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
364 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
365 removing another.
366 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
367 params from rtx to rtx_insn *.
368 (mips_fmadd_bypass): Likewise.
369 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
370 (mips_linked_madd_p): Likewise.
371 (mips_macc_chains_last_hilo): Likewise for this variable.
372 (mips_macc_chains_record): Likewise for param.
373 (vr4130_last_insn): Likewise for this variable.
374 (vr4130_swap_insns_p): Likewise for both params.
375 (mips_ls2_variable_issue): Likewise for param.
376 (mips_need_noat_wrapper_p): Likewise for param "insn".
377 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
378 in place of "x" after the emit_insn.
379 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
380 params from rtx to rtx_insn *.
381 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
382 (pa_combine_instructions): Introduce local "par" for result of
383 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
384 to make_insn_raw.
385 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
386 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
387 (rl78_alloc_physical_registers_op1): Likewise.
388 (rl78_alloc_physical_registers_op2): Likewise.
389 (rl78_alloc_physical_registers_ro1): Likewise.
390 (rl78_alloc_physical_registers_cmp): Likewise.
391 (rl78_alloc_physical_registers_umul): Likewise.
392 (rl78_alloc_address_registers_macax): Likewise.
393 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
394 * config/s390/predicates.md (execute_operation): Likewise for
395 local "insn".
396 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
397 params.
398 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
399 (addr_generation_dependency_p): Likewise for param "insn".
400 (s390_agen_dep_p): Likewise for both params.
401 (s390_fpload_toreg): Likewise for param "insn".
402 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
403 * config/sh/sh.c (sh_loop_align): Likewise for param and local
404 "next".
405 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
406 * config/sh/sh_treg_combine.cc
407 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
408 and local "i".
409 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
410 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
411 "and_insn", "load", "shift".
412 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
413 "insn".
414 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
415 for XEXP (note, 0) of the REG_CC_SETTER note.
416 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
417 rtx_insn *, eliminating a checked cast made redundant by this.
418 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
419 to rtx_insn *.
420 * genattr.c (main): When writing out the prototype to
421 const_num_delay_slots, strengthen the param from rtx to
422 rtx_insn *.
423 * genattrtab.c (write_const_num_delay_slots): Likewise when
424 writing out the implementation of const_num_delay_slots.
425 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
426 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
427 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
428 favor of new rtx locals "src" and "set" and new local rtx_insn *
429 "insn" and "seq".
430 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
431 to rtx_insn *.
432 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
433 locals "cond", "if_then_else", "set" and new rtx_insn * locals
434 "insn" and "seq".
435 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
436 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
437 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
438 the top-level scope, replacing with new more tightly-scoped rtx
439 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
440 "new_insn", "copy_of_insn_b", and make local rtx "set" more
441 tightly-scoped.
442 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
443 rtx_insn *.
444 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
445 "move_insn".
446 (ira_setup_alts): Likewise for param "insn".
447 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
448 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
449 and an rtx_insn *.
450 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
451 new more-tightly scoped rtx locals "add3_insn", "insn",
452 "add2_insn" and rtx_insn * "move_insn".
453 * postreload-gcse.c (eliminate_partially_redundant_load): Add
454 checked cast on result of gen_move_insn when invoking
455 extract_insn.
456 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
457 rtx_insn *.
458 (verify_changes): Add a checked cast on "object" when invoking
459 insn_invalid_p.
460 (extract_insn_cached): Strengthen param "insn" from rtx to
461 rtx_insn *.
462 (extract_constrain_insn_cached): Likewise.
463 (extract_insn): Likewise.
464 * recog.h (insn_invalid_p): Likewise for param 1.
465 (recog_memoized): Likewise for param.
466 (extract_insn): Likewise.
467 (extract_constrain_insn_cached): Likewise.
468 (extract_insn_cached): Likewise.
469 * reload.c (can_reload_into): Likewise for local "test_insn".
470 * reload.h (cleanup_subreg_operands): Likewise for param.
471 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
472 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
473 result of emit_insn. Remove a checked cast made redundant by this
474 change.
475 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
476 rtx to rtx_insn *.
477 * sel-sched.c (get_reg_class): Likewise.
478
479 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
480 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
481
482 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
483 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
484 Define.
485 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
486
487 2014-09-09 David Malcolm <dmalcolm@redhat.com>
488
489 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
490 const rtx_insn *, and from rtx to rtx_insn * for the other
491 overloaded variant.
492 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
493 INSN_LOCATION, since we know INSN_P holds.
494 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
495 (insn_file): Likewise.
496 (insn_scope): Likewise.
497 (insn_location): Likewise.
498
499 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
500 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
501 for the result of gen_load_const_gp.
502 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
503 param from rtx to rtx_insn *.
504 * config/rs6000/rs6000.c (output_call): Likewise.
505 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
506 introducing a checked cast to rtx_sequence * and use of the insn
507 method.
508 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
509 from rtx to rtx_insn *.
510 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
511 (insn_line): Likewise.
512 (insn_file): Likewise.
513 (insn_location): Likewise.
514 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
515 from rtx to rtx_insn *.
516 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
517 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
518 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
519 via a checked cast.
520 * reorg.c (relax_delay_slots): Strengthen locals named "after"
521 from rtx to rtx_insn *; use methods of "pat" for type-safety.
522
523 2014-09-09 David Malcolm <dmalcolm@redhat.com>
524
525 * combine.c (try_combine): Eliminate checked cast on result of
526 gen_rtx_INSN.
527 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
528 autogenerated one by strengthening the return type and params 2 and 3
529 from rtx to rtx_insn *, and by naming the params.
530 * gengenrtl.c (special_rtx): Add INSN to those that are
531 special-cased.
532 * rtl.h (gen_rtx_INSN): New prototype.
533
534 2014-09-09 David Malcolm <dmalcolm@redhat.com>
535
536 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
537 than NULL_RTX.
538 (no_equiv): Likewise.
539 (update_equiv_regs): Likewise.
540 (setup_reg_equiv): Likewise. Strengthen locals "elem",
541 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
542 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
543 clarity.
544 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
545 from rtx to rtx_insn_list *.
546 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
547 rtx_insn_list * and use methods for clarity and typesafety.
548 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
549 "list".
550 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
551 redundant check on INSN_P (insns): this cannot hold, as "insns" is
552 an INSN_LIST, not an insn.
553 (reverse_equiv_p): Strengthen local "insns" from rtx to
554 rtx_insn_list * and use methods for clarity and typesafety.
555 (contains_reloaded_insn_p): Likewise for local "list".
556
557 2014-09-09 Jiong Wang <jiong.wang@arm.com>
558
559 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
560 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
561 (arm_builtin_vectorized_function): Likewise.
562 * config/arm/arm_neon_builtins.def: New macro for copysignf.
563 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
564
565 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
566
567 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
568 * builtins.h (default_target_builtins): Likewise.
569 * gcse.h (default_target_gcse): Likewise.
570 * target-globals.h (target_globals): Add a destructor. Convert
571 void-pointer fields back to their real type and change from
572 GTY((atomic)) to GTY((skip)).
573 (restore_target_globals): Remove casts accordingly.
574 * target-globals.c (save_target_globals): Use XCNEW rather than
575 ggc_internal_cleared_alloc to allocate non-GC structures.
576 Use ggc_cleared_alloc to allocate the target_globals structure
577 itself.
578 (target_globals::~target_globals): Define.
579
580 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
581
582 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
583 mnemonic instead of fldmfdd.
584 * config/arm/arm.c (vfp_output_fstmd): Rename to...
585 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
586 Output vpush when address register is SP.
587 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
588 (vfp_output_vstmd): ... This.
589 * config/arm/vfp.md (push_multi_vfp): Update call to
590 vfp_output_vstmd.
591
592 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
593
594 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
595
596 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
597
598 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
599 (*sqrtdf2_vfp): Likewise.
600 (*cmpsf_vfp): Likewise.
601 (*cmpsf_trap_vfp): Likewise.
602 (*cmpdf_vfp): Likewise.
603 (*cmpdf_trap_vfp): Likewise.
604
605 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
606
607 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
608 (*truncdfsf2_vfp): Likewise.
609 (*truncsisf2_vfp): Likewise.
610 (*truncsidf2_vfp): Likewise.
611 (fixuns_truncsfsi2): Likewise.
612 (fixuns_truncdfsi2): Likewise.
613 (*floatsisf2_vfp): Likewise.
614 (*floatsidf2_vfp): Likewise.
615 (floatunssisf2): Likewise.
616 (floatunssidf2): Likewise.
617
618 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
619
620 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
621 (*muldf3_vfp): Likewise.
622 (*mulsf3negsf_vfp): Likewise.
623 (*muldf3negdf_vfp): Likewise.
624 (*mulsf3addsf_vfp): Likewise.
625 (*muldf3adddf_vfp): Likewise.
626 (*mulsf3subsf_vfp): Likewise.
627 (*muldf3subdf_vfp): Likewise.
628 (*mulsf3negsfaddsf_vfp): Likewise.
629 (*fmuldf3negdfadddf_vfp): Likewise.
630 (*mulsf3negsfsubsf_vfp): Likewise.
631 (*muldf3negdfsubdf_vfp): Likewise.
632
633 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
634
635 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
636 (*absdf2_vfp): Likewise.
637 (*negsf2_vfp): Likewise.
638 (*negdf2_vfp): Likewise.
639 (*addsf3_vfp): Likewise.
640 (*adddf3_vfp): Likewise.
641 (*subsf3_vfp): Likewise.
642 (*subdf3_vfp): Likewise.
643 (*divsf3_vfp): Likewise.
644 (*divdf3_vfp): Likewise.
645
646 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
647
648 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
649 multiple.
650 (arm_print_operand): Don't convert real values to decimal
651 representation in default case.
652 (fp_immediate_constant): Delete.
653 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
654 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
655 syntax.
656 (*thumb2_movsi_vfp): Likewise.
657 (*movdi_vfp): Likewise.
658 (*movdi_vfp_cortexa8): Likewise.
659 (*movhf_vfp_neon): Likewise.
660 (*movhf_vfp): Likewise.
661 (*movsf_vfp): Likewise.
662 (*thumb2_movsf_vfp): Likewise.
663 (*movdf_vfp): Likewise.
664 (*thumb2_movdf_vfp): Likewise.
665 (*movsfcc_vfp): Likewise.
666 (*thumb2_movsfcc_vfp): Likewise.
667 (*movdfcc_vfp): Likewise.
668 (*thumb2_movdfcc_vfp): Likewise.
669
670 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
671
672 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
673 (-mtune): Likewise.
674 (-mcpu): Likewise.
675
676 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
677
678 PR target/61749
679 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
680 Use qualifier_immediate for last operand. Rename to...
681 (aarch64_types_ternop_lane_qualifiers): ... This.
682 (TYPES_QUADOP): Rename to...
683 (TYPES_TERNOP_LANE): ... This.
684 (aarch64_simd_expand_args): Return const0_rtx when encountering user
685 error. Change return of 0 to return of NULL_RTX.
686 (aarch64_crc32_expand_builtin): Likewise.
687 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
688 ICE when expanding unknown builtin.
689 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
690 TERNOP_LANE qualifiers.
691 (sqdmlsl_lane): Likewise.
692 (sqdmlal_laneq): Likewise.
693 (sqdmlsl_laneq): Likewise.
694 (sqdmlal2_lane): Likewise.
695 (sqdmlsl2_lane): Likewise.
696 (sqdmlal2_laneq): Likewise.
697 (sqdmlsl2_laneq): Likewise.
698
699 2014-09-09 Nick Clifton <nickc@redhat.com>
700
701 * doc/invoke.texi (Optimization Options): Add missing @gol to the
702 end of a line.
703 (S/390 and zSeries Options): Remove superfluous word from the
704 description of the -mhotpatch option.
705
706 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
707
708 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
709 * ira.c: #include "shrink-wrap.h"
710 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
711 * ifcvt.c: #include "shrink-wrap.h"
712 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
713
714 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
715
716 * common/config/picochip/picochip-common.c: Remove.
717 * config.gcc: Remove support for picochip.
718 * config/picochip/constraints.md: Remove.
719 * config/picochip/dfa_space.md: Remove.
720 * config/picochip/dfa_speed.md: Remove.
721 * config/picochip/picochip-protos.h: Remove.
722 * config/picochip/picochip.c: Remove.
723 * config/picochip/picochip.h: Remove.
724 * config/picochip/picochip.md: Remove.
725 * config/picochip/picochip.opt: Remove.
726 * config/picochip/predicates.md: Remove.
727 * config/picochip/t-picochip: Remove.
728 * doc/md.texi: Don't document picochi.
729
730 2014-09-08 David Malcolm <dmalcolm@redhat.com>
731
732 * basic-block.h (control_flow_insn_p): Strengthen param from
733 const_rtx to const rtx_insn *.
734 * cfgbuild.c (control_flow_insn_p): Likewise.
735
736 2014-09-08 David Malcolm <dmalcolm@redhat.com>
737
738 * gcse.c (modify_mem_list): Strengthen this variable from
739 vec<rtx> * to vec<rtx_insn *> *.
740 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
741 vec<rtx_insn *>.
742 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
743 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
744 (record_last_mem_set_info): Strengthen param "insn" from rtx to
745 rtx_insn *.
746 (record_last_set_info): Likewise for local "last_set_insn".
747
748 2014-09-08 DJ Delorie <dj@redhat.com>
749
750 * doc/invoke.texi (MSP430 Options): Add -minrt.
751
752 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
753
754 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
755 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
756 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
757 handling SH_SPLAT.
758 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
759 of extracted lane.
760 (adjust_splat): New function.
761 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
762 (dump_swap_insn_table): Add case for SH_SPLAT.
763
764 2014-09-08 Richard Biener <rguenther@suse.de>
765
766 PR ipa/63196
767 * tree-inline.c (copy_loops): The source loop header should
768 always be non-NULL.
769 (tree_function_versioning): If loops need fixup after removing
770 unreachable blocks fix them.
771 * omp-low.c (simd_clone_adjust): Do not add incr block to
772 loop under construction.
773
774 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
775
776 * config/aarch64/aarch64-builtins.c
777 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
778
779 2014-09-08 Joseph Myers <joseph@codesourcery.com>
780
781 * config/i386/cygming.h (TF_SIZE): Remove.
782 * config/i386/darwin.h (TF_SIZE): Remove.
783 * config/i386/dragonfly.h (TF_SIZE): Remove.
784 * config/i386/freebsd.h (TF_SIZE): Remove.
785 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
786 * config/i386/openbsdelf.h (TF_SIZE): Remove.
787 * config/i386/sol2.h (TF_SIZE): Remove.
788 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
789 * config/ia64/linux.h (TF_SIZE): Remove.
790 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
791 * doc/tm.texi: Regenerate.
792 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
793
794 2014-09-08 Joseph Myers <joseph@codesourcery.com>
795
796 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
797 Remove.
798 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
799 Remove.
800 * doc/tm.texi: Regenerate.
801 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
802 Poison.
803 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
804 * config/cris/cris.h (__make_dp): Remove.
805
806 2014-09-08 Richard Biener <rguenther@suse.de>
807
808 PR bootstrap/63204
809 * cfgloop.c (mark_loop_for_removal): Track former header
810 unconditionally.
811 * cfgloop.h (struct loop): Add former_header member unconditionally.
812 * loop-init.c (fix_loop_structure): Enable bogus loop removal
813 diagnostic unconditionally.
814
815 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
816
817 PR target/63190
818 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
819 constraint for operand0 and remove write only modifier from operand3.
820
821 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
822
823 PR rtl-optimization/62208
824 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
825 rather than const0_rtx in eq/ne-xor simplifications.
826
827 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
828
829 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
830 (arc_output_mi_thunk): Likewise.
831
832 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
833 arguments to silence bogus warning.
834
835 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
836
837 PR middle-end/63171
838 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
839
840 2014-09-06 Tom de Vries <tom@codesourcery.com>
841
842 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
843 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
844 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
845
846 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
847
848 PR target/63188
849 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
850 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
851
852 2014-09-05 Easwaran Raman <eraman@google.com>
853
854 PR rtl-optimization/62146
855 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
856 hoisted instruction unconditional.
857
858 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
859
860 PR target/63187
861 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
862 Do not allow any_mask_operand for operands[2].
863 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
864
865 2014-09-05 David Malcolm <dmalcolm@redhat.com>
866
867 * config/arc/arc.c (arc_print_operand): Use insn method of
868 final_sequence for type-safety.
869 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
870 "insn" from rtx to rtx_insn *.
871 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
872 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
873 Likewise for locals "branch", "label".
874 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
875 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
876 (same_cmp_following_p): Likewise for locals "i2", "i3".
877 * config/sh/sh_optimize_sett_clrt.cc
878 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
879 param "cbranch_insn".
880 * function.c (convert_jumps_to_returns): Likewis for local "jump".
881 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
882 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
883 const rtx_insn *.
884 (condjump_p): Likewise.
885 (condjump_in_parallel_p): Likewise.
886 (pc_set): Likewise.
887 (any_uncondjump_p): Likewise.
888 (any_condjump_p): Likewise.
889 (condjump_label): Likewise.
890 (returnjump_p): Strengthen param "insn" from rtx to
891 const rtx_insn *.
892 (onlyjump_p): Strengthen param "insn" from const_rtx to
893 const rtx_insn *.
894 (jump_to_label_p): Likewise.
895 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
896 (invert_jump): Likewise.
897 * reorg.c (simplejump_or_return_p): Add checked cast when calling
898 simplejump_p.
899 (get_jump_flags): Strengthen param "insn" from rtx to
900 const rtx_insn *.
901 (get_branch_condition): Likewise.
902 (condition_dominates_p): Likewise.
903 (make_return_insns): Move declaration of local "pat" earlier, to
904 after we've handled NONJUMP_INSN_P and non-sequences, using its
905 methods to simplify the code and for type-safety.
906 * rtl.h (find_constant_src): Strengthen param from const_rtx to
907 const rtx_insn *.
908 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
909 (condjump_p): Strengthen param from const_rtx to
910 const rtx_insn *.
911 (any_condjump_p): Likewise.
912 (any_uncondjump_p): Likewise.
913 (pc_set): Likewise.
914 (condjump_label): Likewise.
915 (simplejump_p): Likewise.
916 (returnjump_p): Likewise.
917 (onlyjump_p): Likewise.
918 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
919 (invert_jump): Likewise.
920 (condjump_in_parallel_p): Strengthen param from const_rtx to
921 const rtx_insn *.
922 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
923 to const rtx_insn *.
924 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
925 to const rtx_insn *.
926 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
927
928 2014-09-05 David Malcolm <dmalcolm@redhat.com>
929
930 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
931 above the conditional, and convert the check on GET_CODE to a
932 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
933 the conditional. Simplify the conditional by using methods of
934 "trial_seq".
935
936 2014-09-05 David Malcolm <dmalcolm@redhat.com>
937
938 * haifa-sched.c (check_clobbered_conditions): Strengthen local
939 "link" from rtx to rtx_insn_list *, and use its methods for
940 clarity and type-safety.
941 (toggle_cancelled_flags): Likewise.
942 (restore_last_backtrack_point): Likewise.
943 (queue_to_ready): Use insn method of "link" in one place.
944 (schedule_block): Strengthen local "link" from rtx to
945 rtx_insn_list *, and use its methods for clarity and type-safety.
946
947 2014-09-05 David Malcolm <dmalcolm@redhat.com>
948
949 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
950 param "insn" from const_rtx to const rtx_insn *.
951 (sched_get_reverse_condition_uncached): Likewise.
952 (sched_get_condition_with_rev): Likewise.
953 (sched_has_condition_p): Likewise.
954 (sched_insns_conditions_mutex_p): Likewise for both params.
955 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
956 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
957 (setup_insn_reg_uses): Move local "list" to be more tightly
958 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
959 its methods for clarity and type-safety.
960 (sched_analyze_1): Strengthen local "pending" from rtx to
961 rtx_insn_list *, and local "pending_mem" from rtx to
962 rtx_expr_list *. Use methods of each for clarity and type-safety.
963 (sched_analyze_2): Likewise.
964 (sched_analyze_insn): Likewise.
965
966 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
967 param from const_rtx to const rtx_insn *.
968 (sched_insns_conditions_mutex_p): Likewise for both params.
969 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
970 param.
971
972 * system.h (CONST_CAST_RTX_INSN): New macro.
973
974 2014-09-05 David Malcolm <dmalcolm@redhat.com>
975
976 * recog.c (peep2_attempt): Strengthen return type from rtx to
977 rtx_insn *.
978 (peep2_update_life): Likewise for params "last", "prev", removing
979 a checked cast made redundant by this.
980 (peephole2_optimize): Likewise for local "last".
981
982 2014-09-05 David Malcolm <dmalcolm@redhat.com>
983
984 * basic-block.h (set_block_for_insn): Eliminate this macro in
985 favor of...
986 * rtl.h (set_block_for_insn): New inline function, imposing the
987 requirement that the "insn" param is an rtx_insn *.
988
989 2014-09-05 David Malcolm <dmalcolm@redhat.com>
990
991 * caller-save.c (setup_save_areas): Strengthen local "insn" from
992 rtx to rtx_insn *.
993 * final.c (get_call_reg_set_usage): Likewise for first param,
994 eliminating a checked cast.
995 * regs.h (get_call_reg_set_usage): Likewise for first param.
996 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
997 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
998 cast, replacing references to "x" with "call_insn" where
999 appropriate.
1000 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1001 rtx_insn *, adding a checked cast.
1002
1003 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1004
1005 * output.h (final_scan_insn): Strengthen first param from rtx to
1006 rtx_insn *.
1007
1008 * final.c (final_scan_insn): Likewise, renaming it back from
1009 "uncast_insn" to "insn", eliminating the checked cast.
1010
1011 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1012 "vec" with an rtx_sequence * "seq", taking a copy of
1013 "final_sequence", and using methods of "seq" for clarity, and for
1014 type-safety in the calls to final_scan_insn.
1015 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1016 of "final_sequence" for clarity, and for type-safety in the call to
1017 final_scan_insn.
1018 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1019 rtx_sequence * and rename from "insn" to "seq".
1020
1021 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1022
1023 * jump.c (delete_related_insns): Introduce a new local "table" by
1024 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1025 get_labels method of "table" to simplify access to the labels in
1026 the jump table.
1027
1028 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1029
1030 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1031 f_minmaxs, f_minmaxd types.
1032
1033 2014-09-05 Richard Biener <rguenther@suse.de>
1034
1035 * cfgloop.c (mark_loop_for_removal): Record former header
1036 when ENABLE_CHECKING.
1037 * cfgloop.h (strut loop): Add former_header member when
1038 ENABLE_CHECKING.
1039 * loop-init.c (fix_loop_structure): Sanity check loops
1040 marked for removal if they re-appeared.
1041
1042 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1043
1044 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1045 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1046
1047 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1048 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1049 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1050 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1051 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1052 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1053 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1054 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1055 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1056 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1057 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1058 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1059 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1060 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1061 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1062 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1063 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1064 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1065 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1066 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1067 with int{32,16,8}_t.
1068
1069 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1070
1071 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1072 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1073 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1074 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1075 Remove temporary __asm__ and reimplement.
1076
1077 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1078
1079 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1080 handling cmge, cmgt, cmeq, cmtst.
1081
1082 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1083 cmlt, cmgeu, cmgtu, cmtst): Remove.
1084
1085 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1086 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1087 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1088 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1089
1090 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1091
1092 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1093 TYPES_TST): Define.
1094 (aarch64_fold_builtin): Update pattern for cmtst.
1095
1096 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1097 Declare.
1098
1099 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1100
1101 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1102 Switch operands, separate out more cases, refactor.
1103
1104 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1105
1106 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1107 argument; rename old version to...
1108 (aarch64_const_vec_all_same_in_range_p): ...this.
1109 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1110
1111 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1112
1113 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1114
1115 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1116 Remove qualifier_const_pointer, update comment.
1117
1118 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1119
1120 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1121
1122 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1123
1124 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1125 varargs with pointer parameter.
1126 (aarch64_simd_expand_builtin): pass pointer into previous.
1127
1128 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1129
1130 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1131 alus_ext.
1132
1133 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1134
1135 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1136 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1137 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1138 Replace temporary asm with call to builtin.
1139 (vrbit_p8, vrbitq_p8): New functions.
1140
1141 2014-09-05 Richard Biener <rguenther@suse.de>
1142
1143 * cfgloop.c (mark_loop_for_removal): New function.
1144 * cfgloop.h (mark_loop_for_removal): Declare.
1145 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1146 (merge_blocks): Likewise.
1147 (duplicate_block): Likewise.
1148 * except.c (sjlj_emit_dispatch_table): Likewise.
1149 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1150 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1151 (thread_through_loop_header): Likewise.
1152
1153 2014-09-05 Richard Biener <rguenther@suse.de>
1154
1155 PR middle-end/63148
1156 * fold-const.c (try_move_mult_to_index): Remove.
1157 (fold_binary_loc): Do not call it.
1158 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1159 from the base object again.
1160
1161 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1162
1163 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1164 DImode.
1165
1166 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1167
1168 PR target/55701
1169 * config/arm/arm.md (setmem): New pattern.
1170 * config/arm/arm-protos.h (struct tune_params): New fields.
1171 (arm_gen_setmem): New prototype.
1172 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1173 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1174 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1175 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1176 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1177 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1178 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1179 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1180 (arm_const_inline_cost): New function.
1181 (arm_block_set_max_insns): New function.
1182 (arm_block_set_non_vect_profit_p): New function.
1183 (arm_block_set_vect_profit_p): New function.
1184 (arm_block_set_unaligned_vect): New function.
1185 (arm_block_set_aligned_vect): New function.
1186 (arm_block_set_unaligned_non_vect): New function.
1187 (arm_block_set_aligned_non_vect): New function.
1188 (arm_block_set_vect, arm_gen_setmem): New functions.
1189
1190 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1191
1192 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1193
1194 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1195
1196 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1197
1198 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1199
1200 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1201 an rtx.
1202 * valtrack.h: Adjust.
1203
1204 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1205
1206 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1207 an rtx.
1208 (emit_jump_insn_before_noloc): Likewise.
1209 (emit_call_insn_before_noloc): Likewise.
1210 (emit_label_before): Likewise.
1211 (emit_label_after): Likewise.
1212 (emit_insn_before_setloc): Likewise.
1213 (emit_jump_insn_before_setloc): Likewise.
1214 (emit_call_insn_before_setloc): Likewise.
1215 (emit_call_insn_before): Likewise.
1216 * rtl.h: Adjust.
1217
1218 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1219
1220 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1221 rtx_insn *, eliminating a checked cast.
1222
1223 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1224
1225 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1226 const_rtx to const rtx_insn *.
1227 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1228 cast.
1229
1230 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1231
1232 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1233 fixup_args_size_notes.
1234 * expr.c (fixup_args_size_notes): Strengthen first two params from
1235 rtx to rtx_insn *, eliminating a checked cast.
1236 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1237 rtx to rtx_insn *.
1238
1239 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1240
1241 * haifa-sched.c (get_ready_element): Strengthen return type from
1242 rtx to rtx_insn *.
1243 * sched-int.h (get_ready_element): Likewise.
1244
1245 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1246
1247 PR target/63165
1248 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1249 indexed_or_indirect_operand instead of memory_operand.
1250 (floatsi<mode>2_lfiwzx_mem): Ditto.
1251
1252 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1253
1254 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1255 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1256 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1257
1258 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1259
1260 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1261 rtx.
1262 (get_last_nonnote_insn): Likewise.
1263 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1264 * resource.c (find_basic_block): Likewise.
1265 * rtl.h: Adjust.
1266 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1267 const_rtx.
1268
1269 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1270
1271 * genattr.c (main): Within the prototype of insn_latency written
1272 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1273 * genautomata.c (output_internal_maximal_insn_latency_func):
1274 Within the implementation of insn_latency written out to
1275 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1276 eliminating a pair of checked casts.
1277
1278 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1279
1280 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1281 rtx_insn *.
1282
1283 * rtl.h (eh_returnjump_p): Likewise.
1284
1285 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1286
1287 * Makefile.in (TAGS): Handle constructs in timevar.def.
1288
1289 2014-09-04 Guozhi Wei <carrot@google.com>
1290
1291 PR target/62040
1292 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1293 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1294 it into two patterns.
1295 (move_lo_quad_internal_be_<mode>): Likewise.
1296
1297 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1298
1299 * doc/options.texi: Document that Var and Init are required if CPP
1300 is given.
1301 * optc-gen.awk: Require Var and Init if CPP is given.
1302 * common.opt (Wpedantic): Use Init.
1303
1304 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1305
1306 * config/rs6000/rs6000.c (special_handling_values): Add
1307 SH_EXTRACT.
1308 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1309 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1310 as swappable with special handling SH_EXTRACT. Remove
1311 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1312 optimization.
1313 (adjust_extract): New function.
1314 (handle_special_swappables): Add default to case statement; add
1315 case for SH_EXTRACT that calls adjust_extract.
1316 (dump_swap_insn_table): Handle SH_EXTRACT.
1317
1318 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1319
1320 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1321 selection of 0th memory doubleword, regardless of endianness.
1322
1323 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1324
1325 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1326
1327 2014-09-04 Alan Modra <amodra@gmail.com>
1328
1329 PR debug/60655
1330 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1331 can't be output.
1332
1333 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1334
1335 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1336 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1337 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1338 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1339 * doc/tm.texi: Regenerate.
1340 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1341 selection logic to default_dwarf_frame_reg_mode.
1342
1343 2014-09-03 Marek Polacek <polacek@redhat.com>
1344
1345 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1346 by -Wall.
1347
1348 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1349
1350 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1351 the automodified register.
1352
1353 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1354
1355 * output.h (get_some_local_dynamic_name): Declare.
1356 * final.c (some_local_dynamic_name): New variable.
1357 (get_some_local_dynamic_name): New function.
1358 (final_end_function): Clear some_local_dynamic_name.
1359 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1360 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1361 (print_operand): Report an error if '%&' is used inappropriately.
1362 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1363 (get_some_local_dynamic_name_1): Delete.
1364 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1365 (rs6000_get_some_local_dynamic_name): Delete.
1366 (rs6000_get_some_local_dynamic_name_1): Delete.
1367 (print_operand): Report an error if '%&' is used inappropriately.
1368 * config/s390/s390.c (machine_function): Remove some_ld_name.
1369 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1370 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1371 * config/sparc/sparc.c: Include rtl-iter.h.
1372 (machine_function): Remove some_ld_name.
1373 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1374 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1375
1376 2014-09-03 Richard Henderson <rth@redhat.com>
1377
1378 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1379 (aarch64_popwb_pair_reg): Remove.
1380 (aarch64_set_frame_expr): Remove.
1381 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1382 the restore ops performed by the insns generated.
1383 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1384 insn. Perform the calls_eh_return addition later; do not attempt to
1385 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
1386 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
1387 special markup at all. Load cfun->machine->frame.hard_fp_offset
1388 into a local variable.
1389 (aarch64_frame_pointer_required): Don't check calls_alloca.
1390
1391 2014-09-03 Richard Biener <rguenther@suse.de>
1392
1393 * opts.c (default_options_optimization): Adjust
1394 max-combine-insns to 2 for -Og.
1395
1396 2014-09-03 Martin Jambor <mjambor@suse.cz>
1397
1398 PR ipa/62015
1399 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
1400 pass-trough jump functions correctly.
1401
1402 2014-09-03 Martin Jambor <mjambor@suse.cz>
1403
1404 PR ipa/61986
1405 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
1406 created replacements in ascending order of offsets.
1407 (known_aggs_to_agg_replacement_list): Likewise.
1408
1409 2014-09-03 Martin Liska <mliska@suse.cz>
1410
1411 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
1412 is set to set uninitialized value for vnresult.
1413
1414 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1415
1416 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
1417 for TARGET_MUST_PASS_IN_STACK.
1418
1419 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1420
1421 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
1422 for TARGET_ARG_PARTIAL_BYTES.
1423
1424 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1425
1426 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
1427 instructions for varargs implementation.
1428 (nds32_expand_epilogue): Emit stack adjustment instructions for
1429 varargs implementation.
1430
1431 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1432
1433 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
1434 optimization detection.
1435
1436 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1437
1438 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
1439 arguments.
1440 (nds32_function_arg_advance): Deal with nameless arguments.
1441 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
1442 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
1443 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
1444
1445 2014-09-03 Richard Biener <rguenther@suse.de>
1446
1447 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
1448 (struct bb_bitmap_sets): Remove deferred member.
1449 (BB_DEFERRED): Remove.
1450 (defer_or_phi_translate_block): Remove.
1451 (compute_antic_aux): Remove deferring of blocks, assert
1452 proper iteration order.
1453 (compute_antic): Do not set BB_DEFERRED.
1454 (eliminate): Allocate el_avail of proper size initially.
1455
1456 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1457
1458 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
1459 according to the value of crtl->args.pretend_args_size.
1460
1461 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1462
1463 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
1464 varargs information.
1465
1466 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1467
1468 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
1469 implementation for TARGET_SETUP_INCOMING_VARARGS.
1470 (nds32_strict_argument_naming): Refine comment.
1471 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
1472 Define for future implementation.
1473
1474 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
1475
1476 * config/i386/adxintrin.h (_subborrow_u32): New.
1477 (_addcarry_u32): Ditto.
1478 (_subborrow_u64): Ditto.
1479 (_addcarry_u64): Ditto.
1480 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
1481 IX86_BUILTIN_SBB64.
1482 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
1483 __builtin_ia32_sbb_u64
1484
1485 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1486
1487 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1488 GPR-specific stuff.
1489 (nds32_function_arg_advance): Likewise.
1490 (nds32_init_cumulative_args): Likewise.
1491 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1492 (NDS32_FIRST_GPR_REGNUM): Define.
1493 (NDS32_LAST_GPR_REGNUM): Define.
1494 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1495 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1496 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1497 (machine_function): Use GRP-specific stuff.
1498
1499 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1500
1501 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1502 (nds32_expand_epilogue): Likewise.
1503 (nds32_expand_prologue_v3push): Likewise.
1504 (nds32_expand_epilogue_v3pop): Likewise.
1505
1506 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1507
1508 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1509 v3push/v3pop for variadic function.
1510 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1511
1512 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1513
1514 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1515 Check rtx for varargs implementation.
1516 (nds32_output_stack_pop): Likewise.
1517 * config/nds32/nds32-protos.h: Have a rtx argument for
1518 nds32_output_stack_push and nds32_output_stack_pop.
1519 * config/nds32/nds32.md: Likewise.
1520
1521 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1522
1523 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1524 to check if FUNC is an interrupt service routine.
1525 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1526
1527 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1528
1529 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1530 arguments implementation.
1531
1532 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1533
1534 * config/nds32/nds32-predicates.c
1535 (nds32_valid_stack_push_pop): Rename to ...
1536 (nds32_valid_stack_push_pop_p): ... this.
1537 * config/nds32/nds32-protos.h: Likewise.
1538 * config/nds32/predicates.md: Likewise.
1539
1540 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1541
1542 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1543 (nds32_emit_stack_v3push): ... this.
1544 (nds32_gen_stack_v3pop): Rename to ...
1545 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1546 information.
1547
1548 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1549
1550 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1551 (nds32_emit_stack_push_multiple): ... this.
1552 (nds32_gen_stack_pop_multiple): Rename to ...
1553 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1554 information.
1555
1556 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1557
1558 PR target/61078
1559 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1560 and add a second splitter to handle the remaining cases.
1561
1562 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1563
1564 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1565
1566 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1567
1568 * cfgexpand.c (label_rtx_for_bb): Change type to
1569 hash_map<basic_block, rtx_code_label *> *.
1570 (expand_gimple_basic_block): Adjust.
1571 (pass_expand::execute): Likewise.
1572
1573 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1574
1575 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1576 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1577 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1578 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1579 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1580 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1581 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1582 of rtx.
1583
1584 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1585
1586 * alloc-pool.c: Include coretypes.h.
1587 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1588 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1589 hash_set instead of htab.
1590 * ggc-page.c (in_gc): New variable.
1591 (ggc_free): Do nothing if a collection is taking place.
1592 (ggc_collect): Set in_gc appropriately.
1593 * ggc.h (gt_ggc_mx(const char *)): New function.
1594 (gt_pch_nx(const char *)): Likewise.
1595 (gt_ggc_mx(int)): Likewise.
1596 (gt_pch_nx(int)): Likewise.
1597 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1598 (hash_map::hash_entry::pch_nx): Likewise.
1599 (hash_map::hash_entry::pch_nx_helper): Likewise.
1600 (hash_map::hash_map): Adjust.
1601 (hash_map::create_ggc): New function.
1602 (gt_ggc_mx): Likewise.
1603 (gt_pch_nx): Likewise.
1604 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1605 (default_hashset_traits::pch_nx): Likewise.
1606 (hash_set::hash_entry::ggc_mx): Likewise.
1607 (hash_set::hash_entry::pch_nx): Likewise.
1608 (hash_set::hash_entry::pch_nx_helper): Likewise.
1609 (hash_set::hash_set): Adjust.
1610 (hash_set::create_ggc): New function.
1611 (hash_set::elements): Likewise.
1612 (gt_ggc_mx): Likewise.
1613 (gt_pch_nx): Likewise.
1614 * hash-table.h (hash_table::hash_table): Adjust.
1615 (hash_table::m_ggc): New member.
1616 (hash_table::~hash_table): Adjust.
1617 (hash_table::expand): Likewise.
1618 (hash_table::empty): Likewise.
1619 (gt_ggc_mx): New function.
1620 (hashtab_entry_note_pointers): Likewise.
1621 (gt_pch_nx): Likewise.
1622
1623 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1624
1625 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
1626 built-in definition.
1627 (XVCVUXDDP_SCALE): Likewise.
1628 (XVCVDPSXDS_SCALE): Likewise.
1629 (XVCVDPUXDS_SCALE): Likewise.
1630 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1631 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1632 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1633 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1634 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1635 prototype.
1636 * config/rs6000/rs6000.c (real.h): New include.
1637 (rs6000_scale_v2df): New function.
1638 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1639 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1640 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1641 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1642 (vsx_xvcvsxddp_scale): New define_expand.
1643 (vsx_xvcvsxddp): New define_insn.
1644 (vsx_xvcvuxddp_scale): New define_expand.
1645 (vsx_xvcvuxddp): New define_insn.
1646 (vsx_xvcvdpsxds_scale): New define_expand.
1647 (vsx_xvcvdpsxds): New define_insn.
1648 (vsx_xvcvdpuxds_scale): New define_expand.
1649 (vsx_xvcvdpuxds): New define_insn.
1650 * doc/extend.texi (vec_ctf): Add new prototypes.
1651 (vec_cts): Likewise.
1652 (vec_ctu): Likewise.
1653 (vec_splat): Likewise.
1654 (vec_div): Likewise.
1655 (vec_mul): Likewise.
1656
1657 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1658
1659 PR target/62275
1660 * config/arm/neon.md
1661 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1662 <v_cmp_result>): New pattern.
1663 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1664 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1665 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1666 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1667 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1668 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1669
1670 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1671
1672 PR target/62275
1673 * config/arm/iterators.md (FIXUORS): New code iterator.
1674 (VCVT): New int iterator.
1675 (su_optab): New code attribute.
1676 (su): Likewise.
1677 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1678
1679 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1680
1681 * config/aarch64/predicates.md (aarch64_comparison_operation):
1682 New special predicate.
1683 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1684 aarch64_comparison_operation instead of matching an operator.
1685 Update operand numbers.
1686 (csinc3<mode>_insn): Likewise.
1687 (*csinv3<mode>_insn): Likewise.
1688 (*csneg3<mode>_insn): Likewise.
1689 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1690 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1691 Return -1 instead of aborting on invalid condition codes.
1692 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1693 to assert that the returned condition code is valid.
1694 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1695
1696 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1697
1698 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1699 tree.def, and gimple.def
1700
1701 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1702 Balaji V. Iyer <balaji.v.iyer@intel.com>
1703 Igor Zamyatin <igor.zamyatin@intel.com>
1704
1705 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1706 (__cilkrts_cilk_for_64): Likewise.
1707 * cilk-common.c (declare_cilk_for_builtin): New function.
1708 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1709 __cilkrts_cilk_for_64 bultins.
1710 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1711 CILK_TI_F_LOOP_64.
1712 (cilk_for_32_fndecl): New define.
1713 (cilk_for_64_fndecl): Likewise.
1714 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1715 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1716 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1717 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1718 GF_OMP_FOR_COMBINED_INTO.
1719 * gimplify.c (gimplify_scan_omp_clauses): Added
1720 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1721 (gimplify_adjust_omp_clauses): Ditto.
1722 (gimplify_omp_for): Added CILK_FOR case.
1723 (gimplify_expr): Ditto.
1724 * omp-low.c: Include cilk.h.
1725 (extract_omp_for_data): Set appropriate kind for
1726 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1727 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1728 (create_omp_child_function_name): Added second argument to handle
1729 cilk_for case.
1730 (cilk_for_check_loop_diff_type): New function.
1731 (expand_cilk_for_call): Likewise.
1732 (expand_cilk_for): Likewise.
1733 (create_omp_child_function): Set cilk_for_count; handle the cases when
1734 it is true; call create_omp_child_function_name with second argument.
1735 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1736 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1737 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1738 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1739 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1740 (convert_local_omp_clauses): Ditto.
1741 * tree-pretty-print.c (dump_omp_clause): Added
1742 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1743 (dump_generic_node): Added CILK_FOR case.
1744 * tree.c (omp_clause_num_ops): New element
1745 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1746 (omp_clause_code_name): New element _Cilk_for_count_.
1747 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1748 * tree.def: Add tree code for CILK_FOR.
1749
1750 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1751
1752 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1753 (ppc403-compare): Add "exts with dot" case.
1754 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1755 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1756 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1757 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1758 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1759 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1760 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1761 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1762 cell-cmp-microcoded): Similarly.
1763 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1764 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1765 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1766 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1767 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1768 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1769 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1770 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1771 (power6-compare): Add "exts with dot" case.
1772 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1773 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1774 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1775
1776 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1777 if avoiding Cell microcode.
1778 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1779 (is_cracked_insn): Ditto.
1780 (insn_must_be_first_in_group): Ditto.
1781 * config/rs6000/rs6000.md (dot): Adjust comment.
1782 (cell_micro): Handle exts+dot.
1783 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1784 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1785 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1786 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1787 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1788 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1789 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1790
1791 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1792
1793 * config/rs6000/rs6000.md (QHSI): Delete.
1794 (EXTQI, EXTHI, EXTSI): New mode iterators.
1795 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1796 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1797 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1798 9 anonymous instructions, and 8 splitters): Delete.
1799 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1800 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1801 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1802 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1803 *zero_extendsi<mode>2_dot2): New.
1804
1805 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1806
1807 * config/rs6000/rs6000.md (any_extend): New code iterator.
1808 (u, su): New code attributes.
1809 (dmode, DMODE): New mode attributes.
1810 (<su>mul<mode>3_highpart): New.
1811 (*<su>mul<mode>3_highpart): New.
1812 (<su>mulsi3_highpart_le): New.
1813 (<su>muldi3_highpart_le): New.
1814 (<su>mulsi3_highpart_64): New.
1815 (<u>mul<mode><dmode>3): New.
1816 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1817 splitters): Delete.
1818 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1819 splitters): Delete.
1820
1821 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1822
1823 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1824 *mulsi3_internal2, and two splitters): Delete.
1825 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1826 Delete.
1827 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1828
1829 2014-09-02 Richard Biener <rguenther@suse.de>
1830
1831 PR tree-optimization/62695
1832 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1833 vector truncate.
1834
1835 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1836
1837 PR target/62312
1838 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1839
1840 2014-09-01 Andi Kleen <ak@linux.intel.com>
1841
1842 * file-find.c (add_prefix_begin): Add.
1843 (do_add_prefix): Rename from add_prefix with first argument.
1844 (add_prefix): Add new wrapper.
1845 * file-find.h (add_prefix_begin): Add.
1846 * gcc-ar.c (main): Support -B option.
1847
1848 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
1849
1850 * genemit.c: Include dumpfile.h.
1851 (gen_split): Print name of splitter function to dump file.
1852
1853 2014-09-01 Richard Biener <rguenther@suse.de>
1854
1855 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
1856 Use stack auto_vecs for constraint expressions.
1857 (find_func_aliases_for_call): Likewise.
1858 (find_func_aliases): Likewise.
1859 (find_func_clobbers): Likewise.
1860
1861 2014-09-01 Richard Biener <rguenther@suse.de>
1862
1863 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
1864 operands vector in most cases. Remove redundant code.
1865
1866 2014-09-01 Olivier Hainque <hainque@adacore.com>
1867
1868 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
1869 $WIND_BASE instead of designating a harcoded arbitrary home dir.
1870 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
1871
1872 2014-09-01 Richard Biener <rguenther@suse.de>
1873
1874 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
1875 copy_reference_ops_from_call, vn_nary_op_compute_hash,
1876 vn_reference_compute_hash, vn_reference_insert): Remove.
1877 (vn_reference_lookup_call): New function.
1878 * tree-ssa-sccvn.c (vn_reference_compute_hash,
1879 copy_reference_ops_from_ref, copy_reference_ops_from_call,
1880 vn_reference_insert, vn_nary_op_compute_hash): Make static.
1881 (create_reference_ops_from_call): Remove.
1882 (vn_reference_lookup_3): Properly update shared_lookup_references.
1883 (vn_reference_lookup_pieces): Assert that we updated
1884 shared_lookup_references properly.
1885 (vn_reference_lookup): Likewise.
1886 (vn_reference_lookup_call): New function.
1887 (visit_reference_op_call): Use it. Avoid re-building the
1888 reference ops.
1889 (visit_reference_op_load): Remove redundant lookup.
1890 (visit_reference_op_store): Perform special tail-merging work
1891 only when possibly doing tail-merging.
1892 (visit_use): Likewise.
1893 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
1894
1895 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1896
1897 PR target/62025
1898 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
1899 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
1900 (find_inc): Revert 2014-08-13 change.
1901
1902 2014-09-01 Marek Polacek <polacek@redhat.com>
1903
1904 PR middle-end/61903
1905 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
1906 Change the type of V to unsigned HOST_WIDE_INT.
1907
1908 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1909
1910 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
1911 the size of byte markers.
1912 (do_shift_rotate): Fix confusion between host, target and marker byte
1913 size.
1914 (verify_symbolic_number_p): Likewise.
1915 (find_bswap_or_nop_1): Likewise.
1916 (find_bswap_or_nop): Likewise.
1917
1918 2014-09-01 Olivier Hainque <hainque@adacore.com>
1919
1920 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
1921 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
1922
1923 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1924
1925 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
1926 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
1927 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
1928
1929 2014-09-01 Yury Gribov <y.gribov@samsung.com>
1930
1931 PR sanitizer/61897
1932 PR sanitizer/62140
1933 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
1934 (build_check_stmt): Likewise.
1935 (instrument_strlen_call): Likewise.
1936 (asan_expand_check_ifn): Likewise and fix types.
1937 (maybe_cast_to_ptrmode): New function.
1938
1939 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1940
1941 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
1942
1943 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1944
1945 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
1946
1947 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
1948
1949 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
1950 prefix to function labels when generating fast indirect calls.
1951
1952 2014-08-30 David Malcolm <dmalcolm@redhat.com>
1953
1954 PR bootstrap/62304
1955
1956 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
1957 param back from rtx_insn * to rtx. Rename param from "label" to
1958 "label_or_return", reintroducing "label" as an rtx_insn * after
1959 we've ensured it's not a RETURN.
1960 (first_active_target_insn): Likewise for return type and param;
1961 add a checked cast to rtx_insn * once we've ensured "insn" is not
1962 a RETURN.
1963 (steal_delay_list_from_target): Convert param "pnew_thread" back
1964 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
1965 with JUMP_LABEL.
1966 (own_thread_p): Convert param "thread" back from an rtx_insn * to
1967 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
1968 cast once we've established we're not dealing with a RETURN,
1969 renaming subsequent uses of "thread" to "thread_insn".
1970 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
1971 to JUMP_LABEL.
1972 (follow_jumps): Convert return type and param "label" from
1973 rtx_insn * back to rtx. Move initialization of "value" to after
1974 the handling for ANY_RETURN_P, adding a checked cast there to
1975 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
1976 rename to "this_label_or_return", reintroducing "this_label" as
1977 an rtx_insn * once we've handled the case where it could be an
1978 ANY_RETURN_P.
1979 (fill_slots_from_thread): Rename param "thread" to
1980 "thread_or_return", converting from an rtx_insn * back to an rtx.
1981 Reintroduce name "thread" as an rtx_insn * local with a checked
1982 cast once we've handled the case of it being an ANY_RETURN_P.
1983 Convert local "new_thread" from an rtx_insn * back to an rtx.
1984 Add a checked cast when assigning to "trial" from "new_thread".
1985 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
1986 checked cast to rtx_insn * from "new_thread" when invoking
1987 get_label_before.
1988 (fill_eager_delay_slots): Convert locals "target_label",
1989 "insn_at_target" from rtx_insn * back to rtx.
1990 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
1991 (relax_delay_slots): Convert locals "trial", "target_label" from
1992 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
1993 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
1994 invoking update_block.
1995 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
1996 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
1997
1998 * resource.h (mark_target_live_regs): Undo erroneous conversion
1999 of second param of r214693, converting it back from rtx_insn * to
2000 rtx, since it could be a RETURN.
2001
2002 * resource.c (find_dead_or_set_registers): Similarly, convert
2003 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2004 could be writing back a RETURN. Rename local rtx_insn * "next" to
2005 "next_insn", and introduce "lab_or_return" as a local rtx,
2006 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2007 (mark_target_live_regs): Undo erroneous conversion
2008 of second param of r214693, converting it back from rtx_insn * to
2009 rtx, since it could be a RETURN. Rename it from "target" to
2010 "target_maybe_return", reintroducing the name "target" as a local
2011 rtx_insn * with a checked cast, after we've handled the case of
2012 ANY_RETURN_P.
2013
2014 2014-08-29 DJ Delorie <dj@redhat.com>
2015
2016 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2017 pointer size up to a power of two.
2018 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2019 (POINTER_SIZE_UNITS): New, rounded up value.
2020 * dwarf2asm.c (size_of_encoded_value): Use it.
2021 (dw2_output_indirect_constant_1): Likewise.
2022 * expmed.c (init_expmed_one_conv): We now know the sizes of
2023 partial int modes.
2024 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2025 * optabs.c (expand_float): Use precision, not size.
2026 (expand_fix): Likewise.
2027 * simplify-rtx (simplify_unary_operation_1): Likewise.
2028 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2029 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2030 (default_assemble_integer) Likewise.
2031 (dump_tm_clone_pairs): Likewise.
2032 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2033 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2034 (prepare_call_arguments): Likewise.
2035 * stor-layout.c (finalize_type_size): Preserve precision.
2036 (layout_type): Use precision, not size.
2037
2038 * expr.c (convert_move): If the target has an explicit converter,
2039 use it.
2040
2041 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2042
2043 * gdbinit.in: Skip various inline functions in rtl.h when
2044 stepping.
2045
2046 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2047
2048 PR bootstrap/62301
2049 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2050
2051 2014-08-29 Richard Biener <rguenther@suse.de>
2052
2053 PR tree-optimization/62291
2054 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2055 exactly the vector size needed and use quick_push.
2056 (phi_translate_1): Adjust comment.
2057 (valid_in_sets): Remove block argument and remove pointless
2058 checking of NAMEs.
2059 (dependent_clean): Adjust for removal of block argument.
2060 (clean): Likewise.
2061 (compute_antic_aux): Likewise.
2062 (compute_partial_antic_aux): Likewise.
2063
2064 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2065 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2066 Anna Tikhonova <anna.tikhonova@intel.com>
2067 Ilya Tocar <ilya.tocar@intel.com>
2068 Andrey Turetskiy <andrey.turetskiy@intel.com>
2069 Ilya Verbin <ilya.verbin@intel.com>
2070 Kirill Yukhin <kirill.yukhin@intel.com>
2071 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2072
2073 * config/i386/sse.md
2074 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2075 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2076 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2077 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2078
2079 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2081 Anna Tikhonova <anna.tikhonova@intel.com>
2082 Ilya Tocar <ilya.tocar@intel.com>
2083 Andrey Turetskiy <andrey.turetskiy@intel.com>
2084 Ilya Verbin <ilya.verbin@intel.com>
2085 Kirill Yukhin <kirill.yukhin@intel.com>
2086 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2087
2088 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2089 * config/i386/sse.md
2090 (define_mode_iterator VI4_128_8_256): New.
2091 (define_mode_iterator VI2_128_4_256): Ditto.
2092 (define_mode_iterator PMOV_DST_MODE): Rename into
2093 (define_mode_iterator PMOV_DST_MODE_1): this.
2094 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2095 Use PMOV_DST_MODE_1 mode iterator.
2096 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2097 Ditto.
2098 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2099 Ditto.
2100 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2101 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2102 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2103 (define_mode_iterator PMOV_DST_MODE_2): New.
2104 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2105 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2106 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2107 Ditto.
2108 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2109 (define_mode_attr pmov_dst_3): Ditto.
2110 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2111 (define_mode_attr pmov_suff_3): Ditto.
2112 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2113 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2114 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2115 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2116 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2117 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2118 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2119 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2120 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2121 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2122 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2123 (define_mode_attr pmov_dst_4): Ditto.
2124 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2125 (define_mode_attr pmov_suff_4): Ditto.
2126 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2127 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2128 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2129 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2130 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2131 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2132 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2133 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2134 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2135 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2136 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2137
2138 2014-08-29 Richard Biener <rguenther@suse.de>
2139
2140 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2141 NON_LVALUE_EXPR in gimple.
2142
2143 2014-08-29 Richard Biener <rguenther@suse.de>
2144
2145 PR middle-end/62292
2146 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2147 from previous refactoring.
2148 (gimple_fold_builtin_strncpy): Likewise.
2149
2150 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2151
2152 PR bootstrap/62300
2153 * function.c (assign_parm_setup_reg): Remove erroneous checked
2154 cast to rtx_insn * on result of gen_extend_insn in favor of
2155 introducing a new local rtx "pat".
2156
2157 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2158
2159 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2160 to silence warning.
2161 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2162
2163 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2164
2165 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2166 (next_insn): Likewise.
2167 * emit-rtl.c (next_insn): Likewise.
2168 (previous_insn): Likewise.
2169 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2170 "insn" and "next" from rtx to rtx_insn *.
2171 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2172 "insn", "insn1", "vliw_start", "prologue_end_note",
2173 "last_insn_in_packet".
2174
2175 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2176
2177 * shrink-wrap.h (active_insn_between): Strengthen both params from
2178 rtx to rtx_insn *.
2179 * function.c (active_insn_between): Likewise.
2180
2181 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2182
2183 * genattr.c (main): When writing out insn-attr.h, strengthen param
2184 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2185 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2186 writing out the definition of dfa_clear_single_insn_cache to the
2187 generated insn-automata.c
2188
2189 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2190
2191 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2192 rtx to rtx_insn *.
2193 (incr_ticks_for_insn): Likewise.
2194 (init_resource_info): Likewise.
2195
2196 * resource.c (init_resource_info): Likewise.
2197 (clear_hashed_info_for_insn): Likewise.
2198 (incr_ticks_for_insn): Likewise.
2199
2200 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2201 rtx to rtx_insn *.
2202 (steal_delay_list_from_target): Use methods of "seq".
2203 (try_merge_delay_insns): Use methods of "merged_insns".
2204 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2205 (reorg_redirect_jump): Likewise for param "jump".
2206
2207 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2208
2209 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2210 rtx to rtx_insn *.
2211 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2212 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2213 "set_insn".
2214 (s390_mainpool_finish): In three places, split out a local rtx
2215 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2216 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2217 and split another local rtx "insn" out into rtx "pat" and
2218 rtx_insn * "insn".
2219 * config/sh/sh.c (output_branchy_insn): Rather than working
2220 directly on operands[9], introduce local rtx_code_label *
2221 variables named "lab" in two places, working on them, and then
2222 assigning them to operands[9], so that the intervening operations
2223 are known by the type system to be on insns.
2224
2225 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2226
2227 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2228 const rtx_insn *.
2229
2230 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2231 in invocation of INSN_HAS_LOCATION.
2232
2233 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2234
2235 * config/rs6000/altivec.h (vec_xl): New #define.
2236 (vec_xst): Likewise.
2237 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2238 (XXSPLTD_V2DI): Likewise.
2239 (DIV_V2DI): Likewise.
2240 (UDIV_V2DI): Likewise.
2241 (MUL_V2DI): Likewise.
2242 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2243 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2244 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2245 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2246 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2247 (UNSPEC_VSX_DIVSD): Likewise.
2248 (UNSPEC_VSX_DIVUD): Likewise.
2249 (UNSPEC_VSX_MULSD): Likewise.
2250 (vsx_mul_v2di): New insn-and-split.
2251 (vsx_div_v2di): Likewise.
2252 (vsx_udiv_v2di): Likewise.
2253 (vsx_xxspltd_<mode>): New insn.
2254
2255 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2256
2257 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2258 NEXT_INSN.
2259 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2260 (NEXT_INSN): Likewise.
2261 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2262 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2263 const rtx_insn *.
2264 (no_labels_between_p): Likewise for both params.
2265
2266 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2267 cast when using NEXT_INSN on operands[2].
2268 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2269 "insn" from rtx to rtx_insn *, adding a checked cast.
2270 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2271 rtx_insn *.
2272 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2273 for third param.
2274 (arc_text_label): Likewise for param "insn".
2275 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2276 "insn".
2277 (arc_ccfsm_record_condition): Likewise for param "jump".
2278 (arc_text_label): Likewise for local "label".
2279 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2280 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2281 a method for typesafety. Add a checked cast.
2282 * config/arc/constraints.md (Clb): Add a checked cast when getting
2283 the CODE_LABEL from a LABEL_REF.
2284 * config/arm/arm.c (require_pic_register): Strengthen locals
2285 "seq", "insn" from rtx to rtx_insn *.
2286 (create_fix_barrier): Likewise for locals "selected", "next".
2287 (thumb1_reorg): Likewise for locals "prev", "insn".
2288 (arm_expand_prologue): Likewise for local "last".
2289 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2290 operands[0].
2291 (thumb2_output_casesi): Likewise for operands[2].
2292 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2293 strengthen local "insn" from rtx to rtx_insn *.
2294 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2295 type and param "insn".
2296 (find_prev_insn_start): Likewise.
2297 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2298 "prev".
2299 (gen_one_bundle): Likewise for loal "t".
2300 (find_load): Likewise for param "insn".
2301 (workaround_speculation): Likewise for locals "insn", "next",
2302 "target", "next_tgt".
2303 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2304 and for locals "insn", "within", "last".
2305 (count_unit_reqs): Likewise for params "head", "tail" and local
2306 "insn".
2307 (try_rename_operands): Likewise for params "head", "tail".
2308 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2309 (struct c6x_sched_context): Likewise for fields
2310 "last_scheduled_insn", "last_scheduled_iter0".
2311 (init_sched_state): Replace NULL_RTX with NULL.
2312 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2313 to rtx_insn *.
2314 (undo_split_delayed_nonbranch): Likewise for param and for local
2315 "prev".
2316 (conditionalize_after_sched): Likewise for local "insn".
2317 (bb_earliest_end_cycle): Likewise.
2318 (filter_insns_above): Likewise for locals "insn", "next".
2319 (hwloop_optimize): Remove redundant checked cast.
2320 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2321 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2322 NULL_RTX with NULL.
2323 (cris_simple_epilogue): Likewise.
2324 (cris_expand_prologue): Likewise.
2325 (cris_expand_epilogue): Likewise.
2326 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2327 local "insn" from rtx to rtx_insn *.
2328 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2329 (struct frv_packet_group): Likewise for the elements within array
2330 fields "insns", "sorted", and for field "nop".
2331 (frv_packet): Likewise for the elements within array field
2332 "insns".
2333 (frv_add_insn_to_packet): Likewise for param "insn".
2334 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2335 "last".
2336 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2337 (frv_sort_insn_group_1): Likewise for local "insn".
2338 (frv_optimize_membar_local): Likewise.
2339 (frv_align_label): Likewise for locals "x", "last", "barrier",
2340 "label".
2341 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2342 local.
2343 (ia64_sched_init): Likewise for local "insn".
2344 (scheduled_good_insn): Likewise for param "last".
2345 (struct _ia64_sched_context): Likewise for field
2346 "last_scheduled_insn".
2347 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2348 (struct bundle_state): Likewise for field "insn".
2349 (issue_nops_and_insn): Likewise for param "insn".
2350 (get_next_important_insn): Likewise for return type and both
2351 params.
2352 (ia64_add_bundle_selector_before): Likewise for param "insn".
2353 (bundling): Likewise for params "prev_head_insn", "tail" and
2354 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2355 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2356 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2357 Strengthen final param from rtx to rtx_insn *.
2358 (iq2000_move_1word): Likewise for second param.
2359 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2360 param "cur_insn" and local "next_insn".
2361 (iq2000_move_1word): Likewise for param "insn".
2362 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2363 casts when using NEXT_INSN on operands[1].
2364 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2365 "insn" from rtx to rtx_insn *.
2366 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2367 "x", introducing local rtx_insn * "insn" for when working with the
2368 CODE_LABEL of the LABEL_REF.
2369 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2370 rtx_insn *.
2371 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2372 param.
2373 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2374 type.
2375 (conditionalize_block): Likewise for return type and param.
2376 (mcore_is_dead): Likewise for param "first" and local "insn".
2377 (emit_new_cond_insn): Likewise for return type.
2378 (conditionalize_block): Likewise for return type, param, and
2379 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2380 "newinsn".
2381 (conditionalize_optimization): Likewise for local "insn".
2382 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2383 using NEXT_INSN.
2384 * config/microblaze/microblaze.md: Add checked casts when using
2385 NEXT_INSN.
2386 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
2387 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
2388 and rtx_insn * "insn".
2389 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
2390 checked cast when using NEXT_INSN on operands[2].
2391 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
2392 local "insn" from rtx to rtx_insn *.
2393 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
2394 Likewise.
2395 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
2396 Add a checked cast when using NEXT_INSN on operands[1].
2397 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
2398 rtx to rtx_insn *.
2399 (pa_output_cbranch): Likewise for final param.
2400 (pa_output_lbranch): Likewise for second param.
2401 (pa_output_bb): Likewise for third param.
2402 (pa_output_bvb): Likewise.
2403 (pa_output_dbra): Likewise for second param.
2404 (pa_output_movb): Likewise.
2405 (pa_output_parallel_movb): Likewise.
2406 (pa_output_parallel_addb): Likewise.
2407 (pa_output_millicode_call): Likewise for first param.
2408 (pa_output_mul_insn): Likewise for second param.
2409 (pa_output_div_insn): Likewise for third param.
2410 (pa_output_mod_insn): Likewise for second param.
2411 (pa_jump_in_call_delay): Likewise for param.
2412 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
2413 (pa_output_div_insn): Likewise.
2414 (pa_output_mod_insn): Likewise.
2415 (pa_output_cbranch): Likewise.
2416 (pa_output_lbranch): Likewise.
2417 (pa_output_bb): Likewise.
2418 (pa_output_bvb): Likewise.
2419 (pa_output_dbra): Likewise.
2420 (pa_output_movb): Likewise.
2421 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
2422 to simplify and for typesafety.
2423 (pa_output_call): Use method of rtx_sequence *.
2424 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
2425 (pa_jump_in_call_delay): Likewise.
2426 (pa_output_parallel_movb): Likewise.
2427 (pa_output_parallel_addb): Likewise.
2428 (pa_following_call): Likewise.
2429 (pa_combine_instructions): Likewise for locals "anchor",
2430 "floater".
2431 (pa_can_combine_p): Likewise for params "anchor", "floater" and
2432 locals "start", "end".
2433 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
2434 param "insn" and local "local_insn".
2435 (picochip_final_prescan_insn): Likewise for local "local_insn".
2436 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
2437 local "insn".
2438 (uses_TOC): Likewise.
2439 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
2440 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
2441 splitting out to more tightly-scoped locals, 3 as rtx and one as
2442 rtx_insn *.
2443 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
2444 to rtx_insn *.
2445 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
2446 where needed.
2447 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
2448 to rtx_insn *.
2449 (fixup_addr_diff_vecs): Likewise.
2450 (reg_unused_after): Likewise for param 2.
2451 (sh_can_redirect_branch): Likewise for both params.
2452 (check_use_sfunc_addr): Likewise for param 1.
2453 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
2454 (find_barrier): Likewise for local "last_got".
2455 (gen_block_redirect): Likewise for return type, param "jump" and
2456 locals "prev", "scan", "next", "insn".
2457 (struct far_branch): Likewise for fields "near_label",
2458 "insert_place", "far_label".
2459 (gen_far_branch): Likewise for local "jump".
2460 (fixup_addr_diff_vecs): Likewise for param "first" and locals
2461 "insn", "prev".
2462 (barrier_align): Likewise for param and for locals "prev", "x".
2463 Introduce local rtx_sequence * "prev_seq" and use insn method for
2464 typesafety and clarity.
2465 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
2466 (get_dest_uid): Likewise for local "dest".
2467 (split_branches): Likewise for locals "next", "beyond", "label",
2468 "block", "far_label". Add checked casts when assigning to
2469 bp->far_label and "far_label".
2470 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
2471 (sequence_insn_p): Likewise.
2472 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
2473 more loop-scoped rtx "insn" when walking LABEL_REFS.
2474 (sh_can_redirect_branch): Strengthen both params from rtx to
2475 rtx_insn *.
2476 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
2477 new local rtx_sequence * "seq" via a dyn_cast, and use a method
2478 for clarity and typesafety.
2479 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
2480 "insn" from rtx to rtx_insn *.
2481 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
2482 when using NEXT_INSN on the CODE_LABEL in operands[2].
2483 (define_insn "casesi_worker_2"): Likewise.
2484 (define_insn "casesi_shift_media"): Likewise.
2485 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2486 operands[3].
2487 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2488 Strengthen field "insn" from rtx to rtx_insn *.
2489 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2490 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2491 param "start_insn" and local "start_insn".
2492 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2493 field "insn".
2494 (find_set_of_reg_bb): Likewise for param "insn".
2495 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2496 (trace_reg_uses): Likewise for param "start_insn".
2497 (sh_treg_combine::cbranch_trace): Likewise for field
2498 "cbranch_insn".
2499 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2500 param "insn".
2501 (sh_treg_combine::record_set_of_reg): Likewise for param
2502 "start_insn" and local "i".
2503 (sh_treg_combine::can_remove_cstore): Likewise for local
2504 "prev_insn".
2505 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2506 "insn".
2507 (sh_treg_combine::execute): Likewise for local "i".
2508 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2509 param.
2510 (sparc_check_64): Likewise for second param.
2511 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2512 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2513 dyn_cast, using its insn method for typesafety and clarity.
2514 (empty_delay_slot): Strengthen param "insn" from rtx to
2515 rtx_insn *.
2516 (set_extends): Likewise.
2517 (sparc_check_64): Likewise.
2518 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2519 for locals "seq", "last_insn".
2520 (combine_bnp): Likewise for param "insn".
2521 (xstormy16_reorg): Likewise for local "insn".
2522 * config/v850/v850.c (substitute_ep_register): Likewise for params
2523 "first_insn", "last_insn" and local "insn".
2524 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2525 elements of "regs" array, and local "insn".
2526 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2527 * final.c (final_sequence): Strengthen this global from rtx to
2528 rtx_sequence *.
2529 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2530 rtx_insn *.
2531 (final_scan_insn): Update assignment to "final_sequence" to be
2532 from "seq", the cast version of "body", for type-safety.
2533 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2534 "insns" from rtx to rtx_insn *.
2535 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2536 * genattr.c (main): When writing out generated insn-attr.h,
2537 strengthen params 1 and 3 of eligible_for_delay,
2538 eligible_for_annul_true, eligible_for_annul_false from rtx to
2539 rtx_insn *.
2540 * genattrtab.c (write_eligible_delay): Likewise when writing out
2541 generated insn-attrtab.c; also local "insn" the generated
2542 functions.
2543 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2544 to rtx_insn *.
2545 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2546 "start_label" from rtx to rtx_insn *.
2547 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2548 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2549 "insns" and local "insn".
2550 (validate_equiv_mem): Likewise for param "start" and local "insn".
2551 (memref_used_between_p): Likewise for params "start", "end" and
2552 local "insn".
2553 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2554 final param.
2555 * loop-doloop.c (doloop_optimize): Within region guarded by
2556 INSN_P (doloop_pat), introduce a new local rtx_insn *
2557 "doloop_insn" via a checked cast, and use it for typesafety,
2558 eventually writing the value back into doloop_pat.
2559 * output.h (final_sequence): Strengthen this global from rtx to
2560 rtx_sequence *.
2561 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2562 reintroducing "insn" as an rtx_insn * via a checked cast.
2563 Strengthen param "attempt" and local "new_insn"from rtx to
2564 rtx_insn *.
2565 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2566 to rtx_insn *.
2567 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2568 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2569 "p" in favor of more tightly-scoped replacements, sometimes rtx
2570 and sometimes rtx_insn *, as appropriate.
2571 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2572 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2573 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2574 local "trial" from rtx to rtx_insn *.
2575 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2576 rtx to rtx_insn *. Strenghten local "pat" from rtx to
2577 rtx_sequence * and use methods for clarity and typesafety.
2578 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2579 rtx to rtx_insn *. Strenghten local "li" from rtx to
2580 rtx_insn_list * and use its methods for clarity and typesafety.
2581 (steal_delay_list_from_target): Strengthen param "insn" from rtx
2582 to rtx_insn *.
2583 (steal_delay_list_from_fallthrough): Likewise.
2584 (try_merge_delay_insns): Likewise for param "thread" and locals
2585 "trial", "next_trial", "delay_insn".
2586 (redundant_insn): Likewise for param "target" and local "trial".
2587 (own_thread_p): Likewise for param "thread" and locals
2588 "active_insn", "insn".
2589 (get_label_before): Likewise for param "insn".
2590 (fill_simple_delay_slots): Likewise for local "new_label"; use
2591 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2592 (label_before_next_insn): Strengthen return type and local "insn"
2593 from rtx to rtx_insn *.
2594 (relax_delay_slots): Likewise for locals "other", "tmp".
2595 (make_return_insns): Likewise for param "first" and locals "insn",
2596 "jump_insn", "prev". Move declaration of "pat" to its assignment
2597 and strengthen from rtx to rtx_sequence *. Use its methods for
2598 clarity and typesafety.
2599 * rtlanal.c (no_labels_between_p): Strengthen params from
2600 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
2601 rtx_insn *.
2602 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2603 from const_rtx to const rtx_insn *.
2604 (reg_set_between_p): Rename param "from_insn" to
2605 "uncast_from_insn", and reintroduce "from_insn" as a
2606 const rtx_insn * via a checked cast.
2607 (modified_between_p): Likewise for param "start" as "uncast_start".
2608 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2609 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2610 "tmp", head" from rtx to rtx_insn *.
2611 (recompute_rev_top_order): Likewise for local "insn".
2612 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2613 * store-motion.c (build_store_vectors): Likewise for local "insn".
2614 Strengthen local "st" from rtx to rtx_insn_list * and use methods
2615 for clarity and typesafety.
2616 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2617 rtx to rtx_insn *.
2618 (computation_cost): Likewise for local "seq".
2619 (get_address_cost): Likewise.
2620
2621 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2622
2623 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2624 const rtx_insn *.
2625 (label_is_jump_target_p): Likewise for second param.
2626
2627 * rtlanal.c (tablejump_p): Likewise for param "insn".
2628 (label_is_jump_target_p): Likewise for param "jump_insn".
2629
2630 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2631
2632 * rtl.h (find_first_parameter_load): Strengthen return type and
2633 both params from rtx to rtx_insn *.
2634 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2635 both params and locals "before", "first_set" from rtx to
2636 rtx_insn *. Remove now-redundant cast.
2637 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2638
2639 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2640
2641 * rtl.h (find_last_value): Delete.
2642 * rtlanal.c (find_last_value): Delete.
2643
2644 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2645
2646 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2647 from rtx to rtx_insn *.
2648 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2649 rtx "note" with new local rtx_insn * "new_head" when calculating
2650 head insn of new basic block.
2651 * combine.c (combine_split_insns): Strengthen return type and local
2652 "ret" from rtx to rtx_insn *.
2653 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2654 (try_combine): Eliminate local "m_split", splitting into new
2655 locals "m_split_insn" and "m_split_pat".
2656 (find_split_point): Strengthen local "seq" from rtx into
2657 rtx_insn *.
2658 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2659 locals "label", "branch".
2660 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2661 for local "insn".
2662 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2663 * dse.c (note_add_store_info): Likewise for fields "first",
2664 "current".
2665 (note_add_store): Likewise for local "insn".
2666 (emit_inc_dec_insn_before): Likewise for locals "insn",
2667 "new_insn", "cur".
2668 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2669 (replace_read): Likewise for locals "insns", "this_insn".
2670 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2671 (notice_eh_throw): Likewise for param "insn".
2672 (before_next_cfi_note): Likewise for return type, param, and local
2673 "prev".
2674 (connect_traces): Likewise for local "note".
2675 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2676 (verify_rtl_sharing): Likewise.
2677 (unshare_all_rtl_in_chain): Likewise for param "insn".
2678 (get_first_nonnote_insn): Likewise for local "insn".
2679 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2680 "seq" and use its methods to clarify things.
2681 (next_insn): Strengthen return type from rtx to rtx_insn *.
2682 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2683 local rtx_insn * using a checked cast, dropping a checked cast
2684 made redundant by this change. Use a cast to and method of
2685 rtx_sequence to clarify the code.
2686 (previous_insn): Rename param "insn" to "uncast_insn" and
2687 reintroduce "insn" as a local rtx_insn * using a checked cast,
2688 dropping a checked cast made redundant by this change. Use a cast
2689 to and method of rtx_sequence to clarify the code.
2690 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2691 reintroduce "insn" as a local rtx_insn * using a checked cast,
2692 dropping a checked cast made redundant by this change.
2693 (next_nonnote_insn_bb): Likewise.
2694 (prev_nonnote_insn): Likewise.
2695 (prev_nonnote_insn_bb): Likewise.
2696 (next_nondebug_insn): Likewise.
2697 (prev_nondebug_insn): Likewise.
2698 (next_nonnote_nondebug_insn): Likewise.
2699 (prev_nonnote_nondebug_insn): Likewise.
2700 (next_real_insn): Likewise.
2701 (prev_real_insn): Likewise.
2702 (next_active_insn): Likewise.
2703 (prev_active_insn): Likewise.
2704 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2705 clarity.
2706 (prev_cc0_setter): Likewise.
2707 (try_split): Rename param "trial" to "uncast_trial" and
2708 reintroduce "insn" as a local rtx_insn * using a checked cast,
2709 dropping checked casts made redundant by this change.
2710 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2711 rtx to rtx_insn *.
2712 (remove_insn): Rename param "insn" to "uncast_insn" and
2713 reintroduce "insn" as a local rtx_insn * using a checked cast.
2714 (emit_pattern_after_setloc): Likewise for param "after", as
2715 "uncast_after".
2716 (emit_pattern_after): Likewise. Strengthen local "prev" from
2717 rtx to rtx_insn *.
2718 (emit_pattern_before_setloc): Rename param "before" to
2719 "uncast_before" and reintroduce "before" as a local rtx_insn *
2720 using a checked cast. Strengthen locals "first", "last" from
2721 rtx to rtx_insn *.
2722 (emit_pattern_before): Likewise rename/cast param "before" to
2723 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2724 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2725 "first" and local "insn" from rtx to rtx_insn *.
2726 (copy_reg_eh_region_note_backward): Likewise for param "last"
2727 and local "insn".
2728 * expr.c (fixup_args_size_notes): Rename param "last" to
2729 "uncast_last" and reintroduce "last" as a local rtx_insn *
2730 using a checked cast. Strengthen local "insn" from rtx to
2731 rtx_insn *.
2732 * function.c (set_insn_locations): Strengthen param "insn" from
2733 rtx to rtx_insn *.
2734 (record_insns): Likewise for param "insns" and local "tmp".
2735 (active_insn_between): Rename param "tail" to
2736 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2737 using a checked cast.
2738 (thread_prologue_and_epilogue_insns): Split out top-level local
2739 rtx "seq" into three different rtx_insn * locals. Strengthen
2740 local "prologue_seq" from rtx to rtx_insn *.
2741 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2742 from rtx to rtx_insn *.
2743 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2744 (priority): Likewise for locals "prev_first", "twin".
2745 (setup_insn_max_reg_pressure): Likewise for param "after".
2746 (sched_setup_bb_reg_pressure_info): Likewise.
2747 (no_real_insns_p): Strengthen params from const_rtx to
2748 const rtx_insn *.
2749 (schedule_block): Strengthen local "next_tail" from rtx to
2750 rtx_insn *.
2751 * ifcvt.c (find_active_insn_before): Strengthen return type and
2752 param "insn" from rtx to rtx_insn *.
2753 (find_active_insn_after): Likewise.
2754 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2755 (cond_exec_process_if_block): Likewise for locals "then_start",
2756 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2757 (noce_process_if_block): Likewise for local "jump".
2758 (merge_if_block): Likewise for two locals named "end".
2759 (cond_exec_find_if_block): Likewise for local "last_insn".
2760 * jump.c (delete_related_insns): Rename param "insn" to
2761 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2762 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2763 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2764 NULL.
2765 (split_reg): Likewise.
2766 * lra.c (lra_process_new_insns): Likewise.
2767 * modulo-sched.c (permute_partial_schedule): Strengthen param
2768 "last" from rtx to rtx_insn *.
2769 * optabs.c (add_equal_note): Likewise for param "insns" and local
2770 "last_insn".
2771 (expand_binop_directly): Add checked casts to rtx_insn * within
2772 NEXT_INSN (pat) uses.
2773 (expand_unop_direct): Likewise.
2774 (maybe_emit_unop_insn): Likewise.
2775 * recog.c (peep2_attempt): Strengthen locals "last",
2776 "before_try", "x" from rtx to rtx_insn *.
2777 * reorg.c (optimize_skip): Strengthen return type and local
2778 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2779 and locals "trial", "next_trial" from rtx to rtx_insn *.
2780 * resource.c (next_insn_no_annul): Strengthen return type and
2781 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2782 rtx_sequence to clarify the code.
2783 (mark_referenced_resources): Add a checked cast to rtx_insn *
2784 within PREV_INSN (x).
2785 (find_dead_or_set_registers): Strengthen return type, param
2786 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2787 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2788 to rtx_insn **.
2789 (mark_target_live_regs): Strengthen params "insns" and "target",
2790 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2791 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2792 the code.
2793 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2794 from rtx to rtx_insn *.
2795 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2796 from rtx to rtx_insn *.
2797 (copy_reg_eh_region_note_backward): Likewise.
2798 (unshare_all_rtl_in_chain): Likewise for sole param.
2799 (dump_rtl_slim): Strengthen second and third params from const_rtx
2800 to const rtx_insn *.
2801 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2802 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2803 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2804 "next_tail" from rtx to rtx_insn *.
2805 (begin_move_insn): Likewise for local "next".
2806 * sched-int.h (sched_free_deps): Likewise for first and second
2807 params.
2808 (no_real_insns_p): Strengthen both params from const_rtx to
2809 const rtx_insn *.
2810 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2811 rtx to rtx_insn *.
2812 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2813 "next_tail".
2814 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2815 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2816 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2817 rtx_insn *.
2818 (debug_rtl_slim): Strengthen params "first" and "last" from
2819 const_rtx to const rtx_insn *.
2820 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2821 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2822 (convert_to_simple_return): Likewise for param "returnjump".
2823 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2824 "prologue_seq".
2825 (convert_to_simple_return): Likewise for param "returnjump".
2826 * valtrack.c (propagate_for_debug): Likewise for params
2827 "insn", "last".
2828 * valtrack.h (propagate_for_debug): Likewise for second param.
2829
2830 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2831
2832 * output.h (insn_current_reference_address): Strengthen param
2833 from rtx to rtx_insn *.
2834 * final.c (insn_current_reference_address): Likewise.
2835
2836 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2837
2838 * basic-block.h (inside_basic_block_p): Strengthen param from
2839 const_rtx to const rtx_insn *.
2840 * cfgbuild.c (inside_basic_block_p): Likewise.
2841
2842 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2843
2844 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
2845 rtx_insn *.
2846 (get_trace_info): Likewise for param "insn".
2847 (save_point_p): Likewise.
2848 (maybe_record_trace_start): Likewise for both params.
2849 (maybe_record_trace_start_abnormal): Likewise.
2850 (create_trace_edges): Likewise for sole param and for three of the
2851 locals named "lab".
2852 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
2853 to rtx_insn *, and update a call to pat->element to pat->insn.
2854
2855 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2856
2857 * function.h (struct expr_status): Convert field "x_forced_labels"
2858 from rtx_expr_list * to rtx_insn_list *.
2859
2860 * cfgbuild.c (make_edges): Convert local "x" from an
2861 rtx_expr_list * to an rtx_insn_list *, replacing use of
2862 "element" method with "insn" method.
2863 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2864 * except.c (sjlj_emit_dispatch_table): Replace use of
2865 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
2866 forced_labels.
2867 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
2868 rtx_expr_list * to an rtx_insn_list *, replacing use of
2869 "element" method with "insn" method.
2870 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2871 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
2872 rtx_insn *, adding a checked cast. Replace use of
2873 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
2874 forced_labels.
2875 (expand_label): Likewise for local "label_r".
2876
2877 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2878
2879 * function.h (struct rtl_data): Convert field
2880 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
2881 rtx_insn_list *.
2882 * rtl.h (remove_node_from_insn_list): New prototype.
2883
2884 * builtins.c (expand_builtin): When prepending to
2885 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2886 gen_rtx_EXPR_LIST.
2887 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
2888 to rtx_insn_list *, and use its "insn" method rather than
2889 "element" method.
2890 * cfgrtl.c (delete_insn): Use new function
2891 remove_node_from_insn_list rather than
2892 remove_node_from_expr_list.
2893 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
2894 to rtx_insn_list *, and use its "insn" method rather than
2895 "element" method.
2896 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2897 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2898 * rtlanal.c (remove_node_from_insn_list): New function, adapted
2899 from remove_node_from_expr_list.
2900 * stmt.c (expand_label): When prepending to
2901 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2902 gen_rtx_EXPR_LIST.
2903
2904 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2905
2906 * function.h (struct rtl_data): Strengthen fields "x_return_label"
2907 and "x_naked_return_label" from rtx to rtx_code_label *.
2908
2909 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2910
2911 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
2912 (SET_NEXT_INSN): Likewise.
2913 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
2914
2915 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
2916 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
2917 to split out the SEQUENCE from local "bundle", strengthening the
2918 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
2919 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
2920 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
2921 and the type of the elements of the "slot" array from rtx to
2922 rtx_insn *.
2923 (reorg_split_calls): Likewise for locals "insn" and "next", and
2924 the type of the elements of the "slot" array.
2925
2926 * config/frv/frv.c (frv_nops): Likewise for the elements of this
2927 array.
2928 (frv_function_prologue): Likewise for locals "insn", "next",
2929 "last_call".
2930 (frv_register_nop): Introduce a local "nop_insn" to be the
2931 rtx_insn * containing rtx "nop".
2932
2933 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
2934 used as an insn and sometimes as a pattern, so rename it to
2935 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
2936 using it where dealing with the core insn.
2937
2938 * config/picochip/picochip.c (reorder_var_tracking_notes):
2939 Strengthen locals "insn", "next", "last_insn", "queue",
2940 "next_queue", "prev" from rtx to rtx_insn *.
2941
2942 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
2943 the second param is an rtx_insn ** rather than an rtx **.
2944 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
2945 from rtx to rtx_sequence *, and introduce local named "sequence",
2946 using methods of rtx_sequence to clarify the code.
2947 (remove_insn): Introduce local rtx_sequence * named "sequence" and
2948 use its methods.
2949 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
2950 Rename param "after" to "uncast_after", reintroducing "after" as a
2951 local rtx_insn * with a checked cast.
2952 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
2953 reintroducing "after" as a local rtx_insn * with a checked cast.
2954 Strengthen local "last" from rtx to rtx_insn * and remove the
2955 now-redundant checked casts.
2956 (copy_delay_slot_insn): Strengthen return type and param from rtx
2957 to rtx_insn *.
2958
2959 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
2960 "last" from rtx to rtx_insn *.
2961
2962 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2963
2964 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
2965 param from rtx to rtx_insn *.
2966
2967 * emit-rtl.c (copy_delay_slot_insn): Likewise.
2968
2969 * reorg.c (skip_consecutive_labels): Strengthen return type, param
2970 and local "insn" from rtx to rtx_insn *.
2971 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
2972 (unfilled_slots_next): Likewise.
2973 (function_return_label): Strengthen from rtx to rtx_code_label *.
2974 (function_simple_return_label): Likewise.
2975 (first_active_target_insn): Strengthen return type and param from
2976 rtx to rtx_insn *.
2977 (find_end_label): Strengthen return type from rtx to
2978 rtx_code_label *; strengthen locals as appropriate.
2979 (emit_delay_sequence): Strengthen return type, param "insn" and
2980 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
2981 and local "li" from rtx to rtx_insn_list *, using methods of
2982 rtx_insn_list for clarity and typesafety.
2983 (add_to_delay_list): Strengthen return type and param "insn" from
2984 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
2985 rtx_insn_list * and use methods of rtx_insn_list.
2986 (delete_from_delay_slot): Strengthen return type, param "insn",
2987 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
2988 Strengthen local "seq" from rtx to rtx_sequence *, and local
2989 "delay_list" from rtx to rtx_insn_list *, using methods of
2990 rtx_sequence for clarity and type-safety.
2991 (delete_scheduled_jump): Add checked cast when invoking
2992 delete_from_delay_slot. Strengthen local "trial" from rtx to
2993 rtx_insn *.
2994 (optimize_skip): Strengthen return type and local "delay_list"
2995 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
2996 rtx_insn *.
2997 (steal_delay_list_from_target): Strengthen return type, param
2998 "delay_list" and local "new_delay_list" from rtx to
2999 rtx_insn_list *. Strengthen param "seq" from rtx to
3000 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3001 rtx_insn **.
3002 Split out local "temp" into multiple more-tightly scoped locals:
3003 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3004 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3005 Strengthen locals named "trial" from rtx to rtx_insn *.
3006 (steal_delay_list_from_fallthrough): Strengthen return type and
3007 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3008 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3009 Strengthen local "trial" from rtx to rtx_insn *.
3010 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3011 to rtx_insn_list * and use its methods. Strengthen local "pat"
3012 from rtx to rtx_sequence * and use its methods. Strengthen locals
3013 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3014 (get_label_before): Strengthen return type and local "label" from
3015 rtx to rtx_insn *.
3016 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3017 "next_trial", "next", prev". Strengthen local "delay_list" from
3018 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3019 rtx_insn **.
3020 (follow_jumps): Strengthen return type, param "label" and locals
3021 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3022 (fill_slots_from_thread): Strengthen return type, param
3023 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3024 "insn", "thread", "opposite_thread" and locals "new_thread",
3025 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3026 "sequence" from a checked cast to rtx_sequence so that we can call
3027 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3028 with an rtx_sequence *.
3029 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3030 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3031 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3032 (relax_delay_slots): Strengthen param "first" and locals "insn",
3033 "next", "trial", "delay_insn", "target_label" from rtx to
3034 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3035 Introduce a local "trial_seq" for PATTERN (trial) of type
3036 rtx_sequence *, in both cases using methods of rtx_sequence.
3037 (dbr_schedule): Strengthen param "first" and locals "insn",
3038 "next", "epilogue_insn" from rtx to rtx_insn *.
3039
3040 2014-08-28 Richard Biener <rguenther@suse.de>
3041
3042 PR tree-optimization/62283
3043 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3044 Do not peel loops for alignment where the vector loop likely
3045 doesn't run at least VF times.
3046
3047 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3048
3049 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3050 important_candidates. Consider all important candidates if
3051 IVS doesn't give any result. Remove check on ivs->upto.
3052 (try_add_cand_for): Call iv_ca_add_use only once.
3053
3054 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3055 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3056 Anna Tikhonova <anna.tikhonova@intel.com>
3057 Ilya Tocar <ilya.tocar@intel.com>
3058 Andrey Turetskiy <andrey.turetskiy@intel.com>
3059 Ilya Verbin <ilya.verbin@intel.com>
3060 Kirill Yukhin <kirill.yukhin@intel.com>
3061 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3062
3063 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3064 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3065 masking.
3066 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3067 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3068 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3069 (define_insn "*mul<mode>3"): Add EVEX version.
3070
3071 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3073 Anna Tikhonova <anna.tikhonova@intel.com>
3074 Ilya Tocar <ilya.tocar@intel.com>
3075 Andrey Turetskiy <andrey.turetskiy@intel.com>
3076 Ilya Verbin <ilya.verbin@intel.com>
3077 Kirill Yukhin <kirill.yukhin@intel.com>
3078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3079
3080 * config/i386/sse.md
3081 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3082 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3083 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3084 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3085 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3086 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3087 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3088 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3089 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3090 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3091 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3092 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3093 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3094 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3095 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3096 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3097
3098 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3099 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3100 Anna Tikhonova <anna.tikhonova@intel.com>
3101 Ilya Tocar <ilya.tocar@intel.com>
3102 Andrey Turetskiy <andrey.turetskiy@intel.com>
3103 Ilya Verbin <ilya.verbin@intel.com>
3104 Kirill Yukhin <kirill.yukhin@intel.com>
3105 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3106
3107 * config/i386/sse.md
3108 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3109 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3110 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3111
3112 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3113 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3114 Anna Tikhonova <anna.tikhonova@intel.com>
3115 Ilya Tocar <ilya.tocar@intel.com>
3116 Andrey Turetskiy <andrey.turetskiy@intel.com>
3117 Ilya Verbin <ilya.verbin@intel.com>
3118 Kirill Yukhin <kirill.yukhin@intel.com>
3119 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3120
3121 * config/i386/sse.md
3122 (define_mode_iterator VI128_256): New.
3123 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3124
3125 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3126 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3127 Anna Tikhonova <anna.tikhonova@intel.com>
3128 Ilya Tocar <ilya.tocar@intel.com>
3129 Andrey Turetskiy <andrey.turetskiy@intel.com>
3130 Ilya Verbin <ilya.verbin@intel.com>
3131 Kirill Yukhin <kirill.yukhin@intel.com>
3132 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3133
3134 * config/i386/sse.md
3135 (define_mode_iterator VI8_256_512): New.
3136 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3137 Ditto.
3138 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3139 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3140 Ditto.
3141 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3142
3143 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3144
3145 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3146 pointer to the cumulative reloc value and return the value for
3147 this reloc instead.
3148 (compute_reloc_for_rtx): Take a const_rtx. Call
3149 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3150 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3151 for_each_rtx for the CONST case.
3152
3153 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3154
3155 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3156 (mark_constants_in_pattern): ...this new function to iterate over
3157 all the subrtxes.
3158 (mark_constants): Update accordingly.
3159
3160 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3161
3162 * varasm.c: Include rtl-iter.h.
3163 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3164 Remove the pointer to the cumulative hashval_t and just return
3165 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3166 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3167 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3168
3169 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3170
3171 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3172 Give real type of data parameter. Remove return value.
3173 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3174 to iterate over subrtxes.
3175
3176 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3177
3178 * var-tracking.c (use_narrower_mode_test): Turn from being a
3179 for_each_rtx callback to being a function that examines each
3180 subrtx itself.
3181 (adjust_mems): Update accordingly.
3182
3183 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3184
3185 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3186 callback to being a function that examines each subrtx itself.
3187 Remove handling of null rtxes.
3188 (add_uses): Update accordingly.
3189
3190 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3191
3192 * var-tracking.c: Include rtl-iter.h.
3193 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3194 to being a function that examines each subrtx itself.
3195 (use_type): Update accordingly.
3196
3197 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3198
3199 * store-motion.c: Include rtl-iter.h.
3200 (extract_mentioned_regs_1): Delete.
3201 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3202 for_each_rtx to iterate over subrtxes.
3203
3204 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3205
3206 * sel-sched.c: Include rtl-iter.h
3207 (count_occurrences_1): Delete.
3208 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3209 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3210
3211 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3212
3213 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3214 * rtlanal.c (tls_referenced_p_1): Delete.
3215 (tls_referenced_p): Take a const_rtx rather than an rtx.
3216 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3217
3218 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3219
3220 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3221 (for_each_inc_dec): Take an rtx rather than an rtx *.
3222 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3223 (cselib_record_sets): Likewise.
3224 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3225 (check_for_inc_dec): Likewise.
3226 * rtlanal.c (for_each_inc_dec_ops): Delete.
3227 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3228 rather than a pointer to the memory address. Replace
3229 for_each_inc_dec_ops argument with separate function and data
3230 arguments. Abort on non-autoinc addresses.
3231 (for_each_inc_dec_find_mem): Delete.
3232 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3233 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3234
3235 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3236
3237 * rtl.h (find_all_hard_regs): Declare.
3238 * rtlanal.c (find_all_hard_regs): New function.
3239 (record_hard_reg_uses_1): Delete.
3240 (record_hard_reg_uses): Use find_all_hard_regs.
3241
3242 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3243
3244 * rtl.h (replace_label_data): Delete.
3245 (replace_label): Take the old label, new label and update-nuses flag
3246 as direct arguments. Return void.
3247 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3248 * rtlanal.c (replace_label): Update interface as above. Handle
3249 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3250 iterator. Use FOR_EACH_SUBRTX_PTR.
3251
3252 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3253
3254 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3255 with const_rtx parameters.
3256 * varasm.c (get_pool_constant): Likewise.
3257 * rtlanal.c (rtx_referenced_p_1): Delete.
3258 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3259 Assert that the rtx we're looking for is nonnull. Allow searches
3260 for constant pool SYMBOL_REFs.
3261
3262 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3263
3264 * reload1.c: Include rtl-iter.h.
3265 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3266 to being a function that examines each subrtx itself.
3267 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3268
3269 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3270
3271 * regcprop.c (cprop_find_used_regs_1): Delete.
3272 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3273
3274 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3275
3276 * regcprop.c: Include rtl-iter.h.
3277 (kill_value): Take a const_rtx.
3278 (kill_autoinc_value): Turn from being a for_each_rtx callback
3279 to being a function that examines each subrtx itself.
3280 (copyprop_hardreg_forward_1): Update accordingly.
3281
3282 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3283
3284 * reg-stack.c: Include rtl-iter.h.
3285 (subst_stack_regs_in_debug_insn): Delete.
3286 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3287 instead of for_each_rtx.
3288
3289 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3290
3291 * lower-subreg.c (find_decomposable_subregs): Turn from being
3292 a for_each_rtx callback to being a function that examines each
3293 subrtx itself. Remove handling of null rtxes.
3294 (decompose_multiword_subregs): Update accordingly.
3295
3296 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3297
3298 * lower-subreg.c (adjust_decomposed_uses): Delete.
3299 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3300 Remove handling of null rtxes.
3301
3302 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3303
3304 * lower-subreg.c: Include rtl-iter.h.
3305 (resolve_subreg_use): Turn from being a for_each_rtx callback
3306 to being a function that examines each subrtx itself. Remove
3307 handling of null rtxes.
3308 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3309 (decompose_multiword_subregs): Likewise.
3310
3311 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3312
3313 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3314 to being a function that examines each subrtx itself.
3315 (simplify_using_condition, simplify_using_initial_values): Update
3316 accordingly.
3317
3318 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3319
3320 * loop-iv.c: Include rtl-iter.h.
3321 (find_single_def_src): New function.
3322 (replace_single_def_regs): Turn from being a for_each_rtx callback
3323 to being a function that examines each subrtx itself.
3324 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3325
3326 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3327
3328 * jump.c (eh_returnjump_p_1): Delete.
3329 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3330 Remove handling of null rtxes.
3331
3332 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3333
3334 * jump.c: Include rtl-iter.h.
3335 (returnjump_p_1): Delete.
3336 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3337 Remove handling of null rtxes.
3338
3339 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3340
3341 * ira.c: Include rtl-iter.h.
3342 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3343 to being a function that examines each subrtx itself. Remove
3344 handling of null rtxes.
3345 (update_equiv_regs): Update call accordingly.
3346
3347 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3348
3349 * fwprop.c: Include rtl-iter.h.
3350 (varying_mem_p): Turn from being a for_each_rtx callback to being
3351 a function that examines each subrtx itself.
3352 (propagate_rtx): Update accordingly.
3353
3354 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3355
3356 * function.c: Include rtl-iter.h
3357 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3358 callback to being a function that examines each subrtx itself.
3359 Return the changed flag.
3360 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3361 (instantiate_virtual_regs): Update calls accordingly.
3362
3363 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3364
3365 * final.c: Include rtl-iter.h.
3366 (mark_symbol_ref_as_used): Delete.
3367 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3368 for_each_rtx.
3369
3370 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3371
3372 * emit-rtl.c: Include rtl-iter.h.
3373 (find_auto_inc): Turn from being a for_each_rtx callback to being
3374 a function that examines each subrtx itself. Assume the first operand
3375 to an RTX_AUTOINC is the automodified register.
3376 (try_split): Update call accordingly.
3377
3378 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3379
3380 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3381 Return a bool, inverting the result so that 0/false means "not ok".
3382 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3383 subrtxes of a CONST.
3384 (mem_loc_descriptor, add_const_value_attribute)
3385 (resolve_addr_in_expr): Update calls accordingly.
3386
3387 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3388
3389 * dwarf2out.c: Include rtl-iter.h.
3390 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
3391 Remove unused data parameter. Return a bool, inverting the result
3392 so that 0/false means "not ok".
3393 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
3394 instead of for_each_rtx.
3395
3396 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3397
3398 * dse.c: Include rtl-iter.h.
3399 (check_mem_read_rtx): Change void * parameter to real type.
3400 Remove return value.
3401 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
3402 for_each_rtx. Don't handle null rtxes.
3403
3404 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3405
3406 * df-problems.c: Include rtl-iter.h.
3407 (find_memory): Turn from being a for_each_rtx callback to being
3408 a function that examines each subrtx itself. Continue to look for
3409 volatile references even after a nonvolatile one has been found.
3410 (can_move_insns_across): Update calls accordingly.
3411
3412 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3413
3414 * ddg.c (walk_mems_2, walk_mems_1): Delete.
3415 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
3416 to iterate over subrtxes. Return a bool rather than an int.
3417
3418 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3419
3420 * ddg.c: Include rtl-iter.h.
3421 (mark_mem_use_1): Rename to...
3422 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
3423 instead of for_each_rtx.
3424 (mem_read_insn_p): Update accordingly.
3425
3426 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3427
3428 * cse.c (change_cc_mode_args): Delete.
3429 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
3430 a function that examines each subrtx itself. Take the fields of
3431 change_cc_mode_args as argument and return void.
3432 (cse_change_cc_mode_insn): Update calls accordingly.
3433
3434 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3435
3436 * cse.c (is_dead_reg): Change argument to const_rtx.
3437 (dead_debug_insn_data): Delete.
3438 (is_dead_debug_insn): Expand commentary. Turn from being a
3439 for_each_rtx callback to being a function that examines
3440 each subrtx itself. Take the fields of dead_debug_insn_data
3441 as argument.
3442 (delete_trivially_dead_insns): Update call accordingly.
3443
3444 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3445
3446 * cse.c (check_for_label_ref): Move earlier in file. Turn from
3447 being a for_each_rtx callback to being a function that examines
3448 each subrtx itself.
3449 (cse_extended_basic_block): Update call accordingly.
3450
3451 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3452
3453 * cse.c (check_dependence_data): Delete.
3454 (check_dependence): Change from being a for_each_rtx callback to being
3455 a function that examines all subrtxes itself. Don't handle null rtxes.
3456 (invalidate): Update call accordingly.
3457
3458 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3459
3460 * cse.c: Include rtl-iter.h.
3461 (approx_reg_cost_1): Delete.
3462 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3463 Don't handle null rtxes.
3464
3465 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3466
3467 * cfgcleanup.c: Include rtl-iter.h.
3468 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
3469 to being a function that examines each subrtx itself.
3470 (thread_jump): Update accordingly.
3471
3472 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3473
3474 * combine-stack-adj.c: Include rtl-iter.h.
3475 (record_stack_refs_data): Delete.
3476 (record_stack_refs): Turn from being a for_each_rtx callback
3477 to being a function that examines each subrtx itself.
3478 Take a pointer to the reflist. Invert sense of return value
3479 so that true means success and false means failure. Don't
3480 handle null rtxes.
3481 (combine_stack_adjustments_for_block): Update accordingly.
3482
3483 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3484
3485 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3486 callback to a function that takes an rtx and returns a bool
3487 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3488 for_each_rtx.
3489
3490 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3491
3492 * combine.c: Include rtl-iter.h.
3493 (unmentioned_reg_p_1): Delete.
3494 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3495 Don't handle null rtxes.
3496
3497 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3498
3499 * calls.c: Include rtl-iter.h.
3500 (internal_arg_pointer_based_exp_1): Delete.
3501 (internal_arg_pointer_based_exp): Take a const_rtx.
3502 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3503
3504 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3505
3506 * caller-save.c: Include rtl-iter.h.
3507 (add_used_regs_1): Delete.
3508 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3509 to iterate over subrtxes. Assert that any remaining pseudos
3510 have been spilled.
3511
3512 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3513
3514 * bt-load.c: Include rtl-iter.h.
3515 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3516 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3517 to iterate over subrtxes.
3518 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3519 find_btr_use rather than btr_referenced_p.
3520
3521 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3522
3523 * alias.c: Include rtl-iter.h.
3524 (refs_newer_value_cb): Delete.
3525 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3526
3527 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3528
3529 * rtl-iter.h: New file.
3530 * rtlanal.c: Include it.
3531 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3532 (generic_subrtx_iterator <T>::add_single_to_queue)
3533 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3534 (generic_subrtx_iterator <T>::free_array): New functions.
3535 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3536 (generic_subrtx_iterator <const_rtx_accessor>)
3537 (generic_subrtx_iterator <rtx_var_accessor>
3538 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3539 (setup_reg_subrtx_bounds): New function.
3540 (init_rtlanal): Call it.
3541
3542 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3543
3544 PR target/62261
3545 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3546 TARGET_SHMEDIA.
3547 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3548
3549 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3550
3551 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3552
3553 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3554
3555 * rtl.h (JUMP_LABEL_AS_INSN): New.
3556
3557 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3558
3559 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3560 rtx_expr_list **.
3561 (alloc_EXPR_LIST): Strengthen return type from rtx to
3562 rtx_expr_list *.
3563 (remove_free_EXPR_LIST_node): Likewise for param.
3564 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3565 from rtx to rtx_expr_list *.
3566 * sched-int.h (struct deps_desc): Strengthen fields
3567 "pending_read_mems" and "pending_write_mems" from rtx to
3568 rtx_expr_list *.
3569
3570 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3571 rtx to rtx_expr_list *.
3572 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3573 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3574 rtx_expr_list **.
3575 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
3576 from rtx to rtx_expr_list *.
3577 * loop-iv.c (simplify_using_initial_values): Strengthen local
3578 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3579 "pnote_next" from rtx * to rtx_expr_list **.
3580 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
3581 param "exprp" from rtx * to rtx_expr_list **.
3582 (add_insn_mem_dependence): Strengthen local "mem_list" from
3583 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
3584 to rtx_expr_list *.
3585 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3586 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
3587 param "old_mems_p" from rtx * to rtx_expr_list **.
3588 * var-tracking.c (struct adjust_mem_data): Strengthen field
3589 "side_effects" from rtx to rtx_expr_list *.
3590 (adjust_insn): Replace NULL_RTX with NULL when assigning to
3591 rtx_expr_list *.
3592 (prepare_call_arguments): Likewise.
3593
3594 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3595
3596 * function.h (struct rtl_data): Strengthen field
3597 "x_stack_slot_list" from rtx to rtx_expr_list *.
3598
3599 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3600 when assigning to stack_slot_list.
3601
3602 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3603
3604 * function.h (struct rtl_data): Strengthen field
3605 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3606 * rtl.h (remove_node_from_expr_list): Strengthen second param from
3607 rtx * to rtx_expr_list **.
3608
3609 * cfgbuild.c (make_edges): In loop over
3610 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3611 rtx_expr_list *, and use methods of the latter class to clarify
3612 the code.
3613 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3614 rtx_expr_list *, and use methods of the latter class to clarify
3615 the code.
3616 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3617 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3618 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3619 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
3620 to rtx_expr_list *. Use methods of the latter class to clarify
3621 the code.
3622
3623 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3624
3625 * function.h (struct expr_status): Strengthen field
3626 "x_forced_labels" from rtx to rtx_expr_list *.
3627
3628 * cfgbuild.c (make_edges): Split local "x" into two locals,
3629 strengthening one from rtx to rtx_expr_list *, and using methods
3630 of said class.
3631 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3632 loop over forced_labels, introduce strengthen it from rtx to
3633 rtx_expr_list *, using methods to clarify the code.
3634 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3635 to rtx_expr_list *, using methods of said class to clarify the
3636 code.
3637 * reload1.c (set_initial_label_offsets): Split local "x" into two
3638 per-loop variables, strengthening the first from rtx to
3639 rtx_expr_list * and using methods.
3640
3641 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3642
3643 * coretypes.h (class rtx_expr_list): Add forward declaration.
3644 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3645 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3646 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3647 invariant: GET_CODE (X) == EXPR_LIST.
3648 (is_a_helper <rtx_expr_list *>::test): New.
3649 (rtx_expr_list::next): New.
3650 (rtx_expr_list::element): New.
3651 (gen_rtx_EXPR_LIST): New.
3652
3653 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3654
3655 * varasm.c (mark_constants): Convert a GET_CODE check into a
3656 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3657 Use methods of rtx_sequence to clarify the code.
3658
3659 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3660
3661 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3662 local "seq" via a checked cast, and use methods of rtx_sequence
3663 to simplify the code.
3664
3665 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3666
3667 * resource.c (mark_referenced_resources): Strengthen local
3668 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3669 using methods of rtx_sequence to clarify the code.
3670 (find_dead_or_set_registers): Within the switch statement, convert
3671 a GET_CODE check to a dyn_cast, introducing local "seq". Within
3672 the JUMP_P handling, introduce another local "seq", adding a
3673 checked cast to rtx_sequence *. In both cases, use methods of
3674 rtx_sequence to clarify the code.
3675 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3676 via a checked cast, and use methods of rtx_sequence to simplify
3677 the code.
3678
3679 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3680
3681 * reorg.c (redundant_insn): In two places in the function, replace
3682 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3683 usings methods of rtx_sequence to clarify the code.
3684
3685 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3686
3687 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3688 local "seq" with a checked cast, and use methods of rtx_sequence
3689 to clarify the code.
3690
3691 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3692
3693 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3694 with a checked cast, in the region for where we know it's a
3695 SEQUENCE. Use methods of rtx_sequence.
3696
3697 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3698
3699 * final.c (get_attr_length_1): Replace GET_CODE check with a
3700 dyn_cast, introducing local "seq" and the use of methods of
3701 rtx_sequence.
3702 (shorten_branches): Likewise, introducing local "body_seq".
3703 Strengthen local "inner_insn" from rtx to rtx_insn *.
3704 (reemit_insn_block_notes): Replace GET_CODE check with a
3705 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3706 Use methods of rtx_sequence.
3707 (final_scan_insn): Likewise, introducing local "seq" for when
3708 "body" is known to be a SEQUENCE, using its methods.
3709
3710 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3711
3712 * except.c (can_throw_external): Strengthen local "seq" from rtx
3713 to rtx_sequence *. Use methods of rtx_sequence.
3714 (insn_nothrow_p): Likewise.
3715
3716 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3717
3718 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3719 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3720 Use methods of rtx_sequence.
3721 (scan_trace): Likewise for local "pat".
3722
3723 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3724
3725 * coretypes.h (class rtx_sequence): Add forward declaration.
3726 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3727 invariant: GET_CODE (X) == SEQUENCE.
3728 (is_a_helper <rtx_sequence *>::test): New.
3729 (is_a_helper <const rtx_sequence *>::test): New.
3730 (rtx_sequence::len): New.
3731 (rtx_sequence::element): New.
3732 (rtx_sequence::insn): New.
3733
3734 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3735
3736 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3737 rtx_insn_list **.
3738 (alloc_INSN_LIST): Strengthen return type from rtx to
3739 rtx_insn_list *.
3740 (copy_INSN_LIST): Likewise for return type and param.
3741 (concat_INSN_LIST): Likewise for both params and return type.
3742 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3743 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3744 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3745 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3746
3747 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3748 "implicit_sets", "control_uses", "clobbers" from rtx to
3749 rtx_insn_list *.
3750 (struct deps_desc): Likewise for fields "pending_read_insns",
3751 "pending_write_insns", "pending_jump_insns",
3752 "last_pending_memory_flush", "last_function_call",
3753 "last_function_call_may_noreturn", "sched_before_next_call",
3754 "sched_before_next_jump".
3755 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3756 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3757
3758 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3759 from rtx to rtx_insn_list *.
3760 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3761 rtx_insn_list *.
3762
3763 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3764 to rtx_insn_list **.
3765 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3766 rtx_insn_list *.
3767 (queue_insn): Likewise for local "link".
3768 (struct haifa_saved_data): Strengthen field "insn_queue" from
3769 rtx * to rtx_insn_list **.
3770 (save_backtrack_point): Update allocation of save->insn_queue to
3771 reflect the strengthening of elements from rtx to rtx_insn_list *.
3772 (queue_to_ready): Strengthen local "link" from rtx to
3773 rtx_insn_list *; use methods "next" and "insn" when traversing the
3774 list.
3775 (early_queue_to_ready): Likewise for locals "link", "next_link",
3776 "prev_link".
3777 (schedule_block): Update allocation of insn_queue to reflect the
3778 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3779 local "link" from rtx to rtx_insn_list *, and use methods when
3780 working it.
3781 (add_to_speculative_block): Strengthen locals "twins" and
3782 "next_node" from rtx to rtx_insn_list *, and use methods when
3783 working with them. Strengthen local "twin" from rtx to
3784 rtx_insn *, eliminating a checked cast.
3785 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3786 from rtx to rtx_insn_list *, and use methods when working with
3787 them.
3788
3789 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3790 from rtx to rtx_insn_list *, adding a checked cast.
3791 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3792 rtx_insn_list **.
3793 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3794 "newlink" from rtx to rtx_insn_list *. Strengthen local
3795 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3796 from rtx to rtx_insn *.
3797 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3798 from rtx to rtx_insn_list *. Use methods of the latter class.
3799 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3800 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3801 (remove_free_INSN_LIST_node): Strengthen return type and local
3802 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3803 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3804 rtx_insn_list *, using "insn" method.
3805
3806 * sched-deps.c (add_dependence_list): Strengthen param "list"
3807 from rtx to rtx_insn_list *, and use methods when working with it.
3808 (add_dependence_list_and_free): Strengthen param "listp" from
3809 rtx * to rtx_insn_list **.
3810 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3811 to rtx_insn_list **, and use methods when working with *listp.
3812 (remove_from_both_dependence_lists): Strengthen param "listp" from
3813 rtx * to rtx_insn_list **
3814 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3815 to rtx_insn_list **. Eliminate local "link", in favor of two new
3816 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3817 respectively.
3818 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3819 by introducing local "cond_deps".
3820 (remove_from_deps): Strengthen param "insn" from rtx to
3821 rtx_insn *.
3822
3823 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3824 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3825 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3826 Use methods of rtx_insn_list.
3827
3828 * store-motion.c (struct st_expr): Strengthen fields
3829 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3830 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3831 rtx_insn_list *.
3832 (find_moveable_store): Split out "tmp" into multiple more-tightly
3833 scoped locals. Use methods of rtx_insn_list *.
3834 (compute_store_table): Strengthen local "tmp" from rtx to
3835 rtx_insn *. Use methods of rtx_insn_list *.
3836
3837 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3838
3839 * coretypes.h (class rtx_insn_list): Add forward declaration.
3840 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3841 (is_a_helper <rtx_insn_list *>::test): New.
3842 (rtx_insn_list::next): New.
3843 (rtx_insn_list::insn): New.
3844 (gen_rtx_INSN_LIST): Add prototype.
3845 * emit-rtl.c (gen_rtx_INSN_LIST): New.
3846 * gengenrtl.c (special_rtx): Add INSN_LIST.
3847
3848 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3849
3850 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
3851 "prev" from rtx to rtx_insn *.
3852
3853 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3854
3855 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
3856 functions. Require merely an rtx for now, not an rtx_insn *.
3857 (BLOCK_FOR_INSN): Likewise.
3858 (INSN_LOCATION): Likewise.
3859 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
3860
3861 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3862
3863 * rtl.h (PATTERN): Convert this macro into a pair of inline
3864 functions, for now, requiring const_rtx and rtx.
3865
3866 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3867
3868 * target.def (unwind_emit): Strengthen param "insn" from rtx to
3869 rtx_insn *.
3870 (final_postscan_insn): Likewise.
3871 (adjust_cost): Likewise.
3872 (adjust_priority): Likewise.
3873 (variable_issue): Likewise.
3874 (macro_fusion_pair_p): Likewise.
3875 (dfa_post_cycle_insn): Likewise.
3876 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
3877 (first_cycle_multipass_issue): Likewise.
3878 (dfa_new_cycle): Likewise.
3879 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
3880 (speculate_insn): Likewise for param "insn".
3881 (gen_spec_check): Likewise for params "insn" and "label".
3882 (get_insn_spec_ds): Likewise for param "insn".
3883 (get_insn_checked_ds): Likewise.
3884 (dispatch_do): Likewise.
3885 (dispatch): Likewise.
3886 (cannot_copy_insn_p): Likewise.
3887 (invalid_within_doloop): Likewise.
3888 (legitimate_combined_insn): Likewise.
3889 (needed): Likewise.
3890 (after): Likewise.
3891
3892 * doc/tm.texi: Automatically updated to reflect changes to
3893 target.def.
3894
3895 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
3896 working with insn.
3897 (schedule_block): Likewise.
3898 (sched_init): Likewise.
3899 (sched_speculate_insn): Strengthen param "insn" from rtx to
3900 rtx_insn *.
3901 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
3902 working with insn.
3903 * hooks.c (hook_bool_rtx_true): Rename to...
3904 hook_bool_rtx_insn_true): ...this, and strengthen first param from
3905 rtx to rtx_insn *.
3906 (hook_constcharptr_const_rtx_null): Rename to...
3907 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3908 first param from const_rtx to const rtx_insn *.
3909 (hook_bool_rtx_int_false): Rename to...
3910 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3911 param from rtx to rtx_insn *.
3912 (hook_void_rtx_int): Rename to...
3913 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3914 rtx to rtx_insn *.
3915
3916 * hooks.h (hook_bool_rtx_true): Rename to...
3917 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
3918 rtx to rtx_insn *.
3919 (hook_bool_rtx_int_false): Rename to...
3920 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3921 param from rtx to rtx_insn *.
3922 (hook_void_rtx_int): Rename to...
3923 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3924 rtx to rtx_insn *.
3925 (hook_constcharptr_const_rtx_null): Rename to...
3926 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3927 first param from const_rtx to const rtx_insn *.
3928
3929 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
3930 and local "prev" from rtx to rtx_insn *.
3931
3932 * sched-int.h (sched_speculate_insn): Strengthen first param from
3933 rtx to rtx_insn *.
3934
3935 * sel-sched.c (create_speculation_check): Likewise for local "label".
3936 * targhooks.c (default_invalid_within_doloop): Strengthen param
3937 "insn" from const_rtx to const rtx_insn *.
3938 * targhooks.h (default_invalid_within_doloop): Strengthen param
3939 from const_rtx to const rtx_insn *.
3940
3941 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
3942 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
3943
3944 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
3945 "insn".
3946 (arc_invalid_within_doloop): Likewise, with const.
3947
3948 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
3949 (arm_cannot_copy_insn_p): Likewise for param "insn".
3950 (arm_unwind_emit): Likewise.
3951
3952 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
3953 "dep_insn".
3954
3955 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
3956 (c6x_variable_issue): Likewise. Removed now-redundant checked
3957 cast.
3958 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
3959
3960 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
3961 Likewise for param "insn".
3962 (epiphany_mode_after): Likewise.
3963 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
3964 params "insn", "dep_insn".
3965 (epiphany_mode_needed): Likewise for param "insn".
3966 (epiphany_mode_after): Likewise.
3967
3968 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
3969 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3970 (ix86_avx_u128_mode_needed): Likewise.
3971 (ix86_i387_mode_needed): Likewise.
3972 (ix86_mode_needed): Likewise.
3973 (ix86_avx_u128_mode_after): Likewise.
3974 (ix86_mode_after): Likewise.
3975 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
3976 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
3977 (ix86_adjust_priority): Likewise for param "insn".
3978 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
3979 (do_dispatch): Likewise.
3980 (has_dispatch): Likewise.
3981 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
3982
3983 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
3984 reflect renaming of default hook implementation from
3985 hook_constcharptr_const_rtx_null to
3986 hook_constcharptr_const_rtx_insn_null.
3987 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
3988 rtx to rtx_insn *.
3989 (ia64_variable_issue): Likewise for param "insn".
3990 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
3991 (ia64_dfa_new_cycle): Likewise.
3992 (ia64_get_insn_spec_ds): Likewise.
3993 (ia64_get_insn_checked_ds): Likewise.
3994 (ia64_speculate_insn): Likewise.
3995 (ia64_gen_spec_check): Likewise for params "insn", "label".
3996 (ia64_asm_unwind_emit): Likewise for param "insn".
3997
3998 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
3999
4000 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4001 "insn", "def_insn".
4002 (m68k_sched_variable_issue): Likewise for param "insn".
4003
4004 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4005 "def_insn".
4006
4007 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4008 Likewise for params "insn", "dep".
4009
4010 * config/mips/mips.c (mips_adjust_cost): Likewise.
4011 (mips_variable_issue): Likewise for param "insn".
4012 (mips_final_postscan_insn): Likewise.
4013
4014 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4015 for params "insn", "dep".
4016
4017 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4018 "dep_insn".
4019 (pa_adjust_priority): Likewise for param "insn".
4020
4021 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4022 Likewise for params "insn", "dep_insn".
4023
4024 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4025 param "insn".
4026 (rs6000_variable_issue): Likewise.
4027 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4028 (rs6000_debug_adjust_cost): Likewise.
4029 (rs6000_adjust_priority): Likewise for param "insn".
4030 (rs6000_use_sched_lookahead_guard): Likewise.
4031 (get_next_active_insn): Likewise for return type and both params.
4032 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4033 and locals "insn", "next_insn".
4034 (pad_groups): Likewise.
4035
4036 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4037 "insn".
4038 (s390_cannot_copy_insn_p): Likewise.
4039 (s390_sched_variable_issue): Likewise for third param, eliminating
4040 checked cast.
4041 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4042 default hook implementation from hook_constcharptr_const_rtx_null
4043 to hook_constcharptr_const_rtx_insn_null.
4044
4045 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4046 from rtx to rtx_insn *.
4047 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4048 (sh_variable_issue): Likewise for param "insn".
4049 (sh_dfa_new_cycle): Likewise.
4050 (sh_mode_needed): Likewise.
4051 (sh_mode_after): Likewise.
4052
4053 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4054 params "insn", "dep_insn".
4055 (hypersparc_adjust_cost): Likewise.
4056 (sparc_adjust_cost): Likewise.
4057
4058 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4059 param, eliminated checked cast.
4060 (spu_sched_adjust_cost): Likewise for first and third params.
4061
4062 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4063 params "insn" and "dep_insn" from rtx to rtx_insn *.
4064
4065 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4066
4067 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4068
4069 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4070 (set_is_load_p): ...this, updating to work on a SET pattern rather
4071 than an insn.
4072 (is_store_insn): Rename to...
4073 (set_is_store_p): ...this, updating to work on a SET pattern
4074 rather than an insn.
4075 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4076 top of function to where it is needed. Rewrite the bogus
4077 condition that checks for "insn" and "dep" being PARALLEL to
4078 instead use single_set, introducing locals "insn_set" and
4079 "dep_set". Given that we only ever returned "cost" for a non-pair
4080 of SETs, bail out early if we don't have a pair of SET.
4081 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4082 use the new locals "insn_set" and "dep_set", and update calls to
4083 is_load_insn and is_store_insn to be calls to set_is_load_p and
4084 set_is_store_p.
4085
4086 2014-08-27 Guozhi Wei <carrot@google.com>
4087
4088 PR target/62262
4089 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4090 amount before using it.
4091
4092 2014-08-27 Richard Biener <rguenther@suse.de>
4093
4094 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4095 get_maxval_strlen inside a more useful API.
4096 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4097 (gimple_fold_builtin): ... caller.
4098 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4099 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4100 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4101 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4102 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4103 gimple_fold_builtin_sprintf): Adjust to compute maxval
4104 themselves.
4105
4106 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4107
4108 PR other/62248
4109 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4110
4111 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4112 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4113 Anna Tikhonova <anna.tikhonova@intel.com>
4114 Ilya Tocar <ilya.tocar@intel.com>
4115 Andrey Turetskiy <andrey.turetskiy@intel.com>
4116 Ilya Verbin <ilya.verbin@intel.com>
4117 Kirill Yukhin <kirill.yukhin@intel.com>
4118 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4119
4120 * config/i386/sse.md
4121 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4122 Use `concat_tg_mode' attribute to determine asm register size.
4123
4124 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4125 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4126 Anna Tikhonova <anna.tikhonova@intel.com>
4127 Ilya Tocar <ilya.tocar@intel.com>
4128 Andrey Turetskiy <andrey.turetskiy@intel.com>
4129 Ilya Verbin <ilya.verbin@intel.com>
4130 Kirill Yukhin <kirill.yukhin@intel.com>
4131 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4132
4133 * config/i386/sse.md
4134 (define_mode_iterator VI48_AVX512VL): New.
4135 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4136 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4137 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4138 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4139 with VI1): Change mode iterator.
4140 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4141 with VI_ULOADSTORE_BW_AVX512VL): New.
4142 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4143 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4144 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4145 with VI1): Change mode iterator.
4146 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4147 with VI_ULOADSTORE_BW_AVX512VL): New.
4148 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4149 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4150 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4151 with VI1): Change mode iterator.
4152 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4153 with VI_ULOADSTORE_BW_AVX512VL): New.
4154 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4155 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4156 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4157 (define_insn "<avx512>_storedqu<mode>_mask" with
4158 VI48_AVX512VL): New.
4159 (define_insn "<avx512>_storedqu<mode>_mask" with
4160 VI12_AVX512VL): Ditto.
4161
4162 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4164 Anna Tikhonova <anna.tikhonova@intel.com>
4165 Ilya Tocar <ilya.tocar@intel.com>
4166 Andrey Turetskiy <andrey.turetskiy@intel.com>
4167 Ilya Verbin <ilya.verbin@intel.com>
4168 Kirill Yukhin <kirill.yukhin@intel.com>
4169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4170
4171 * config/i386/sse.md
4172 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4173 (define_mode_iterator VI48_AVX512BW): New.
4174 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4175 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4176 with VI48_AVX2_48_AVX512F): New.
4177 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4178 with VI2_AVX512VL): Ditto.
4179
4180 2014-08-27 Richard Biener <rguenther@suse.de>
4181
4182 PR middle-end/62239
4183 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4184 (fold_builtin_3): Do not fold strcat_chk here.
4185 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4186 from builtins.c.
4187 (gimple_fold_builtin): Fold strcat_chk here.
4188
4189 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4190
4191 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4192 * dwarf2out.c (dwarf2out_decl): Make static.
4193
4194 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4195
4196 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4197
4198 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4199
4200 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4201 from rtx to rtx_insn *.
4202 (cselib_lookup_from_insn): Likewise for final param.
4203 (cselib_subst_to_values_from_insn): Likewise.
4204 (cselib_add_permanent_equiv): Likewise.
4205
4206 * cselib.c (cselib_current_insn): Likewise for this variable.
4207 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4208 (cselib_lookup_from_insn): Likewise.
4209 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4210 "save_cselib_current_insn".
4211 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4212
4213 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4214 from rtx to rtx_insn *.
4215
4216 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4217
4218 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4219 rtx_insn *.
4220
4221 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4222
4223 * df.h (df_dump_insn_problem_function): Strengthen first param of
4224 this callback from const_rtx to const rtx_insn *.
4225 (struct df_insn_info): Strengthen field "insn" from rtx to
4226 rtx_insn *.
4227 (DF_REF_INSN): Eliminate this function, reinstating the older
4228 macro definition.
4229 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4230 (df_reg_defined): Likewise.
4231 (df_find_use): Likewise.
4232 (df_reg_used): Likewise.
4233 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4234 const rtx_insn *.
4235 (df_dump_insn_bottom): Likewise.
4236 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4237 (df_insn_debug_regno): Likewise.
4238 (debug_df_insn): Likewise.
4239 (df_rd_simulate_one_insn): Likewise for param 2.
4240 (df_word_lr_simulate_defs): Likewise for param 1.
4241 (df_word_lr_simulate_uses): Likewise.
4242 (df_md_simulate_one_insn): Likewise for param 2.
4243 (df_simulate_find_noclobber_defs): Likewise for param 1.
4244 (df_simulate_find_defs): Likewise.
4245 (df_simulate_defs): Likewise.
4246 (df_simulate_uses): Likewise.
4247 (df_simulate_one_insn_backwards): Likewise for param 2.
4248 (df_simulate_one_insn_forwards): Likewise.
4249 (df_uses_create): Likewise for param 2.
4250 (df_insn_create_insn_record): Likewise for param 1.
4251 (df_insn_delete): Likewise.
4252 (df_insn_rescan): Likewise.
4253 (df_insn_rescan_debug_internal): Likewise.
4254 (df_insn_change_bb): Likewise.
4255 (df_notes_rescan): Likewise.
4256 * rtl.h (remove_death): Likewise for param 2.
4257 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4258 const rtx_insn *.
4259 * sched-int.h (reemit_notes): Strengthen param from rtx to
4260 rtx_insn *.
4261 * valtrack.h (propagate_for_debug): Likewise for param 1.
4262
4263 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4264 local "tmp_rtx" from const_rtx to const rtx_insn *.
4265 * combine.c (remove_death): Strengthen param "insn" from rtx to
4266 rtx_insn *.
4267 (move_deaths): Likewise for local "where_dead".
4268 * cse.c (delete_trivially_dead_insns): Introduce local
4269 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4270 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4271 rtx_insn *.
4272 (df_reg_defined): Likewise.
4273 (df_find_use): Likewise.
4274 (df_reg_used): Likewise.
4275 (df_dump_insn_problem_data): Strengthen param "insn" from
4276 const_rtx to const rtx_insn *.
4277 (df_dump_insn_top): Likewise.
4278 (df_dump_insn_bottom): Likewise.
4279 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4280 (df_insn_debug_regno): Likewise.
4281 (debug_df_insn): Likewise.
4282 (DF_REF_INSN): Delete.
4283 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4284 from rtx to rtx_insn *.
4285 (df_chain_insn_top_dump): Strengthen param "insn" from
4286 const_rtx to const rtx_insn *.
4287 (df_chain_insn_bottom_dump): Likewise.
4288 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4289 rtx_insn *.
4290 (df_word_lr_simulate_uses): Likewise.
4291 (df_print_note): Likewise.
4292 (df_remove_dead_and_unused_notes): Likewise.
4293 (df_set_unused_notes_for_mw): Likewise.
4294 (df_set_dead_notes_for_mw): Likewise.
4295 (df_create_unused_note): Likewise.
4296 (df_simulate_find_defs): Likewise.
4297 (df_simulate_find_uses): Likewise.
4298 (df_simulate_find_noclobber_defs): Likewise.
4299 (df_simulate_defs): Likewise.
4300 (df_simulate_uses): Likewise.
4301 (df_simulate_one_insn_backwards): Likewise.
4302 (df_simulate_one_insn_forwards): Likewise.
4303 (df_md_simulate_one_insn): Likewise.
4304 * df-scan.c (df_uses_create): Likewise.
4305 (df_insn_create_insn_record): Likewise.
4306 (df_insn_delete): Likewise.
4307 (df_insn_rescan): Likewise.
4308 (df_insn_rescan_debug_internal): Likewise.
4309 (df_insn_change_bb): Likewise.
4310 (df_notes_rescan): Likewise.
4311 (df_refs_add_to_chains): Likewise.
4312 (df_insn_refs_verify): Likewise.
4313 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4314 when invoking df_insn_delete.
4315 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4316 (set_unique_reg_note): Add checked cast.
4317 * final.c (cleanup_subreg_operands): Likewise.
4318 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4319 "insn" from rtx to rtx_insn *.
4320 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4321 "last" from rtx to rtx_insn *.
4322 * ira-emit.c (change_regs_in_insn): New function.
4323 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4324 Invoke change_regs_in_insn rather than change_regs.
4325 * ira.c (update_equiv_regs): Strengthen locals "insn",
4326 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4327 for_each_rtx_in_insn rather than for_each_rtx.
4328 * recog.c (confirm_change_group): Add checked casts.
4329 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4330 Add checked cast.
4331 (peep2_fill_buffer): Add checked cast.
4332 * rtlanal.c (remove_note): Likewise.
4333 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4334 locals "next" "end" from rtx to rtx_insn *.
4335
4336 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4337
4338 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4339 to rtx_insn *.
4340 (struct reg_use_data): Likewise for field "insn".
4341 (insn_cost): Likewise for param.
4342 (real_insn_for_shadow): Likewise for return type and param.
4343 (increase_insn_priority): Likewise for param 1.
4344 (debug_dependencies): Likewise for both params.
4345
4346 * haifa-sched.c (insn_delay): Likewise for param "insn".
4347 (real_insn_for_shadow): Likewise for return type and param "insn".
4348 (update_insn_after_change): Likewise for param "insn".
4349 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4350 "other".
4351 (insn_cost): Likewise for param "insn".
4352 (increase_insn_priority): Likewise.
4353 (calculate_reg_deaths): Likewise.
4354 (setup_insn_reg_pressure_info): Likewise.
4355 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4356 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4357 (model_recompute): Likewise.
4358 (must_restore_pattern_p): Likewise for param "next".
4359 (model_excess_cost): Likewise for param "insn".
4360 (queue_remove): Likewise.
4361 (adjust_priority): Likewise for param "prev".
4362 (update_register_pressure): Likewise for param "insn".
4363 (setup_insn_max_reg_pressure): Likewise for local "insn".
4364 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4365 (model_add_to_schedule): Likewise.
4366 (model_reset_queue_indices): Likewise for local "insn".
4367 (unschedule_insns_until): Strengthen local "recompute_vec" from
4368 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4369 "con" from rtx to rtx_insn *.
4370 (restore_last_backtrack_point): Likewise for both locals "x". Add
4371 checked casts.
4372 (estimate_insn_tick): Likewise for param "insn".
4373 (commit_schedule): Likewise for params "prev_head", "tail" and
4374 local "x".
4375 (verify_shadows): Likewise for locals "i1", "i2".
4376 (dump_insn_stream): Likewise for params "head", "tail" and locals
4377 "next_tail", "insn".
4378 (schedule_block): Likewise for locals "insn", "x". Add a checked
4379 cast.
4380 (fix_inter_tick): Likewise for params "head", "tail".
4381 (create_check_block_twin): Likewise for local "jump".
4382 (haifa_change_pattern): Likewise for param "insn".
4383 (haifa_speculate_insn): Likewise.
4384 (dump_new_block_header): Likewise for params "head", "tail".
4385 (fix_jump_move): Likewise for param "jump".
4386 (move_block_after_check): Likewise.
4387 (sched_init_insn_luid): Likewise for param "insn".
4388 (sched_init_luids): Likewise for local "insn".
4389 (insn_luid): Likewise for param "insn".
4390 (init_h_i_d): Likewise.
4391 (haifa_init_h_i_d): Likewise for local "insn".
4392 (haifa_init_insn): Likewise for param "insn".
4393 * sched-deps.c (add_dependence): Likewise for local "real_pro",
4394 "other".
4395 (create_insn_reg_use): Likewise for param "insn".
4396 (setup_insn_reg_uses): Likewise. Add a checked cast.
4397 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
4398 "tail" from rtx to rtx_insn *.
4399 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
4400 "insn", "next_tail".
4401
4402 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4403
4404 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
4405 from rtx to rtx_insn *.
4406 (model_add_to_schedule): Likewise for locals "start", "end",
4407 "iter".
4408
4409 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4410
4411 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
4412 rtx_insn *.
4413 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
4414 "to" and locals "insn", "next", "copy". Remove now-redundant
4415 checked cast.
4416
4417 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4418
4419 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
4420 rtx_insn * and param 4 from rtx * to rtx_insn **.
4421 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
4422 param 2 from rtx * to rtx_insn **.
4423
4424 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
4425 rtx_insn * and final param from rtx * to rtx_insn **.
4426
4427 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
4428 from rtx to rtx_insn *.
4429 (try_head_merge_bb): Likewise for both locals named "move_upto".
4430 * df-problems.c (can_move_insns_across): Likewise for params
4431 "from", "to", "across_from", "across_to" and locals "insn",
4432 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
4433 rtx_insn **.
4434 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
4435 from rtx to rtx_insn *.
4436 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
4437 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4438 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
4439 rtx_insn *.
4440 (noce_try_abs): Likewise.
4441 (noce_get_condition): Likewise for param "jump". Strengthen param
4442 "earliest" from rtx * to rtx_insn **.
4443 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
4444 rtx_insn *.
4445 (find_cond_trap): Likewise.
4446 (dead_or_predicable): Likewise for local "earliest".
4447 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
4448 checked cast.
4449 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
4450 and local "prev". Strengthen param "earliest" from rtx * to
4451 rtx_insn **.
4452 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
4453 Strengthen param "earliest" from rtx * to rtx_insn **.
4454
4455 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4456
4457 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
4458 "to" and local "insn" from rtx to rtx_insn *.
4459
4460 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4461
4462 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4463 from rtx to rtx_insn *.
4464 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
4465 (code_motion_path_driver): Likewise for local "last_insn".
4466 (simplify_changed_insns): Likewise for local "insn".
4467
4468 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4469
4470 * rtl.h (push_to_sequence): Strengthen param from rtx to
4471 rtx_insn *.
4472 (push_to_sequence2): Likewise for both params.
4473 (delete_insns_since): Likewise for param.
4474 (reorder_insns_nobb): Likewise for all three params.
4475 (set_new_first_and_last_insn): Likewise for both params.
4476
4477 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
4478 rtx_insn *. Remove now-redundant cast.
4479 (set_last_insn): Likewise.
4480
4481 * builtins.c (expand_builtin_return): Strengthen local
4482 "call_fusage" from rtx to rtx_insn *.
4483 * cfgrtl.c (create_basic_block_structure): Likewise for local
4484 "after".
4485 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4486 "first", "last" and local "insn".
4487 (delete_insns_since): Likewise for param "from".
4488 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4489 and local "x".
4490 (push_to_sequence): Likewise for param "first" and local "last".
4491 (push_to_sequence2): Likewise for params "first" and "last".
4492 * lra.c (emit_add3_insn): Likewise for local "last".
4493 (lra_emit_add): Likewise.
4494 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4495 "last_insn".
4496 (process_address_1): Likewise for locals "insn", last".
4497 * modulo-sched.c (ps_first_note): Likewise for return type.
4498 * optabs.c (expand_binop_directly): Likewise for param "last".
4499
4500 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4501
4502 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4503 to rtx_insn*.
4504 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4505
4506 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4507
4508 * function.h (struct sequence_stack): Strengthen fields "first"
4509 and "last" from rtx to rtx_insn *.
4510 (struct emit_status): Likewise for fields "x_first_insn" and
4511 "x_last_insn".
4512
4513 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4514 (set_first_insn): Add checked cast.
4515 (get_last_insn): Remove now-redundant checked cast.
4516 (set_last_insn): Add checked cast.
4517
4518 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4519 "saved_first" and "saved_last" from rtx to rtx_insn *.
4520
4521 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4522
4523 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4524 (unlink_insn_chain): Strengthen both params from rtx to
4525 rtx_insn *.
4526
4527 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4528 variable.
4529 (unlink_insn_chain): Likewise for params "first" and "last".
4530 Remove now-redundant checked cast.
4531 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4532 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4533 rtx_insn *.
4534 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4535 params.
4536 (add_insn): Likewise for param "insn" and local "prev".
4537 (add_insn_after_nobb): Likewise for both params and local "next".
4538 (add_insn_before_nobb): Likewise for both params and local "prev".
4539 (add_insn_after): Rename param "after" to "uncast_after",
4540 introducing local "after" with another checked cast.
4541 (add_insn_before): Rename params "insn" and "before", giving them
4542 "uncast_" prefixes, adding the old names back using checked casts.
4543 (emit_note_after): Likewise for param "after".
4544 (emit_note_before): Likewise for param "before".
4545 (emit_label): Add a checked cast.
4546
4547 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4548
4549 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4550 "insn" from rtx to rtx_insn *.
4551
4552 * cselib.c (cselib_record_sets_hook): Likewise.
4553
4554 * var-tracking.c (add_with_sets): Likewise, renaming back from
4555 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4556 to rtx_insn *.
4557
4558 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4559
4560 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4561 and "header_" from rtx to rtx_insn *.
4562 (struct basic_block_d): Likewise for field "head_" within "x"
4563 field of union basic_block_il_dependent.
4564 (BB_HEAD): Drop function...
4565 (SET_BB_HEAD): ...and this function in favor of...
4566 (BB_HEAD): ...reinstate macro.
4567 (BB_END): Drop function...
4568 (SET_BB_END): ...and this function in favor of...
4569 (BB_END): ...reinstate macro.
4570 (BB_HEADER): Drop function...
4571 (SET_BB_HEADER): ...and this function in favor of...
4572 (BB_HEADER): ...reinstate macro.
4573
4574 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4575 (fix_crossing_unconditional_branches): Likewise.
4576 * caller-save.c (save_call_clobbered_regs): Likewise.
4577 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4578 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4579 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4580 (merge_blocks_move_successor_nojumps): Likewise.
4581 (outgoing_edges_match): Update use of for_each_rtx to
4582 for_each_rtx_in_insn.
4583 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4584 (expand_gimple_cond): Likewise.
4585 (expand_gimple_tailcall): Likewise.
4586 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4587 SET_BB_END.
4588 (construct_exit_block): Drop use of SET_BB_END.
4589 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4590 rtx_insn *.
4591 (delete_insn): Rename param "insn" to "uncast_insn", introducing
4592 a new local "insn" with a checked cast to rtx_insn *. Drop use of
4593 SET_BB_HEAD and SET_BB_END.
4594 (create_basic_block_structure): Drop use of SET_BB_HEAD and
4595 SET_BB_END.
4596 (rtl_delete_block): Drop use of SET_BB_HEAD.
4597 (rtl_split_block): Drop use of SET_BB_END.
4598 (emit_nop_for_unique_locus_between): Likewise.
4599 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4600 (block_label): Drop use of SET_BB_HEAD.
4601 (fixup_abnormal_edges): Drop use of SET_BB_END.
4602 (record_effective_endpoints): Drop use of SET_BB_HEADER.
4603 (relink_block_chain): Likewise.
4604 (fixup_reorder_chain): Drop use of SET_BB_END.
4605 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4606 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4607 rtx_insn **. Drop use of SET_BB_HEADER.
4608 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4609 SET_BB_HEAD.
4610 (BB_HEAD): Delete this function.
4611 (SET_BB_HEAD): Likewise.
4612 (BB_END): Likewise.
4613 (SET_BB_END): Likewise.
4614 (BB_HEADER): Likewise.
4615 (SET_BB_HEADER): Likewise.
4616 * emit-rtl.c (add_insn_after): Rename param "insn" to
4617 "uncast_insn", adding a new local "insn" and a checked cast to
4618 rtx_insn *. Drop use of SET_BB_END.
4619 (remove_insn): Strengthen locals "next" and "prev" from rtx to
4620 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
4621 (reorder_insns): Drop use of SET_BB_END.
4622 (emit_insn_after_1): Strengthen param "first" and locals "last",
4623 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
4624 (emit_pattern_after_noloc): Add checked cast.
4625 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4626 (restore_other_notes): Likewise.
4627 (move_insn): Likewise.
4628 (sched_extend_bb): Likewise.
4629 (fix_jump_move): Likewise.
4630 * ifcvt.c (noce_process_if_block): Likewise.
4631 (dead_or_predicable): Likewise.
4632 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4633 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4634 * sel-sched-ir.c (sel_move_insn): Likewise.
4635 * sel-sched.c (move_nop_to_previous_block): Likewise.
4636
4637 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4638 SET_BB_END.
4639 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4640
4641 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4642
4643 * basic-block.h (create_basic_block_structure): Strengthen params
4644 1 "head" and 2 "end" from rtx to rtx_insn *.
4645 * cfgrtl.c (create_basic_block_structure): Likewise.
4646 (rtl_create_basic_block): Update casts from void * to rtx to
4647 rtx_insn *, so that we can pass them as rtx_insn * to
4648 create_basic_block_structure.
4649 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4650
4651 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4652
4653 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4654 rtx_insn **.
4655 (check_for_inc_dec): Strengthen param "insn" from rtx to
4656 rtx_insn *.
4657
4658 * cselib.h (cselib_process_insn): Likewise.
4659
4660 * cselib.c (cselib_record_sets): Likewise.
4661 (cselib_process_insn): Likewise.
4662
4663 * dse.c (struct insn_info): Likewise for field "insn".
4664 (check_for_inc_dec_1): Likewise for local "insn".
4665 (check_for_inc_dec): Likewise for param "insn".
4666 (scan_insn): Likewise.
4667 (dse_step1): Likewise for local "insn".
4668
4669 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4670 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
4671
4672 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4673
4674 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4675 from rtx to rtx_insn *.
4676 (DEP_PRO): Delete this function and...
4677 (SET_DEP_PRO): ...this function in favor of...
4678 (DEP_PRO): ...reinstate this macro.
4679 (DEP_CON): Delete this function and...
4680 (SET_DEP_CON): ...this function in favor of...
4681 (DEP_CON): ...reinstate this old macro.
4682 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4683 (init_dep): Likewise.
4684 (set_priorities): Likewise for both params.
4685 (sd_copy_back_deps): Likewise for params 1 and 2.
4686
4687 * haifa-sched.c (priority): Likewise for param "insn" and local
4688 "next".
4689 (set_priorities): Likewise for params "head" and "tail" and local
4690 "insn".
4691 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4692 local "consumer".
4693 (add_to_speculative_block): Add a checked cast.
4694 (create_check_block_twin): Drop use of SET_DEP_CON.
4695 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4696 rtx to rtx_insn *.
4697
4698 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4699 Drop use of SET_DEP_PRO
4700 (init_dep): Strengthen params "pro" and "con" from rtx to
4701 rtx_insn *.
4702 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4703 use of SET_DEP_CON.
4704 (DEP_PRO): Delete.
4705 (DEP_CON): Delete.
4706 (SET_DEP_PRO): Delete.
4707 (SET_DEP_CON): Delete.
4708
4709 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4710
4711 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4712 from rtx to rtx_insn *.
4713 (VINSN_INSN_RTX): Eliminate rvalue function and...
4714 (SET_VINSN_INSN): ...lvalue function in favor of...
4715 (VINSN_INSN_RTX): reinstate this old macro.
4716
4717 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4718 in favor of VINSN_INSN_RTX.
4719 (VINSN_INSN_RTX): Delete this function.
4720 (SET_VINSN_INSN_RTX): Likewise.
4721
4722 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4723
4724 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4725 (BND_TO): Delete this function and...
4726 (SET_BND_TO): ...this functions in favor of...
4727 (BND_TO): ...reinstating this macro.
4728 (struct _fence): Strengthen field "executing_insns" from
4729 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4730 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4731 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4732 and param "insn" from rtx to insn_t.
4733 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4734 rtx_insn *.
4735
4736 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4737 vec<rtx_insn *> .
4738 (rtx_vec_t): Likewise.
4739 (struct sched_deps_info_def): Strengthen param of "start_insn"
4740 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4741 "note_mem_dep" callback and first param of "note_dep" callback.
4742
4743 * haifa-sched.c (add_to_speculative_block): Strengthen param
4744 "insn" from rtx to rtx_insn *.
4745 (clear_priorities): Likewise.
4746 (calc_priorities): Likewise for local "insn".
4747
4748 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4749 Remove redundant checked cast.
4750 (haifa_note_mem_dep): Likewise for param "pending_insn".
4751 (haifa_note_dep): Likewise for param "elem".
4752 (note_mem_dep): Likewise for param "e".
4753 (sched_analyze_1): Add checked casts.
4754 (sched_analyze_2): Likewise.
4755
4756 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4757 from rtx to rtx_insn *.
4758 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4759 from vec<rtx> * to vec<rtx_insn *> *.
4760
4761 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4762 scaffolding.
4763 (flist_add): Strengthen param "executing_insns" from
4764 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4765 (advance_deps_context): Remove now-redundant checked cast.
4766 (init_fences): Replace uses of NULL_RTX with NULL.
4767 (merge_fences): Strengthen params "last_scheduled_insn" and
4768 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4769 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4770 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4771 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4772 an instruction, rather than doing double-duty as a pattern.
4773 (return_nop_to_pool): Update for change of insn_t.
4774 (deps_init_id): Remove now-redundant checked cast.
4775 (struct sched_scan_info_def): Strengthen param of "init_insn"
4776 callback from rtx to insn_t.
4777 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4778 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4779 NULL.
4780 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4781 "end" from rtx to rtx_insn *.
4782 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4783 (rtx insn_rtx, bool force_unique_p)
4784 (BND_TO): Delete function.
4785 (SET_BND_TO): Delete function.
4786
4787 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4788 rtx to rtx_insn *.
4789 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4790 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4791 rtx to rtx_insn *.
4792 (undo_transformations): Likewise for param "insn".
4793 (update_liveness_on_insn): Likewise.
4794 (compute_live_below_insn): Likewise for param "insn" and local
4795 "succ".
4796 (update_data_sets): Likewise for param "insn".
4797 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4798 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4799 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4800 rtx_insn *.
4801 (move_cond_jump): Likewise for param "insn".
4802 (move_cond_jump): Drop use of SET_BND_TO.
4803 (compute_av_set_on_boundaries): Likewise.
4804 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4805 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4806 from rtx to rtx_insn *.
4807 (maybe_emit_renaming_copy): Likewise for param "insn".
4808 (maybe_emit_speculative_check): Likewise.
4809 (handle_emitting_transformations): Likewise.
4810 (remove_insn_from_stream): Likewise.
4811 (code_motion_process_successors): Strengthen local "succ" from rtx
4812 to insn_t.
4813
4814 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4815
4816 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4817 ilist_t, not _xlist_t;
4818 (ILIST_INSN): Define in terms of new union field "insn".
4819 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4820 _XLIST_NEXT.
4821 (struct _list_node): Add new field "insn" to the union, of type
4822 insn_t.
4823 (ilist_add): Replace macro with an inline function, requiring an
4824 insn_t.
4825 (ilist_remove): Define this macro directly in terms of
4826 _list_remove, rather than indirectly via _xlist_remove.
4827 (ilist_clear): Likewise, in terms of _list_clear rather than
4828 _xlist_clear.
4829 (ilist_is_in_p): Replace macro with an inline function, requiring
4830 an insn_t.
4831 (_list_iter_cond_insn): New function.
4832 (ilist_iter_remove): Define this macro directly in terms of
4833 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4834 (ilist_iterator): Define directly in terms of _list_iterator
4835 rather than indirectly through _xlist_iterator.
4836 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4837 than in terms of _FOR_EACH_X.
4838 (FOR_EACH_INSN_1): Likewise.
4839
4840 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4841
4842 PR target/60606
4843 PR target/61330
4844 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
4845 DECL_HARD_REGISTER and return for invalid register specifications.
4846 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
4847 DECL_HARD_REGISTER, call expand_one_error_var.
4848 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
4849 CC_REGNUM with non-MODE_CC modes.
4850 (arm_regno_class): Return NO_REGS for PC_REGNUM.
4851
4852 2014-08-26 Marek Polacek <polacek@redhat.com>
4853
4854 PR c/61271
4855 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
4856
4857 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
4858
4859 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
4860 qi cost; add di cost.
4861 (cortexa57_addrcost_table): Likewise.
4862
4863 2014-08-26 Marek Polacek <polacek@redhat.com>
4864
4865 PR c/61271
4866 * expr.c (is_aligning_offset): Remove logical not.
4867
4868 2014-08-26 Marek Polacek <polacek@redhat.com>
4869
4870 PR c/61271
4871 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
4872 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
4873
4874 2014-08-26 Richard Biener <rguenther@suse.de>
4875
4876 PR tree-optimization/62175
4877 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
4878 expand possibly trapping operations.
4879
4880 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4881
4882 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
4883 "insn" from rtx to rtx_insn *.
4884 (permute_load): Likewise for param "insn".
4885 (permute_store): Likewise.
4886 (handle_special_swappables): Likewise for local "insn".
4887 (replace_swap_with_copy): Likewise for locals "insn" and
4888 "new_insn".
4889 (rs6000_analyze_swaps): Likewise for local "insn".
4890
4891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4892
4893 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
4894 to rtx_insn *.
4895
4896 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4897
4898 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
4899 "note_list" from rtx to rtx_insn *.
4900 (BB_NOTE_LIST): Replace this function and...
4901 (SET_BB_NOTE_LIST): ...this function with...
4902 (BB_NOTE_LIST): ...the former macro implementation.
4903
4904 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
4905 local "from_start" from rtx to rtx_insn *. Strengthen param
4906 "to_endp" from rtx * to rtx_insn **.
4907
4908 * haifa-sched.c (concat_note_lists): Likewise.
4909 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
4910 BB_NOTE_LIST.
4911 (sel_restore_notes): Likewise.
4912 (move_bb_info): Likewise.
4913 (BB_NOTE_LIST): Delete this function.
4914 (SET_BB_NOTE_LIST): Delete this function.
4915 * sel-sched.c (create_block_for_bookkeeping): Eliminate
4916 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
4917
4918 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4919
4920 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
4921 from rtx * to rtx_insn **.
4922 (reorder2): Likewise.
4923 (dependencies_evaluation_hook): Strengthen params "head", "tail"
4924 from rtx to rtx_insn *.
4925
4926 * doc/tm.texi: Update mechanically for above change to target.def.
4927
4928 * sched-int.h (note_list): Strengthen this variable from rtx to
4929 rtx_insn *.
4930 (remove_notes): Likewise for both params.
4931 (restore_other_notes): Likewise for return type and first param.
4932 (struct ready_list): Strengthen field "vec" from rtx * to
4933 rtx_insn **.
4934 (struct dep_replacement): Strenghten field "insn" from rtx to
4935 rtx_insn *.
4936 (struct deps_desc): Likewise for fields "last_debug_insn",
4937 "last_args_size".
4938 (struct haifa_sched_info): Likewise for callback field
4939 "can_schedule_ready_p"'s param, for first param of "new_ready"
4940 callback field, for both params of "rank" callback field, for
4941 first field of "print_insn" callback field (with a const), for
4942 both params of "contributes_to_priority" callback, for param
4943 of "insn_finishes_block_p" callback, for fields "prev_head",
4944 "next_tail", "head", "tail", for first param of "add_remove_insn"
4945 callback, for first param of "begin_schedule_ready" callback, for
4946 both params of "begin_move_insn" callback, and for second param
4947 of "advance_target_bb" callback.
4948 (add_dependence): Likewise for params 1 and 2.
4949 (sched_analyze): Likewise for params 2 and 3.
4950 (deps_analyze_insn): Likewise for param 2.
4951 (ready_element): Likewise for return type.
4952 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4953 (try_ready): Strenghten param from rtx to rtx_insn *.
4954 (sched_emit_insn): Likewise for return type.
4955 (record_delay_slot_pair): Likewise for params 1 and 2.
4956 (add_delay_dependencies): Likewise for param.
4957 (contributes_to_priority): Likewise for both params.
4958 (find_modifiable_mems): Likewise.
4959
4960 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
4961 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
4962 "first_older_only_insn" from rtx to rtx_insn *.
4963 (arm_sched_reorder): Strengthen param "ready" from rtx * to
4964 rtx_insn **.
4965
4966 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
4967 "last_scheduled_iter0" from rtx to rtx_insn *.
4968 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
4969 (c6x_sched_reorder_1): Strengthen param "ready" and locals
4970 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4971 "insn" from rtx to rtx_insn *.
4972 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
4973 rtx_insn **.
4974 (c6x_sched_reorder2): Strengthen param "ready" and locals
4975 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4976 "insn" from rtx to rtx_insn *.
4977 (c6x_variable_issue): Add a checked cast when assigning from insn
4978 to ss.last_scheduled_iter0.
4979 (split_delayed_branch): Strengthen param "insn" and local "i1"
4980 from rtx to rtx_insn *.
4981 (split_delayed_nonbranch): Likewise.
4982 (undo_split_delayed_nonbranch): Likewise for local "insn".
4983 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
4984 "entry_after", "end_packet", "head_insn", "tail_insn",
4985 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
4986 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
4987 to rtx_insn **. Remove now-redundant checked cast on last_insn,
4988 but add a checked cast on loop->start_label. Consolidate calls to
4989 avoid assigning result of gen_spkernel to "insn", now an
4990 rtx_insn *.
4991
4992 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
4993 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
4994 rtx to rtx_insn *.
4995 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
4996 rtx_insn **. Strengthen locals "top", "next" from rtx to
4997 rtx_insn *.
4998 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
4999 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5000 (add_parameter_dependencies): Strengthen params "call", "head" and
5001 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5002 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5003 (add_dependee_for_func_arg): Likewise for param "arg" and local
5004 "insn".
5005 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5006 "tail" and locals "insn", "first_arg".
5007
5008 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5009 for params "head", "tail" and locals "insn", "next", "next_tail".
5010 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5011 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5012 "insn", "lowest", "highest" from rtx to rtx_insn *.
5013 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5014 rtx_insn **.
5015 (ia64_sched_reorder2): Likewise.
5016
5017 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5018 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5019 from rtx * to rtx_insn **.
5020 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5021 rtx_insn **.
5022 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5023 rtx_insn *.
5024 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5025 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5026 to rtx_insn *.
5027
5028 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5029 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5030 to rtx_insn *.
5031 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5032 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5033 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5034 rtx_insn **.
5035 (vr4130_reorder): Likewise.
5036 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5037 rtx to rtx_insn *.
5038 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5039 rtx_insn **.
5040 (mips_sched_reorder): Likewise.
5041 (mips_sched_reorder2): Likewise.
5042
5043 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5044
5045 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5046 Strengthen local "tmp" from rtx to rtx_insn *.
5047 (rs6000_sched_reorder2): Likewise.
5048
5049 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5050 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5051 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5052 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5053
5054 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5055 "tmp2" from rtx to rtx_insn *.
5056 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5057 Strengthen local "insn" from rtx to rtx_insn *.
5058 (ready_reorder): Strengthen param "ready" from rtx * to
5059 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5060 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5061 (sh_reorder2): Likewise.
5062
5063 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5064 local "insn" from rtx to rtx_insn *.
5065
5066 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5067 rtx_insn *.
5068 (scheduled_insns): Strengthen this variable from vec<rtx> to
5069 vec<rtx_insn *>.
5070 (set_modulo_params): Likewise for locals "i1", "i2".
5071 (record_delay_slot_pair): Likewise for params "i1", "i2".
5072 (add_delay_dependencies): Likewise for param "insn".
5073 (cond_clobbered_p): Likewise.
5074 (recompute_todo_spec): Likewise for local "prev".
5075 (last_scheduled_insn): Likewise for this variable.
5076 (nonscheduled_insns_begin): Likewise.
5077 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5078 rtx_insn **.
5079 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5080 rtx_insn *.
5081 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5082 Strengthen local "insn" from rtx to rtx_insn *.
5083 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5084 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5085 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5086 (ready_remove_first): Likewise for return type and local "t".
5087 (ready_element): Likewise for return type.
5088 (ready_remove): Likewise for return type and local "t".
5089 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5090 (check_clobbered_conditions): Strengthen local "x" from rtx to
5091 rtx_insn *, adding a checked cast.
5092 (schedule_insn): Likewise for param "insn".
5093 (remove_notes): Likewise for params "head", "tail" and locals
5094 "next_tail", "insn", "next".
5095 (struct haifa_saved_data): Likewise for fields
5096 "last_scheduled_insn", "nonscheduled_insns_begin".
5097 (save_backtrack_point): Update for change to field "vec" of
5098 struct ready_list.
5099 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5100 rtx_insn **.
5101 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5102 from rtx to rtx_insn *
5103 (resolve_dependencies): Strengthen param "insn" from rtx to
5104 rtx_insn *
5105 (restore_other_notes): Likewise for return type, for param "head"
5106 and local "note_head".
5107 (undo_all_replacements): Likewise for local "insn".
5108 (first_nonscheduled_insn): Likewise for return type and local "insn".
5109 (queue_to_ready): Likewise for local "insn", adding checked casts.
5110 (early_queue_to_ready): Likewise for local "insn".
5111 (debug_ready_list_1): Strengthen local "p" from rtx * to
5112 rtx_insn **.
5113 (move_insn): Strengthen param "insn" and local "note" from rtx to
5114 rtx_insn *
5115 (insn_finishes_cycle_p): Likewise for param "insn".
5116 (max_issue): Likewise for local "insn".
5117 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5118 to rtx_insn **.
5119 (commit_schedule): Strengthen param "prev_head" and local "insn"
5120 from rtx to rtx_insn *
5121 (prune_ready_list): Likewise for local "insn".
5122 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5123 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5124 (set_priorities): Likewise for local "prev_head".
5125 (try_ready): Likewise for param "next".
5126 (fix_tick_ready): Likewise.
5127 (change_queue_index): Likewise.
5128 (sched_extend_ready_list): Update for change to field "vec" of
5129 struct ready_list.
5130 (generate_recovery_code): Strengthen param "insn" from rtx to
5131 rtx_insn *.
5132 (begin_speculative_block): Likewise.
5133 (create_check_block_twin): Likewise for param "insn" and locals
5134 "label", "check", "twin". Introduce local "check_pat" to avoid
5135 "check" being used as a plain rtx before being used as an insn.
5136 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5137 extracting elements from ready_list.
5138 (sched_remove_insn): Strengthen param "insn" from rtx to
5139 rtx_insn *.
5140 (sched_emit_insn): Likewise for return type.
5141 (ready_remove_first_dispatch): Likewise for return type and local
5142 "insn".
5143
5144 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5145
5146 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5147 const rtx_insn *.
5148
5149 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5150 from rtx to rtx_insn *.
5151 (add_dependence_list): Likewise for param "insn". Add a checked
5152 cast.
5153 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5154 to rtx_insn *. Strengthen param "list_p" from rtx * to
5155 rtx_insn **.
5156 (chain_to_prev_insn): Strengthen param "insn" and locals
5157 "prec_nonnote", "i" from rtx to rtx_insn *.
5158 (flush_pending_lists): Likewise for param "insn".
5159 (cur_insn): Likewise for this variable.
5160 (haifa_start_insn): Add a checked cast.
5161 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5162 (sched_analyze_reg): Likewise for param "insn".
5163 (sched_analyze_1): Likewise.
5164 (sched_analyze_2): Likewise. Add checked casts.
5165 (sched_analyze_insn): Likewise. Also for local "prev".
5166 (deps_analyze_insn): Likewise for param "insn".
5167 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5168 (add_dependence_1): Likewise for params "insn", "elem".
5169 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5170 (parse_add_or_inc): Likewise for param "insn".
5171 (find_inc): Likewise for local "inc_cand".
5172 (find_modifiable_mems): Likewise for params "head", "tail" and
5173 locals "insn", "next_tail".
5174
5175 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5176 (begin_schedule_ready): Likewise for param "insn".
5177 (begin_move_insn): Likewise for params "insn" and "last".
5178 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5179 const rtx_insn *.
5180 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5181 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5182 (ebb_add_remove_insn): Likewise for param "insn".
5183 (advance_target_bb): Likewise.
5184
5185 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5186 "insn".
5187 (check_live): Likewise for param "insn".
5188 (init_ready_list): Likewise for local "insn".
5189 (can_schedule_ready_p): Likewise for param "insn".
5190 (begin_schedule_ready): Likewise.
5191 (new_ready): Likewise for param "next".
5192 (rgn_print_insn): Likewise for param "insn".
5193 (rgn_rank): Likewise for params "insn1", "insn2".
5194 (contributes_to_priority): Likewise for params "next", "insn".
5195 (rgn_insn_finishes_block_p): Likewise for param "insn".
5196 (add_branch_dependences): Likewise for params "head", "tail" and
5197 locals "insn", "last".
5198 (rgn_add_remove_insn): Likewise for param "insn".
5199 (advance_target_bb): Likewise.
5200
5201 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5202 const_rtx to const rtx_insn *.
5203
5204 * sel-sched-dump.h (sel_print_insn): Likewise.
5205
5206 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5207 (deps_init_id): Likewise.
5208
5209 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5210 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5211 rtx_insn **.
5212
5213 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5214
5215 * output.h (final_start_function): Strengthen param 1 from rtx to
5216 rtx_insn *.
5217
5218 * final.c (final_start_function): Likewise, renaming back from
5219 "uncast_first" to "first", and dropping the checked cast from rtx
5220 to rtx_insn *.
5221
5222 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5223
5224 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5225 * final.c (final): Likewise. Rename param back from
5226 "uncast_first" to "first" and eliminate the checked cast from rtx
5227 to rtx_insn *.
5228
5229 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5230
5231 * output.h (shorten_branches): Strengthen param from rtx to
5232 rtx_insn *.
5233
5234 * final.c (shorten_branches): Likewise, renaming param back from
5235 "uncast_first" to "first", and dropping the checked cast from rtx
5236 to rtx_insn *.
5237
5238 * genattr.c (gen_attr): Likewise when writing out the prototype of
5239 shorten_branches.
5240
5241 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5242
5243 * sched-int.h (struct haifa_sched_info): Strengthen fields
5244 "prev_head" and "next_tail" from rtx to rtx_insn *.
5245
5246 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5247
5248 * rtl.h (rtx_jump_table_data::get_labels): New method.
5249 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5250 with use of the new rtx_jump_table_data::get_labels method.
5251 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5252 to rtx_jump_table_data *. Simplify by using get_labels method.
5253 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5254 a dyn_cast, introducing local "table", using it to replace
5255 label-lookup logic with a get_labels method call.
5256 (patch_jump_insn): Simplify using get_labels method.
5257 * dwarf2cfi.c (create_trace_edges): Likewise.
5258 * rtlanal.c (label_is_jump_target_p): Likewise.
5259
5260 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5261
5262 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5263 to rtx_insn *.
5264
5265 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5266 (unshare_all_rtl_again): Likewise, also for local "p".
5267
5268 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5269
5270 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5271 to rtx_insn *.
5272 * cfgrtl.c (delete_insn_and_edges): Likewise.
5273
5274 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5275
5276 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5277 from rtx to rtx_insn *.
5278
5279 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5280
5281 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5282
5283 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5284 locals "returnjump", "epilogue_end", "insn", "next".
5285
5286 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5287 "returnjump" from rtx * to rtx_insn **.
5288 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5289
5290 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5291
5292 * basic-block.h (struct edge_def). Strengthen "r" within
5293 union edge_def_insns from rtx to rtx_insn *.
5294
5295 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5296 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5297 rtx_insn *.
5298 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5299 from rtx to rtx_insn *.
5300 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5301 rtx_insn *.
5302 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5303 (reg_used_on_edge): Likewise.
5304 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5305 (gt_pch_nx): New overload for rtx_insn *&.
5306 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5307 from rtx to rtx_insn *.
5308
5309 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5310
5311 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5312 from rtx to rtx_insn *.
5313 (BB_FOOTER): Replace function with access macro.
5314 (SET_BB_FOOTER): Delete.
5315
5316 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5317 with BB_FOOTER.
5318 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5319 (emit_barrier_after_bb): Likewise.
5320 (record_effective_endpoints): Likewise.
5321 (relink_block_chain): Likewise.
5322 (fixup_fallthru_exit_predecessor): Likewise.
5323 (cfg_layout_duplicate_bb): Likewise.
5324 (cfg_layout_split_block): Likewise.
5325 (cfg_layout_delete_block): Likewise.
5326 (cfg_layout_merge_blocks): Likewise.
5327 (BB_FOOTER): Delete function.
5328 (SET_BB_FOOTER): Delete function.
5329 * combine.c (update_cfg_for_uncondjump): Replace uses of
5330 SET_BB_FOOTER with BB_FOOTER.
5331
5332 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5333
5334 * except.h (struct eh_landing_pad_d): Strengthen field
5335 "landing_pad" from rtx to rtx_code_label *.
5336
5337 * except.c (sjlj_emit_dispatch_table): Likewise for param
5338 "dispatch_label"
5339 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5340
5341 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5342
5343 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5344 first param from rtx to rtx_insn *.
5345 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5346 field "set_frame_ptr_insn".
5347 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5348 "csend" from rtx to rtx_code_label *.
5349 (xtensa_expand_atomic): Likewise for local "csloop".
5350 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5351 rtx_insn *.
5352 (xtensa_call_tls_desc): Likewise for return type and locals
5353 "call_insn", "insns".
5354 (xtensa_legitimize_tls_address): Likewise for local "insns".
5355 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5356
5357 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5358
5359 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5360 first param from rtx to rtx_insn *.
5361 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5362 "insn".
5363
5364 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5365
5366 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5367 Strengthen param 1 from rtx to rtx_insn *.
5368 (tilepro_output_cbranch): Likewise.
5369 (tilepro_adjust_insn_length): Likewise.
5370 (tilepro_final_prescan_insn): Likewise for sole param.
5371
5372 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5373 Likewise for local "last".
5374 (cbranch_predicted_p): Likewise for param "insn".
5375 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5376 (tilepro_output_cbranch_with_opcode): Likewise.
5377 (tilepro_output_cbranch): Likewise.
5378 (frame_emit_load): Likewise for return type and locals "seq",
5379 "insn".
5380 (emit_sp_adjust): Likewise for return type and local "insn".
5381 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5382 "insn".
5383 (tilepro_adjust_insn_length): Likewise for param "insn".
5384 (next_insn_to_bundle): Likewise for return type and params
5385 "r", "end".
5386 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
5387 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
5388 local "new_insns".
5389 (match_addli_pcrel): Likewise for param "insn".
5390 (replace_addli_pcrel): Likewise.
5391 (match_auli_pcrel): Likewise.
5392 (replace_auli_pcrel): Likewise.
5393 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
5394 "next_insn".
5395 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5396 "queue", "next_queue", "prev".
5397 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
5398 (tilepro_final_prescan_insn): Likewise for param "insn".
5399
5400 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5401
5402 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
5403 Strengthen param 1 from rtx to rtx_insn *.
5404 (tilegx_output_cbranch): Likewise.
5405 (tilegx_adjust_insn_length): Likewise.
5406 (tilegx_final_prescan_insn): Likewise for sole param.
5407
5408 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
5409 or local "last".
5410 (cbranch_predicted_p): Likewise for param "insn".
5411 (tilegx_output_simple_cbranch_with_opcode): Likewise.
5412 (tilegx_output_cbranch_with_opcode): Likewise.
5413 (tilegx_output_cbranch): Likewise.
5414 (frame_emit_load): Likewise for return type.
5415 (set_frame_related_p): Likewise for locals "seq", "insn".
5416 (emit_sp_adjust): Likewise for return type, and for local "insn".
5417 Introduce local "pat" for use in place of "insn" where the latter
5418 isn't an instruction.
5419 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
5420 from rtx to rtx_insn *.
5421 (tilegx_adjust_insn_length): Likewise for param "insn".
5422 (next_insn_to_bundle): Likewise for return type and params "r" and
5423 "end".
5424 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
5425 "end".
5426 (replace_insns): Likewise for params "old_insn", "new_insns".
5427 (replace_mov_pcrel_step1): Likewise for param "insn" and local
5428 "new_insns".
5429 (replace_mov_pcrel_step2): Likewise.
5430 (replace_mov_pcrel_step3): Likewise.
5431 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
5432 "next_insn".
5433 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5434 "queue", "next_queue", "prev".
5435 (tilegx_output_mi_thunk): Likewise for local "insn".
5436 (tilegx_final_prescan_insn): Likewise for param "insn".
5437
5438 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5439
5440 * config/spu/spu.c (frame_emit_store): Strengthen return type from
5441 rtx to rtx_insn *.
5442 (frame_emit_load): Likewise.
5443 (frame_emit_add_imm): Likewise, also for local "insn".
5444 (spu_expand_prologue): Likewise for local "insn".
5445 (struct spu_bb_info): Likewise for field "prop_jump".
5446 (emit_nop_for_insn): Likewise for param "insn" and local
5447 "new_insn".
5448 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
5449 "hbr_insn".
5450 (spu_emit_branch_hint): Likewise for params "before", "branch" and
5451 locals "hint", "insn".
5452 (get_branch_target): Likewise for param "branch".
5453 (insn_clobbers_hbr): Likewise for param "insn".
5454 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
5455 locals "insn", "before_4", "before_16".
5456 (insert_hbrp): Likewise for local "insn".
5457 (spu_machine_dependent_reorg): Likewise for locals "branch",
5458 "insn", "next", "bbend".
5459 (uses_ls_unit): Likewise for param "insn".
5460 (get_pipe): Likewise.
5461 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
5462 introducing a checked cast.
5463 (spu_sched_adjust_cost): Likewise for params "insn" and
5464 "dep_insn".
5465 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
5466 (spu_sms_res_mii): Likewise.
5467
5468 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5469
5470 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
5471 from rtx to rtx_insn *.
5472 (output_cbranch): Likewise for param 6.
5473 (output_return): Likewise for param 1.
5474 (output_sibcall): Likewise.
5475 (output_v8plus_shift): Likewise.
5476 (output_v8plus_mult): Likewise.
5477 (output_v9branch): Likewise for param 7.
5478 (output_cbcond): Likewise for param 3.
5479
5480 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
5481 for local "insn".
5482 (sparc_legitimize_pic_address): Likewise.
5483 (sparc_emit_call_insn): Likewise.
5484 (emit_save_or_restore_regs): Likewise.
5485 (emit_window_save): Likewise for return type and local "insn".
5486 (sparc_expand_prologue): Likewise for local "insn".
5487 (sparc_flat_expand_prologue): Likewise.
5488 (output_return): Likewise for param "insn".
5489 (output_sibcall): Likewise for param "insn" and local "delay".
5490 (output_ubranch): Likewise for param "insn".
5491 (output_cbranch): Likewise.
5492 (output_cbcond): Likewise.
5493 (output_v9branch): Likewise.
5494 (output_v8plus_shift): Likewise.
5495 (sparc_output_mi_thunk): Likewise for local "insn".
5496 (get_some_local_dynamic_name): Likewise.
5497 (output_v8plus_mult): Likewise for param "insn".
5498
5499 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5500
5501 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5502 from rtx to rtx_insn *.
5503 (output_branchy_insn): Likewise for param 3.
5504 (output_far_jump): Likewise for param 1.
5505 (final_prescan_insn): Likewise.
5506 (sh_insn_length_adjustment): Likewise for sole param.
5507
5508 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5509 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5510 rtx_code_label *.
5511 (sh_emit_compare_and_set): Likewise for local "lab".
5512 (output_far_jump): Strengthen param "insn" and local "prev" from
5513 rtx to rtx_insn *.
5514 (output_branchy_insn): Likewise for param "insn" and local
5515 "next_insn".
5516 (output_ieee_ccmpeq): Likewise for param "insn".
5517 (struct label_ref_list_d): Strengthen field "label" from rtx to
5518 rtx_code_label *.
5519 (pool_node): Likewise.
5520 (pool_window_label): Likewise for this global.
5521 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5522 (dump_table): Strengthen params "start", "barrier" and local
5523 "scan" from rtx to rtx_insn *.
5524 (broken_move): Likewise for param "insn".
5525 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5526 Strengthen param "first_mova" from rtx * to rtx_insn **.
5527 (mova_p): Likewise for param "insn".
5528 (fixup_mova): Likewise for param "mova".
5529 (find_barrier): Likewise for return type, params "mova" and
5530 "from", and locals "barrier_before_mova", "found_barrier",
5531 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5532 "label" from rtx to rtx_code_label *.
5533 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5534 rtx to rtx_insn *.
5535 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5536 (split_branches): Likewise for param "first" and local "insn".
5537 (final_prescan_insn): Likewise for param "insn".
5538 (sequence_insn_p): Likewise for locals "prev", "next".
5539 (sh_insn_length_adjustment): Likewise for param "insn".
5540 (sh_can_redirect_branch): Likewise for local "insn".
5541 (find_r0_life_regions): Likewise for locals "end", "insn".
5542 (sh_output_mi_thunk): Likewise for local "insns".
5543
5544 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5545
5546 * config/score/score.c (score_output_mi_thunk): Strengthen local
5547 "insn" from rtx to rtx_insn *.
5548 (score_prologue): Likewise.
5549
5550 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5551
5552 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5553 1 from rtx to rtx_insn *.
5554 (s390_emit_jump): Likewise for return type.
5555 (s390_emit_call): Likewise.
5556 (s390_load_got): Likewise.
5557
5558 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5559 variable.
5560 (s390_match_ccmode): Likewise for param "insn".
5561 (s390_emit_jump): Likewise for return type.
5562 (s390_split_branches): Likewise for local "label".
5563 (struct constant): Strengthen field "label" from rtx to
5564 rtx_code_label *.
5565 (struct constant_pool): Likewise for field "label". Strengthen
5566 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5567 rtx_insn *.
5568 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5569 insns.
5570 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5571 (s390_end_pool): Likewise.
5572 (s390_dump_pool): Likewise for local "insn".
5573 (s390_mainpool_start): Likewise.
5574 (s390_chunkify_start): Likewise.
5575 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5576 with insns. Strengthen locals "label", "jump", "barrier", "next",
5577 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5578 (s390_chunkify_finish): Strengthen local "insn" from rtx to
5579 rtx_insn *.
5580 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5581 "jump", "label", "next_insn".
5582 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5583 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5584 "tbegin_insn".
5585 (s390_load_got): Likewise for return type and local "insns".
5586 (s390_save_gprs_to_fprs): Likewise for local "insn".
5587 (s390_restore_gprs_from_fprs): Likewise.
5588 (pass_s390_early_mach::execute): Likewise.
5589 (s390_emit_prologue): Likewise for local "insns".
5590 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5591 rtx_code_label *.
5592 (s390_emit_call): Strengthen return type and local "insn" from
5593 rtx to rtx_insn *.
5594 (s390_emit_tpf_eh_return): Likewise for local "insn".
5595 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5596 "next_insn", introducing locals "s_pat", "rpat" to allow this.
5597 (s390_fix_long_loop_prediction): Likewise for param "insn" and
5598 local "cur_insn".
5599 (s390_non_addr_reg_read_p): Likewise for param "insn".
5600 (find_cond_jump): Likewise for return type and param "insn".
5601 (s390_swap_cmp): Likewise for param "insn".
5602 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5603 "prev_insn", "next_insn".
5604 (s390_reorg): Likewise for locals "insn", "target".
5605 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5606 (s390_sched_variable_issue): For now, rename param "insn" to
5607 "uncast_insn", introducing a checked cast.
5608 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5609 insn.
5610 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5611 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
5612
5613 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5614
5615 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5616 param from rtx to rtx_insn *.
5617 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5618
5619 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5620
5621 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5622 4 from rtx to rtx_insn *.
5623 (rs6000_final_prescan_insn): Likewise for first param.
5624 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5625 local "insn".
5626 (rs6000_get_some_local_dynamic_name): Likewise.
5627 (output_cbranch): Likewise for param "insn".
5628 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5629 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5630 (rs6000_emit_allocate_stack): Likewise for local "insn".
5631 (load_cr_save): Likewise.
5632 (restore_saved_cr): Likewise.
5633 (restore_saved_lr): Likewise.
5634 (emit_cfa_restores): Likewise.
5635 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5636 "deleted_debug_label".
5637 (rs6000_output_mi_thunk): Likewise for local "insn".
5638 (rs6000_final_prescan_insn): Likewise for param "insn".
5639
5640 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5641
5642 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5643 Strengthen param "insn" from rtx to rtx_insn *.
5644 * config/picochip/picochip.c (picochip_current_prescan_insn):
5645 Likewise for this variable.
5646 (picochip_final_prescan_insn): Likewise for param "insn".
5647
5648 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5649
5650 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5651 from rtx to rtx_insn *.
5652 (pa_output_indirect_call): Likewise.
5653 (pa_adjust_insn_length): Likewise.
5654 (pa_attr_length_millicode_call): Likewise.
5655 (pa_attr_length_call): Likewise.
5656 (pa_attr_length_indirect_call): Likewise.
5657
5658 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5659 "insn".
5660 (pa_attr_length_millicode_call): Likewise.
5661 (pa_attr_length_call): Likewise.
5662 (pa_output_call): Likewise.
5663 (pa_attr_length_indirect_call): Likewise.
5664 (pa_output_indirect_call): Likewise.
5665
5666 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5667
5668 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5669 Strengthen first param from rtx to rtx_insn *.
5670 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5671 param "insn".
5672
5673 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5674
5675 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5676 type from rtx to rtx_insn *.
5677 (mips_expand_call): Likewise.
5678 (mips_adjust_insn_length): Likewise for first param.
5679 (mips_output_conditional_branch): Likewise.
5680 (mips_output_order_conditional_branch): Likewise.
5681 (mips_final_prescan_insn): Likewise.
5682
5683 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5684 rtx_insn * for the SEQUENCE case.
5685 (SEQ_END): Likewise.
5686 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5687 (mips_emit_call_insn): Likewise, also for local "insn".
5688 (mips16_gp_pseudo_reg): Likewise for local "scan".
5689 (mips16_build_call_stub): Likewise for return type and for local
5690 "insn". Introduce a new local "pattern" so that "insn" can indeed
5691 be an insn.
5692 (mips_expand_call): Strengthen return type and local "insn" from
5693 rtx to rtx_insn *.
5694 (mips_block_move_loop): Strengthen local "label" from rtx to
5695 rtx_code_label *.
5696 (mips_expand_synci_loop): Likewise for locals "label",
5697 "end_label".
5698 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5699 rtx_insn *.
5700 (mips16e_collect_argument_saves): Likewise for locals "insn",
5701 "next".
5702 (mips_find_gp_ref): Likewise for param of callback for "pred"
5703 param, and for local "insn".
5704 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5705 (mips_insn_has_flexible_gp_ref_p): Likewise.
5706 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5707 local "insn".
5708 (mips_epilogue_set_cfa): Likewise for local "insn".
5709 (mips_expand_epilogue): Likewise.
5710 (mips_adjust_insn_length): Likewise for param "insn".
5711 (mips_output_conditional_branch): Likewise.
5712 (mips_output_order_conditional_branch): Likewise.
5713 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5714 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5715 "falu2_turn_enabled_insn".
5716 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5717 "done_label" from rtx to rtx_code_label *.
5718 (struct mips16_constant): Likewise for field "label".
5719 (mips16_add_constant): Likewise for return type.
5720 (mips16_emit_constants_1): Strengthen return type and param "insn"
5721 from rtx to rtx_insn *.
5722 (mips16_emit_constants): Likewise for param "insn".
5723 (mips16_insn_length): Likewise.
5724 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5725 to rtx_code_label *.
5726 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5727 from rtx to rtx_insn *.
5728 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5729 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5730 (r10k_simplify_address): Strengthen param "insn" and local
5731 "def_insn" from rtx to rtx_insn *.
5732 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5733 rtx_insn *.
5734 (r10k_needs_protection_p_1): Update target type of cast of data
5735 from to rtx to rtx_insn *.
5736 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5737 rtx * to rtx_insn **.
5738 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5739 rtx_insn *.
5740 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5741 (mips_call_expr_from_insn): Likewise for param "insn".
5742 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5743 (mips_find_pic_call_symbol): Likewise for param "insn".
5744 (mips_annotate_pic_calls): Likewise for local "insn".
5745 (mips_sim_insn): Likewise for this variable.
5746 (struct mips_sim): Likewise for field "insn" within elements of
5747 last_set array.
5748 (mips_sim_wait_reg): Likewise for param "insn".
5749 (mips_sim_wait_regs): Likewise.
5750 (mips_sim_wait_units): Likewise.
5751 (mips_sim_wait_insn): Likewise.
5752 (mips_sim_issue_insn): Likewise.
5753 (mips_sim_finish_insn): Likewise.
5754 (mips_seq_time): Likewise for param "seq" and local "insn".
5755 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5756 locals "first", "second".
5757 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5758 "last", "last2", "next".
5759 (mips_avoid_hazard): Likewise for params "after", "insn".
5760 (mips_reorg_process_insns): Likewise for locals "insn",
5761 "last_insn", "subinsn", "next_insn".
5762 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5763 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5764 "jump_sequence".
5765 (mips_output_mi_thunk): Likewise for local "insn".
5766 (mips_final_prescan_insn): Likewise for param "insn".
5767
5768 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5769
5770 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5771 Strengthen return type and local "insns" from rtx to rtx_insn *.
5772 (microblaze_legitimize_tls_address): Likewise for local "insns".
5773 (microblaze_block_move_loop): Strengthen local "label" from rtx
5774 to rtx_code_label *.
5775 (microblaze_expand_prologue): Strengthen two locals named "insn"
5776 from rtx to rtx_insn *.
5777 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5778 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5779 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5780 to rtx_code_label *.
5781
5782 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5783
5784 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5785 param from rtx to rtx_insn *.
5786 (mep_reuse_lo): Likewise for third param.
5787 (mep_use_post_modify_p): Likewise for first param.
5788 (mep_core_address_length): Likewise.
5789 (mep_cop_address_length): Likewise.
5790 (mep_final_prescan_insn): Likewise.
5791 (mep_store_data_bypass_p): Likewise for both params.
5792 (mep_mul_hilo_bypass_p): Likewise.
5793 (mep_ipipe_ldc_p): Likewise for param.
5794
5795 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5796 (mep_rewrite_mult): Likewise.
5797 (mep_rewrite_mulsi3): Likewise.
5798 (mep_rewrite_maddsi3): Likewise.
5799 (mep_reuse_lo_p_1): Likewise.
5800 (mep_reuse_lo_p): Likewise.
5801 (mep_frame_expr): Likewise.
5802 (mep_make_parallel): Likewise for both params.
5803 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5804 local "insn".
5805 (mep_use_post_modify_p): Likewise for param "insn".
5806 (mep_core_address_length): Likewise.
5807 (mep_cop_address_length): Likewise.
5808 (mep_reg_set_in_function): Likewise for local "insn".
5809 (mep_asm_without_operands_p): Likewise.
5810 (F): Likewise for return type and param "x".
5811 (add_constant): Likewise for local "insn".
5812 (maybe_dead_move): Likewise for return type and local "insn".
5813 (mep_expand_prologue): Likewise for local "insn".
5814 (mep_final_prescan_insn): Likewise for param "insn".
5815 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5816 "next", "follow", "x".
5817 (mep_insert_repeat_label_last): Likewise for return type, param
5818 "last_insn", and locals "next", "prev". Strengthen param "label"
5819 from rtx to rtx_code_label *.
5820 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5821 rtx_insn *.
5822 (struct mep_doloop_end): Likewise for fields "insn" and
5823 "fallthrough".
5824 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5825 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5826 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5827 rtx_insn *.
5828 (mep_invert_branch): Likewise for params "insn" and "after".
5829 (mep_reorg_erepeat): Likewise for param "insns" and locals
5830 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5831 "l" from rtx to rtx_code_label *.
5832 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5833 from rtx to rtx_insn *.
5834 (mep_reorg_addcombine): Likewise for param "insns" and locals
5835 "i", "n".
5836 (add_sp_insn_p): Likewise for param "insn".
5837 (mep_reorg_noframe): Likewise for param "insns" and locals
5838 "start_frame_insn", "end_frame_insn", "next".
5839 (mep_reorg): Likewise for local "insns".
5840 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5841 cast.
5842 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5843 (mep_mul_hilo_bypass_p): Likewise.
5844 (mep_ipipe_ldc_p): Likewise for param "insn".
5845 (mep_make_bundle): Likewise for return type, param "cop" and local
5846 "insn", splitting out the latter into a new local "seq" for when it
5847 is a SEQUENCE rather than an insn.
5848 (core_insn_p): Likewise for param "insn".
5849 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
5850 "last", "first", "note", "prev", "core_insn".
5851
5852 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5853
5854 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
5855 rtx to rtx_insn *.
5856 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
5857 (m68k_final_prescan_insn): Likewise for first param.
5858
5859 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
5860 (m68k_set_frame_related): Likewise for param "insn".
5861 (output_btst): Likewise for param "insn".
5862 (m68k_final_prescan_insn): Likewise.
5863 (m68k_move_to_reg): Likewise for local "insn".
5864 (m68k_call_tls_get_addr): Likewise for local "insns".
5865 (m68k_call_m68k_read_tp): Likewise.
5866 (strict_low_part_peephole_ok): Likewise for param "first_insn".
5867 (m68k_output_mi_thunk): Likewise for local "insn".
5868
5869 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5870
5871 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
5872 first param from rtx to rtx_insn *.
5873 (iq2000_adjust_insn_length): Likewise.
5874 (iq2000_output_conditional_branch): Likewise.
5875 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
5876 "insn" and local "nop_insn".
5877 (iq2000_annotate_frame_insn): Likewise for param "insn".
5878 (iq2000_expand_prologue): Likewise for both locals "insn".
5879 (iq2000_adjust_insn_length): Likewise for param "insn".
5880 (iq2000_output_conditional_branch): Likewise.
5881
5882 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5883
5884 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
5885 "insns" from rtx to rtx_insn *.
5886 (ia64_emit_cond_move): Likewise for locals "insn", "first".
5887 (struct spill_fill_data): Likewise for field "init_after" and for
5888 elements of array field "prev_insn".
5889 (spill_restore_mem): Likewise for locals "insn", "first".
5890 (do_spill): Likewise for local "insn".
5891 (do_restore): Likewise.
5892 (ia64_expand_prologue): Likewise.
5893 (ia64_expand_epilogue): Likewise.
5894 (emit_insn_group_barriers): Likewise for locals "insn",
5895 "last_label".
5896 (emit_all_insn_group_barriers): Likewise for locals "insn",
5897 "last".
5898 (dfa_stop_insn): Likewise for this global.
5899 (dfa_pre_cycle_insn): Likewise.
5900 (ia64_nop): Likewise.
5901 (final_emit_insn_group_barriers): Likewise for locals "insn",
5902 "last".
5903 (emit_predicate_relation_info): Likewise for locals "head", "n",
5904 "insn", "b", "a".
5905 (ia64_reorg): Likewise for local "insn".
5906 (ia64_output_mi_thunk): Likewise.
5907 (expand_vec_perm_interleave_2): Likewise for local "seq".
5908
5909 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5910
5911 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
5912 param 1 "insn" from rtx to rtx_insn *.
5913 (ix86_use_lea_for_mov): Likewise.
5914 (ix86_avoid_lea_for_addr): Likewise.
5915 (ix86_split_lea_for_addr): Likewise.
5916 (ix86_lea_for_add_ok): Likewise.
5917 (ix86_output_call_insn): Likewise.
5918
5919 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
5920 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
5921 (ix86_output_function_epilogue): Likewise for locals "insn",
5922 "deleted_debug_label".
5923 (legitimize_tls_address): Likewise for local "insn".
5924 (get_some_local_dynamic_name): Likewise.
5925 (increase_distance): Likewise for params "prev", "next".
5926 (distance_non_agu_define_in_bb): Likewise for params "insn",
5927 "start" and locals "prev", "next".
5928 (distance_non_agu_define): Likewise for param "insn".
5929 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
5930 locals "next", "prev".
5931 (distance_agu_use): Likewise for param "insn".
5932 (ix86_lea_outperforms): Likewise.
5933 (ix86_ok_to_clobber_flags): Likewise.
5934 (ix86_avoid_lea_for_add): Likewise.
5935 (ix86_use_lea_for_mov): Likewise.
5936 (ix86_avoid_lea_for_addr): Likewise.
5937 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
5938 (ix86_split_lea_for_addr): Likewise for param "insn".
5939 (ix86_lea_for_add_ok): Likewise for param "insn".
5940 (ix86_expand_carry_flag_compare): Likewise for local
5941 "compare_seq".
5942 (ix86_expand_int_movcc): Likewise.
5943 (ix86_output_call_insn): Likewise for param "insn".
5944 (ix86_output_call_insn): Likewise for local "i".
5945 (x86_output_mi_thunk): Introduce local "insn", using it in place
5946 of "tmp" when dealing with insns.
5947 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
5948 "start".
5949 (ix86_pad_returns): Likewise for locals "ret", "prev".
5950 (ix86_count_insn_bb): Likewise for local "insn".
5951 (ix86_pad_short_function): Likewise for locals "ret", "insn".
5952 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
5953 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
5954 (expand_vec_perm_interleave2): Likewise for local "seq".
5955 (expand_vec_perm_vperm2f128_vblend): Likewise.
5956 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
5957 call to for_each_rtx with for_each_rtx_in_insn.
5958
5959 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5960
5961 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
5962 "label" from rtx to rtx_code_label *.
5963 (ix86_expand_prologue): Likewise.
5964 (ix86_expand_split_stack_prologue): Likewise for locals "label",
5965 "varargs_label".
5966 (ix86_split_idivmod): Likewise for locals "end_label" and
5967 "qimode_label".
5968 (ix86_expand_branch): Likewise for local "label2".
5969 (ix86_expand_aligntest): Likewise for return type and local "label".
5970 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
5971 "top_label".
5972 (expand_movmem_epilogue): Likewise for the various locals named
5973 "label".
5974 (expand_setmem_epilogue): Likewise.
5975 (expand_small_movmem_or_setmem): Likewise for local "label".
5976 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5977 Strengthen param "done_label" from rtx * to rtx_code_label **.
5978 Strengthen locals "loop_label" and "label" from rtx to
5979 rtx_code_label *.
5980 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5981 Likewise for locals "loop_label", "label".
5982 (ix86_expand_set_or_movmem): Likewise for locals "label",
5983 "jump_around_label", "hot_label".
5984 (ix86_expand_strlensi_unroll_1): Likewise for locals
5985 "align_2_label", align_3_label", "align_4_label", "end_0_label",
5986 "end_2_label".
5987 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
5988 (void ix86_emit_i387_log1p): Likewise for locals "label1",
5989 "label2", "jump_label".
5990 (ix86_expand_sse_compare_and_jump): Likewise for return type and
5991 local "label".
5992 (ix86_expand_lfloorceil): Likewise for local "label".
5993 (ix86_expand_rint): Likewise.
5994 (ix86_expand_floorceildf_32): Likewise.
5995 (ix86_expand_floorceil): Likewise.
5996 (ix86_expand_rounddf_32): Likewise.
5997 (ix86_expand_trunc): Likewise.
5998 (ix86_expand_truncdf_32): Likewise.
5999 (ix86_expand_round): Likewise.
6000
6001 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6002
6003 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6004 first param from rtx to rtx_insn *.
6005 (h8300_insn_length_from_table): Likewise.
6006 * config/h8300/h8300.c (F): Likewise for return type and param
6007 "x".
6008 (Fpa): Add a checked cast to rtx_insn *.
6009 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6010 rtx_insn *.
6011 (final_prescan_insn): Likewise for param "insn".
6012 (h8300_binary_length): Likewise.
6013 (h8300_insn_length_from_table): Likewise.
6014
6015 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6016
6017 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6018 Strengthen first param "insn" from rtx to rtx_insn *.
6019
6020 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6021 Likewise.
6022 (frame_insn): Likewise for return type. Introduce local "insn"
6023 for use in place of local "x" for use as an rtx_insn *.
6024 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6025 (epiphany_expand_prologue): Likewise for local "insn".
6026 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6027 * config/epiphany/resolve-sw-modes.c
6028 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6029 "seq".
6030
6031 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6032
6033 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6034 param from rtx to rtx_insn *.
6035 (c6x_final_prescan_insn): Likewise for first param.
6036
6037 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6038 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6039 (c6x_expand_compare): Strengthen local "insns" from rtx to
6040 rtx_insn *.
6041 (c6x_get_unit_specifier): Likewise for param "insn".
6042 (c6x_print_unit_specifier_field): Likewise.
6043 (c6x_final_prescan_insn): Likewise.
6044 (emit_add_sp_const): Likewise for local "insn".
6045 (c6x_expand_prologue): Likewise.
6046
6047 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6048
6049 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6050 param 1 from rtx to rtx_insn *.
6051 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6052 the various locals named "insn".
6053 (expand_epilogue_reg_restore): Likewise.
6054 (frame_related_constant_load): Likewise.
6055 (add_to_reg): Likewise.
6056 (emit_link_insn): Likewise.
6057 (do_link): Likewise.
6058 (expand_interrupt_handler_prologue): Likewise.
6059 (branch_dest): Likewise for param "branch".
6060 (asm_conditional_branch): Likewise for param "insn".
6061 (gen_one_bundle): Likewise for elements of param "slot" and local
6062 "t".
6063 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6064 elements of local "slot".
6065 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6066 "queue", "next_queue", "prev".
6067 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6068 (add_sched_insns_for_speculation): Likewise for local "insn".
6069
6070 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6071
6072 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6073 from rtx to rtx_insn *.
6074 (output_movhi): Likewise.
6075 (output_movsisf): Likewise.
6076 (avr_out_tstsi): Likewise.
6077 (avr_out_tsthi): Likewise.
6078 (avr_out_tstpsi): Likewise.
6079 (avr_out_compare): Likewise.
6080 (avr_out_compare64): Likewise.
6081 (avr_out_movpsi): Likewise.
6082 (ashlqi3_out): Likewise.
6083 (ashlhi3_out): Likewise.
6084 (ashlsi3_out): Likewise.
6085 (ashrqi3_out): Likewise.
6086 (ashrhi3_out): Likewise.
6087 (ashrsi3_out): Likewise.
6088 (lshrqi3_out): Likewise.
6089 (lshrhi3_out): Likewise.
6090 (lshrsi3_out): Likewise.
6091 (avr_out_ashlpsi3): Likewise.
6092 (avr_out_ashrpsi3): Likewise.
6093 (avr_out_lshrpsi3): Likewise.
6094 (avr_out_fract): Likewise.
6095 (avr_out_sbxx_branch): Likewise.
6096 (avr_out_round): Likewise.
6097 (avr_out_xload): Likewise.
6098 (avr_out_movmem): Likewise.
6099 (adjust_insn_length): Likewise.
6100 (avr_out_lpm): Likewise.
6101 (reg_unused_after): Likewise.
6102 (_reg_unused_after): Likewise.
6103 (avr_jump_mode): Likewise for second param.
6104 (jump_over_one_insn): Likewise for first param.
6105 (avr_final_prescan_insn): Likewise.
6106 (out_shift_with_cnt): Likewise for second param.
6107
6108 * config/avr/avr.c (get_sequence_length): Likewise for param
6109 "insns" and local "insn".
6110 (emit_push_byte): Likewise for local "insn".
6111 (emit_push_sfr): Likewise.
6112 (avr_prologue_setup_frame): Likewise for locals "insn",
6113 "fp_plus_insns", "sp_plus_insns".
6114 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6115 "sp_plus_insns".
6116 (avr_jump_mode): Likewise for param "insn".
6117 (avr_final_prescan_insn): Likewise.
6118 (avr_find_unused_d_reg): Likewise.
6119 (avr_out_lpm_no_lpmx): Likewise.
6120 (avr_out_lpm): Likewise.
6121 (avr_out_xload): Likewise.
6122 (output_movqi): Likewise.
6123 (output_movhi): Likewise.
6124 (out_movqi_r_mr): Likewise.
6125 (out_movhi_r_mr): Likewise.
6126 (out_movsi_r_mr): Likewise.
6127 (out_movsi_mr_r): Likewise.
6128 (output_movsisf): Likewise.
6129 (avr_out_load_psi): Likewise.
6130 (avr_out_store_psi): Likewise.
6131 (avr_out_movpsi): Likewise.
6132 (out_movqi_mr_r): Likewise.
6133 (avr_out_movhi_mr_r_xmega): Likewise.
6134 (out_movhi_mr_r): Likewise.
6135 (compare_condition): Likewise for param "insn" and local "next".
6136 (compare_sign_p): Likewise for param "insn".
6137 (compare_diff_p): Likewise.
6138 (compare_eq_p): Likewise.
6139 (avr_out_compare): Likewise.
6140 (avr_out_compare64): Likewise.
6141 (avr_out_tsthi): Likewise.
6142 (avr_out_tstpsi): Likewise.
6143 (avr_out_tstsi): Likewise.
6144 (out_shift_with_cnt): Likewise.
6145 (ashlqi3_out): Likewise.
6146 (ashlhi3_out): Likewise.
6147 (avr_out_ashlpsi3): Likewise.
6148 (ashlsi3_out): Likewise.
6149 (ashrqi3_out): Likewise.
6150 (ashrhi3_out): Likewise.
6151 (avr_out_ashrpsi3): Likewise.
6152 (ashrsi3_out): Likewise.
6153 (lshrqi3_out): Likewise.
6154 (lshrhi3_out): Likewise.
6155 (avr_out_lshrpsi3): Likewise.
6156 (lshrsi3_out): Likewise.
6157 (avr_out_fract): Likewise.
6158 (avr_out_round): Likewise.
6159 (avr_adjust_insn_length): Likewise.
6160 (reg_unused_after): Likewise.
6161 (_reg_unused_after): Likewise.
6162 (avr_compare_pattern): Likewise.
6163 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6164 and locals "branch1", "branch2", "insn2", "jump".
6165 (avr_reorg): Likewise for local "insn".
6166 (avr_2word_insn_p): Likewise for param "insn".
6167 (jump_over_one_insn_p): Likewise.
6168 (avr_out_sbxx_branch): Likewise.
6169 (avr_out_movmem): Likewise.
6170
6171 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6172
6173 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6174 param from rtx to rtx_insn *.
6175 (thumb1_final_prescan_insn): Likewise.
6176 (thumb2_final_prescan_insn): Likewise.
6177
6178 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6179 rtx to rtx_insn *.
6180 (struct minipool_node): Likewise for field "insn".
6181 (dump_minipool): Likewise for param "scan".
6182 (create_fix_barrier): Likewise for local "from". Strengthen local
6183 "label" from rtx to rtx_code_label *.
6184 (push_minipool_barrier): Strengthen param "insn" from rtx to
6185 rtx_insn *.
6186 (push_minipool_fix): Likewise.
6187 (note_invalid_constants): Likewise.
6188 (thumb2_reorg): Likewise for local "insn".
6189 (arm_reorg): Likewise.
6190 (thumb2_final_prescan_insn): Likewise for param
6191 "insn" and local "first_insn".
6192 (arm_final_prescan_insn): Likewise for param "insn" and locals
6193 "start_insn", "this_insn".
6194 (arm_debugger_arg_offset): Likewise for param "insn".
6195 (thumb1_emit_multi_reg_push): Likewise for return type and local
6196 "insn".
6197 (thumb1_final_prescan_insn): Likewise for param "insn".
6198 (thumb_far_jump_used_p): Likewise for local "insn".
6199 (thumb1_expand_prologue): Likewise.
6200 (arm_expand_epilogue_apcs_frame): Likewise.
6201 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6202 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6203 from rtx to rtx_code_label *.
6204 (arm_split_atomic_op): Likewise for local "label".
6205 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6206
6207 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6208
6209 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6210 first param from rtx to rtx_insn *.
6211 (arc_verify_short): Likewise.
6212 (arc_short_long): Likewise.
6213 (arc_need_delay): Likewise.
6214
6215 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6216 "target_insn".
6217 (arc_ccfsm_advance): Likewise for param "insn" and locals
6218 "start_insn", "this_insn".
6219 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6220 (arc_ccfsm_post_advance): Likewise for param "insn".
6221 (arc_next_active_insn): Likewise for return type and param "insn".
6222 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6223 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6224 (output_short_suffix): Likewise for local "insn".
6225 (arc_final_prescan_insn): Likewise for param "insn". Remove
6226 now-redundant checked cast.
6227 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6228 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6229 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6230 for use where lc_set became an insn.
6231 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6232 rtx to rtx_insn *.
6233 (arc_get_insn_variants): Likewise for local "prev".
6234 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6235 "next".
6236 (arc_predicate_delay_insns): Likewise for local "insn".
6237 (arc_pad_return): Likewise for local "prev". For now, add a
6238 checked cast when extracting the insn from "final_sequence".
6239 (arc_short_long): Likewise for param "insn".
6240 (arc_need_delay): Likewise for param "insn" and local "next".
6241 (arc_label_align): Likewise for locals "prev", "next".
6242
6243 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6244
6245 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6246 "insn" from rtx to rtx_insn *.
6247 (alpha_gp_save_rtx): Likewise for local "seq".
6248 (alpha_instantiate_decls): Likewise for local "top".
6249 (get_some_local_dynamic_name): Likewise for local "insn".
6250 (alpha_does_function_need_gp): Likewise.
6251 (set_frame_related_p): Likewise for return type and for locals
6252 "seq" and "insn".
6253 (emit_frame_store_1): Likewise for local "insn".
6254 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6255 (alpha_end_function): Likewise for local "insn".
6256 (alpha_output_mi_thunk_osf): Likewise.
6257 (alphaev4_insn_pipe): Likewise for param "insn".
6258 (alphaev5_insn_pipe): Likewise.
6259 (alphaev4_next_group): Likewise for return type and param 1
6260 "insn".
6261 (alphaev5_next_group): Likewise.
6262 (alpha_align_insns_1): Likewise for return type and param 1 of
6263 callback param "next_group", and for locals "i", "next", "prev",
6264 "where", "where2", "insn".
6265
6266 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6267
6268 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6269 rather than modifying the stmt.
6270
6271 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6272
6273 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6274 cgraph_state conversion.
6275
6276 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6277
6278 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6279 Strengthen local "insns" from rtx to rtx_insn *.
6280 (aarch64_set_frame_expr): Likewise for local "insn".
6281 (aarch64_save_or_restore_fprs): Likewise.
6282 (aarch64_save_or_restore_callee_save_registers): Likewise.
6283 (aarch64_expand_prologue): Likewise.
6284 (aarch64_expand_epilogue): Likewise.
6285 (aarch64_output_mi_thunk): Likewise.
6286 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6287 "label2" from rtx to rtx_code_label *.
6288 (aarch64_split_atomic_op): Likewise for local "label".
6289
6290 2014-08-25 Martin Liska <mliska@suse.cz>
6291
6292 * cgraph.h (symtab_node):
6293 (bool needed_p (void)): created from decide_is_symbol_needed
6294 (bool referred_to_p (void)): created from referred_to_p
6295 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6296 * cgraph.h (cgraph_node):
6297 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6298 (void expand (void)): created from expand_function
6299 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6300 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6301 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6302 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6303 * cgraph.h (varpool_node):
6304 (static void add (tree decl): created from varpool_add_new_variable
6305 * cgraph.h (cgraph_edge):
6306 void remove (void);
6307 (void remove_caller (void)): created from cgraph_edge_remove_caller
6308 (void remove_callee (void)): created from cgraph_edge_remove_callee
6309 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6310 created from cgraph_set_call_stmt
6311 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6312 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6313 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6314 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6315 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6316 created from cgraph_speculative_call_info
6317 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6318 int freq_scale, bool update_original)): created from cgraph_clone_edge
6319 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6320 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6321 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6322 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6323 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6324 (static void rebuild_references (void)): created from cgraph_rebuild_references
6325 * cgraph.h (symbol_table):
6326 (create_reference): renamed from add_reference
6327 (maybe_create_reference): renamed from maybe_add_reference
6328 (void register_symbol (symtab_node *node)): new function
6329 (void clear_asm_symbols (void)): new function
6330 (void unregister (symtab_node *node)): new function
6331 (void release_symbol (cgraph_node *node, int uid)): new function
6332 (cgraph_node * allocate_cgraph_symbol (void)): new function
6333 (void initialize (void)): created from cgraph_init
6334 (symtab_node *first_symbol (void)):new function
6335 (asm_node *first_asm_symbol (void)):new function
6336 (symtab_node *first_defined_symbol (void)):new function
6337 (varpool_node *first_variable (void)):new function
6338 (varpool_node *next_variable (varpool_node *node)):new function
6339 (varpool_node *first_static_initializer (void)):new function
6340 (varpool_node *next_static_initializer (varpool_node *node)):new function
6341 (varpool_node *first_defined_variable (void)):new function
6342 (varpool_node *next_defined_variable (varpool_node *node)):new function
6343 (cgraph_node *first_defined_function (void)):new function
6344 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6345 (cgraph_node *first_function (void)):new function
6346 (cgraph_node *next_function (cgraph_node *node)):new function
6347 (cgraph_node *first_function_with_gimple_body (void)):new function
6348 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6349 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6350 created from symtab_remove_unreachable_nodes
6351 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6352 (void process_new_functions (void)): created from cgraph_process_new_functions
6353 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6354 (bool output_variables (void)): created from varpool_node::output_variables
6355 (void output_asm_statements (void)): created from output_asm_statements
6356 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6357 (void compile (void)): created from compile
6358 (void output_weakrefs (void)): created from output_weakrefs
6359 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6360 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6361 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6362 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6363 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6364 created from cgraph_next_function_with_gimple_body
6365 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6366 created from cgraph_remove_edge_removal_hook
6367 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6368 created from cgraph_add_node_removal_hook
6369 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6370 created from cgraph_remove_node_removal_hook
6371 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6372 created from varpool_add_node_removal_hook
6373 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6374 created from varpool_remove_node_removal_hook
6375 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6376 created from cgraph_add_function_insertion_hook
6377 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6378 created from cgraph_remove_function_insertion_hook
6379 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6380 created from varpool_add_variable_insertion_hook
6381 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6382 created from varpool_remove_variable_insertion_hook
6383 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6384 created from cgraph_add_edge_duplication_hook
6385 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
6386 created from cgraph_remove_edge_duplication_hook
6387 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
6388 created from cgraph_add_node_duplication_hook
6389 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
6390 created from cgraph_remove_node_duplication_hook
6391 (void call_edge_removal_hooks (cgraph_edge *e)):
6392 created from cgraph_call_edge_removal_hooks
6393 (void call_cgraph_insertion_hooks (cgraph_node *node)):
6394 created from call_function_insertion_hooks
6395 (void call_cgraph_removal_hooks (cgraph_node *node)):
6396 created from cgraph_call_node_removal_hooks
6397 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
6398 created from cgraph_node::call_duplication_hooks
6399 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
6400 created from cgraph_call_edge_duplication_hooks
6401 (void call_varpool_removal_hooks (varpool_node *node)):
6402 created from varpool_call_node_removal_hooks
6403 (void call_varpool_insertion_hooks (varpool_node *node)):
6404 created from varpool_call_variable_insertion_hooks
6405 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
6406 created from insert_to_assembler_name_hash
6407 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
6408 created from unlink_from_assembler_name_hash
6409 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
6410 created from symtab_prevail_in_asm_name_hash
6411 (void symtab_initialize_asm_name_hash (void)):
6412 created from symtab_initialize_asm_name_hash
6413 (void change_decl_assembler_name (tree decl, tree name)):
6414 created from change_decl_assembler_name
6415 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
6416 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
6417 created from decl_assembler_name_hash
6418 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
6419 created from decl_assembler_name_equal
6420 (static hashval_t hash_node_by_assembler_name (const void *p)):
6421 created from hash_node_by_assembler_name
6422 (static int eq_assembler_name (const void *p1, const void *p2)):
6423 created from eq_assembler_name
6424
6425 2014-08-25 Marek Polacek <polacek@redhat.com>
6426
6427 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
6428
6429 2014-08-25 Petr Murzin <petr.murzin@intel.com>
6430
6431 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
6432 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
6433 SWI1248_AVX512BW mode iterator.
6434
6435 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
6436
6437 PR target/62111
6438 * config/sh/predicates.md (general_extend_operand): Disable
6439 TRUNCATE before reload completes.
6440
6441 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
6442
6443 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
6444
6445 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
6446
6447 PR target/61996
6448 * config/sh/sh.opt (musermode): Allow negative form.
6449 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
6450 targets that don't support it.
6451 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
6452 Document -mno-usermode option.
6453
6454 2014-08-24 Kito Cheng <kito@0xlab.org>
6455
6456 * system.h (CALLER_SAVE_PROFITABLE): Poison.
6457 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
6458 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
6459 * doc/tm.texi: Regenerate.
6460
6461 2014-08-24 Kito Cheng <kito@0xlab.org>
6462
6463 * ira.c: Fix typo in comment.
6464
6465 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
6466
6467 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
6468 Deprecate c++1y. Change language to reflect greater confidence in C++14.
6469
6470 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
6471
6472 PR target/62038
6473 * config/pa/pa.c (pa_output_function_epilogue): Don't set
6474 last_address when the current function is a thunk.
6475 (pa_asm_output_mi_thunk): When we don't have named sections or they
6476 are not being used, check that thunk can reach the stub table with a
6477 short branch.
6478
6479 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6480
6481 * web.c (union_match_dups): Strengthen param "insn" from rtx to
6482 rtx_insn *.
6483 (pass_web::execute): Likewise for local "insn".
6484
6485 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6486
6487 * var-tracking.c (struct micro_operation_def): Strengthen field
6488 "insn" from rtx to rtx_insn *.
6489 (struct emit_note_data_def): Likewise.
6490 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6491 (vt_stack_adjustments): Likewise for local "insn".
6492 (adjust_insn): Likewise for param "insn".
6493 (val_store): Likewise.
6494 (val_resolve): Likewise.
6495 (struct count_use_info): Likewise for field "insn".
6496 (log_op_type): Likewise for param "insn".
6497 (reverse_op): Likewise.
6498 (prepare_call_arguments): Likewise.
6499 (add_with_sets): The initial param takes an insn, but we can't
6500 yet strengthen it from rtx to rtx_insn * since it's used as a
6501 cselib_record_sets_hook callback. For now rename initial param
6502 from "insn" to "uncast_insn", and introduce a local "insn" of
6503 the stronger rtx_insn * type, with a checked cast.
6504 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6505 rtx_insn *.
6506 (emit_note_insn_var_location): Likewise.
6507 (emit_notes_for_changes): Likewise.
6508 (emit_notes_for_differences): Likewise.
6509 (next_non_note_insn_var_location): Likewise for return type and
6510 for param "insn".
6511 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6512 (vt_initialize): Likewise for local "insn".
6513 (delete_debug_insns): Likewise for locals "insn" and "next".
6514
6515 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6516
6517 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6518 rtx_insn *.
6519 (mark_constant_pool): Likewise for local "insn".
6520
6521 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6522
6523 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6524 rtx to rtx_insn *.
6525 (dead_debug_promote_uses): Likewise.
6526 (dead_debug_insert_temp): Likewise.
6527
6528 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6529
6530 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6531 from const_rtx to const rtx_insn *.
6532 (store_killed_after): Likewise. Strengthen locals "last", "act"
6533 from rtx to rtx_insn *.
6534 (store_killed_before): Strengthen param "insn" from const_rtx to
6535 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6536 (find_moveable_store): Strengthen param "insn" from rtx to
6537 rtx_insn *.
6538 (compute_store_table): Likewise for local "insn".
6539 (insert_insn_start_basic_block): Likewise for param "insn" and
6540 locals "prev", "before", "insn".
6541 (insert_store): For now, add a checked cast to rtx_insn * on the
6542 result of gen_move_insn.
6543 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6544 to rtx_insn *.
6545 (replace_store_insn): Likewise. For now, add a checked cast to
6546 rtx_insn * on the result of gen_move_insn.
6547
6548 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6549
6550 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6551 rtx_insn *.
6552 (expand_sjlj_dispatch_table): Likewise.
6553
6554 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6555
6556 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6557 "insn" from rtx to rtx_insn *.
6558
6559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6560
6561 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6562 "insn" from rtx to rtx_insn *.
6563 (dup_block_and_redirect): Likewise for param 3 "before".
6564
6565 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6566 from rtx to rtx_insn *.
6567 (move_insn_for_shrink_wrap): Likewise.
6568 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6569 (dup_block_and_redirect): Likewise for param "before" and local
6570 "insn".
6571 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6572 "end".
6573 (convert_to_simple_return): Likewise for local "start".
6574
6575 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6576 Strengthen local "insn" from rtx to rtx_insn *, for use when
6577 invoking requires_stack_frame_p.
6578
6579 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6580
6581 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6582 rtx_insn *.
6583 (speculate_expr): Likewise for locals "orig_insn_rtx",
6584 "spec_insn_rtx".
6585 (eq_transformed_insns): Likewise for locals "i1", "i2".
6586 (check_for_new_jump): Likewise for return type and local "end".
6587 (find_new_jump): Likewise for return type and local "jump".
6588 (sel_split_edge): Likewise for local "jump".
6589 (sel_create_recovery_block): Likewise.
6590 (sel_redirect_edge_and_branch_force): Likewise.
6591 (sel_redirect_edge_and_branch): Likewise.
6592
6593 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6594
6595 * sel-sched.c (substitute_reg_in_expr): Strengthen local
6596 "new_insn" from rtx to rtx_insn *.
6597 (create_insn_rtx_with_rhs): Likewise for return type and for local
6598 "insn_rtx".
6599 (create_insn_rtx_with_lhs): Likewise.
6600 (create_speculation_check): Likewise for local "insn_rtx".
6601 (implicit_clobber_conflict_p): Likewise for local "insn".
6602 (get_expr_cost): Likewise.
6603 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6604 (move_cond_jump): Likewise for locals "next", "prev", "link",
6605 "head", "from", "to".
6606
6607 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6608
6609 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6610 "next" from rtx to rtx_insn *.
6611 (find_conditional_protection): Likewise for local "next".
6612 (is_conditionally_protected): Likewise for local "insn1".
6613 (is_pfree): Likewise for locals "insn1", "insn2".
6614
6615 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6616
6617 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6618 from rtx to rtx_insn *.
6619
6620 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6621 locals "insn1", "insn2" from rtx to rtx_insn *.
6622 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6623 locals "insn", "prev", "last_jump", "next_tail".
6624 (schedule_ebb): Likewise for params "head", "tail".
6625 (schedule_ebbs): Likewise for locals "tail", "head".
6626
6627 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6628 to rtx_insn on "last_insn" in one of the invocations of
6629 schedule_ebb.
6630
6631 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6632
6633 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6634 "elem", "insn" from rtx to rtx_insn *.
6635 (change_spec_dep_to_hard): Likewise.
6636 (get_back_and_forw_lists): Likewise for local "con".
6637 (sd_add_dep): Likewise for locals "elem", "insn".
6638 (sd_resolve_dep): Likewise for locals "pro", "con".
6639 (sd_unresolve_dep): Likewise.
6640 (sd_delete_dep): Likewise.
6641 (chain_to_prev_insn): Likewise for local "pro".
6642 (find_inc): Likewise for locals "pro", "con".
6643
6644 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6645
6646 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6647 to rtx_insn *.
6648 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6649 const rtx_insn *.
6650 (modified_between_p): Strengthen local "insn" from rtx to
6651 rtx_insn *.
6652 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6653 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6654 const rtx_insn *.
6655
6656 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6657
6658 * resource.c (next_insn_no_annul): Strengthen local "next" from
6659 rtx to rtx_insn *.
6660 (mark_referenced_resources): Likewise for local "insn".
6661
6662 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6663
6664 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6665 to rtx_insn *.
6666 (find_reloads): Likewise for param 1.
6667 (subst_reloads): Likewise for sole param.
6668 (find_equiv_reg): Likwise for param 2.
6669 (regno_clobbered_p): Likwise for param 2.
6670 (reload): Likewise for param 1.
6671
6672 * caller-save.c (save_call_clobbered_regs): Strengthen local
6673 "insn" from rtx to rtx_insn *.
6674 (insert_one_insn): Likewise for local "insn".
6675
6676 * reload.c (this_insn): Likewise for this global.
6677 (find_reloads): Likewise for param "insn".
6678 (find_reloads_toplev): Likewise.
6679 (find_reloads_address): Likewise.
6680 (subst_reg_equivs): Likewise.
6681 (update_auto_inc_notes): Likewise.
6682 (find_reloads_address_1): Likewise.
6683 (find_reloads_subreg_address): Likewise.
6684 (subst_reloads): Likewise.
6685 (find_equiv_reg): Likewise, also for local "p".
6686 (regno_clobbered_p): Likewise for param "insn".
6687
6688 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6689 array.
6690 (spill_reg_store): Likewise for the elements of this array.
6691 (remove_init_insns): Likewise for local "equiv_insn".
6692 (will_delete_init_insn_p): Likewise for param "insn".
6693 (reload): Likewise for param ""first" and local "insn".
6694 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6695 rtx_insn *.
6696 (calculate_elim_costs_all_insns): Likewise.
6697 (delete_caller_save_insns): Likewise.
6698 (spill_failure): Likewise for param "insn".
6699 (delete_dead_insn): Likewise.
6700 (set_label_offsets): Likewise.
6701 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6702 "prev_insn".
6703 (elimination_costs_in_insn): Likewise for param "insn".
6704 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6705 when referring to an insn.
6706 (set_initial_label_offsets): Likewise.
6707 (set_offsets_for_label): Strengthen param "insn" from rtx to
6708 rtx_insn *.
6709 (init_eliminable_invariants): Likewise for param "first" and local
6710 "insn".
6711 (fixup_eh_region_note): Likewise for param "insn".
6712 (reload_as_needed): Likewise for locals "prev", "insn",
6713 "old_next", "old_prev", "next".
6714 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6715 "last".
6716 (reload_inheritance_insn): Strengthen elements of this array from
6717 rtx to rtx_insn *.
6718 (failed_reload): Likewise for param "insn".
6719 (choose_reload_regs): Likewise for local "insn". Replace use of
6720 NULL_RTX with NULL when referring to an insn.
6721 (input_reload_insns): Strengthen elements of this array from rtx
6722 to rtx_insn *.
6723 (other_input_address_reload_insns): Likewise for this global.
6724 (other_input_reload_insns): Likewise for this global.
6725 (input_address_reload_insns): Likwise for the elements of this
6726 array.
6727 (inpaddr_address_reload_insns): Likwise for the elements of this
6728 array.
6729 (output_reload_insns): Likewise for the elements of this array.
6730 (output_address_reload_insns): Likewise for the elements of this
6731 array.
6732 (outaddr_address_reload_insns): Likewise for the elements of this
6733 array.
6734 (operand_reload_insns): Likewise for this global.
6735 (other_operand_reload_insns): Likewise for this global.
6736 (other_output_reload_insns): Likewise for the elements of this
6737 array.
6738 (new_spill_reg_store): Likewise for the elements of this
6739 array.
6740 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6741 Strengthen local "where" from rtx * to rtx_insn **.
6742 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6743 from rtx to rtx_insn *.
6744 (do_input_reload): Likewise for local "insn".
6745 (do_output_reload): Likewise for local "insn".
6746 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6747 (emit_insn_if_valid_for_reload): Likewise for return type and local
6748 "last". Add checked cast to rtx_insn when returning "insn" since
6749 this has been through emit_insn.
6750 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6751 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6752 returning "insn" since it's been through
6753 emit_insn_if_valid_for_reload at this point.
6754 (delete_output_reload): Strengthen param "insn" and locals
6755 "output_reload_insn", "i2" from rtx to rtx_insn *.
6756 (delete_address_reloads): Likewise for params "dead_insn",
6757 "current_insn" and locals "prev", "next".
6758 (delete_address_reloads_1): Likewise for params "dead_insn",
6759 "current_insn" and locals "prev", "i2".
6760 (inc_for_reload): Likewise for locals "last", "add_insn".
6761 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6762 rtx_insn *.
6763
6764 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6765 param of this duplicate of the prototype from reload.h
6766
6767 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6768
6769 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6770 rtx to rtx_insn *.
6771 (regstat_bb_compute_calls_crossed): Likewise.
6772
6773 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6774
6775 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6776 to rtx_insn *.
6777 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6778 with an insn.
6779 (regrename_analyze): Strengthen local "insn" from rtx to
6780 rtx_insn *.
6781 (scan_rtx_reg): Likewise for param "insn".
6782 (scan_rtx_address): Likewise.
6783 (scan_rtx): Likewise.
6784 (restore_operands): Likewise.
6785 (record_out_operands): Likewise.
6786 (build_def_use): Likewise for local "insn". Replace use of
6787 NULL_RTX with NULL when dealing with an insn.
6788
6789 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6790
6791 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6792 * reginfo.c (reg_scan): Likewise, also for local "insn".
6793 (reg_scan_mark_refs): Likewise for param "insn".
6794 (init_subregs_of_mode): Likewise for local "insn".
6795
6796 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6797
6798 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6799 "insn" from rtx to rtx_insn *.
6800 (replace_oldest_value_reg): Likewise for param "insn".
6801 (replace_oldest_value_addr): Likewise.
6802 (replace_oldest_value_mem): Likewise.
6803 (apply_debug_insn_changes): Likewise for local "last_insn".
6804 (copyprop_hardreg_forward_1): Likewise for local "insn".
6805
6806 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6807
6808 * reg-stack.c (next_flags_user): Strengthen return type and param
6809 "insn" from rtx to rtx_insn *.
6810 (straighten_stack): Likewise for param "insn".
6811 (check_asm_stack_operands): Likewise.
6812 (remove_regno_note): Likewise.
6813 (emit_pop_insn): Likewise for return type, param "insn", local
6814 "pop_insn".
6815 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6816 "limit" from rtx to rtx_insn *.
6817 (swap_to_top): Likewise for param "insn".
6818 (move_for_stack_reg): Likewise.
6819 (move_nan_for_stack_reg): Likewise.
6820 (swap_rtx_condition): Likewise.
6821 (compare_for_stack_reg): Likewise.
6822 (subst_all_stack_regs_in_debug_insn): Likewise.
6823 (subst_stack_regs_pat): Likewise, and local "insn2".
6824 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6825 rtx_insn *.
6826 (subst_stack_regs): Likewise.
6827 (change_stack): Likewise.
6828 (convert_regs_1): Likewise for locals "insn", "next".
6829
6830 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6831
6832 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6833 rtx_insn *.
6834 (combine_set_extension): Likewise for param "curr_insn".
6835 (transform_ifelse): Likewise for param "def_insn".
6836 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6837 from vec<rtx> * to vec<rtx_insn *> *.
6838 (is_cond_copy_insn): Likewise for param "insn".
6839 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6840 to vec<rtx_insn *>.
6841 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6842 local "def_insn" from rtx to rtx_insn *.
6843 (get_sub_rtx): Likewise for param "def_insn".
6844 (merge_def_and_ext): Likewise.
6845 (combine_reaching_defs): Likewise.
6846 (add_removable_extension): Likewise for param "insn".
6847 (find_removable_extensions): Likewise for local "insn".
6848 (find_and_remove_re): Likewise for locals "curr_insn" and
6849 "def_insn". Strengthen locals "reinsn_del_list" and
6850 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
6851
6852 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6853
6854 * recog.c (split_insn): Strengthen param "insn" and locals
6855 "first", "last" from rtx to rtx_insn *.
6856 (split_all_insns): Likewise for locals "insn", "next".
6857 (split_all_insns_noflow): Likewise.
6858
6859 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6860
6861 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
6862 const rtx_insn *.
6863 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6864 (debug_rtx_find): Likewise for param 1 "x".
6865
6866 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
6867 const_rtx to const rtx_insn *. Likewise for local "insn".
6868 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6869 (debug_rtx_find): Likewise for param 1 "x".
6870 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
6871 from const_rtx to const rtx_insn * within the appropriate cases of
6872 the switch statement.
6873
6874 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
6875 Strengthen local "insns" from rtx to rtx_insn * since this is
6876 passed to a call to debug_rtx_list.
6877
6878 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6879
6880 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
6881 to rtx_insn *.
6882
6883 * function.c (stack_protect_epilogue): Add checked cast to
6884 rtx_insn for now when invoking predict_insn_def.
6885
6886 * predict.c (predict_insn): Strengthen param "insn" from rtx to
6887 rtx_insn *.
6888 (predict_insn_def): Likewise.
6889 (rtl_predict_edge): Likewise for local "last_insn".
6890 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
6891 const rtx_insn *.
6892 (combine_predictions_for_insn): Strengthen param "insn" from rtx
6893 to rtx_insn *.
6894 (bb_estimate_probability_locally): Likewise for local "last_insn".
6895 (expensive_function_p): Likewise for local "insn".
6896
6897 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
6898 local "jmp", since this is used when invoking predict_insn_def.
6899
6900 2014-08-22 Marek Polacek <polacek@redhat.com>
6901
6902 PR c++/62199
6903 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
6904
6905 2014-08-22 Marek Polacek <polacek@redhat.com>
6906
6907 PR c/61271
6908 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
6909 a comparison in parens.
6910 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
6911 in parens.
6912
6913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6914
6915 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
6916 rtx_insn *.
6917
6918 * cprop.c (fis_get_condition): Likewise.
6919
6920 * postreload.c (reload_cse_regs): Likewise for param "first".
6921 (reload_cse_simplify): Likewise for param "insn".
6922 (reload_cse_regs_1): Likewise for local "insn".
6923 (reload_cse_simplify_set): Likewise for param "insn".
6924 (reload_cse_simplify_operands): Likewise.
6925 (struct reg_use): Likewise for field "insn".
6926 (reload_combine_purge_insn_uses): Likewise for param "insn".
6927 (fixup_debug_insns): Likewise for params "from", "to" and local
6928 "insn".
6929 (try_replace_in_use): Likewise for local "use_insn".
6930 (reload_combine_recognize_const_pattern): Likewise for param
6931 "insn" and locals "add_moved_after_insn", "use_insn".
6932 (reload_combine_recognize_pattern): Likewise for param "insn" and
6933 local "prev".
6934 (reload_combine): Likewise for locals "insn", "prev".
6935 (reload_combine_note_use): Likewise for param "insn".
6936 (move2add_use_add2_insn): Likewise.
6937 (move2add_use_add3_insn): Likewise.
6938 (reload_cse_move2add): Likewise, also for local "next".
6939 (move2add_note_store): Likewise for local "insn".
6940
6941 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6942
6943 * postreload-gcse.c (struct occr): Strengthen field "insn" from
6944 rtx to rtx_insn *.
6945 (struct unoccr): Likewise.
6946 (struct modifies_mem): Likewise.
6947 (alloc_mem): Likewise for local "insn".
6948 (insert_expr_in_table): Likewise for param "insn".
6949 (dump_expr_hash_table_entry): Likewise for local "insn".
6950 (oprs_unchanged_p): Likewise for param "insn".
6951 (load_killed_in_block_p): Likewise for local "setter".
6952 (record_last_reg_set_info): Likewise for param "insn".
6953 (record_last_reg_set_info_regno): Likewise.
6954 (record_last_mem_set_info): Likewise.
6955 (record_last_set_info): Likewise for local "last_set_insn".
6956 (record_opr_changes): Likewise for param "insn".
6957 (hash_scan_set): Likewise.
6958 (compute_hash_table): Likewise for local "insn".
6959 (get_avail_load_store_reg): Likewise for param "insn".
6960 (eliminate_partially_redundant_load): Likewise, also for locals
6961 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
6962 RTX for insns.
6963 (eliminate_partially_redundant_loads): Likewise for local "insn".
6964
6965 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6966
6967 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
6968 rtx to rtx_insn *.
6969 (expand_binop): Likewise for locals "entry_last", "last", "insns"
6970 (expand_twoval_unop): Likewise for locals entry_last", "last".
6971 (expand_twoval_binop): Likewise.
6972 (expand_twoval_binop_libfunc): Likewise for local "insns".
6973 (widen_leading): Likewise for local "last".
6974 (expand_doubleword_clz): Likewise for local "seq". Strengthen
6975 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
6976 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
6977 (expand_parity): Likewise for locals "last" and "seq".
6978 (expand_ffs): Likewise for local "seq". Strengthen local
6979 "nonzero_label" from rtx to rtx_code_label *.
6980 (expand_absneg_bit): Strengthen local "insns" from rtx to
6981 rtx_insn *.
6982 (expand_unop_direct): Likewise for local "last".
6983 (expand_unop): Likewise for locals "last", "insns".
6984 (expand_abs_nojump): Likewise for local "last".
6985 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
6986 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
6987 rtx_insn *.
6988 (expand_copysign_absneg): Strengthen local "label" from rtx to
6989 rtx_code_label *.
6990 (expand_copysign_bit): Strengthen local "insns" from rtx to
6991 rtx_insn *.
6992 (struct no_conflict_data): Likewise for fields "first", "insn".
6993 (emit_libcall_block_1): Likewise for param "insns" and locals
6994 "next", "last", "insn".
6995 (emit_libcall_block): For now, add a checked cast to rtx_insn *
6996 on "insns" when invoking emit_libcall_block_1. Ultimately we
6997 want to strengthen insns itself.
6998 (prepare_cmp_insn): Strengthen local "last" from rtx to
6999 rtx_insn *.
7000 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7001 (prepare_float_lib_cmp): Likewise for local "insns".
7002 (emit_conditional_move): Likewise for local "last".
7003 (emit_conditional_add): Likewise.
7004 (have_sub2_insn): Likewise for local "seq".
7005 (expand_float): Likewise for local "insns". Strengthen locals
7006 "label", "neglabel" from rtx to rtx_code_label *.
7007 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7008 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7009 (expand_fixed_convert): Likewise for local "insns" (to
7010 rtx_insn *).
7011 (expand_sfix_optab): Likewise for local "last".
7012 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7013 to rtx_code_label *.
7014 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7015 from rtx to rtx_insn *.
7016 (expand_atomic_fetch_op): Likewise for local "insn".
7017 (maybe_legitimize_operand_same_code): Likewise for local "last".
7018 (maybe_legitimize_operands): Likewise.
7019
7020 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7021
7022 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7023 "insn" from rtx to rtx_insn *.
7024 (ps_rtl_insn): Likewise for return type.
7025 (doloop_register_get): Likewise for params "head", "tail" and
7026 locals "insn", "first_insn_not_to_check".
7027 (schedule_reg_move): Likewise for local "this_insn".
7028 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7029 of gen_move_insn for now.
7030 (reset_sched_times): Strengthen local "insn" from rtx to
7031 rtx_insn *.
7032 (permute_partial_schedule): Likewise.
7033 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7034 (dump_insn_location): Likewise for param "insn".
7035 (loop_canon_p): Likewise for local "insn".
7036 (sms_schedule): Likewise.
7037 (print_partial_schedule): Likewise.
7038 (ps_has_conflicts): Likewise.
7039
7040 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7041
7042 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7043 "tailp" from rtx * to rtx_insn **.
7044
7045 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7046 from rtx to rtx_insn *.
7047 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7048 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7049 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7050 rtx to rtx_insn *.
7051 * modulo-sched.c (const_iteration_count): Strengthen return type
7052 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7053 use of NULL_RTX with NULL when working with insns.
7054 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7055 to rtx_insn *.
7056 (sms_schedule): Likewise.
7057 * sched-rgn.c (init_ready_list): Likewise, also for locals
7058 "src_head" and "src_next_tail".
7059 (compute_block_dependences): Likewise.
7060 (free_block_dependencies): Likewise.
7061 (debug_rgn_dependencies): Likewise.
7062 (free_rgn_deps): Likewise.
7063 (compute_priorities): Likewise.
7064 (schedule_region): Likewise.
7065 * sel-sched.c (find_ebb_boundaries): Likewise.
7066
7067 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7068 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7069
7070 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7071
7072 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7073 from rtx to rtx_insn *.
7074 (new_seginfo): Likewise for param "insn".
7075 (create_pre_exit): Likewise for locals "last_insn",
7076 "before_return_copy", "return_copy".
7077 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7078 "mode_set".
7079
7080 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7081
7082 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7083 from rtx to rtx_insn *.
7084 (lra_push_insn): Likewise for 1st param.
7085 (lra_push_insn_and_update_insn_regno_info): Likewise.
7086 (lra_pop_insn): Likewise for return type.
7087 (lra_invalidate_insn_data): Likewise for 1st param.
7088 (lra_set_insn_deleted): Likewise.
7089 (lra_delete_dead_insn): Likewise.
7090 (lra_process_new_insns): Likewise for first 3 params.
7091 (lra_set_insn_recog_data): Likewise for 1st param.
7092 (lra_update_insn_recog_data): Likewise.
7093 (lra_set_used_insn_alternative): Likewise.
7094 (lra_invalidate_insn_regno_info): Likewise.
7095 (lra_update_insn_regno_info): Likewise.
7096 (lra_former_scratch_operand_p): Likewise.
7097 (lra_eliminate_regs_1): Likewise.
7098 (lra_get_insn_recog_data): Likewise.
7099
7100 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7101 rtx to rtx_insn *.
7102
7103 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7104 "mv1" and "mv2".
7105 (substitute_within_insn): New.
7106 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7107 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7108 Replace call to "substitute" with call to substitute_within_insn.
7109
7110 * lra-constraints.c (curr_insn): Strengthen from rtx to
7111 rtx_insn *.
7112 (get_equiv_with_elimination): Likewise for param "insn".
7113 (match_reload): Strengthen params "before" and "after" from rtx *
7114 to rtx_insn **.
7115 (emit_spill_move): Likewise for return type. Add a checked cast
7116 to rtx_insn * on result of gen_move_insn for now.
7117 (check_and_process_move): Likewise for local "before". Replace
7118 NULL_RTX with NULL when referring to insns.
7119 (process_addr_reg): Strengthen params "before" and "after" from
7120 rtx * to rtx_insn **.
7121 (insert_move_for_subreg): Likewise.
7122 (simplify_operand_subreg): Strengthen locals "before" and "after"
7123 from rtx to rtx_insn *.
7124 (process_address_1): Strengthen params "before" and "after" from
7125 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7126 rtx to rtx_insn *.
7127 (process_address): Strengthen params "before" and "after" from
7128 rtx * to rtx_insn **.
7129 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7130 (curr_insn_transform): Strengthen locals "before" and "after"
7131 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7132 to insns.
7133 (loc_equivalence_callback): Update cast of "data", changing
7134 resulting type from rtx to rtx_insn *.
7135 (substitute_pseudo_within_insn): New.
7136 (inherit_reload_reg): Strengthen param "insn" from rtx to
7137 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7138 NULL when referring to insns. Add a checked cast to rtx_insn *
7139 when using usage_insn to invoke lra_update_insn_regno_info.
7140 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7141 likewise for locals "restore", "save". Add checked casts to
7142 rtx_insn * when using usage_insn to invoke
7143 lra_update_insn_regno_info and lra_process_new_insns. Replace
7144 NULL_RTX with NULL when referring to insns.
7145 (split_if_necessary): Strengthen param "insn" from rtx to
7146 rtx_insn *.
7147 (update_ebb_live_info): Likewise for params "head", "tail" and local
7148 "prev_insn".
7149 (get_last_insertion_point): Likewise for return type and local "insn".
7150 (get_live_on_other_edges): Likewise for local "last".
7151 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7152 "prev_insn", "next_insn", "restore".
7153 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7154 (undo_optional_reloads): Likewise for local "insn".
7155
7156 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7157 "insn".
7158 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7159 insns.
7160 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7161 rtx_insn *.
7162 (spill_pseudos): Likewise for local "insn".
7163 (init_elimination): Likewise.
7164 (process_insn_for_elimination): Likewise for param "insn".
7165
7166 * lra-lives.c (curr_insn): Likewise.;
7167
7168 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7169 (remove_pseudos): Likewise for param "insn".
7170 (spill_pseudos): Likewise for local "insn".
7171 (lra_final_code_change): Likewise for locals "insn", "curr".
7172
7173 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7174 (lra_set_insn_deleted): Likewise.
7175 (lra_delete_dead_insn): Likewise, and for local "prev".
7176 (new_insn_reg): Likewise for param "insn".
7177 (lra_set_insn_recog_data): Likewise.
7178 (lra_update_insn_recog_data): Likewise.
7179 (lra_set_used_insn_alternative): Likewise.
7180 (get_insn_freq): Likewise.
7181 (invalidate_insn_data_regno_info): Likewise.
7182 (lra_invalidate_insn_regno_info): Likewise.
7183 (lra_update_insn_regno_info): Likewise.
7184 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7185 vec<rtx_insn *>.
7186 (lra_push_insn_1): Strengthen param "insn" from rtx to
7187 rtx_insn *.
7188 (lra_push_insn): Likewise.
7189 (lra_push_insn_and_update_insn_regno_info): Likewise.
7190 (lra_pop_insn): Likewise for return type and local "insn".
7191 (push_insns): Likewise for params "from", "to", and local "insn".
7192 (setup_sp_offset): Likewise for params "from", "last" and locals
7193 "before", "insn".
7194 (lra_process_new_insns): Likewise for params "insn", "before",
7195 "after" and local "last".
7196 (struct sloc): Likewise for field "insn".
7197 (lra_former_scratch_operand_p): Likewise for param "insn".
7198 (remove_scratches): Likewise for locals "insn", "last".
7199 (check_rtl): Likewise for local "insn".
7200 (add_auto_inc_notes): Likewise for param "insn".
7201 (update_inc_notes): Likewise for local "insn".
7202 (lra): Replace NULL_RTX with NULL when referring to insn.
7203
7204 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7205
7206 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7207 to rtx_insn *.
7208 (resolve_reg_notes): Likewise.
7209 (resolve_simple_move): Likewise for return type, param "insn", and
7210 locals "insns", "minsn".
7211 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7212 (resolve_use): Likewise.
7213 (resolve_debug): Likewise.
7214 (find_decomposable_shift_zext): Likewise.
7215 (resolve_shift_zext): Likewise for return type, param "insn", and
7216 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7217 (decompose_multiword_subregs): Likewise for local "insn",
7218 "orig_insn", "decomposed_shift", "end".
7219
7220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7221
7222 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7223 param "insns" from rtx to rtx_insn *.
7224
7225 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7226 rtx to rtx_insn *.
7227 (struct iv_to_split): Likewise.
7228 (loop_exit_at_end_p): Likewise for local "insn".
7229 (split_edge_and_insert): Likewise for param "insns".
7230 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7231 and locals "seq", "jump".
7232 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7233 "branch_code"; update invocations of compare_and_jump_seq to
7234 eliminate NULL_RTX in favor of NULL.
7235 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7236 rtx to rtx_insn *.
7237 (reset_debug_uses_in_loop): Likewise.
7238 (analyze_insn_to_expand_var): Likewise for param "insn".
7239 (analyze_iv_to_split_insn): Likewise.
7240 (analyze_insns_in_loop): Likewise for local "insn".
7241 (insert_base_initialization): Likewise for param
7242 "insn" and local "seq".
7243 (split_iv): Likewise for param "insn" and local "seq".
7244 (expand_var_during_unrolling): Likewise for param "insn".
7245 (insert_var_expansion_initialization): Likewise for local "seq".
7246 (combine_var_copies_in_loop_exit): Likewise.
7247 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7248 "insn".
7249 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7250 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7251 "next".
7252
7253 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7254
7255 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7256 rtx_insn *.
7257 (iv_analyze_result): Likewise.
7258 (iv_analyze_expr): Likewise.
7259 (biv_p): Likewise.
7260
7261 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7262 local "def_insn" from rtx to rtx_insn *.
7263 (get_biv_step_1): Likewise for local "insn".
7264 (iv_analyze_expr): Likewise for param "insn".
7265 (iv_analyze_def): Likewise for local "insn".
7266 (iv_analyze_op): Likewise for param "insn".
7267 (iv_analyze): Likewise.
7268 (iv_analyze_result): Likewise.
7269 (biv_p): Likewise.
7270 (suitable_set_for_replacement): Likewise.
7271 (simplify_using_initial_values): Likewise for local "insn".
7272 (iv_number_of_iterations): Likewise for param "insn".
7273 (check_simple_exit): Add checked cast to rtx_insn when invoking
7274 iv_number_of_iterations for now (until get_condition is
7275 strengthened).
7276
7277 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7278 "insn" from rtx to rtx_insn *.
7279 (analyze_insns_in_loop): Likewise for local "insn".
7280
7281 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7282
7283 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7284 to rtx_insn *.
7285 (struct invariant): Likewise.
7286 (hash_invariant_expr_1): Likewise for param "insn".
7287 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7288 (find_exits): Likewise for local "insn".
7289 (create_new_invariant): Likewise for param "insn".
7290 (check_dependencies): Likewise.
7291 (find_invariant_insn): Likewise.
7292 (record_uses): Likewise.
7293 (find_invariants_insn): Likewise.
7294 (find_invariants_bb): Likewise for local "insn".
7295 (get_pressure_class_and_nregs): Likewise for param "insn".
7296 (calculate_loop_reg_pressure): Likewise for local "insn".
7297
7298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7299
7300 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7301 to rtx_insn *.
7302 (add_test): Likewise for locals "seq", "jump".
7303 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7304
7305 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7306
7307 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7308 rtx_insn *.
7309 (rebuild_jump_labels_chain): Likewise for param "chain".
7310
7311 * cfgexpand.c (pass_expand::execute): Add checked cast to
7312 rtx_insn * when calling rebuild_jump_labels_chain in region where
7313 we know e->insns.r is non-NULL.
7314
7315 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7316 rtx_insn *.
7317 (rebuild_jump_labels): Likewise.
7318 (rebuild_jump_labels_chain): Likewise for param "chain".
7319 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7320 (init_label_info): Likewise for param "f".
7321 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7322 "prev_nonjump_insn".
7323 (mark_all_labels): Likewise for param "f" and locals "insn",
7324 "prev_nonjump_insn".
7325
7326 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7327
7328 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7329 from rtx to rtx_insn *insn.
7330 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7331 (ira_add_allocno_copy): Likewise.
7332 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7333 rtx to rtx_insn *.
7334 (ira_create_copy): Likewise.
7335 (ira_add_allocno_copy): Likewise.
7336 (create_bb_allocnos): Likewise for local "insn".
7337 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7338 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7339 process_regs_for_copy for rtx_insn * param.
7340 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7341 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7342 process_regs_for_copy for rtx_insn * param.
7343 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7344 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7345 (record_operand_costs): Likewise.
7346 (scan_one_insn): Likewise for return type, and for param "insn".
7347 (process_bb_for_costs): Likewise for local "insn".
7348 (process_bb_node_for_hard_reg_moves): Likewise.
7349 * ira-emit.c (struct move): Likewise for field "insn".
7350 (create_move): Eliminate use of NULL_RTX when dealing with an
7351 rtx_insn *.
7352 (emit_move_list): Strengthen return type and locals "result",
7353 "insn" from rtx to rtx_insn *insn.
7354 (emit_moves): Likewise for locals "insns", "tmp".
7355 (ira_emit): Likewise for local "insn".
7356 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7357 "insn".
7358 (find_call_crossed_cheap_reg): Likewise.
7359 (process_bb_node_lives): Likewise for local "insn".
7360 * ira.c (decrease_live_ranges_number): Likewise.
7361 (compute_regs_asm_clobbered): Likewise.
7362 (build_insn_chain): Likewise.
7363 (find_moveable_pseudos): Likewise, also locals "def_insn",
7364 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7365 to rtx_insn **. Add a checked cast when assigning from
7366 "closest_use" into closest_uses array in a region where we know
7367 it's a non-NULL insn.
7368 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7369 to rtx_insn *.
7370 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7371 "last_interesting_insn", "uin".
7372 (move_unallocated_pseudos): Likewise for locals "def_insn",
7373 "move_insn", "newinsn".
7374
7375 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7376
7377 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7378 Strengthen locals "done_label", "do_error" from rtx to
7379 rtx_code_label *.
7380 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7381 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7382 rtx_code_label *.
7383 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7384 "done_label", "do_error" to rtx_code_label * and local "last" to
7385 rtx_insn *.
7386 (ubsan_expand_si_overflow_mul_check): Likewise for locals
7387 "done_label", "do_error", "large_op0", "small_op0_large_op1",
7388 "one_small_one_large", "both_ops_large", "after_hipart_neg",
7389 "after_lopart_neg", "do_overflow", "hipart_different" to
7390 rtx_code_label * and local "last" to rtx_insn *.
7391
7392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7393
7394 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
7395 "insn" and "move_insn" from rtx to rtx_insn *.
7396
7397 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7398
7399 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
7400 rtx_insn *.
7401 (cheap_bb_rtx_cost_p): Likewise.
7402 (first_active_insn): Likewise for return type and local "insn".
7403 (last_active_insn): Likewise for return type and locals "insn",
7404 "head".
7405 (struct noce_if_info): Likewise for fields "jump", "insn_a",
7406 "insn_b".
7407 (end_ifcvt_sequence): Likewise for return type and locals "insn",
7408 "seq".
7409 (noce_try_move): Likewise for local "seq".
7410 (noce_try_store_flag): Likewise.
7411 (noce_try_store_flag_constants): Likewise.
7412 (noce_try_addcc): Likewise.
7413 (noce_try_store_flag_mask): Likewise.
7414 (noce_try_cmove): Likewise.
7415 (noce_try_minmax): Likewise.
7416 (noce_try_abs): Likewise.
7417 (noce_try_sign_mask): Likewise.
7418 (noce_try_bitop): Likewise.
7419 (noce_can_store_speculate_p): Likewise for local "insn".
7420 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
7421 seq".
7422 (check_cond_move_block): Likewise for local "insn".
7423 (cond_move_convert_if_block): Likewise.
7424 (cond_move_process_if_block): Likewise for locals "seq",
7425 "loc_insn".
7426 (noce_find_if_block): Likewise for local "jump".
7427 (merge_if_block): Likewise for local "last".
7428 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
7429 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
7430 (block_has_only_trap): Likewise for return type and local "trap".
7431 (find_if_case_1): Likewise for local "jump".
7432 (dead_or_predicable): Likewise for locals "head", "end", "jump",
7433 "insn".
7434
7435 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7436
7437 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
7438 "last_insn", "loop_end" from rtx to rtx_insn *.
7439
7440 * hw-doloop.c (scan_loop): Likewise for local "insn".
7441 (discover_loop): Likewise for param "tail_insn".
7442 (discover_loops): Likewise for local "tail".
7443
7444 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
7445 cast to rtx_insn * when assigning from an rtx local to a
7446 hwloop_info's "last_insn" field.
7447
7448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7449
7450 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
7451 (add_delay_dependencies): Strengthen local "pro" from rtx to
7452 rtx_insn *.
7453 (recompute_todo_spec): Likewise.
7454 (dep_cost_1): Likewise for locals "insn", "used".
7455 (schedule_insn): Likewise for local "dbg".
7456 (schedule_insn): Likewise for locals "pro", "next".
7457 (unschedule_insns_until): Likewise for local "con".
7458 (restore_pattern): Likewise for local "next".
7459 (estimate_insn_tick): Likewise for local "pro".
7460 (resolve_dependencies): Likewise for local "next".
7461 (fix_inter_tick): Likewise.
7462 (fix_tick_ready): Likewise for local "pro".
7463 (add_to_speculative_block): Likewise for locals "check", "twin",
7464 "pro".
7465 (sched_extend_bb): Likewise for locals "end", "insn".
7466 (init_before_recovery): Likewise for local "x".
7467 (sched_create_recovery_block): Likewise for local "barrier".
7468 (create_check_block_twin): Likewise for local "pro".
7469 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
7470 "consumer".
7471 (unlink_bb_notes): Update for change to type of bb_header.
7472 Strengthen locals "prev", "label", "note", "next" from rtx to
7473 rtx_insn *.
7474 (clear_priorities): Likewise for local "pro".
7475
7476 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7477
7478 * gcse.c (struct occr): Strengthen field "insn" from rtx to
7479 rtx_insn *.
7480 (test_insn): Likewise for this global.
7481 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
7482 const rtx_insn *.
7483 (oprs_anticipatable_p): Likewise.
7484 (oprs_available_p): Likewise.
7485 (insert_expr_in_table): Strengthen param "insn" from rtx to
7486 rtx_insn *.
7487 (hash_scan_set): Likewise.
7488 (hash_scan_clobber): Likewise.
7489 (hash_scan_call): Likewise.
7490 (hash_scan_insn): Likewise.
7491 (compute_hash_table_work): Likewise for local "insn".
7492 (process_insert_insn): Likewise for return type and local "pat".
7493 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7494 "pat", "pat_end", "maybe_cc0_setter".
7495 (pre_edge_insert): Likewise for local "insn".
7496 (pre_insert_copy_insn): Likewise for param "insn".
7497 (pre_insert_copies): Likewise for local "insn".
7498 (struct set_data): Likewise for field "insn".
7499 (single_set_gcse): Likewise for param "insn".
7500 (gcse_emit_move_after): Likewise.
7501 (pre_delete): Likewise for local "insn".
7502 (update_bb_reg_pressure): Likewise for param "from" and local
7503 "insn".
7504 (should_hoist_expr_to_dom): Likewise for param "from".
7505 (hoist_code): Likewise for local "insn".
7506 (get_pressure_class_and_nregs): Likewise for param "insn".
7507 (calculate_bb_reg_pressure): Likewise for local "insn".
7508 (compute_ld_motion_mems): Likewise.
7509
7510 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7511
7512 * genpeep.c (main): Rename param back from "uncast_ins1" to
7513 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7514 checked cast.
7515
7516 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7517
7518 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7519
7520 PR target/62195
7521 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7522 documentation to state it is only for VSX operations.
7523
7524 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7525 constraint only active if VSX.
7526
7527 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7528 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7529 (lfiwzx): Likewise.
7530
7531 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7532
7533 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7534 Strengthen local "insn" from rtx to rtx_insn *.
7535 (use_killed_between): Likewise for param "target_insn".
7536 (all_uses_available_at): Likewise for param "target_insn" and
7537 local "next".
7538 (update_df_init): Likewise for params "def_insn", "insn".
7539 (update_df): Likewise for param "insn".
7540 (try_fwprop_subst): Likewise for param "def_insn" and local
7541 "insn".
7542 (free_load_extend): Likewise for param "insn".
7543 (forward_propagate_subreg): Likewise for param "def_insn" and
7544 local "use_insn".
7545 (forward_propagate_asm): Likewise for param "def_insn" and local
7546 "use_insn".
7547 (forward_propagate_and_simplify): Likewise for param "def_insn"
7548 and local "use_insn".
7549 (forward_propagate_into): Likewise for locals "def_insn" and
7550 "use_insn".
7551
7552 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7553
7554 * function.c (emit_initial_value_sets): Strengthen local "seq"
7555 from rtx to rtx_insn *.
7556 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7557 local "seq".
7558 (instantiate_virtual_regs): Likewise for local "insn".
7559 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7560 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7561 (expand_function_end): Likewise for locals "insn" and "seq".
7562 (epilogue_done): Likewise for local "insn".
7563 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7564 "last", "trial".
7565 (reposition_prologue_and_epilogue_notes): Likewise for locals
7566 "insn", "last", "note", "first".
7567 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7568 (pass_match_asm_constraints::execute): Likewise for local "insn".
7569
7570 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7571
7572 * output.h (final_scan_insn): Strengthen return type from rtx to
7573 rtx_insn *.
7574 (final_forward_branch_p): Likewise for param.
7575 (current_output_insn): Likewise for this global.
7576
7577 * final.c (rtx debug_insn): Likewise for this variable.
7578 (current_output_insn): Likewise.
7579 (get_attr_length_1): Rename param "insn" to "uncast_insn",
7580 adding "insn" back in as an rtx_insn * with a checked cast, so
7581 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7582 first param.
7583 (compute_alignments): Strengthen local "label" from rtx to
7584 rtx_insn *.
7585 (shorten_branches): Rename param from "first" to "uncast_first",
7586 introducing a new local rtx_insn * "first" using a checked cast to
7587 effectively strengthen "first" from rtx to rtx_insn * without
7588 affecting the type signature. Strengthen locals "insn", "seq",
7589 "next", "label" from rtx to rtx_insn *.
7590 (change_scope): Strengthen param "orig_insn" and local "insn" from
7591 rtx to rtx_insn *.
7592 (final_start_function): Rename param from "first" to "uncast_first",
7593 introducing a new local rtx_insn * "first" using a checked cast to
7594 effectively strengthen "first" from rtx to rtx_insn * without
7595 affecting the type signature. Strengthen local "insn" from rtx to
7596 rtx_insn *.
7597 (dump_basic_block_info): Strengthen param "insn" from rtx to
7598 rtx_insn *.
7599 (final): Rename param from "first" to "uncast_first",
7600 introducing a new local rtx_insn * "first" using a checked cast to
7601 effectively strengthen "first" from rtx to rtx_insn * without
7602 affecting the type signature. Strengthen locals "insn", "next"
7603 from rtx to rtx_insn *.
7604 (output_alternate_entry_point): Strengthen param "insn" from rtx to
7605 rtx_insn *.
7606 (call_from_call_insn): Strengthen param "insn" from rtx to
7607 rtx_call_insn *.
7608 (final_scan_insn): Rename param from "insn" to "uncast_insn",
7609 introducing a new local rtx_insn * "insn" using a checked cast to
7610 effectively strengthen "insn" from rtx to rtx_insn * without
7611 affecting the type signature. Strengthen return type and locals
7612 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
7613 now-redundant checked cast to rtx_insn * from both invocations of
7614 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
7615 introducing a local "call_insn" for use when invoking
7616 call_from_call_insn.
7617 (notice_source_line): Strengthen param "insn" from rtx to
7618 rtx_insn *.
7619 (leaf_function_p): Likewise for local "insn".
7620 (final_forward_branch_p): Likewise.
7621 (leaf_renumber_regs): Likewise for param "first".
7622 (rest_of_clean_state): Likewise for locals "insn" and "next".
7623 (self_recursive_call_p): Likewise for param "insn".
7624 (collect_fn_hard_reg_usage): Likewise for local "insn".
7625 (get_call_fndecl): Likewise for param "insn".
7626 (get_call_cgraph_rtl_info): Likewise.
7627 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7628 introducing a new local rtx_insn * "insn" using a checked cast to
7629 effectively strengthen "insn" from rtx to rtx_insn * without
7630 affecting the type signature.
7631
7632 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7633 cast when assigning from param "insn" to current_output_insn.
7634 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7635 so that we can assign it back to current_output_insn.
7636
7637 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7638
7639 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7640 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7641 atmxt540s and atmxt540sreva devices.
7642 * config/avr/avr-tables.opt: Regenerate.
7643 * config/avr/t-multilib: Regenerate.
7644 * doc/avr-mmcu.texi: Regenerate.
7645
7646 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7647
7648 * expr.c (convert_move): Strengthen local "insns" from rtx to
7649 rtx_insn *.
7650 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7651 "top_label" from rtx to rtx_code_label *.
7652 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7653 rtx_insn *.
7654 (emit_single_push_insn): Likewise for locals "prev", "last".
7655 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7656 to rtx_code_label *.
7657 (store_constructor): Likewise for locals "loop_start", "loop_end".
7658 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7659 rtx_insn *.
7660 (expand_expr_real_2): Likewise.
7661 (expand_expr_real_1): Strengthen local "label" from rtx to
7662 rtx_code_label *.
7663
7664 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7665
7666 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7667 from rtx to rtx_insn *.
7668 (store_bit_field_1): Likewise.
7669 (extract_bit_field_1): Likewise.
7670 (expand_mult_const): Likewise for local "insns".
7671 (expmed_mult_highpart): Strengthen local "label" from rtx to
7672 rtx_code_label *.
7673 (expand_smod_pow2): Likewise.
7674 (expand_sdiv_pow2): Likewise.
7675 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7676 rtx_insn *. Strengthen locals "label", "label1", "label2",
7677 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7678 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7679 (emit_store_flag): Likewise.
7680 (emit_store_flag_force): Strengthen local "label" from rtx to
7681 rtx_code_label *.
7682 (do_cmp_and_jump): Likewise for param "label".
7683
7684 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7685
7686 * explow.c (force_reg): Strengthen local "insn" from rtx to
7687 rtx_insn *.
7688 (adjust_stack_1): Likewise.
7689 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7690 "final_label", "available_label", "space_available" from rtx to
7691 rtx_code_label *.
7692 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7693 (anti_adjust_stack_and_probe): Likewise.
7694
7695 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7696
7697 * except.h (sjlj_emit_function_exit_after): Strengthen param
7698 "after" from rtx to rtx_insn *. This is only called with
7699 result of get_last_insn (in function.c) so type-change should be
7700 self-contained.
7701
7702 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7703 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7704 to rtx_insn *. These fields are only used from except.c so this
7705 type-change should be self-contained to this patch.
7706
7707 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7708 local "last" from rtx to rtx_insn *.
7709 (dw2_build_landing_pads): Likewise for local "seq".
7710 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7711 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7712 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7713 rtx to rtx_insn *.
7714 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7715 to rtx_insn *.
7716 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7717 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7718 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7719 referring to an insn. Strengthen local "dispatch_label" from
7720 rtx to rtx_code_label *.
7721 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7722 rtx_insn *.
7723 (expand_eh_return): Strengthen local "around_label" from
7724 rtx to rtx_code_label *.
7725 (convert_to_eh_region_ranges): Strengthen locals "iter",
7726 "last_action_insn", "first_no_action_insn",
7727 "first_no_action_insn_before_switch",
7728 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7729
7730 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7731
7732 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7733 from rtx to rtx_insn *.
7734 (cached_next_real_insn): Likewise.
7735 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7736 working with insns.
7737 (dwarf2out_var_location): Strengthen locals "next_real",
7738 "next_note", "expected_next_loc_note", "last_start", "insn" from
7739 rtx to rtx_insn *.
7740
7741 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7742
7743 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7744 from rtx to rtx_insn *.
7745 (create_pseudo_cfg): Likewise for local "insn".
7746
7747 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7748
7749 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7750 from rtx to rtx_insn *.
7751 (df_bb_regno_last_def_find): Likewise.
7752
7753 * df-problems.c (df_rd_bb_local_compute): Likewise.
7754 (df_lr_bb_local_compute): Likewise.
7755 (df_live_bb_local_compute): Likewise.
7756 (df_chain_remove_problem): Likewise.
7757 (df_chain_create_bb): Likewise.
7758 (df_word_lr_bb_local_compute): Likewise.
7759 (df_remove_dead_eq_notes): Likewise for param "insn".
7760 (df_note_bb_compute): Likewise for local "insn".
7761 (simulate_backwards_to_point): Likewise.
7762 (df_md_bb_local_compute): Likewise.
7763
7764 * df-scan.c (df_scan_free_bb_info): Likewise.
7765 (df_scan_start_dump): Likewise.
7766 (df_scan_start_block): Likewise.
7767 (df_install_ref_incremental): Likewise for local "insn".
7768 (df_insn_rescan_all): Likewise.
7769 (df_reorganize_refs_by_reg_by_insn): Likewise.
7770 (df_reorganize_refs_by_insn_bb): Likewise.
7771 (df_recompute_luids): Likewise.
7772 (df_bb_refs_record): Likewise.
7773 (df_update_entry_exit_and_calls): Likewise.
7774 (df_bb_verify): Likewise.
7775
7776 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7777
7778 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7779 "first_note" from rtx to rtx_insn *.
7780 (get_node_of_insn): Likewise for param 2 "insn".
7781 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7782
7783 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7784 rtx_insn *.
7785 (mem_write_insn_p): Likewise.
7786 (mem_access_insn_p): Likewise.
7787 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7788 (def_has_ccmode_p): Likewise for param "insn".
7789 (add_cross_iteration_register_deps): Likewise for locals
7790 "def_insn" and "use_insn".
7791 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7792 (build_intra_loop_deps): Likewise for local "src_insn".
7793 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7794 to rtx_insn *.
7795 (get_node_of_insn): Likewise for param "insn".
7796
7797 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7798
7799 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7800 (deletable_insn_p): Strengthen param "insn" from rtx to
7801 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7802 find_call_stack_args, since this is guarded by CALL_P (insn).
7803 (marked_insn_p): Strengthen param "insn" from rtx to
7804 rtx_insn *.
7805 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7806 invoking find_call_stack_args, since this is guarded by
7807 CALL_P (insn).
7808 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7809 rtx_insn *; we know this is an insn since this was called by
7810 mark_nonreg_stores.
7811 (mark_nonreg_stores_2): Likewise.
7812 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7813 rtx_insn *.
7814 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7815 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7816 to rtx_insn *.
7817 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7818 from rtx to rtx_insn *.
7819 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7820 "next", "ref_insn".
7821 (delete_unmarked_insns): Likewise for locals "insn", "next".
7822 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7823 (mark_reg_dependencies): Likewise for param "insn".
7824 (rest_of_handle_ud_dce): Likewise for local "insn".
7825 (word_dce_process_block): Likewise.
7826 (dce_process_block): Likewise.
7827
7828 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7829
7830 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7831 from rtx to rtx_insn *.
7832 (struct change_cc_mode_args): Likewise for field "insn".
7833 (this_insn): Strengthen from rtx to rtx_insn *.
7834 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7835 with insn.
7836 (validate_canon_reg): Strengthen param "insn" from rtx to
7837 rtx_insn *.
7838 (canon_reg): Likewise.
7839 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7840 dealing with insn.
7841 (record_jump_equiv): Strengthen param "insn" from rtx to
7842 rtx_insn *.
7843 (try_back_substitute_reg): Likewise, also for locals "prev",
7844 "bb_head".
7845 (find_sets_in_insn): Likewise for param "insn".
7846 (canonicalize_insn): Likewise.
7847 (cse_insn): Likewise. Add a checked cast.
7848 (invalidate_from_clobbers): Likewise for param "insn".
7849 (invalidate_from_sets_and_clobbers): Likewise.
7850 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
7851 dealing with insn.
7852 (cse_prescan_path): Strengthen local "insn" from rtx to
7853 rtx_insn *.
7854 (cse_extended_basic_block): Likewise for locals "insn" and
7855 "prev_insn".
7856 (cse_main): Likewise for param "f".
7857 (check_for_label_ref): Likewise for local "insn".
7858 (set_live_p): Likewise for second param ("insn").
7859 (insn_live_p): Likewise for first param ("insn") and for local
7860 "next".
7861 (cse_change_cc_mode_insn): Likewise for first param "insn".
7862 (cse_change_cc_mode_insns): Likewise for first and second params
7863 "start" and "end".
7864 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
7865 and "end".
7866 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
7867 "cc_src_insn".
7868
7869 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7870 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7871 Anna Tikhonova <anna.tikhonova@intel.com>
7872 Ilya Tocar <ilya.tocar@intel.com>
7873 Andrey Turetskiy <andrey.turetskiy@intel.com>
7874 Ilya Verbin <ilya.verbin@intel.com>
7875 Kirill Yukhin <kirill.yukhin@intel.com>
7876 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7877
7878 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
7879 New.
7880 * config/i386/sse.md
7881 (define_mode_iterator VI248_AVX2): Delete.
7882 (define_mode_iterator VI2_AVX2_AVX512BW): New.
7883 (define_mode_iterator VI48_AVX2): Ditto.
7884 (define_insn <shift_insn><mode>3): Delete.
7885 (define_insn "<shift_insn><mode>3<mask_name>" with
7886 VI2_AVX2_AVX512BW): New.
7887 (define_insn "<shift_insn><mode>3<mask_name>" with
7888 VI48_AVX2): Ditto.
7889
7890 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7892 Anna Tikhonova <anna.tikhonova@intel.com>
7893 Ilya Tocar <ilya.tocar@intel.com>
7894 Andrey Turetskiy <andrey.turetskiy@intel.com>
7895 Ilya Verbin <ilya.verbin@intel.com>
7896 Kirill Yukhin <kirill.yukhin@intel.com>
7897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7898
7899 * config/i386/sse.md
7900 (define_mode_iterator VI4F_BRCST32x2): New.
7901 (define_mode_attr 64x2_mode): Ditto.
7902 (define_mode_attr 32x2mode): Ditto.
7903 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
7904 with VI4F_BRCST32x2): Ditto.
7905 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
7906 with V16FI mode iterator): Ditto.
7907 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7908 with V16FI): Ditto.
7909 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7910 with VI8F_BRCST64x2): Ditto.
7911
7912 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7913 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7914 Anna Tikhonova <anna.tikhonova@intel.com>
7915 Ilya Tocar <ilya.tocar@intel.com>
7916 Andrey Turetskiy <andrey.turetskiy@intel.com>
7917 Ilya Verbin <ilya.verbin@intel.com>
7918 Kirill Yukhin <kirill.yukhin@intel.com>
7919 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7920
7921 * config/i386/sse.md
7922 (define_mode_iterator VI8_AVX512VL): New.
7923 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
7924
7925 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7926
7927 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
7928 (define_mode_iterator V48_AVX512VL): New.
7929 (define_mode_iterator V12_AVX512VL): Ditto.
7930 (define_insn <avx512>_load<mode>_mask): Split into two similar
7931 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
7932 Refactor output template.
7933 (define_insn "<avx512>_store<mode>_mask"): Ditto.
7934
7935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7936
7937 * cprop.c (struct occr): Strengthen field "insn" from rtx to
7938 rtx_insn *.
7939 (reg_available_p): Likewise for param "insn".
7940 (insert_set_in_table): Likewise.
7941 (hash_scan_set): Likewise.
7942 (hash_scan_insn): Likewise.
7943 (make_set_regs_unavailable): Likewise.
7944 (compute_hash_table_work): Likewise for local "insn".
7945 (reg_not_set_p): Strengthen param "insn" from const_rtx to
7946 const rtx_insn *.
7947 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
7948 (try_replace_reg): Likewise.
7949 (find_avail_set): Likewise.
7950 (cprop_jump): Likewise for params "setcc", "jump".
7951 (constprop_register): Likewise for param "insn".
7952 (cprop_insn): Likewise.
7953 (do_local_cprop): Likewise.
7954 (local_cprop_pass): Likewise for local "insn".
7955 (bypass_block): Likewise for params "setcc" and "jump".
7956 (bypass_conditional_jumps): Likewise for locals "setcc" and
7957 "insn".
7958 (one_cprop_pass): Likewise for local "insn".
7959
7960 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7961
7962 * compare-elim.c (struct comparison_use): Strengthen field "insn"
7963 from rtx to rtx_insn *.
7964 (struct comparison): Likewise, also for field "prev_clobber".
7965 (conforming_compare): Likewise for param "insn".
7966 (arithmetic_flags_clobber_p): Likewise.
7967 (find_flags_uses_in_insn): Likewise.
7968 (find_comparison_dom_walker::before_dom_children): Likewise for
7969 locals "insn", "next", "last_clobber".
7970 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
7971
7972 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7973
7974 * combine-stack-adj.c (struct csa_reflist): Strengthen field
7975 "insn" from rtx to rtx_insn *.
7976 (single_set_for_csa): Likewise for param "insn".
7977 (record_one_stack_ref): Likewise.
7978 (try_apply_stack_adjustment): Likewise.
7979 (struct record_stack_refs_data): Likewise for field "insn".
7980 (maybe_move_args_size_note): Likewise for params "last" and "insn".
7981 (prev_active_insn_bb): Likewise for return type and param "insn".
7982 (next_active_insn_bb): Likewise.
7983 (force_move_args_size_note): Likewise for params "prev" and "last"
7984 and locals "test", "next_candidate", "prev_candidate".
7985 (combine_stack_adjustments_for_block): Strengthen locals
7986 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
7987 rtx_insn *.
7988
7989 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7990
7991 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
7992 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
7993 (subst_insn): Likewise for this variable.
7994 (added_links_insn): Likewise.
7995 (struct insn_link): Likewise for field "insn".
7996 (alloc_insn_link): Likewise for param "insn".
7997 (struct undobuf): Likewise for field "other_insn".
7998 (find_single_use): Likewise for param "insn" and local "next".
7999 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8000 (delete_noop_moves): Likewise for locals "insn", "next".
8001 (create_log_links): Likewise for locals "insn", "use_insn".
8002 Strengthen local "next_use" from rtx * to rtx_insn **.
8003 (insn_a_feeds_b): Likewise for params "a", "b".
8004 (combine_instructions): Likewise for param "f" and locals "insn",
8005 "next", "prev", "first", "last_combined_insn", "link", "link1",
8006 "temp". Replace use of NULL_RTX with NULL when referring to
8007 insns.
8008 (setup_incoming_promotions): Likewise for param "first"
8009 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8010 (can_combine_p): Likewise for params "insn", "i3", "pred",
8011 "pred2", "succ", "succ2" and for local "p".
8012 (combinable_i3pat): Likewise for param "i3".
8013 (cant_combine_insn_p): Likewise for param "insn".
8014 (likely_spilled_retval_p): Likewise.
8015 (adjust_for_new_dest): Likewise.
8016 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8017 (try_combine): Likewise for return type and for params "i3", "i2",
8018 "i1", "i0", "last_combined_insn", and for locals "insn",
8019 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8020 "i0_insn". Eliminate local "tem" in favor of new locals
8021 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8022 checked cast for now to rtx_insn * on the return type of
8023 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8024 insns.
8025 (find_split_point): Strengthen param "insn" from rtx to
8026 rtx_insn *.
8027 (simplify_set): Likewise for local "other_insn".
8028 (recog_for_combine): Likewise for param "insn".
8029 (record_value_for_reg): Likewise.
8030 (record_dead_and_set_regs_1): Likewise for local
8031 "record_dead_insn".
8032 (record_dead_and_set_regs): Likewise for param "insn".
8033 (record_promoted_value): Likewise.
8034 (check_promoted_subreg): Likewise.
8035 (get_last_value_validate): Likewise.
8036 (reg_dead_at_p): Likewise.
8037 (move_deaths): Likewise for param "to_insn".
8038 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8039 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8040 in favor of new locals "tem_note" and "tem_insn", the latter being
8041 an rtx_insn *.
8042 (distribute_links): Strengthen locals "place", "insn" from rtx to
8043 rtx_insn *.
8044
8045 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8046
8047 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8048 than a const_rtx.
8049 (can_delete_label_p): Require a const rtx_code_label * rather than
8050 a const_rtx.
8051 (delete_insn): Add checked cast to rtx_code_label * when we know
8052 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8053 rtx to rtx_insn *.
8054 (delete_insn_chain): Strengthen locals "prev" and "current" from
8055 rtx to rtx_insn *. Add a checked cast when assigning from
8056 "finish" (strengthening the params will come later). Add a
8057 checked cast to rtx_note * in region where we know
8058 NOTE_P (current).
8059 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8060 rtx_insn *.
8061 (compute_bb_for_insn): Likewise.
8062 (free_bb_for_insn): Likewise for local "insn".
8063 (compute_bb_for_insn): Likewise.
8064 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8065 local "insn" from rtx to rtx_insn *
8066 (flow_active_insn_p): Require a const rtx_insn * rather than a
8067 const_rtx.
8068 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8069 rtx_insn *.
8070 (can_fallthru): Likewise for locals "insn" and "insn2".
8071 (bb_note): Likewise for local "note".
8072 (first_insn_after_basic_block_note): Likewise for local "note" and
8073 for return type.
8074 (rtl_split_block): Likewise for locals "insn" and "next".
8075 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8076 "end".
8077 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8078 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8079 "prev", "tmp".
8080 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8081 them), "kill_from", "barrier", "new_insn".
8082 (patch_jump_insn): Likewise for params "insn", "old_label".
8083 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8084 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8085 "old_label", "new_label".
8086 (rtl_tidy_fallthru_edge): Likewise for local "q".
8087 (rtl_split_edge): Likewise for locals "before", "last".
8088 (commit_one_edge_insertion): Likewise for locals "before",
8089 "after", "insns", "tmp", "last", adding a checked cast where
8090 currently necessary.
8091 (commit_edge_insertions): Likewise.
8092 (rtl_dump_bb): Likewise for locals "insn", "last".
8093 (print_rtl_with_bb): Likewise for local "x".
8094 (rtl_verify_bb_insns): Likewise for local "x".
8095 (rtl_verify_bb_pointers): Likewise for local "insn".
8096 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8097 "head", "end".
8098 (rtl_verify_fallthru): Likewise for local "insn".
8099 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8100 (purge_dead_edges): Likewise for local "insn".
8101 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8102 (skip_insns_after_block): Likewise for return type and for locals
8103 "insn", "last_insn", "next_head", "prev".
8104 (record_effective_endpoints): Likewise for locals "next_insn",
8105 "insn", "end".
8106 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8107 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8108 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8109 (duplicate_insn_chain): For now, add checked cast from rtx to
8110 rtx_insn * when returning insn.
8111 (cfg_layout_duplicate_bb): Likewise for local "insn".
8112 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8113 "prev", "remaints".
8114 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8115 (rtl_block_empty_p): Likewise.
8116 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8117 "split_point", "last".
8118 (rtl_block_ends_with_call_p): Likewise for local "insn".
8119 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8120 const rtx_insn *.
8121 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8122 "split_at_insn" from rtx to rtx_insn *.
8123 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8124 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8125 to const rtx_insn *.
8126 (rtl_account_profile_record): Likewise.
8127
8128 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8129
8130 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8131 rtx to rtx_insn *.
8132 (average_num_loop_insns): Likewise.
8133 (init_set_costs): Likewise for local "seq".
8134 (seq_cost): Likewise for param "seq", from const_rtx to const
8135 rtx_insn *.
8136
8137 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8138
8139 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8140 rtx to rtx_insn *.
8141
8142 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8143
8144 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8145 "f1" and "f2" from rtx * to rtx_insn **.
8146 (flow_find_head_matching_sequence): Likewise.
8147
8148 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8149 "cbranch_insn" from rtx to rtx_insn *.
8150 (thread_jump): Likewise for local "insn".
8151 (try_forward_edges): Likewise for local "last".
8152 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8153 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8154 "real_b_end".
8155 (can_replace_by): Likewise for params "i1", "i2".
8156 (old_insns_match_p): Likewise.
8157 (merge_notes): Likewise.
8158 (walk_to_nondebug_insn): Likewise for param "i1".
8159 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8160 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8161 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8162 (flow_find_head_matching_sequence): Strengthen params "f1" and
8163 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8164 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8165 rtx_insn *.
8166 (outgoing_edges_match): Likewise for locals "last1", "last2".
8167 (try_crossjump_to_edge): Likewise for local "insn".
8168 Replace call to for_each_rtx with for_each_rtx_in_insn.
8169
8170 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8171 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8172 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8173 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8174 (try_optimize_cfg): Strengthen local "last" from rtx to
8175 rtx_insn *.
8176 (delete_dead_jumptables): Likewise for locals "insn", "next",
8177 "label".
8178
8179 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8180 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8181 "rtx else_first_tail", to reflect the basic-block.h changes above.
8182
8183 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8184
8185 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8186 rtx_insn *.
8187 (purge_dead_tablejump_edges): Likewise.
8188 (find_bb_boundaries): Likewise for locals "insn", "end",
8189 "flow_transfer_insn".
8190
8191 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8192
8193 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8194 "ins" and "prev" from rtx to rtx_insn *.
8195
8196 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8197
8198 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8199 rtx_insn *.
8200 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8201 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8202 "scan_start".
8203 (load_register_parameters): Likewise for local "before_arg".
8204 (check_sibcall_argument_overlap): Likewise for param "insn".
8205 (expand_call): Likewise for locals "normal_call_insns",
8206 "tail_call_insns", "insns", "before_call", "after_args",
8207 "before_arg", "last", "prev". Strengthen one of the "last" from
8208 rtx to rtx_call_insn *.
8209 (fixup_tail_calls): Strengthen local "insn" from rtx to
8210 rtx_insn *.
8211 (emit_library_call_value_1): Likewise for locals "before_call" and
8212 "last".
8213
8214 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8215
8216 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8217 and "last" from rtx to rtx_insn *.
8218 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8219 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8220 rtx_call_insn *.
8221 (expand_errno_check): Strengthen local "lab" from rtx to
8222 rtx_code_label *.
8223 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8224 rtx_insn *.
8225 (expand_builtin_mathfn_2): Likewise.
8226 (expand_builtin_mathfn_ternary): Likewise.
8227 (expand_builtin_mathfn_3): Likewise.
8228 (expand_builtin_interclass_mathfn): Likewise for local "last".
8229 (expand_builtin_int_roundingfn): Likewise for local "insns".
8230 (expand_builtin_int_roundingfn_2): Likewise.
8231 (expand_builtin_strlen): Likewise for local "before_strlen".
8232 (expand_builtin_strncmp): Likewise for local "seq".
8233 (expand_builtin_signbit): Likewise for local "last".
8234 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8235 from rtx to rtx_code_label *.
8236 (expand_stack_restore): Strengthen local "prev" from rtx to
8237 rtx_insn *.
8238
8239 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8240
8241 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8242 to rtx_insn *.
8243 (struct btr_def_s): Likewise.
8244 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8245 const rtx_insn *.
8246 (add_btr_def): Likewise.
8247 (new_btr_user): Likewise.
8248 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8249 rtx to rtx_insn *.
8250 (link_btr_uses): Likewise.
8251 (move_btr_def): Likewise for locals "insp", "old_insn",
8252 "new_insn". Add checked cast to rtx_insn * for now on result of
8253 gen_move_insn.
8254 (can_move_up): Strengthen param "insn" from const_rtx to
8255 const rtx_insn *.
8256
8257 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8258
8259 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8260 rtx_insn *.
8261 (get_uncond_jump_length): Likewise for locals "label", "jump".
8262 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8263 "jump", "insn".
8264 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8265 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8266 (find_jump_block): Likewise for local "insn".
8267 (fix_crossing_conditional_branches): Likewise for locals
8268 "old_jump", "new_jump".
8269 (fix_crossing_unconditional_branches): Likewise for locals
8270 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8271 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8272
8273 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8274
8275 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8276 rtx to rtx_insn *.
8277 (struct mem_insn): Likewise for field "insn".
8278 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8279 (reg_next_inc_use): Likewise.
8280 (reg_next_def): Likewise.
8281 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8282 from rtx to rtx_insn *.
8283 (move_insn_before): Likewise for param "next_insn" and local "insns".
8284 (attempt_change): Likewise for local "mov_insn".
8285 (try_merge): Likewise for param "last_insn".
8286 (get_next_ref): Likewise for return type and local "insn".
8287 Strengthen param "next_array" from rtx * to rtx_insn **.
8288 (parse_add_or_inc): Strengthen param "insn" from rtx to
8289 rtx_insn *.
8290 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8291 the latter).
8292 (merge_in_block): Likewise for locals "insn", "curr",
8293 "other_insn".
8294 (pass_inc_dec::execute): Update allocations of the arrays to
8295 reflect the stronger types.
8296
8297 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8298
8299 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8300 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8301 from rtx to rtx_code_label *.
8302
8303 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8304
8305 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8306 to rtx_insn *.
8307
8308 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8309
8310 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8311 generated a warning and prevented bootstrapping the compiler.
8312
8313 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8314
8315 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8316 rtx_insn *.
8317
8318 * jump.c (delete_related_insns): Likewise, also for locals "next"
8319 and "prev".
8320
8321 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8322
8323 * genautomata.c (output_internal_insn_latency_func): When writing
8324 the function "internal_insn_latency" to insn-automata.c,
8325 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8326 allowing the optional guard function of (define_bypass) clauses to
8327 expect a pair of rtx_insn *, rather than a pair of rtx.
8328 (output_insn_latency_func): When writing the function
8329 "insn_latency", add an "uncast_" prefix to params "insn" and
8330 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8331 using checked casts from the params, thus enabling the above
8332 change to the generated "internal_insn_latency" function.
8333
8334 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8335
8336 PR tree-optimization/62091
8337 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8338 handle correctly arrays.
8339 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8340 inheritance binfos.
8341 (record_known_type): Walk into inner type.
8342 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8343 condition on no type changes.
8344
8345 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8346
8347 * genattrtab.c (write_attr_get): Within the generated get_attr_
8348 functions, rename param "insn" to "uncast_insn" and reintroduce
8349 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8350 is an rtx_insn * within insn-attrtab.c
8351
8352 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8353
8354 * output.h (peephole): Strengthen return type from rtx to
8355 rtx_insn *.
8356 * rtl.h (delete_for_peephole): Likewise for both params.
8357 * genpeep.c (main): In generated "peephole" function, strengthen
8358 return type and local "insn" from rtx to rtx_insn *. For now,
8359 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8360 rtx_insn *, with a checked cast.
8361 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8362 locals "insn", "next", "prev" from rtx to rtx_insn *.
8363
8364 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8365
8366 PR tree-optimization/62112
8367 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8368 * gimple-iterator.h (gsi_replace): Return bool.
8369 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8370 moved from ref_may_alias_global_p.
8371 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8372 New overloads.
8373 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8374 (stmt_kills_ref_p_1): Rename...
8375 (stmt_kills_ref_p): ... to this.
8376 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8377 stmt_kills_ref_p): Declare.
8378 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8379 Move the self-assignment case...
8380 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8381
8382 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8383
8384 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
8385
8386 * emit-rtl.c (try_split): Likewise, also for locals "before" and
8387 "after". For now, don't strengthen param "trial", which requires
8388 adding checked casts when returning it.
8389
8390 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8391
8392 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
8393 "label" from rtx to rtx_code_label *. Strengthen param 1 of
8394 "var_location" hook from rtx to rtx_insn *.
8395 (debug_nothing_rtx): Delete in favor of...
8396 (debug_nothing_rtx_code_label): New prototype.
8397 (debug_nothing_rtx_rtx): Delete unused prototype.
8398 (debug_nothing_rtx_insn): New prototype.
8399
8400 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
8401 invoking debug_hooks->var_location (in two places, one in a NOTE
8402 case of a switch statement, the other guarded by a CALL_P
8403 conditional. Add checked cast to rtx_code_label * when invoking
8404 debug_hooks->label (within CODE_LABEL case of switch statement).
8405
8406 * dbxout.c (dbx_debug_hooks): Update "label" hook from
8407 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8408 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
8409 (xcoff_debug_hooks): Likewise.
8410 * debug.c (do_nothing_debug_hooks): Likewise.
8411 (debug_nothing_rtx): Delete in favor of...
8412 (debug_nothing_rtx_insn): New function.
8413 (debug_nothing_rtx_rtx): Delete unused function.
8414 (debug_nothing_rtx_code_label): New function.
8415 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
8416 debug_nothing_rtx to debug_nothing_rtx_code_label.
8417 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
8418 to rtx_insn *.
8419 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
8420 debug_nothing_rtx to debug_nothing_rtx_insn.
8421 (sdbout_label): Strengthen param "insn" from rtx to
8422 rtx_code_label *.
8423 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
8424 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
8425 "var_location" hook from debug_nothing_rtx to
8426 debug_nothing_rtx_insn.
8427
8428 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8429
8430 * recog.h (insn_output_fn): Update this function typedef to match
8431 the changes below to the generated output functions, strengthening
8432 the 2nd param from rtx to rtx_insn *.
8433
8434 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
8435 insn when invoking an output function, to match the new signature
8436 of insn_output_fn with a stronger second param.
8437
8438 * genconditions.c (write_header): In the generated code for
8439 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
8440 to match the other changes in this patch.
8441
8442 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
8443 the generated "gen_" functions from rtx to rtx_insn * within their
8444 implementations.
8445
8446 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
8447 the subfunctions within the generated "recog_", "split", "peephole2"
8448 function trees from rtx to rtx_insn *. For now, the top-level
8449 generated functions ("recog", "split", "peephole2") continue to
8450 take a plain rtx for "insn", to avoid introducing dependencies on
8451 other patches. Rename this 2nd param from "insn" to
8452 "uncast_insn", and reintroduce "insn" as a local variable of type
8453 rtx_insn *, initialized at the top of the generated function with
8454 a checked cast on "uncast_insn".
8455 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
8456 the generated "gen_" functions from rtx to rtx_insn * within their
8457 prototypes.
8458
8459 * genoutput.c (process_template): Strengthen the 2nd param within
8460 the generated "output_" functions "insn" from rtx to rtx_insn *.
8461
8462 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8463
8464 * tree-profile.c (tree_profiling): Skip external functions
8465 when doing coverage instrumentation.
8466 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
8467
8468 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8469
8470 * config/rs6000/altivec.h (vec_cpsgn): New #define.
8471 (vec_mergee): Likewise.
8472 (vec_mergeo): Likewise.
8473 (vec_cntlz): Likewise.
8474 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
8475 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
8476 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
8477 VMRGEW, and VMRGOW.
8478 * doc/extend.texi: Document various forms of vec_cpsgn,
8479 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
8480 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
8481 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
8482 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
8483 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
8484
8485 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8486
8487 * config/rs6000/rs6000.c (context.h): New include.
8488 (tree-pass.h): Likewise.
8489 (make_pass_analyze_swaps): New decl.
8490 (rs6000_option_override): Register pass_analyze_swaps.
8491 (swap_web_entry): New subsclass of web_entry_base (df.h).
8492 (special_handling_values): New enum.
8493 (union_defs): New function.
8494 (union_uses): Likewise.
8495 (insn_is_load_p): Likewise.
8496 (insn_is_store_p): Likewise.
8497 (insn_is_swap_p): Likewise.
8498 (rtx_is_swappable_p): Likewise.
8499 (insn_is_swappable_p): Likewise.
8500 (chain_purpose): New enum.
8501 (chain_contains_only_swaps): New function.
8502 (mark_swaps_for_removal): Likewise.
8503 (swap_const_vector_halves): Likewise.
8504 (adjust_subreg_index): Likewise.
8505 (permute_load): Likewise.
8506 (permute_store): Likewise.
8507 (handle_special_swappables): Likewise.
8508 (replace_swap_with_copy): Likewise.
8509 (dump_swap_insn_table): Likewise.
8510 (rs6000_analyze_swaps): Likewise.
8511 (pass_data_analyze_swaps): New pass_data.
8512 (pass_analyze_swaps): New rtl_opt_pass.
8513 (make_pass_analyze_swaps): New function.
8514 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8515
8516 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8517
8518 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8519 type from rtx to rtx_insn *.
8520 (create_copy_of_insn_rtx): Likewise.
8521 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8522 (create_copy_of_insn_rtx): Likewise, also for local "res".
8523
8524 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8525
8526 * rtl.h (find_first_parameter_load): Strengthen return type from
8527 rtx to rtx_insn *.
8528 * rtlanal.c (find_first_parameter_load): Strengthen return type
8529 from rtx to rtx_insn *. Add checked cast for now, to postpone
8530 strengthening the params.
8531
8532 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8533
8534 PR fortran/44054
8535 * diagnostic.c: Set default caret.
8536 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8537 line is needed.
8538 * diagnostic.h (struct diagnostic_context):
8539
8540 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8541
8542 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8543 (sel_bb_head): Strengthen return type insn_t (currently just an
8544 rtx) to rtx_insn *.
8545 (sel_bb_end): Likewise.
8546
8547 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8548 (sel_bb_head): Strengthen return type and local "head" from
8549 insn_t (currently just an rtx) to rtx_insn *.
8550 (sel_bb_end): Likewise for return type.
8551 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8552 working with insn.
8553
8554 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8555
8556 * basic-block.h (get_last_bb_insn): Strengthen return type from
8557 rtx to rtx_insn *.
8558 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8559 end".
8560
8561 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8562
8563 PR fortran/44054
8564 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8565 to here ...
8566 (diagnostic_report_diagnostic): ... from here.
8567 * toplev.c (general_init): Move code to c-family.
8568
8569 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8570
8571 * df.h (web_entry_base): Replace existing struct web_entry with a
8572 new class web_entry_base with only the predecessor member.
8573 (unionfind_root): Remove declaration and move to class member.
8574 (unionfind_union): Remove declaration and move to friend
8575 function.
8576 (union_defs): Remove declaration.
8577 * web.c (web_entry_base::unionfind_root): Modify to be member
8578 function and adjust accessors.
8579 (unionfind_union): Modify to be friend function and adjust
8580 accessors.
8581 (web_entry): New subclass of web_entry_base containing the reg
8582 member.
8583 (union_match_dups): Modify for struct -> class changes.
8584 (union_defs): Likewise.
8585 (entry_register): Likewise.
8586 (pass_web::execute): Likewise.
8587
8588 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
8589
8590 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8591 builtin define __VEC_ELEMENT_REG_ORDER__.
8592
8593 2014-08-20 Martin Jambor <mjambor@suse.cz>
8594 Wei Mi <wmi@google.com>
8595
8596 PR ipa/60449
8597 PR middle-end/61776
8598 * tree-ssa-operands.c (update_stmt_operands): Remove
8599 MODIFIED_NORETURN_CALLS.
8600 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8601 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8602 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8603 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8604 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8605 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8606 (gimple_call_set_ctrl_altering): New func.
8607 (gimple_call_ctrl_altering_p): Ditto.
8608 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8609 (make_blocks): Use gimple_call_initialize_ctrl_altering.
8610 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8611 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8612 remove MODIFIED_NORETURN_CALLS.
8613
8614 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8615
8616 * coverage.c (coverage_compute_profile_id): Return non-0;
8617 also handle symbols with unique name.
8618 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8619
8620 2014-08-20 Steve Ellcey <sellcey@mips.com>
8621
8622 PR middle-end/49191
8623 * doc/sourcebuild.texi (non_strict_align): New.
8624
8625 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8626
8627 * cgraphunit.c (ipa_passes, compile): Reshedule
8628 symtab_remove_unreachable_nodes passes; update comments.
8629 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8630 TODO_remove_functions before the pass; the functions ought to be
8631 already removed.
8632 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8633 TODO_remove_functions.
8634 * passes.c (pass_data_early_local_passes): Do not schedule function
8635 removal.
8636 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8637
8638 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8639
8640 PR c/59304
8641 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8642 before setting the option.
8643 * diagnostic.c (diagnostic_classify_diagnostic): Record
8644 command-line status.
8645
8646 2014-08-20 Richard Biener <rguenther@suse.de>
8647
8648 PR lto/62190
8649 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8650 to build uint{16,32,64}_type_node.
8651
8652 2014-08-20 Terry Guo <terry.guo@arm.com>
8653
8654 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8655 with immediate_operand.
8656
8657 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8658
8659 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8660 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8661 NULL.
8662
8663 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8664
8665 PR preprocessor/51303
8666 * incpath.c (remove_duplicates): Use cpp_warning.
8667
8668 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8669
8670 PR c/60975
8671 PR c/53063
8672 * doc/options.texi (CPP): Document it.
8673 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8674 * optc-gen.awk: Handle CPP.
8675 * opth-gen.awk: Likewise.
8676
8677 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8678
8679 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8680 rtx_insn *.
8681 (duplicate_insn_chain): Likewise.
8682 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8683 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8684 checked cast for now (until we can strengthen the params in the
8685 same way).
8686 (duplicate_insn_chain): Likewise.
8687
8688 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8689
8690 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8691 rtx_insn *.
8692 (prev_cc0_setter): Likewise.
8693
8694 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8695 rtx_insn *, adding checked casts for now as necessary.
8696 (prev_cc0_setter): Likewise.
8697
8698 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8699
8700 * expr.h (emit_move_insn): Strengthen return type from rtx to
8701 rtx_insn *.
8702 (emit_move_insn_1): Likewise.
8703 (emit_move_complex_push): Likewise.
8704 (emit_move_complex_parts): Likewise.
8705
8706 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8707 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8708 with insns.
8709 (emit_move_complex_push): Strengthen return type from rtx to
8710 rtx_insn *.
8711 (emit_move_complex): Likewise, also for local "ret".
8712 (emit_move_ccmode): Likewise.
8713 (emit_move_multi_word): Likewise for return type and locals
8714 "last_insn", "seq".
8715 (emit_move_insn_1): Likewise for return type and locals "result",
8716 "ret".
8717 (emit_move_insn): Likewise for return type and local "last_insn".
8718 (compress_float_constant): Likewise.
8719
8720 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8721
8722 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8723 from rtx to rtx_insn *.
8724
8725 * rtl.h (emit_insn_before): Likewise.
8726 (emit_insn_before_noloc): Likewise.
8727 (emit_insn_before_setloc): Likewise.
8728 (emit_jump_insn_before): Likewise.
8729 (emit_jump_insn_before_noloc): Likewise.
8730 (emit_jump_insn_before_setloc): Likewise.
8731 (emit_call_insn_before): Likewise.
8732 (emit_call_insn_before_noloc): Likewise.
8733 (emit_call_insn_before_setloc): Likewise.
8734 (emit_debug_insn_before): Likewise.
8735 (emit_debug_insn_before_noloc): Likewise.
8736 (emit_debug_insn_before_setloc): Likewise.
8737 (emit_label_before): Likewise.
8738 (emit_insn_after): Likewise.
8739 (emit_insn_after_noloc): Likewise.
8740 (emit_insn_after_setloc): Likewise.
8741 (emit_jump_insn_after): Likewise.
8742 (emit_jump_insn_after_noloc): Likewise.
8743 (emit_jump_insn_after_setloc): Likewise.
8744 (emit_call_insn_after): Likewise.
8745 (emit_call_insn_after_noloc): Likewise.
8746 (emit_call_insn_after_setloc): Likewise.
8747 (emit_debug_insn_after): Likewise.
8748 (emit_debug_insn_after_noloc): Likewise.
8749 (emit_debug_insn_after_setloc): Likewise.
8750 (emit_label_after): Likewise.
8751 (emit_insn): Likewise.
8752 (emit_debug_insn): Likewise.
8753 (emit_jump_insn): Likewise.
8754 (emit_call_insn): Likewise.
8755 (emit_label): Likewise.
8756 (gen_clobber): Likewise.
8757 (emit_clobber): Likewise.
8758 (gen_use): Likewise.
8759 (emit_use): Likewise.
8760 (emit): Likewise.
8761
8762 (emit_barrier_before): Strengthen return type from rtx to
8763 rtx_barrier *.
8764 (emit_barrier_after): Likewise.
8765 (emit_barrier): Likewise.
8766
8767 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8768 from rtx to rtx_insn *. Add checked casts for now when converting
8769 "last" from rtx to rtx_insn *.
8770 (emit_insn_before_noloc): Likewise for return type.
8771 (emit_jump_insn_before_noloc): Likewise.
8772 (emit_call_insn_before_noloc): Likewise.
8773 (emit_debug_insn_before_noloc): Likewise.
8774 (emit_barrier_before): Strengthen return type and local "insn"
8775 from rtx to rtx_barrier *.
8776 (emit_label_before): Strengthen return type from rtx to
8777 rtx_insn *. Add checked cast for now when returning param
8778 (emit_pattern_after_noloc): Strengthen return type from rtx to
8779 rtx_insn *. Add checked casts for now when converting "last" from
8780 rtx to rtx_insn *.
8781 (emit_insn_after_noloc): Strengthen return type from rtx to
8782 rtx_insn *.
8783 (emit_jump_insn_after_noloc): Likewise.
8784 (emit_call_insn_after_noloc): Likewise.
8785 (emit_debug_insn_after_noloc): Likewise.
8786 (emit_barrier_after): Strengthen return type from rtx to
8787 rtx_barrier *.
8788 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8789 Add checked cast for now when converting "label" from rtx to
8790 rtx_insn *.
8791 (emit_pattern_after_setloc): Strengthen return type from rtx to
8792 rtx_insn *. Add checked casts for now when converting "last" from
8793 rtx to rtx_insn *.
8794 (emit_pattern_after): Strengthen return type from rtx to
8795 rtx_insn *.
8796 (emit_insn_after_setloc): Likewise.
8797 (emit_insn_after): Likewise.
8798 (emit_jump_insn_after_setloc): Likewise.
8799 (emit_jump_insn_after): Likewise.
8800 (emit_call_insn_after_setloc): Likewise.
8801 (emit_call_insn_after): Likewise.
8802 (emit_debug_insn_after_setloc): Likewise.
8803 (emit_debug_insn_after): Likewise.
8804 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8805 when converting "last" from rtx to rtx_insn *.
8806 (emit_pattern_before): Strengthen return type from rtx to
8807 rtx_insn *.
8808 (emit_insn_before_setloc): Likewise.
8809 (emit_insn_before): Likewise.
8810 (emit_jump_insn_before_setloc): Likewise.
8811 (emit_jump_insn_before): Likewise.
8812 (emit_call_insn_before_setloc): Likewise.
8813 (emit_call_insn_before): Likewise.
8814 (emit_debug_insn_before_setloc): Likewise.
8815 (emit_debug_insn_before): Likewise.
8816 (emit_insn): Strengthen return type and locals "last", "insn",
8817 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8818 within cases where we know we have an insn.
8819 (emit_debug_insn): Likewise.
8820 (emit_jump_insn): Likewise.
8821 (emit_call_insn): Strengthen return type and local "insn" from rtx
8822 to rtx_insn *.
8823 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8824 a checked cast to rtx_insn * for now on "label".
8825 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8826 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8827 (emit_use): Likewise.
8828 (gen_use): Likewise, also for local "seq".
8829 (emit): Likewise for return type and local "insn".
8830 (rtx_insn): Likewise for return type and local "new_rtx".
8831
8832 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8833 from rtx to rtx_barrier *.
8834
8835 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8836 changed return type from rtx to rtx_insn *, we must update
8837 "emit_fn" type, and this in turn means updating...
8838 (frame_insn): ...this. Strengthen return type from rtx to
8839 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8840
8841 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8842
8843 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8844 rtx to rtx_jump_table_data *. Also for local.
8845 * rtl.h (emit_jump_table_data): Likewise.
8846
8847 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8848
8849 * basic-block.h (create_basic_block_structure): Strengthen third
8850 param "bb_note" from rtx to rtx_note *.
8851 * rtl.h (emit_note_before): Strengthen return type from rtx to
8852 rtx_note *.
8853 (emit_note_after): Likewise.
8854 (emit_note): Likewise.
8855 (emit_note_copy): Likewise. Also, strengthen param similarly.
8856 * function.h (struct rtl_data): Strengthen field
8857 "x_stack_check_probe_note" from rtx to rtx_note *.
8858
8859 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
8860 from rtx to rtx_note *.
8861 * cfgrtl.c (create_basic_block_structure): Strengthen third param
8862 "bb_note" from rtx to rtx_note *.
8863 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
8864 when calling emit_note_copy.
8865 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
8866 rtx_note *.
8867 (emit_note_after): Likewise.
8868 (emit_note_before): Likewise.
8869 (emit_note_copy): Likewise. Also, strengthen param similarly.
8870 (emit_note): Likewise.
8871 * except.c (emit_note_eh_region_end): Likewise for return type.
8872 Strengthen local "next" from rtx to rtx_insn *.
8873 (convert_to_eh_region_ranges): Strengthen local "note"
8874 from rtx to rtx_note *.
8875 * final.c (change_scope): Likewise.
8876 (reemit_insn_block_notes): Likewise, for both locals named "note".
8877 Also, strengthen local "insn" from rtx to rtx_insn *.
8878 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
8879 rtx to rtx_note *.
8880 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
8881 strengthen local "seq" from rtx to rtx_insn *.
8882 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
8883 to rtx_note *.
8884 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
8885 vec<rtx_note *>.
8886 (get_bb_note_from_pool): Strengthen return type from rtx to
8887 rtx_note *.
8888 (sel_create_basic_block): Strengthen local "new_bb_note" from
8889 insn_t to rtx_note *.
8890 * var-tracking.c (emit_note_insn_var_location): Strengthen local
8891 "note" from rtx to rtx_note *.
8892 (emit_notes_in_bb): Likewise.
8893
8894 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8895
8896 * function.h (struct rtl_data): Strengthen field
8897 "x_parm_birth_insn" from rtx to rtx_insn *.
8898 * function.c (struct assign_parm_data_all): Strengthen fields
8899 "first_conversion_insn" and "last_conversion_insn" from rtx to
8900 rtx_insn *.
8901
8902 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8903
8904 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
8905 to rtx_insn *; also for local "var_end_seq".
8906 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
8907 (maybe_cleanup_end_of_block): Likewise for param "last" and local
8908 "insn".
8909 (expand_gimple_cond): Likewise for locals "last2" and "last".
8910 (mark_transaction_restart_calls): Likewise for local "insn".
8911 (expand_gimple_stmt): Likewise for return type and locals "last"
8912 and "insn".
8913 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
8914 (avoid_complex_debug_insns): Likewise for param "insn".
8915 (expand_debug_locations): Likewise for locals "insn", "last",
8916 "prev_insn" and "insn2".
8917 (expand_gimple_basic_block): Likewise for local "last".
8918 (construct_exit_block): Likewise for locals "head", "end",
8919 "orig_end".
8920 (pass_expand::execute): Likewise for locals "var_seq",
8921 "var_ret_seq", "next".
8922
8923 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8924
8925 * asan.h (asan_emit_stack_protection): Strengthen return type from
8926 rtx to rtx_insn *.
8927 * asan.c (asan_emit_stack_protection): Likewise. Add local
8928 "insns" to hold the return value.
8929
8930 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8931
8932 * basic-block.h (bb_note): Strengthen return type from rtx to
8933 rtx_note *.
8934 * sched-int.h (bb_note): Likewise.
8935 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
8936
8937 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8938
8939 * rtl.h (make_insn_raw): Strengthen return type from rtx to
8940 rtx_insn *.
8941
8942 * emit-rtl.c (make_insn_raw): Strengthen return type and local
8943 "insn" from rtx to rtx_insn *.
8944 (make_debug_insn_raw): Strengthen return type from rtx to
8945 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
8946 (make_jump_insn_raw): Strengthen return type from rtx to
8947 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
8948 (make_call_insn_raw): Strengthen return type from rtx to
8949 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
8950 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
8951 callback from rtx to rtx_insn *; likewise for local "insn" and
8952 "next", adding a checked cast to rtx_insn in the relevant cases of
8953 the switch statement.
8954 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
8955 callback from rtx to rtx_insn *.
8956 (emit_pattern_after_setloc): Likewise.
8957 (emit_pattern_after): Likewise.
8958 (emit_pattern_before_setloc): Likewise.
8959 (emit_pattern_before): Likewise.
8960
8961 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8962
8963 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
8964 rtx_call_insn *.
8965 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
8966 accepting an rtx_insn *.
8967 (last_call_insn): Strengthen return type from rtx to
8968 rtx_call_insn *.
8969
8970 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8971
8972 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
8973 "insns" from rtx to rtx_insn *.
8974 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
8975 locals "insn" and "prev".
8976
8977 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8978
8979 * rtl.h (tablejump_p): Strengthen third param from rtx * to
8980 rtx_jump_table_data **.
8981
8982 * cfgbuild.c (make_edges): Introduce local "table", using it in
8983 place of "tmp" for jump table data.
8984 (find_bb_boundaries): Strengthen local "table" from rtx to
8985 rtx_jump_table_data *.
8986 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8987 (outgoing_edges_match): Likewise for locals "table1" and "table2".
8988 (try_crossjump_to_edge): Likewise.
8989 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
8990 "table".
8991 (patch_jump_insn): Introduce local "table", using it in place of
8992 "tmp" for jump table data.
8993 (force_nonfallthru_and_redirect): Introduce local "table", so that
8994 call to tablejump_p can receive an rtx_jump_table_data **. Update
8995 logic around the call to overwrite "note" appropriately if
8996 tablejump_p returns non-zero.
8997 (get_last_bb_insn): Introduce local "table", using it in place of
8998 "tmp" for jump table data.
8999 * dwarf2cfi.c (create_trace_edges): Likewise.
9000
9001 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9002 from rtx to rtx_jump_table_data *.
9003 (create_fix_barrier): Strengthen local "tmp" from rtx to
9004 rtx_jump_table_data *.
9005 (arm_reorg): Likewise for local "table".
9006
9007 * config/s390/s390.c (s390_chunkify_start): Likewise.
9008
9009 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9010
9011 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9012 rtx to rtx_jump_table_data *.
9013
9014 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9015 rtx_jump_table_data **. Add a checked cast when writing through
9016 the pointer: we know there that local "table" is non-NULL and that
9017 JUMP_TABLE_DATA_P (table) holds.
9018 (label_is_jump_target_p): Introduce local "table", using it in
9019 place of "tmp" for jump table data.
9020
9021 2014-08-19 Marek Polacek <polacek@redhat.com>
9022
9023 PR c++/62153
9024 * doc/invoke.texi: Document -Wbool-compare.
9025
9026 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9027
9028 * rtl.h (entry_of_function): Strengthen return type from rtx to
9029 rtx_insn *.
9030 * cfgrtl.c (entry_of_function): Likewise.
9031
9032 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9033
9034 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9035 rtx_insn *, adding a checked cast for now.
9036 (get_last_insn): Likewise.
9037
9038 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9039
9040 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9041 rtx_code_label *.
9042
9043 * emit-rtl.c (gen_label_rtx): Likewise.
9044
9045 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9046
9047 * rtl.h (previous_insn): Strengthen return type from rtx to
9048 rtx_insn *.
9049 (next_insn): Likewise.
9050 (prev_nonnote_insn): Likewise.
9051 (prev_nonnote_insn_bb): Likewise.
9052 (next_nonnote_insn): Likewise.
9053 (next_nonnote_insn_bb): Likewise.
9054 (prev_nondebug_insn): Likewise.
9055 (next_nondebug_insn): Likewise.
9056 (prev_nonnote_nondebug_insn): Likewise.
9057 (next_nonnote_nondebug_insn): Likewise.
9058 (prev_real_insn): Likewise.
9059 (next_real_insn): Likewise.
9060 (prev_active_insn): Likewise.
9061 (next_active_insn): Likewise.
9062
9063 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9064 rtx_insn *, adding a checked cast.
9065 (previous_insn): Likewise.
9066 (next_nonnote_insn): Likewise.
9067 (next_nonnote_insn_bb): Likewise.
9068 (prev_nonnote_insn): Likewise.
9069 (prev_nonnote_insn_bb): Likewise.
9070 (next_nondebug_insn): Likewise.
9071 (prev_nondebug_insn): Likewise.
9072 (next_nonnote_nondebug_insn): Likewise.
9073 (prev_nonnote_nondebug_insn): Likewise.
9074 (next_real_insn): Likewise.
9075 (prev_real_insn): Likewise.
9076 (next_active_insn): Likewise.
9077 (prev_active_insn): Likewise.
9078
9079 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9080 param "stepfunc" so that it returns an rtx_insn * rather than an
9081 rtx, to track the change to prev_nonnote_insn_bb, which is the
9082 only function this is called with.
9083 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9084
9085 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9086
9087 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9088 assert.
9089
9090 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9091
9092 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9093 (class rtx_nonjump_insn): Likewise.
9094 (class rtx_jump_insn): Likewise.
9095 (class rtx_call_insn): Likewise.
9096 (class rtx_jump_table_data): Likewise.
9097 (class rtx_barrier): Likewise.
9098 (class rtx_code_label): Likewise.
9099 (class rtx_note): Likewise.
9100
9101 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9102 adding the invariant DEBUG_INSN_P (X).
9103 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9104 the invariant NONJUMP_INSN_P (X).
9105 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9106 the invariant JUMP_P (X).
9107 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9108 the invariant CALL_P (X).
9109 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9110 invariant JUMP_TABLE_DATA_P (X).
9111 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9112 invariant BARRIER_P (X).
9113 (class rtx_code_label): New, a subclass of rtx_insn, adding
9114 the invariant LABEL_P (X).
9115 (class rtx_note): New, a subclass of rtx_insn, adding
9116 the invariant NOTE_P(X).
9117 (is_a_helper <rtx_debug_insn *>::test): New.
9118 (is_a_helper <rtx_nonjump_insn *>::test): New.
9119 (is_a_helper <rtx_jump_insn *>::test): New.
9120 (is_a_helper <rtx_call_insn *>::test): New.
9121 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9122 overloaded for both rtx and rtx_insn *.
9123 (is_a_helper <rtx_barrier *>::test): New.
9124 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9125 for both rtx and rtx_insn *.
9126 (is_a_helper <rtx_note *>::test): New.
9127
9128 2014-08-19 Marek Polacek <polacek@redhat.com>
9129
9130 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9131 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9132 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9133 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9134
9135 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9136
9137 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9138 rtx_insn *. To help with transition, for now, convert from an
9139 access macro into a pair of functions: BND_TO, returning an
9140 rtx_insn *, and...
9141 (SET_BND_TO): New function, for use where BND_TO is used as an
9142 lvalue.
9143
9144 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9145 SET_BND_TO.
9146 (BND_TO): New function, adding a checked cast.
9147 (SET_BND_TO): New function.
9148
9149 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9150 SET_BND_TO.
9151 (compute_av_set_on_boundaries): Likewise.
9152
9153 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9154
9155 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9156 destination if it is used in source.
9157 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9158 (*popcount<mode>2_falsedep_1): Likewise.
9159
9160 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9161
9162 PR other/62168
9163 * configure.ac: Set install_gold_as_default to no first.
9164 * configure: Regenerated.
9165
9166 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9167
9168 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9169 "note_list" field will eventually be an rtx_insn *. To help with
9170 transition, for now, convert from an access macro into a pair of
9171 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9172 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9173 used as an lvalue.
9174
9175 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9176 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9177
9178 * sel-sched-ir.c (init_bb): Likewise.
9179 (sel_restore_notes): Likewise.
9180 (move_bb_info): Likewise.
9181 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9182 (SET_BB_NOTE_LIST): New function.
9183
9184 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9185
9186 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9187 field will eventually be an rtx_insn *. To help with transition,
9188 for now, convert from an access macro into a pair of functions:
9189 VINSN_INSN_RTX, returning an rtx_insn *, and...
9190 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9191 is used as an lvalue.
9192
9193 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9194 SET_VINSN_INSN_RTX where it's used as an lvalue.
9195 (VINSN_INSN_RTX): New function.
9196 (SET_VINSN_INSN_RTX): New function.
9197
9198 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9199
9200 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9201 eventually be rtx_insn *, but to help with transition, for now,
9202 convert from an access macro into a pair of functions: DEP_PRO
9203 returning an rtx_insn * and...
9204 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9205 lvalue, returning an rtx&.
9206 (DEP_CON): Analogous changes to DEP_PRO above.
9207 (SET_DEP_CON): Likewise.
9208
9209 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9210 an lvalue to SET_DEP_CON.
9211 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9212 (sd_copy_back_deps): Likewise for DEP_CON.
9213 (DEP_PRO): New function, adding a checked cast for now.
9214 (DEP_CON): Likewise.
9215 (SET_DEP_PRO): New function.
9216 (SET_DEP_CON): Likewise.
9217
9218 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9219
9220 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9221 (extra_options): Add i386/cygwin.opt.
9222 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9223 (CPP_SPEC): Accept -pthread.
9224 (LINK_SPEC): Ditto.
9225 (GOMP_SELF_SPECS): Update comment.
9226 * config/i386/cygwin.opt: New file for -pthread flag.
9227
9228 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9229
9230 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9231 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9232 that we can return an rtx_insn *.
9233
9234 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9235
9236 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9237 when building executables, not DLLs. Add --large-address-aware
9238 under the same conditions.
9239 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9240 when building executables, not DLLs. Add --large-address-aware
9241 under the same conditions when using -m32.
9242
9243 * config/i386/cygwin-stdint.h: Throughout, make type
9244 definitions dependent on target architecture, not host.
9245
9246 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9247
9248 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9249 the return type from rtx to rtx_insn *, which will enable various
9250 conversions in followup patches. For now this is is done by a
9251 checked cast.
9252 (NEXT_INSN): Likewise.
9253 (SET_PREV_INSN): Convert to an inline function. This is intended
9254 for use as an lvalue, and so returns an rtx& to allow in-place
9255 modification.
9256 (SET_NEXT_INSN): Likewise.
9257
9258 2014-07-08 Mark Wielaard <mjw@redhat.com>
9259
9260 PR debug/59051
9261 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9262
9263 2014-08-19 Marek Polacek <polacek@redhat.com>
9264
9265 PR c/61271
9266 * cgraphunit.c (handle_alias_pairs): Fix condition.
9267
9268 2014-08-19 Richard Biener <rguenther@suse.de>
9269
9270 * gimple-fold.c (fold_gimple_assign): Properly build a
9271 null-pointer constant when devirtualizing addresses.
9272
9273 2014-07-07 Mark Wielaard <mjw@redhat.com>
9274
9275 * dwarf2out.c (decl_quals): New function.
9276 (modified_type_die): Take one cv_quals argument instead of two,
9277 one for const and one for volatile.
9278 (add_type_attribute): Likewise.
9279 (generic_parameter_die): Call add_type_attribute with one modifier
9280 argument.
9281 (base_type_for_mode): Likewise.
9282 (add_bounds_info): Likewise.
9283 (add_subscript_info): Likewise.
9284 (gen_array_type_die): Likewise.
9285 (gen_descr_array_type_die): Likewise.
9286 (gen_entry_point_die): Likewise.
9287 (gen_enumeration_type_die): Likewise.
9288 (gen_formal_parameter_die): Likewise.
9289 (gen_subprogram_die): Likewise.
9290 (gen_variable_die): Likewise.
9291 (gen_const_die): Likewise.
9292 (gen_field_die): Likewise.
9293 (gen_pointer_type_die): Likewise.
9294 (gen_reference_type_die): Likewise.
9295 (gen_ptr_to_mbr_type_die): Likewise.
9296 (gen_inheritance_die): Likewise.
9297 (gen_subroutine_type_die): Likewise.
9298 (gen_typedef_die): Likewise.
9299 (force_type_die): Likewise.
9300
9301 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9302
9303 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9304 if unset.
9305 * configure: Regenerate.
9306
9307 2014-08-19 Richard Biener <rguenther@suse.de>
9308
9309 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9310 DECL_EXTERNALs in BLOCKs as non-references.
9311 * tree-streamer-out.c (streamer_write_chain): Likewise.
9312
9313 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9314 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9315 Anna Tikhonova <anna.tikhonova@intel.com>
9316 Ilya Tocar <ilya.tocar@intel.com>
9317 Andrey Turetskiy <andrey.turetskiy@intel.com>
9318 Ilya Verbin <ilya.verbin@intel.com>
9319 Kirill Yukhin <kirill.yukhin@intel.com>
9320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9321
9322 * config/i386/sse.md
9323 (define_mode_iterator VI48_AVX512F): Delete.
9324 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9325 (define_mode_iterator VI2_AVX512VL): Ditto.
9326 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9327 Delete.
9328 (define_insn
9329 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9330 New.
9331 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9332 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9333 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9334 with VI48_AVX512F_AVX512VL): New.
9335 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9336 with VI2_AVX512VL): Ditto.
9337
9338 2014-08-19 Marek Polacek <polacek@redhat.com>
9339
9340 * doc/invoke.texi: Document -Wc99-c11-compat.
9341
9342 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9343
9344 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9345 for rvalues, and...
9346 (SET_PREV_INSN): New macro, for use as an lvalue.
9347 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9348
9349 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9350 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9351 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9352 (fixup_abnormal_edges): Likewise.
9353 (unlink_insn_chain): Likewise.
9354 (fixup_reorder_chain): Likewise.
9355 (cfg_layout_delete_block): Likewise.
9356 (cfg_layout_merge_blocks): Likewise.
9357 * combine.c (update_cfg_for_uncondjump): Likewise.
9358 * emit-rtl.c (link_insn_into_chain): Likewise.
9359 (remove_insn): Likewise.
9360 (delete_insns_since): Likewise.
9361 (reorder_insns_nobb): Likewise.
9362 (emit_insn_after_1): Likewise.
9363 * final.c (rest_of_clean_state): Likewise.
9364 (final_scan_insn): Likewise.
9365 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9366 * haifa-sched.c (concat_note_lists): Likewise.
9367 (remove_notes): Likewise.
9368 (restore_other_notes): Likewise.
9369 (move_insn): Likewise.
9370 (unlink_bb_notes): Likewise.
9371 (restore_bb_notes): Likewise.
9372 * jump.c (delete_for_peephole): Likewise.
9373 * optabs.c (emit_libcall_block_1): Likewise.
9374 * reorg.c (emit_delay_sequence): Likewise.
9375 (fill_simple_delay_slots): Likewise.
9376 * sel-sched-ir.c (sel_move_insn): Likewise.
9377 (sel_remove_insn): Likewise.
9378 (get_bb_note_from_pool): Likewise.
9379 * sel-sched.c (move_nop_to_previous_block): Likewise.
9380
9381 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9382 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9383 (c6x_gen_bundles): Likewise.
9384 (hwloop_optimize): Likewise.
9385 * config/frv/frv.c (frv_function_prologue): Likewise.
9386 (frv_register_nop): Likewise.
9387 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
9388 (ia64_reorg): Likewise.
9389 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
9390 (mep_make_bundle): Likewise.
9391 (mep_bundle_insns): Likewise.
9392 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
9393 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
9394 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
9395
9396 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9397
9398 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
9399 return type from rtx to rtx_insn *.
9400 (BB_END): Likewise.
9401 (BB_HEADER): Likewise.
9402 (BB_FOOTER): Likewise.
9403 (SET_BB_HEAD): Convert to a function.
9404 (SET_BB_END): Likewise.
9405 (SET_BB_HEADER): Likewise.
9406 (SET_BB_FOOTER): Likewise.
9407
9408 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
9409 Strengthen the return type from rtx to rtx_insn *. For now, this
9410 is done by adding a checked cast, but this will eventually
9411 become a field lookup.
9412 (BB_END): Likewise.
9413 (BB_HEADER): Likewise.
9414 (BB_FOOTER): Likewise.
9415 (SET_BB_HEAD): New function, from macro of same name. This is
9416 intended for use as an lvalue, and so returns an rtx& to allow
9417 in-place modification.
9418 (SET_BB_END): Likewise.
9419 (SET_BB_HEADER): Likewise.
9420 (SET_BB_FOOTER): Likewise.
9421
9422 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9423
9424 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
9425 for rvalues, and...
9426 (SET_BB_HEAD): New macro, for use as a lvalue.
9427 (BB_END, SET_BB_END): Likewise.
9428 (BB_HEADER, SET_BB_HEADER): Likewise.
9429 (BB_FOOTER, SET_BB_FOOTER): Likewise.
9430
9431 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
9432 of BB_* macros into SET_BB_* macros.
9433 (fix_crossing_unconditional_branches): Likewise.
9434 * caller-save.c (save_call_clobbered_regs): Likewise.
9435 (insert_one_insn): Likewise.
9436 * cfgbuild.c (find_bb_boundaries): Likewise.
9437 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9438 (outgoing_edges_match): Likewise.
9439 (try_optimize_cfg): Likewise.
9440 * cfgexpand.c (expand_gimple_cond): Likewise.
9441 (expand_gimple_tailcall): Likewise.
9442 (expand_gimple_basic_block): Likewise.
9443 (construct_exit_block): Likewise.
9444 * cfgrtl.c (delete_insn): Likewise.
9445 (create_basic_block_structure): Likewise.
9446 (rtl_delete_block): Likewise.
9447 (rtl_split_block): Likewise.
9448 (emit_nop_for_unique_locus_between): Likewise.
9449 (rtl_merge_blocks): Likewise.
9450 (block_label): Likewise.
9451 (try_redirect_by_replacing_jump): Likewise.
9452 (emit_barrier_after_bb): Likewise.
9453 (fixup_abnormal_edges): Likewise.
9454 (record_effective_endpoints): Likewise.
9455 (relink_block_chain): Likewise.
9456 (fixup_reorder_chain): Likewise.
9457 (fixup_fallthru_exit_predecessor): Likewise.
9458 (cfg_layout_duplicate_bb): Likewise.
9459 (cfg_layout_split_block): Likewise.
9460 (cfg_layout_delete_block): Likewise.
9461 (cfg_layout_merge_blocks): Likewise.
9462 * combine.c (update_cfg_for_uncondjump): Likewise.
9463 * emit-rtl.c (add_insn_after): Likewise.
9464 (remove_insn): Likewise.
9465 (reorder_insns): Likewise.
9466 (emit_insn_after_1): Likewise.
9467 * haifa-sched.c (get_ebb_head_tail): Likewise.
9468 (restore_other_notes): Likewise.
9469 (move_insn): Likewise.
9470 (sched_extend_bb): Likewise.
9471 (fix_jump_move): Likewise.
9472 * ifcvt.c (noce_process_if_block): Likewise.
9473 (dead_or_predicable): Likewise.
9474 * ira.c (update_equiv_regs): Likewise.
9475 * reg-stack.c (change_stack): Likewise.
9476 * sel-sched-ir.c (sel_move_insn): Likewise.
9477 * sel-sched.c (move_nop_to_previous_block): Likewise.
9478
9479 * config/c6x/c6x.c (hwloop_optimize): Likewise.
9480 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9481
9482 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9483
9484 * rtl.h (for_each_rtx_in_insn): New function.
9485 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9486
9487 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9488
9489 * coretypes.h (class rtx_insn): Add forward declaration.
9490
9491 * rtl.h: Include is-a.h.
9492 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9493 workaround to ensure gengtype knows inheritance is occurring,
9494 whilst continuing to use the pre-existing special-casing for
9495 rtx_def.
9496 (class rtx_insn): New subclass of rtx_def, adding the
9497 invariant that we're dealing with something we can sanely use
9498 INSN_UID, NEXT_INSN, PREV_INSN on.
9499 (is_a_helper <rtx_insn *>::test): New.
9500 (is_a_helper <const rtx_insn *>::test): New.
9501
9502 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9503
9504 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9505
9506 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9507
9508 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9509 comdats as extern.
9510
9511 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9512
9513 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9514 to BUILT_IN_UNREACHABLE.
9515
9516 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9517
9518 PR target/62011
9519 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9520 New tune flag.
9521 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9522 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9523 (ffs<mode>2): Do not expand with tzcnt for
9524 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9525 (ffssi2_no_cmove): Ditto.
9526 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9527 (ctz<mode>2): New expander.
9528 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9529 (*ctz<mode>2_falsedep): New insn.
9530 (*ctz<mode>2): Rename from ctz<mode>2.
9531 (clz<mode>2_lzcnt): New expander.
9532 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9533 (*clz<mode>2_lzcnt_falsedep): New insn.
9534 (*clz<mode>2): Rename from ctz<mode>2.
9535 (popcount<mode>2): New expander.
9536 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9537 (*popcount<mode>2_falsedep): New insn.
9538 (*popcount<mode>2): Rename from ctz<mode>2.
9539 (*popcount<mode>2_cmp): Remove.
9540 (*popcountsi2_cmp_zext): Ditto.
9541
9542 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9543
9544 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9545 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9546 * config/microblaze/microblaze.h
9547 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9548
9549 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9550
9551 PR other/62168
9552 * configure.ac: Set install_gold_as_default to no for
9553 --enable-gold=no.
9554 * configure: Regenerated.
9555
9556 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9557
9558 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9559 * config.in: Add undef of HAVE_isl.
9560 * configure: Regenerate.
9561 * configure.ac: Add definition of HAVE_isl.
9562 * graphite-blocking.c: Add checking of HAVE_isl.
9563 * graphite-dependences.c: Likewise.
9564 * graphite-interchange.c: Likewise.
9565 * graphite-isl-ast-to-gimple.c: Likewise.
9566 * graphite-optimize-isl.c: Likewise.
9567 * graphite-poly.c: Likewise.
9568 * graphite-scop-detection.c: Likewise.
9569 * graphite-sese-to-poly.c: Likewise.
9570 * graphite.c: Likewise.
9571 * toplev.c: Replace the checking of HAVE_cloog with the checking
9572 of HAVE_isl.
9573
9574 2014-08-18 Richard Biener <rguenther@suse.de>
9575
9576 PR tree-optimization/62090
9577 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9578 (fold_builtin_3): Do not fold snprintf.
9579 (fold_builtin_4): Likewise.
9580 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9581 moved from builtins.c.
9582 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9583 (gimple_fold_builtin): Do not fold sprintf here.
9584
9585 2014-08-18 Richard Biener <rguenther@suse.de>
9586
9587 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9588 code to ...
9589 (maybe_canonicalize_mem_ref_addr): ... this function.
9590 (fold_stmt_1): Apply it here before all simplification.
9591
9592 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
9593
9594 PR ipa/61800
9595 * cgraph.h (cgraph_node::create_indirect_edge): Add
9596 compute_indirect_info param.
9597 * cgraph.c (cgraph_node::create_indirect_edge): Compute
9598 indirect_info only when it is required.
9599 * cgraphclones.c (cgraph_clone_edge): Do not recompute
9600 indirect_info fore cloned indirect edge.
9601
9602 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9603 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9604 Anna Tikhonova <anna.tikhonova@intel.com>
9605 Ilya Tocar <ilya.tocar@intel.com>
9606 Andrey Turetskiy <andrey.turetskiy@intel.com>
9607 Ilya Verbin <ilya.verbin@intel.com>
9608 Kirill Yukhin <kirill.yukhin@intel.com>
9609 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9610
9611 * config/i386/sse.md
9612 (define_mode_iterator VI8_AVX2_AVX512BW): New.
9613 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9614
9615 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9616 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9617 Anna Tikhonova <anna.tikhonova@intel.com>
9618 Ilya Tocar <ilya.tocar@intel.com>
9619 Andrey Turetskiy <andrey.turetskiy@intel.com>
9620 Ilya Verbin <ilya.verbin@intel.com>
9621 Kirill Yukhin <kirill.yukhin@intel.com>
9622 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9623
9624 * config/i386/sse.md
9625 (define_mode_iterator VF1_AVX512VL): New.
9626 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9627 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9628 New.
9629
9630 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9631 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9632 Anna Tikhonova <anna.tikhonova@intel.com>
9633 Ilya Tocar <ilya.tocar@intel.com>
9634 Andrey Turetskiy <andrey.turetskiy@intel.com>
9635 Ilya Verbin <ilya.verbin@intel.com>
9636 Kirill Yukhin <kirill.yukhin@intel.com>
9637 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9638
9639 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9640 * config/i386/i386.md
9641 (define_code_iterator any_float): New.
9642 (define_code_attr floatsuffix): New.
9643 * config/i386/sse.md
9644 (define_mode_iterator VF1_128_256VL): New.
9645 (define_mode_iterator VF2_512_256VL): New.
9646 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9647 TARGET check.
9648 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9649 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9650 New.
9651 (define_mode_attr qq2pssuff): New.
9652 (define_mode_attr sselongvecmode): New.
9653 (define_mode_attr sselongvecmodelower): New.
9654 (define_mode_attr sseintvecmode3): New.
9655 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9656 New.
9657 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9658 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9659 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9660 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9661
9662 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9663 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9664 Anna Tikhonova <anna.tikhonova@intel.com>
9665 Ilya Tocar <ilya.tocar@intel.com>
9666 Andrey Turetskiy <andrey.turetskiy@intel.com>
9667 Ilya Verbin <ilya.verbin@intel.com>
9668 Kirill Yukhin <kirill.yukhin@intel.com>
9669 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9670
9671 * config/i386/sse.md
9672 (define_mode_iterator VF2_AVX512VL): New.
9673 (define_mode_attr sseintvecmode2): New.
9674 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9675 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9676 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9677 (define_insn
9678 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9679 Ditto.
9680 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9681 Ditto.
9682 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9683 Ditto.
9684
9685 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9686 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9687 Anna Tikhonova <anna.tikhonova@intel.com>
9688 Ilya Tocar <ilya.tocar@intel.com>
9689 Andrey Turetskiy <andrey.turetskiy@intel.com>
9690 Ilya Verbin <ilya.verbin@intel.com>
9691 Kirill Yukhin <kirill.yukhin@intel.com>
9692 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9693
9694 * config/i386/i386.md
9695 (define_insn "*movoi_internal_avx"): Add evex version.
9696 (define_insn "*movti_internal"): Ditto.
9697
9698 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9699 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9700 Anna Tikhonova <anna.tikhonova@intel.com>
9701 Ilya Tocar <ilya.tocar@intel.com>
9702 Andrey Turetskiy <andrey.turetskiy@intel.com>
9703 Ilya Verbin <ilya.verbin@intel.com>
9704 Kirill Yukhin <kirill.yukhin@intel.com>
9705 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9706
9707 * config/i386/i386.md
9708 (define_attr "isa"): Add avx512dq, noavx512dq.
9709 (define_attr "enabled"): Ditto.
9710 * config/i386/sse.md
9711 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9712
9713 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9714 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9715 Anna Tikhonova <anna.tikhonova@intel.com>
9716 Ilya Tocar <ilya.tocar@intel.com>
9717 Andrey Turetskiy <andrey.turetskiy@intel.com>
9718 Ilya Verbin <ilya.verbin@intel.com>
9719 Kirill Yukhin <kirill.yukhin@intel.com>
9720 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9721
9722 * config/i386/i386.c
9723 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9724 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9725 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9726 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9727 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9728 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9729 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9730 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9731 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9732 * config/i386/sse.md
9733 (define_mode_iterator VMOVE): Allow V4TI mode.
9734 (define_mode_iterator V_AVX512VL): New.
9735 (define_mode_iterator V): New handling for AVX512VL.
9736 (define_insn "avx512f_load<mode>_mask"): Delete.
9737 (define_insn "<avx512>_load<mode>_mask"): New.
9738 (define_insn "avx512f_store<mode>_mask"): Delete.
9739 (define_insn "<avx512>_store<mode>_mask"): New.
9740
9741
9742 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9743
9744 PR sanitizer/62089
9745 * asan.c (instrument_derefs): Fix bitfield check.
9746
9747 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9748
9749 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9750 * config/rs6000/htm.md (ttest): Remove clobber.
9751 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9752 (and_operand): Reformat.
9753 (and_2rld_operand): New predicate.
9754 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9755 parameter.
9756 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9757 parameter. Handle AND directly.
9758 (rs6000_split_logical_di): Remove last parameter.
9759 (rs6000_split_logical): Remove last parameter. Remove obsolete
9760 comment.
9761 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9762 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9763 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9764 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9765 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9766 and 5 anonymous splitters): Delete.
9767 (and<mode>3): New expander.
9768 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9769 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9770 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9771 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9772 (floatdisf2_internal1): Remove clobbers.
9773 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9774 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9775 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9776 (and<mode>3 for BOOL_128): Remove clobber.
9777 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9778 rs6000_split_logical.
9779 (*bool<mode>3_internal for BOOL_128): Adjust call of
9780 rs6000_split_logical.
9781 (*boolc<mode>3_internal1 for BOOL_128,
9782 *boolc<mode>3_internal2 for BOOL_128,
9783 *boolcc<mode>3_internal1 for BOOL_128,
9784 *boolcc<mode>3_internal2 for BOOL_128,
9785 *eqv<mode>3_internal1 for BOOL_128,
9786 *eqv<mode>3_internal2 for BOOL_128,
9787 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9788 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9789 clobber.
9790 (*vec_reload_and_reg_<mptrsize>): Delete.
9791
9792 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9793
9794 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9795 and split, *boolccsi3_internal3 and split): Delete.
9796 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9797 *boolccdi3_internal3 and split): Delete.
9798 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9799 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9800
9801 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9802
9803 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9804 and split, *boolcsi3_internal3 and split): Delete.
9805 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9806 *boolcdi3_internal3 and split): Delete.
9807 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9808
9809 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9810
9811 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9812 <'u'>: Also support printing the low-order 16 bits.
9813 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9814 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9815 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9816 *booldi3_internal3 and split): Delete.
9817 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9818 *bool<mode>3_dot2): New.
9819 (two anonymous define_splits for non_logical_cint_operand): Merge.
9820
9821 2014-08-17 Marek Polacek <polacek@redhat.com>
9822 Manuel López-Ibáñez <manu@gcc.gnu.org>
9823
9824 PR c/62059
9825 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9826 (diagnostic_show_locus): Don't print caret diagnostic
9827 if a column is larger than the line_width.
9828
9829 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9830
9831 * common.opt: Make the ISL AST generator to be the main code generator
9832 of Graphite.
9833
9834 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9835
9836 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9837
9838 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9839
9840 PR target/61641
9841 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9842 Declare.
9843 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9844 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
9845 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
9846 Define.
9847 * config/pa/pa.md (begin_brtab): Delete insn.
9848 (end_brtab): Likewise.
9849
9850 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9851
9852 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
9853
9854 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
9855
9856 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9857 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9858 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9859 (get_dynamic_type): Remove.
9860 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9861 (clear_speculation): Bring to ipa-deivrt.h
9862 (get_class_context): Rename to ...
9863 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9864 (contains_type_p): Update.
9865 (get_dynamic_type): Rename to ...
9866 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9867 (possible_polymorphic_call_targets): UPdate.
9868 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
9869 * ipa-prop.c (ipa_analyze_call_uses): Update.
9870
9871 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
9872
9873 * doc/invoke.texi (SH options): Document missing processor variant
9874 options. Remove references to Hitachi. Undocument deprecated mspace
9875 option.
9876
9877 2014-08-15 Jason Merrill <jason@redhat.com>
9878
9879 * tree.c (type_hash_canon): Uncomment assert.
9880
9881 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9882
9883 * input.h (in_system_header_at): Add comment.
9884
9885 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9886
9887 PR fortran/44054
9888 * diagnostic.c (build_message_string): Make it extern.
9889 * diagnostic.h (build_message_string): Make it extern.
9890
9891 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
9892
9893 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
9894 load/store from/to non-floating class pseudo.
9895
9896 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9897
9898 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
9899
9900 2014-08-15 Richard Biener <rguenther@suse.de>
9901
9902 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
9903 (get_constraint_for_ssa_var): Remove dead code.
9904 (get_constraint_for_1): Adjust.
9905 (find_what_var_points_to): Likewise.
9906 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
9907
9908 2014-08-15 Ilya Tocar <tocarip@gmail.com>
9909
9910 PR target/61878
9911 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
9912 (_mm512_mask_cmpge_epu32_mask): Ditto.
9913 (_mm512_cmpge_epu32_mask): Ditto.
9914 (_mm512_mask_cmpge_epi64_mask): Ditto.
9915 (_mm512_cmpge_epi64_mask): Ditto.
9916 (_mm512_mask_cmpge_epu64_mask): Ditto.
9917 (_mm512_cmpge_epu64_mask): Ditto.
9918 (_mm512_mask_cmple_epi32_mask): Ditto.
9919 (_mm512_cmple_epi32_mask): Ditto.
9920 (_mm512_mask_cmple_epu32_mask): Ditto.
9921 (_mm512_cmple_epu32_mask): Ditto.
9922 (_mm512_mask_cmple_epi64_mask): Ditto.
9923 (_mm512_cmple_epi64_mask): Ditto.
9924 (_mm512_mask_cmple_epu64_mask): Ditto.
9925 (_mm512_cmple_epu64_mask): Ditto.
9926 (_mm512_mask_cmplt_epi32_mask): Ditto.
9927 (_mm512_cmplt_epi32_mask): Ditto.
9928 (_mm512_mask_cmplt_epu32_mask): Ditto.
9929 (_mm512_cmplt_epu32_mask): Ditto.
9930 (_mm512_mask_cmplt_epi64_mask): Ditto.
9931 (_mm512_cmplt_epi64_mask): Ditto.
9932 (_mm512_mask_cmplt_epu64_mask): Ditto.
9933 (_mm512_cmplt_epu64_mask): Ditto.
9934 (_mm512_mask_cmpneq_epi32_mask): Ditto.
9935 (_mm512_mask_cmpneq_epu32_mask): Ditto.
9936 (_mm512_cmpneq_epu32_mask): Ditto.
9937 (_mm512_mask_cmpneq_epi64_mask): Ditto.
9938 (_mm512_cmpneq_epi64_mask): Ditto.
9939 (_mm512_mask_cmpneq_epu64_mask): Ditto.
9940 (_mm512_cmpneq_epu64_mask): Ditto.
9941 (_mm512_castpd_ps): Ditto.
9942 (_mm512_castpd_si512): Ditto.
9943 (_mm512_castps_pd): Ditto.
9944 (_mm512_castps_si512): Ditto.
9945 (_mm512_castsi512_ps): Ditto.
9946 (_mm512_castsi512_pd): Ditto.
9947 (_mm512_castpd512_pd128): Ditto.
9948 (_mm512_castps512_ps128): Ditto.
9949 (_mm512_castsi512_si128): Ditto.
9950 (_mm512_castpd512_pd256): Ditto.
9951 (_mm512_castps512_ps256): Ditto.
9952 (_mm512_castsi512_si256): Ditto.
9953 (_mm512_castpd128_pd512): Ditto.
9954 (_mm512_castps128_ps512): Ditto.
9955 (_mm512_castsi128_si512): Ditto.
9956 (_mm512_castpd256_pd512): Ditto.
9957 (_mm512_castps256_ps512): Ditto.
9958 (_mm512_castsi256_si512): Ditto.
9959 (_mm512_cmpeq_epu32_mask): Ditto.
9960 (_mm512_mask_cmpeq_epu32_mask): Ditto.
9961 (_mm512_mask_cmpeq_epu64_mask): Ditto.
9962 (_mm512_cmpeq_epu64_mask): Ditto.
9963 (_mm512_cmpgt_epu32_mask): Ditto.
9964 (_mm512_mask_cmpgt_epu32_mask): Ditto.
9965 (_mm512_mask_cmpgt_epu64_mask): Ditto.
9966 (_mm512_cmpgt_epu64_mask): Ditto.
9967 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
9968 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
9969 * config/i386/i386.c (enum ix86_builtins): Add
9970 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
9971 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
9972 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
9973 (bdesc_args): Add __builtin_ia32_si512_256si,
9974 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
9975 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
9976 __builtin_ia32_pd512_pd.
9977 (ix86_expand_args_builtin): Handle new FTYPEs.
9978 * config/i386/sse.md (castmode): Add 512-bit modes.
9979 (AVX512MODE2P): New.
9980 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
9981 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
9982
9983 2014-08-15 Richard Biener <rguenther@suse.de>
9984
9985 * fold-const.c (tree_swap_operands_p): Put all constants
9986 last, also strip sign-changing NOPs when considering further
9987 canonicalization. Canonicalize also when optimizing for size.
9988
9989 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9990
9991 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
9992 one_match > zero_match case to just before simple_sequence.
9993
9994 2014-08-15 Richard Biener <rguenther@suse.de>
9995
9996 * data-streamer.h (streamer_string_index, string_for_index):
9997 Remove.
9998 * data-streamer-out.c (streamer_string_index): Make static.
9999 * data-streamer-in.c (string_for_index): Likewise.
10000 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10001 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10002
10003 2014-08-15 Richard Biener <rguenther@suse.de>
10004
10005 PR tree-optimization/62031
10006 * tree-data-ref.c (dr_analyze_indices): Do not set
10007 DR_UNCONSTRAINED_BASE.
10008 (dr_may_alias_p): All indirect accesses have to go the
10009 formerly DR_UNCONSTRAINED_BASE path.
10010 * tree-data-ref.h (struct indices): Remove
10011 unconstrained_base member.
10012 (DR_UNCONSTRAINED_BASE): Remove.
10013
10014 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10015
10016 PR middle-end/62092
10017 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10018 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10019 in OMP_CLAUSE_MAP in some outer target region.
10020
10021 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10022
10023 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10024 name_expansion_cache.
10025 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10026 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10027 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10028 (difference_cannot_overflow_p): New parameter. Use affine
10029 expansion for equality check.
10030 (iv_elimination_compare_lt): Pass new argument.
10031
10032 2014-08-14 DJ Delorie <dj@redhat.com>
10033
10034 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10035 variables to the accumulator.
10036
10037 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10038 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10039 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10040 with far-far moves.
10041
10042 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10043 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10044 (umulqihi3_virt): Likewise.
10045 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10046 (umulqihi3_real): Likewise.
10047
10048 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10049
10050 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10051
10052 PR tree-optimization/62091
10053 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10054 function_entry_reached.
10055 (walk_aliased_vdefs): Clear it here.
10056 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10057
10058 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10059
10060 * ipa-utils.h (compare_virtual_tables): Declare.
10061 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10062
10063 2014-08-14 Marek Polacek <polacek@redhat.com>
10064
10065 DR 458
10066 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10067 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10068
10069 2014-08-14 Tom de Vries <tom@codesourcery.com>
10070
10071 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10072
10073 2014-08-14 Tom de Vries <tom@codesourcery.com>
10074
10075 PR rtl-optimization/62004
10076 PR rtl-optimization/62030
10077 * ifcvt.c (rtx_interchangeable_p): New function.
10078 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10079 * emit-rtl.h (mem_attrs_eq_p): Declare.
10080
10081 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10082
10083 * graphite-scop-detection.c:
10084 Add inclusion of cp-tree.h.
10085 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10086 in case they are pointers to object types
10087
10088 2014-08-14 Richard Biener <rguenther@suse.de>
10089
10090 * BASE-VER: Change to 5.0.0
10091
10092 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10093 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10094 Anna Tikhonova <anna.tikhonova@intel.com>
10095 Ilya Tocar <ilya.tocar@intel.com>
10096 Andrey Turetskiy <andrey.turetskiy@intel.com>
10097 Ilya Verbin <ilya.verbin@intel.com>
10098 Kirill Yukhin <kirill.yukhin@intel.com>
10099 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10100
10101 * config/i386/sse.md (define_mode_attr avx512): New.
10102 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10103 V4DI modes.
10104 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10105 (define_mode_attr ssse3_avx2): Ditto.
10106 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10107 (define_mode_attr avx2_avx512bw): New.
10108 (define_mode_attr ssedoublemodelower): New.
10109 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10110 V32HI, V64QI modes.
10111 (define_mode_attr ssebytemode): Allow V8DI modes.
10112 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10113 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10114 (define_mode_attr ssePSmode2): New.
10115 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10116 V16HI, V32HI modes.
10117 (define_mode_attr dbpsadbwmode): New.
10118 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10119 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10120 (vi8_sse4_1_avx2_avx512): New.
10121 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10122 mode attribute.
10123 (define_mode_attr blendbits): Move before its immediate use.
10124
10125 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10126 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10127 Anna Tikhonova <anna.tikhonova@intel.com>
10128 Ilya Tocar <ilya.tocar@intel.com>
10129 Andrey Turetskiy <andrey.turetskiy@intel.com>
10130 Ilya Verbin <ilya.verbin@intel.com>
10131 Kirill Yukhin <kirill.yukhin@intel.com>
10132 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10133
10134 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10135 * config/i386/subst.md
10136 (define_mode_iterator SUBST_V): Update.
10137 (define_mode_iterator SUBST_A): Ditto.
10138 (define_subst_attr "mask_operand7"): New.
10139 (define_subst_attr "mask_operand10"): New.
10140 (define_subst_attr "mask_operand_arg34") : New.
10141 (define_subst_attr "mask_expand_op3"): New.
10142 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10143 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10144 (define_subst_attr "mask_avx512vl_condition"): New.
10145 (define_subst_attr "round_mask_operand4"): Ditto.
10146 (define_subst_attr "round_mask_scalar_op3"): Delete.
10147 (define_subst_attr "round_mask_op4"): New.
10148 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10149 V16SImode.
10150 (define_subst_attr "round_modev8sf_condition"): New.
10151 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10152 <MODE>mode.
10153 (define_subst_attr "round_saeonly_mask_operand4"): New.
10154 (define_subst_attr "round_saeonly_mask_op4"): New.
10155 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10156 V8DImode, V16SImode.
10157 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10158 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10159 (define_subst_attr "mask_expand4_args"): New.
10160 (define_subst "mask_expand4"): New.
10161
10162 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10164 Anna Tikhonova <anna.tikhonova@intel.com>
10165 Ilya Tocar <ilya.tocar@intel.com>
10166 Andrey Turetskiy <andrey.turetskiy@intel.com>
10167 Ilya Verbin <ilya.verbin@intel.com>
10168 Kirill Yukhin <kirill.yukhin@intel.com>
10169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10170
10171 * config/i386/i386.md
10172 (define_attr "isa"): Add avx512bw,noavx512bw.
10173 (define_attr "enabled"): Ditto.
10174 (define_split): Add 32/64-bit mask logic.
10175 (define_insn "*k<logic>qi"): New.
10176 (define_insn "*k<logic>hi"): New.
10177 (define_insn "*anddi_1"): Add mask version.
10178 (define_insn "*andsi_1"): Ditto.
10179 (define_insn "*<code><mode>_1"): Ditto.
10180 (define_insn "*<code>hi_1"): Ditto.
10181 (define_insn "kxnor<mode>"): New.
10182 (define_insn "kunpcksi"): New.
10183 (define_insn "kunpckdi"): New.
10184 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10185 (define_insn "*one_cmplhi2_1"): Ditto.
10186
10187 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10188 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10189 Anna Tikhonova <anna.tikhonova@intel.com>
10190 Ilya Tocar <ilya.tocar@intel.com>
10191 Andrey Turetskiy <andrey.turetskiy@intel.com>
10192 Ilya Verbin <ilya.verbin@intel.com>
10193 Kirill Yukhin <kirill.yukhin@intel.com>
10194 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10195
10196 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10197 V32HImode.
10198
10199 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10200 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10201 Anna Tikhonova <anna.tikhonova@intel.com>
10202 Ilya Tocar <ilya.tocar@intel.com>
10203 Andrey Turetskiy <andrey.turetskiy@intel.com>
10204 Ilya Verbin <ilya.verbin@intel.com>
10205 Kirill Yukhin <kirill.yukhin@intel.com>
10206 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10207
10208 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10209 registers.
10210 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10211 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10212 xmm/ymm16+ when availble.
10213 * config/i386/i386.h
10214 (HARD_REGNO_NREGS): Add mask regs.
10215 (VALID_AVX512F_REG_MODE): Ditto.
10216 (VALID_AVX512F_REG_MODE) : Define.
10217 (VALID_MASK_AVX512BW_MODE): Ditto.
10218 (reg_class) (MASK_REG_P(X)): Define.
10219 * config/i386/i386.md: Do not split long moves with mask register,
10220 use kmovb if avx512bw is availible.
10221 (movdi_internal): Handle mask registers.
10222
10223 2014-08-14 Richard Biener <rguenther@suse.de>
10224
10225 PR tree-optimization/62081
10226 * tree-ssa-loop.c (pass_fix_loops): New pass.
10227 (pass_tree_loop::gate): Do not fixup loops here.
10228 * tree-pass.h (make_pass_fix_loops): Declare.
10229 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10230
10231 2014-08-14 Richard Biener <rguenther@suse.de>
10232
10233 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10234 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10235
10236 2014-08-14 Richard Biener <rguenther@suse.de>
10237
10238 PR tree-optimization/62090
10239 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10240 (fold_builtin_2): Do not fold sprintf.
10241 (fold_builtin_3): Likewise.
10242 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10243 moved from builtins.c.
10244 (gimple_fold_builtin): Fold sprintf.
10245
10246 2014-08-14 Richard Biener <rguenther@suse.de>
10247
10248 PR rtl-optimization/62079
10249 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10250 run cleanup_cfg.
10251
10252 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10253
10254 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10255 current_function_decl.
10256
10257 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10258
10259 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10260 cgraph_function_node to cgraph_node::function_symbol
10261 refactoring.
10262
10263 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10264
10265 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10266 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10267
10268 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10269
10270 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10271 warning.
10272
10273 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10274
10275 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10276 generator.
10277
10278 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10279
10280 PR target/62025
10281 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10282 any registers that are used in mem_insn.
10283
10284 2014-08-12 Steve Ellcey <sellcey@mips.com>
10285
10286 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10287
10288 2014-08-12 Steve Ellcey <sellcey@mips.com>
10289
10290 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10291 (MULTILIB_DIRNAMES): Ditto.
10292 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10293 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10294 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10295 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10296 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10297 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10298
10299 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10300
10301 PR target/61413
10302 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10303 of __ARM_SIZEOF_WCHAR_T.
10304
10305 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10306
10307 PR target/62098
10308 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10309 Remove unnecessary attributes.
10310
10311 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10312
10313 * internal-fn.c (init_internal_fns): Fix off-by-one.
10314
10315 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10316 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10317 Anna Tikhonova <anna.tikhonova@intel.com>
10318 Ilya Tocar <ilya.tocar@intel.com>
10319 Andrey Turetskiy <andrey.turetskiy@intel.com>
10320 Ilya Verbin <ilya.verbin@intel.com>
10321 Kirill Yukhin <kirill.yukhin@intel.com>
10322 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10323
10324 * config/i386/i386.c (standard_sse_constant_opcode): Use
10325 vpxord/vpternlog if avx512 is availible.
10326
10327 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10328
10329 PR middle-end/62103
10330 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10331 bitfields, that is when size doesn't match the size of type or the
10332 size of the constructor.
10333
10334 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10335
10336 * config/rs6000/constraints.md (wh constraint): New constraint,
10337 for FP registers if direct move is available.
10338 (wi constraint): New constraint, for VSX/FP registers that can
10339 handle 64-bit integers.
10340 (wj constraint): New constraint for VSX/FP registers that can
10341 handle 64-bit integers for direct moves.
10342 (wk constraint): New constraint for VSX/FP registers that can
10343 handle 64-bit doubles for direct moves.
10344 (wy constraint): Make documentation match implementation.
10345
10346 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10347 scalar_in_vmx_p field to simplify tests of whether SFmode or
10348 DFmode can go in the Altivec registers.
10349 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10350 (rs6000_setup_reg_addr_masks): Likewise.
10351 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10352 field, and wh/wi/wj/wk constraints.
10353 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10354 the wh/wi/wj/wk constraints.
10355 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10356 upper registers, prefer VSX registers unless the operation is a
10357 memory operation with REG+OFFSET addressing.
10358
10359 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10360 DImode. Change SFmode to use ww constraint instead of d to allow
10361 SF registers in the upper registers.
10362 (VSr2): Likewise.
10363 (VSr3): Likewise.
10364 (VSr5): Fix thinko in comment.
10365 (VSa): New mode attribute that is an alternative to wa, that
10366 returns the VSX register class that a mode can go in, but may not
10367 be the preferred register class.
10368 (VS_64dm): New mode attribute for appropriate register classes for
10369 referencing 64-bit elements of vectors for direct moves and normal
10370 moves.
10371 (VS_64reg): Likewise.
10372 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10373 register allocator to only registers the data type can handle.
10374 (vsx_le_perm_load_<mode>): Likewise.
10375 (vsx_le_perm_store_<mode>): Likewise.
10376 (vsx_xxpermdi2_le_<mode>): Likewise.
10377 (vsx_xxpermdi4_le_<mode>): Likewise.
10378 (vsx_lxvd2x2_le_<mode>): Likewise.
10379 (vsx_lxvd2x4_le_<mode>): Likewise.
10380 (vsx_stxvd2x2_le_<mode>): Likewise.
10381 (vsx_add<mode>3): Likewise.
10382 (vsx_sub<mode>3): Likewise.
10383 (vsx_mul<mode>3): Likewise.
10384 (vsx_div<mode>3): Likewise.
10385 (vsx_tdiv<mode>3_internal): Likewise.
10386 (vsx_fre<mode>2): Likewise.
10387 (vsx_neg<mode>2): Likewise.
10388 (vsx_abs<mode>2): Likewise.
10389 (vsx_nabs<mode>2): Likewise.
10390 (vsx_smax<mode>3): Likewise.
10391 (vsx_smin<mode>3): Likewise.
10392 (vsx_sqrt<mode>2): Likewise.
10393 (vsx_rsqrte<mode>2): Likewise.
10394 (vsx_tsqrt<mode>2_internal): Likewise.
10395 (vsx_fms<mode>4): Likewise.
10396 (vsx_nfma<mode>4): Likewise.
10397 (vsx_eq<mode>): Likewise.
10398 (vsx_gt<mode>): Likewise.
10399 (vsx_ge<mode>): Likewise.
10400 (vsx_eq<mode>_p): Likewise.
10401 (vsx_gt<mode>_p): Likewise.
10402 (vsx_ge<mode>_p): Likewise.
10403 (vsx_xxsel<mode>): Likewise.
10404 (vsx_xxsel<mode>_uns): Likewise.
10405 (vsx_copysign<mode>3): Likewise.
10406 (vsx_float<VSi><mode>2): Likewise.
10407 (vsx_floatuns<VSi><mode>2): Likewise.
10408 (vsx_fix_trunc<mode><VSi>2): Likewise.
10409 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
10410 (vsx_x<VSv>r<VSs>i): Likewise.
10411 (vsx_x<VSv>r<VSs>ic): Likewise.
10412 (vsx_btrunc<mode>2): Likewise.
10413 (vsx_b2trunc<mode>2): Likewise.
10414 (vsx_floor<mode>2): Likewise.
10415 (vsx_ceil<mode>2): Likewise.
10416 (vsx_<VS_spdp_insn>): Likewise.
10417 (vsx_xscvspdp): Likewise.
10418 (vsx_xvcvspuxds): Likewise.
10419 (vsx_float_fix_<mode>2): Likewise.
10420 (vsx_set_<mode>): Likewise.
10421 (vsx_extract_<mode>_internal1): Likewise.
10422 (vsx_extract_<mode>_internal2): Likewise.
10423 (vsx_extract_<mode>_load): Likewise.
10424 (vsx_extract_<mode>_store): Likewise.
10425 (vsx_splat_<mode>): Likewise.
10426 (vsx_xxspltw_<mode>): Likewise.
10427 (vsx_xxspltw_<mode>_direct): Likewise.
10428 (vsx_xxmrghw_<mode>): Likewise.
10429 (vsx_xxmrglw_<mode>): Likewise.
10430 (vsx_xxsldwi_<mode>): Likewise.
10431 (vsx_xscvdpspn): Tighten constraints to only use register classes
10432 the types use.
10433 (vsx_xscvspdpn): Likewise.
10434 (vsx_xscvdpspn_scalar): Likewise.
10435
10436 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
10437 wj, and wk constraints.
10438 (GPR_REG_CLASS_P): New helper macro for register classes targeting
10439 general purpose registers.
10440
10441 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
10442 direct moves.
10443 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
10444 DImode instead of wm. Use wk constraint for direct move of DFmode
10445 instead of wm.
10446 (extendsidi2_lfiwax): Likewise.
10447 (lfiwax): Likewise.
10448 (lfiwzx): Likewise.
10449 (movdi_internal64): Likewise.
10450
10451 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
10452 wk constraints. Make the wy constraint documentation match them
10453 implementation.
10454
10455 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
10456
10457 Replacement of isl_int by isl_val
10458 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
10459 (compute_bounds_for_param): use isl_val instead of isl_int
10460 (compute_bounds_for_loop): likewise
10461 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
10462 (build_linearized_memory_access): use isl_val instead of isl_int
10463 (pdr_stride_in_loop): likewise
10464 * graphite-optimize-isl.c:
10465 (getPrevectorMap): use isl_val instead of isl_int
10466 * graphite-poly.c:
10467 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
10468 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
10469 (extern the_isl_ctx): declare
10470 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
10471 (extract_affine_gmp): likewise
10472 (wrap): likewise
10473 (build_loop_iteration_domains): likewise
10474 (add_param_constraints): likewise
10475
10476 2014-08-11 Richard Biener <rguenther@suse.de>
10477
10478 PR tree-optimization/62075
10479 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
10480 handle uses in patterns.
10481
10482 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10483 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10484 Anna Tikhonova <anna.tikhonova@intel.com>
10485 Ilya Tocar <ilya.tocar@intel.com>
10486 Andrey Turetskiy <andrey.turetskiy@intel.com>
10487 Ilya Verbin <ilya.verbin@intel.com>
10488 Kirill Yukhin <kirill.yukhin@intel.com>
10489 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10490
10491 * common/config/i386/i386-common.c
10492 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10493 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10494 (ix86_handle_option): Handle OPT_mavx512vl.
10495 * config/i386/cpuid.h (bit_AVX512VL): Define.
10496 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10497 set -mavx512vl accordingly.
10498 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10499 OPTION_MASK_ISA_AVX512VL.
10500 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10501 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10502 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10503 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10504 * config/i386/i386.h (TARGET_AVX512VL): Define.
10505 (TARGET_AVX512VL_P(x)): Ditto.
10506 * config/i386/i386.opt: Add mavx512vl.
10507
10508 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10509
10510 PR tree-optimization/62073
10511 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10512 a basic block.
10513
10514 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10515 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10516 Anna Tikhonova <anna.tikhonova@intel.com>
10517 Ilya Tocar <ilya.tocar@intel.com>
10518 Andrey Turetskiy <andrey.turetskiy@intel.com>
10519 Ilya Verbin <ilya.verbin@intel.com>
10520 Kirill Yukhin <kirill.yukhin@intel.com>
10521 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10522
10523 * common/config/i386/i386-common.c
10524 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10525 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10526 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10527 (ix86_handle_option): Handle OPT_mavx512bw.
10528 * config/i386/cpuid.h (bit_AVX512BW): Define.
10529 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10530 set -mavx512bw accordingly.
10531 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10532 OPTION_MASK_ISA_AVX512BW.
10533 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10534 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10535 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10536 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10537 * config/i386/i386.h (TARGET_AVX512BW): Define.
10538 (TARGET_AVX512BW_P(x)): Ditto.
10539 * config/i386/i386.opt: Add mavx512bw.
10540
10541 2014-08-11 Richard Biener <rguenther@suse.de>
10542
10543 PR tree-optimization/62070
10544 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10545 Remove SSA checking.
10546
10547 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10548
10549 * asan.c (asan_check_flags): New enum.
10550 (build_check_stmt_with_calls): Removed function.
10551 (build_check_stmt): Split inlining logic to
10552 asan_expand_check_ifn.
10553 (instrument_derefs): Rename parameter.
10554 (instrument_mem_region_access): Rename parameter.
10555 (instrument_strlen_call): Likewise.
10556 (asan_expand_check_ifn): New function.
10557 (asan_instrument): Remove old code.
10558 (pass_sanopt::execute): Change handling of
10559 asan-instrumentation-with-call-threshold.
10560 (asan_clear_shadow): Fix formatting.
10561 (asan_function_start): Likewise.
10562 (asan_emit_stack_protection): Likewise.
10563 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10564 Update description.
10565 * internal-fn.c (expand_ASAN_CHECK): New function.
10566 * internal-fn.def (ASAN_CHECK): New internal function.
10567 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10568 Update description.
10569 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10570 * tree.c: Small comment fix.
10571
10572 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10573
10574 * gimple.c (gimple_call_fnspec): Support internal functions.
10575 (gimple_call_return_flags): Use const.
10576 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10577 * internal-fn.def: Add fnspec information.
10578 * internal-fn.h (internal_fn_fnspec): New function.
10579 (init_internal_fns): Declare new function.
10580 * internal-fn.c (internal_fn_fnspec_array): New global variable.
10581 (init_internal_fns): New function.
10582 * tree-core.h: Update macro call.
10583 * tree.c (build_common_builtin_nodes): Initialize internal fns.
10584
10585 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
10586
10587 * lto-streamer.h (struct output_block::symbol): Change from
10588 struct symtab_node to plain symtab_node.
10589 (referenced_from_this_partition_p): Change first parameter
10590 from struct symtab_node to plain symtab_node.
10591
10592 2014-08-10 Marek Polacek <polacek@redhat.com>
10593
10594 PR c/51849
10595 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10596
10597 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
10598
10599 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10600 DECL correctly; do not give up on types in static storage.
10601
10602 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
10603
10604 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10605
10606 2014-08-09 Roman Gareev <gareevroman@gmail.com>
10607
10608 * graphite-isl-ast-to-gimple.c:
10609 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10610
10611 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10612
10613 2014-08-08 Guozhi Wei <carrot@google.com>
10614
10615 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10616
10617 2014-08-08 Cary Coutant <ccoutant@google.com>
10618
10619 * dwarf2out.c (get_skeleton_type_unit): Remove.
10620 (output_skeleton_debug_sections): Remove skeleton type units.
10621 (output_comdat_type_unit): Likewise.
10622 (dwarf2out_finish): Likewise.
10623
10624 2014-08-07 Yi Yang <ahyangyi@google.com>
10625
10626 * predict.c (expr_expected_value_1): Remove the redundant assignment.
10627
10628 2014-08-08 Richard Biener <rguenther@suse.de>
10629
10630 * lto-streamer.h (struct lto_input_block): Make it a class
10631 with a constructor.
10632 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10633 (struct lto_function_header, struct lto_simple_header,
10634 struct lto_simple_header_with_strings,
10635 struct lto_decl_header, struct lto_function_header): Make
10636 a simple inheritance hieararchy. Remove unused fields.
10637 (struct lto_asm_header): Remove.
10638 * lto-streamer-out.c (produce_asm): Adjust.
10639 (lto_output_toplevel_asms): Likewise.
10640 (produce_asm_for_decls): Likewise.
10641 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10642 * data-streamer-in.c (string_for_index): Likewise.
10643 * ipa-inline-analysis.c (inline_read_section): Likewise.
10644 * ipa-prop.c (ipa_prop_read_section): Likewise.
10645 (read_replacements_section): Likewise.
10646 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10647 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10648 (lto_destroy_simple_input_block): Likewise.
10649 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10650 (lto_input_toplevel_asms): Likewise.
10651
10652 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10653 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10654 Anna Tikhonova <anna.tikhonova@intel.com>
10655 Ilya Tocar <ilya.tocar@intel.com>
10656 Andrey Turetskiy <andrey.turetskiy@intel.com>
10657 Ilya Verbin <ilya.verbin@intel.com>
10658 Kirill Yukhin <kirill.yukhin@intel.com>
10659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10660
10661 * common/config/i386/i386-common.c
10662 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10663 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10664 (ix86_handle_option): Handle OPT_mavx512dq.
10665 * config/i386/cpuid.h (bit_AVX512DQ): Define.
10666 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10667 set -mavx512dq accordingly.
10668 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10669 OPTION_MASK_ISA_AVX512DQ.
10670 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10671 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10672 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10673 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10674 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10675 (TARGET_AVX512DQ_P(x)): Ditto.
10676 * config/i386/i386.opt: Add mavx512dq.
10677
10678 2014-08-08 Richard Biener <rguenther@suse.de>
10679
10680 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10681 target_percent, target_percent_s): Export.
10682 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10683 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10684 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10685 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10686 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10687 Move to gimple-fold.c.
10688 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10689 strcat and strcpy.
10690 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10691 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10692 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10693 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10694 (rewrite_call_expr_array): Remove.
10695 (fold_builtin_sprintf_chk): Likewise.
10696 (fold_builtin_snprintf_chk): Likewise.
10697 (fold_builtin_varargs): Remove handling of sprintf_chk,
10698 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10699 (gimple_fold_builtin_sprintf_chk): Remove.
10700 (gimple_fold_builtin_snprintf_chk): Likewise.
10701 (gimple_fold_builtin_varargs): Likewise.
10702 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10703 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10704 * gimple.c (gimple_seq_add_seq_without_update): New function.
10705 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10706 * gimple-fold.c: Include output.h.
10707 (gsi_replace_with_seq_vops): New function, split out from ...
10708 (gimplify_and_update_call_from_tree): ... here.
10709 (replace_call_with_value): New function.
10710 (replace_call_with_call_and_fold): Likewise.
10711 (var_decl_component_p): Moved from builtins.c.
10712 (gimple_fold_builtin_memory_op): Moved from builtins.c
10713 fold_builtin_memory_op and rewritten to GIMPLE.
10714 (gimple_fold_builtin_memset): Likewise.
10715 (gimple_fold_builtin_strcpy): Likewise.
10716 (gimple_fold_builtin_strncpy): Likewise.
10717 (gimple_fold_builtin_strcat): Likewise.
10718 (gimple_fold_builtin_fputs): Likewise.
10719 (gimple_fold_builtin_memory_chk): Likewise.
10720 (gimple_fold_builtin_stxcpy_chk): Likewise.
10721 (gimple_fold_builtin_stxncpy_chk): Likewise.
10722 (gimple_fold_builtin_snprintf_chk): Likewise.
10723 (gimple_fold_builtin_sprintf_chk): Likewise.
10724 (gimple_fold_builtin_strlen): New function.
10725 (gimple_fold_builtin_with_strlen): New function split out from
10726 gimple_fold_builtin.
10727 (gimple_fold_builtin): Change signature and handle
10728 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10729 here. Call gimple_fold_builtin_with_strlen.
10730 (gimple_fold_call): Adjust.
10731
10732 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10733
10734 * calls.c (precompute_arguments): Check
10735 promoted_for_signed_and_unsigned_p and set the promoted mode.
10736 (promoted_for_signed_and_unsigned_p): New function.
10737 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10738 and set the promoted mode.
10739 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10740 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10741 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10742
10743
10744 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10745
10746 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10747 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10748 (expand_call): Likewise.
10749 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10750 to get promoted mode.
10751 * combine.c (record_promoted_value): Skip > 0 comparison with
10752 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10753 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10754 of SUBREG_PROMOTED_UNSIGNED_P.
10755 (convert_modes): Likewise.
10756 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10757 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10758 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10759 SUBREG_PROMOTED_UNSIGNED_SET.
10760 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10761 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10762 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10763 SUBREG_PROMOTED_SET.
10764 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10765 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10766 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10767 of SUBREG_PROMOTED_UNSIGNED_P.
10768 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10769 (SUBREG_PROMOTED_SET): New define.
10770 (SUBREG_PROMOTED_GET): Likewise.
10771 (SUBREG_PROMOTED_SIGN): Likewise.
10772 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10773 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10774 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10775 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10776 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10777 (nonzero_bits1): Skip > 0 comparison with the results as
10778 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10779 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10780 of !SUBREG_PROMOTED_UNSIGNED_P.
10781 * simplify-rtx.c (simplify_unary_operation_1): Use new
10782 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10783 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10784 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10785 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10786
10787 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10788
10789 * ipa-devirt.c: Include gimple-pretty-print.h
10790 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10791 further tests.
10792 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10793 (get_polymorphic_call_info): Fix return value
10794 (type_change_info): New sturcture based on ipa-prop
10795 variant.
10796 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10797 based on ipa-prop variant.
10798 (extr_type_from_vtbl_ptr_store): New function
10799 based on ipa-prop variant.
10800 (record_known_type): New function.
10801 (check_stmt_for_type_change): New function.
10802 (get_dynamic_type): New function.
10803 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10804 * tree-ssa-pre.c: ipa-utils.h
10805 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10806 machinery; sanity check with ipa-prop devirtualization.
10807 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10808 polymorphic flag.
10809
10810 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10811
10812 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10813 * alias.c, cfgexpand.c, cgraphbuild.c,
10814 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10815 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10816 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10817 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10818 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10819 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10820 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10821 dse.c, except.c, gengtype.c, gimple-expr.c,
10822 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10823 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10824 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10825 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10826 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10827 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10828 pointer-set.h.
10829 * pointer-set.c: Remove file.
10830 * pointer-set.h: Remove file.
10831
10832 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10833
10834 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10835 * config/arm/types.md (f_sels, f_seld): Delete.
10836
10837 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10838
10839 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10840 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10841 (aarch64_movdi_<mode>high): Likewise.
10842 (aarch64_mov<mode>high_di): Likewise.
10843 (aarch64_movdi_<mode>low): Likewise.
10844 (aarch64_mov<mode>low_di): Likewise.
10845 (aarch64_movtilow_tilow): Likewise.
10846 Add comment explaining usage of fp,simd attributes and of
10847 TARGET_FLOAT and TARGET_SIMD.
10848
10849 2014-08-07 Ian Bolton <ian.bolton@arm.com>
10850 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10851
10852 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
10853 Use MOVN when one of the half-words is 0xffff.
10854
10855 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10856
10857 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
10858
10859 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10860
10861 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
10862 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
10863 (rfs_str): String corresponding to RFS_* constants.
10864 (rank_for_schedule_stats_t): New typedef.
10865 (rank_for_schedule_stats): New static variable.
10866 (rfs_result): New static function.
10867 (rank_for_schedule): Track statistics for deciding heuristics.
10868 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
10869 static functions.
10870 (ready_sort): Use them for debug printouts.
10871 (schedule_block): Init statistics state. Print statistics on
10872 rank_for_schedule decisions.
10873
10874 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10875
10876 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
10877
10878 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
10879
10880 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
10881 constraint.
10882
10883 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10884
10885 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
10886 function to not conflict.
10887 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
10888 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
10889 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
10890 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
10891 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
10892 of pointer_map.
10893
10894 2014-08-07 Marek Polacek <polacek@redhat.com>
10895
10896 * fold-const.c (fold_binary_loc): Add folding of
10897 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
10898
10899 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
10900
10901 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
10902 instead of type size.
10903 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10904
10905 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10906
10907 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
10908 (*thumb1_movqi_insn): Likewise.
10909 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
10910
10911 2014-08-07 Tom de Vries <tom@codesourcery.com>
10912
10913 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10914 (glibc_2_11_or_earlier): Remove effective-target keywords.
10915
10916 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10917
10918 * config/arm/arm.c (bdesc_2arg): Fix typo.
10919 (arm_atomic_assign_expand_fenv): Remove The default implementation.
10920
10921 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
10922
10923 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
10924
10925 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
10926
10927 PR debug/61923
10928 * haifa-sched.c (advance_one_cycle): Fix dump.
10929 (schedule_block): Don't advance cycle if we are already at the
10930 beginning of the cycle.
10931
10932 2014-08-06 Martin Jambor <mjambor@suse.cz>
10933
10934 PR ipa/61393
10935 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
10936
10937 2014-08-06 Richard Biener <rguenther@suse.de>
10938
10939 PR lto/62034
10940 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
10941 SCCs here.
10942 (lto_input_tree): Pop SCCs here.
10943
10944 2014-08-06 Richard Biener <rguenther@suse.de>
10945
10946 PR tree-optimization/61320
10947 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
10948 handle misaligned loads.
10949
10950 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
10951
10952 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
10953 (aarch64_expand_vec_perm_const): Check for dup before zip.
10954
10955 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10956
10957 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
10958 CONST_INT_P instead of GET_CODE and compare.
10959 (aarch64_select_cc_mode): Likewise.
10960 (aarch64_print_operand): Likewise.
10961 (aarch64_rtx_costs): Likewise.
10962 (aarch64_simd_valid_immediate): Likewise.
10963 (aarch64_simd_check_vect_par_cnst_half): Likewise.
10964 (aarch64_simd_emit_pair_result_insn): Likewise.
10965
10966 2014-08-05 David Malcolm <dmalcolm@redhat.com>
10967
10968 * gdbhooks.py (find_gcc_source_dir): New helper function.
10969 (class PassNames): New class, locating and parsing passes.def.
10970 (class BreakOnPass): New command "break-on-pass".
10971
10972 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
10973
10974 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
10975 getting olde.
10976
10977 2014-08-05 Richard Biener <rguenther@suse.de>
10978
10979 PR rtl-optimization/61672
10980 * emit-rtl.h (mem_attrs_eq_p): Declare.
10981 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
10982 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
10983 * cfgcleanup.c (merge_memattrs): Likewise.
10984 Include emit-rtl.h.
10985
10986 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10987
10988 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
10989 rather than singleton vectors.
10990 (vqdmlsls_lane_s32): Likewise.
10991
10992 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10993
10994 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
10995 Use VSDQ_HSI mode iterator.
10996 (aarch64_sqrdmulh_laneq<mode>): Likewise.
10997 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
10998 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
10999 Use BUILTIN_VDQHS macro.
11000 (sqrdmulh_laneq): Likewise.
11001 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11002 (vqdmlals_laneq_s32): Likewise.
11003 (vqdmlslh_laneq_s16): Likewise.
11004 (vqdmlsls_laneq_s32): Likewise.
11005 (vqdmulhh_laneq_s16): Likewise.
11006 (vqdmulhs_laneq_s32): Likewise.
11007 (vqrdmulhh_laneq_s16): Likewise.
11008 (vqrdmulhs_laneq_s32): Likewise.
11009
11010 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11011
11012 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11013 (vmuld_laneq_f64): Likewise.
11014 (vmuls_laneq_f32): Likewise.
11015 (vmul_n_f64): Likewise.
11016 (vmuld_lane_f64): Reimplement in C.
11017 (vmuls_lane_f32): Likewise.
11018
11019 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11020
11021 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11022 to reservation.
11023 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11024
11025 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11026
11027 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11028 (rbitsi2): Likewise.
11029 (*arm_rev): Set predicable and predicable_short_it attributes.
11030
11031 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11032
11033 * convert.c (convert_to_integer): Guard transformation to lrint by
11034 -fno-math-errno.
11035
11036 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11037
11038 * config/aarch64/aarch64-builtins.c
11039 (aarch64_simd_builtin_type_mode): Delete.
11040 (v8qi_UP): Remap to V8QImode.
11041 (v4hi_UP): Remap to V4HImode.
11042 (v2si_UP): Remap to V2SImode.
11043 (v2sf_UP): Remap to V2SFmode.
11044 (v1df_UP): Remap to V1DFmode.
11045 (di_UP): Remap to DImode.
11046 (df_UP): Remap to DFmode.
11047 (v16qi_UP):V16QImode.
11048 (v8hi_UP): Remap to V8HImode.
11049 (v4si_UP): Remap to V4SImode.
11050 (v4sf_UP): Remap to V4SFmode.
11051 (v2di_UP): Remap to V2DImode.
11052 (v2df_UP): Remap to V2DFmode.
11053 (ti_UP): Remap to TImode.
11054 (ei_UP): Remap to EImode.
11055 (oi_UP): Remap to OImode.
11056 (ci_UP): Map to CImode.
11057 (xi_UP): Remap to XImode.
11058 (si_UP): Remap to SImode.
11059 (sf_UP): Remap to SFmode.
11060 (hi_UP): Remap to HImode.
11061 (qi_UP): Remap to QImode.
11062 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11063 (VAR1): Build builtin name.
11064 (aarch64_init_simd_builtins): Remove dead code.
11065
11066 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11067
11068 * graphite-isl-ast-to-gimple.c:
11069 (set_options): New function.
11070 (scop_to_isl_ast): Add calling of set_options.
11071
11072 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11073
11074 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11075 (analyze_iv_to_split_insn): Don't initialize them.
11076 (get_ivts_expr): Removed.
11077 (allocate_basic_variable, insert_base_initialization): Use
11078 SET_SRC instead of *get_ivts_expr.
11079 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11080
11081 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11082
11083 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11084 (translate_isl_ast_for_loop): Add checking of the
11085 flag_loop_parallelize_all.
11086 (ast_build_before_for): New function.
11087 (scop_to_isl_ast): Add checking of the
11088 flag_loop_parallelize_all.
11089 * graphite-dependences.c: Move the defenition of the
11090 scop_get_dependences from graphite-optimize-isl.c to this file.
11091 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11092 (carries_deps): Add checking of the x's value.
11093 * graphite-optimize-isl.c: Move the defenition of the
11094 scop_get_dependences to graphite-dependences.c.
11095 * graphite-poly.h: Add declarations of scop_get_dependences
11096 and carries_deps.
11097
11098 2014-08-04 Rohit <rohitarulraj@freescale.com>
11099
11100 PR target/60102
11101 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11102 names.
11103 (alt_reg_names): Likewise.
11104 (rs6000_dwarf_register_span): For SPE high registers, replace
11105 dwarf register numbers with GCC hard register numbers.
11106 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11107 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11108 register number for the corresponding GCC hard register number.
11109 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11110 newly added GCC hard register numbers for SPE high registers.
11111 (DWARF_FRAME_REGISTERS): Likewise.
11112 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11113 (DWARF_FRAME_REGNUM): Likewise.
11114 (FIXED_REGISTERS): Likewise.
11115 (CALL_USED_REGISTERS): Likewise.
11116 (CALL_REALLY_USED_REGISTERS): Likewise.
11117 (REG_ALLOC_ORDER): Likewise.
11118 (enum reg_class): Likewise.
11119 (REG_CLASS_NAMES): Likewise.
11120 (REG_CLASS_CONTENTS): Likewise.
11121 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11122
11123 2014-08-04 Richard Biener <rguenther@suse.de>
11124
11125 * gimple-fold.h (gimple_fold_builtin): Remove.
11126 * gimple-fold.c (gimple_fold_builtin): Make static.
11127 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11128 fold_stmt, not gimple_fold_builtin.
11129
11130 2014-08-04 Martin Liska <mliska@suse.cz>
11131
11132 * cgraph.h (csi_end_p): Removed.
11133 (csi_next): Likewise.
11134 (csi_node): Likewise.
11135 (csi_start): Likewise.
11136 (cgraph_node_in_set_p): Likewise.
11137 (cgraph_node_set_size): Likewise.
11138 (vsi_end_p): Likewise.
11139 (vsi_next): Likewise.
11140 (vsi_node): Likewise.
11141 (vsi_start): Likewise.
11142 (varpool_node_set_size): Likewise.
11143 (cgraph_node_set_nonempty_p): Likewise.
11144 (varpool_node_set_nonempty_p): Likewise.
11145 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11146 cgraph_node_set.
11147 * ipa-inline-transform.c: Likewise.
11148 * ipa-utils.c (cgraph_node_set_new): Removed.
11149 (cgraph_node_set_add): Likewise.
11150 (cgraph_node_set_remove): Likewise.
11151 (cgraph_node_set_find): Likewise.
11152 (dump_cgraph_node_set): Likewise.
11153 (debug_cgraph_node_set): Likewise.
11154 (free_cgraph_node_set): Likewise.
11155 (varpool_node_set_new): Likewise.
11156 (varpool_node_set_add): Likewise.
11157 (varpool_node_set_remove): Likewise.
11158 (varpool_node_set_find): Likewise.
11159 (dump_varpool_node_set): Likewise.
11160 (free_varpool_node_set): Likewise.
11161 (debug_varpool_node_set): Likewise.
11162 * tree-emutls.c (struct tls_var_data):
11163 (emutls_index): Removed.
11164 (emutls_decl): Likewise.
11165 (gen_emutls_addr): Function implementation uses newly added
11166 hash_map<varpool_node *, tls_var_data>.
11167 (clear_access_vars): Likewise.
11168 (create_emultls_var): Likewise.
11169 (ipa_lower_emutls): Likewise.
11170 (reset_access): New function.
11171
11172 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11173
11174 * config/i386/i386.c (ix86_option_override_internal): Add
11175 PTA_RDRND and PTA_MOVBE for bdver4.
11176
11177 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11178 James Greenhalgh <james.greenhalgh@arm.com>
11179
11180 * doc/md.texi (clrsb): Document.
11181 (clz): Change reference to x into operand 1.
11182 (ctz): Likewise.
11183 (popcount): Likewise.
11184
11185 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11186
11187 PR target/61713
11188 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11189 move to subtarget in serial version if result is ignored.
11190
11191 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11192 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11193
11194 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11195 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11196 (sched_analyze_insn): Update use of try_group_insn to
11197 sched_macro_fuse_insns.
11198 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11199 arguments that are not conditional jumps.
11200
11201 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11202
11203 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11204 family information. Handle BTVER2 cpu with cpuid family value.
11205
11206 2014-08-04 Tom de Vries <tom@codesourcery.com>
11207
11208 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11209 (glibc_2_11_or_earlier): Document effective-target keywords.
11210
11211 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11212
11213 * ipa-devirt.c (odr_type_warn_count): Add type.
11214 (possible_polymorphic_call_targets): Set it.
11215 (ipa_devirt): Use it.
11216
11217 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11218
11219 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11220 Document.
11221 * ipa-devirt.c: Include hash-map.h
11222 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11223 (clear_speculation): Break out of ...
11224 (get_class_context): ... here; speed up handling obviously useless
11225 speculations.
11226 (odr_type_warn_count, decl_warn_count): New structures.
11227 (final_warning_record): New structure.
11228 (final_warning_records): New static variable.
11229 (possible_polymorphic_call_targets): Cleanup handling of
11230 speculative info; do not build speculation when user do not care;
11231 record info about warnings when asked for.
11232 (add_decl_warning): New function.
11233 (type_warning_cmp): New function.
11234 (decl_warning_cmp): New function.
11235 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11236 (gate): Enable pass when warnings are requested.
11237 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11238 options.
11239
11240 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11241
11242 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11243 Fix cast.
11244 (hash_map::remove): New method.
11245 (hash_map::traverse): New method.
11246 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11247 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11248 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11249 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11250 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11251 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11252 pointer_map.
11253
11254 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11255
11256 * hash-set.h: new File.
11257 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11258 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11259 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11260 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11261 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11262 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11263 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11264 varpool.c: Use hash_set instead of pointer_set.
11265
11266 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11267
11268 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11269
11270 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11271
11272 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11273 for frame access when strict_p is false.
11274
11275 2014-08-01 Renlin Li <renlin.li@arm.com>
11276 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11277
11278 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11279 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11280 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11281 Declaration.
11282 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11283 predicate.
11284 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11285 aarch64_mem_pair_offset.
11286
11287 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11288
11289 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11290 offset.
11291 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11292 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11293
11294 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11295
11296 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11297
11298 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11299
11300 PR regression/61510
11301 * cgraphunit.c (analyze_functions): Use get_create rather than get
11302 for decls which are clones of abstract functions.
11303
11304 2014-08-01 Martin Liska <mliska@suse.cz>
11305
11306 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11307 * ipa-prop.h (count_formal_params): Global function created from static.
11308 * ipa-prop.c (count_formal_params): Likewise.
11309 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11310 profiles for semantically equivalent functions.
11311 * passes.c (do_per_function): If we load body of a function
11312 during WPA, this condition should behave same.
11313 * varpool.c (ctor_for_folding): More tolerant assert for variable
11314 aliases created during WPA.
11315
11316 2014-08-01 Martin Liska <mliska@suse.cz>
11317
11318 * doc/invoke.texi (Options That Control Optimization): Documentation
11319 for -foptimize-strlen introduced. Optimization levels default options
11320 fixed.
11321
11322 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11323
11324 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11325 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11326 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11327 type to bool.
11328 * stor-layout.h (min_align_of_type): New prototype.
11329 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11330 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11331 check.
11332 * ubsan.c: Include builtins.h.
11333 (ubsan_expand_bounds_ifn): Change return type to bool,
11334 always return true.
11335 (ubsan_expand_null_ifn): Change return type to bool, change
11336 argument to gimple_stmt_iterator *. Handle both null and alignment
11337 sanitization, take type from ckind argument's type rather than
11338 first argument.
11339 (instrument_member_call): Removed.
11340 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11341 Handle both null and alignment sanitization, don't say whole
11342 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11343 call instead of 2 argument.
11344 (instrument_null): Adjust instrument_mem_ref caller. Don't
11345 instrument calls here.
11346 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11347 like SANITIZE_NULL.
11348 * stor-layout.c (min_align_of_type): New function.
11349 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11350 Or it into SANITIZE_UNDEFINED.
11351 * doc/invoke.texi (-fsanitize=alignment): Document.
11352
11353 2014-07-31 Andi Kleen <ak@linux.intel.com>
11354
11355 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11356
11357 2014-07-31 Andi Kleen <ak@linux.intel.com>
11358
11359 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11360 inchash.
11361 (vn_reference_compute_hash): Dito.
11362 (vn_nary_op_compute_hash): Dito.
11363 (vn_phi_compute_hash): Dito.
11364 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11365
11366 2014-07-31 Andi Kleen <ak@linux.intel.com>
11367
11368 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11369 Rename to inchash:add_expr_commutative. Convert to inchash.
11370 (iterative_hash_hashable_expr): Rename to
11371 inchash:add_hashable_expr. Convert to inchash.
11372 (avail_expr_hash): Dito.
11373
11374 2014-07-31 Andi Kleen <ak@linux.intel.com>
11375
11376 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11377 Convert to inchash.
11378
11379 2014-07-31 Andi Kleen <ak@linux.intel.com>
11380
11381 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11382
11383 2014-07-31 Andi Kleen <ak@linux.intel.com>
11384
11385 * Makefile.in (OBJS): Add rtlhash.o
11386 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
11387 (loc_checksum): Dito.
11388 (loc_checksum_ordered): Dito.
11389 (hash_loc_operands): Dito.
11390 (hash_locs): Dito.
11391 (hash_loc_list): Dito.
11392 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
11393 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
11394 * rtlhash.c: New file.
11395 * rtlhash.h: New file.
11396
11397 2014-07-31 Andi Kleen <ak@linux.intel.com>
11398
11399 * inchash.h (inchash): Change inchash class to namespace.
11400 (class hash): ... Rename from inchash.
11401 (add_object): Move from macro to class template.
11402 * lto-streamer-out.c (hash_tree): Change inchash
11403 to inchash::hash.
11404 * tree.c (build_type_attribute_qual_variant): Dito.
11405 (type_hash_list): Dito.
11406 (attribute_hash_list): Dito.
11407 (iterative_hstate_expr): Rename to inchash::add_expr
11408 (build_range_type_1): Change inchash to inchash::hash
11409 and use hash::add_expr.
11410 (build_array_type_1): Dito.
11411 (build_function_type): Dito
11412 (build_method_type_directly): Dito.
11413 (build_offset_type): Dito.
11414 (build_complex_type): Dito.
11415 (make_vector_type): Dito.
11416 * tree.h (iterative_hash_expr): Dito.
11417
11418 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
11419
11420 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
11421
11422 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11423
11424 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
11425 correct alphabetical position.
11426 (vpaddd_f64): Rewrite using builtins.
11427 (vpaddd_s64): Move to correct alphabetical position.
11428 (vpaddd_u64): New.
11429
11430 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
11431
11432 PR target/61844
11433 * config/sh/sh.c (sh_legitimate_address_p,
11434 sh_legitimize_reload_address): Handle reg+reg address modes when
11435 ALLOW_INDEXED_ADDRESS is false.
11436 * config/sh/predicates.md (general_movsrc_operand,
11437 general_movdst_operand): Likewise.
11438
11439 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11440
11441 * config/aarch64/aarch64-builtins.c
11442 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
11443 BYTES_BIG_ENDIAN.
11444
11445 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
11446
11447 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
11448 the generated mask based on BYTES_BIG_ENDIAN.
11449 (aarch64_simd_check_vect_par_cnst_half): New.
11450 * config/aarch64/aarch64-protos.h
11451 (aarch64_simd_check_vect_par_cnst_half): New.
11452 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
11453 the check out to aarch64_simd_check_vect_par_cnst_half.
11454 (vect_par_cnst_lo_half): Likewise.
11455 * config/aarch64/aarch64-simd.md
11456 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
11457 (move_hi_quad_<mode>): Always generate a low mask.
11458
11459 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11460
11461 * doc/invoke.texi (AVR Options): Add documentation about
11462 __AVR_DEVICE_NAME__ built-in macro.
11463
11464 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
11465
11466 PR target/61948
11467 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
11468 constraints are satisfied.
11469 (<shift>di3_neon): Likewise.
11470
11471 2014-07-31 Richard Biener <rguenther@suse.de>
11472
11473 PR tree-optimization/61964
11474 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
11475 by structural equality.
11476
11477 2014-07-31 Yury Gribov <y.gribov@samsung.com>
11478
11479 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
11480 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
11481 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
11482 New enums.
11483 * gcc.c (sanitize_spec_function): Support new option.
11484 (SANITIZER_SPEC): Remove now redundant check.
11485 * opts.c (common_handle_option): Support new option.
11486 (finish_options): Check for incompatibilities.
11487 * toplev.c (process_options): Split userspace-specific checks.
11488
11489 2014-07-31 Richard Biener <rguenther@suse.de>
11490
11491 * lto-streamer.h (struct output_block): Remove global.
11492 (struct data_in): Remove labels, num_named_labels and
11493 num_unnamed_labels.
11494 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11495 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11496
11497 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11498
11499 PR c++/60517
11500 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11501 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11502 (isolate_path): New argument to avoid inserting a trap.
11503 (find_implicit_erroneous_behaviour): Handle returning the address
11504 of a local variable.
11505 (find_explicit_erroneous_behaviour): Likewise.
11506
11507 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11508
11509 PR lto/61868
11510 * toplev.c (init_random_seed): Move piece of code never called to
11511 set_random_seed.
11512 (set_random_seed): see above.
11513
11514 2014-07-31 Tom de Vries <tom@codesourcery.com>
11515
11516 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11517
11518 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11519
11520 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11521 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11522
11523 2014-07-31 Richard Biener <rguenther@suse.de>
11524
11525 * data-streamer.h (streamer_write_data_stream): Declare here,
11526 renamed from ...
11527 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11528 * lto-cgraph.c (lto_output_node): Adjust.
11529 (lto_output_varpool_node): Likewise.
11530 * data-streamer-out.c (streamer_string_index): Likewise.
11531 (streamer_write_data_stream, lto_append_block): Move from ...
11532 * lto-section-out.c (lto_output_data_stream,
11533 lto_append_block): ... here.
11534
11535 2014-07-30 Mike Stump <mikestump@comcast.net>
11536
11537 * configure.ac: Also check for popen.
11538 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11539 * configure: Regenerate.
11540 * config.in: Regenerate.
11541
11542 2014-07-30 Martin Jambor <mjambor@suse.cz>
11543
11544 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11545 parameter to gimple.
11546
11547 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11548
11549 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11550 address as second parameter to __tpf_eh_return routine.
11551
11552 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11553
11554 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11555 Thumb2.
11556
11557 2014-07-30 Tom Tromey <tromey@redhat.com>
11558
11559 PR c/59855
11560 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11561 * doc/extend.texi (Type Attributes): Document designated_init
11562 attribute.
11563
11564 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11565
11566 * graphite-isl-ast-to-gimple.c:
11567 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11568 (gcc_expression_from_isl_expression): Pass type to
11569 gcc_expression_from_isl_ast_expr_id.
11570
11571 2014-07-30 Richard Biener <rguenther@suse.de>
11572
11573 * lto-streamer.h (lto_write_data): New function.
11574 * langhooks.c (lhd_append_data): Do not free block.
11575 * lto-section-out.c (lto_write_data): New function writing
11576 raw data to the current section.
11577 (lto_write_stream): Adjust for langhook semantic change.
11578 (lto_destroy_simple_output_block): Write header directly.
11579 * lto-opts.c (lto_write_options): Write options directly.
11580 * lto-streamer-out.c (produce_asm): Write heaeder directly.
11581 (lto_output_toplevel_asms): Likewise.
11582 (copy_function_or_variable): Copy data directly.
11583 (write_global_references): Output index table directly.
11584 (lto_output_decl_state_refs): Likewise.
11585 (write_symbol): Write data directly.
11586 (produce_symtab): Adjust.
11587 (produce_asm_for_decls): Output header and refs directly.
11588
11589 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11590
11591 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11592 to speculative_targets
11593 (get_class_context): Fix handling of contextes without outer type;
11594 avoid matching non-polymorphic types in LTO.
11595 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11596 parameter to speculative_targetsp; handle speculation.
11597 (dump_possible_polymorphic_call_targets): Update dumping.
11598
11599 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11600
11601 * common.opt (Wodr): Enable by default.
11602
11603 2014-07-29 Olivier Hainque <hainque@adacore.com>
11604
11605 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11606
11607 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
11608
11609 PR bootstrap/61914
11610 * gengtype.c (strtoken): New function.
11611 (create_user_defined_type): Replace strtok with strtoken.
11612
11613 2014-07-29 Nathan Sidwell <nathan@acm.org>
11614
11615 * gcov-io.c (gcov_var): Make hidden.
11616 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11617 (gcov_do_dump): Declare.
11618 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11619
11620 2014-07-29 Martin Jambor <mjambor@suse.cz>
11621
11622 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11623 parameter to gimple.
11624 (sra_modify_assign): Likewise.
11625
11626 2014-07-29 Richard Biener <rguenther@suse.de>
11627
11628 PR middle-end/52478
11629 * expr.c (expand_expr_real_2): Revert last change.
11630
11631 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11632
11633 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11634 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11635 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11636 call.
11637 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11638 (contains_type_p): Forward declare.
11639 (polymorphic_call_target_hasher::hash): Hash speculative info.
11640 (polymorphic_call_target_hasher::equal): Compare speculative info.
11641 (get_class_context): Handle speuclation.
11642 (contains_type_p): Update.
11643 (get_polymorphic_call_info_for_decl): Update.
11644 (walk_ssa_copies): Break out from ...
11645 (get_polymorphic_call_info): ... here; set speculative context
11646 before giving up.
11647 * ipa-prop.c (ipa_write_indirect_edge_info,
11648 ipa_read_indirect_edge_info): Stream speculative context.
11649 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11650 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11651 SPECULATIVE_MAYBE_DERIVED_TYPE).
11652 (possible_polymorphic_call_targets overriders): Update.
11653 (dump_possible_polymorphic_call_targets overriders): Update.
11654 (dump_possible_polymorphic_call_target_p overriders): Update.
11655
11656 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11657
11658 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11659 ipa-devirt path; fix thinko there.
11660
11661 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11662
11663 * config/i386/i386.c (ix86_return_in_memory): Replace one
11664 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11665
11666 2014-07-28 Marek Polacek <polacek@redhat.com>
11667
11668 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
11669
11670 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
11671
11672 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11673 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11674 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11675 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11676 (USE_LD_AS_NEEDED): Likewise.
11677 (ASM_APP_ON): Likewise.
11678 (ASM_APP_OFF): Likewise.
11679 (TARGET_POSIX_IO): Likewise.
11680 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11681 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11682 (USE_LD_AS_NEEDED): Likewise.
11683 (ASM_APP_ON): Likewise.
11684 (ASM_APP_OFF): Likewise.
11685 (TARGET_POSIX_IO): Likewise.
11686
11687 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11688
11689 PR middle-end/61734
11690 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11691 operators other than the equality operators.
11692
11693 2014-07-28 Richard Biener <rguenther@suse.de>
11694
11695 PR middle-end/52478
11696 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11697 sure to register SImode ones, not only >= word_mode ones.
11698 * expr.c (expand_expr_real_2): When expanding -ftrapv
11699 binops do not use OPTAB_LIB_WIDEN.
11700
11701 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11702
11703 PR middle-end/61919
11704 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11705 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11706 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11707 inserting them in the insn stream.
11708
11709 2014-07-28 Marek Polacek <polacek@redhat.com>
11710
11711 PR middle-end/61913
11712 * common.opt (Wodr): Add Var.
11713
11714 2014-07-28 Richard Biener <rguenther@suse.de>
11715
11716 PR tree-optimization/61921
11717 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11718 if there is a varpool node before dereferencing it.
11719
11720 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11721
11722 * graphite-sese-to-poly.c:
11723 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11724 id of the pbb), which contains pointer to the pbb1.
11725
11726 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11727
11728 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11729
11730 * graphite-isl-ast-to-gimple.c:
11731 (graphite_create_new_guard): New function.
11732 (translate_isl_ast_node_if): New function.
11733 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11734
11735 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11736
11737 2014-07-27 Anthony Green <green@moxielogic.com>
11738
11739 * config.gcc: Add moxie-*-moxiebox* configuration.
11740 * config/moxie/moxiebox.h: New file.
11741
11742 2014-07-26 Andrew Pinski <apinski@cavium.com>
11743
11744 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11745 from the read only register.
11746
11747 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11748
11749 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11750 as the allocation class if it isn't likely to be spilled.
11751
11752 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11753
11754 * rtl.h (tls_referenced_p): Declare.
11755 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11756 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11757 (mips_cannot_force_const_mem): Use tls_referenced_p.
11758 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11759 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11760 instead of pa_tls_referenced_p.
11761 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11762 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11763 (pa_legitimate_constant_p): Likewise.
11764 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11765 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11766 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11767 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11768 rs6000_tls_referenced_p.
11769 (rs6000_tls_symbol_ref_1): Delete.
11770
11771 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11772
11773 PR target/44551
11774 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11775 Optimize inverse of a VEC_CONCAT.
11776
11777 2014-07-25 Xinliang David Li <davidxl@google.com>
11778
11779 * params.def: New parameter.
11780 * coverage.c (get_coverage_counts): Check new flag.
11781 (coverage_compute_profile_id): Check new flag.
11782 (coverage_begin_function): Check new flag.
11783 (coverage_end_function): Check new flag.
11784 * value-prof.c (coverage_node_map_initialized_p): New function.
11785 (init_node_map): Populate map with all functions.
11786 * doc/invoke.texi: Document new parameter.
11787
11788 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11789 Richard Biener <rguenther@suse.de>
11790
11791 * lto-streamer-out.c (struct sccs): Turn to ...
11792 (class DFS): ... this one; refactor the DFS walk so it can
11793 be re-done on per-SCC basis.
11794 (DFS::DFS): New constructor.
11795 (DFS::~DFS): New destructor.
11796 (hash_tree): Add new MAP argument holding in-SCC hash values;
11797 remove POINTER_TYPE hashing hack.
11798 (scc_entry_compare): Rename to ...
11799 (DFS::scc_entry_compare): ... this one.
11800 (hash_scc): Rename to ...
11801 (DFS::hash_scc): ... this one; pass output_block instead
11802 of streamer_cache; work harder to get unique and stable SCC
11803 hashes.
11804 (DFS_write_tree): Rename to ...
11805 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11806 (lto_output_tree): Update.
11807
11808 2014-07-25 Andi Kleen <ak@linux.intel.com>
11809
11810 * lto-streamer-out.c (hash_tree): Convert to inchash.
11811
11812 2014-07-25 Andi Kleen <ak@linux.intel.com>
11813
11814 * tree.c (build_type_attribute_qual_variant): Use inchash.
11815 (type_hash_list): Dito.
11816 (attribute_hash_list): Dito
11817 (iterative_hstate_expr): Dito.
11818 (iterative_hash_expr): Dito.
11819 (build_range_type_1): Dito.
11820 (build_array_type_1): Dito.
11821 (build_function_type): Dito.
11822 (build_method_type_directly): Dito.
11823 (build_offset_type): Dito.
11824 (build_complex_type): Dito.
11825 (make_vector_type): Dito.
11826 * tree.h (iterative_hash_expr): Add compat wrapper.
11827 (iterative_hstate_expr): Add.
11828
11829 2014-07-25 Andi Kleen <ak@linux.intel.com>
11830
11831 * Makefile.in (OBJS): Add inchash.o.
11832 (PLUGIN_HEADERS): Add inchash.h.
11833 * ipa-devirt.c: Include inchash.h.
11834 * lto-streamer-out.c: Dito.
11835 * tree-ssa-dom.c: Dito.
11836 * tree-ssa-pre.c: Dito.
11837 * tree-ssa-sccvn.c: Dito.
11838 * tree-ssa-tail-merge.c: Dito.
11839 * asan.c: Dito.
11840 * tree.c (iterative_hash_hashval_t): Move to ...
11841 (iterative_hash_host_wide_int): Move to ...
11842 * inchash.c: Here. New file.
11843 * tree.h (iterative_hash_hashval_t): Move to ...
11844 (iterative_hash_host_wide_int): Move to ...
11845 * inchash.h: Here. New file.
11846
11847 2014-07-25 Richard Biener <rguenther@suse.de>
11848
11849 PR middle-end/61762
11850 PR middle-end/61894
11851 * fold-const.c (native_encode_int): Add and handle offset
11852 parameter to do partial encodings of expr.
11853 (native_encode_fixed): Likewise.
11854 (native_encode_real): Likewise.
11855 (native_encode_complex): Likewise.
11856 (native_encode_vector): Likewise.
11857 (native_encode_string): Likewise.
11858 (native_encode_expr): Likewise.
11859 * fold-const.c (native_encode_expr): Add offset parameter
11860 defaulting to -1.
11861 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
11862 (fold_ctor_reference): Handle all reads from tcc_constant
11863 ctors.
11864
11865 2014-07-25 Richard Biener <rguenther@suse.de>
11866
11867 * tree-inline.c (estimate_move_cost): Mark speed_p argument
11868 as possibly unused.
11869
11870 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11871
11872 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
11873
11874 2014-07-24 Kyle McMartin <kyle@redhat.com>
11875
11876 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
11877
11878 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11879
11880 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
11881 Add prototype.
11882 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
11883 function.
11884 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
11885 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11886 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11887
11888 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11889
11890 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
11891 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
11892 aggregate types. Instead, *all* aggregate types, except for single-
11893 element or homogeneous float/vector aggregates, are quadword-aligned
11894 if required by their type alignment. Issue -Wpsabi note when a type
11895 is now treated differently than before.
11896
11897 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11898
11899 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
11900 does not fit fully into floating-point registers, and there is still
11901 space in the register parameter area, use GPRs to pass those parts
11902 of the argument. Issue -Wpsabi note if any parameter is now treated
11903 differently than before.
11904 (rs6000_arg_partial_bytes): Update.
11905
11906 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
11907
11908 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
11909
11910 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11911
11912 * rtl.h (target_rtl): Remove lang_dependent_initialized.
11913 * toplev.c (initialize_rtl): Don't use it. Move previously
11914 "language-dependent" calls to...
11915 (backend_init): ...here.
11916 (lang_dependent_init_target): Don't set lang_dependent_initialized.
11917 Assert that RTL initialization hasn't happend yet.
11918
11919 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11920
11921 PR rtl-optimization/61629
11922 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
11923 they have already been initialized.
11924
11925 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11926
11927 PR middle-end/61268
11928 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
11929 DECL_INCOMING_RTL and entry_parm.
11930 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
11931 * calls.c (load_register_parameters): Likewise argument values.
11932 (emit_library_call_value_1, store_one_arg): Likewise argument
11933 save areas.
11934 * config/i386/i386.c (assign_386_stack_local): Likewise the local
11935 stack slot.
11936 * explow.c (validize_mem): Modify the argument in-place.
11937
11938 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11939
11940 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
11941 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
11942
11943 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11944
11945 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
11946 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
11947
11948 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11949
11950 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
11951 (aarch64_save_callee_saves): New parameter "skip_wb".
11952 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
11953
11954 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11955
11956 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
11957 "wb_candidate2".
11958 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
11959
11960 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11961
11962 * graphite-isl-ast-to-gimple.c:
11963 (graphite_create_new_loop): Add calling of isl_id_free to properly
11964 decrement reference counts.
11965
11966 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
11967
11968 2014-07-24 Martin Liska <mliska@suse.cz>
11969 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
11970 function used.
11971 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
11972 (rs6000_code_end): Likewise.
11973
11974 2014-07-24 Martin Liska <mliska@suse.cz>
11975
11976 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
11977 symtab_node funtion used.
11978 (rs6000_xcoff_declare_object_name): Likewise.
11979
11980 2014-07-24 Martin Liska <mliska@suse.cz>
11981
11982 * cgraphunit.c (compile): Correct function used.
11983
11984 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11985
11986 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
11987 as non-indexable.
11988
11989 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11990
11991 PR lto/61802
11992 * varasm.c (bss_initializer_p): Handle offlined ctors.
11993 (align_variable, get_variable_align): Likewise.
11994 (make_decl_one_only): Likewise.
11995 (default_binds_local_p_1): Likewise.
11996 (decl_binds_to_current_def_p): Likewise.
11997 (get_variable_section): Get constructor if it is offlined.
11998 (assemble_variable_contents): Sanity check that the caller
11999 streamed in the ctor in LTO.
12000
12001 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12002
12003 * graphite-isl-ast-to-gimple.c:
12004 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12005 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12006 isl_ast_op_pdiv_r to the different case.
12007
12008 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12009
12010 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12011
12012 PR middle-end/61876
12013 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12014 when flag_errno_math is on.
12015
12016 2014-07-24 Martin Liska <mliska@suse.cz>
12017
12018 * cgraph.h (varpool_node):
12019 (availability get_availability (void)):
12020 created from cgraph_variable_initializer_availability
12021 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12022 created from: cgraph_variable_initializer_availability
12023 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12024 (void finalize_named_section_flags (void)):
12025 created from varpool_finalize_named_section_flags
12026 (bool assemble_decl (void)): created from varpool_assemble_decl
12027 (void analyze (void)): created from varpool_analyze_node
12028 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12029 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12030 (void remove_initializer (void)): created from varpool_remove_initializer
12031 (tree get_constructor (void)): created from varpool_get_constructor
12032 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12033 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12034 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12035 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12036 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12037 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12038 (static bool output_variables (void)): created from varpool_output_variables
12039 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12040 created from varpool_extra_name_alias
12041 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12042 (static void dump_varpool (FILE *f)): created from dump_varpool
12043 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12044 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12045 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12046 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12047 (void assemble_aliases (void)): created from assemble_aliases
12048
12049 2014-07-24 Martin Liska <mliska@suse.cz>
12050
12051 * cgraph.h (symtab_node):
12052 (void register_symbol (void)): created from symtab_register_node
12053 (void remove (void)): created from symtab_remove_node
12054 (void dump (FILE *f)): created from dump_symtab_node
12055 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12056 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12057 (struct ipa_ref *add_reference (symtab_node *referred_node,
12058 enum ipa_ref_use use_type)): created from add_reference
12059 (struct ipa_ref *add_reference (symtab_node *referred_node,
12060 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12061 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12062 gimple stmt)): created from maybe_add_reference
12063 (bool semantically_equivalent_p (symtab_node *target)): created from
12064 symtab_semantically_equivalent_p
12065 (void remove_from_same_comdat_group (void)): created from
12066 remove_from_same_comdat_group
12067 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12068 symtab_add_to_same_comdat_group
12069 (void dissolve_same_comdat_group_list (void)): created from
12070 symtab_dissolve_same_comdat_group_list
12071 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12072 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12073 created from symtab_alias_ultimate_target
12074 (inline symtab_node *next_defined_symbol (void)): created from
12075 symtab_next_defined_symbol
12076 (bool resolve_alias (symtab_node *target)): created from
12077 symtab_resolve_alias
12078 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12079 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12080 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12081 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12082 (void set_section (const char *section)): created from set_section_1
12083 (enum availability get_availability (void)): created from symtab_node_availability
12084 (void make_decl_local (void)): created from symtab_make_decl_local
12085 (bool real_symbol_p (void)): created from symtab_read_node
12086 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12087 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12088 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12089 symtab_in_same_comdat_p;
12090 (bool address_taken_from_non_vtable_p (void)): created from
12091 address_taken_from_non_vtable_p
12092 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12093 (static void dump_table (FILE *)): created from dump_symtab
12094 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12095 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12096 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12097 symtab_used_from_object_file_p
12098 (void dump_base (FILE *)): created from dump_symtab_base
12099 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12100 (void unregister (void)): created from symtab_unregister_node
12101 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12102 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12103 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12104 symtab_nonoverwritable_alias_1
12105 * cgraph.h (cgraph_node):
12106 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12107 created from cgraph_remove_node_and_inline_clones
12108 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12109 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12110 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12111 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12112 created from cgraph_function_node
12113 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12114 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12115 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12116 created from cgraph_create_clone
12117 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12118 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12119 created from cgraph_create_virtual_clone
12120 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12121 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12122 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12123 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12124 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12125 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12126 created from cgraph_function_version_info
12127 (struct cgraph_function_version_info *insert_new_function_version (void)):
12128 created from insert_new_cgraph_node_version
12129 (struct cgraph_function_version_info *function_version (void)): created from
12130 get_cgraph_node_version
12131 (void analyze (void)): created from analyze_function
12132 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12133 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12134 tree real_alias) cgraph_add_thunk
12135 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12136 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12137 created from cgraph_function_or_thunk_node
12138 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12139 created from expand_thunk
12140 (void reset (void)): created from cgraph_reset_node
12141 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12142 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12143 (void remove (void)): created from cgraph_remove_node
12144 (void dump (FILE *f)): created from dump_cgraph_node
12145 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12146 (bool get_body (void)): created from cgraph_get_body
12147 (void release_body (void)): created from cgraph_release_function_body
12148 (void unnest (void)): created from cgraph_unnest_node
12149 (void make_local (void)): created from cgraph_make_node_local
12150 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12151 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12152 gcov_type count, int freq)): created from cgraph_create_edge
12153 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12154 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12155 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12156 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12157 created from cgraph_create_edge_including_clones
12158 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12159 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12160 (void remove_callers (void)): created from cgraph_node_remove_callers
12161 (void remove_callees (void)): created from cgraph_node_remove_callees
12162 (enum availability get_availability (void)): created from cgraph_function_body_availability
12163 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12164 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12165 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12166 (void call_duplication_hooks (cgraph_node *node2)): created from
12167 cgraph_call_node_duplication_hooks
12168 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12169 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12170 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12171 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12172 (void call_function_insertion_hooks (void)):
12173 created from cgraph_call_function_insertion_hooks
12174 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12175 (bool local_p (void)): created from cgraph_local_node
12176 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12177 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12178 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12179 (inline bool only_called_directly_or_aliased_p (void)):
12180 created from cgraph_only_called_directly_or_aliased_p
12181 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12182 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12183 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12184 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12185 (bool can_remove_if_no_direct_calls_p (void)):
12186 created from cgraph_can_remove_if_no_direct_calls_p
12187 (inline bool has_gimple_body_p (void)):
12188 created from cgraph_function_with_gimple_body_p
12189 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12190 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12191 (static inline void debug_cgraph (void)): created from debug_cgraph
12192 (static void record_function_versions (tree decl1, tree decl2)):
12193 created from record_function_versions
12194 (static void delete_function_version (tree decl)):
12195 created from delete_function_version
12196 (static void add_new_function (tree fndecl, bool lowered)):
12197 created from cgraph_add_new_function
12198 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12199 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12200 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12201 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12202 (static cgraph_node *get_for_asmname (tree asmname)):
12203 created from cgraph_node_for_asm
12204 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12205 created from cgraph_same_body_alias
12206 (static bool used_from_object_file_p_worker (cgraph_node *node,
12207 void *): new function
12208 (static bool non_local_p (cgraph_node *node, void *)):
12209 created from cgraph_non_local_node_p_1
12210 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12211 created from verify_cgraph
12212 (static bool make_local (cgraph_node *node, void *)):
12213 created from cgraph_make_node_local
12214 (static cgraph_node *create_alias (tree alias, tree target)):
12215 created from cgraph_create_function_alias
12216 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12217 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12218 created from cgraph_create_edge_1
12219 * cgraph.h (varpool_node):
12220 (void remove (void)): created from varpool_remove_node
12221 (void dump (FILE *f)): created from dump_varpool_node
12222
12223 2014-07-24 Richard Biener <rguenther@suse.de>
12224
12225 PR ipa/61823
12226 * tree-ssa-structalias.c (create_variable_info_for_1):
12227 Use varpool_get_constructor.
12228 (create_variable_info_for): Likewise.
12229
12230 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12231
12232 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12233 subtract outgoing area size when restoring stack_pointer_rtx.
12234
12235 2014-07-24 Nick Clifton <nickc@redhat.com>
12236
12237 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12238 that operations are taking place in parallel.
12239 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12240
12241 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12242
12243 * omp-low.c (extract_omp_for_data): Add missing break statement.
12244
12245 2014-07-24 Richard Biener <rguenther@suse.de>
12246
12247 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12248 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12249 and adjust MOVE_RATIO query accordingly.
12250 (estimate_num_insns): Adjust callers.
12251 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12252 * ipa-cp.c (gather_context_independent_values,
12253 estimate_local_effects): Likewise.
12254 * ipa-split.c (consider_split): Likewise.
12255
12256 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12257
12258 * config/i386/driver-i386.c: Remove names of unused arguments and
12259 unnecessary unused attributes.
12260 * config/i386/host-mingw32.c: Likewise.
12261 * config/i386/i386.c: Likewise.
12262 * config/i386/winnt-stubs.c: Likewise.
12263 * config/i386/winnt.c: Likewise.
12264
12265 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12266
12267 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12268 (aarch64_gen_loadwb_pair): New helper function.
12269 (aarch64_expand_epilogue): Simplify code using new helper functions.
12270 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12271
12272 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12273
12274 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12275 (aarch64_gen_storewb_pair): New helper function.
12276 (aarch64_expand_prologue): Simplify code using new helper functions.
12277 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12278
12279 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12280
12281 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12282 Rename to aarch64_save_callee_saves, remove restore code.
12283 (aarch64_restore_callee_saves): New function.
12284
12285 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12286
12287 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12288 (aarch64_save_callee_saves): New function to handle reg save
12289 for both core and vectore regs.
12290
12291 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12292
12293 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12294 (aarch64_gen_store_pair): New helper function.
12295 (aarch64_save_or_restore_callee_save_registers)
12296 (aarch64_save_or_restore_fprs): Use new helper functions.
12297
12298 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12299
12300 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12301 (aarch64_save_or_restore_callee_save_registers)
12302 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12303
12304 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12305
12306 * config/aarch64/aarch64.c
12307 (aarch64_save_or_restore_callee_save_registers)
12308 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12309
12310 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12311
12312 * config/aarch64/aarch64.c
12313 (aarch64_save_or_restore_callee_save_registers)
12314 (aarch64_save_or_restore_fprs): Remove 'increment'.
12315
12316 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12317
12318 * config/aarch64/aarch64.c
12319 (aarch64_save_or_restore_callee_save_registers)
12320 (aarch64_save_or_restore_fprs): Use register offset in
12321 cfun->machine->frame.reg_offset.
12322
12323 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12324
12325 * config/aarch64/aarch64.c
12326 (aarch64_save_or_restore_callee_save_registers)
12327 (aarch64_save_or_restore_fprs): Remove base_rtx.
12328
12329 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12330
12331 * config/aarch64/aarch64.c
12332 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12333 to 'start_offset'. Remove local variable 'start_offset'.
12334
12335 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12336
12337 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12338 type to HOST_WIDE_INT.
12339
12340 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12341
12342 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12343 (aarch64_save_or_restore_fprs)
12344 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12345
12346 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12347
12348 * config/arm/t-rtems-eabi: Add
12349 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12350 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12351 mbig-endian/mthumb/march=armv7-r, and
12352 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12353 multilibs.
12354
12355 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12356 Chris Johns <chrisj@rtems.org>
12357 Joel Sherrill <joel.sherrill@oarcorp.com>
12358
12359 * config.gcc: Add nios2-*-rtems*.
12360 * config/nios2/rtems.h: New file.
12361 * gcc/config/nios2/t-rtems: New file.
12362
12363 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12364
12365 PR target/61396
12366 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12367 constant numbers, not general constants.
12368 (rs6000_expand_vector_init): Ditto.
12369
12370 2014-07-23 Nathan Sidwell <nathan@acm.org>
12371
12372 * gcov-tool.c (gcov_list): Declare here.
12373 (set_gcov_list): Remove.
12374 (gcov_output_files): Set gcov_list directly.
12375
12376 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12377
12378 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12379
12380 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12381
12382 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12383 callee-saved registers are available for padding purpose
12384 and r3 is not mandatory, then prefer use those callee-saved
12385 instead of r3.
12386
12387 2014-07-23 Richard Biener <rguenther@suse.de>
12388
12389 * params.def (PARAM_MAX_COMBINE_INSNS): New.
12390 * combine.c: Include statistics.h and params.h.
12391 (combine_instructions): Guard three and four insn combines
12392 with max-combine-insns value. Record statistics for combines
12393 performed.
12394 * doc/invoke.texi (max-combine-insns): Document new param.
12395
12396 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12397
12398 * graphite-isl-ast-to-gimple.c:
12399 (translate_isl_ast_node_block): New function.
12400 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
12401
12402 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
12403 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
12404
12405 2014-07-23 Roman Gareev <gareevroman@gmail.com>
12406
12407 * graphite-isl-ast-to-gimple.c:
12408 (get_max_schedule_dimensions): New function.
12409 (extend_schedule): Likewise.
12410 (generate_isl_schedule): Add calling of extend_schedule and
12411 get_max_schedule_dimensions.
12412
12413 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12414
12415 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
12416 (case UNSPEC): Handle UNSPEC_RBIT.
12417
12418 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12419
12420 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
12421 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
12422
12423 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12424
12425 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
12426
12427 2014-07-22 Roman Gareev <gareevroman@gmail.com>
12428
12429 * graphite-isl-ast-to-gimple.c:
12430 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
12431 (ivs_params_clear):
12432 (build_iv_mapping): New function.
12433 (translate_isl_ast_node_user): Likewise.
12434 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
12435
12436 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
12437 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
12438 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
12439
12440 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12441
12442 PR target/55701
12443 * config/arm/arm.md (setmem): New pattern.
12444 * config/arm/arm-protos.h (struct tune_params): New fields.
12445 (arm_gen_setmem): New prototype.
12446 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12447 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12448 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12449 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12450 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12451 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12452 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12453 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12454 (arm_const_inline_cost): New function.
12455 (arm_block_set_max_insns): New function.
12456 (arm_block_set_non_vect_profit_p): New function.
12457 (arm_block_set_vect_profit_p): New function.
12458 (arm_block_set_unaligned_vect): New function.
12459 (arm_block_set_aligned_vect): New function.
12460 (arm_block_set_unaligned_non_vect): New function.
12461 (arm_block_set_aligned_non_vect): New function.
12462 (arm_block_set_vect, arm_gen_setmem): New functions.
12463
12464 2014-07-21 Bin Cheng <bin.cheng@arm.com>
12465
12466 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12467
12468 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
12469
12470 PR target/61855
12471 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
12472 out of #ifdef __OPTIMIZE__.
12473
12474 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12475
12476 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
12477 different trapping status if -fnon-call-exceptions is enabled.
12478
12479 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
12480
12481 * expr.c (store_field): Handle VOIDmode for calls that return values
12482 in multiple locations.
12483
12484 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12485
12486 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12487 (altivec_vsldoi_<mode>): Likewise.
12488
12489 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12490
12491 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12492 to the number of characters in the line.
12493
12494 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12495
12496 * graphite-isl-ast-to-gimple.c: Add using of
12497 build_nonstandard_integer_type instead of int128_integer_type_node.
12498
12499 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12500
12501 * toplev.c (output_stack_usage): Adjust the location of the warning.
12502
12503 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12504
12505 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12506 (*membar_storeload): Disable for LEON3.
12507
12508 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12509
12510 PR rtl-optimization/61461
12511 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12512
12513 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12514
12515 PR target/61794
12516 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12517 Fix instruction constraint.
12518 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12519
12520 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12521
12522 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12523
12524 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12525
12526 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12527 GNU coding standards.
12528 (nds32_register_move_cost): Likewise.
12529 (nds32_memory_move_cost): Likewise.
12530 (nds32_address_cost): Likewise.
12531
12532 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12533
12534 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12535
12536 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12537
12538 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12539 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12540 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12541 (HAVE_sync_compare_and_swapqi): Define.
12542 (HAVE_sync_compare_and_swaphi): Likewise.
12543 (HAVE_sync_compare_and_swapsi): Likewise.
12544
12545 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12546
12547 * config/mips/p5600.md: Add missing cpu tests.
12548
12549 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12550
12551 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12552 (vmla_f64): Likewise.
12553 (vfms_f64): Likewise.
12554 (vmls_f64): Likewise.
12555
12556 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12557
12558 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12559 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12560
12561 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12562
12563 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12564 (vmlal_high_lane_s32): Likewise.
12565 (vmlal_high_lane_u16): Likewise.
12566 (vmlal_high_lane_u32): Likewise.
12567 (vmlsl_high_lane_s16): Likewise.
12568 (vmlsl_high_lane_s32): Likewise.
12569 (vmlsl_high_lane_u16): Likewise.
12570 (vmlsl_high_lane_u32): Likewise.
12571
12572 2014-07-17 Terry Guo <terry.guo@arm.com>
12573
12574 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12575 (alus_reg): Renamed to alus_sreg.
12576 * config/arm/arm-fixed.md: Change type of non-dsp instructions
12577 from alu_reg to alu_sreg. Change type of dsp instructions from
12578 alu_reg to alu_dsp_reg.
12579 * config/arm/thumb1.md: Likewise.
12580 * config/arm/thumb2.md: Likewise.
12581 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12582 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12583 with alu_sreg and alus_sreg.
12584 * config/arm/arm1026ejs.md (alu_op): Likewise.
12585 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12586 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12587 * config/arm/fa526.md (526_alu_op): Likewise.
12588 * config/arm/fa606te.md (606te_alu_op): Likewise.
12589 * config/arm/fa626te.md (626te_alu_op): Likewise.
12590 * config/arm/fa726te.md (726te_alu_op): Likewise.
12591 * config/arm/fmp626.md (mp626_alu_op): Likewise.
12592 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12593 alu_sreg, alu_dsp_reg and alus_sreg.
12594 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12595 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12596 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12597 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12598 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12599 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12600 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12601 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12602 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12603 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12604 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12605 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12606 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12607 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12608 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12609 alus_reg to alus_sreg.
12610
12611 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
12612
12613 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12614 infinity format.
12615
12616 2014-07-17 Richard Biener <rguenther@suse.de>
12617
12618 PR rtl-optimization/61801
12619 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12620 don't set reg_pending_barrier if it appears in a debug-insn.
12621
12622 2014-07-16 DJ Delorie <dj@redhat.com>
12623
12624 * config/rx/rx.c (rx_option_override): Fix alignment values.
12625 (rx_align_for_label): Likewise.
12626
12627 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
12628
12629 PR target/61737.
12630 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12631 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12632 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12633 functions.
12634 (cris_print_index, cris_print_operand, cris_constant_index_p)
12635 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12636 (cris_address_cost): Ditto last CONSTANT_P.
12637 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12638 callers changed. Yield cris_offsettable_symbol for non-PIC
12639 constant symbolic expressions including labels. Yield cris_unspec
12640 for all unspecs.
12641 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12642 target to pic_offset_table_rtx for calls that will likely go
12643 through PLT, const0_rtx when they can't. All callers changed.
12644 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12645 symbolic expressions to be PICified. Remove second, redundant,
12646 assert on can_create_pseudo_p returning non-zero. Use
12647 replace_equiv_address_nv, not replace_equiv_address, for final
12648 operand update.
12649 * config/cris/cris.md ("movsi"): Move variable t to pattern
12650 toplevel. Adjust assert for new cris_symbol_type member. Use
12651 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12652 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12653 for lapc stricter.
12654 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12655 ("call", "call_value"): Use second incoming operand as a marker
12656 for pic-offset-table-register being used.
12657 ("*expanded_call_non_v32", "*expanded_call_v32")
12658 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12659 second incoming operand to CALL, match cris_call_type_marker.
12660 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12661 ("*expanded_call_side"): Ditto. Fix typo in comment.
12662 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12663 CONSTANT_P.
12664 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12665 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12666 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
12667 users changed. Add members cris_offsettable_symbol and cris_unspec.
12668 (cris_symbol_type): Rename from cris_pic_symbol_type.
12669 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12670 just CONSTANT_P.
12671 * config/cris/cris-protos.h (cris_symbol_type_of,
12672 cris_expand_pic_call_address): Adjust prototypes.
12673 (cris_legitimate_constant_p): New prototype.
12674
12675 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12676 an existing tmake_file. Don't add t-slibgcc and t-linux.
12677
12678 2014-07-17 Jason Merrill <jason@redhat.com>
12679
12680 PR c++/61623
12681 * symtab.c (symtab_remove_from_same_comdat_group): Also
12682 set_comdat_group to NULL_TREE.
12683 (verify_symtab): Fix diagnostic.
12684
12685 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12686
12687 PR target/61662
12688 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12689
12690 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12691
12692 Support location tracking for built-in macro tokens
12693 * input.h (is_location_from_builtin_token): New function declaration.
12694 * input.c (is_location_from_builtin_token): New function definition.
12695 * toplev.c (general_init): Tell libcpp what the pre-defined
12696 spelling location for built-in tokens is.
12697
12698 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12699
12700 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12701 on the FUNCTION_DECL.
12702
12703 2014-07-16 Richard Biener <rguenther@suse.de>
12704
12705 PR other/61782
12706 * doc/extend.texi (always_inline): Clarify.
12707
12708 2014-07-15 Eric Christopher <echristo@gmail.com>
12709
12710 * doc/invoke.texi (Link Options): Document -z option.
12711
12712 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12713
12714 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12715 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12716
12717 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12718
12719 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12720
12721 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12722
12723 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12724 varpool_assemble_decl.
12725 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12726 true.
12727
12728 2014-07-15 Michael Matz <matz@suse.de>
12729
12730 PR rtl-optimization/61772
12731 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12732
12733 2014-07-15 Richard Biener <rguenther@suse.de>
12734
12735 * opts.c (default_options_table): Disable bit-ccp at -Og.
12736
12737 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12738
12739 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12740
12741 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12742
12743 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12744 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12745 call langhook for unknown declaration.
12746 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12747 * tree.h (DECL_ARGUMENTS): Update.
12748 * print-tree.c (print_node): Update.
12749 * tree-core.h (tree_decl_non_common): Remove arguments.
12750 (tree_function_decl): Add arguments.
12751
12752 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12753
12754 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12755
12756 2014-07-14 Richard Biener <rguenther@suse.de>
12757
12758 PR tree-optimization/61779
12759 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12760 simplifying a condition.
12761
12762 2014-07-14 Richard Biener <rguenther@suse.de>
12763
12764 * builtins.c (c_strlen): Make only_value == 2 really only
12765 affect warning generation.
12766
12767 2014-07-14 Richard Biener <rguenther@suse.de>
12768
12769 PR tree-optimization/61757
12770 PR tree-optimization/61783
12771 PR tree-optimization/61787
12772 * tree-ssa-dom.c (record_equality): Revert canonicalization
12773 change and add comment.
12774 (propagate_rhs_into_lhs): Revert previous fix, removing
12775 loop depth restriction again.
12776
12777 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12778
12779 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12780 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12781 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12782 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12783 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12784 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12785 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12786
12787 2014-07-14 Richard Biener <rguenther@suse.de>
12788
12789 * cgraph.h (decl_in_symtab_p): Make inline.
12790
12791 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12792
12793 PR middle-end/61294
12794 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12795
12796 PR target/61656
12797 * config/i386/i386.c (classify_argument): Don't merge classes above
12798 number of words.
12799
12800 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12801
12802 * cgraph.h (symtab_node): Add nonzero_address.
12803 (decl_in_symtab_p): Break out from ...
12804 (symtab_get_node): ... here.
12805 * fold-const.c: Include cgraph.h
12806 (tree_single_nonzero_warnv_p): Use symtab to determine
12807 if symbol is non-zero.
12808 * symtab.c (symtab_node::nonzero_address): New method.
12809
12810 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12811
12812 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12813 forgotten in previous commit.
12814
12815 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12816
12817 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12818 on builtin types.
12819 * ipa-devirt.c: Include stor-layout.h and intl.h
12820 (odr_subtypes_equivalent_p): New function.
12821 (warn_odr): New function.
12822 (warn_type_mismatch): New function.
12823 (odr_types_equivalent_p): New function.
12824 (add_type_duplicate): Use it.
12825 * common.opt (Wodr): New flag.
12826 * doc/invoke.texi (Wodr): Document new warning.
12827
12828 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12829
12830 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12831 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12832 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12833 (varpool_get_constructor): Push CTORS_IN timevar.
12834 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12835
12836 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12837
12838 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12839 Remove VOID_FTYPE_PUSHORT.
12840 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12841 Change code to USHORT_FTYPE_VOID.
12842 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12843 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12844 (ix86_atomic_assign_expand_fenv): Update for
12845 __builtin_ia32_fnstsw changes.
12846 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
12847 (fnstsw): Change operand 0 to nonimmediate operand.
12848
12849 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12850
12851 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
12852 (varpool_get_constructor): New function.
12853 (varpool_ctor_useable_for_folding_p): Break out from ...
12854 (ctor_for_folding): ... here; use varpool_get_constructor.
12855 (varpool_assemble_decl): Likewise.
12856 * lto-streamer.h (struct output_block): Turn cgraph_node
12857 to symbol filed.
12858 (lto_input_variable_constructor): Declare.
12859 * ipa-visibility.c (function_and_variable_visibility): Use
12860 varpool_get_constructor.
12861 * cgraph.h (varpool_get_constructor): Declare.
12862 (varpool_ctor_useable_for_folding_p): New function.
12863 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
12864 parameter; return error_mark_node for non-trivial constructors.
12865 (lto_write_tree_1, DFS_write_tree): Update use of
12866 get_symbol_initial_value.
12867 (output_function): Update initialization of symbol.
12868 (output_constructor): New function.
12869 (copy_function): Rename to ..
12870 (copy_function_or_variable): ... this one; handle vars too.
12871 (lto_output): Output variable sections.
12872 * lto-streamer-in.c (input_constructor): New function.
12873 (lto_read_body): Rename from ...
12874 (lto_read_body_or_constructor): ... this one; handle vars too.
12875 (lto_input_variable_constructor): New function.
12876 * ipa-prop.c (ipa_prop_write_jump_functions,
12877 ipa_prop_write_all_agg_replacement): Update.
12878 * lto-cgraph.c (compute_ltrans_boundary): Use it.
12879 (output_cgraph_opt_summary): Set symbol to NULL.
12880
12881 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12882
12883 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
12884 non-polymorphic types.
12885 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
12886 * ipa-devirt.c (types_same_for_odr): Do not explode when one
12887 of types is not polymorphic.
12888
12889 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
12890
12891 * lra-constraints.c (remove_inheritance_pseudos): Process
12892 destination pseudo too.
12893
12894 2014-07-11 Rong Xu <xur@google.com>
12895
12896 * gcov-tool.c (gcov_output_files): Fix build error introduced in
12897 commit r212448.
12898
12899 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12900
12901 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
12902 * config/avr/avr-devices.c (AVR_MCU): Same.
12903 (avr_mcu_types): add text start value to end of device list.
12904 * config/avr/avr-mcus.def: Add text section start for all devices.
12905 (ata5782): Add new avr5 device.
12906 (ata5831): Same.
12907 * config/avr/avr-tables.opt: Regenerate.
12908 * config/avr/avr.h: Add declaration for text section start handler.
12909 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
12910 SPEC functions.
12911 (LINK_SPEC): Include text section start handler to linker spec.
12912 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
12913 pass -Ttext option to linker if the text section start for the device
12914 is not zero.
12915 * config/avr/t-multilib: Regenerate.
12916 * doc/avr-mmcu.texi: Regenerate.
12917
12918 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
12919
12920 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
12921 * config/rs6000/aix52.h (LINK_SPEC): Same.
12922 * config/rs6000/aix53.h (LINK_SPEC): Same.
12923 * config/rs6000/aix61.h (LINK_SPEC): Same.
12924 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
12925
12926 2014-07-11 Roman Gareev <gareevroman@gmail.com>
12927
12928 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
12929 (graphite_verify): New function.
12930 (ivs_params_clear): New function.
12931 (gcc_expression_from_isl_ast_expr_id): New function.
12932 (gcc_expression_from_isl_expr_int): New function.
12933 (binary_op_to_tree): New function.
12934 (ternary_op_to_tree): New function.
12935 (unary_op_to_tree): New function.
12936 (nary_op_to_tree): New function.
12937 (gcc_expression_from_isl_expr_op): New function.
12938 (gcc_expression_from_isl_expression): New function.
12939 (graphite_create_new_loop): New function.
12940 (translate_isl_ast_for_loop): New function.
12941 (get_upper_bound): New function.
12942 (graphite_create_new_loop_guard): New function.
12943 (translate_isl_ast_node_for): New function.
12944 (translate_isl_ast): New function.
12945 (add_parameters_to_ivs_params): New function.
12946 (scop_to_isl_ast): New parameter ip.
12947 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
12948
12949 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12950
12951 * config/xtensa/predicates.md (call expander): Update for
12952 DECL_SECTION_NAME being string.
12953
12954 2014-07-11 Richard Biener <rguenther@suse.de>
12955
12956 PR middle-end/61473
12957 * builtins.c (fold_builtin_memory_op): Inline memory moves that
12958 can be implemented with a single load followed by a single store.
12959 (c_strlen): Only warn when only_value is not 2.
12960
12961 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
12962
12963 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
12964
12965 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
12966
12967 PR target/61561
12968 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
12969 (*movhi_bytes): Likewise.
12970 (*arm_movqi_insn): Likewise.
12971
12972 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
12973
12974 PR target/56858
12975 * config/alpha/alpha.c: Include tree-pass.h, context.h
12976 and pass_manager.h.
12977 (pass_data_handle_trap_shadows): New pass.
12978 (pass_handle_trap_shadows::gate): New pass gate function.
12979 (make_pass_handle_trap_shadows): New function.
12980 (rest_of_handle_trap_shadows): Ditto.
12981
12982 (alpha_align_insns_1): Rename from alpha_align_insns.
12983 (pass_data_align_insns): New pass.
12984 (pass_align_insns::gate): New pass gate function.
12985 (make_pass_aling_insns): New function.
12986 (rest_of_align_insns): Ditto.
12987 (alpha_align_insns): Ditto.
12988
12989 (alpha_option_override): Declare handle_trap_shadows info
12990 and align_insns_info. Register handle_trap_shadows and align_insns
12991 passes here.
12992 (alpha_reorg): Do not call alpha_trap_shadows and
12993 alpha_align_insn from here.
12994
12995 (alpha_pad_function_end): Do not skip BARRIERs.
12996
12997 2014-07-10 Rong Xu <xur@google.com>
12998
12999 Add gcov-tool: an offline gcda profile processing tool support.
13000 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13001 (gcov_is_error): Ditto.
13002 (gcov_read_string): Ditto.
13003 (gcov_read_sync): Ditto.
13004 * gcov-io.h: Move counter defines to gcov-counter.def.
13005 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13006 * coverage.c: Ditto.
13007 * gcov-tool.c: Offline gcda profile processing tool.
13008 (unlink_gcda_file): Remove one gcda file.
13009 (unlink_profile_dir): Remove gcda files from the profile path.
13010 (gcov_output_files): Output gcda files to an output dir.
13011 (profile_merge): Merge two profiles in directory.
13012 (print_merge_usage_message): Print merge usage.
13013 (merge_usage): Print merge usage and exit.
13014 (do_merge): Driver for profile merge sub-command.
13015 (profile_rewrite): Rewrite profile.
13016 (print_rewrite_usage_message): Print rewrite usage.
13017 (rewrite_usage): Print rewrite usage and exit.
13018 (do_rewrite): Driver for profile rewrite sub-command.
13019 (print_usage): Print gcov-info usage and exit.
13020 (print_version): Print gcov-info version.
13021 (process_args): Process arguments.
13022 (main): Main routine for gcov-tool.
13023 * Makefile.in: Build and install gcov-tool.
13024 * gcov-counter.def: New file split from gcov-io.h.
13025 * doc/gcc.texi: Include gcov-tool.texi.
13026 * doc/gcov-tool.texi: Document for gcov-tool.
13027
13028 2014-07-10 Richard Biener <rguenther@suse.de>
13029
13030 PR tree-optimization/61757
13031 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13032 (propagate_rhs_into_lhs): Revert part of last change.
13033
13034 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13035
13036 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13037 FUNCTION_DECLs.
13038
13039 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13040
13041 PR middle-end/53590
13042 * function.c (allocate_struct_function): Revert r188667 change.
13043
13044 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13045
13046 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13047
13048 * doc/install.texi: Remove links to defunct package providers for
13049 Solaris.
13050
13051 2014-07-09 Tom de Vries <tom@codesourcery.com>
13052
13053 * final.c (get_call_fndecl): Declare.
13054 (self_recursive_call_p): New function.
13055 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13056
13057 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13058
13059 * ipa-devirt.c (record_node): Walk through aliases.
13060
13061 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13062
13063 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13064
13065 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13066
13067 Revert:
13068 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13069
13070 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13071
13072 * ipa-visibility.c (function_and_variable_visibility): Remove
13073 temporary hack disabling local aliases on AIX.
13074
13075 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13076
13077 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13078 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13079
13080 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13081
13082 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13083 * rs6000/rs6000.c: Inline output of .set instruction.
13084 (declare_alias_data): New struct.
13085 (rs6000_declare_alias): New function.
13086 (rs6000_xcoff_declare_function_name): Use it.
13087 (rs6000_xcoff_declare_object_name): New function.
13088 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13089 (ASM_OUTPUT_DEF): Turn to empty definition.
13090
13091 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13092
13093 PR bootstrap/61679
13094 * hash-table.h: use hash_table::value_type instead of
13095 Descriptor::value_type in the return types of several methods.
13096
13097 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13098
13099 * tree-pass.h (pass_data): Remove has_execute member.
13100 * passes.c (execute_one_pass): Don't check pass->has_execute.
13101 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13102 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13103 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13104 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13105 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13106 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13107 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13108 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13109 gimple-low.c, gimple-ssa-isolate-paths.c,
13110 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13111 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13112 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13113 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13114 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13115 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13116 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13117 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13118 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13119 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13120 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13121 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13122 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13123 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13124 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13125 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13126 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13127 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13128 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13129 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13130 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13131 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13132 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13133 web.c: Remove initializer for pass_data::has_execute.
13134
13135 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13136
13137 * graphite-htab.h: Use hash_map instead of hash_table.
13138 * graphite-clast-to-gimple.c: Adjust.
13139 * passes.c: Use hash_map instead of hash_table.
13140 * sese.c: Likewise.
13141 * sese.h: Remove now unused code.
13142
13143 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13144
13145 PR target/61599
13146 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13147 than zero.
13148
13149 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13150
13151 PR rtl-optimization/61673
13152 * combine.c (simplify_comparison): Test just mode's sign bit
13153 in tmode rather than the sign bit and any bits above it.
13154
13155 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13156
13157 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13158 Add __isl_give to the declaration.
13159 (generate_isl_schedule): Likewise.
13160 (scop_to_isl_ast): Likewise.
13161
13162 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13163
13164 * config/arm/arm.c (cortexa5_extra_costs): New table.
13165 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13166
13167 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13168
13169 PR tree-optimization/61725
13170 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13171 range, use range_includes_zerop_p instead of integer_zerop on
13172 vr0->min, only use log2 of max if min is not negative.
13173
13174 2014-07-08 Richard Biener <rguenther@suse.de>
13175
13176 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13177 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13178 restriction on loop depth difference.
13179 (record_equality): Likewise.
13180 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13181 (loop_depth_of_name): Remove.
13182 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13183 restriction on loop depth difference.
13184 (init_copy_prop): Likewise.
13185
13186 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13187
13188 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13189 parameter.
13190 (walk_aliased_vdefs): Likewise.
13191 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13192 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13193 (detect_type_change_from_memory_writes): Check if entry was reached.
13194
13195 2014-07-08 Richard Biener <rguenther@suse.de>
13196
13197 PR tree-optimization/61681
13198 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13199 NONLOCAL inside ESCAPED.
13200
13201 2014-07-08 Richard Biener <rguenther@suse.de>
13202
13203 PR tree-optimization/61680
13204 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13205 Handle properly all read-write dependences with group accesses.
13206
13207 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13208
13209 PR tree-optimization/61576
13210 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13211 block containing reduction statement is predecessor of phi basi block.
13212
13213 2014-07-08 Marek Polacek <polacek@redhat.com>
13214
13215 PR c/60226
13216 * fold-const.c (round_up_loc): Change the parameter type.
13217 Remove assert.
13218 * fold-const.h (round_up_loc): Adjust declaration.
13219 * stor-layout.c (finalize_record_size): Check for too large types.
13220
13221 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13222
13223 * symtab.c: Include calls.h.
13224 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13225
13226 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13227
13228 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13229 little-endian code generation.
13230 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13231 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13232 (spe_evmergehilo): Rename to...
13233 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13234 (spe_evmergelo): Rename to...
13235 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13236 (spe_evmergelohi): Rename to...
13237 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13238 (spe_evmergehi, spe_evmergehilo): New expanders.
13239 (spe_evmergelo, spe_evmergelohi): Likewise.
13240 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13241 (*frob_tf_ti): Likewise.
13242 (*frob_<mode>_di_2): Likewise.
13243 (*frob_tf_di_8_2): Likewise.
13244 (*frob_di_<mode>): Likewise.
13245 (*frob_ti_tf): Likewise.
13246 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13247 (*frob_ti_<mode>_8_2): Likewise.
13248 (*frob_ti_tf_2): Likewise.
13249 (mov_si<mode>_e500_subreg0): Rename to...
13250 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13251 endianness only.
13252 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13253 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13254 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13255 the big endianness only.
13256 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13257 (*mov_si<mode>_e500_subreg0_2): Rename to...
13258 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13259 big big endianness only.
13260 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13261 (*mov_si<mode>_e500_subreg4): Rename to...
13262 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13263 endianness only.
13264 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13265 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13266 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13267 the big endianness only.
13268 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13269 pattern.
13270 (*mov_si<mode>_e500_subreg4_2): Rename to...
13271 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13272 endianness only.
13273 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13274 (*mov_sitf_e500_subreg8): Rename to...
13275 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13276 endianness only.
13277 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13278 (*mov_sitf_e500_subreg8_2): Rename to...
13279 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13280 endianness only.
13281 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13282 (*mov_sitf_e500_subreg12): Rename to...
13283 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13284 endianness only.
13285 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13286 (*mov_sitf_e500_subreg12_2): Rename to...
13287 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13288 endianness only.
13289 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13290
13291 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13292
13293 * asan.c (instrument_strlen_call): Do not instrument first byte
13294 in strlen if already instrumented.
13295
13296 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13297
13298 * config/arm/arm.opt (mwords-little-endian): Delete.
13299 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13300 of TARGET_LITTLE_WORDS.
13301 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13302 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13303 warning.
13304 * doc/invoke.texi: Remove references to -mwords-little-endian.
13305
13306 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13307
13308 * expmed.c (struct init_expmed_rtl): Change all fields but
13309 pow2 and cint from struct rtx_def to rtx.
13310 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13311 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13312 at the end again.
13313
13314 2014-07-06 Marek Polacek <polacek@redhat.com>
13315
13316 PR c/6940
13317 * doc/invoke.texi: Document -Wsizeof-array-argument.
13318
13319 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13320
13321 * wide-int.h (wide_int_storage): Change declaration from struct
13322 to class.
13323
13324 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13325
13326 * cgraph.c (cgraph_create_indirect_edge): Update call of
13327 get_polymorphic_call_info.
13328 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13329 (possible_polymorphic_call_targets): Add parameter call.
13330 (decl_maybe_in_construction_p): New predicate.
13331 (get_polymorphic_call_info): Add parameter call;
13332 use decl_maybe_in_construction_p.
13333 * gimple-fold.c (fold_gimple_assign): Update use of
13334 possible_polymorphic_call_targets.
13335 (gimple_fold_call): Likewise.
13336 * ipa-prop.c: Inlcude calls.h
13337 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13338 (param_type_may_change_p): New predicate.
13339 (detect_type_change_from_memory_writes): Break out from ...
13340 (detect_type_change): ... this one; use param_type_may_change_p.
13341 (detect_type_change_ssa): Use param_type_may_change_p.
13342 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13343
13344 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13345
13346 PR target/49423
13347 * config/arm/arm-protos.h (arm_legitimate_address_p,
13348 arm_is_constant_pool_ref): Add prototypes.
13349 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13350 (arm_is_constant_pool_ref) New function.
13351 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13352 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13353 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13354 operand. Remove pool_range and neg_pool_range attributes.
13355 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13356 pool_range and neg_pool_range attributes.
13357 * config/arm/constraints.md (Uh): New constraint.
13358 (Uq): Don't allow constant pool references.
13359
13360 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13361
13362 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13363 (move_lo_quad_internal_be_<mode>): Likewise.
13364 (move_lo_quad_<mode>): Convert to define_expand.
13365 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13366 (aarch64_simd_move_hi_quad_be_<mode>): New.
13367 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13368 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13369 (aarch64_combinez_be<mode>): New.
13370 (aarch64_combine<mode>): Convert to define_expand.
13371 (aarch64_combine_internal<mode>): New.
13372 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13373
13374 2014-07-04 Tom de Vries <tom@codesourcery.com>
13375
13376 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13377 combination of earlyclobber and read/write modifiers.
13378
13379 2014-07-04 Tom de Vries <tom@codesourcery.com>
13380
13381 * config/aarch64/aarch64-simd.md
13382 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13383
13384 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
13385
13386 PR target/61714
13387 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
13388
13389 2014-07-04 Jakub Jelinek <jakub@redhat.com>
13390
13391 PR middle-end/61654
13392 * cgraphunit.c (expand_thunk): Call free_dominance_info.
13393
13394 PR tree-optimization/61684
13395 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
13396 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
13397
13398 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13399 Kito Cheng <kito@0xlab.org>
13400 Monk Chiang <sh.chiang04@gmail.com>
13401
13402 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
13403 (nds32_symbol_load_store_p): Move to ...
13404 (nds32_fp_as_gp_check_available): Move to ...
13405 * config/nds32/nds32-fp-as-gp.c: ... here.
13406 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
13407 extern declaration.
13408
13409 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13410 Kito Cheng <kito@0xlab.org>
13411 Monk Chiang <sh.chiang04@gmail.com>
13412
13413 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
13414 (nds32_expand_store_multiple): Move to ...
13415 (nds32_expand_movmemqi): Move to ...
13416 * config/nds32/nds32-memory-manipulation.c: ... here.
13417
13418 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13419 Kito Cheng <kito@0xlab.org>
13420 Monk Chiang <sh.chiang04@gmail.com>
13421
13422 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
13423 (nds32_output_casesi_pc_relative): Move to ...
13424 (nds32_output_casesi): Move to ...
13425 (nds32_mem_format): Move to ...
13426 (nds32_output_16bit_store): Move to ...
13427 (nds32_output_16bit_load): Move to ...
13428 (nds32_output_32bit_store): Move to ...
13429 (nds32_output_32bit_load): Move to ...
13430 (nds32_output_32bit_load_s): Move to ...
13431 (nds32_output_stack_push): Move to ...
13432 (nds32_output_stack_pop): Move to ...
13433 * config/nds32/nds32-md-auxiliary.c: ... here.
13434
13435 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13436 Ling-Hua Tseng <uranus@tinlans.org>
13437
13438 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
13439 the purpose of this file.
13440
13441 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13442 Kito Cheng <kito@0xlab.org>
13443 Monk Chiang <sh.chiang04@gmail.com>
13444
13445 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
13446 (nds32_address_cost): Move implementation to ...
13447 * config/nds32/nds32-cost.c: ... here.
13448 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
13449 (nds32_address_cost_impl): Declare.
13450
13451 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13452 Kito Cheng <kito@0xlab.org>
13453 Monk Chiang <sh.chiang04@gmail.com>
13454
13455 * config/nds32/nds32.c
13456 (nds32_consecutive_registers_load_store_p): Move to ...
13457 (nds32_valid_multiple_load_store): Move to ...
13458 (nds32_valid_stack_push_pop): Move to ...
13459 (nds32_can_use_bclr_p): Move to ...
13460 (nds32_can_use_bset_p): Move to ...
13461 (nds32_can_use_btgl_p): Move to ...
13462 (nds32_can_use_bitci_p): Move to ...
13463 * config/nds32/nds32-predicates.c: ... here.
13464
13465 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13466 Kito Cheng <kito@0xlab.org>
13467 Monk Chiang <sh.chiang04@gmail.com>
13468
13469 * config/nds32/nds32.c
13470 (nds32_expand_builtin_null_ftype_reg): Move to ...
13471 (nds32_expand_builtin_reg_ftype_imm): Move to ...
13472 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
13473 (nds32_init_builtins): Move implementation to ...
13474 (nds32_expand_builtin): Move implementation to ...
13475 * config/nds32/nds32-intrinsic.c: ... here.
13476 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
13477 (nds32_expand_builtin_impl): Declare.
13478
13479 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13480 Kito Cheng <kito@0xlab.org>
13481 Monk Chiang <sh.chiang04@gmail.com>
13482
13483 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
13484 (nds32_emit_section_tail_template): Move to ...
13485 (nds32_emit_isr_jmptbl_section): Move to ...
13486 (nds32_emit_isr_vector_section): Move to ...
13487 (nds32_emit_isr_reset_conten): Move to ...
13488 (nds32_check_isr_attrs_conflict): Move to ...
13489 (nds32_construct_isr_vectors_information): Move to ...
13490 (nds32_asm_file_start): Move implementation to ...
13491 (nds32_asm_file_end): Move implementation to ...
13492 * config/nds32/nds32-isr.c: ... here.
13493 * config/nds32/nds32-protos.h
13494 (nds32_check_isr_attrs_conflict): Declare.
13495 (nds32_construct_isr_vectors_information): Declare.
13496 (nds32_asm_file_start_for_isr): Declare.
13497 (nds32_asm_file_end_for_isr): Declare.
13498
13499 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13500 Kito Cheng <kito@0xlab.org>
13501 Monk Chiang <sh.chiang04@gmail.com>
13502
13503 * config.gcc (nds32*): Add new modules to extra_objs.
13504 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13505 (nds32be-*-*): Likewise.
13506 * config/nds32/nds32-cost.c: New file.
13507 * config/nds32/nds32-fp-as-gp.c: New file.
13508 * config/nds32/nds32-intrinsic.c: New file.
13509 * config/nds32/nds32-isr.c: New file.
13510 * config/nds32/nds32-md-auxiliary.c: New file.
13511 * config/nds32/nds32-memory-manipulation.c: New file.
13512 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13513 * config/nds32/nds32-predicates.c: New file.
13514 * config/nds32/t-nds32: New file.
13515
13516 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13517
13518 PR tree-optimization/61682
13519 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13520 using cases and when one of the operands is equal to 1.
13521
13522 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13523
13524 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13525 ashr<mode>3): Correct mode of operands[2].
13526 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13527 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13528 Correct mode of operands[2]. Fix split condition.
13529
13530 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13531
13532 * arm.md (arch): Add armv6_or_vfpv3.
13533 (arch_enabled): Add test for the above.
13534 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13535 on VFP9.
13536 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13537
13538 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13539
13540 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13541 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13542 HWI 1 and negate the unsigned value.
13543 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13544 use AND instead of shift.
13545 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13546
13547 2014-07-03 Marek Polacek <polacek@redhat.com>
13548
13549 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13550 (-fsanitize=float-divide-by-zero): Move to the table with
13551 -fsanitize=undefined suboptions.
13552 (-fsanitize=float-cast-overflow): Likewise.
13553
13554 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13555
13556 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13557 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13558 endianness.
13559
13560 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13561
13562 * loop-invariant.c (struct invariant): Add a new member: eqno;
13563 (find_identical_invariants): Update eqno;
13564 (create_new_invariant): Init eqno;
13565 (get_inv_cost): Compute comp_cost with eqno;
13566
13567 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13568
13569 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13570 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13571 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13572 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13573 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13574
13575 2014-07-02 Christian Bruel <christian.bruel@st.com>
13576
13577 PR target/29349
13578 PR target/53513
13579 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13580 (make_preds_opaque): Delete.
13581 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13582 (commit_mode_sets): New function.
13583 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13584 Process all modes at once.
13585 * basic-block.h (pre_edge_lcm_avs): Declare.
13586 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13587 Call clear_aux_for_edges. Fix comments.
13588 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13589 (pre_edge_rev_lcm): Idem.
13590 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13591 parameter.
13592 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13593 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13594 Idem.
13595 * config/i386/i386.c (x96_emit_mode_set): Idem.
13596 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13597 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
13598 (fpscr_toggle) Disallow from delay slot.
13599 * target.def (emit_mode_set): Add prev_mode parameter.
13600 * doc/tm.texi: Regenerate.
13601
13602 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13603
13604 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13605 variable i.
13606
13607 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13608
13609 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13610 vtable_pointer_value_to_vtable): Constify.
13611 (contains_polymorphic_type_p): Declare.
13612 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13613 vtable_pointer_value_to_vtable): Constify.
13614 (contains_polymorphic_type_p): New predicate.
13615 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13616 polymorphic types.
13617 (ipa_set_ancestor_jf): Likewise.
13618 (detect_type_change): Return false in easy cases.
13619 (compute_complex_assign_jump_func): Require type to contain
13620 polymorphic type.
13621 (compute_known_type_jump_func): Likewise.
13622
13623 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13624
13625 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13626 Remove.
13627 (type_in_anonymous_namespace_p): Constify argument.
13628 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13629 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13630 (main_odr_variant): New function.
13631 (hash_type_name): Make static; update assert; do not ICE on
13632 non-records.
13633 (types_same_for_odr): Bring here from tree.c; simplify and remove
13634 old structural comparing code that doesn't work for templates.
13635 (odr_hasher::equal): Update assert.
13636 (add_type_duplicate): Return true when bases should be computed;
13637 replace incomplete loader by complete; do not output duplicated
13638 warnings; do not ICE on non-records; set odr_violated flag.
13639 (get_odr_type): Be ready to replace incomplete type by complete
13640 one; work on ODR variants instead of main variants; reorder item
13641 in array so bases have still smaller indexes.
13642 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13643 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13644
13645 2014-07-01 Cary Coutant <ccoutant@google.com>
13646
13647 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13648 lookup.
13649 (resolve_addr_in_expr): When replacing the rtx in a location list
13650 entry, get a new address table entry.
13651 (dwarf2out_finish): Call index_location_lists even if there are no
13652 addr_index_table entries yet.
13653
13654 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13655
13656 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13657 change for not being obvious.
13658
13659 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13660
13661 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13662 unused argument.
13663
13664 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13665
13666 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13667 (vcagt_f64): Likewise.
13668 (vcale_f64): Likewise.
13669 (vcaled_f64): Likewise.
13670 (vcales_f32): Likewise.
13671 (vcalt_f64): Likewise.
13672 (vcaltd_f64): Likewise.
13673 (vcalts_f32): Likewise.
13674
13675 2014-07-01 Marek Polacek <polacek@redhat.com>
13676
13677 * doc/invoke.texi: Document -Wint-conversion.
13678
13679 2014-07-01 Marek Polacek <polacek@redhat.com>
13680
13681 PR c/58286
13682 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13683
13684 2014-07-01 Martin Liska <mliska@suse.cz>
13685
13686 IPA REF alias refactoring
13687 * cgraph.h (iterate_direct_aliases): New function.
13688 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13689 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13690 FOR_EACH_ALIAS added.
13691 (cgraph_for_node_and_aliases): Likewise.
13692 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13693 * ipa-inline.c (reset_edge_caches): Likewise.
13694 (update_caller_keys): Likewise.
13695 * trans-mem.c (ipa_tm_execute): Likewise.
13696 *varpool.c (varpool_analyze_node): Likewise.
13697 (varpool_for_node_and_aliases): Likewise.
13698 * ipa-ref.h (first_alias): New function.
13699 (last_alias): Likewise.
13700 (has_aliases_p): Likewise.
13701 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13702 is sensitive to IPA_REF_ALIASes.
13703 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13704 are put at the beginning of the list.
13705 (symtab_node::iterate_direct_aliases): New function.
13706
13707 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13708
13709 Revert:
13710 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13711 type is complete.
13712 (write_ts_type_common_tree_pointers): Do not stream fields not set
13713 for incomplete types; do not stream duplicated fields for variants;
13714 sanity check that variant and type match.
13715 (write_ts_type_non_common_tree_pointers): Likewise.
13716 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13717 TYPE_SIZE whether type is complete.
13718 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13719 write_ts_type_common_tree_pointers
13720 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13721
13722 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13723
13724 * var-tracking.c (add_stores): Return instead of asserting if old
13725 and new values for conditional store are the same.
13726
13727 2014-06-30 Richard Henderson <rth@redhat.com>
13728
13729 PR rtl-opt/61608
13730 PR target/39284
13731 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13732 the cfg if there were any changes.
13733 * passes.def: Revert move of peephole2 after reorder_blocks;
13734 move duplicate_computed_gotos before peephole2.
13735
13736 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13737
13738 * except.c (emit_note_eh_region_end): New helper function.
13739 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13740 emit EH_REGION_END note.
13741 * jump.c (cleanup_barriers): Do not split a call and its
13742 corresponding CALL_ARG_LOCATION note.
13743
13744 2014-06-30 Jeff Law <law@redhat.com>
13745
13746 PR tree-optimization/61607
13747 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13748 deeper into the SSA_NAME_VALUE chain.
13749
13750 2014-06-30 Marek Polacek <polacek@redhat.com>
13751
13752 * convert.c (convert_to_integer): Don't instrument conversions if the
13753 function has no_sanitize_undefined attribute.
13754 * ubsan.c: Don't run the ubsan pass if the function has
13755 no_sanitize_undefined attribute.
13756
13757 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13758
13759 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13760 -fsanitize=undefined suboptions.
13761
13762 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13763
13764 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13765 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13766 against bigendian and adjust indices.
13767
13768 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13769
13770 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13771
13772 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13773
13774 PR target/61633
13775 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13776 Add alternative; make early clobber. Adjust both split patterns
13777 to use operand 0 as the working register.
13778
13779 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13780
13781 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13782 as ira_object_id_map might be NULL, or 1.
13783
13784 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13785
13786 * loop-invariant.c (get_inv_cost): Handle register class.
13787 (gain_for_invariant): Check the register pressure of the inv
13788 and its overlapped register class, other than all.
13789
13790 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13791
13792 * doc/invoke.texi (Optimize Options): Fix descriptions of
13793 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13794
13795 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13796
13797 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13798 documentation.
13799
13800 2014-06-29 Tobias Grosser <tobias@grosser.es>
13801
13802 PR bootstrap/61650
13803 * graphite-isl-ast-to-gimple.c: Add missing guards.
13804
13805 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13806
13807 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13808 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13809 * flag-types.h: Add new enum fgraphite_generator.
13810 * graphite-isl-ast-to-gimple.c: New.
13811 * graphite-isl-ast-to-gimple.h: New.
13812 * graphite.c (graphite_transform_loops): Add choice of Graphite
13813 code generator, which depends on flag_graphite_code_gen.
13814
13815 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13816
13817 * graphite-dependences.c (subtract_commutative_associative_deps):
13818 Add NULL checking of the following variables: must_raw_no_source,
13819 may_raw_no_source, must_war_no_source, may_war_no_source,
13820 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13821 must_war, may_war, must_waw, may_waw.
13822
13823 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13824
13825 * graphite-clast-to-gimple.c: gloog is renamed to
13826 graphite_regenerate_ast_cloog. gloog_error is renamed to
13827 graphite_regenerate_error.
13828 * graphite-clast-to-gimple.h: The definition of the struct
13829 bb_pbb_def is moved to graphite-htab.h.
13830 Add inclusion of the hash-table.h.
13831 * graphite-htab.h: The declaration of the function gloog is moved
13832 to graphite-clast-to-gimple.h and renamed to
13833 graphite_regenerate_ast_cloog.
13834 * graphite.c (graphite_transform_loops): gloog is renamed
13835 to graphite_regenerate_ast_cloog.
13836
13837 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13838
13839 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13840 type is complete.
13841 (write_ts_type_common_tree_pointers): Do not stream fields not set
13842 for incomplete types; do not stream duplicated fields for variants;
13843 sanity check that variant and type match.
13844 (write_ts_type_non_common_tree_pointers): Likewise.
13845 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13846 TYPE_SIZE whether type is complete.
13847 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13848 write_ts_type_common_tree_pointers
13849 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13850
13851 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13852
13853 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
13854
13855 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13856
13857 * tree-inline.c (remap_type_1): Do not duplicate fields
13858 that are shared in between type and its main variant.
13859
13860 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13861
13862 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13863 of the type.
13864 (ipa_set_ancestor_jf) Likewise.
13865 (check_stmt_for_type_change): Check that we work on main variant.
13866 (detect_type_change): Look into main variant.
13867 (compute_known_type_jump_func): Check that main variant has BINFO.
13868
13869 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13870
13871 * ipa-devirt.c (set_type_binfo): New function.
13872 (add_type_duplicate): Use it.
13873 (get_odr_type): Sanity check that binfos points to main variants.
13874 (get_class_context): Be sure the context's outer_type is main variant.
13875 (contains_type_p): Walk main variant.
13876 (get_polymorphic_call_info_for_decl): Set outer_type to be
13877 main variant.
13878 (get_polymorphic_call_info): Likewise.
13879 (possible_polymorphic_call_targets): Sanity check that we operate
13880 on main variant.
13881
13882 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13883
13884 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13885
13886 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13887
13888 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
13889 accidental change due to wide-int branch merge.
13890
13891 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13892
13893 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
13894 compressed debug support.
13895 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
13896 * configure: Regenerate.
13897 * config.in: Regenerate.
13898 * common.opt (compressed_debug_sections): New enum.
13899 (gz, gz=): New options.
13900 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
13901 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
13902 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
13903 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
13904 LINK_COMPRESS_DEBUG_SPEC.
13905 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
13906 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
13907 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
13908 (Debugging Options): Document -gz[=type].
13909
13910 2014-06-27 Martin Jambor <mjambor@suse.cz>
13911
13912 PR ipa/61160
13913 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
13914 args_to_skip, use those from node instead. Copy args_to_skip and
13915 combined_args_to_skip from node to the new thunk.
13916 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
13917 (cgraph_create_virtual_clone): Moved computation of
13918 combined_args_to_skip...
13919 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
13920
13921 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
13922
13923 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
13924 redundant diagnostic machinary.
13925
13926 2014-06-27 Richard Biener <rguenther@suse.de>
13927
13928 * tree-ssa-math-opts.c (bswap_replace): Fix
13929 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
13930
13931 2014-06-27 Martin Liska <mliska@suse.cz>
13932
13933 * gimple.h (gimple_location_safe): New function introduced.
13934 * cgraphunit.c (walk_polymorphic_call_targets): Usage
13935 of gimple_location_safe replaces gimple_location.
13936 (gimple_fold_call): Likewise.
13937 * ipa-devirt.c (ipa_devirt): Likewise.
13938 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13939 * ipa.c (walk_polymorphic_call_targets): Likewise.
13940 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
13941
13942 2014-06-27 Jakub Jelinek <jakub@redhat.com>
13943
13944 PR tree-optimization/57233
13945 PR tree-optimization/61299
13946 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
13947 functions.
13948 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
13949 would be lowered to scalar shifts, check if corresponding
13950 shifts and vector BIT_IOR_EXPR are supported and don't lower
13951 or lower just to narrower vector type in that case.
13952 * expmed.c (expand_shift_1): Fix up handling of vector
13953 shifts and rotates.
13954
13955 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
13956
13957 PR target/61586
13958 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
13959
13960 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
13961
13962 * doc/invoke.texi (-fsemantic-interposition): Document.
13963 * common.opt (fsemantic-interposition): New flag.
13964 * varasm.c (decl_replaceable_p): Use it.
13965
13966 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13967
13968 PR target/61542
13969 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
13970 extraction other than index 3.
13971
13972 2014-06-26 Teresa Johnson <tejohnson@google.com>
13973
13974 * doc/invoke.texi: Fix typo.
13975 * dumpfile.c: Add support for documented -fdump-* options
13976 optimized/missed/note/optall.
13977
13978 2014-06-26 Martin Jambor <mjambor@suse.cz>
13979
13980 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
13981 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
13982 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
13983 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
13984 * opts.c (default_options_optimization): Set
13985 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
13986 * doc/invoke.texi (allow-load-data-races)
13987 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
13988 (allow-store-data-races): Document the new default.
13989
13990 2014-06-26 Martin Jambor <mjambor@suse.cz>
13991
13992 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
13993 renamed to ipa_impossible_devirt_target. Fix typo.
13994 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
13995 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
13996 ipa_impossible_devirt_target.
13997
13998 2014-06-26 Richard Biener <rguenther@suse.de>
13999
14000 PR tree-optimization/61607
14001 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14002 explaining why we restrict copies on loop depth.
14003 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14004 on loop depth.
14005 (record_equivalences_from_phis): Instead add it here.
14006
14007 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14008
14009 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14010 (LTO_WRAPPER_OBJS): New variable.
14011 (lto-wrapper$(exeext)): Use it.
14012 * collect2.c: Include "collect-utils.h".
14013 (verbose, debug): Remove variables.
14014 (at_file_supplied): No longer static.
14015 (tool_name): New variable.
14016 (do_wait, fork_execute, maybe_unlink): Don't declare.
14017 (tool_cleanup): No longer static.
14018 (notice): Remove function.
14019 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14020 fork_execute calls.
14021 (collect_wait, do_wait, collect_execute): Remove functions.
14022 (maybe_unlink): No longer static.
14023 * collect2.h (verbose, debug): Don't declare.
14024 (at_file_supplied): Declare.
14025 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14026 changed.
14027 (collect_execute): Replace with implementation from collect2, plus a
14028 new arg use_atfile. All callers changed.
14029 (collect_wait): Replace with implementation from collect2.
14030 (maybe_unlink_file): Remove function.
14031 (fork_execute): Replace with implementation from collect2, plus a
14032 new arg use_atfile. All callers changed.
14033 (do_wait): Add call to utils_cleanup to the error path.
14034 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14035 (tool_cleanup): Adjust declarations.
14036 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14037 * tlink.c: Include "collect-utils.h".
14038 (tlink_execute): New arg use_atfile. All callers changed.
14039 (tlink_init, tlink_execute): Remove declarations.
14040
14041 * collect-utils.c (save_temps): New variable.
14042 (do_wait): Use it instead of debug. Use fatal_error.
14043 * collect-utils.h (save_temps): Declare.
14044 * collect2.c (verbose): Rename from vflag. All uses changed.
14045 (tool_cleanup): New function, copied from collect_atexit.
14046 (collect_atexit, handler): Just call it.
14047 * collect2.h (verbose): Declaration renamed from vflag.
14048 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14049 debug.
14050
14051 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14052 (lto-wrapper$(exeext)): Link with collect-utils.o.
14053 * collect-utils.c: New file.
14054 * collect-utils.h: New file.
14055 * lto-wrapper.c: Include "collect-utils.h".
14056 (args_name): Delete variable.
14057 (tool_name): New variable.
14058 (tool_cleanup): New function.
14059 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14060 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14061 (fork_execute): Remove functions.
14062
14063 2014-06-26 Nick Clifton <nickc@redhat.com>
14064
14065 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14066
14067 * doc/extend.texi (Function Attributes): Fix typo in description
14068 of RX vector attribute.
14069
14070 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14071
14072 * config.gcc (supported_defaults): Error when passing either
14073 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14074
14075 2014-06-26 Richard Biener <rguenther@suse.de>
14076
14077 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14078 propagating volatile pointers.
14079
14080 2014-06-26 Richard Biener <rguenther@suse.de>
14081
14082 PR tree-optimization/61607
14083 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14084 loop if we redirected its latch edge.
14085 (thread_block_1): Do not cancel loops prematurely.
14086
14087 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14088
14089 * toplev.c (backend_init_target): Move init_emit_regs and
14090 init_regs to...
14091 (backend_init) ... here; skip ira_init_once and backend_init_target.
14092 (target_reinit) ... and here; clear
14093 this_target_rtl->lang_dependent_initialized.
14094 (lang_dependent_init_target): Clear
14095 this_target_rtl->lang_dependent_initialized;
14096 break out rtl initialization to ...
14097 (initialize_rtl): ... here; call also backend_init_target
14098 and ira_init_once.
14099 * toplev.h (initialize_rtl): New function.
14100 * function.c: Include toplev.h
14101 (init_function_start): Call initialize_rtl.
14102 * rtl.h (target_rtl): Add target_specific_initialized,
14103 lang_dependent_initialized.
14104
14105 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14106 Jakub Jelinek <jakub@redhat.com>
14107
14108 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14109
14110 2014-06-25 Tom de Vries <tom@codesourcery.com>
14111
14112 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14113
14114 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14115
14116 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14117 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14118 Issue a strict overflow warning if appropriate.
14119
14120 2014-06-25 Martin Liska <mliska@suse.cz>
14121
14122 IPA REF refactoring
14123 * Makefile.in: Removed header file (ipa-ref-inline.h).
14124 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14125 called.
14126 (cgraph_speculative_call_info): Likewise.
14127 (cgraph_for_node_thunks_and_aliases): Likewise.
14128 (cgraph_for_node_and_aliases): Likewise.
14129 (verify_cgraph_node): Likewise.
14130 * cgraph.h: Batch of IPA REF functions become member functions of
14131 symtab_node: add_reference, maybe_add_reference, clone_references,
14132 clone_referring, clone_reference, find_reference,
14133 remove_stmt_references, remove_all_references,
14134 remove_all_referring, dump_references, dump_referring,
14135 has_alias_p, iterate_reference, iterate_referring.
14136 * cgraphbuild.c (record_reference): New IPA REF function used.
14137 (record_type_list): Likewise.
14138 (record_eh_tables): Likewise.
14139 (mark_address): Likewise.
14140 (mark_load): Likewise.
14141 (mark_store): Likewise.
14142 (pass_build_cgraph_edges): Likewise.
14143 (rebuild_cgraph_edge): Likewise.
14144 (cgraph_rebuild_references): Likewise.
14145 (pass_remove_cgraph_callee_edges): Likewise.
14146 * cgraphclones.c (cgraph_clone_node): Likewise.
14147 (cgraph_create_virtual_clone): Likewise.
14148 (cgraph_materialize_clone): Likewise.
14149 (cgraph_materialize_all_clones): Likewise.
14150 * cgraphunit.c (cgraph_reset_node): Likewise.
14151 (cgraph_reset_node): Likewise.
14152 (analyze_function): Likewise.
14153 (assemble_thunks_and_aliases): Likewise.
14154 (expand_function): Likewise.
14155 * ipa-comdats.c (propagate_comdat_group): Likewise.
14156 (enqueue_references): Likewise.
14157 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14158 (create_specialized_node): Likewise.
14159 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14160 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14161 * ipa-inline.c (reset_edge_caches): Likewise.
14162 (update_caller_keys): Likewise.
14163 (execute): Likewise.
14164 * ipa-prop.c (remove_described_reference): Likewise.
14165 (propagate_controlled_uses): Likewise.
14166 (ipa_edge_duplication_hook): Likewise.
14167 (ipa_modify_call_arguments): Likewise.
14168 * ipa-pure-const.c (propagate_pure_const): Likewise.
14169 * ipa-ref-inline.h: Header file removed, functions moved
14170 to symtab_node class.
14171 * ipa-ref.c (remove_reference): New class member function.
14172 (cannot_lead_to_return): New class member function.
14173 (referring_ref_list): Likewise.
14174 (referred_ref_list): Likewise.
14175 Rest of functions moved to symtab_node class.
14176 * ipa-ref.h: New member functions remove_reference,
14177 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14178 to ipa_ref class.
14179 ipa_ref_list class has new member functions: first_reference,
14180 first_referring, clear, nreferences.
14181 * ipa-reference.c (analyze_function): New IPA REF function used.
14182 (write_node_summary_p): Likewise.
14183 (ipa_reference_write_optimization_summary): Likewise.
14184 * ipa-split.c (split_function): Likewise.
14185 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14186 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14187 (function_and_variable_visibility): Likewise.
14188 * ipa.c (has_addr_references_p): Likewise.
14189 (process_references): Argument type changed.
14190 (symtab_remove_unreachable_nodes): New IPA REF function used.
14191 (process_references): Likewise.
14192 (set_writeonly_bit): Likewise.
14193 * lto-cgraph.c: Implementation of new symtab_node member functions
14194 that uses new IPA REF functions.
14195 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14196 function used.
14197 * lto-streamer-out.c (output_symbol_p): Likewise.
14198 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14199 changed.
14200 * symtab.c: Implementation of new IPA REF API.
14201 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14202 (ipa_tm_create_version): Likewise.
14203 (ipa_tm_execute): Likewise.
14204 * tree-emutls.c (gen_emutls_addr): Likewise.
14205 * tree-inline.c (copy_bb): Likewise.
14206 (delete_unreachable_blocks_update_callgraph): Likewise.
14207 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14208 (varpool_for_node_and_aliases): Likewise.
14209
14210 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14211
14212 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14213
14214 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14215
14216 PR bootstrap/61598
14217 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14218 tree_node * instead of tree_node *.
14219 (fold): Adjust.
14220 (print_fold_checksum): Likewise.
14221 (fold_check_failed): Likewise.
14222 (debug_fold_checksum): Likewise.
14223 (fold_build1_stat_loc): Likewise.
14224 (fold_build2_stat_loc): Likewise.
14225 (fold_build3_stat_loc): Likewise.
14226 (fold_build_call_array_loc): Likewise.
14227
14228 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14229
14230 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14231 implementation with call to...
14232 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14233 function.
14234 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14235 Declare.
14236
14237 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14238
14239 PR tree-optimization/57742
14240 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14241 after replacing the statement.
14242
14243 2014-06-25 Nick Clifton <nickc@redhat.com>
14244
14245 * config/v850/v850.c (GHS_default_section_names): Change to const
14246 char * type.
14247 (GHS_current_section_names): Likewise.
14248 (v850_insert_attributes): Do not build strings, just assign the
14249 names directly. Change the type of 'chosen_section' to const
14250 char*.
14251 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14252 directly to the array entry.
14253 * config/v850/v850.h (GHS_default_section_names): Change to const
14254 char * type.
14255 (GHS_current_section_names): Likewise.
14256
14257 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14258
14259 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14260 (LANG_HOOKS_DECLS): Add it.
14261 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14262 has correct type.
14263 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14264 * langhooks.h (struct lang_hooks_for_decls): Add
14265 omp_clause_linear_ctor hook.
14266 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14267 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14268 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14269 combined simd loop use omp_clause_linear_ctor hook.
14270
14271 2014-06-24 Cong Hou <congh@google.com>
14272
14273 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14274 pattern recognition.
14275 (type_conversion_p): PROMOTION is true if it's a type promotion
14276 conversion, and false otherwise. Return true if the given expression
14277 is a type conversion one.
14278 * tree-vectorizer.h: Adjust the number of patterns.
14279 * tree.def: Add SAD_EXPR.
14280 * optabs.def: Add sad_optab.
14281 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14282 * expr.c (expand_expr_real_2): Likewise.
14283 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14284 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14285 * optabs.c (optab_for_tree_code): Likewise.
14286 * tree-cfg.c (estimate_operator_cost): Likewise.
14287 * tree-ssa-operands.c (get_expr_operands): Likewise.
14288 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14289 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14290 * doc/generic.texi: Add document for SAD_EXPR.
14291 * doc/md.texi: Add document for ssad and usad.
14292
14293 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14294
14295 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14296 qualification in cast.
14297
14298 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14299
14300 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14301 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14302 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14303 (tree_function_decl): ... here.
14304 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14305 streaming of vindex to ...
14306 (write_ts_function_decl_tree_pointers): ... here.
14307 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14308 Do not stream DECL_VINDEX.
14309 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14310
14311 2014-06-24 Catherine Moore <clm@codesourcery.com>
14312 Sandra Loosemore <sandra@codesourcery.com>
14313
14314 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14315 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14316 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14317
14318 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14319
14320 * doc/invoke.texi (Warning Options): Remove duplicated
14321 -Wmaybe-uninitialized.
14322
14323 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14324
14325 PR tree-optimization/57742
14326 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14327 (handle_builtin_malloc, handle_builtin_memset): New functions.
14328 (strlen_optimize_stmt): Call them.
14329 * passes.def: Move strlen after loop+dom but before vrp.
14330
14331 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14332
14333 PR target/61570
14334 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14335 model family 6 CPU with has_longmode never use a CPU without
14336 64-bit support.
14337
14338 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14339
14340 PR target/61570
14341 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14342 the last change.
14343
14344 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14345
14346 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14347 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14348 pointer_map.
14349 * hash-map.h: New file.
14350 * ipa-comdats.c: Use hash_map instead of pointer_map.
14351 * ipa.c: Likewise.
14352 * lto-section-out.c: Adjust.
14353 * lto-streamer.h: Replace pointer_map with hash_map.
14354 * symtab.c (verify_symtab): Likewise.
14355 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14356 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14357 * tree-streamer.h: Likewise.
14358 * tree-streamer.c: Adjust.
14359 * pointer-set.h: Remove pointer_map.
14360
14361 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14362
14363 * hash-table.h: Add a template arg to choose between storing values
14364 and storing pointers to values, and then provide partial
14365 specializations for both.
14366 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14367 should store, not the type values should point to.
14368 * tree-into-ssa.c (var_info_hasher): Likewise.
14369 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14370 * tree-complex.c: Adjust.
14371 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14372 table instead of int_tree_map *.
14373 * tree-parloops.c: Adjust.
14374 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14375 type is being stored.
14376 * tree-vectorizer.c: Adjust.
14377
14378 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14379
14380 * hash-table.h: Remove a layer of indirection from hash_table so that
14381 it contains the hash table's data instead of a pointer to the data.
14382 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14383 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14384 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
14385 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
14386 fold-const.c, gcse.c, ggc-common.c,
14387 gimple-ssa-strength-reduction.c, gimplify.c,
14388 graphite-clast-to-gimple.c, graphite-dependences.c,
14389 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
14390 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14391 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
14392 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
14393 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
14394 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
14395 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
14396 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
14397 tree-ssa-live.c, tree-ssa-loop-im.c,
14398 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
14399 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
14400 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14401 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
14402 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
14403 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
14404 vtable-verify.c, vtable-verify.h: Adjust.
14405
14406 2014-06-24 Richard Biener <rguenther@suse.de>
14407
14408 PR tree-optimization/61572
14409 * tree-ssa-sink.c (statement_sink_location): Do not sink
14410 loads from hard registers.
14411
14412 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14413
14414 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
14415 not mentioned in clauses use private clause if the iterator is
14416 declared in #pragma omp for simd, and when adding lastprivate
14417 instead, add it to the outer #pragma omp for too. Diagnose
14418 if the variable is private in outer context. For simd collapse > 1
14419 loops, replace all iterators with temporaries.
14420 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
14421 same even in collapse > 1 loops.
14422
14423 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
14424 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
14425 non-NULL.
14426 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
14427 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
14428 non-NULL.
14429 (gimplify_adjust_omp_clauses): Likewise.
14430 * omp-low.c (lower_rec_simd_input_clauses,
14431 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
14432 safelen the same as safelen(1).
14433 * tree-nested.c (convert_nonlocal_omp_clauses,
14434 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
14435 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
14436 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
14437 Fixup handling of GIMPLE_OMP_TARGET.
14438 (convert_tramp_reference_stmt, convert_gimple_call): Handle
14439 GIMPLE_OMP_TARGET.
14440
14441 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
14442
14443 PR tree-optimization/61554
14444 * tree-ssa-propagate.c: Include "bitmap.h".
14445 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
14446 properly update constructor/destructor.
14447 (substitute_and_fold_dom_walker::before_dom_children):
14448 Remove call to gimple_purge_dead_eh_edges, add bb->index to
14449 need_eh_cleaup instead.
14450 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
14451 need_eh_cleanup.
14452
14453 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14454
14455 * varpool.c (dump_varpool_node): Dump used_by_single_function.
14456 * tree-pass.h (make_pass_ipa_single_use): New pass.
14457 * cgraph.h (used_by_single_function): New flag.
14458 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
14459 Stream it.
14460 * passes.def (pass_ipa_single_use): Scedule.
14461 * ipa.c (BOTTOM): New macro.
14462 (meet): New function
14463 (propagate_single_user): New function.
14464 (ipa_single_use): New function.
14465 (pass_data_ipa_single_use): New pass.
14466 (pass_ipa_single_use): New pass.
14467 (pass_ipa_single_use::gate): New gate.
14468 (make_pass_ipa_single_use): New function.
14469
14470 2014-06-23 Kai Tietz <ktietz@redhat.com>
14471
14472 PR target/39284
14473 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
14474 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
14475
14476 2014-06-23 Richard Biener <rguenther@suse.de>
14477
14478 * tree-ssa-loop.c (gate_loop): New function.
14479 (pass_tree_loop::gate): Call it.
14480 (pass_data_tree_no_loop, pass_tree_no_loop,
14481 make_pass_tree_no_loop): New.
14482 * tree-vectorizer.c: Include tree-scalar-evolution.c
14483 (pass_slp_vectorize::execute): Initialize loops and SCEV if
14484 required.
14485 (pass_slp_vectorize::clone): New method.
14486 * timevar.def (TV_TREE_NOLOOP): New.
14487 * tree-pass.h (make_pass_tree_no_loop): Declare.
14488 * passes.def (pass_tree_no_loop): New pass group with
14489 SLP vectorizer.
14490
14491 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14492
14493 PR target/61570
14494 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14495 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14496
14497 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14498
14499 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14500 "yes" where needed.
14501
14502 2014-06-23 Alan Modra <amodra@gmail.com>
14503
14504 PR bootstrap/61583
14505 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14506 to zero on debug statements.
14507
14508 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14509
14510 PR target/60825
14511 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14512 Ignore third operand if present by marking qualifier_internal.
14513
14514 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14515
14516 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14517 vector extension.
14518 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14519 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14520 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14521 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14522 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14523 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14524 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14525 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14526 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14527 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14528 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14529 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14530 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14531 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14532 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14533 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14534 logic in GCC vector extensions
14535
14536 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14537 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14538 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14539 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14540 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14541 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14542 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14543 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14544 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14545 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14546
14547 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14548
14549 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14550 extensions.
14551
14552 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14553 (vget_low_s64): Use __GET_LOW macro.
14554 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14555 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14556 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14557 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14558 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14559
14560 (vcombine_s64): Use GCC vector extensions; remove cast.
14561 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14562 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14563 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14564 Fix type signature; remove cast.
14565
14566 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14567
14568 PR target/60825
14569 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14570 V1DFmode.
14571 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14572 add V1DFmode
14573 (BUILTIN_VD1): New.
14574 (BUILTIN_VD_RE): Remove.
14575 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14576 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14577 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14578 variant but not df.
14579 (vreinterpretv1df*, vreinterpret*v1df): New.
14580 (vreinterpretdf*, vreinterpret*df): Remove.
14581 * config/aarch64/aarch64-simd.md (aarch64_create,
14582 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14583 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14584 (VD1): New.
14585 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14586 (vcreate_f64): Remove cast, use v1df builtin.
14587 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14588 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14589 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14590 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14591 vmov_n_f64, vst1_f64): Use gcc vector extensions.
14592 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14593 add range check using __builtin_aarch64_im_lane_boundsi.
14594 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14595 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14596 type signature, use gcc vector extensions.
14597 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14598 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14599 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14600 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14601 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14602 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14603 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14604 vreinterpret_u64_f64): Use v1df builtin not df.
14605
14606 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14607
14608 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14609 vector registers.
14610
14611 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14612
14613 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14614 priority directly.
14615
14616 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14617
14618 * loop-invariant.c (pre_check_invariant_p): New function.
14619 (find_invariant_insn): Call pre_check_invariant_p.
14620
14621 2014-06-22 Richard Henderson <rth@redhat.com>
14622
14623 PR target/61565
14624 * compare-elim.c (struct comparison): Add eh_note.
14625 (find_comparison_dom_walker::before_dom_children): Don't eliminate
14626 a redundant comparison in a different EH region. Purge EH edges if
14627 necessary.
14628
14629 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14630
14631 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14632 (var_shift): Use it.
14633 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14634 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14635 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14636 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14637 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14638 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14639 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14640 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14641 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14642 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14643 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14644 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14645 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14646 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14647 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14648 *rotldi3_internal15be): Use the new attribute. Merge register and
14649 integer alternatives.
14650
14651 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14652
14653 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14654 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14655 split, *ashrdi3_internal3 and split): Delete, merge into...
14656 (ashr<mode>3): New expander.
14657 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14658 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14659
14660 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14661
14662 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14663 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14664 *rotldi3_internal3 and split): Delete, merge into...
14665 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14666 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
14667 Use "rotlw" extended mnemonic.
14668
14669 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14670
14671 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14672 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14673 and split, *ashldi3_internal3 and split): Delete, merge into...
14674 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14675 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14676
14677 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14678
14679 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14680 (lshrsi3, two anonymous define_insns and define_splits,
14681 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14682 *lshrdi3_internal3 and split): Delete, merge into...
14683 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14684 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14685
14686 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14687
14688 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14689 Remove "O" alternative.
14690
14691 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14692
14693 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14694 (mips_move_from_gpr_cost): Likewise.
14695 (mips_register_move_cost): Update accordingly.
14696 (mips_secondary_reload_class): Remove name of in_p.
14697
14698 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14699
14700 PR target/61503
14701 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14702 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14703
14704 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14705
14706 * config/nios2/nios2.c: Include "builtins.h".
14707
14708 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14709
14710 * cgraph.h (tls_model_names): New variable.
14711 * print-tree.c (print_node): Simplify.
14712 * varpool.c (tls_model_names): New variable.
14713 (dump_varpool_node): Output tls model.
14714
14715 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14716
14717 * ipa-visibility.c (function_and_variable_visibility): Disable
14718 temporarily local aliases for some targets.
14719
14720 2014-06-20 Marek Polacek <polacek@redhat.com>
14721
14722 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14723 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14724 into SANITIZE_UNDEFINED.
14725 * doc/invoke.texi: Describe -fsanitize=bounds.
14726 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14727 functions created in the FEs.
14728 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14729 (expand_UBSAN_BOUNDS): New function.
14730 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14731 * internal-fn.h: Don't define internal functions here.
14732 * opts.c (common_handle_option): Add -fsanitize=bounds.
14733 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14734 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14735 * tree-core.h: Define internal functions here.
14736 (struct tree_base): Add ifn field.
14737 * tree-pretty-print.c: Include "internal-fn.h".
14738 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14739 * tree.c (get_callee_fndecl): Likewise.
14740 (build_call_expr_internal_loc): New function.
14741 * tree.def (CALL_EXPR): Update description.
14742 * tree.h (CALL_EXPR_IFN): Define.
14743 (build_call_expr_internal_loc): Declare.
14744 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14745 types.
14746 (ubsan_type_descriptor): Change bool parameter to enum
14747 ubsan_print_style. Adjust the code. Add handling of
14748 UBSAN_PRINT_ARRAY.
14749 (ubsan_expand_bounds_ifn): New function.
14750 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14751 (ubsan_build_overflow_builtin): Likewise.
14752 (instrument_bool_enum_load): Likewise.
14753 (ubsan_instrument_float_cast): Likewise.
14754 * ubsan.h (enum ubsan_print_style): New enum.
14755 (ubsan_expand_bounds_ifn): Declare.
14756 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14757
14758 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14759
14760 * config/rs6000/rs6000.md: Append `DONE' to preparation
14761 statements of `bswap' pattern splitters.
14762
14763 2014-06-20 Tom de Vries <tom@codesourcery.com>
14764
14765 * target.def (call_fusage_contains_non_callee_clobbers): Update
14766 definition.
14767 * doc/tm.texi: Regenerate.
14768
14769 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14770 Max Ostapenko <m.ostapenko@partner.samsung.com>
14771
14772 PR sanitizer/61547
14773 * asan.c (instrument_strlen_call): Fixed instrumentation of
14774 trailing byte.
14775
14776 2014-06-20 Martin Jambor <mjambor@suse.cz>
14777
14778 PR ipa/61540
14779 * ipa-prop.c (impossible_devirt_target): New function.
14780 (try_make_edge_direct_virtual_call): Use it, also instead of
14781 asserting.
14782
14783 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14784 Max Ostapenko <m.ostapenko@partner.samsung.com>
14785
14786 PR sanitizer/61530
14787 * asan.c (build_check_stmt): Add condition.
14788
14789 2014-06-20 Martin Jambor <mjambor@suse.cz>
14790
14791 PR ipa/61211
14792 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14793 expanded clones.
14794
14795 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14796
14797 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14798 Update comments.
14799 (VCONQ): Make comment more helpful.
14800 (VCON): Delete.
14801 * config/aarch64/aarch64-simd.md
14802 (aarch64_sqdmulh_lane<mode>):
14803 Use VCOND for operands 2. Update lane checking and flipping logic.
14804 (aarch64_sqrdmulh_lane<mode>): Likewise.
14805 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14806 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14807 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14808 attribute of operand 3 to VCOND.
14809 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14810 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14811 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14812 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14813 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14814 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14815 define_insn.
14816 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14817 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14818 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14819 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14820 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14821 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14822 operand to VCOND. Update lane flipping and bounds checking logic.
14823 (aarch64_sqdmlal2_lane<mode>): Likewise.
14824 (aarch64_sqdmlsl_lane<mode>): Likewise.
14825 (aarch64_sqdmull_lane<mode>): Likewise.
14826 (aarch64_sqdmull2_lane<mode>): Likewise.
14827 (aarch64_sqdmlal_laneq<mode>):
14828 Replace VCON usage with VCONQ.
14829 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14830 (aarch64_sqdmlal2_laneq<mode>): Emit
14831 aarch64_sqdmlal2_laneq<mode>_internal insn.
14832 Replace VCON with VCONQ.
14833 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14834 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14835 (aarch64_sqdmull_laneq<mode>): Emit
14836 aarch64_sqdmull_laneq<mode>_internal insn.
14837 Replace VCON with VCONQ.
14838 (aarch64_sqdmull2_laneq<mode>): Emit
14839 aarch64_sqdmull2_laneq<mode>_internal insn.
14840 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14841 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14842 of 3rd argument to int16x4_t.
14843 (vqdmlalh_lane_s16): Likewise.
14844 (vqdmlslh_lane_s16): Likewise.
14845 (vqdmull_high_lane_s16): Likewise.
14846 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
14847 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
14848 (vqdmlsl_lane_s16): Likewise.
14849 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
14850 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
14851 (vqdmlals_lane_s32): Likewise.
14852 (vqdmlsls_lane_s32): Likewise.
14853 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
14854 (vqdmulls_lane_s32): Likewise.
14855 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
14856 (vqdmlsl_lane_s32): Likewise.
14857 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
14858 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
14859 (vqrdmulhh_lane_s16): Likewise.
14860 (vqdmlsl_high_lane_s16): Likewise.
14861 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
14862 (vqdmlsl_high_lane_s32): Likewise.
14863 (vqrdmulhs_lane_s32): Likewise.
14864
14865 2014-06-20 Tom de Vries <tom@codesourcery.com>
14866
14867 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
14868 get_call_reg_set_usage.
14869
14870 2014-06-20 Tom de Vries <tom@codesourcery.com>
14871
14872 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
14873 it contains all call_used_regs.
14874
14875 2014-06-20 Tom de Vries <tom@codesourcery.com>
14876
14877 * final.c (collect_fn_hard_reg_usage): Add and use variable
14878 function_used_regs.
14879
14880 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14881
14882 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
14883 (set_init_priority, get_init_priority, set_fini_priority,
14884 get_fini_priority): New methods.
14885 * tree.c (init_priority_for_decl): Remove.
14886 (init_ttree): Do not initialize init priority.
14887 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
14888 (decl_priority_info): Remove.
14889 (decl_init_priority_insert): Rewrite.
14890 (decl_fini_priority_insert): Rewrite.
14891 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
14892 tree_priority_map_marked_p): Remove.
14893 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
14894 * lto-streamer-out.c (hash_tree): Do not hash priorities.
14895 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
14896 not output priorities.
14897 (pack_ts_function_decl_value_fields): Likewise.
14898 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14899 not input priorities.
14900 (unpack_ts_function_decl_value_fields): Likewise.
14901 * symtab.c (symbol_priority_map): Declare.
14902 (init_priority_hash): Declare.
14903 (symtab_unregister_node): Unregister from priority hash, too.
14904 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
14905 New methods.
14906 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
14907 (symbol_priority_info): New function.
14908 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
14909 New methods.
14910 * tree-core.h (tree_priority_map): Remove.
14911
14912 2014-06-20 Jakub Jelinek <jakub@redhat.com>
14913
14914 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
14915 0xff to uint64_t before shifting it up.
14916
14917 2014-06-20 Julian Brown <julian@codesourcery.com>
14918 Chung-Lin Tang <cltang@codesourcery.com>
14919
14920 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
14921 TARGET_THUMB1_ONLY. Add comments.
14922
14923 2014-06-19 Tom de Vries <tom@codesourcery.com>
14924
14925 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
14926 return type to void.
14927 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
14928
14929 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14930
14931 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
14932 as "move", from depends_on.
14933
14934 2014-06-19 Terry Guo <terry.guo@arm.com>
14935
14936 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
14937 stage.
14938
14939 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
14940
14941 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
14942 Remove cr5.
14943 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
14944
14945 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14946
14947 PR target/61550
14948 * config/sh/sh.c (prepare_move_operands): Don't process TLS
14949 addresses here if reload in progress or completed.
14950
14951 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14952
14953 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
14954 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
14955 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
14956 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
14957 (mips_register_priority): New function that implements the target
14958 hook TARGET_REGISTER_PRIORITY.
14959 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
14960 (mips_lra_p): Likewise for TARGET_LRA_P.
14961 (TARGET_REGISTER_PRIORITY): Define macro.
14962 (TARGET_SPILL_CLASS): Likewise.
14963 (TARGET_LRA_P): Likewise.
14964 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
14965 classes.
14966 (REG_CLASS_NAMES): Likewise.
14967 (REG_CLASS_CONTENTS): Likewise.
14968 (BASE_REG_CLASS): Use M16_SP_REGS.
14969 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
14970 New set attribute to enable alternatives depending on the register
14971 allocator used.
14972 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
14973 (*lea64): Disable pattern for MIPS16.
14974 * config/mips/mips.opt (mlra): New option.
14975
14976 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14977
14978 * lra-constraints.c (base_to_reg): New function.
14979 (process_address): Use new function.
14980
14981 2014-06-18 Tom de Vries <tom@codesourcery.com>
14982
14983 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
14984 * config/aarch64/aarch64.c
14985 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
14986 (aarch64_emit_call_insn): New function.
14987 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
14988 of emit_call_insn.
14989 * config/aarch64/aarch64.md (define_expand "call_internal")
14990 (define_expand "call_value_internal", define_expand "sibcall_internal")
14991 (define_expand "sibcall_value_internal"): New.
14992 (define_expand "call", define_expand "call_value")
14993 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
14994 expand variant and aarch64_emit_call_insn.
14995
14996 2014-06-18 Radovan Obradovic <robradovic@mips.com>
14997 Tom de Vries <tom@codesourcery.com>
14998
14999 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15000 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15001 Redefine to true.
15002 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15003 clobbers to CALL_INSN_FUNCTION_USAGE.
15004 (define_expand "sibcall_internal")
15005 (define_expand "sibcall_value_internal"): New.
15006 (define_expand "call", define_expand "call_value"): Add argument to
15007 arm_emit_call_insn.
15008 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15009 (define_expand "sibcall_value"): Use sibcall_value_internal and
15010 arm_emit_call_insn.
15011
15012 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15013
15014 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15015
15016 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15017
15018 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15019 __udivmoddi4.
15020
15021 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15022
15023 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15024 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15025 annotations. Fix DWARF information.
15026
15027 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15028
15029 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15030 __udivmoddi4, and fixups for negative operands.
15031
15032 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15033
15034 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15035
15036 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15037
15038 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15039 to __udivmoddi4.
15040
15041 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15042
15043 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15044 manipulation.
15045
15046 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15047
15048 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15049 describing register usage on function entry and exit.
15050
15051 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15052
15053 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15054 (__aeabi_ldivmod): Fix whitespace.
15055
15056 2014-06-18 Andreas Schwab <schwab@suse.de>
15057
15058 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15059 Remove blank line after @item.
15060
15061 2014-06-18 Richard Henderson <rth@redhat.com>
15062
15063 PR target/61545
15064 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15065
15066 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15067
15068 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15069 POST_MODIFY for neon loads and stores.
15070 (arm_print_operand): Output post-index register for neon loads and
15071 stores.
15072
15073 2014-06-18 Richard Biener <rguenther@suse.de>
15074
15075 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15076
15077 2014-06-18 Richard Biener <rguenther@suse.de>
15078
15079 * tree-pass.h (make_pass_dce_loop): Remove.
15080 * passes.def: Replace pass_dce_loop with pass_dce.
15081 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15082 changed free niter estimates and reset the scev cache.
15083 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15084 make_pass_dce_loop): Remove.
15085 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15086 (fini_copy_prop): Return whether something changed. Always
15087 let substitute_and_fold perform DCE and free niter estimates
15088 and reset the scev cache if so.
15089 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15090 (pass_data_copy_prop): Do not unconditionally schedule
15091 cleanup-cfg or update-ssa.
15092
15093 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15094
15095 PR tree-optimization/61518
15096 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15097 reduction var is used in reduction stmt or phi-function only.
15098
15099 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15100
15101 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15102
15103 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15104
15105 PR tree-optimization/61517
15106 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15107 whose rhs's first tree is the source expression instead of the
15108 expression itself.
15109 (find_bswap_or_nop): Likewise.
15110 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15111 gimple stmt whose rhs's first tree is the source. In the memory source
15112 case, move the stmt to be replaced close to one of the original load to
15113 avoid the problem of a store between the load and the stmt's original
15114 location.
15115 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15116 signature.
15117
15118 2014-06-18 Andreas Schwab <schwab@suse.de>
15119
15120 PR rtl-optimization/54555
15121 * postreload.c (move2add_use_add2_insn): Substitute
15122 STRICT_LOW_PART only if it is cheaper.
15123
15124 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15125
15126 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15127 Do not use unspec as call operand. Use memory_operand instead of
15128 memory_nox32_operand and add "m" operand constraint. Disable
15129 pattern for TARGET_X32.
15130 (*sibcall_pop_memory): Ditto.
15131 (*sibcall_value_memory): Ditto.
15132 (*sibcall_value_pop_memory): Ditto.
15133 (sibcall peepholes): Merge SImode and DImode patterns using
15134 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15135 Disable pattern for TARGET_X32. Check if eliminated register is
15136 really dead after call insn. Generate call RTX without unspec operand.
15137 (sibcall_value peepholes): Ditto.
15138 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15139 instead of memory_nox32_operand. Check if eliminated register is
15140 really dead after call insn. Generate call RTX without unspec operand.
15141 (sibcall_value_pop peepholes): Ditto.
15142 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15143
15144 2014-06-18 Terry Guo <terry.guo@arm.com>
15145
15146 PR target/61544
15147 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15148 reach the head.
15149
15150 2014-06-18 Olivier Hainque <hainque@adacore.com>
15151
15152 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15153 memorization of the end of block source location.
15154 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15155 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15156 end source location info we have on the block entry/exit code we
15157 generate.
15158
15159 2014-06-18 Richard Biener <rguenther@suse.de>
15160
15161 * common.opt (fssa-phiopt): New option.
15162 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15163 but not with -Og.
15164 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15165 * doc/invoke.texi (-fssa-phiopt): Document.
15166
15167 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15168
15169 * genattrtab.c (n_bypassed): New variable.
15170 (process_bypasses): Initialise n_bypassed.
15171 Count number of bypassed reservations.
15172 (make_automaton_attrs): Allocate space for bypassed reservations
15173 rather than number of bypasses.
15174
15175 2014-06-18 Richard Biener <rguenther@suse.de>
15176
15177 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15178 we propagated anything.
15179 (substitute_and_fold_dom_walker::before_dom_children): Something
15180 changed if we propagated into PHI arguments.
15181 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15182 we removed a stmt.
15183
15184 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15185
15186 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15187 vector case.
15188 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15189 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15190 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15191 Introduces alternative way of loads group permutaions.
15192 (vect_transform_grouped_load): Try alternative way of permutations.
15193
15194 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15195
15196 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15197 changed in ORT_TARGET region, don't jump to do_outer.
15198 (struct gimplify_adjust_omp_clauses_data): New type.
15199 (gimplify_adjust_omp_clauses_1): Adjust for data being
15200 a struct gimplify_adjust_omp_clauses_data pointer instead
15201 of tree *. Pass pre_p as a new argument to
15202 lang_hooks.decls.omp_finish_clause hook.
15203 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15204 splay_tree_foreach to pass both list_p and pre_p.
15205 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15206 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15207 gimplify_adjust_omp_clauses callers.
15208 * langhooks.c (lhd_omp_finish_clause): New function.
15209 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15210 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15211 * langhooks.h (struct lang_hooks_for_decls): Add a new
15212 gimple_seq * argument to omp_finish_clause hook.
15213 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15214 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15215 (scan_omp_parallel, lower_omp_for): When adding
15216 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15217 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15218 * tree-nested.c (convert_nonlocal_omp_clauses,
15219 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15220 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15221
15222 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15223
15224 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15225 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15226
15227 2014-06-17 Xinliang David Li <davidxl@google.com>
15228
15229 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15230 * passes.c (pass_init_dump_file): Do not set initialize
15231 flag to false unconditionally.
15232
15233 2014-06-17 Richard Biener <rguenther@suse.de>
15234
15235 * genopinit.c (main): Use vec<>::qsort method.
15236 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15237 Likewise.
15238 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15239
15240 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15241
15242 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15243 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15244 (mips_move_to_gpr_cost): Remove ST_REGS case.
15245 (mips_move_from_gpr_cost): Likewise.
15246 (mips_register_move_cost): Likewise.
15247 (mips_secondary_reload_class): Likewise.
15248
15249 2014-06-17 Richard Biener <rguenther@suse.de>
15250
15251 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15252 (pass_all_optimizations): Move 3rd copy-prop pass from after
15253 fre to before ifcombine/phiopt.
15254
15255 2014-06-17 Richard Biener <rguenther@suse.de>
15256
15257 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15258 and allow all blocks to be forwarders.
15259
15260 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15261
15262 PR target/61483
15263 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15264 variable 'size'; calculate 'size' right in the front; use
15265 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15266 pcum->aapcs_stack_words.
15267
15268 2014-06-17 Nick Clifton <nickc@redhat.com>
15269
15270 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15271 (umulhi3, mulsidi3, umulsidi3): Likewise.
15272
15273 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15274
15275 PR middle-end/61508
15276 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15277 check for section name.
15278
15279 2014-06-17 Richard Biener <rguenther@suse.de>
15280
15281 * tree-ssa-propagate.c: Include domwalk.h.
15282 (substitute_and_fold): Outline main worker into a domwalker ...
15283 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15284 Schedule stmts we can fully propagate for removal. Remove
15285 poor-mans DCE.
15286 (substitute_and_fold): Apply a dominator walk to perform
15287 substitution. Process stmts scheduled for removal here.
15288
15289 2014-06-17 Richard Biener <rguenther@suse.de>
15290
15291 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15292 of PHI node moving.
15293
15294 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15295
15296 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15297 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15298 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15299 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15300 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15301 TARGET_HARD_FLOAT.
15302 (get_fpscr) : Likewise.
15303
15304 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15305
15306 PR rtl-optimization/61325
15307 * lra-constraints.c (valid_address_p): Add forward declaration.
15308 (simplify_operand_subreg): Check address validity before and after
15309 alter_reg of memory subreg.
15310
15311 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15312
15313 * config/i386/i386.c (decide_alg): Correctly handle
15314 maximum size of stringop algorithm.
15315
15316 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15317
15318 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15319
15320 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15321
15322 PR rtl-optimization/61522
15323 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15324
15325 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15326
15327 Revert:
15328 * symtab.c (symtab_node::reset_section): New method.
15329 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15330 for localization.
15331 * cgraph.h (reset_section): Declare.
15332 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15333 do not consider comdat locals.
15334 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15335 for new symbol.
15336 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15337 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15338 reset sections of symbols dragged out of the comdats.
15339 (function_and_variable_visibility): Reset sections of
15340 localized symbols.
15341
15342 2014-06-16 Richard Biener <rguenther@suse.de>
15343
15344 PR tree-optimization/61482
15345 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15346 [-INF(OVF), +INF(OVF)] range.
15347
15348 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15349
15350 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15351 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15352 handling 32-bit multiplication.
15353
15354 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15355
15356 PR middle-end/61430
15357 * lra-lives.c (process_bb_lives): Skip creating copy during
15358 insn scan when src/dest has constrained to same regno.
15359
15360 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15361
15362 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15363 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15364
15365 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15366
15367 * asan.c (check_func): New function.
15368 (maybe_create_ssa_name): Likewise.
15369 (build_check_stmt_with_calls): Likewise.
15370 (use_calls_p): Likewise.
15371 (report_error_func): Change interface.
15372 (build_check_stmt): Allow non-integer lengths; add support
15373 for new parameter.
15374 (asan_instrument): Likewise.
15375 (instrument_mem_region_access): Moved code to build_check_stmt.
15376 (instrument_derefs): Likewise.
15377 (instrument_strlen_call): Likewise.
15378 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15379 * doc/invoke.texi: Describe new parameter.
15380 * params.def: Define new parameter.
15381 * params.h: Likewise.
15382 * sanitizer.def: Describe new builtins.
15383
15384 2014-06-16 Richard Biener <rguenther@suse.de>
15385
15386 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15387 Make all defs available at the end.
15388 (eliminate): If we remove a PHI node schedule cfg-cleanup.
15389
15390 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15391
15392 PR plugins/45078
15393 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
15394
15395 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
15396
15397 PR bootstrap/61516
15398 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
15399 initialization. Replace remaining use of uid.
15400
15401 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15402
15403 * c-family/c-common.c (handle_tls_model_attribute): Use
15404 set_decl_tls_model.
15405 * c-family/c-common.c (handle_tls_model_attribute): Use
15406 set_decl_tls_model.
15407 * cgraph.h (struct varpool_node): Add tls_model.
15408 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
15409 * tree.h (DECL_TLS_MODEL): Update.
15410 (DECL_THREAD_LOCAL_P): Check that variable is static.
15411 (decl_tls_model): Declare.
15412 (set_decl_tls_model): Declare.
15413 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
15414 set symbol prorperties.
15415 (get_emutls_init_templ_addr): Cleanup.
15416 (new_emutls_decl): Update.
15417 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
15418 (lto_input_varpool_node): Likewise.
15419 * lto-streamer-out.c (hash_tree): Likewise.
15420 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15421 not stream DECL_TLS_MODEL.
15422 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
15423 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
15424
15425 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15426
15427 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
15428
15429 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15430
15431 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
15432 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
15433 lists.
15434 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
15435 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
15436 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
15437 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
15438 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
15439 (df_get_artificial_defs, df_get_artificial_uses)
15440 (df_single_def, df_single_use): Update accordingly.
15441 (df_refs_chain_dump): Take the first element in a linked list as
15442 parameter, rather than a pointer to an array of pointers.
15443 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
15444 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
15445 (df_chain_create_bb_process_use): Likewise.
15446 (df_md_bb_local_compute_process_def): Likewise.
15447 * fwprop.c (process_defs, process_uses): Likewise.
15448 (register_active_defs, update_uses): Likewise.
15449 (forward_propagate_asm): Update for new df_ref linking.
15450 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
15451 (df_null_ref_rec, df_null_mw_rec): Likewise.
15452 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
15453 explicitly.
15454 (df_scan_free_bb_info): Remove check for null artificial_defs.
15455 (df_install_ref_incremental): Adjust for new df_ref linking.
15456 Use a single-element insertion rather than a full sort.
15457 (df_ref_chain_delete_du_chain): Take the first element
15458 in a linked list as parameter, rather than a pointer to an array of
15459 pointers.
15460 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
15461 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
15462 (df_insn_info_delete): Remove check for null defs and call to
15463 df_scan_free_mws_vec.
15464 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
15465 null rather than df_null_*_rec.
15466 (df_insn_rescan_debug_internal): Likewise, and update null
15467 checks in the same way. Remove check for null defs.
15468 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
15469 Move a single element rather doing a full sort.
15470 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
15471 linking.
15472 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
15473 Initialize df_ref and df_mw_hardreg lists to null rather than
15474 df_null_*_rec.
15475 (df_ref_compare): Take df_refs as parameter, transferring the
15476 old interface to...
15477 (df_ref_ptr_compare): ...this new function.
15478 (df_sort_and_compress_refs): Update accordingly.
15479 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
15480 old interface to...
15481 (df_mw_ptr_compare): ...this new function.
15482 (df_sort_and_compress_mws): Update accordingly.
15483 (df_install_refs, df_install_mws): Return a linked list rather than
15484 an array of pointers.
15485 (df_refs_add_to_chains): Assert that old lists are empty rather
15486 than freeing them.
15487 (df_insn_refs_verify): Don't handle null defs speciailly.
15488 * web.c (union_match_dups): Update for new df_ref linking.
15489
15490 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15491
15492 * df.h (df_ref_create, df_ref_remove): Delete.
15493 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15494 (df_ref_remove): Likewise.
15495
15496 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15497
15498 * df.h (df_single_def, df_single_use): New functions.
15499 * ira.c (find_moveable_pseudos): Use them.
15500
15501 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15502
15503 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15504 * df-problems.c (df_note_bb_compute): Use it.
15505 * regstat.c (regstat_bb_compute_ri): Likewise.
15506
15507 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15508
15509 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15510 * cse.c (cse_extended_basic_block): Use them.
15511 * dce.c (mark_artificial_use): Likewise.
15512 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15513 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15514 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15515 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15516 (df_simulate_initialize_backwards): Likewise.
15517 (df_simulate_finalize_backwards): Likewise.
15518 (df_simulate_initialize_forwards): Likewise.
15519 (df_md_simulate_artificial_defs_at_top): Likewise.
15520 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15521 * regrename.c (init_rename_info): Likewise.
15522 * regstat.c (regstat_bb_compute_ri): Likewise.
15523 (regstat_bb_compute_calls_crossed): Likewise.
15524
15525 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15526
15527 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15528 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15529 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15530 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15531 * combine.c (create_log_links): Likewise.
15532 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15533 (try_eliminate_compare): Likewise.
15534 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15535 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15536 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15537 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15538 (word_dce_process_block, dce_process_block): Likewise.
15539 * ddg.c (def_has_ccmode_p): Likewise.
15540 * df-core.c (df_bb_regno_first_def_find): Likewise.
15541 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15542 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15543 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15544 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15545 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15546 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15547 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15548 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15549 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15550 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15551 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15552 * fwprop.c (local_ref_killed_between_p): Likewise.
15553 (all_uses_available_at, free_load_extend): Likewise.
15554 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15555 * hw-doloop.c (scan_loop): Likewise.
15556 * ifcvt.c (dead_or_predicable): Likewise.
15557 * init-regs.c (initialize_uninitialized_regs): Likewise.
15558 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15559 (process_bb_node_lives): Likewise.
15560 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15561 (find_moveable_pseudos): Likewise.
15562 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15563 * recog.c (peep2_find_free_register): Likewise.
15564 * ree.c (get_defs): Likewise.
15565 * regstat.c (regstat_bb_compute_ri): Likewise.
15566 (regstat_bb_compute_calls_crossed): Likewise.
15567 * sched-deps.c (find_inc, find_mem): Likewise.
15568 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15569 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15570 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15571 (prepare_shrink_wrap): Likewise.
15572 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15573 * web.c (union_defs, pass_web::execute): Likewise.
15574 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15575 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15576
15577 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
15578
15579 * lra-assign.c (assign_by_spills): Add code to assign vector regs
15580 to inheritance pseudos.
15581 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15582
15583 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
15584
15585 PR target/61415
15586 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15587 (BU_MISC_2): Rename to ...
15588 (BU_LDBL128_2): ... this.
15589 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15590 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15591 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15592 RS6000_BTM_LDBL128.
15593 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15594 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15595 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15596 (unpacktf_1): Likewise.
15597 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15598 (__builtin_longdouble_dw1): Likewise.
15599 * doc/sourcebuild.texi (longdouble128): Document.
15600
15601 2014-06-13 Jeff Law <law@redhat.com>
15602
15603 PR rtl-optimization/61094
15604 PR rtl-optimization/61446
15605 * ree.c (combine_reaching_defs): Get the mode for the copy from
15606 the extension insn rather than the defining insn.
15607
15608 2014-06-13 Dehao Chen <dehao@google.com>
15609
15610 * dwarf2out.c (add_linkage_name): Emit more linkage name.
15611
15612 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
15613
15614 * doc/install.texi (--enable-linker-plugin-configure-flags)
15615 (--enable-linker-plugin-flags): Document new flags.
15616
15617 2014-06-13 Martin Jambor <mjambor@suse.cz>
15618
15619 PR ipa/61186
15620 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15621 cache_token if returning early.
15622
15623 2014-06-13 Nick Clifton <nickc@redhat.com>
15624
15625 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15626 requested alignment is active.
15627 (LABEL_ALIGN): Likewise.
15628 (LOOP_ALIGN): Likewise.
15629
15630 2014-06-13 Richard Biener <rguenther@suse.de>
15631
15632 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15633 Rewrite to propagate the VN result into all uses where
15634 possible and to remove stmts becoming dead because of that.
15635 (eliminate): Generalize stmt removal handling, remove in
15636 reverse dominator order to support proper debug stmt
15637 generation. Update stmts before removing stmts.
15638 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15639
15640 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15641
15642 PR tree-optimization/61375
15643 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15644 symbolic number cannot be represented in an uint64_t.
15645 (find_bswap_or_nop_1): Likewise.
15646
15647 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15648
15649 * symtab.c (symtab_node::reset_section): New method.
15650 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15651 for localization.
15652 * cgraph.h (reset_section): Declare.
15653 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15654 do not consider comdat locals.
15655 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15656 for new symbol.
15657 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15658 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15659 reset sections of symbols dragged out of the comdats.
15660 (function_and_variable_visibility): Reset sections of
15661 localized symbols.
15662
15663 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15664
15665 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15666 to use symtab and decl_binds_to_current_def_p
15667 * tree-vectorizer.c (increase_alignment): Increase alignment
15668 of alias target, too.
15669
15670 2014-06-12 Jakub Jelinek <jakub@redhat.com>
15671
15672 PR middle-end/61486
15673 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15674 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15675 if outer combined construct is distribute.
15676 (gimplify_omp_for): For OMP_DISTRIBUTE set
15677 gimplify_omp_ctxp->distribute.
15678 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15679 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15680 mapping into decl map.
15681
15682 2014-06-12 Jason Merrill <jason@redhat.com>
15683
15684 * common.opt (fabi-version): Change default to 0.
15685
15686 2014-06-12 Jason Merrill <jason@redhat.com>
15687
15688 * toplev.c (process_options): Reject -fabi-version=1.
15689
15690 2014-06-12 Jeff Law <law@redhat.com>
15691
15692 PR tree-optimization/61009
15693 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15694 value when we stop processing a block due to problematic PHIs.
15695
15696 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15697
15698 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15699 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15700 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15701 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15702 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15703 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15704 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15705 are not in the spec.
15706
15707 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15708
15709 PR target/59843
15710 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15711 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15712 Support V1DFmode.
15713
15714 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15715
15716 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15717
15718 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15719
15720 PR target/61443
15721 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15722 loading from address spaces.
15723
15724 2014-06-12 Martin Liska <mliska@suse.cz>
15725
15726 PR ipa/61462
15727 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15728 statement is reachable.
15729
15730 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15731
15732 * symtab.c (section_hash): New hash.
15733 (symtab_unregister_node): Clear section before freeing.
15734 (hash_section_hash_entry): New haser.
15735 (eq_sections): New function.
15736 (symtab_node::set_section_for_node): New method.
15737 (set_section_1): Update.
15738 (symtab_node::set_section): Take string instead of tree as parameter.
15739 (symtab_resolve_alias): Update.
15740 * cgraph.h (section_hash_entry_d): New structure.
15741 (section_hash_entry): New typedef.
15742 (cgraph_node): Change comdat_group_ to x_comdat_group,
15743 change section_ to x_section and turn into section_hash_entry;
15744 update accestors; put set_section_for_node offline.
15745 * tree.c (decl_section_name): Turn into string.
15746 (set_decl_section_name): Change parameter to be string.
15747 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15748 * sdbout.c (sdbout_one_type): Update.
15749 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15750 * varasm.c (IN_NAMED_SECTION, get_named_section,
15751 resolve_unique_section, hot_function_section, get_named_text_section,
15752 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15753 make_decl_rtl, default_unique_section): Update.
15754 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15755 (c6x_elf_unique_section): Update.
15756 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15757 * config/pa/pa.c (pa_function_section): Update.
15758 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15759 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15760 * config/arc/arc.c (arc_in_small_data_p): Update.
15761 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15762 * config/mcore/mcore.c (mcore_unique_section): Update.
15763 * config/mips/mips.c (mips16_build_function_stub): Update.
15764 (mips16_build_call_stub): Update.
15765 (mips_function_rodata_section): Update.
15766 (mips_in_small_data_p): Update.
15767 * config/score/score.c (score_in_small_data_p): Update.
15768 * config/rx/rx.c (rx_in_small_data): Update.
15769 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15770 (rs6000_xcoff_asm_named_section): Update.
15771 (rs6000_xcoff_unique_section): Update.
15772 * config/frv/frv.c (frv_string_begins_with): Update.
15773 (frv_in_small_data_p): Update.
15774 * config/v850/v850.c (v850_encode_data_area): Update.
15775 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15776 (bfin_handle_l1_data_attribute): Update.
15777 (bfin_handle_l2_attribute): Update.
15778 * config/mep/mep.c (mep_unique_section): Update.
15779 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15780 Update.
15781 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15782 (h8300_handle_tiny_data_attribute): Update.
15783 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15784 (m32r_in_small_data_p): Update.
15785 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15786 * config/i386/i386.c (ix86_in_large_data_p): Update.
15787 * config/i386/winnt.c (i386_pe_unique_section): Update.
15788 * config/darwin.c (darwin_function_section): Update.
15789 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15790 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15791 (new_emutls_decl): Update.
15792 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15793 input_varpool_node): Update.
15794 (ead_string_cst): Turn to ...
15795 (read_string): ... this one.
15796 * dwarf2out.c (secname_for_decl): Update.
15797 * asan.c (asan_protect_global): Update.
15798
15799 2014-06-11 DJ Delorie <dj@redhat.com>
15800
15801 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15802 cache lines.
15803 * config/rx/rx.c (rx_option_override): Likewise.
15804 (rx_align_for_label): Likewise.
15805
15806 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15807
15808 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15809
15810 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15811 prototype.
15812
15813 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15814
15815 * common.md: New file.
15816 * doc/md.texi: Update description of generic, machine-independent
15817 constraints.
15818 * config/s390/constraints.md (e): Delete.
15819 * Makefile.in (md_file): Include common.md.
15820 * config/m32c/t-m32c (md_file): Likewise.
15821 * genpreds.c (general_mem): New array.
15822 (generic_constraint_letters): Remove constraints now defined by
15823 common.md.
15824 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15825 Allow the first character to be '<' or '>' as well.
15826 * genoutput.c (general_mem): New array.
15827 (indep_constraints): Remove constraints now defined by common.md.
15828 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15829 Remove special handling of 'm'.
15830 * ira-costs.c (record_reg_classes): Remove special handling of
15831 constraints now defined by common.md.
15832 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15833 * ira-lives.c (single_reg_class): Likewise.
15834 (ira_implicitly_set_insn_hard_regs): Likewise.
15835 * lra-constraints.c (reg_class_from_constraints): Likewise.
15836 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15837 * postreload.c (reload_cse_simplify_operands): Likewise.
15838 * reload.c (push_secondary_reload, scratch_reload_class)
15839 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15840 * reload1.c (maybe_fix_stack_asms): Likewise.
15841 * targhooks.c (default_secondary_reload): Likewise.
15842 * stmt.c (parse_output_constraint): Likewise.
15843 * recog.c (preprocess_constraints): Likewise.
15844 (constrain_operands, peep2_find_free_register): Likewise.
15845 (asm_operand_ok): Likewise, but add a comment saying why 'o'
15846 must be handled specially.
15847
15848 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15849
15850 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
15851 * genpreds.c (have_const_dbl_constraints): Delete.
15852 (add_constraint): Don't set it.
15853 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
15854 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
15855 constraints using the lookup_constraint logic.
15856 * ira-lives.c (single_reg_class): Likewise.
15857 * ira.c (ira_setup_alts): Likewise.
15858 * lra-constraints.c (process_alt_operands): Likewise.
15859 * recog.c (asm_operand_ok, constrain_operands): Likewise.
15860 * reload.c (find_reloads): Likewise.
15861
15862 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15863
15864 * genpreds.c (const_int_start, const_int_end): New variables.
15865 (choose_enum_order): Output CONST_INT constraints before memory
15866 constraints.
15867 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
15868 Add CT_CONST_INT.
15869 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
15870 * ira.c (ira_setup_alts): Likewise.
15871 * lra-constraints.c (process_alt_operands): Likewise.
15872 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15873 * reload.c (find_reloads): Likewise.
15874
15875 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15876
15877 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
15878 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
15879 * recog.c (preprocess_constraints): Update accordingly.
15880
15881 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15882
15883 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
15884 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
15885 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
15886 * genpreds.c (print_type_tree): New function.
15887 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
15888 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
15889 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
15890 Write out enum constraint_type and get_constraint_type.
15891 * lra-constraints.c (satisfies_memory_constraint_p): Take a
15892 constraint_num rather than a constraint string.
15893 (satisfies_address_constraint_p): Likewise.
15894 (reg_class_from_constraints): Avoid old constraint macros.
15895 (process_alt_operands, process_address_1): Likewise.
15896 (curr_insn_transform): Likewise.
15897 * ira-costs.c (record_reg_classes): Likewise.
15898 (record_operand_costs): Likewise.
15899 * ira-lives.c (single_reg_class): Likewise.
15900 (ira_implicitly_set_insn_hard_regs): Likewise.
15901 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15902 * postreload.c (reload_cse_simplify_operands): Likewise.
15903 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15904 (constrain_operands, peep2_find_free_register): Likewise.
15905 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
15906 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15907 * reload1.c (maybe_fix_stack_asms): Likewise.
15908 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15909 * targhooks.c (default_secondary_reload): Likewise.
15910 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
15911 to EXTRA_CONSTRAINT_STR.
15912 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
15913
15914 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15915
15916 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
15917 (write_constraint_satisfied_p_array): ...this new function.
15918 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
15919 an array.
15920 (write_insn_preds_c): Update accordingly.
15921
15922 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15923
15924 * genpreds.c (write_lookup_constraint): Rename to...
15925 (write_lookup_constraint_1): ...this.
15926 (write_lookup_constraint_array): New function.
15927 (write_tm_preds_h): Define lookup_constraint as an inline function
15928 that uses write_lookup_constraint_array where possible.
15929 (write_insn_preds_c): Update for the changes above.
15930
15931 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15932
15933 * doc/md.texi (regclass_for_constraint): Rename to...
15934 (reg_class_for_constraint): ...this.
15935 * genpreds.c (num_constraints, enum_order, register_start)
15936 (register_end, satisfied_start, memory_start, memory_end)
15937 (address_start, address_end): New variables.
15938 (add_constraint): Count the number of constraints.
15939 (choose_enum_order): New function.
15940 (write_enum_constraint_num): Iterate over enum_order.
15941 (write_regclass_for_constraint): Rename to...
15942 (write_reg_class_for_constraint_1): ...this and update output
15943 accordingly.
15944 (write_constraint_satisfied_p): Rename to...
15945 (write_constraint_satisfied_p_1): ...this and update output
15946 accordingly. Do nothing if all extra constraints are register
15947 constraints.
15948 (write_insn_extra_memory_constraint): Delete.
15949 (write_insn_extra_address_constraint): Delete.
15950 (write_range_function): New function.
15951 (write_tm_preds_h): Define constraint_satisfied_p and
15952 reg_class_for_constraint as inline functions that do a range check
15953 before calling the out-of-line function. Use write_range_function
15954 to implement insn_extra_{register,memory,address}_constraint,
15955 the first of which is new.
15956 (write_insn_preds_c): Update after above changes to write_* functions.
15957 (main): Call choose_enum_order.
15958
15959 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
15960
15961 PR tree-optimization/61306
15962 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
15963 expression instead of its size.
15964 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
15965 false to prevent optimization when the result is unpredictable due to
15966 arithmetic right shift of signed type with highest byte is set.
15967 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
15968 (init_symbolic_number): Likewise.
15969 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
15970 when the result is unpredictable due to sign extension.
15971
15972 2014-06-11 Terry Guo <terry.guo@arm.com>
15973
15974 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
15975 (*thumb1_addsi3): Ditto.
15976 (*thumb_subdi3): Ditto.
15977 (thumb1_subsi3_insn): Ditto.
15978 (*thumb_mulsi3): Ditto.
15979 (*thumb_mulsi3_v6): Ditto.
15980 (*thumb1_andsi3_insn): Ditto.
15981 (thumb1_bicsi3): Ditto.
15982 (*thumb1_iorsi3_insn): Ditto.
15983 (*thumb1_xorsi3_insn): Ditto.
15984 (*thumb1_ashlsi3): Ditto.
15985 (*thumb1_ashrsi3): Ditto.
15986 (*thumb1_lshrsi3): Ditto.
15987 (*thumb1_rotrsi3): Ditto.
15988 (*thumb1_negdi2): Ditto.
15989 (*thumb1_negsi2): Ditto.
15990 (*thumb1_abssi2): Ditto.
15991 (*thumb1_neg_abssi2): Ditto.
15992 (*thumb1_one_cmplsi2): Ditto.
15993 (*thumb1_zero_extendhisi2): Ditto.
15994 (*thumb1_zero_extendqisi2): Ditto.
15995 (*thumb1_zero_extendqisi2_v6): Ditto.
15996 (thumb1_extendhisi2): Ditto.
15997 (thumb1_extendqisi2): Ditto.
15998 (*thumb1_movdi_insn): Ditto.
15999 (*thumb1_movsi_insn): Ditto.
16000 (*thumb1_movhi_insn): Ditto.
16001 (thumb_movhi_clobber): Ditto.
16002 (*thumb1_movqi_insn): Ditto.
16003 (*thumb1_movhf): Ditto.
16004 (*thumb1_movsf_insn): Ditto.
16005 (*thumb_movdf_insn): Ditto.
16006 (movmem12b): Ditto.
16007 (movmem8b): Ditto.
16008 (cbranchqi4): Ditto.
16009 (cbranchsi4_insn): Ditto.
16010 (cbranchsi4_scratch): Ditto.
16011 (*negated_cbranchsi4): Ditto.
16012 (*tbit_cbranch): Ditto.
16013 (*tlobits_cbranch): Ditto.
16014 (*tstsi3_cbranch): Ditto.
16015 (*cbranchne_decr1): Ditto.
16016 (*addsi3_cbranch): Ditto.
16017 (*addsi3_cbranch_scratch): Ditto.
16018 (*thumb_cmpdi_zero): Ditto.
16019 (cstoresi_eq0_thumb1): Ditto.
16020 (cstoresi_ne0_thumb1): Ditto.
16021 (*cstoresi_eq0_thumb1_insn): Ditto.
16022 (*cstoresi_ne0_thumb1_insn): Ditto.
16023 (cstoresi_nltu_thumb1): Ditto.
16024 (cstoresi_ltu_thumb1): Ditto.
16025 (thumb1_addsi3_addgeu): Ditto.
16026 (*thumb_jump): Ditto.
16027 (*call_reg_thumb1_v5): Ditto.
16028 (*call_reg_thumb1): Ditto.
16029 (*call_value_reg_thumb1_v5): Ditto.
16030 (*call_value_reg_thumb1): Ditto.
16031 (*call_insn): Ditto.
16032 (*call_value_insn): Ditto.
16033 (thumb1_casesi_internal_pic): Ditto.
16034 (thumb1_casesi_dispatch): Ditto.
16035 (*thumb1_indirect_jump): Ditto.
16036 (prologue_thumb1_interwork): Ditto.
16037 (*epilogue_insns): Ditto.
16038 (consttable_1): Ditto.
16039 (consttable_2): Ditto.
16040 (tablejump): Ditto.
16041 (*thumb1_tablejump): Ditto.
16042 (thumb_eh_return): Ditto.
16043 (define_peephole2): Two of them are thumb1 only and got moved into
16044 new file thumb1.md.
16045 (define_split): Six of them are thumb1 only and got moved into new
16046 file thumb1.md.
16047 * config/arm/thumb1.md: New file comprised of above thumb1 only
16048 patterns.
16049
16050 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16051
16052 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16053 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16054 dependencies.
16055 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16056 (aarch64_crc_builtin_datum): New struct.
16057 (aarch64_crc_builtin_data): New.
16058 (aarch64_init_crc32_builtins): New function.
16059 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16060 (aarch64_crc32_expand_builtin): New.
16061 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16062 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16063 __ARM_FEATURE_CRC32 when appropriate.
16064 (TARGET_CRC32): Define.
16065 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16066 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16067 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16068 (aarch64_<crc_variant>): New pattern.
16069 * config/aarch64/arm_acle.h: New file.
16070 * config/aarch64/iterators.md (CRC): New int iterator.
16071 (crc_variant, crc_mode): New int attributes.
16072 * doc/aarch64-acle-intrinsics.texi: New file.
16073 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16074 Include aarch64-acle-intrinsics.texi.
16075
16076 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16077
16078 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16079 check for stores group of length 3.
16080 (vect_permute_store_chain): New permutations for stores group of
16081 length 3.
16082 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16083 of vec_perm_shuffle for the new permutations.
16084
16085 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16086
16087 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16088 table rewriting temporarily on targets not supporting ONE_ONLY.
16089
16090 2014-06-11 Richard Biener <rguenther@suse.de>
16091
16092 PR middle-end/61437
16093 Revert
16094 2014-06-04 Richard Biener <rguenther@suse.de>
16095
16096 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16097 TREE_PUBLIC and DECL_EXTERNAL decls.
16098
16099 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16100
16101 * varasm.c (set_implicit_section): New function.
16102 (resolve_unique_section): Use it to set implicit section
16103 for aliases, too.
16104 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16105 (default_function_section): Likewise.
16106 (decl_binds_to_current_def_p): Constify argument.
16107 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16108 * asan.c (asan_protect_global): Use
16109 symtab_get_node (decl)->implicit_section.
16110 * symtab.c (dump_symtab_base): Dump implicit sections.
16111 (verify_symtab_base): Verify sanity of sectoins and comdats.
16112 (symtab_resolve_alias): Alias share the section of its target.
16113 (set_section_1): New function.
16114 (symtab_node::set_section): Move here, recurse to aliases.
16115 (verify_symtab): Check for duplicated symtab lists.
16116 * tree-core.h (implicit_section_name_p): Remove.
16117 * tree-vect-data-refs.c: Include varasm.h.
16118 (vect_can_force_dr_alignment_p): Fix conditional on when
16119 decl bints to current definition; use
16120 symtab_get_node (decl)->implicit_section.
16121 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16122 * cgraph.h (struct symtab_node): Add implicit_section.
16123 (set_section): Rename to ...
16124 (set_section_for_node): ... this one.
16125 (set_section): Declare.
16126 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16127 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16128 input_overwrite_node, input_varpool_node): Stream implicit_section.
16129 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16130 removal; it will fail in LTO.
16131
16132 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16133
16134 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16135 Change second alternative type to f_mcr.
16136 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16137 and 12th alternatives' types to f_mcr and f_mrc.
16138 (*movdi_aarch64): Same for 12th and 13th alternatives.
16139 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16140 (aarch64_movtilow_tilow): Change type to fmov.
16141
16142 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16143
16144 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16145 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16146
16147 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16148
16149 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16150 New expander.
16151 (aarch64_sqrdmulh_lane<mode>): Likewise.
16152 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16153 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16154 (aarch64_sqdmulh_laneq<mode>): New expander.
16155 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16156 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16157 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16158 (aarch64_sqdmulh_lane<mode>): New expander.
16159 (aarch64_sqrdmulh_lane<mode>): Likewise.
16160 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16161 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16162 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16163 (aarch64_sqdmlal_laneq<mode>): Likewise.
16164 (aarch64_sqdmlsl_lane<mode>): Likewise.
16165 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16166 (aarch64_sqdmlal2_lane<mode>): Likewise.
16167 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16168 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16169 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16170 (aarch64_sqdmull_lane<mode>): Likewise.
16171 (aarch64_sqdmull_laneq<mode>): Likewise.
16172 (aarch64_sqdmull2_lane<mode>): Likewise.
16173 (aarch64_sqdmull2_laneq<mode>): Likewise.
16174
16175 2014-06-10 Richard Biener <rguenther@suse.de>
16176
16177 PR tree-optimization/61438
16178 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16179 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16180 insertion of IVs if running PRE.
16181 (eliminate): Adjust.
16182 (pass_pre::execute): Likewise.
16183 (pass_fre::execute): Likewise.
16184
16185 2014-06-10 Richard Biener <rguenther@suse.de>
16186
16187 PR middle-end/61456
16188 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16189 Do not use the main variant for the type comparison.
16190 (ncr_compar): Likewise.
16191 (nonoverlapping_component_refs_p): Likewise.
16192
16193 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16194
16195 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16196 REG_CFA_RESTORE mode.
16197
16198 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16199
16200 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16201 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16202 expand_vec_perm_pblendv.
16203
16204 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16205
16206 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16207 available.
16208 Simplify description of __crc32d and __crc32cd intrinsics.
16209 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16210 availability.
16211
16212 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16213
16214 PR lto/61334
16215 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16216 * config.in: Regenerate.
16217 * configure: Likewise.
16218
16219 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16220
16221 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16222 and public vars.
16223 (intersect_static_var_sets): Remove.
16224 (propagate): Do not prune local statics.
16225
16226 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16227
16228 PR fortran/60928
16229 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16230 Set lastprivate_firstprivate even if omp_private_outer_ref
16231 langhook returns true.
16232 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16233 langhook, call unshare_expr on new_var and call
16234 build_outer_var_ref to get the last argument.
16235
16236 2014-06-10 Marek Polacek <polacek@redhat.com>
16237
16238 PR c/60988
16239 * doc/extend.texi: Add cindex for transparent_union.
16240
16241 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16242
16243 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16244 init_symbolic_number ().
16245
16246 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16247
16248 PR middle-end/61141
16249 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16250 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16251 (verify_rtl_sharing): Likewise.
16252
16253 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16254
16255 PR c++/54442
16256 * tree.c (build_qualified_type): Use a canonical type for
16257 TYPE_CANONICAL.
16258
16259 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16260
16261 * config/arm/arm-modes.def: Remove XFmode.
16262
16263 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16264
16265 PR target/61062
16266 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16267 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16268 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16269 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16270 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16271 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16272 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16273 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16274 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16275
16276 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16277
16278 * tree-core.h (tree_decl_with_vis): Remove section_name.
16279
16280 2014-06-09 Kito Cheng <kito@0xlab.org>
16281
16282 * ira.c (ira): Don't call init_caller_save if LRA enabled
16283 since LRA use its own infrastructure to handle that.
16284
16285 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16286
16287 * symtab.c (dump_symtab_base): Update dumping.
16288 (symtab_make_decl_local): Clear only DECL_COMDAT.
16289 * tree-vect-data-refs.c (Check that variable is static before
16290 tampering with sections.
16291 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16292 (cgraph_create_virtual_clone): Likewise.
16293 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16294 (decl_section_name, set_decl_section_name): New accessors.
16295 (find_decls_types_r): Do not walk section name
16296 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16297 (decl_comdat_group, decl_comdat_group_id): Constify.
16298 (decl_section_name, set_decl_section_name): Update.
16299 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16300 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16301 (cgraph_make_node_local_1): Clear section and comdat group.
16302 * cgraph.h (set_comdat_group): Sanity check.
16303 (get_section, set_section): New.
16304 * ipa-comdats.c (ipa_comdats): Use get_section.
16305 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16306 * lto-streamer-out.c: Do not follow section names.
16307 * c-family/c-common.c (handle_section_attribute): Update.
16308 * lto-cgraph.c (lto_output_node): Output section.
16309 (lto_output_varpool_node): Likewise.
16310 (read_comdat_group): Rename to ...
16311 (read_identifier): ... this one.
16312 (read_string_cst): New function.
16313 (input_node, input_varpool_node): Input section names.
16314 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16315 (new_emutls_decl): Update.
16316 (secname_for_decl): Check section names only of static vars.
16317 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16318 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16319 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16320 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16321 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16322 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16323 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16324 * config/v850/v850.c (v850_insert_attributes): Likewise.
16325 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16326 Likewise.
16327 (h8300_handle_tiny_data_attribute): Likewise.
16328 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16329 (bfin_handle_l2_attribute): Likewise.
16330
16331 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16332
16333 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16334 remove static initializer.
16335
16336 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16337
16338 * varasm.c (use_blocks_for_decl_p): Check symbol table
16339 instead of alias attribute.
16340 (place_block_symbol): Recurse on aliases.
16341
16342 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16343
16344 * ipa-visibility.c: Include varasm.h
16345 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16346
16347 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16348
16349 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16350 outputting aliases.
16351
16352 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16353
16354 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16355 from test_insn into GGC space escape via SET_SRC.
16356
16357 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16358
16359 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16360 call statement, if any.
16361 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16362 statements, if any. Tidy up.
16363
16364 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16365
16366 PR target/61431
16367 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16368 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16369 handles swapping the two 64-bit double words on little endian
16370 systems. Include V1TImode and optionally TImode in VSX_LE so that
16371 these types are properly swapped. Change all of the insns and
16372 splits that do the 64-bit swaps to use VSX_LE.
16373 (vsx_le_perm_load_<mode>): Likewise.
16374 (vsx_le_perm_store_<mode>): Likewise.
16375 (splitters for little endian memory operations): Likewise.
16376 (vsx_xxpermdi2_le_<mode>): Likewise.
16377 (vsx_lxvd2x2_le_<mode>): Likewise.
16378 (vsx_stxvd2x2_le_<mode>): Likewise.
16379
16380 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16381
16382 PR target/61423
16383 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16384 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
16385 and corresponding splitters. Zero extend general register
16386 or memory input operand to XMM temporary. Enable for
16387 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
16388 (floatunssi<mode>2): Update expander predicate.
16389
16390 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
16391
16392 PR rtl-optimization/61325
16393 * lra-constraints.c (process_address_1): Check scale equal to one
16394 to prevent transformation: base + scale * index => base + new_reg.
16395
16396 2014-06-06 Richard Biener <rguenther@suse.de>
16397
16398 PR tree-optimization/59299
16399 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
16400 a def operand.
16401 (nearest_common_dominator_of_uses): Likewise.
16402 (statement_sink_location): Adjust. Support sinking loads.
16403
16404 2014-06-06 Martin Jambor <mjambor@suse.cz>
16405
16406 * ipa-prop.c (get_place_in_agg_contents_list): New function.
16407 (build_agg_jump_func_from_list): Likewise.
16408 (determine_known_aggregate_parts): Renamed to
16409 determine_locally_known_aggregate_parts. Moved some functionality
16410 to the two functions above, removed bound checks.
16411
16412 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
16413
16414 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
16415 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
16416 (aarch64_progress_pointer): Likewise.
16417 (aarch64_copy_one_part_and_move_pointers): Likewise.
16418 (aarch64_expand_movmen): Likewise.
16419 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
16420 * config/aarch64/aarch64.md (movmem<mode>): New.
16421
16422 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
16423
16424 * targhooks.c (default_add_stmt_cost): Call target specific
16425 hook instead of default one.
16426
16427 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
16428
16429 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
16430 endianness instead of host endianness.
16431 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
16432 comments.
16433
16434 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16435
16436 PR debug/53927
16437 * function.c (instantiate_decls): Process the saved static chain.
16438 (expand_function_start): If not optimizing, save the static chain
16439 onto the stack.
16440 * tree-nested.c (convert_all_function_calls): Always create the static
16441 chain for nested functions if not optimizing.
16442
16443 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16444
16445 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
16446
16447 2014-06-06 Richard Biener <rguenther@suse.de>
16448
16449 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
16450 (construct_init_block): Likewise.
16451 (construct_exit_block): Likewise.
16452 (pass_expand::execute): Likewise.
16453 * graphite.c (graphite_transforms): Replace check for current_loops
16454 with a check for > 1 loops.
16455 (pass_graphite_transforms::execute): Adjust.
16456 * ipa-split.c (split_function): Remove check for current_loops.
16457 * omp-low.c (expand_parallel_call): Likewise.
16458 (expand_omp_for_init_counts): Likewise.
16459 (extract_omp_for_update_vars): Likewise.
16460 (expand_omp_for_generic): Likewise.
16461 (expand_omp_sections): Likewise.
16462 (expand_omp_target): Likewise.
16463 * tracer.c (tail_duplicate): Likewise.
16464 (pass_tracer::execute): Likewise.
16465 * trans-mem.c (expand_transaction): Likewise.
16466 * tree-complex.c (expand_complex_div_wide): Likewise.
16467 * tree-eh.c (lower_resx): Likewise.
16468 (cleanup_empty_eh_merge_phis): Likewise.
16469 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
16470 current_loops with a check for > 1 loops.
16471 (pass_predcom::execute): Adjust.
16472 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
16473 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
16474 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
16475 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
16476 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
16477 * tree-switch-conversion.c (process_switch): Likewise.
16478 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
16479 * tree-vrp.c (vrp_visit_phi_node): Likewise.
16480 (execute_vrp): Likewise.
16481 * ubsan.c (ubsan_expand_null_ifn): Likewise.
16482
16483 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
16484
16485 * rtl.h (insn_location): Declare.
16486 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16487 with UNKNOWN_LOCATION.
16488 * emit-rtl.c (insn_location): New function.
16489 * final.c (notice_source_line): Check that the instruction has a
16490 location before retrieving it and use insn_location.
16491 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16492 * print-rtl.c (print_rtx): Likewise.
16493
16494 2014-06-06 Richard Biener <rguenther@suse.de>
16495
16496 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16497
16498 2014-06-06 Christian Bruel <christian.bruel@st.com>
16499
16500 PR tree-optimization/43934
16501 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16502 cost.
16503
16504 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16505
16506 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16507 return NO_REGS for extra address and memory constraints. Handle
16508 operands that match (or are equivalent to something that matches)
16509 extra constant constraints. Ignore other non-register operands.
16510
16511 2014-06-06 Alan Modra <amodra@gmail.com>
16512
16513 PR target/61300
16514 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16515 * doc/tm.texi: Regenerate.
16516 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16517 Use throughout in place of REG_PARM_STACK_SPACE.
16518 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16519 "incoming" param. Pass to rs6000_function_parms_need_stack.
16520 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16521 prototype_p when incoming. Use function decl when incoming
16522 to handle K&R style functions.
16523 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16524 (INCOMING_REG_PARM_STACK_SPACE): Define.
16525
16526 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16527
16528 PR target/52472
16529 * cfgexpand.c (expand_debug_expr): Use address space of nested
16530 TREE_TYPE for ADDR_EXPR and MEM_REF.
16531
16532 2014-06-05 Jeff Law <law@redhat.com>
16533
16534 PR tree-optimization/61289
16535 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16536 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16537 looking for those which match LHS. All callers changed.
16538 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16539 parameters and code which manipulated them. All callers changed.
16540 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16541 and DST_MAP parameters. Simplify invalidation code by just calling
16542 invalidate_equivalences. All callers changed.
16543 (thread_across_edge): Simplify now that we don't need to maintain
16544 the map of equivalences to invalidate.
16545
16546 2014-06-05 Kai Tietz <ktietz@redhat.com>
16547 Richard Henderson <rth@redhat.com>
16548
16549 PR target/46219
16550 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16551 checking for !TARGET_X32.
16552 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16553 (sibcall_intern): New define_insn, plus required peepholes.
16554 (sibcall_pop_intern): Likewise.
16555 (sibcall_value_intern): Likewise.
16556 (sibcall_value_pop_intern): Likewise.
16557
16558 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16559
16560 * tree-inline.c (tree_function_versioning): Check DF info existence
16561 before accessing it.
16562
16563 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16564
16565 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16566 frame_size.
16567 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16568 aarch64_frame hard_fp_offset and frame_size.
16569 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16570 frame_size; remove original_frame_size.
16571 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16572 (aarch64_initial_elimination_offset): Remove frame_size and
16573 offset. Use aarch64_frame frame_size.
16574
16575 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16576 Jiong Wang <jiong.wang@arm.com>
16577 Renlin <renlin.li@arm.com>
16578
16579 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16580 initialization of R30 offset. Update offset. Iterate core
16581 regisers upto X30. Remove X29, X30 specific code.
16582
16583 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16584 Jiong Wang <jiong.wang@arm.com>
16585
16586 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16587 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16588 (aarch64_register_saved_on_entry): Adjust test.
16589
16590 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16591
16592 * config/aarch64/aarch64.h (machine_function): Move
16593 saved_varargs_size from here...
16594 (aarch64_frame): ... to here.
16595
16596 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16597 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16598 (aarch64_initial_elimination_offset)
16599 (aarch64_setup_incoming_varargs): Adjust location of
16600 saved_varargs_size.
16601
16602 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16603
16604 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16605 layout comment.
16606
16607 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
16608 Prachi Godbole <Prachi.Godbole@imgtec.com>
16609
16610 * config/mips/mips-cpus.def: Add definition for p5600. Updated
16611 mips32r5 entry to use PROCESSOR_P5600.
16612 * config/mips/mips-tables.opt: Regenerate.
16613 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16614 * config/mips/mips.c (mips_fmadd_bypass): New function.
16615 (mips_rtx_cost_data): Add costs for p5600.
16616 (mips_issue_rate): Add support for p5600.
16617 (mips_multipass_dfa_lookahead): Likewise.
16618 * config/mips/mips.h (TUNE_P5600): New define.
16619 (TUNE_MACC_CHAINS): Add TUNE_P5600.
16620 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16621 * config/mips/mips.md: Include p5600.md.
16622 (processor): Add p5600.
16623 * config/mips/p5600.md: New file.
16624
16625 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
16626
16627 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16628 * config/i386/predicates.md (palignr_operand): New.
16629 Indicates if permutation is suitable for palignr instruction.
16630
16631 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16632
16633 PR tree-optimization/61319
16634 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16635 stmt belongs to loop.
16636
16637 2014-06-05 Richard Biener <rguenther@suse.de>
16638
16639 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16640 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16641 (lookup_tmp_var): Adjust.
16642 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16643
16644 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16645
16646 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16647
16648 2014-06-05 Marek Polacek <polacek@redhat.com>
16649
16650 PR c/49706
16651 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16652
16653 2014-06-04 Tom de Vries <tom@codesourcery.com>
16654
16655 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16656 CONST_INT.
16657
16658 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16659
16660 PR tree-optimization/61385
16661 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16662
16663 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16664
16665 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
16666 changed to use fatal_error.
16667 (main): Ensure lto_wrapper_cleanup is run atexit.
16668
16669 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16670
16671 * lra-constraints.c (valid_address_p): Move earlier in file.
16672 (address_eliminator): New structure.
16673 (satisfies_memory_constraint_p): New function.
16674 (satisfies_address_constraint_p): Likewise.
16675 (process_alt_operands, process_address, curr_insn_transform): Use them.
16676
16677 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16678
16679 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16680 const pointer.
16681 (target_lra_int, default_target_lra_int, this_target_lra_int)
16682 (op_alt_data): Delete.
16683 * lra.h (lra_init): Delete.
16684 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16685 (init_insn_code_data_once): Remove op_alt_data handling.
16686 (finish_insn_code_data_once): Likewise.
16687 (init_op_alt_data): Delete.
16688 (get_static_insn_data): Initialize operand_alternative to null.
16689 (free_insn_recog_data): Cast operand_alternative before freeing it.
16690 (setup_operand_alternative): Take the operand_alternative as
16691 parameter and assume it isn't already cached in the static
16692 insn data.
16693 (lra_set_insn_recog_data): Update accordingly.
16694 (lra_init): Delete.
16695 * ira.c (ira_init): Don't call lra_init.
16696 * target-globals.h (this_target_lra_int): Declare.
16697 (target_globals): Remove lra_int.
16698 (restore_target_globals): Update accordingly.
16699 * target-globals.c: Don't include lra-int.h.
16700 (default_target_globals, save_target_globals): Remove lra_int.
16701
16702 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16703
16704 * recog.h (operand_alternative): Convert reg_class, reject,
16705 matched and matches into bitfields.
16706 (preprocess_constraints): New overload.
16707 (preprocess_insn_constraints): New function.
16708 (preprocess_constraints): Take the insn as parameter.
16709 (recog_op_alt): Change into a pointer.
16710 (target_recog): Add x_op_alt.
16711 * recog.c (asm_op_alt): New variable.
16712 (recog_op_alt): Change into a pointer.
16713 (preprocess_constraints): New overload, replacing the old function
16714 definition with one that doesn't use global state.
16715 (preprocess_insn_constraints): New function.
16716 (preprocess_constraints): Use them. Take the insn as parameter.
16717 Use asm_op_alt for asms.
16718 (recog_init): Free existing x_op_alt entries.
16719 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16720 pointer const.
16721 (make_early_clobber_and_input_conflicts): Likewise.
16722 (process_bb_node_lives): Pass the insn to process_constraints.
16723 * reg-stack.c (check_asm_stack_operands): Likewise.
16724 (subst_asm_stack_regs): Likewise.
16725 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16726 * regrename.c (build_def_use): Likewise.
16727 * sched-deps.c (sched_analyze_insn): Likewise.
16728 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16729 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16730 (note_invalid_constants): Likewise.
16731 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16732 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16733 const.
16734
16735 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16736
16737 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16738 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16739 alternatives.
16740 (make_early_clobber_and_input_conflicts): Likewise.
16741 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16742
16743 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16744
16745 * recog.h (alternative_class): New function.
16746 (which_op_alt): Return a const recog_op_alt.
16747 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16748 (subst_asm_stack_regs): Likewise.
16749 * config/arm/arm.c (note_invalid_constants): Likewise.
16750 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16751 the operand_alternative; use alternative class instead.
16752 * sel-sched.c (get_reg_class): Likewise.
16753 * regrename.c (build_def_use): Likewise.
16754 (hide_operands, restore_operands, record_out_operands): Update type
16755 accordingly.
16756
16757 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16758
16759 * recog.h (recog_op_alt): Convert to a flat array.
16760 (which_op_alt): New function.
16761 * recog.c (recog_op_alt): Convert to a flat array.
16762 (preprocess_constraints): Update accordingly, grouping all
16763 operands of the same alternative together, rather than the
16764 other way around.
16765 * ira-lives.c (check_and_make_def_conflict): Likewise.
16766 (make_early_clobber_and_input_conflicts): Likewise.
16767 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16768 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16769 (subst_asm_stack_regs): Likewise.
16770 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16771 * regrename.c (hide_operands, record_out_operands): Likewise.
16772 (build_def_use): Likewise.
16773 * sel-sched.c (get_reg_class): Likewise.
16774 * config/arm/arm.c (note_invalid_constants): Likewise.
16775
16776 2014-06-04 Jason Merrill <jason@redhat.com>
16777
16778 PR c++/51253
16779 PR c++/61382
16780 * gimplify.c (gimplify_arg): Non-static.
16781 * gimplify.h: Declare it.
16782
16783 2014-06-04 Richard Biener <rguenther@suse.de>
16784
16785 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16786 TREE_PUBLIC and DECL_EXTERNAL decls.
16787
16788 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16789
16790 * regcprop.c (copyprop_hardreg_forward_1): Account for
16791 HARD_REGNO_CALL_PART_CLOBBERED.
16792
16793 2014-06-04 Richard Biener <rguenther@suse.de>
16794
16795 * configure.ac: Check whether the underlying type of int64_t
16796 is long or long long.
16797 * configure: Regenerate.
16798 * config.in: Likewise.
16799 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16800 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16801
16802 2014-06-04 Richard Biener <rguenther@suse.de>
16803
16804 PR tree-optimization/60098
16805 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16806 we hit a kill.
16807 (dse_optimize_stmt): Simplify, now that we found a kill
16808 earlier.
16809
16810 2014-06-04 Richard Biener <rguenther@suse.de>
16811
16812 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16813 of accesses with non-invariant address.
16814
16815 2014-06-04 Martin Liska <mliska@suse.cz>
16816
16817 * cgraph.h (cgraph_make_wrapper): New function introduced.
16818 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16819 * ipa-inline.h (inline_analyze_function): The function is global.
16820 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16821
16822 2014-06-04 Martin Liska <mliska@suse.cz>
16823
16824 * tree.h (private_lookup_attribute_starting): New function.
16825 (lookup_attribute_starting): Likewise.
16826 * tree.c (private_lookup_attribute_starting): Likewise.
16827
16828 2014-06-04 Martin Liska <mliska@suse.cz>
16829
16830 * cgraph.h (expand_thunk): New argument added.
16831 (address_taken_from_non_vtable_p): New global function.
16832 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16833 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16834 * cgraphunit.c (analyze_function): Likewise.
16835 (assemble_thunks_and_aliases): Argument added to call.
16836 (expand_thunk): New argument forces to produce GIMPLE thunk.
16837
16838 2014-06-04 Martin Liska <mliska@suse.cz>
16839
16840 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16841 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16842 * profile.c (branch_prob): Likewise.
16843
16844 2014-06-04 Martin Jambor <mjambor@suse.cz>
16845
16846 PR ipa/61340
16847 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
16848 handler for switch on an ipa_ref_use enum.
16849 * ipa-reference.c (analyze_function): Likewise.
16850
16851 2014-06-04 Kai Tietz <ktietz@redhat.com>
16852
16853 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
16854 from old call-instruction.
16855
16856 2014-06-04 Bin Cheng <bin.cheng@arm.com>
16857
16858 * config/aarch64/aarch64.c (aarch64_classify_address)
16859 (aarch64_legitimize_reload_address): Support full addressing modes
16860 for vector modes.
16861 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
16862 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
16863
16864 2014-06-03 Andrew Pinski <apinski@cavium.com>
16865
16866 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
16867 for OP0.
16868
16869 2014-06-03 Andrew Pinski <apinski@cavium.com>
16870
16871 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
16872 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
16873
16874 2014-06-03 Kai Tietz <ktietz@redhat.com>
16875
16876 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
16877 for 64-bit ms-abi.
16878
16879 2014-06-03 Dehao Chen <dehao@google.com>
16880
16881 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
16882 the same loop.
16883
16884 2014-06-03 Marek Polacek <polacek@redhat.com>
16885
16886 PR c/60439
16887 * doc/invoke.texi: Document -Wswitch-bool.
16888 * function.c (stack_protect_epilogue): Cast controlling expression of
16889 the switch to int.
16890 * gengtype.c (walk_type): Generate switch expression with its
16891 controlling expression cast to int.
16892
16893 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
16894
16895 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
16896 and attiny841.
16897 * config/avr/avr-tables.opt: Regenerate.
16898 * config/avr/t-multilib: Regenerate.
16899 * doc/avr-mmcu.texi: Regenerate.
16900
16901 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
16902 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16903
16904 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
16905 (ata6617c, ata664251): Add new avr35 devices.
16906 (ata6612c): Add new avr4 device.
16907 (ata6613c, ata6614q): Add new avr5 devices.
16908 * config/avr/avr-tables.opt: Regenerate.
16909 * config/avr/t-multilib: Regenerate.
16910 * doc/avr-mmcu.texi: Regenerate.
16911
16912 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16913
16914 * gcc/config/aarch64/aarch64-builtins.c
16915 (aarch64_types_binop_ssu_qualifiers): New static data.
16916 (TYPES_BINOP_SSU): Define.
16917 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
16918 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
16919 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
16920 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
16921 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
16922 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
16923 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
16924 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
16925 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
16926 suffix to builtin function name, remove cast.
16927 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
16928 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
16929 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
16930
16931 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16932
16933 * gcc/config/aarch64/aarch64-builtins.c
16934 (aarch64_types_binop_uus_qualifiers,
16935 aarch64_types_shift_to_unsigned_qualifiers,
16936 aarch64_types_unsigned_shiftacc_qualifiers): Define.
16937 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
16938 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
16939 sqshlu_n, uqshl_n): Update qualifiers.
16940 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
16941 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
16942 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
16943 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
16944 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
16945 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
16946 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
16947 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
16948 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
16949 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
16950 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
16951 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
16952 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
16953 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
16954 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
16955 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
16956 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
16957 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
16958 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
16959 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
16960 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
16961 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
16962 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
16963 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
16964 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
16965 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
16966 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
16967
16968 2014-06-03 Teresa Johnson <tejohnson@google.com>
16969
16970 * tree-sra.c (modify_function): Record caller nodes after rebuild.
16971
16972 2014-06-02 Jason Merrill <jason@redhat.com>
16973
16974 PR c++/61020
16975 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
16976
16977 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16978
16979 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
16980 location == 0.
16981
16982 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16983
16984 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
16985 New pattern.
16986 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
16987 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
16988 * config/aarch64/iterators.md (REVERSE): New iterator.
16989 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
16990 (rev_op): New int_attribute.
16991 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
16992 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
16993 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
16994 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
16995 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
16996 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
16997 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
16998 Replace temporary __asm__ with __builtin_shuffle.
16999
17000 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17001
17002 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17003 mips64r5.
17004 * config/mips/mips-tables.opt: Regenerate.
17005 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17006 to use mips_isa_rev rather than ISA_MIPS32R2.
17007 * config/mips/mips.h (ISA_MIPS32R3): New define.
17008 (ISA_MIPS32R5): New define.
17009 (ISA_MIPS64R3): New define.
17010 (ISA_MIPS64R5): New define.
17011 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17012 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17013 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17014 and mips64r5.
17015 (MIPS_ISA_SYNCI_SPEC): Likewise.
17016 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17017 (LINK_SPEC): Added mips32r3 and mips32r5.
17018 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17019 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17020 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17021 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17022 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17023 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17024 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17025
17026 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17027
17028 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17029 options.
17030 * config/mips/mips.opt (mxpa): New option.
17031 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17032 assembler.
17033
17034 2014-06-03 Martin Jambor <mjambor@suse.cz>
17035
17036 PR ipa/61160
17037 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17038 thunks.
17039
17040 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17041
17042 PR tree-optimization/61328
17043 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17044 initialization from find_bswap_or_nop_1.
17045 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17046 in source_expr2 before using the size value the function sets. Also
17047 make use of init_symbolic_number () in both the old place and
17048 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17049 doing recursion in the GIMPLE_BINARY_RHS case.
17050
17051 2014-06-03 Richard Biener <rguenther@suse.de>
17052
17053 PR tree-optimization/61383
17054 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17055 stmts can't trap.
17056
17057 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17058
17059 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17060 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17061 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17062 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17063 in this file.
17064 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17065 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17066 * system.h: ...here and make it unconditional.
17067 * target.def (conditional_register_usage): Mention
17068 define_register_constraint instead of old-style constraint macros.
17069 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17070 * doc/tm.texi: Regenerate.
17071 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17072 protected by !USE_MD_CONSTRAINTS.
17073 * config/frv/frv.md: Remove quote from old version of documentation.
17074 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17075 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17076 CONST_DOUBLE_OK_FOR_LETTER.
17077 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17078
17079 2014-06-02 Andrew Pinski <apinski@cavium.com>
17080
17081 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17082 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17083 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17084 file whose name depends on -mabi= and -mbig-endian.
17085 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17086 Handle LP64 better and handle ilp32 too.
17087 (MULTILIB_OPTIONS): Delete.
17088 (MULTILIB_DIRNAMES): Delete.
17089
17090 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17091
17092 * expr.h: Remove prototypes of functions defined in builtins.c.
17093 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17094 Remove prototypes of functions defined in builtins.c.
17095 * builtins.h: Update prototype list to include all exported functions.
17096 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17097 no_c99_libc_has_function): Move to targhooks.c
17098 (build_string_literal, build_call_expr_loc_array,
17099 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17100 to tree.c.
17101 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17102 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17103 no_c99_libc_has_function): Relocate from builtins.c.
17104 * tree.c: Include builtins.h.
17105 (build_call_expr_loc_array, build_call_expr_loc_vec,
17106 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17107 from builtins.c.
17108 * fold-const.h (fold_fma): Move prototype to builtins.h.
17109 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17110 * asan.c: Include builtins.h.
17111 * cfgexpand.c: Likewise.
17112 * convert.c: Likewise.
17113 * emit-rtl.c: Likewise.
17114 * except.c: Likewise.
17115 * expr.c: Likewise.
17116 * fold-const.c: Likewise.
17117 * gimple-fold.c: Likewise.
17118 * gimple-ssa-strength-reduction.c: Likewise.
17119 * gimplify.c: Likewise.
17120 * ipa-inline.c: Likewise.
17121 * ipa-prop.c: Likewise.
17122 * lto-streamer-out.c: Likewise.
17123 * stmt.c: Likewise.
17124 * tree-inline.c: Likewise.
17125 * tree-object-size.c: Likewise.
17126 * tree-sra.c: Likewise.
17127 * tree-ssa-ccp.c: Likewise.
17128 * tree-ssa-forwprop.c: Likewise.
17129 * tree-ssa-loop-ivcanon.c: Likewise.
17130 * tree-ssa-loop-ivopts.c: Likewise.
17131 * tree-ssa-math-opts.c: Likewise.
17132 * tree-ssa-reassoc.c: Likewise.
17133 * tree-ssa-threadedge.c: Likewise.
17134 * tree-streamer-in.c: Likewise.
17135 * tree-vect-data-refs.c: Likewise.
17136 * tree-vect-patterns.c: Likewise.
17137 * tree-vect-stmts.c: Likewise.
17138 * config/aarch64/aarch64.c: Likewise.
17139 * config/alpha/alpha.c: Likewise.
17140 * config/arc/arc.c: Likewise.
17141 * config/arm/arm.c: Likewise.
17142 * config/avr/avr.c: Likewise.
17143 * config/bfin/bfin.c: Likewise.
17144 * config/c6x/c6x.c: Likewise.
17145 * config/cr16/cr16.c: Likewise.
17146 * config/cris/cris.c: Likewise.
17147 * config/epiphany/epiphany.c: Likewise.
17148 * config/fr30/fr30.c: Likewise.
17149 * config/frv/frv.c: Likewise.
17150 * config/h8300/h8300.c: Likewise.
17151 * config/i386/i386.c: Likewise.
17152 * config/i386/winnt.c: Likewise.
17153 * config/ia64/ia64.c: Likewise.
17154 * config/iq2000/iq2000.c: Likewise.
17155 * config/lm32/lm32.c: Likewise.
17156 * config/m32c/m32c.c: Likewise.
17157 * config/m32r/m32r.c: Likewise.
17158 * config/m68k/m68k.c: Likewise.
17159 * config/mcore/mcore.c: Likewise.
17160 * config/mep/mep.c: Likewise.
17161 * config/microblaze/microblaze.c: Likewise.
17162 * config/mips/mips.c: Likewise.
17163 * config/mmix/mmix.c: Likewise.
17164 * config/mn10300/mn10300.c: Likewise.
17165 * config/moxie/moxie.c: Likewise.
17166 * config/msp430/msp430.c: Likewise.
17167 * config/nds32/nds32.c: Likewise.
17168 * config/pa/pa.c: Likewise.
17169 * config/pdp11/pdp11.c: Likewise.
17170 * config/picochip/picochip.c: Likewise.
17171 * config/rl78/rl78.c: Likewise.
17172 * config/rs6000/rs6000.c: Likewise.
17173 * config/rx/rx.c: Likewise.
17174 * config/s390/s390.c: Likewise.
17175 * config/score/score.c: Likewise.
17176 * config/sh/sh.c: Likewise.
17177 * config/sparc/sparc.c: Likewise.
17178 * config/spu/spu.c: Likewise.
17179 * config/stormy16/stormy16.c: Likewise.
17180 * config/tilegx/tilegx.c: Likewise.
17181 * config/tilepro/tilepro.c: Likewise.
17182 * config/v850/v850.c: Likewise.
17183 * config/vax/vax.c: Likewise.
17184 * config/xtensa/xtensa.c: Likewise.
17185
17186 2014-06-02 Jeff Law <law@redhat.com>
17187
17188 PR rtl-optimization/61094
17189 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17190 was marked as do_no_reextend. If a copy is needed to eliminate
17191 an extension, then mark it as do_not_reextend.
17192
17193 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17194
17195 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17196
17197 2014-06-02 Richard Henderson <rth@redhat.com>
17198
17199 PR target/61336
17200 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17201 addresses inside asms. Use output_operand_lossage instead of
17202 gcc_unreachable.
17203
17204 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17205
17206 PR target/61239
17207 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17208 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17209
17210 2014-06-02 Tom de Vries <tom@codesourcery.com>
17211
17212 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17213 case that x has VOIDmode.
17214
17215 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17216
17217 * varasm.c (copy_constant): Delete function.
17218 (build_constant_desc): Don't call it.
17219
17220 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17221
17222 PR target/61154
17223 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17224 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17225 with immediate_operand.
17226
17227 2014-06-02 Andreas Schwab <schwab@suse.de>
17228
17229 * config/ia64/ia64.c
17230 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17231 pending_data_specs first.
17232
17233 2014-06-02 Richard Biener <rguenther@suse.de>
17234
17235 PR tree-optimization/61378
17236 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17237 valueized_anything.
17238
17239 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17240
17241 * config/i386/constraints.md (Bw): Rename from 'w'.
17242 (Bz): Rename from 'z'.
17243 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17244
17245 2014-06-01 Kai Tietz <ktietz@redhat.com>
17246
17247 PR target/61377
17248 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17249 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17250 instead of m constraint.
17251
17252 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17253
17254 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17255 a separate alternative where the scratch operand 2 is marked as
17256 early clobber.
17257
17258 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17259
17260 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17261 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17262 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17263 and __builtins_arm_get_fpscr.
17264 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17265 __builtins_arm_get_fpscr.
17266 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17267 __builtins_arm_ldfpscr.
17268 (arm_atomic_assign_expand_fenv): New function.
17269 * config/arm/vfp.md (set_fpscr): New pattern.
17270 (get_fpscr) : Likewise.
17271 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17272 VUNSPEC_SET_FPSCR.
17273 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17274 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17275
17276 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17277
17278 * asan.c (report_error_func): Add SLOW_P argument, use
17279 BUILT_IN_ASAN_*_N if set.
17280 (build_check_stmt): Likewise.
17281 (instrument_derefs): If T has insufficient alignment,
17282 force same handling as for odd sizes.
17283
17284 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17285 BUILT_IN_ASAN_REPORT_STORE_N): New.
17286 * asan.c (struct asan_mem_ref): Change access_size type to
17287 HOST_WIDE_INT.
17288 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17289 update_mem_ref_hash_table): Likewise.
17290 (asan_mem_ref_hasher::hash): Hash in a HWI.
17291 (report_error_func): Change size_in_bytes argument to HWI.
17292 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17293 two.
17294 (build_shadow_mem_access): New function.
17295 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17296 Handle size_in_bytes not power of two or larger than 16.
17297 (instrument_derefs): Don't give up if size_in_bytes is not
17298 power of two or is larger than 16.
17299
17300 2014-05-30 Kai Tietz <ktietz@redhat.com>
17301
17302 PR target/60104
17303 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17304 for sibling-tail-calls.
17305 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17306 to its use.
17307 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17308 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17309
17310 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17311
17312 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17313 * config/avr/avr-tables.opt: Regenerate.
17314 * config/avr/t-multilib: Regenerate.
17315 * doc/avr-mmcu.texi: Regenerate.
17316
17317 2014-05-30 Ian Lance Taylor <iant@google.com>
17318
17319 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17320 target("sse").
17321
17322 2014-05-30 Tom de Vries <tom@codesourcery.com>
17323
17324 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17325 Redefine as true.
17326
17327 2014-05-30 Tom de Vries <tom@codesourcery.com>
17328
17329 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17330 * lra.c (initialize_lra_reg_info_element): Add init of
17331 actual_call_used_reg_set field.
17332 (lra): Call lra_create_live_ranges before lra_inheritance for
17333 -fuse-caller-save.
17334 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17335 -fuse-caller-save.
17336 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17337 instead of call_used_reg_set for -fuse-caller-save.
17338 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17339
17340 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17341
17342 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17343 to mov_imm.
17344 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17345
17346 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17347
17348 * ira.c (ira_get_dup_out_num): Check for output operands at
17349 the start of the loop. Handle cases where an included alternative
17350 follows an excluded one.
17351
17352 2014-05-29 Mike Stump <mikestump@comcast.net>
17353
17354 PR debug/61352
17355 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17356 post ld passes when lto is used.
17357
17358 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17359
17360 PR rtl-optimization/61325
17361 * lra-constraints.c (process_address): Rename to process_address_1.
17362 (process_address): New function.
17363
17364 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17365
17366 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17367 TYPES_BINOPV): New static data.
17368 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17369 New builtin.
17370 * config/aarch64/aarch64-simd.md (aarch64_ext,
17371 aarch64_im_lane_boundsi): New patterns.
17372 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17373 patterns for EXT.
17374 (aarch64_evpc_ext): New function.
17375
17376 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17377
17378 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17379 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17380 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17381 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17382 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17383
17384 2014-05-29 Tom de Vries <tom@codesourcery.com>
17385
17386 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
17387
17388 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
17389 Richard Sandiford <rdsandiford@googlemail.com>
17390
17391 * arm/iterators.md (shiftable_ops): New code iterator.
17392 (t2_binop0, arith_shift_insn): New code attributes.
17393 * arm/predicates.md (shift_nomul_operator): New predicate.
17394 * arm/arm.md (insn_enabled): Delete.
17395 (enabled): Remove insn_enabled test.
17396 (*arith_shiftsi): Delete. Replace with ...
17397 (*<arith_shift_insn>_multsi): ... new pattern.
17398 (*<arith_shift_insn>_shiftsi): ... new pattern.
17399 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
17400
17401 2014-05-29 Radovan Obradovic <robradovic@mips.com>
17402 Tom de Vries <tom@codesourcery.com>
17403
17404 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
17405 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
17406 clobber.
17407 (mips_split_call): Use POST_CALL_TMP_REG.
17408 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
17409
17410 2014-05-29 Tom de Vries <tom@codesourcery.com>
17411
17412 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
17413 with #ifdef STACK_REGS.
17414
17415 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
17416
17417 * varasm.c (get_variable_section): Walk aliases.
17418 (place_block_symbol): Walk aliases.
17419
17420 2014-05-28 Tom de Vries <tom@codesourcery.com>
17421
17422 Revert:
17423 2014-05-28 Tom de Vries <tom@codesourcery.com>
17424
17425 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17426 * lra.c (initialize_lra_reg_info_element): Add init of
17427 actual_call_used_reg_set field.
17428 (lra): Call lra_create_live_ranges before lra_inheritance for
17429 -fuse-caller-save.
17430 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17431 -fuse-caller-save.
17432 * lra-constraints.c (need_for_call_save_p): Use
17433 actual_call_used_reg_set instead of call_used_reg_set for
17434 -fuse-caller-save.
17435 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17436
17437 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17438
17439 * doc/md.texi: Document that the % constraint character must
17440 be at the beginning of the string.
17441 * genoutput.c (validate_insn_alternatives): Check that '=',
17442 '+' and '%' only appear at the beginning of a constraint.
17443 * ira.c (commutative_constraint_p): Delete.
17444 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
17445 at the start of the string.
17446 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
17447 duplicate '='s.
17448 * config/arm/neon.md (bicdi3_neon): Likewise.
17449 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
17450 (slt_si, sltu_si): Likewise.
17451 * config/vax/vax.md (sbcdi3): Likewise.
17452 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
17453 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
17454 (mul64): Move '%' to beginning of constraint.
17455 * config/arm/arm.md (*xordi3_insn): Likewise.
17456 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
17457 (xorsi3): Likewise.
17458
17459 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17460
17461 * doc/md.texi: Document the restrictions on the "enabled" attribute.
17462
17463 2014-05-28 Jason Merrill <jason@redhat.com>
17464
17465 PR c++/47202
17466 * cgraph.h (symtab_node::get_comdat_group_id): New.
17467 * cgraphunit.c (analyze_functions): Call it.
17468 * symtab.c (dump_symtab_node): Likewise.
17469 * tree.c (decl_comdat_group_id): New.
17470 * tree.h: Declare it.
17471 * lto-streamer-out.c (write_symbol): Use it.
17472 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
17473
17474 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17475
17476 PR bootstrap/PR61146
17477 * wide-int.cc: Do not include longlong.h when compiling with clang.
17478
17479 2014-05-28 Richard Biener <rguenther@suse.de>
17480
17481 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
17482 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
17483 (vrp_visit_assignment_or_call): Print less vertical space.
17484 (vrp_visit_stmt): Likewise.
17485 (vrp_visit_phi_node): Likewise. For a PHI argument with
17486 VR_VARYING range consider recording it as copy.
17487
17488 2014-05-28 Richard Biener <rguenther@suse.de>
17489
17490 Revert
17491 2014-05-28 Richard Biener <rguenther@suse.de>
17492
17493 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17494
17495 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17496
17497 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17498 sufficiently aligned and an offset is used at the same time.
17499 (expand_expr_real_1): Likewise.
17500
17501 2014-05-28 Richard Biener <rguenther@suse.de>
17502
17503 PR middle-end/61045
17504 * fold-const.c (fold_comparison): When folding
17505 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17506 the sign of the remaining constant operand stays the same.
17507
17508 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17509
17510 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17511 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17512 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17513 to the assembler.
17514 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17515 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17516 (m32bit-doubles) Likewise.
17517 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17518 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17519 option for RL78.
17520
17521 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17522
17523 * configure.ac ($gcc_cv_ld_clearcap): New test.
17524 * configure: Regenerate.
17525 * config.in: Regenerate.
17526 * config/sol2.opt (mclear-hwcap): New option.
17527 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17528 * config/sol2-clearcap.map: Moved here from
17529 testsuite/gcc.target/i386/clearcap.map.
17530 * config/sol2-clearcapv2.map: Move here from
17531 gcc.target/i386/clearcapv2.map.
17532 * config/t-sol2 (install): Depend on install-clearcap-map.
17533 (install-clearcap-map): New target.
17534 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17535 -mclear-hwcap.
17536
17537 2014-05-28 Richard Biener <rguenther@suse.de>
17538
17539 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17540 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17541 ... here and remove the rest.
17542 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17543
17544 2014-05-28 Richard Biener <rguenther@suse.de>
17545
17546 PR tree-optimization/61335
17547 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17548 new range fails, drop to varying.
17549
17550 2014-05-28 Olivier Hainque <hainque@adacore.com>
17551
17552 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17553 (CPP_SPEC): Add entry for -mcpu=8548.
17554 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17555 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17556
17557 2014-05-28 Tom de Vries <tom@codesourcery.com>
17558
17559 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17560 * lra.c (initialize_lra_reg_info_element): Add init of
17561 actual_call_used_reg_set field.
17562 (lra): Call lra_create_live_ranges before lra_inheritance for
17563 -fuse-caller-save.
17564 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17565 -fuse-caller-save.
17566 * lra-constraints.c (need_for_call_save_p): Use
17567 actual_call_used_reg_set instead of call_used_reg_set for
17568 -fuse-caller-save.
17569 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17570
17571 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17572 Tom de Vries <tom@codesourcery.com>
17573
17574 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17575 to gccoptlist.
17576 (@item -fuse-caller-save): New item.
17577
17578 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17579 Tom de Vries <tom@codesourcery.com>
17580
17581 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17582 OPT_fuse_caller_save.
17583
17584 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17585 Tom de Vries <tom@codesourcery.com>
17586
17587 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17588 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17589 get_call_reg_set_usage.
17590 * resource.c (mark_set_resources, mark_target_live_regs): Use
17591 get_call_reg_set_usage.
17592 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17593 field.
17594 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17595 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17596 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17597 * ira-build.c (ira_create_allocno): Init
17598 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17599 (create_cap_allocno, propagate_allocno_info)
17600 (propagate_some_info_from_allocno)
17601 (copy_info_to_removed_store_destinations): Handle
17602 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17603 * ira-costs.c (ira_tune_allocno_costs): Use
17604 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17605
17606 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17607 Tom de Vries <tom@codesourcery.com>
17608
17609 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17610 and function_used_regs_valid fields.
17611 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17612 find_all_hard_reg_sets.
17613 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17614 (get_call_reg_set_usage): New function.
17615 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17616 * regs.h (get_call_reg_set_usage): Declare.
17617
17618 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17619
17620 PR libgcc/61152
17621 * config/dbx.h (License): Add Runtime Library Exception.
17622 * config/newlib-stdint.h (License): Same.
17623 * config/rtems.h (License): Same
17624 * config/initfini-array.h (License): Same
17625 * config/v850/v850.h (License): Same.
17626 * config/v850/v850-opts.h (License): Same
17627 * config/v850/rtems.h (License): Same.
17628
17629 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17630
17631 PR target/61044
17632 * doc/extend.texi (Local Labels): Note that label differences are
17633 not supported for AVR.
17634
17635 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17636 Olivier Hainque <hainque@adacore.com>
17637
17638 * rtl.h (set_for_reg_notes): Declare.
17639 * emit-rtl.c (set_for_reg_notes): New function.
17640 (set_unique_reg_note): Use it.
17641 * optabs.c (add_equal_note): Likewise
17642
17643 2014-05-27 Andrew Pinski <apinski@cavium.com>
17644
17645 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17646 Use <w> for the register in assembly template.
17647 (stack_protect_test): Use the mode of operands[0] for the result.
17648 (stack_protect_test_<mode>): Use <w> for the register
17649 in assembly template.
17650
17651 2014-05-27 DJ Delorie <dj@redhat.com>
17652
17653 * config/rx/rx.c (add_vector_labels): New.
17654 (rx_output_function_prologue): Call it.
17655 (rx_handle_func_attribute): Don't require empty arguments.
17656 (rx_handle_vector_attribute): New.
17657 (rx_attribute_table): Add "vector" attribute.
17658 * doc/extend.texi (interrupt, vector): Document new/changed
17659 RX-specific attributes.
17660
17661 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17662
17663 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17664
17665 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17666 predicate to detect a negative quotient.
17667
17668 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17669
17670 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17671 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17672 Add X - Y CMP 0 to X CMP Y transformation.
17673 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17674
17675 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17676
17677 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17678 before printing.
17679
17680 2014-05-27 Steve Ellcey <sellcey@mips.com>
17681
17682 * config/mips/mips.c: Add include of cgraph.h.
17683
17684 2014-05-27 Richard Biener <rguenther@suse.de>
17685
17686 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17687
17688 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17689
17690 PR libgcc/61152
17691 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17692 * config/arm/arm-cores.def (License): Same.
17693 * config/arm/arm-opts.h (License): Same.
17694 * config/arm/aout.h (License): Same.
17695 * config/arm/bpabi.h (License): Same.
17696 * config/arm/elf.h (License): Same.
17697 * config/arm/linux-elf.h (License): Same.
17698 * config/arm/linux-gas.h (License): Same.
17699 * config/arm/netbsd-elf.h (License): Same.
17700 * config/arm/uclinux-eabi.h (License): Same.
17701 * config/arm/uclinux-elf.h (License): Same.
17702 * config/arm/vxworks.h (License): Same.
17703
17704 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17705
17706 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17707 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17708 (arm_init_neon_builtins): Handle NEON_BSWAP.
17709 Define required type nodes.
17710 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17711 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17712 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17713 * config/arm/iterators.md (VDQHSD): New mode iterator.
17714
17715 2014-05-27 Richard Biener <rguenther@suse.de>
17716
17717 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17718 Try using literal operands when comparing value-ranges failed.
17719
17720 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17721
17722 * ira.c (commutative_operand): Adjust for change to recog_data.
17723 [Missing from previous commit.]
17724
17725 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17726
17727 * system.h (TEST_BIT): New macro.
17728 * recog.h (alternative_mask): New type.
17729 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17730 (recog_data_d): Replace alternative_enabled_p array with
17731 enabled_alternatives.
17732 (target_recog): New structure.
17733 (default_target_recog, this_target_recog): Declare.
17734 (get_enabled_alternatives, recog_init): Likewise.
17735 * recog.c (default_target_recog, this_target_recog): New variables.
17736 (get_enabled_alternatives): New function.
17737 (extract_insn): Use it.
17738 (recog_init): New function.
17739 (preprocess_constraints, constrain_operands): Adjust for change to
17740 recog_data.
17741 * postreload.c (reload_cse_simplify_operands): Likewise.
17742 * reload.c (find_reloads): Likewise.
17743 * ira-costs.c (record_reg_classes): Likewise.
17744 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17745 all alternatives after a disabled one would be skipped.
17746 (ira_implicitly_set_insn_hard_regs): Likewise.
17747 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17748 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17749 with enabled_alternatives.
17750 * lra.c (free_insn_recog_data): Update accordingly.
17751 (lra_update_insn_recog_data): Likewise.
17752 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17753 * lra-constraints.c (process_alt_operands): Likewise. Handle
17754 only_alternative as part of the enabled mask.
17755 * target-globals.h (this_target_recog): Declare.
17756 (target_globals): Add a recog field.
17757 (restore_target_globals): Restore this_target_recog.
17758 * target-globals.c: Include recog.h.
17759 (default_target_globals): Initialize recog field.
17760 (save_target_globals): Likewise.
17761 * reginfo.c (reinit_regs): Call recog_init.
17762 * toplev.c (backend_init_target): Likewise.
17763
17764 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17765
17766 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17767 rather than any named insn's code.
17768
17769 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17770
17771 PR libgcc/61152
17772 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17773 * config/arm/arm-cores.def (License): Same.
17774
17775 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17776
17777 * tree.h (decl_comdat_group): Declare.
17778 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17779 * tree.c (decl_comdat_group): Here.
17780
17781 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17782
17783 PR rtl-optimization/61222
17784 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17785 the shift, truncate the PLUS operand to the result mode.
17786
17787 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17788
17789 PR target/61271
17790 * config/i386/i386.c (ix86_rtx_costs)
17791 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17792 Fix condition.
17793
17794 2014-05-26 Martin Jambor <mjambor@suse.cz>
17795
17796 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17797 subreg uses.
17798
17799 2014-05-26 Richard Biener <rguenther@suse.de>
17800
17801 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17802 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17803 Provide specializations.
17804 (wi::int_traits <HOST_WIDE_INT>,
17805 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17806
17807 2014-05-26 Alan Modra <amodra@gmail.com>
17808
17809 PR target/61098
17810 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17811 params and return a bool. Remove dead code. Update comment.
17812 Assert we have a const_int source. Remove bogus code from
17813 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17814 handling of constants > 2G and reg_equal note, from..
17815 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17816 return value. Update comment. If we can, use a new pseudo
17817 for intermediate calculations.
17818 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17819 prototype.
17820 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17821 call to rs6000_emit_set_const in splitter.
17822 (movdi_internal64+2, +3): Likewise.
17823
17824 2014-05-26 Richard Biener <rguenther@suse.de>
17825
17826 * system.h: Define __STDC_FORMAT_MACROS before
17827 including inttypes.h.
17828 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17829 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17830 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17831 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17832 HOST_WIDEST_INT_C): Remove.
17833 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17834 if C99 inttypes.h is not available.
17835 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17836 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17837 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17838 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17839 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17840 (struct output_info): Likewise.
17841 (print_statistics): Adjust.
17842 (dump_bitmap_statistics): Likewise.
17843 * bt-load.c (migrate_btr_defs): Print with PRId64.
17844 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
17845 (MAX_SAFE_MULTIPLIER): Adjust.
17846 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
17847 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
17848 dump_cgraph_node): Likewise.
17849 * final.c (dump_basic_block_info): Likewise.
17850 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
17851 * gcov.c (format_gcov): Likewise.
17852 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
17853 for calculation.
17854 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
17855 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
17856 (inline_small_functions, dump_overall_stats, dump_inline_stats):
17857 Use PRId64 for dumping.
17858 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
17859 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
17860 (add_allocno_hard_regs): Adjust.
17861 * loop-doloop.c (doloop_modify): Print using PRId64.
17862 * loop-iv.c (inverse): Compute in uint64_t.
17863 (determine_max_iter, iv_number_of_iterations): Likewise.
17864 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
17865 Print using PRId64.
17866 * lto-streamer-out.c (write_symbol): Use uint64_t.
17867 * mcf.c (CAP_INFINITY): Use int64_t maximum.
17868 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
17869 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
17870 * modulo-sched.c (const_iteration_count): Use int64_t.
17871 (sms_schedule): Dump using PRId64.
17872 * predict.c (dump_prediction): Likewise.
17873 * pretty-print.h (pp_widest_integer): Remove.
17874 * profile.c (get_working_sets, is_edge_inconsistent,
17875 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
17876 * tree-pretty-print.c (pp_double_int): Remove case handling
17877 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
17878 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
17879 and adjust users.
17880 (pass_optimize_bswap::execute): Remove restriction on hosts.
17881 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
17882 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
17883 * tree.c (widest_int_cst_value): Remove.
17884 * tree.h (widest_int_cst_value): Likewise.
17885 * value-prof.c (dump_histogram_value): Print using PRId64.
17886 * gengtype.c (main): Also inject int64_t.
17887 * ggc-page.c (struct max_alignment): Use int64_t.
17888 * alloc-pool.c (struct allocation_object_def): Likewise.
17889 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
17890 for computation.
17891 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
17892 * doc/tm.texi: Regenerated.
17893 * gengtype-lex.l (IWORD): Handle [u]int64_t.
17894 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
17895 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
17896 mmix_output_register_setting): Use [u]int64_t in prototypes.
17897 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
17898 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
17899 mmix_output_octa, mmix_output_shifted_value): Adjust.
17900 (mmix_intval): Adjust. Remove unreachable case.
17901 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
17902
17903 2014-05-26 Richard Biener <rguenther@suse.de>
17904
17905 * configure.ac: Drop __int64 type check. Insist that we
17906 found uint64_t and int64_t.
17907 * hwint.h (HOST_BITS_PER___INT64): Remove.
17908 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
17909 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
17910 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
17911 (HOST_WIDEST_FAST_INT): Remove __int64 case.
17912 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
17913 for dst_q_src_df_rms_cdt.
17914 * configure: Regenerate.
17915 * config.in: Likewise.
17916
17917 2014-05-26 Michael Tautschnig <mt@debian.org>
17918
17919 PR target/61249
17920 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
17921 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
17922
17923 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17924
17925 PR rtl-optimization/61278
17926 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
17927
17928 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17929
17930 PR rtl-optimization/61220
17931 Part of PR rtl-optimization/61225
17932 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
17933 insn; skip split_edge for a block with only one successor.
17934
17935 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17936
17937 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
17938 for variables.
17939
17940 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17941
17942 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
17943 (update_vtable_references): New function.
17944 (function_and_variable_visibility): Rewrite also vtable initializers.
17945 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
17946
17947 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17948
17949 * ggc.h (ggc_grow): New function.
17950 * ggc-none.c (ggc_grow): New function.
17951 * ggc-page.c (ggc_grow): Likewise.
17952
17953 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17954
17955 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
17956 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
17957 comdat_can_be_unshared_p, cgraph_externally_visible_p,
17958 varpool_externally_visible_p, can_replace_by_local_alias,
17959 update_visibility_by_resolution_info, function_and_variable_visibility,
17960 pass_data_ipa_function_and_variable_visibility,
17961 make_pass_ipa_function_and_variable_visibility,
17962 whole_program_function_and_variable_visibility,
17963 pass_data_ipa_whole_program_visibility,
17964 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
17965 * cgraph.h (cgraph_local_node_p): Declare.
17966 * ipa-visibility.c: New file.
17967 * Makefile.in (OBJS): Add ipa-visiblity.o
17968
17969 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17970
17971 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
17972 that var decl is available.
17973
17974 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17975
17976 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
17977 symtab_node pointer.
17978 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
17979 (find_decls_types_r): Do not walk COMDAT_GROUP.
17980 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
17981 * varasm.c (make_decl_one_only): Use set_comdat_group;
17982 create node if needed.
17983 * ipa-inline-transform.c (save_inline_function_body): Update
17984 way we decl->symtab mapping.
17985 * symtab.c (symtab_hash, hash_node, eq_node
17986 symtab_insert_node_to_hashtable): Remove.
17987 (symtab_register_node): Update.
17988 (symtab_unregister_node): Update.
17989 (symtab_get_node): Reimplement as inline function.
17990 (symtab_add_to_same_comdat_group): Update.
17991 (symtab_dissolve_same_comdat_group_list): Update.
17992 (dump_symtab_base): Update.
17993 (verify_symtab_base): Update.
17994 (symtab_make_decl_local): Update.
17995 (fixup_same_cpp_alias_visibility): Update.
17996 (symtab_nonoverwritable_alias): Update.
17997 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
17998 * ipa.c (update_visibility_by_resolution_info): UPdate.
17999 * bb-reorder.c: Include cgraph.h
18000 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18001 with comdat groups.
18002 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18003 * cgraph.c (cgraph_get_create_node): Update.
18004 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18005 and comdat_group_.
18006 (symtab_get_node): Make inline.
18007 (symtab_insert_node_to_hashtable): Remove.
18008 (symtab_can_be_discarded): Update.
18009 (decl_comdat_group): New function.
18010 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18011 Update.
18012 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18013 comdat group name.
18014 (read_comdat_group): New function.
18015 (input_node, input_varpool_node): Use it.
18016 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18017 comdat groups.
18018 * mips.c (mips_start_unique_function): Likewise.
18019 (ix86_code_end): Likewise.
18020 (rs6000_code_end): Likweise.
18021 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18022
18023 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18024
18025 * gengtype-state.c (fatal_reading_state): Bring offline.
18026 * optabs.c (widening_optab_handler): Bring offline.
18027 * optabs.h (widening_optab_handler): Likewise.
18028 * final.c (get_attr_length_1): Likewise.
18029
18030 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18031
18032 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18033
18034 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18035
18036 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18037 (ppc440-compare): Include shift with dot.
18038 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18039 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18040 without dot.
18041 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18042 without dot.
18043 (e6500_sfx2): Include it.
18044 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18045 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18046 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18047 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18048 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18049 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18050 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18051 *lshiftrt_internal1le, *lshiftrt_internal1be,
18052 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18053 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18054 *rotldi3_internal10le, *rotldi3_internal10be,
18055 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18056 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18057 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18058 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18059 define_insns): Use type "shift" in the appropriate alternatives.
18060
18061 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18062
18063 * config/rs6000/rs6000.md (type): Add "logical". Delete
18064 "fast_compare".
18065 (dot): Adjust comment.
18066 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18067 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18068 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18069 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18070 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18071 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18072 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18073 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18074
18075 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18076 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18077 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18078 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18079 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18080 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18081 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18082 * config/rs6000/8540.md (ppc8540_su): Adjust.
18083 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18084 cell-cmp-microcoded): Adjust.
18085 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18086 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18087 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18088 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18089 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18090 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18091 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18092 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18093 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18094 Adjust.
18095 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18096 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18097 Adjust. Adjust comment.
18098 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18099 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18100
18101 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18102
18103 * config/rs6000/rs6000.md (type): Add "add".
18104 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18105 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18106 define_insns): Use it.
18107 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18108
18109 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18110 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18111 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18112 * config/rs6000/601.md (ppc601-integer): Adjust.
18113 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18114 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18115 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18116 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18117 * config/rs6000/8540.md (ppc8540_su): Adjust.
18118 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18119 cell-cmp-microcoded): Adjust.
18120 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18121 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18122 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18123 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18124 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18125 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18126 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18127 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18128 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18129 Adjust.
18130 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18131 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18132 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18133 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18134
18135 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18136
18137 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18138 "delayed_compare", "var_delayed_compare".
18139 (var_shift): New attribute.
18140 (cell_micro): Adjust.
18141 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18142 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18143 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18144 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18145 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18146 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18147 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18148 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18149 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18150 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18151 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18152 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18153 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18154 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18155 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18156 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18157 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18158 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18159 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18160 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18161 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18162 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18163 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18164 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18165 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18166
18167 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18168 * config/rs6000/440.md (ppc440-integer): Adjust.
18169 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18170 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18171 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18172 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18173 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18174 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18175 * config/rs6000/8540.md (ppc8540_su): Adjust.
18176 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18177 cell-cmp-microcoded): Adjust.
18178 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18179 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18180 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18181 e500mc64_delayed): Adjust.
18182 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18183 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18184 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18185 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18186 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18187 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18188 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18189 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18190 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18191 Adjust comment.
18192 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18193 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18194
18195 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18196
18197 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18198 (bits): New mode_attr.
18199 (idiv_ldiv): Delete mode_attr.
18200 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18201 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18202 rs6000_adjust_priority, is_nonpipeline_insn,
18203 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18204
18205 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18206 * config/rs6000/440.md (ppc440-idiv): Adjust.
18207 * config/rs6000/476.md (ppc476-idiv): Adjust.
18208 * config/rs6000/601.md (ppc601-idiv): Adjust.
18209 * config/rs6000/603.md (ppc603-idiv): Adjust.
18210 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18211 ppc620-ldiv): Adjust.
18212 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18213 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18214 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18215 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18216 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18217 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18218 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18219 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18220 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18221 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18222 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18223 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18224 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18225 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18226 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18227 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18228 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18229 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18230
18231 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18232
18233 * config/rs6000/rs6000.md (type): Delete "insert_word",
18234 "insert_dword". Add "insert".
18235 (size): Update comment.
18236 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18237 insn_must_be_first_in_group): Adjust.
18238 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18239 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18240 *insvsi_internal6, insvdi_internal): Adjust.
18241
18242 * config/rs6000/40x.md (ppc403-integer): Adjust.
18243 * config/rs6000/440.md (ppc440-integer): Adjust.
18244 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18245 * config/rs6000/601.md (ppc601-integer): Adjust.
18246 * config/rs6000/603.md (ppc603-integer): Adjust.
18247 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18248 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18249 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18250 * config/rs6000/8540.md (ppc8540_su): Adjust.
18251 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18252 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18253 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18254 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18255 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18256 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18257 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18258 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18259 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18260 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18261 * config/rs6000/power7.md (power7-integer): Adjust.
18262 * config/rs6000/power8.md (power8-1cyc): Adjust.
18263 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18264 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18265
18266 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18267
18268 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18269 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18270 (size): New attribute.
18271 (dot): New attribute.
18272 (cell_micro): Adjust.
18273 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18274 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18275 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18276 umuldi3_highpart): Adjust.
18277 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18278 rs6000_adjust_priority, is_nonpipeline_insn,
18279 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18280
18281 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18282 ppc405-imul3): Adjust.
18283 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18284 * config/rs6000/476.md (ppc476-imul): Adjust.
18285 * config/rs6000/601.md (ppc601-imul): Adjust.
18286 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18287 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18288 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18289 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18290 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18291 Adjust.
18292 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18293 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18294 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18295 cell-imul): Adjust.
18296 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18297 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18298 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18299 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18300 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18301 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18302 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18303 power4-lmul, power4-imul, power4-imul3): Adjust.
18304 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18305 power5-lmul, power5-imul, power5-imul3): Adjust.
18306 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18307 power6-lmul, power6-imul, power6-imul3): Adjust.
18308 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18309 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18310
18311 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18312 rs64a-lmul): Adjust.
18313 * config/rs6000/titan.md (titan_imul): Adjust.
18314
18315 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18316
18317 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18318 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18319 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18320 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18321 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18322 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18323 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18324 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18325 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18326 * config/rs6000/titan.md: Delete nonsensical comment.
18327 (titan_imul): Add type imul3.
18328 (titan_mulhw): Remove type imul3; add type halfmul.
18329
18330 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18331
18332 * config/rs6000/rs6000.md (type): Reorder, reformat.
18333
18334 2014-05-23 Martin Jambor <mjambor@suse.cz>
18335
18336 PR tree-optimization/53787
18337 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18338 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18339 analysis_done, update all uses.
18340 * ipa-prop.c: Include domwalk.h
18341 (param_analysis_info): Removed.
18342 (param_aa_status): New type.
18343 (ipa_bb_info): Likewise.
18344 (func_body_info): Likewise.
18345 (ipa_get_bb_info): New function.
18346 (aa_overwalked): Likewise.
18347 (find_dominating_aa_status): Likewise.
18348 (parm_bb_aa_status_for_bb): Likewise.
18349 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18350 (load_from_unmodified_param): Accept func_body_info as a parameter
18351 instead of parms_ainfo.
18352 (parm_ref_data_preserved_p): Changed to use new param AA info.
18353 (parm_ref_data_pass_through_p): Likewise.
18354 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18355 (compute_complex_assign_jump_func): Changed to use new param AA info.
18356 (compute_complex_ancestor_jump_func): Likewise.
18357 (ipa_compute_jump_functions_for_edge): Likewise.
18358 (ipa_compute_jump_functions): Removed.
18359 (ipa_compute_jump_functions_for_bb): New function.
18360 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18361 declarations down.
18362 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18363 and info, moved variable declarations down.
18364 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18365 node and info.
18366 (ipa_analyze_stmt_uses): Likewise.
18367 (ipa_analyze_params_uses): Removed.
18368 (ipa_analyze_params_uses_in_bb): New function.
18369 (ipa_analyze_controlled_uses): Likewise.
18370 (free_ipa_bb_info): Likewise.
18371 (analysis_dom_walker): New class.
18372 (ipa_analyze_node): Handle node-specific forbidden analysis,
18373 initialize and free func_body_info, use dominator walker.
18374 (ipcp_modif_dom_walker): New class.
18375 (ipcp_transform_function): Create and free func_body_info, use
18376 ipcp_modif_dom_walker, moved a lot of functionality there.
18377
18378 2014-05-23 Marek Polacek <polacek@redhat.com>
18379 Jakub Jelinek <jakub@redhat.com>
18380
18381 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18382 * gcc.c (sanitize_spec_function): Likewise.
18383 * convert.c (convert_to_integer): Include "ubsan.h". Add
18384 floating-point to integer instrumentation.
18385 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
18386 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
18387 SANITIZE_NONDEFAULT.
18388 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
18389 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
18390 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
18391 * ubsan.c: Include "realmpfr.h" and "dfp.h".
18392 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
18393 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
18394 float/double/long double.
18395 (ubsan_instrument_float_cast): New function.
18396 * ubsan.h (ubsan_instrument_float_cast): Declare.
18397
18398 2014-05-23 Jiong Wang <jiong.wang@arm.com>
18399
18400 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
18401 predicate.
18402 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
18403 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
18404 Adjust for tailcalling through registers.
18405 * config/aarch64/aarch64.h (enum reg_class): New caller save
18406 register class.
18407 (REG_CLASS_NAMES): Likewise.
18408 (REG_CLASS_CONTENTS): Likewise.
18409 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
18410 Allow tailcalling without decls.
18411
18412 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18413
18414 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18415 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
18416
18417 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
18418 gsi, and variables v_* to v*.
18419
18420 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
18421
18422 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
18423
18424 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
18425
18426 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
18427 * omp-low.c: Update accordingly.
18428
18429 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
18430 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
18431 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
18432 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
18433 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
18434 GF_OMP_TARGET_KIND_UPDATE.
18435
18436 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
18437 Explicitly enumerate the expected region types.
18438
18439 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
18440
18441 PR other/56955
18442 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
18443 documentation; the old documentation didn't clearly state the
18444 constraints on the contents of the pointed-to storage.
18445
18446 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18447
18448 Fix bootstrap error on ia64
18449 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
18450 Return default value.
18451
18452 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
18453
18454 PR tree-optimization/54733
18455 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
18456 (CMPNOP): Define.
18457 (find_bswap_or_nop_load): New.
18458 (find_bswap_1): Renamed to ...
18459 (find_bswap_or_nop_1): This. Also add support for memory source.
18460 (find_bswap): Renamed to ...
18461 (find_bswap_or_nop): This. Also add support for memory source and
18462 detection of bitwise operations equivalent to load in target
18463 endianness.
18464 (execute_optimize_bswap): Likewise. Also move its leading comment back
18465 in place and split statement transformation into ...
18466 (bswap_replace): This.
18467
18468 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18469
18470 PR rtl-optimization/61215
18471 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
18472 simplify_gen_subreg until final substitution.
18473
18474 2014-05-23 Alan Modra <amodra@gmail.com>
18475
18476 PR target/61231
18477 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
18478 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
18479 Use "Y" constraint rather than "m".
18480
18481 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
18482
18483 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
18484 define.
18485 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18486 New function declaration.
18487 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18488 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18489 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18490 (aarch64_init_builtins) : Initialize builtins
18491 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18492 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18493 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18494 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18495 and __builtins_aarch64_set_fpsr.
18496 (aarch64_atomic_assign_expand_fenv): New function.
18497 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18498 (get_fpcr) : Likewise.
18499 (set_fpsr) : Likewise.
18500 (get_fpsr) : Likewise.
18501 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18502 and UNSPECV_SET_FPSR.
18503 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18504 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18505 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18506
18507 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18508
18509 PR rtl-optimization/60969
18510 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18511 constraints. Set up mem cost for NO_REGS case.
18512
18513 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18514
18515 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18516
18517 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18518
18519 * config/darwin.c: Include "lto-section-names.h".
18520 (LTO_SEGMENT_NAME): Don't define.
18521 * config/i386/winnt.c: Include "lto-section-names.h".
18522 * lto-streamer.c: Include "lto-section-names.h".
18523 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18524 * lto-wrapper.c: Include "lto-section-names.h".
18525 (LTO_SECTION_NAME_PREFIX): Don't define.
18526 * lto-section-names.h: New file.
18527 * cgraphunit.c: Include "lto-section-names.h".
18528
18529 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18530
18531 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18532
18533 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18534
18535 PR target/61208
18536 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18537
18538 2014-05-22 Nick Clifton <nickc@redhat.com>
18539
18540 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18541
18542 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18543
18544 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18545 -> (T)A transformation to integer types.
18546
18547 2014-05-22 Teresa Johnson <tejohnson@google.com>
18548
18549 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18550 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18551 (gcov_rewrite): Use gcov_nonruntime_assert.
18552 (gcov_open): Ditto.
18553 (gcov_write_words): Ditto.
18554 (gcov_write_length): Ditto.
18555 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18556 gcc_assert from IN_LIBGCOV code.
18557 (gcov_read_summary): Use gcov_error to flag profile corruption.
18558 (gcov_sync): Use gcov_nonruntime_assert.
18559 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18560 (gcov_histo_index): Use gcov_nonruntime_assert.
18561 (static void gcov_histogram_merge): Ditto.
18562 (compute_working_sets): Ditto.
18563 * gcov-io.h (gcov_nonruntime_assert): Define.
18564 (gcov_error): Define for !IN_LIBGCOV
18565
18566 2014-05-22 Richard Biener <rguenther@suse.de>
18567
18568 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18569 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18570 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18571 and deallocation site.
18572 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18573 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18574 passing through the incoming points-to set.
18575 (handle_lhs_call): Use flags argument instead of recomputing it.
18576 (find_func_aliases_for_call): Call handle_lhs_call with proper
18577 call return flags.
18578
18579 2014-05-22 Jakub Jelinek <jakub@redhat.com>
18580
18581 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18582 all padding bits in REAL_VALUE_TYPE are cleared.
18583
18584 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18585
18586 Cleanup and improve multipass_dfa_lookahead_guard
18587 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18588 (core2i7_first_cycle_multipass_begin,)
18589 (core2i7_first_cycle_multipass_issue,)
18590 (core2i7_first_cycle_multipass_backtrack): Update signature.
18591 * config/ia64/ia64.c
18592 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18593 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18594 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18595 hook definition.
18596 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18597 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
18598 values.
18599 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18600 return values.
18601 * doc/tm.texi: Regenerate.
18602 * doc/tm.texi.in
18603 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18604 * haifa-sched.c (ready_try): Make signed to allow negative values.
18605 (rebug_ready_list_1): Update.
18606 (choose_ready): Simplify.
18607 (sched_extend_ready_list): Update.
18608
18609 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18610
18611 Remove IA64 speculation tweaking flags
18612 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18613 speculation tuning flags.
18614 (msched-prefer-non-data-spec-insns,)
18615 (msched-prefer-non-control-spec-insns): Obsolete options.
18616 * haifa-sched.c (choose_ready): Remove handling of
18617 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18618 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18619 and PREFER_NON_DATA_SPEC.
18620 * sel-sched.c (process_spec_exprs): Remove handling of
18621 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18622
18623 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18624
18625 Improve scheduling debug output
18626 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18627 (advance_one_cycle): Update.
18628 (schedule_insn, queue_to_ready): Add debug printouts.
18629 (debug_ready_list_1): New static function.
18630 (debug_ready_list): Update.
18631 (max_issue): Add debug printouts.
18632 (dump_insn_stream): New static function.
18633 (schedule_block): Use it. Also better indent printouts.
18634
18635 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18636
18637 Fix sched_insn debug counter
18638 * haifa-sched.c (schedule_insn): Update.
18639 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18640 (save_backtrack_point, restore_backtrack_point): Update.
18641 (first_nonscheduled_insn): New static function.
18642 (queue_to_ready, choose_ready): Use it.
18643 (schedule_block): Init nonscheduled_insns_begin.
18644 (sched_emit_insn): Update.
18645
18646
18647 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18648
18649 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18650 to GENERAL_REGS.
18651 (aarch64_secondary_reload) : LikeWise.
18652 (aarch64_class_max_nregs) : Remove CORE_REGS.
18653 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18654 (REG_CLASS_NAMES) : Likewise.
18655 (REG_CLASS_CONTENTS) : LikeWise.
18656 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18657
18658 2014-05-21 Guozhi Wei <carrot@google.com>
18659
18660 PR target/61202
18661 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18662 constraint.
18663 (vqdmulhq_n_s16): Likewise.
18664
18665 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18666
18667 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18668
18669 2014-05-21 Marek Polacek <polacek@redhat.com>
18670
18671 PR sanitizer/61272
18672 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18673
18674 2014-05-21 Martin Jambor <mjambor@suse.cz>
18675
18676 * doc/invoke.texi (Optimize Options): Document parameters
18677 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18678 ipa-cp-array-index-hint-bonus.
18679
18680 2014-05-21 Mark Wielaard <mjw@redhat.com>
18681
18682 PR debug/16063
18683 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18684 version >= 3 or not strict DWARF.
18685 * langhooks.h (struct lang_hooks_for_types): Add
18686 enum_underlying_base_type.
18687 * langhooks.c (lhd_enum_underlying_base_type): New function.
18688 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18689 enum_underlying_base_type.
18690 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18691 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18692 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18693
18694 2014-05-21 Richard Biener <rguenther@suse.de>
18695
18696 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18697
18698 2014-05-21 John Marino <gnugcc@marino.st>
18699
18700 * config.gcc (*-*-dragonfly*): New target.
18701 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18702 * configure: Regenerate.
18703 * config/dragonfly-stdint.h: New.
18704 * config/dragonfly.h: New.
18705 * config/dragonfly.opt: New.
18706 * config/i386/dragonfly.h: New.
18707 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18708
18709 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18710
18711 * tree.def (VOID_CST): New.
18712 * tree-core.h (TI_VOID): New.
18713 * tree.h (void_node): New.
18714 * tree.c (tree_node_structure_for_code, tree_code_size)
18715 (iterative_hash_expr): Handle VOID_CST.
18716 (build_common_tree_nodes): Initialize void_node.
18717
18718 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18719
18720 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18721 functions.
18722 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18723
18724 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18725 more places.
18726
18727 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18728 flag_reorder_blocks_and_partition.
18729 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18730
18731 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18732
18733 PR target/54236
18734 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18735 constraints.
18736 (*addc_r_t): Add new insn_and_split.
18737
18738 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18739
18740 PR middle-end/61252
18741 * omp-low.c (handle_simd_reference): New function.
18742 (lower_rec_input_clauses): Use it. Defer adding reference
18743 initialization even for reduction without placeholder if in simd,
18744 handle it properly later on.
18745
18746 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18747
18748 PR tree-optimization/60899
18749 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18750 assume all static symbols will have definition wile parsing and
18751 check the do have definition later in compilation; check that
18752 variable referring symbol will be output before concluding that
18753 reference is safe; be conservative for referring local statics;
18754 be more precise about when comdat is output in other partition.
18755
18756 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18757
18758 PR bootstrap/60984
18759 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18760 parameter.
18761 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18762 (ipa_inline): Loop inline_to_all_callers until no more aliases
18763 are removed.
18764
18765 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18766
18767 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18768 set writeonly flag only for vars actually written to.
18769
18770 2014-05-20 Dehao Chen <dehao@google.com>
18771
18772 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18773 and callee count to get clone count.
18774 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18775 count in copy_body.
18776
18777 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18778
18779 PR rtl-optimization/61243
18780 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18781
18782 2014-05-20 Xinliang David Li <davidxl@google.com>
18783
18784 * cgraphunit.c (walk_polymorphic_call_targets): Add
18785 dbgcnt and fopt-info support.
18786 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18787 * ipa-devirt.c (ipa_devirt): Ditto.
18788 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18789 * ipa.c (walk_polymorphic_call_targets): Ditto.
18790 * gimple-fold.c (fold_gimple_assign): Ditto.
18791 (gimple_fold_call): Ditto.
18792 * dbgcnt.def: New counter.
18793
18794 2014-05-20 DJ Delorie <dj@redhat.com>
18795
18796 * config/msp430/msp430.md (split): Don't allow subregs when
18797 splitting SImode adds.
18798 (andneghi): Fix subtraction logic.
18799 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18800
18801 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18802
18803 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18804 symbols.
18805 * except.c (switch_to_exception_section, resolve_unique_section,
18806 get_named_text_section, default_function_rodata_section,
18807 align_variable, get_block_for_decl, default_section_type_flags):
18808 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18809 * symtab.c (symtab_add_to_same_comdat_group,
18810 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18811 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18812 Likewise.
18813 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18814 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18815 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18816 (c6x_function_in_section_p): Likewise.
18817 * config/darwin.c (machopic_select_section): Likewise.
18818 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18819 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18820 * config/mep/mep.c (mep_select_section): LIkewise.
18821 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18822
18823 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18824
18825 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18826 EH region of calls to pure functions that can throw an exception.
18827 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18828 (copy_reference_ops_from_call): Also copy the EH region of the call if
18829 it can throw an exception.
18830
18831 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18832
18833 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18834 nested VEC_SELECTs that are inverses of each other.
18835
18836 2014-05-20 Richard Biener <rguenther@suse.de>
18837
18838 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18839 (extract_and_process_scc_for_name): not here.
18840 (cond_dom_walker::before_dom_children): Only process
18841 stmts that end the BB in interesting ways.
18842 (run_scc_vn): Mark param uses as visited.
18843
18844 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18845
18846 * config/arm/arm.md (arith_shiftsi): Do not predicate for
18847 arm_restrict_it.
18848
18849 2014-05-20 Nick Clifton <nickc@redhat.com>
18850
18851 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18852 (msp430_gimplify_va_arg_expr): New function.
18853 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
18854
18855 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
18856 operand 0 in order to prevent confusion about the number of
18857 registers involved.
18858
18859 2014-05-20 Richard Biener <rguenther@suse.de>
18860
18861 PR tree-optimization/61221
18862 * tree-ssa-pre.c (el_to_update): Remove.
18863 (eliminate_dom_walker::before_dom_children): Handle released
18864 VDEFs by value-numbering them to the associated VUSE. Update
18865 stmt immediately for substituted call address.
18866 (eliminate): Remove delayed stmt updating code.
18867 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
18868 possibly late re-numbered vuses.
18869 (vn_reference_lookup_2): Adjust.
18870 (vn_reference_lookup_pieces): Likewise.
18871 (vn_reference_lookup): Likewise.
18872
18873 2014-05-20 Richard Biener <rguenther@suse.de>
18874
18875 * config.gcc: Remove need_64bit_hwint.
18876 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
18877 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
18878 it to be true.
18879 * config.in: Regenerate.
18880 * configure: Likewise.
18881
18882 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
18883
18884 * doc/extend.texi: Create Label Attributes section,
18885 move all label attributes into it and reference it.
18886
18887 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
18888
18889 * arm.c (thumb1_reorg): When scanning backwards skip anything
18890 that's not a proper insn.
18891
18892 2014-05-19 Richard Biener <rguenther@suse.de>
18893
18894 PR tree-optimization/61221
18895 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18896 Do nothing for unreachable blocks.
18897 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
18898 Improve unreachability detection.
18899
18900 2014-05-19 Richard Biener <rguenther@suse.de>
18901
18902 PR tree-optimization/61209
18903 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
18904
18905 2014-05-19 Nick Clifton <nickc@redhat.com>
18906
18907 * except.c (init_eh): Fix computation of builtin setjmp buffer
18908 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
18909
18910 2014-05-19 Richard Biener <rguenther@suse.de>
18911
18912 PR tree-optimization/61184
18913 * tree-vrp.c (is_negative_overflow_infinity): Use
18914 TREE_OVERFLOW_P and do that check first.
18915 (is_positive_overflow_infinity): Likewise.
18916 (is_overflow_infinity): Likewise.
18917 (vrp_operand_equal_p): Properly treat operands with
18918 differing overflow as not equal.
18919
18920 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
18921
18922 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
18923 shift simplification where it was intended.
18924
18925 2014-05-19 Christian Bruel <christian.bruel@st.com>
18926
18927 PR target/61195
18928 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
18929
18930 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
18931
18932 PR target/61084
18933 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
18934 than wide_int.
18935
18936 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18937
18938 * reg-notes.def (CROSSING_JUMP): Likewise.
18939 * rtl.h (rtx_def): Update comment for jump flag.
18940 (CROSSING_JUMP_P): Define.
18941 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
18942 of a REG_CROSSING_JUMP note.
18943 * cfghooks.c (tidy_fallthru_edges): Likewise.
18944 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
18945 * emit-rtl.c (try_split): Likewise.
18946 * haifa-sched.c (sched_create_recovery_edges): Likewise.
18947 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
18948 * jump.c (redirect_jump_2): Likewise.
18949 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
18950 (relax_delay_slots): Likewise.
18951 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
18952 (bbit_di): Likewise.
18953 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
18954 * config/sh/sh.md (jump_compact): Likewise.
18955 * bb-reorder.c (rotate_loop): Likewise.
18956 (pass_duplicate_computed_gotos::execute): Likewise.
18957 (add_reg_crossing_jump_notes): Rename to...
18958 (update_crossing_jump_flags): ...this.
18959 (pass_partition_blocks::execute): Update accordingly.
18960
18961 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18962
18963 * tree.h: Remove extraneous template <>.
18964
18965 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18966
18967 * ipa.c (symtab_remove_unreachable_nodes): Remove
18968 symbol from comdat group if its body was eliminated.
18969 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
18970 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
18971 (symtab_unregister_node): ... this one.
18972 (verify_symtab_base): More strict checking of comdats.
18973 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
18974
18975 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18976
18977 * tree-pass.h (make_pass_ipa_comdats): New pass.
18978 * timevar.def (TV_IPA_COMDATS): New timevar.
18979 * passes.def (pass_ipa_comdats): Add.
18980 * Makefile.in (OBJS): Add ipa-comdats.o
18981 * ipa-comdats.c: New file.
18982
18983 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18984
18985 * ipa.c (update_visibility_by_resolution_info): New function.
18986 (function_and_variable_visibility): Use it.
18987
18988 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18989
18990 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
18991 New functions.
18992 (FOR_EACH_DEFINED_SYMBOL): New macro.
18993 (varpool_first_static_initializer, varpool_next_static_initializer,
18994 varpool_first_defined_variable, varpool_next_defined_variable):
18995 Fix comments.
18996 (symtab_in_same_comdat_p): Correctly deal with inline functions.
18997
18998 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18999
19000 * ggc-page.c (ggc_handle_finalizers): Add comment.
19001
19002 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19003
19004 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19005 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19006 (ggc_internal_cleared_alloc): Likewise.
19007 * ggc-page.c (finalizer): New class.
19008 (vec_finalizer): Likewise.
19009 (globals::finalizers): New member.
19010 (globals::vec_finalizers): Likewise.
19011 (ggc_internal_alloc): Record the finalizer if any for the block being
19012 allocated.
19013 (ggc_handle_finalizers): New function.
19014 (ggc_collect): Call ggc_handle_finalizers.
19015 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19016 finalizer.
19017 (ggc_internal_cleared_alloc): Likewise.
19018 (finalize): New function.
19019 (need_finalization_p): Likewise.
19020 (ggc_alloc): Install the type's destructor as the finalizer if it
19021 might do something.
19022 (ggc_cleared_alloc): Likewise.
19023 (ggc_vec_alloc): Likewise.
19024 (ggc_cleared_vec_alloc): Likewise.
19025
19026 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19027
19028 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19029
19030 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19031
19032 * alias.c (record_alias_subset): Adjust.
19033 * bitmap.c (bitmap_element_allocate): Likewise.
19034 (bitmap_gc_alloc_stat): Likewise.
19035 * cfg.c (init_flow): Likewise.
19036 (alloc_block): Likewise.
19037 (unchecked_make_edge): Likewise.
19038 * cfgloop.c (alloc_loop): Likewise.
19039 (flow_loops_find): Likewise.
19040 (rescan_loop_exit): Likewise.
19041 * cfgrtl.c (init_rtl_bb_info): Likewise.
19042 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19043 (cgraph_allocate_node): Likewise.
19044 (cgraph_create_edge_1): Likewise.
19045 (cgraph_allocate_init_indirect_info): Likewise.
19046 * cgraphclones.c (cgraph_clone_edge): Likewise.
19047 * cgraphunit.c (add_asm_node): Likewise.
19048 (init_lowered_empty_function): Likewise.
19049 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19050 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19051 (alpha_use_linkage): Likewise.
19052 * config/arc/arc.c (arc_init_machine_status): Likewise.
19053 * config/arm/arm.c (arm_init_machine_status): Likewise.
19054 * config/avr/avr.c (avr_init_machine_status): Likewise.
19055 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19056 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19057 * config/cris/cris.c (cris_init_machine_status): Likewise.
19058 * config/darwin.c (machopic_indirection_name): Likewise.
19059 (darwin_build_constant_cfstring): Likewise.
19060 (darwin_enter_string_into_cfstring_table): Likewise.
19061 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19062 * config/frv/frv.c (frv_init_machine_status): Likewise.
19063 * config/i386/i386.c (get_dllimport_decl): Likewise.
19064 (ix86_init_machine_status): Likewise.
19065 (assign_386_stack_local): Likewise.
19066 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19067 (i386_pe_maybe_record_exported_symbol): Likewise.
19068 (i386_pe_record_stub): Likewise.
19069 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19070 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19071 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19072 (m32c_note_pragma_address): Likewise.
19073 * config/mep/mep.c (mep_init_machine_status): Likewise.
19074 (mep_note_pragma_flag): Likewise.
19075 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19076 (mips16_local_alias): Likewise.
19077 (mips_init_machine_status): Likewise.
19078 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19079 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19080 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19081 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19082 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19083 * config/pa/pa.c (pa_init_machine_status): Likewise.
19084 (pa_get_deferred_plabel): Likewise.
19085 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19086 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19087 (rs6000_init_machine_status): Likewise.
19088 (output_toc): Likewise.
19089 * config/s390/s390.c (s390_init_machine_status): Likewise.
19090 * config/score/score.c (score_output_external): Likewise.
19091 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19092 * config/spu/spu.c (spu_init_machine_status): Likewise.
19093 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19094 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19095 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19096 * coverage.c (coverage_end_function): Likewise.
19097 * dbxout.c (dbxout_init): Likewise.
19098 * doc/gty.texi: Don't mention variable_size attribute.
19099 * dwarf2cfi.c (new_cfi): Adjust.
19100 (new_cfi_row): Likewise.
19101 (copy_cfi_row): Likewise.
19102 (create_cie_data): Likewise.
19103 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19104 (new_loc_descr): Likewise.
19105 (find_AT_string_in_table): Likewise.
19106 (add_addr_table_entry): Likewise.
19107 (new_die): Likewise.
19108 (add_var_loc_to_decl): Likewise.
19109 (clone_die): Likewise.
19110 (clone_as_declaration): Likewise.
19111 (break_out_comdat_types): Likewise.
19112 (new_loc_list): Likewise.
19113 (add_loc_descr_to_each): Likewise.
19114 (add_location_or_const_value_attribute): Likewise.
19115 (add_linkage_name): Likewise.
19116 (lookup_filename): Likewise.
19117 (dwarf2out_var_location): Likewise.
19118 (new_line_info_table): Likewise.
19119 (dwarf2out_init): Likewise.
19120 (mem_loc_descriptor): Likewise.
19121 (loc_descriptor): Likewise.
19122 (add_const_value_attribute): Likewise.
19123 (tree_add_const_value_attribute): Likewise.
19124 (comp_dir_string): Likewise.
19125 (dwarf2out_vms_debug_main_pointer): Likewise.
19126 (string_cst_pool_decl): Likewise.
19127 * emit-rtl.c (set_mem_attrs): Likewise.
19128 (get_reg_attrs): Likewise.
19129 (start_sequence): Likewise.
19130 (init_emit): Likewise.
19131 (init_emit_regs): Likewise.
19132 * except.c (init_eh_for_function): Likewise.
19133 (gen_eh_region): Likewise.
19134 (gen_eh_region_catch): Likewise.
19135 (gen_eh_landing_pad): Likewise.
19136 (add_call_site): Likewise.
19137 * function.c (add_frame_space): Likewise.
19138 (insert_temp_slot_address): Likewise.
19139 (assign_stack_temp_for_type): Likewise.
19140 (get_hard_reg_initial_val): Likewise.
19141 (allocate_struct_function): Likewise.
19142 (prepare_function_start): Likewise.
19143 (types_used_by_var_decl_insert): Likewise.
19144 * gengtype.c (variable_size_p): Remove function.
19145 (enum alloc_quantity): Remove enum.
19146 (write_typed_alloc_def): Remove function.
19147 (write_typed_struct_alloc_def): Likewise.
19148 (write_typed_typedef_alloc_def): Likewise.
19149 (write_typed_alloc_defns): Likewise.
19150 (main): Adjust.
19151 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19152 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19153 * ggc.h (ggc_alloc): new function.
19154 (ggc_cleared_alloc): Likewise.
19155 (ggc_vec_alloc): Template on type of vector element, and remove
19156 element size argument.
19157 (ggc_cleared_vec_alloc): Likewise.
19158 * gimple.c (gimple_build_omp_for): Adjust.
19159 (gimple_copy): Likewise.
19160 * ipa-cp.c (get_replacement_map): Likewise.
19161 (find_aggregate_values_for_callers_subset): Likewise.
19162 (known_aggs_to_agg_replacement_list): Likewise.
19163 * ipa-devirt.c (get_odr_type): Likewise.
19164 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19165 (read_agg_replacement_chain): Likewise.
19166 * loop-iv.c (get_simple_loop_desc): Likewise.
19167 * lto-cgraph.c (input_node_opt_summary): Likewise.
19168 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19169 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19170 (input_eh_region): Likewise.
19171 (input_eh_lp): Likewise.
19172 (input_cfg): Likewise.
19173 * optabs.c (set_optab_libfunc): Likewise.
19174 (init_tree_optimization_optabs): Likewise.
19175 (set_conv_libfunc): Likewise.
19176 * passes.c (do_per_function_toporder): Likewise.
19177 * rtl.h: Don't use variable_size gty attribute.
19178 * sese.c (if_region_set_false_region): Adjust.
19179 * stringpool.c (gt_pch_save_stringpool): Likewise.
19180 * target-globals.c (save_target_globals): Likewise.
19181 * toplev.c (general_init): Likewise.
19182 * trans-mem.c (record_tm_replacement): Likewise.
19183 (split_bb_make_tm_edge): Likewise.
19184 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19185 * tree-data-ref.h (lambda_vector_new): Likewise.
19186 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19187 * tree-iterator.c (tsi_link_before): Likewise.
19188 (tsi_link_after): Likewise.
19189 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19190 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19191 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19192 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19193 * tree-ssa.c (init_tree_ssa): Adjust.
19194 * tree-ssanames.c (set_range_info): Likewise.
19195 (get_ptr_info): Likewise.
19196 (duplicate_ssa_name_ptr_info): Likewise.
19197 (duplicate_ssa_name_range_info): Likewise.
19198 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19199 (unpack_ts_fixed_cst_value_fields): Likewise.
19200 * tree.c (build_fixed): Likewise.
19201 (build_real): Likewise.
19202 (build_string): Likewise.
19203 (decl_priority_info): Likewise.
19204 (decl_debug_expr_insert): Likewise.
19205 (decl_value_expr_insert): Likewise.
19206 (decl_debug_args_insert): Likewise.
19207 (type_hash_add): Likewise.
19208 (build_omp_clause): Likewise.
19209 * ubsan.c (decl_for_type_insert): Likewise.
19210 * varasm.c (get_unnamed_section): Likewise.
19211 (get_noswitch_section): Likewise.
19212 (get_section): Likewise.
19213 (get_block_for_section): Likewise.
19214 (create_block_symbol): Likewise.
19215 (build_constant_desc): Likewise.
19216 (create_constant_pool): Likewise.
19217 (force_const_mem): Likewise.
19218 (record_tm_clone_pair): Likewise.
19219 * varpool.c (varpool_create_empty_node): Likewise.
19220
19221 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19222
19223 * dwarf2out.c (tree_add_const_value_attribute): Call
19224 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19225 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19226 instead of ggc_internal_<x>alloc_stat.
19227 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19228 (ggc_realloc): Likewise.
19229 * ggc-none.c (ggc_internal_alloc): Likewise.
19230 (ggc_internal_cleared_alloc): Likewise.
19231 * ggc-page.c: Likewise.
19232 * ggc.h (ggc_internal_alloc_stat): Likewise.
19233 (ggc_internal_alloc): Remove macro.
19234 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19235 (ggc_internal_cleared_alloc): Remove macro.
19236 (GGC_RESIZEVEC): Adjust.
19237 (ggc_resizevar): Remove macro.
19238 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19239 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19240 (ggc_internal_vec_cleared_alloc): Remove macro.
19241 (ggc_alloc_atomic_stat): Drop _stat suffix.
19242 (ggc_alloc_atomic): Remove macro.
19243 (ggc_alloc_cleared_atomic): Remove macro.
19244 (ggc_alloc_string_stat): Drop _stat suffix.
19245 (ggc_alloc_string): Remove macro.
19246 (ggc_alloc_rtx_def_stat): Adjust.
19247 (ggc_alloc_tree_node_stat): Likewise.
19248 (ggc_alloc_cleared_tree_node_stat): Likewise.
19249 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19250 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19251 * gimple.c (gimple_build_omp_for): Likewise.
19252 (gimple_copy): Likewise.
19253 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19254 * toplev.c (realloc_for_line_map): Adjust.
19255 * tree-data-ref.h (lambda_vector_new): Likewise.
19256 * tree-phinodes.c (allocate_phi_node): Likewise.
19257 * tree.c (grow_tree_vec_stat): Likewise.
19258 * vec.h (va_gc::reserve): Adjust.
19259
19260 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19261
19262 * config/microblaze/microblaze.c (break_handler): New Declaration.
19263 (microblaze_break_function_p,microblaze_is_break_handler): New.
19264 (compute_frame_size): Use microblaze_break_function_p.
19265 Add the test of break_handler.
19266 (microblaze_function_prologue) : Add the test of variable
19267 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19268 (microblaze_function_epilogue) : Add the test of break_handler.
19269 (microblaze_globalize_label) : Add the test of break_handler.
19270 Check the name by BREAK_HANDLER_NAME.
19271
19272 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19273
19274 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19275 microblaze_is_break_handler test.
19276 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19277 Use SYMBOL_REF_DECL.
19278
19279 * config/microblaze/microblaze-protos.h
19280 (microblaze_break_function_p,microblaze_is_break_handler):
19281 New Declaration.
19282
19283 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19284 new MicroBlaze break_handler functions.
19285
19286 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19287
19288 * doc/extend.texi (Size of an asm): Move node text according
19289 to its @menu entry position.
19290
19291 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19292
19293 PR tree-optimization/61140
19294 PR tree-optimization/61150
19295 PR tree-optimization/61197
19296 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19297
19298 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19299
19300 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19301
19302 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19303
19304 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19305 __SIZEOF_INT128__ is defined.
19306
19307 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19308
19309 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19310 (rs6000_delegitimize_address): Use it.
19311
19312 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19313
19314 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19315 inplace argument. Store the new address in the original MEM when true.
19316 * emit-rtl.c (change_address_1): Likewise.
19317 (adjust_address_1, adjust_automodify_address_1, offset_address):
19318 Update accordingly.
19319 * rtl.h (plus_constant): Add an inplace argument.
19320 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19321 when true. Avoid generating (plus X (const_int 0)).
19322 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19323 in-place. Pass true to plus_constant.
19324 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19325
19326 2014-05-16 Dehao Chen <dehao@google.com>
19327
19328 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19329
19330 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19331
19332 PR target/54089
19333 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19334 patterns.
19335 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19336
19337 2014-05-16 Dehao Chen <dehao@google.com>
19338
19339 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19340 optimize_function_for_size_p.
19341 * regs.h (REG_FREQ_FROM_BB): Likewise.
19342
19343 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19344
19345 PR target/51244
19346 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19347 negt_reg_operand cases.
19348 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19349 predicate.
19350 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19351
19352 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19353
19354 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19355 target variants.
19356
19357 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19358
19359 Revert:
19360 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19361
19362 * tree-cfg.c (dump_function_to_file): Dump the return type of
19363 functions, in a line to itself before the function body, mimicking
19364 the layout of a C function.
19365
19366 2014-05-16 Dehao Chen <dehao@google.com>
19367
19368 * cfghooks.c (make_forwarder_block): Use direct computation to
19369 get fall-through edge's count and frequency.
19370
19371 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19372
19373 * config/arc/arc.c (arc_init): Fix typo in error message.
19374 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19375 (split_stack_prologue_scratch_regno): Likewise.
19376 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19377 word from error message.
19378
19379 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19380
19381 * ira-costs.c: Fix typo in comment.
19382
19383 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
19384
19385 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
19386
19387 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
19388
19389 * varpool.c (dump_varpool_node): Dump write-only flag.
19390 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
19391 write-only flag.
19392 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
19393 write-only variables.
19394 * ipa.c (process_references): New function.
19395 (set_readonly_bit): New function.
19396 (set_writeonly_bit): New function.
19397 (clear_addressable_bit): New function.
19398 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
19399 fix handling of aliases.
19400 * cgraph.h (struct varpool_node): Add writeonly flag.
19401
19402 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
19403
19404 PR rtl-optimization/60969
19405 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
19406 Calculate costs for this case.
19407
19408 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
19409
19410 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
19411 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
19412
19413 2014-05-16 Richard Biener <rguenther@suse.de>
19414
19415 PR tree-optimization/61194
19416 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
19417 bool patterns ending in a COND_EXPR.
19418
19419 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19420
19421 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
19422
19423 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19424
19425 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
19426 where we were unable to cost an RTX.
19427
19428 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19429
19430 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
19431 HIGH, LO_SUM.
19432
19433 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19434 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19435
19436 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
19437
19438 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19439 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19440
19441 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
19442 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
19443
19444 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19445 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19446
19447 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
19448 operators.
19449
19450 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19451 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19452
19453 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19454 DIV/MOD.
19455
19456 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19457 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19458
19459 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
19460 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
19461
19462 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19463 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19464
19465 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
19466 rotates and shifts.
19467
19468 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19469 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19470
19471 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
19472 ZERO_EXTEND and SIGN_EXTEND better.
19473
19474 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19475 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19476
19477 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
19478 logical operations.
19479
19480 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19481 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19482
19483 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
19484 costs when costing loads and stores to memory.
19485
19486 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19487 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19488
19489 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19490 for SET RTX.
19491
19492 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19493
19494 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19495
19496 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19497 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19498
19499 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19500 to...
19501 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19502 well formed.
19503 (aarch64_rtx_mult_cost): New.
19504 (aarch64_rtx_costs): Use it, refactor as appropriate.
19505
19506 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19507 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19508
19509 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19510 emit instructions, return number of instructions which would
19511 be emitted.
19512 (aarch64_add_constant): Update call to aarch64_build_constant.
19513 (aarch64_output_mi_thunk): Likewise.
19514 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19515 a CONST_DOUBLE.
19516
19517 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19518
19519 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19520 (TARGET_RTX_COSTS): Call it.
19521
19522 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19523
19524 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19525 (cortexa57_vector_cost): Likewise.
19526 (cortexa57_tunings): Use them.
19527
19528 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19529
19530 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19531 (cpu_addrcost_table): Use it.
19532 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19533 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19534 move it.
19535
19536 2014-05-16 Richard Biener <rguenther@suse.de>
19537
19538 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19539 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19540 (visit_phi): Ignore edges marked as not executable.
19541 (class cond_dom_walker): New.
19542 (cond_dom_walker::before_dom_children): Value-number
19543 control statements and mark successor edges as not
19544 executable if possible.
19545 (run_scc_vn): First walk all control statements in
19546 dominator order, marking edges as not executable.
19547 * tree-inline.c (copy_edges_for_bb): Be not confused
19548 about random edge flags.
19549
19550 2014-05-16 Richard Biener <rguenther@suse.de>
19551
19552 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19553
19554 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19555
19556 PR target/61193
19557 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19558 (__TM_simple_begin): Use it.
19559 (__TM_begin): Likewise.
19560
19561 2014-05-15 Martin Jambor <mjambor@suse.cz>
19562
19563 PR ipa/61085
19564 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19565 type_preserved flag when the indirect edge is polymorphic.
19566
19567 2014-05-15 Martin Jambor <mjambor@suse.cz>
19568
19569 PR tree-optimization/61090
19570 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19571 build_ref_for_model.
19572
19573 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19574
19575 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19576 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19577
19578 2014-05-15 Jakub Jelinek <jakub@redhat.com>
19579
19580 PR tree-optimization/61158
19581 * fold-const.c (fold_binary_loc): If X is zero-extended and
19582 shiftc >= prec, make sure zerobits is all ones instead of
19583 invoking undefined behavior.
19584
19585 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19586
19587 * regcprop.h: New file.
19588 * regcprop.c (skip_debug_insn_p): New decl.
19589 (replace_oldest_value_reg): Check skip_debug_insn_p.
19590 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19591 * shrink-wrap.c: Include regcprop.h.
19592 (prepare_shrink_wrap): Call
19593 copyprop_hardreg_forward_bb_without_debug_insn.
19594
19595 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19596
19597 * shrink-wrap.h: Update comment.
19598 * shrink-wrap.c: Update comment.
19599 (next_block_for_reg): Rename to live_edge_for_reg.
19600 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19601 (move_insn_for_shrink_wrap): Split live_edge.
19602 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19603
19604 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19605
19606 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19607 Delete.
19608 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19609 * config/sparc/sparc.md (fptype_ut699): New attribute.
19610 (in_branch_delay): Return false if -mfix-ut699 is specified and
19611 fptype_ut699 is set to single.
19612 (truncdfsf2): Add fptype_ut699 attribute.
19613 (fix_truncdfsi2): Likewise.
19614 (floatsisf2): Change fptype attribute.
19615 (fix_truncsfsi2): Likewise.
19616 (negtf2_notv9): Delete.
19617 (negtf2_v9): Likewise.
19618 (negtf2_hq): New instruction.
19619 (negtf2): New instruction and splitter.
19620 (negdf2_notv9): Rewrite.
19621 (abstf2_notv9): Delete.
19622 (abstf2_hq_v9): Likewise.
19623 (abstf2_v9): Likewise.
19624 (abstf2_hq): New instruction.
19625 (abstf2): New instruction and splitter.
19626 (absdf2_notv9): Rewrite.
19627
19628 2014-05-14 Cary Coutant <ccoutant@google.com>
19629
19630 PR debug/61013
19631 * opts.c (common_handle_option): Don't special-case "-g".
19632 (set_debug_level): Default to at least level 2 with "-g".
19633
19634 2014-05-14 DJ Delorie <dj@redhat.com>
19635
19636 * config/msp430/msp430.c (msp430_builtin): Add
19637 MSP430_BUILTIN_DELAY_CYCLES.
19638 (msp430_init_builtins): Register void __delay_cycles(long long).
19639 (msp430_builtin_decl): Add it.
19640 (cg_magic_constant): New.
19641 (msp430_expand_delay_cycles): New.
19642 (msp430_expand_builtin): Call it.
19643 (msp430_print_operand_raw): Change integer printing from "int" to
19644 HOST_WIDE_INT.
19645 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19646 (delay_cycles_start): New.
19647 (delay_cycles_end): New.
19648 (delay_cycles_32): New.
19649 (delay_cycles_32x): New.
19650 (delay_cycles_16): New.
19651 (delay_cycles_16x): New.
19652 (delay_cycles_2): New.
19653 (delay_cycles_1): New.
19654 * doc/extend.texi: Document __delay_cycles().
19655
19656 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19657
19658 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19659 length attribute computation.
19660
19661 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19662
19663 PR debug/61188
19664 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19665
19666 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
19667
19668 PR target/61084
19669 * config/sparc/sparc.md: Fix types of low and high in DI constant
19670 splitter. Use gen_int_mode in some other splitters.
19671
19672 2014-05-14 Martin Jambor <mjambor@suse.cz>
19673
19674 PR ipa/60897
19675 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19676
19677 2014-05-14 James Norris <jnorris@codesourcery.com>
19678
19679 * omp-low.c (expand_parallel_call): Remove shadow variable.
19680 (expand_omp_taskreg): Likewise.
19681
19682 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19683
19684 * common/config/i386/i386-common.c
19685 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19686 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19687 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19688 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19689 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19690 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19691 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19692 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19693 xsavecintrin.h, xsavesintrin.h.
19694 (x86_64-*-*): Ditto.
19695 * config/i386/clflushoptintrin.h: New.
19696 * config/i386/xsavecintrin.h: Ditto.
19697 * config/i386/xsavesintrin.h: Ditto.
19698 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19699 (bit_XSAVES): Ditto.
19700 (bit_XSAVES): Ditto.
19701 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19702 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19703 -mno-clflushopt.
19704 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19705 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19706 OPTION_MASK_ISA_XSAVES.
19707 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19708 -mxsavec, -mxsaves.
19709 (PTA_CLFLUSHOPT) Define.
19710 (PTA_XSAVEC): Ditto.
19711 (PTA_XSAVES): Ditto.
19712 (ix86_option_override_internal): Handle new options.
19713 (ix86_valid_target_attribute_inner_p): Ditto.
19714 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19715 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19716 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19717 (bdesc_special_args): Add __builtin_ia32_xsaves,
19718 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19719 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19720 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19721 (ix86_expand_builtin): Handle new builtins.
19722 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19723 (TARGET_CLFLUSHOPT_P): Ditto.
19724 (TARGET_XSAVEC): Ditto.
19725 (TARGET_XSAVEC_P): Ditto.
19726 (TARGET_XSAVES): Ditto.
19727 (TARGET_XSAVES_P): Ditto.
19728 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19729 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19730 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19731 (ANY_XRSTOR): New.
19732 (ANY_XRSTOR64): Ditto.
19733 (xrstor): Ditto.
19734 (xrstor): Change into <xrstor>.
19735 (xrstor_rex64): Change into <xrstor>_rex64.
19736 (xrstor64): Change into <xrstor>64
19737 (clflushopt): New.
19738 * config/i386/i386.opt (mclflushopt): New.
19739 (mxsavec): Ditto.
19740 (mxsaves): Ditto.
19741 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19742 xsavecintrin.h.
19743 * doc/invoke.texi: Document new options.
19744
19745 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19746
19747 PR rtl-optimization/60866
19748 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19749 Default it to -1. Pass it down to init_simplejump_data.
19750 (init_simplejump_data): New parameter old_seqno. Pass it down
19751 to get_seqno_for_a_jump.
19752 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19753 initializing new jump seqno as a last resort. Add comment.
19754 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19755 jump and pass it down to sel_init_new_insn.
19756 (sel_redirect_edge_and_branch_force): Likewise.
19757
19758 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19759
19760 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19761 shifted values to avoid build warning.
19762
19763 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19764
19765 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19766 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19767 (cfg_layout_merge_blocks): Likewise.
19768 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19769
19770 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19771
19772 PR rtl-optimization/60901
19773 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19774 bb predecessor belongs to the same scheduling region. Adjust comment.
19775
19776 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19777
19778 * doc/sourcebuild.texi: (dfp_hw): Document.
19779 (p8vector_hw): Likewise.
19780 (powerpc_eabi_ok): Likewise.
19781 (powerpc_elfv2): Likewise.
19782 (powerpc_htm_ok): Likewise.
19783 (ppc_recip_hw): Likewise.
19784 (vsx_hw): Likewise.
19785
19786 2014-05-13 Cary Coutant <ccoutant@google.com>
19787
19788 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19789
19790 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19791
19792 * gengtype-parse.c (require3): Eliminate in favor of...
19793 (require4): New.
19794 (require_template_declaration): Update to support optional single *
19795 on a type.
19796
19797 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19798 (create_user_defined_type): Handle a single level of explicit
19799 pointerness within template arguments.
19800 (struct write_types_data): Add field "kind".
19801 (filter_type_name): Handle "*" character.
19802 (write_user_func_for_structure_ptr): Require a write_types_data
19803 rather than just a prefix string, so that we can look up the kind
19804 of the wtd and use it as an index into wrote_user_func_for_ptr,
19805 ensuring that such functions are written at most once. Support
19806 subclasses by invoking the marking function of the ultimate base class.
19807 (write_user_func_for_structure_body): Require a write_types_data
19808 rather than just a prefix string, so that we can pass this to
19809 write_user_func_for_structure_ptr.
19810 (write_func_for_structure): Likewise.
19811 (ggc_wtd): Add initializer of new "kind" field.
19812 (pch_wtd): Likewise.
19813
19814 * gengtype.h (enum write_types_kinds): New.
19815 (struct type): Add field wrote_user_func_for_ptr to the "s"
19816 union member.
19817
19818 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19819
19820 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19821 instead of const_binop.
19822 (fold_binary_loc): Likewise.
19823
19824 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19825
19826 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19827 calculation to match get_ref_base_and_extent.
19828
19829 2014-05-13 Catherine Moore <clm@codesourcery.com>
19830 Sandra Loosemore <sandra@codesourcery.com>
19831
19832 * configure.ac: Fix assembly for explicit JALR relocation check.
19833 * configure: Regenerate.
19834
19835 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19836
19837 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19838 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19839 Remove associated type declarations and initialisations.
19840 (arm_expand_neon_builtin): Likewise.
19841 (neon_emit_pair_result_insn): Delete.
19842 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19843 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19844 (neon_vzip<mode>): Likewise.
19845 (neon_vuzp<mode>): Likewise.
19846
19847 2014-05-13 Richard Biener <rguenther@suse.de>
19848
19849 PR ipa/60973
19850 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
19851 it needs revisiting whether the call still may be tail-called.
19852
19853 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19854
19855 * rtl.def (SYMBOL_REF): Remove middle "0" field.
19856 * rtl.h (block_symbol): Reduce number of fields to 2.
19857 (rtx_def): Add u2.symbol_ref_flags.
19858 (SYMBOL_REF_FLAGS): Use it.
19859 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
19860 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
19861 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
19862 Lower index of SYMBOL_REF_DATA.
19863 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
19864 Print SYMBOL_REF_FLAGS at the same time.
19865 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
19866
19867 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19868
19869 * rtl.def (VAR_LOCATION): Remove "i" field.
19870 * rtl.h (rtx_def): Add u2.var_location_status.
19871 (PAT_VAR_LOCATION_STATUS): Use it.
19872 (gen_rtx_VAR_LOCATION): Declare.
19873 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
19874 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
19875 * var-tracking.c (emit_note_insn_var_location): Remove casts.
19876
19877 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19878
19879 * rtl.def (scratch): Fix outdated comment and remove "0" field.
19880 * gengtype.c (adjust_field_rtx_def): Update accordingly.
19881
19882 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19883
19884 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
19885 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
19886 * rtl.h (rtx_def): Add insn_uid to u2 field.
19887 (RTX_FLAG_CHECK8): Delete in favor of...
19888 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
19889 (INSN_DELETED_P): Update accordingly.
19890 (INSN_UID): Use u2.insn_uid.
19891 (INSN_CHAIN_CODE_P): Define.
19892 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
19893 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
19894 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
19895 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
19896 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
19897 indices accordingly.
19898 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
19899 Update indices for insn-chain rtxes.
19900 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
19901 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
19902 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
19903 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
19904 * combine.c (try_combine): Likewise.
19905 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19906
19907 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19908
19909 * rtl.def (REG): Remove middle field.
19910 * rtl.h (rtx_def): Add orignal_regno to u2.
19911 (ORIGINAL_REGNO): Use it instead of field 1.
19912 (REG_ATTRS): Lower field index accordingly.
19913 * gengtype.c (adjust_field_rtx_def): Remove handling of
19914 ORIGINAL_REGNO. Move REG_ATTRS index down.
19915 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
19916 code that prints the REGNO.
19917
19918 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19919
19920 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
19921 GENERATOR_FILE.
19922
19923 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19924
19925 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
19926
19927 2014-05-13 Bin Cheng <bin.cheng@arm.com>
19928
19929 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
19930 (alloc_iv): Lower base expressions containing ADDR_EXPR.
19931
19932 2014-05-13 Ian Bolton <ian.bolton@arm.com>
19933
19934 * config/aarch64/aarch64-protos.h
19935 (aarch64_hard_regno_caller_save_mode): New prototype.
19936 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
19937 New function.
19938 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
19939
19940 2014-05-13 Christian Bruel <christian.bruel@st.com>
19941
19942 * target.def (mode_switching): New hook vector.
19943 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
19944 (mode_exit, modepriority_to_mode): Likewise.
19945 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
19946 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19947 * target.h: Include tm.h and hard-reg-set.h.
19948 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
19949 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
19950 * doc/tm.texi Regenerate.
19951 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19952 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19953 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
19954 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
19955 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19956 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19957 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
19958 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
19959 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
19960 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
19961 (ix86_emit_mode_set): Hookify.
19962 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
19963 Delete.
19964 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19965 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
19966 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
19967 (epiphany_mode_priority_to_mode): Remove declaration.
19968 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
19969 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
19970 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
19971 Likewise.
19972 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
19973 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
19974 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
19975
19976 2014-05-13 Jakub Jelinek <jakub@redhat.com>
19977
19978 PR target/61060
19979 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
19980 is const0_rtx, return immediately. Don't test count == 0 when
19981 it is always true.
19982
19983 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19984
19985 * Makefile.in: add shrink-wrap.o.
19986 * config/i386/i386.c: include "shrink-wrap.h"
19987 * function.c: Likewise.
19988 (requires_stack_frame_p, next_block_for_reg,
19989 move_insn_for_shrink_wrap, prepare_shrink_wrap,
19990 dup_block_and_redirect): Move to shrink-wrap.c
19991 (thread_prologue_and_epilogue_insns): Extract three code segments
19992 as functions in shrink-wrap.c
19993 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
19994 shrink-wrap.h
19995 * shrink-wrap.c: New file.
19996 * shrink-wrap.h: New file.
19997
19998 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19999
20000 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20001 reference to Solaris.
20002
20003 2014-05-12 Mike Stump <mikestump@comcast.net>
20004
20005 PR other/31778
20006 * genattrtab.c (filename): Add.
20007 (convert_set_attr_alternative): Improve error message.
20008 (check_defs): Restore read_md_filename for error messages.
20009 (gen_insn): Save filename.
20010
20011 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20012
20013 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20014 -fno-local-ivars and -fivar-visibility.
20015 * c-family/c.opt: Make -Wshadow also implicitly enable
20016 -Wshadow-ivar.
20017
20018 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20019
20020 * doc/tm.texi: Remove reference to deleted macro.
20021 * doc/tm.texi.in: Likewise.
20022
20023 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20024
20025 PR target/60991
20026 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20027 to restore Y.
20028
20029 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20030
20031 PR libgcc/61152
20032 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20033 * config/arm/aout.h (License): Same.
20034 * config/arm/bpabi.h (License): Same.
20035 * config/arm/elf.h (License): Same.
20036 * config/arm/linux-elf.h (License): Same.
20037 * config/arm/linux-gas.h (License): Same.
20038 * config/arm/netbsd-elf.h (License): Same.
20039 * config/arm/uclinux-eabi.h (License): Same.
20040 * config/arm/uclinux-elf.h (License): Same.
20041 * config/arm/vxworks.h (License): Same.
20042
20043 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20044
20045 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20046 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20047 number of operands to 3.
20048 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20049 * tree-nested.c (convert_nonlocal_omp_clauses,
20050 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20051 * gimplify.c (gimplify_scan_omp_clauses): Handle
20052 OMP_CLAUSE_LINEAR_STMT.
20053 * omp-low.c (lower_rec_input_clauses): Fix typo.
20054 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20055 cast between Fortran boolean_type_node and C _Bool if
20056 needed.
20057
20058 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20059
20060 PR tree-optimization/61136
20061 * wide-int.h (multiple_of_p): Define a version that doesn't return
20062 the quotient.
20063 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20064 integer_zerop/const_binop pair.
20065 (multiple_of_p): Likewise, converting both operands to widest_int
20066 precision.
20067
20068 2014-05-09 Teresa Johnson <tejohnson@google.com>
20069
20070 * cgraphunit.c (analyze_functions): Use correct dump file.
20071
20072 2014-05-09 Florian Weimer <fweimer@redhat.com>
20073
20074 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20075 expand_used_vars.
20076 (stack_protect_return_slot_p): New function.
20077 (expand_used_vars): Call stack_protect_decl_p and
20078 stack_protect_return_slot_p for -fstack-protector-strong.
20079
20080 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20081 Andrew Haley <aph@redhat.com>
20082 Richard Sandiford <rdsandiford@googlemail.com>
20083
20084 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20085 pages.
20086
20087 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20088
20089 PR middle-end/61111
20090 * fold-const.c (fold_binary_loc): Changed width of mask.
20091
20092 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20093
20094 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20095 unsigned int initializers for regno_in, regno_out.
20096
20097 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20098
20099 PR target/61055
20100 * config/avr/avr.md (cc): Add new attribute set_vzn.
20101 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20102 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20103 with INC, DEC or NEG.
20104 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20105 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20106 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20107
20108 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20109
20110 Revert:
20111 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20112
20113 * wide-int.cc (UTItype): Define.
20114 (UDWtype): Define for appropriate W_TYPE_SIZE.
20115
20116 2014-05-09 Richard Biener <rguenther@suse.de>
20117
20118 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20119 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20120 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20121 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20122 ssa_propagate): Adjust.
20123
20124 2014-05-08 Jeff Law <law@redhat.com>
20125
20126 PR tree-optimization/61009
20127 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20128 tri-state rather than a boolean. When a block is too big to
20129 thread through, inform caller via negative return value.
20130 (thread_across_edge): If a block was too big for normal threading,
20131 then it's too big for a joiner too, so remove temporary equivalences
20132 and return immediately.
20133
20134 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20135 Matthias Klose <doko@ubuntu.com>
20136
20137 PR driver/61106
20138 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20139
20140 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20141
20142 PR target/59952
20143 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20144
20145 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20146
20147 PR target/61092
20148 * config/alpha/alpha.c: Include gimple-iterator.h.
20149 (alpha_gimple_fold_builtin): New function. Move
20150 ALPHA_BUILTIN_UMULH folding from ...
20151 (alpha_fold_builtin): ... here.
20152 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20153
20154 2014-05-08 Wei Mi <wmi@google.com>
20155
20156 PR target/58066
20157 * config/i386/i386.c (ix86_compute_frame_layout): Update
20158 preferred_stack_boundary for call, expanded from tls descriptor.
20159 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20160 to depend on SP register.
20161 (*tls_local_dynamic_base_32_gnu): Ditto.
20162 (*tls_local_dynamic_32_once): Ditto.
20163 (tls_global_dynamic_64_<mode>): Set
20164 ix86_tls_descriptor_calls_expanded_in_cfun.
20165 (tls_local_dynamic_base_64_<mode>): Ditto.
20166 (tls_global_dynamic_32): Set
20167 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20168 to depend on SP register.
20169 (tls_local_dynamic_base_32): Ditto.
20170
20171 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20172
20173 * config/arm/arm_neon.h: Update comment.
20174 * config/arm/neon-docgen.ml: Delete.
20175 * config/arm/neon-gen.ml: Delete.
20176 * doc/arm-neon-intrinsics.texi: Update comment.
20177
20178 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20179
20180 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20181 and v4sf versions.
20182 (vand, vorr, veor, vorn, vbic): Remove.
20183 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20184 iterator.
20185 (neon_vsub_unspec): Likewise.
20186 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20187
20188 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20189
20190 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20191 (vadd_s16): Likewise.
20192 (vadd_s32): Likewise.
20193 (vadd_f32): Likewise.
20194 (vadd_u8): Likewise.
20195 (vadd_u16): Likewise.
20196 (vadd_u32): Likewise.
20197 (vadd_s64): Likewise.
20198 (vadd_u64): Likewise.
20199 (vaddq_s8): Likewise.
20200 (vaddq_s16): Likewise.
20201 (vaddq_s32): Likewise.
20202 (vaddq_s64): Likewise.
20203 (vaddq_f32): Likewise.
20204 (vaddq_u8): Likewise.
20205 (vaddq_u16): Likewise.
20206 (vaddq_u32): Likewise.
20207 (vaddq_u64): Likewise.
20208 (vmul_s8): Likewise.
20209 (vmul_s16): Likewise.
20210 (vmul_s32): Likewise.
20211 (vmul_f32): Likewise.
20212 (vmul_u8): Likewise.
20213 (vmul_u16): Likewise.
20214 (vmul_u32): Likewise.
20215 (vmul_p8): Likewise.
20216 (vmulq_s8): Likewise.
20217 (vmulq_s16): Likewise.
20218 (vmulq_s32): Likewise.
20219 (vmulq_f32): Likewise.
20220 (vmulq_u8): Likewise.
20221 (vmulq_u16): Likewise.
20222 (vmulq_u32): Likewise.
20223 (vsub_s8): Likewise.
20224 (vsub_s16): Likewise.
20225 (vsub_s32): Likewise.
20226 (vsub_f32): Likewise.
20227 (vsub_u8): Likewise.
20228 (vsub_u16): Likewise.
20229 (vsub_u32): Likewise.
20230 (vsub_s64): Likewise.
20231 (vsub_u64): Likewise.
20232 (vsubq_s8): Likewise.
20233 (vsubq_s16): Likewise.
20234 (vsubq_s32): Likewise.
20235 (vsubq_s64): Likewise.
20236 (vsubq_f32): Likewise.
20237 (vsubq_u8): Likewise.
20238 (vsubq_u16): Likewise.
20239 (vsubq_u32): Likewise.
20240 (vsubq_u64): Likewise.
20241 (vand_s8): Likewise.
20242 (vand_s16): Likewise.
20243 (vand_s32): Likewise.
20244 (vand_u8): Likewise.
20245 (vand_u16): Likewise.
20246 (vand_u32): Likewise.
20247 (vand_s64): Likewise.
20248 (vand_u64): Likewise.
20249 (vandq_s8): Likewise.
20250 (vandq_s16): Likewise.
20251 (vandq_s32): Likewise.
20252 (vandq_s64): Likewise.
20253 (vandq_u8): Likewise.
20254 (vandq_u16): Likewise.
20255 (vandq_u32): Likewise.
20256 (vandq_u64): Likewise.
20257 (vorr_s8): Likewise.
20258 (vorr_s16): Likewise.
20259 (vorr_s32): Likewise.
20260 (vorr_u8): Likewise.
20261 (vorr_u16): Likewise.
20262 (vorr_u32): Likewise.
20263 (vorr_s64): Likewise.
20264 (vorr_u64): Likewise.
20265 (vorrq_s8): Likewise.
20266 (vorrq_s16): Likewise.
20267 (vorrq_s32): Likewise.
20268 (vorrq_s64): Likewise.
20269 (vorrq_u8): Likewise.
20270 (vorrq_u16): Likewise.
20271 (vorrq_u32): Likewise.
20272 (vorrq_u64): Likewise.
20273 (veor_s8): Likewise.
20274 (veor_s16): Likewise.
20275 (veor_s32): Likewise.
20276 (veor_u8): Likewise.
20277 (veor_u16): Likewise.
20278 (veor_u32): Likewise.
20279 (veor_s64): Likewise.
20280 (veor_u64): Likewise.
20281 (veorq_s8): Likewise.
20282 (veorq_s16): Likewise.
20283 (veorq_s32): Likewise.
20284 (veorq_s64): Likewise.
20285 (veorq_u8): Likewise.
20286 (veorq_u16): Likewise.
20287 (veorq_u32): Likewise.
20288 (veorq_u64): Likewise.
20289 (vbic_s8): Likewise.
20290 (vbic_s16): Likewise.
20291 (vbic_s32): Likewise.
20292 (vbic_u8): Likewise.
20293 (vbic_u16): Likewise.
20294 (vbic_u32): Likewise.
20295 (vbic_s64): Likewise.
20296 (vbic_u64): Likewise.
20297 (vbicq_s8): Likewise.
20298 (vbicq_s16): Likewise.
20299 (vbicq_s32): Likewise.
20300 (vbicq_s64): Likewise.
20301 (vbicq_u8): Likewise.
20302 (vbicq_u16): Likewise.
20303 (vbicq_u32): Likewise.
20304 (vbicq_u64): Likewise.
20305 (vorn_s8): Likewise.
20306 (vorn_s16): Likewise.
20307 (vorn_s32): Likewise.
20308 (vorn_u8): Likewise.
20309 (vorn_u16): Likewise.
20310 (vorn_u32): Likewise.
20311 (vorn_s64): Likewise.
20312 (vorn_u64): Likewise.
20313 (vornq_s8): Likewise.
20314 (vornq_s16): Likewise.
20315 (vornq_s32): Likewise.
20316 (vornq_s64): Likewise.
20317 (vornq_u8): Likewise.
20318 (vornq_u16): Likewise.
20319 (vornq_u32): Likewise.
20320 (vornq_u64): Likewise.
20321
20322 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20323
20324 * wide-int.cc (UTItype): Define.
20325 (UDWtype): Define for appropriate W_TYPE_SIZE.
20326
20327 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20328
20329 PR tree-optimization/59100
20330 * tree-ssa-phiopt.c: Include tree-inline.h.
20331 (neutral_element_p, absorbing_element_p): New functions.
20332 (value_replacement): Handle conditional binary operations with a
20333 neutral or absorbing element.
20334
20335 2014-05-08 Richard Biener <rguenther@suse.de>
20336
20337 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20338 folding the expression.
20339 (valueize_expr): Remove.
20340 (visit_reference_op_load): Do not valueize the result of
20341 vn_get_expr_for.
20342 (simplify_binary_expression): Likewise.
20343 (simplify_unary_expression): Likewise.
20344
20345 2014-05-08 Richard Biener <rguenther@suse.de>
20346
20347 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20348 looking at TYPE_ARG_TYPES.
20349
20350 2014-05-08 Richard Biener <rguenther@suse.de>
20351
20352 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20353 pointer propagation special-case.
20354
20355 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20356
20357 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20358 core part of address expressions.
20359
20360 2014-05-08 Alan Modra <amodra@gmail.com>
20361
20362 PR target/60737
20363 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20364 loads and stores when -mno-strict-align at any alignment.
20365 (expand_block_clear): Similarly. Also correct calculation of
20366 instruction count.
20367
20368 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20369
20370 PR middle-end/39246
20371 * tree-complex.c (expand_complex_move): Keep line info when expanding
20372 complex move.
20373 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20374 of complex expression. Use new argument to display correct location
20375 for values coming from phi statement.
20376 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20377 (warn_uninitialized_phi): Pass location of phi argument to
20378 warn_uninit.
20379 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20380 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20381
20382 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20383
20384 * config/rs6000/predicates.md (indexed_address_mem): New.
20385 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
20386 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
20387 fpstore_ux, fpstore_u.
20388 (sign_extend, indexed, update): New.
20389 (cell_micro): Adjust.
20390 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
20391 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
20392 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
20393 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
20394 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
20395 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
20396 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
20397 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
20398 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
20399 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
20400 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
20401 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
20402 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
20403 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
20404 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
20405
20406 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
20407 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
20408 *vsx_extract_<mode>_store): Adjust.
20409 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
20410 is_cracked_insn, insn_must_be_first_in_group,
20411 insn_must_be_last_in_group): Adjust.
20412
20413 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
20414 Adjust.
20415 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
20416 ppc440-fpstore): Adjust.
20417 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
20418 ppc476-fpstore): Adjust.
20419 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
20420 ppc601-fpstore): Adjust.
20421 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
20422 Adjust.
20423 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
20424 Adjust.
20425 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
20426 ppc7450-fpstore): Adjust.
20427 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
20428 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
20429 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
20430 Adjust.
20431 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
20432 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
20433 cell-fpstore, cell-fpstore-update): Adjust.
20434 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
20435 ppce300c3_store, ppce300c3_fpstore): Adjust.
20436 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
20437 e500mc_fpstore): Adjust.
20438 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
20439 e500mc64_store, e500mc64_fpstore): Adjust.
20440 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
20441 e5500_fpstore): Adjust.
20442 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
20443 e6500_fpstore): Adjust.
20444 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
20445 Adjust.
20446 * config/rs6000/power4.md (power4-load, power4-load-ext,
20447 power4-load-ext-update, power4-load-ext-update-indexed,
20448 power4-load-update-indexed, power4-load-update, power4-fpload,
20449 power4-fpload-update, power4-store, power4-store-update,
20450 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
20451 Adjust.
20452 * config/rs6000/power5.md (power5-load, power5-load-ext,
20453 power5-load-ext-update, power5-load-ext-update-indexed,
20454 power5-load-update-indexed, power5-load-update, power5-fpload,
20455 power5-fpload-update, power5-store, power5-store-update,
20456 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
20457 Adjust.
20458 * config/rs6000/power6.md (power6-load, power6-load-ext,
20459 power6-load-update, power6-load-update-indexed,
20460 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
20461 power6-fpload-update, power6-store, power6-store-update,
20462 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
20463 Adjust.
20464 * config/rs6000/power7.md (power7-load, power7-load-ext,
20465 power7-load-update, power7-load-update-indexed,
20466 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
20467 power7-fpload-update, power7-store, power7-store-update,
20468 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
20469 Adjust.
20470 * config/rs6000/power8.md (power8-load, power8-load-update,
20471 power8-load-ext, power8-load-ext-update, power8-fpload,
20472 power8-fpload-update, power8-store, power8-store-update-indexed,
20473 power8-fpstore, power8-fpstore-update): Adjust.
20474 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
20475 Adjust.
20476 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
20477 titan_lsu_store, titan_lsu_fpstore): Adjust.
20478 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
20479
20480 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20481
20482 PR target/60884
20483 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
20484 unrolled byte insns. Emit address increments after move insns.
20485
20486 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20487
20488 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20489 const_gimple, rather than a gimple.
20490 (gimple_call_builtin_p): Likewise, for the three variants.
20491
20492 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20493 (gimple_call_builtin_p): Likewise, for the three variants.
20494
20495 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20496
20497 PR tree-optimization/61095
20498 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20499
20500 2014-05-07 Richard Biener <rguenther@suse.de>
20501
20502 PR tree-optimization/61034
20503 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20504 (maybe_skip_until): Use translate to take into account
20505 lattices when trying to do disambiguations.
20506 (get_continuation_for_phi_1): Likewise.
20507 (get_continuation_for_phi): Adjust for added translate arguments.
20508 (walk_non_aliased_vuses): Likewise.
20509 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20510 (walk_non_aliased_vuses): Likewise.
20511 (call_may_clobber_ref_p_1): Declare.
20512 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20513 calls. Stop early if we are only supposed to disambiguate.
20514 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20515
20516 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20517
20518 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20519 Emit an error when the function has arguments.
20520
20521 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20522
20523 * cfgloop.h (unswitch_loops): Remove.
20524 * doc/passes.texi: Remove references to loop-unswitch.c
20525 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20526
20527 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20528
20529 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20530 check for loads group of length 3.
20531 (vect_permute_load_chain): New permutations for loads group of
20532 length 3.
20533 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20534 of vec_perm_shuffle for the new permutations.
20535
20536 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20537
20538 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20539 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20540 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20541 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20542 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20543 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20544 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20545 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20546
20547 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20548
20549 * loop-unswitch.c: Delete.
20550
20551 2014-05-07 Richard Biener <rguenther@suse.de>
20552
20553 * config.gcc: Always set need_64bit_hwint to yes.
20554
20555 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20556
20557 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20558 of using optimize_size.
20559
20560 2014-05-06 Mike Stump <mikestump@comcast.net>
20561
20562 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20563
20564 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20565
20566 * config/i386/sse.md (*mov<mode>_internal)
20567 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20568 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20569 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20570 (*<code><mode>3, *andnot<mode>3<mask_name>)
20571 (<mask_codefor><code><mode>3<mask_name>): Only consider
20572 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20573
20574 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20575
20576 Revert:
20577 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20578
20579 * lra-constraints.c (valid_address_p): Move earlier in file.
20580 Add a constraint argument to the address_info version.
20581 (satisfies_memory_constraint_p): New function.
20582 (satisfies_address_constraint_p): Likewise.
20583 (process_alt_operands, curr_insn_transform): Use them.
20584 (process_address): Pass the constraint to valid_address_p when
20585 checking address operands.
20586
20587 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
20588
20589 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20590 to their respective blocks. Fix inadvertent use of "node".
20591
20592 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20593
20594 * emit-rtl.c (init_derived_machine_modes): New functionm, split
20595 out from...
20596 (init_emit_once): ...here.
20597 * rtl.h (init_derived_machine_modes): Declare.
20598 * toplev.c (do_compile): Call it even if no_backend.
20599
20600 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
20601 Mike Stump <mikestump@comcast.net>
20602 Richard Sandiford <rdsandiford@googlemail.com>
20603 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20604
20605 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20606 (rtx_equal_for_memref_p): Update comment.
20607 (adjust_offset_for_component_ref): Use wide-int interfaces.
20608 * builtins.c (get_object_alignment_2): Likewise.
20609 (c_readstr): Likewise.
20610 (target_char_cast): Add comment.
20611 (determine_block_size): Use wide-int interfaces.
20612 (expand_builtin_signbit): Likewise.
20613 (fold_builtin_int_roundingfn): Likewise.
20614 (fold_builtin_bitop): Likewise.
20615 (fold_builtin_bswap): Likewise.
20616 (fold_builtin_logarithm): Use signop.
20617 (fold_builtin_pow): Likewise.
20618 (fold_builtin_memory_op): Use wide-int interfaces.
20619 (fold_builtin_object_size): Likewise.
20620 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20621 nb_iterations_estimate.
20622 (record_niter_bound): Use wide-int interfaces.
20623 (get_estimated_loop_iterations_int): Likewise.
20624 (get_estimated_loop_iterations): Likewise.
20625 (get_max_loop_iterations): Likewise.
20626 * cfgloop.h: Include wide-int.h.
20627 (struct nb_iter_bound): Change bound to widest_int.
20628 (struct loop): Change nb_iterations_upper_bound and
20629 nb_iterations_estimate to widest_int.
20630 (record_niter_bound): Switch to use widest_int.
20631 (get_estimated_loop_iterations): Likewise.
20632 (get_max_loop_iterations): Likewise.
20633 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20634 update for wide-int.
20635 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20636 * combine.c (try_combine): Likewise.
20637 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20638 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20639 interfaces.
20640 (aarch64_float_const_representable_p): Likewise.
20641 * config/arc/arc.c: Include wide-int.h.
20642 (arc_can_use_doloop_p): Use wide-int interfaces.
20643 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20644 (vfp3_const_double_index): Likewise.
20645 * config/avr/avr.c (avr_out_round): Likewise.
20646 (avr_fold_builtin): Likewise.
20647 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20648 (bfin_can_use_doloop_p): Likewise.
20649 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20650 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20651 * config/i386/i386.c: Include wide-int.h.
20652 (ix86_data_alignment): Use wide-int interfaces.
20653 (ix86_local_alignment): Likewise.
20654 (ix86_emit_swsqrtsf): Update real_from_integer.
20655 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20656 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20657 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20658 (zero_constant): Likewise.
20659 (input_operand): Likewise.
20660 (splat_input_operand): Likewise.
20661 (non_logical_cint_operand): Change const_double to const_wide_int.
20662 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20663 (easy_altivec_constant): Remove comment.
20664 (paired_expand_vector_init): Use CONSTANT_P.
20665 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20666 (rs6000_emit_move): Update checks.
20667 (rs6000_aggregate_candidate): Use wide-int interfaces.
20668 (rs6000_expand_ternop_builtin): Likewise.
20669 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20670 (rs6000_assemble_integer): Likewise.
20671 (rs6000_hash_constant): Likewise.
20672 (output_toc): Likewise.
20673 (rs6000_rtx_costs): Likewise.
20674 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20675 * config/rs6000/rs6000-c.c: Include wide-int.h.
20676 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20677 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20678 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20679 Handle CONST_WIDE_INT.
20680 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20681 Use tree_fits_uhwi_p.
20682 * config/sparc/sparc.c: Include wide-int.h.
20683 (sparc_fold_builtin): Use wide-int interfaces.
20684 * config/vax/vax.c: Include wide-int.h.
20685 (vax_float_literal): Use real_from_integer.
20686 * coretypes.h (struct hwivec_def): New.
20687 (hwivec): New.
20688 (const_hwivec): New.
20689 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20690 (equiv_constant): Handle CONST_WIDE_INT.
20691 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20692 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20693 * dbxout.c (stabstr_U): Use wide-int interfaces.
20694 (dbxout_type): Update to use cst_fits_shwi_p.
20695 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20696 (TARGET_SUPPORTS_WIDE_INT): Add default.
20697 * dfp.c: Include wide-int.h.
20698 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20699 decimal_real_to_integer.
20700 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20701 decimal_real_to_integer.
20702 * doc/generic.texi (Constant expressions): Update for wide_int.
20703 * doc/rtl.texi (const_double): Likewise.
20704 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20705 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20706 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20707 (REAL_VALUE_FROM_INT): Remove.
20708 (TARGET_SUPPORTS_WIDE_INT): New.
20709 * doc/tm.texi: Regenerate.
20710 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20711 * double-int.h: Include wide-int.h.
20712 (struct wi::int_traits): New.
20713 * dwarf2out.c (get_full_len): New.
20714 (dw_val_equal_p): Add case dw_val_class_wide_int.
20715 (size_of_loc_descr): Likewise.
20716 (output_loc_operands): Likewise.
20717 (insert_double): Remove.
20718 (insert_wide_int): New.
20719 (add_AT_wide): New.
20720 (print_die): Add case dw_val_class_wide_int.
20721 (attr_checksum): Likewise.
20722 (attr_checksum_ordered): Likewise.
20723 (same_dw_val_p): Likewise.
20724 (size_of_die): Likewise.
20725 (value_format): Likewise.
20726 (output_die): Likewise.
20727 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20728 Use wide-int.
20729 (clz_loc_descriptor): Use wide-int interfaces.
20730 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20731 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20732 (round_up_to_align): Use wide-int interfaces.
20733 (field_byte_offset): Likewise.
20734 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20735 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20736 CONST_DOUBLE handling. Use wide-int interfaces.
20737 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20738 (gen_enumeration_type_die): Use add_AT_wide.
20739 (hash_loc_operands): Add case dw_val_class_wide_int.
20740 (compare_loc_operands): Likewise.
20741 * dwarf2out.h: Include wide-int.h.
20742 (wide_int_ptr): New.
20743 (enum dw_val_class): Add dw_val_class_wide_int.
20744 (struct dw_val_struct): Add val_wide.
20745 * emit-rtl.c (const_wide_int_htab): New.
20746 (const_wide_int_htab_hash): New.
20747 (const_wide_int_htab_eq): New.
20748 (lookup_const_wide_int): New.
20749 (const_double_htab_hash): Use wide-int interfaces.
20750 (const_double_htab_eq): Likewise.
20751 (rtx_to_double_int): Conditionally compile for wide-int.
20752 (immed_double_int_const): Rename to immed_wide_int_const and
20753 update for wide-int.
20754 (immed_double_const): Conditionally compile for wide-int.
20755 (init_emit_once): Use wide-int interfaces.
20756 * explow.c (plus_constant): Likewise.
20757 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20758 (lshift_value): Use wide-int interfaces.
20759 (expand_mult): Likewise.
20760 (choose_multiplier): Likewise.
20761 (expand_smod_pow2): Likewise.
20762 (make_tree): Likewise.
20763 * expr.c (convert_modes): Consolidate handling of constants.
20764 Use wide-int interfaces.
20765 (emit_group_load_1): Add note.
20766 (store_expr): Update comment.
20767 (get_inner_reference): Use wide-int interfaces.
20768 (expand_constructor): Update comment.
20769 (expand_expr_real_2): Use wide-int interfaces.
20770 (expand_expr_real_1): Likewise.
20771 (reduce_to_bit_field_precision): Likewise.
20772 (const_vector_from_tree): Likewise.
20773 * final.c: Include wide-int-print.h.
20774 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20775 * fixed-value.c: Include wide-int.h.
20776 (fixed_from_string): Use wide-int interfaces.
20777 (fixed_to_decimal): Likewise.
20778 (fixed_convert_from_real): Likewise.
20779 (real_convert_from_fixed): Likewise.
20780 * fold-const.h (mem_ref_offset): Return an offset_int.
20781 (div_if_zero_remainder): Remove code parameter.
20782 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20783 Use wide-int interfaces.
20784 (may_negate_without_overflow_p): Use wide-int interfaces.
20785 (negate_expr_p): Likewise.
20786 (fold_negate_expr): Likewise.
20787 (int_const_binop_1): Likewise.
20788 (const_binop): Likewise.
20789 (fold_convert_const_int_from_int): Likewise.
20790 (fold_convert_const_int_from_real): Likewise.
20791 (fold_convert_const_int_from_fixed): Likewise.
20792 (fold_convert_const_fixed_from_int): Likewise.
20793 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20794 (sign_bit_p): Use wide-int interfaces.
20795 (make_range_step): Likewise.
20796 (build_range_check): Likewise. Pass an integer of the correct type
20797 instead of using integer_one_node.
20798 (range_predecessor): Pass an integer of the correct type instead
20799 of using integer_one_node.
20800 (range_successor): Likewise.
20801 (merge_ranges): Likewise.
20802 (unextend): Use wide-int interfaces.
20803 (extract_muldiv_1): Likewise.
20804 (fold_div_compare): Likewise.
20805 (fold_single_bit_test): Likewise.
20806 (fold_sign_changed_comparison): Likewise.
20807 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20808 (fold_plusminus_mult_expr): Use wide-int interfaces.
20809 (native_encode_int): Likewise.
20810 (native_interpret_int): Likewise.
20811 (fold_unary_loc): Likewise.
20812 (pointer_may_wrap_p): Likewise.
20813 (size_low_cst): Likewise.
20814 (mask_with_tz): Likewise.
20815 (fold_binary_loc): Likewise.
20816 (fold_ternary_loc): Likewise.
20817 (multiple_of_p): Likewise.
20818 (tree_call_nonnegative_warnv_p): Update calls to
20819 tree_int_cst_min_precision and real_from_integer.
20820 (fold_negate_const): Use wide-int interfaces.
20821 (fold_abs_const): Likewise.
20822 (fold_relational_const): Use tree_int_cst_lt.
20823 (round_up_loc): Use wide-int interfaces.
20824 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20825 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20826 * gengtype.c: Remove include of double-int.h.
20827 (do_typedef): Use wide-int interfaces.
20828 (open_base_files): Add wide-int.h.
20829 (main): Add offset_int and widest_int typedefs.
20830 * gengtype-lex.l: Handle "^".
20831 (CXX_KEYWORD): Add "static".
20832 * gengtype-parse.c (require3): New.
20833 (require_template_declaration): Handle constant template arguments
20834 and nested templates.
20835 * gengtype-state.c: Don't include "double-int.h".
20836 * genpreds.c (write_one_predicate_function): Update comment.
20837 (write_tm_constrs_h): Add check for hval and lval use in
20838 CONST_WIDE_INT.
20839 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20840 (add_to_sequence): Likewise.
20841 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20842 and const_double_operand.
20843 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20844 interfaces.
20845 * gimple-fold.c (get_base_constructor): Likewise.
20846 (fold_array_ctor_reference): Likewise.
20847 (fold_nonarray_ctor_reference): Likewise.
20848 (fold_const_aggregate_ref_1): Likewise.
20849 (gimple_val_nonnegative_real_p): Likewise.
20850 (gimple_fold_indirect_ref): Likewise.
20851 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
20852 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
20853 (struct slsr_cand_d): Change index to be widest_int.
20854 (struct incr_info_d): Change incr to be widest_int.
20855 (alloc_cand_and_find_basis): Use wide-int interfaces.
20856 (slsr_process_phi): Likewise.
20857 (backtrace_base_for_ref): Likewise. Return a widest_int.
20858 (restructure_reference): Take a widest_int instead of a double_int.
20859 (slsr_process_ref): Use wide-int interfaces.
20860 (create_mul_ssa_cand): Likewise.
20861 (create_mul_imm_cand): Likewise.
20862 (create_add_ssa_cand): Likewise.
20863 (create_add_imm_cand): Take a widest_int instead of a double_int.
20864 (slsr_process_add): Use wide-int interfaces.
20865 (slsr_process_cast): Likewise.
20866 (slsr_process_copy): Likewise.
20867 (dump_candidate): Likewise.
20868 (dump_incr_vec): Likewise.
20869 (replace_ref): Likewise.
20870 (cand_increment): Likewise. Return a widest_int.
20871 (cand_abs_increment): Likewise.
20872 (replace_mult_candidate): Take a widest_int instead of a double_int.
20873 (replace_unconditional_candidate): Use wide-int interfaces.
20874 (incr_vec_index): Take a widest_int instead of a double_int.
20875 (create_add_on_incoming_edge): Likewise.
20876 (create_phi_basis): Use wide-int interfaces.
20877 (replace_conditional_candidate): Likewise.
20878 (record_increment): Take a widest_int instead of a double_int.
20879 (record_phi_increments): Use wide-int interfaces.
20880 (phi_incr_cost): Take a widest_int instead of a double_int.
20881 (lowest_cost_path): Likewise.
20882 (total_savings): Likewise.
20883 (analyze_increments): Use wide-int interfaces.
20884 (ncd_with_phi): Take a widest_int instead of a double_int.
20885 (ncd_of_cand_and_phis): Likewise.
20886 (nearest_common_dominator_for_cands): Likewise.
20887 (insert_initializers): Use wide-int interfaces.
20888 (all_phi_incrs_profitable): Likewise.
20889 (replace_one_candidate): Likewise.
20890 (replace_profitable_candidates): Likewise.
20891 * godump.c: Include wide-int-print.h.
20892 (go_output_typedef): Use wide-int interfaces.
20893 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
20894 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
20895 (build_loop_iteration_domains): Likewise.
20896 * hooks.h: Include wide-int.h rather than double-int.h.
20897 (hook_bool_dint_dint_uint_bool_true): Delete.
20898 (hook_bool_wint_wint_uint_bool_true): Declare.
20899 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
20900 (hook_bool_wint_wint_uint_bool_true): New.
20901 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
20902 interfaces.
20903 (ubsan_expand_si_overflow_mul_check): Likewise.
20904 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
20905 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
20906 (get_ancestor_addr_info): Likewise.
20907 (ipa_modify_call_arguments): Likewise.
20908 * loop-doloop.c (doloop_modify): Likewise.
20909 (doloop_optimize): Likewise.
20910 * loop-iv.c (iv_number_of_iterations): Likewise.
20911 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
20912 (unroll_loop_constant_iterations): Likewise.
20913 (decide_unroll_runtime_iterations): Likewise.
20914 (unroll_loop_runtime_iterations): Likewise.
20915 (decide_peel_simple): Likewise.
20916 (decide_unroll_stupid): Likewise.
20917 * lto-streamer-in.c (streamer_read_wi): Add.
20918 (input_cfg): Use wide-int interfaces.
20919 (lto_input_tree_1): Likewise.
20920 * lto-streamer-out.c (streamer_write_wi): Add.
20921 (hash_tree): Use wide-int interfaces.
20922 (output_cfg): Likewise.
20923 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
20924 (GTFILES): Add wide-int.h and signop.h.
20925 (TAGS): Look for .cc files too.
20926 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
20927 * optabs.c (expand_subword_shift): Likewise.
20928 (expand_doubleword_shift): Likewise.
20929 (expand_absneg_bit): Likewise.
20930 (expand_copysign_absneg): Likewise.
20931 (expand_copysign_bit): Likewise.
20932 * postreload.c (reload_cse_simplify_set): Likewise.
20933 * predict.c (predict_iv_comparison): Likewise.
20934 * pretty-print.h: Include wide-int-print.h.
20935 (pp_wide_int) New.
20936 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
20937 * print-tree.c: Include wide-int-print.h.
20938 (print_node_brief): Use wide-int interfaces.
20939 (print_node): Likewise.
20940 * read-rtl.c (validate_const_wide_int): New.
20941 (read_rtx_code): Add CONST_WIDE_INT case.
20942 * real.c: Include wide-int.h.
20943 (real_to_integer2): Delete.
20944 (real_to_integer): New function, returning a wide_int.
20945 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20946 (ten_to_ptwo): Update call to real_from_integer.
20947 (real_digit): Likewise.
20948 * real.h: Include signop.h, wide-int.h and insn-modes.h.
20949 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
20950 (REAL_VALUE_TO_INT): Delete.
20951 (real_to_integer): Declare a wide-int form.
20952 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20953 * recog.c (const_int_operand): Improve comment.
20954 (const_scalar_int_operand): New.
20955 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
20956 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
20957 (split_double): Likewise.
20958 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
20959 (rtx_size): Likewise.
20960 (rtx_alloc_stat_v): New.
20961 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
20962 (cwi_output_hex): New.
20963 (iterative_hash_rtx): Handle CONST_WIDE_INT.
20964 (cwi_check_failed_bounds): New.
20965 * rtl.def (CONST_WIDE_INT): New.
20966 * rtl.h: Include <utility> and wide-int.h.
20967 (struct hwivec_def): New.
20968 (CWI_GET_NUM_ELEM): New.
20969 (CWI_PUT_NUM_ELEM): New.
20970 (struct rtx_def): Add num_elem and hwiv.
20971 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
20972 (CASE_CONST_UNIQUE): Likewise.
20973 (CASE_CONST_ANY): Likewise.
20974 (CONST_SCALAR_INT_P): Likewise.
20975 (CONST_WIDE_INT_P): New.
20976 (CWI_ELT): New.
20977 (HWIVEC_CHECK): New.
20978 (cwi_check_failed_bounds): New.
20979 (CWI_ELT): New.
20980 (HWIVEC_CHECK): New.
20981 (CONST_WIDE_INT_VEC) New.
20982 (CONST_WIDE_INT_NUNITS) New.
20983 (CONST_WIDE_INT_ELT) New.
20984 (rtx_mode_t): New type.
20985 (wi::int_traits <rtx_mode_t>): New.
20986 (wi::shwi): New.
20987 (wi::min_value): New.
20988 (wi::max_value): New.
20989 (rtx_alloc_v) New.
20990 (const_wide_int_alloc): New.
20991 (immed_wide_int_const): New.
20992 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
20993 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
20994 * signop.h: New file.
20995 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
20996 (simplify_const_unary_operation): Use wide-int interfaces.
20997 (simplify_binary_operation_1): Likewise.
20998 (simplify_const_binary_operation): Likewise.
20999 (simplify_const_relational_operation): Likewise.
21000 (simplify_immed_subreg): Likewise.
21001 * stmt.c (expand_case): Likewise.
21002 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21003 signop rather than a bool.
21004 * stor-layout.c (layout_type): Use wide-int interfaces.
21005 (initialize_sizetypes): Update calls to
21006 set_min_and_max_values_for_integral_type.
21007 (set_min_and_max_values_for_integral_type): Take a signop rather
21008 than a bool. Use wide-int interfaces.
21009 (fixup_signed_type): Update accordingly. Remove
21010 HOST_BITS_PER_DOUBLE_INT limit.
21011 (fixup_unsigned_type): Likewise.
21012 * system.h (STATIC_CONSTANT_P): New.
21013 (STATIC_ASSERT): New.
21014 * target.def (can_use_doloop_p): Take widest_ints rather than
21015 double_ints.
21016 * target.h: Include wide-int.h rather than double-int.h.
21017 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21018 than double_ints.
21019 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21020 rather than INT_CST_LT_UNSIGNED.
21021 (can_use_doloop_if_innermost): Take widest_ints rather than
21022 double_ints.
21023 * tree-affine.c: Include wide-int-print.h.
21024 (double_int_ext_for_comb): Delete.
21025 (wide_int_ext_for_comb): New.
21026 (aff_combination_zero): Use wide-int interfaces.
21027 (aff_combination_const): Take a widest_int instead of a double_int.
21028 (aff_combination_elt): Use wide-int interfaces.
21029 (aff_combination_scale): Take a widest_int instead of a double_int.
21030 (aff_combination_add_elt): Likewise.
21031 (aff_combination_add_cst): Likewise.
21032 (aff_combination_add): Use wide-int interfaces.
21033 (aff_combination_convert): Likewise.
21034 (tree_to_aff_combination): Likewise.
21035 (add_elt_to_tree): Take a widest_int instead of a double_int.
21036 (aff_combination_to_tree): Use wide-int interfaces.
21037 (aff_combination_remove_elt): Likewise.
21038 (aff_combination_add_product): Take a widest_int instead of
21039 a double_int.
21040 (aff_combination_mult): Use wide-int interfaces.
21041 (aff_combination_expand): Likewise.
21042 (double_int_constant_multiple_p): Delete.
21043 (wide_int_constant_multiple_p): New.
21044 (aff_combination_constant_multiple_p): Take a widest_int pointer
21045 instead of a double_int pointer.
21046 (print_aff): Use wide-int interfaces.
21047 (get_inner_reference_aff): Take a widest_int pointer
21048 instead of a double_int pointer.
21049 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21050 * tree-affine.h: Include wide-int.h.
21051 (struct aff_comb_elt): Change type of coef to widest_int.
21052 (struct affine_tree_combination): Change type of offset to widest_int.
21053 (double_int_ext_for_comb): Delete.
21054 (wide_int_ext_for_comb): New.
21055 (aff_combination_const): Use widest_int instead of double_int.
21056 (aff_combination_scale): Likewise.
21057 (aff_combination_add_elt): Likewise.
21058 (aff_combination_constant_multiple_p): Likewise.
21059 (get_inner_reference_aff): Likewise.
21060 (aff_comb_cannot_overlap_p): Likewise.
21061 (aff_combination_zero_p): Use wide-int interfaces.
21062 * tree.c: Include tree.h.
21063 (init_ttree): Use make_int_cst.
21064 (tree_code_size): Removed code for INTEGER_CST case.
21065 (tree_size): Add INTEGER_CST case.
21066 (make_node_stat): Update comment.
21067 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21068 (build_int_cst_type): Use wide-int interfaces.
21069 (double_int_to_tree): Likewise.
21070 (double_int_fits_to_tree_p): Delete.
21071 (force_fit_type_double): Delete.
21072 (force_fit_type): New.
21073 (int_cst_hash_hash): Use wide-int interfaces.
21074 (int_cst_hash_eq): Likewise.
21075 (build_int_cst_wide): Delete.
21076 (wide_int_to_tree): New.
21077 (cache_integer_cst): Use wide-int interfaces.
21078 (build_low_bits_mask): Likewise.
21079 (cst_and_fits_in_hwi): Likewise.
21080 (real_value_from_int_cst): Likewise.
21081 (make_int_cst_stat): New.
21082 (integer_zerop): Use wide_int interfaces.
21083 (integer_onep): Likewise.
21084 (integer_all_onesp): Likewise.
21085 (integer_pow2p): Likewise.
21086 (integer_nonzerop): Likewise.
21087 (tree_log2): Likewise.
21088 (tree_floor_log2): Likewise.
21089 (tree_ctz): Likewise.
21090 (int_size_in_bytes): Likewise.
21091 (mem_ref_offset): Return an offset_int rather than a double_int.
21092 (build_type_attribute_qual_variant): Use wide_int interfaces.
21093 (type_hash_eq): Likewise
21094 (tree_int_cst_equal): Likewise.
21095 (tree_int_cst_lt): Delete.
21096 (tree_int_cst_compare): Likewise.
21097 (tree_fits_shwi_p): Use wide_int interfaces.
21098 (tree_fits_uhwi_p): Likewise.
21099 (tree_int_cst_sign_bit): Likewise.
21100 (tree_int_cst_sgn): Likewise.
21101 (tree_int_cst_min_precision): Take a signop rather than a bool.
21102 (simple_cst_equal): Use wide_int interfaces.
21103 (compare_tree_int): Likewise.
21104 (iterative_hash_expr): Likewise.
21105 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21106 INT_CST_LT.
21107 (get_type_static_bounds): Use wide_int interfaces.
21108 (tree_int_cst_elt_check_failed): New.
21109 (build_common_tree_nodes): Reordered to set prec before filling in
21110 value.
21111 (int_cst_value): Check cst_and_fits_in_hwi.
21112 (widest_int_cst_value): Use wide_int interfaces.
21113 (upper_bound_in_type): Likewise.
21114 (lower_bound_in_type): Likewise.
21115 (num_ending_zeros): Likewise.
21116 (drop_tree_overflow): Likewise.
21117 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21118 (gen_conditions_for_pow_cst_base): Likewise.
21119 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21120 (group_case_labels_stmt): Use wide-int interfaces.
21121 (verify_gimple_assign_binary): Likewise.
21122 (print_loop): Likewise.
21123 * tree-chrec.c (tree_fold_binomial): Likewise.
21124 * tree-core.h (struct tree_base): Add int_length.
21125 (struct tree_int_cst): Change rep of value.
21126 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21127 (dr_may_alias_p): Likewise.
21128 (max_stmt_executions_tree): Likewise.
21129 * tree.def (INTEGER_CST): Update comment.
21130 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21131 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21132 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21133 (dequeue_and_dump): Use wide-int interfaces.
21134 * tree.h: Include wide-int.h.
21135 (NULL_TREE): Moved to earlier loc in file.
21136 (TREE_INT_CST_ELT_CHECK): New.
21137 (tree_int_cst_elt_check_failed): New.
21138 (TYPE_SIGN): New.
21139 (TREE_INT_CST): Delete.
21140 (TREE_INT_CST_LOW): Use wide-int interfaces.
21141 (TREE_INT_CST_HIGH): Delete.
21142 (TREE_INT_CST_NUNITS): New.
21143 (TREE_INT_CST_EXT_NUNITS): Likewise.
21144 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21145 (TREE_INT_CST_ELT): Likewise.
21146 (INT_CST_LT): Delete.
21147 (tree_int_cst_elt_check): New (two forms).
21148 (type_code_size): Update comment.
21149 (make_int_cst_stat, make_int_cst): New.
21150 (tree_to_double_int): Delete.
21151 (double_int_fits_to_tree_p): Delete.
21152 (force_fit_type_double): Delete.
21153 (build_int_cstu): Replace with out-of-line function.
21154 (build_int_cst_wide): Delete.
21155 (tree_int_cst_lt): Define inline.
21156 (tree_int_cst_le): New.
21157 (tree_int_cst_compare): Define inline.
21158 (tree_int_cst_min_precision): Take a signop rather than a bool.
21159 (wi::int_traits <const_tree>): New.
21160 (wi::int_traits <tree>): New.
21161 (wi::extended_tree): New.
21162 (wi::int_traits <wi::extended_tree>): New.
21163 (wi::to_widest): New.
21164 (wi::to_offset): New.
21165 (wi::fits_to_tree_p): New.
21166 (wi::min_value): New.
21167 (wi::max_value): New.
21168 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21169 (copy_tree_body_r): Likewise.
21170 * tree-object-size.c (compute_object_offset): Likewise.
21171 (addr_object_size): Likewise.
21172 * tree-predcom.c: Include wide-int-print.h.
21173 (struct dref_d): Change type of offset to widest_int.
21174 (dump_dref): Call wide-int printer.
21175 (aff_combination_dr_offset): Use wide-int interfaces.
21176 (determine_offset): Take a widest_int pointer rather than a
21177 double_int pointer.
21178 (split_data_refs_to_components): Use wide-int interfaces.
21179 (suitable_component_p): Likewise.
21180 (order_drefs): Likewise.
21181 (add_ref_to_chain): Likewise.
21182 (valid_initializer_p): Likewise.
21183 (determine_roots_comp): Likewise.
21184 * tree-pretty-print.c: Include wide-int-print.h.
21185 (dump_generic_node): Use wide-int interfaces.
21186 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21187 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21188 (move_fixed_address_to_symbol): Likewise.
21189 (move_hint_to_base): Likewise.
21190 (move_pointer_to_base): Likewise.
21191 (move_variant_to_index): Likewise.
21192 (most_expensive_mult_to_index): Likewise.
21193 (addr_to_parts): Likewise.
21194 (copy_ref_info): Likewise.
21195 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21196 (indirect_refs_may_alias_p): Likewise.
21197 (stmt_kills_ref_p_1): Likewise.
21198 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21199 * tree-ssa-ccp.c: Update comment at top of file. Include
21200 wide-int-print.h.
21201 (struct prop_value_d): Change type of mask to widest_int.
21202 (extend_mask): New function.
21203 (dump_lattice_value): Use wide-int interfaces.
21204 (get_default_value): Likewise.
21205 (set_constant_value): Likewise.
21206 (set_value_varying): Likewise.
21207 (valid_lattice_transition): Likewise.
21208 (set_lattice_value): Likewise.
21209 (value_to_double_int): Delete.
21210 (value_to_wide_int): New.
21211 (get_value_from_alignment): Use wide-int interfaces.
21212 (get_value_for_expr): Likewise.
21213 (do_dbg_cnt): Likewise.
21214 (ccp_finalize): Likewise.
21215 (ccp_lattice_meet): Likewise.
21216 (bit_value_unop_1): Use widest_ints rather than double_ints.
21217 (bit_value_binop_1): Likewise.
21218 (bit_value_unop): Use wide-int interfaces.
21219 (bit_value_binop): Likewise.
21220 (bit_value_assume_aligned): Likewise.
21221 (evaluate_stmt): Likewise.
21222 (ccp_fold_stmt): Likewise.
21223 (visit_cond_stmt): Likewise.
21224 (ccp_visit_stmt): Likewise.
21225 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21226 (constant_pointer_difference): Likewise.
21227 (associate_pointerplus): Likewise.
21228 (combine_conversions): Likewise.
21229 * tree-ssa-loop.h: Include wide-int.h.
21230 (struct tree_niter_desc): Change type of max to widest_int.
21231 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21232 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21233 (remove_redundant_iv_tests): Likewise.
21234 (canonicalize_loop_induction_variables): Likewise.
21235 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21236 (constant_multiple_of): Take a widest_int pointer instead of
21237 a double_int pointer.
21238 (get_computation_aff): Use wide-int interfaces.
21239 (ptr_difference_cost): Likewise.
21240 (difference_cost): Likewise.
21241 (get_loop_invariant_expr_id): Likewise.
21242 (get_computation_cost_at): Likewise.
21243 (iv_elimination_compare_lt): Likewise.
21244 (may_eliminate_iv): Likewise.
21245 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21246 instead of double_int.
21247 (max_loop_iterations): Likewise.
21248 (max_stmt_executions): Likewise.
21249 (estimated_stmt_executions): Likewise.
21250 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21251 (split_to_var_and_offset): Use wide-int interfaces.
21252 (determine_value_range): Likewise.
21253 (bound_difference_of_offsetted_base): Likewise.
21254 (bounds_add): Take a widest_int instead of a double_int.
21255 (number_of_iterations_ne_max): Use wide-int interfaces.
21256 (number_of_iterations_ne): Likewise.
21257 (number_of_iterations_lt_to_ne): Likewise.
21258 (assert_loop_rolls_lt): Likewise.
21259 (number_of_iterations_lt): Likewise.
21260 (number_of_iterations_le): Likewise.
21261 (number_of_iterations_cond): Likewise.
21262 (number_of_iterations_exit): Likewise.
21263 (finite_loop_p): Likewise.
21264 (derive_constant_upper_bound_assign): Likewise.
21265 (derive_constant_upper_bound): Return a widest_int.
21266 (derive_constant_upper_bound_ops): Likewise.
21267 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21268 (record_estimate): Take a widest_int rather than a double_int.
21269 (record_nonwrapping_iv): Use wide-int interfaces.
21270 (double_int_cmp): Delete.
21271 (wide_int_cmp): New.
21272 (bound_index): Take a widest_int rather than a double_int.
21273 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21274 (maybe_lower_iteration_bound): Likewise.
21275 (estimate_numbers_of_iterations_loop): Likewise.
21276 (estimated_loop_iterations): Take a widest_int pointer than than
21277 a double_int pointer.
21278 (estimated_loop_iterations_int): Use wide-int interfaces.
21279 (max_loop_iterations): Take a widest_int pointer than than
21280 a double_int pointer.
21281 (max_loop_iterations_int): Use wide-int interfaces.
21282 (max_stmt_executions): Take a widest_int pointer than than
21283 a double_int pointer.
21284 (estimated_stmt_executions): Likewise.
21285 (n_of_executions_at_most): Use wide-int interfaces.
21286 (scev_probably_wraps_p): Likewise.
21287 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21288 to real_to_integer.
21289 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21290 interfaces.
21291 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21292 double_ints. Adjust for trailing_wide_ints <3> representation.
21293 (set_nonzero_bits): Likewise.
21294 (get_range_info): Return wide_ints rather than double_ints.
21295 Adjust for trailing_wide_ints <3> representation.
21296 (get_nonzero_bits): Likewise.
21297 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21298 representation.
21299 * tree-ssanames.h (struct range_info_def): Replace min, max and
21300 nonzero_bits with a trailing_wide_ints <3>.
21301 (set_range_info): Use wide_int_refs rather than double_ints.
21302 (set_nonzero_bits): Likewise.
21303 (get_range_info): Return wide_ints rather than double_ints.
21304 (get_nonzero_bits): Likewise.
21305 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21306 * tree-ssa-pre.c (phi_translate_1): Likewise.
21307 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21308 (acceptable_pow_call): Likewise.
21309 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21310 interfaces.
21311 (vn_reference_fold_indirect): Likewise.
21312 (vn_reference_maybe_forwprop_address): Likewise.
21313 (valueize_refs_1): Likewise.
21314 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21315 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21316 tree_int_cst_lt and tree_int_cst_le.
21317 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21318 interfaces.
21319 (streamer_alloc_tree): Likewise.
21320 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21321 (streamer_write_tree_header): Likewise.
21322 (streamer_write_integer_cst): Likewise.
21323 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21324 (build_constructors): Likewise.
21325 (array_value_type): Likewise.
21326 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21327 (vect_check_gather): Likewise.
21328 * tree-vect-generic.c (build_replicated_const): Likewise.
21329 (expand_vector_divmod): Likewise.
21330 * tree-vect-loop.c (vect_transform_loop): Likewise.
21331 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21332 (vect_do_peeling_for_alignment): Likewise.
21333 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21334 * tree-vrp.c: Include wide-int.h.
21335 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21336 (extract_range_from_assert): Use wide-int interfaces.
21337 (vrp_int_const_binop): Likewise.
21338 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21339 double_int pointers.
21340 (ranges_from_anti_range): Use wide-int interfaces.
21341 (quad_int_cmp): Delete.
21342 (quad_int_pair_sort): Likewise.
21343 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21344 (extract_range_from_unary_expr_1): Likewise.
21345 (adjust_range_with_scev): Likewise.
21346 (masked_increment): Take and return wide_ints rather than double_ints.
21347 (register_edge_assert_for_2): Use wide-int interfaces.
21348 (check_array_ref): Likewise.
21349 (search_for_addr_array): Likewise.
21350 (maybe_set_nonzero_bits): Likewise.
21351 (union_ranges): Pass an integer of the correct type instead of
21352 using integer_one_node.
21353 (intersect_ranges): Likewise.
21354 (simplify_truth_ops_using_ranges): Likewise.
21355 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21356 (range_fits_type_p): Likewise.
21357 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21358 a bool.
21359 (simplify_conversion_using_ranges): Use wide-int interfaces.
21360 (simplify_float_conversion_using_ranges): Likewise.
21361 (vrp_finalize): Likewise.
21362 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21363 (gimple_stringops_transform): Likewise.
21364 * varasm.c (decode_addr_const): Likewise.
21365 (const_hash_1): Likewise.
21366 (const_rtx_hash_1): Likewise
21367 (output_constant): Likewise.
21368 (array_size_for_constructor): Likewise.
21369 (output_constructor_regular_field): Likewise.
21370 (output_constructor_bitfield): Likewise.
21371 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21372 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21373 GENERATOR_FILEs.
21374 * gencheck.c: Define BITS_PER_UNIT.
21375 * wide-int.cc: New.
21376 * wide-int.h: New.
21377 * wide-int-print.cc: New.
21378 * wide-int-print.h: New.
21379
21380 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21381
21382 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21383
21384 2014-05-06 Richard Biener <rguenther@suse.de>
21385
21386 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
21387 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
21388 (TODO_verify_all): Adjust.
21389 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
21390 TODO_verify_stmts and TODO_verify_rtl_sharing.
21391 * bb-reorder.c: Likewise.
21392 * cfgexpand.c: Likewise.
21393 * cprop.c: Likewise.
21394 * cse.c: Likewise.
21395 * function.c: Likewise.
21396 * fwprop.c: Likewise.
21397 * gcse.c: Likewise.
21398 * gimple-ssa-isolate-paths.c: Likewise.
21399 * gimple-ssa-strength-reduction.c: Likewise.
21400 * ipa-split.c: Likewise.
21401 * loop-init.c: Likewise.
21402 * loop-unroll.c: Likewise.
21403 * lower-subreg.c: Likewise.
21404 * modulo-sched.c: Likewise.
21405 * postreload-gcse.c: Likewise.
21406 * predict.c: Likewise.
21407 * recog.c: Likewise.
21408 * sched-rgn.c: Likewise.
21409 * store-motion.c: Likewise.
21410 * tracer.c: Likewise.
21411 * trans-mem.c: Likewise.
21412 * tree-call-cdce.c: Likewise.
21413 * tree-cfg.c: Likewise.
21414 * tree-cfgcleanup.c: Likewise.
21415 * tree-complex.c: Likewise.
21416 * tree-eh.c: Likewise.
21417 * tree-emutls.c: Likewise.
21418 * tree-if-conv.c: Likewise.
21419 * tree-into-ssa.c: Likewise.
21420 * tree-loop-distribution.c: Likewise.
21421 * tree-object-size.c: Likewise.
21422 * tree-parloops.c: Likewise.
21423 * tree-pass.h: Likewise.
21424 * tree-sra.c: Likewise.
21425 * tree-ssa-ccp.c: Likewise.
21426 * tree-ssa-copy.c: Likewise.
21427 * tree-ssa-copyrename.c: Likewise.
21428 * tree-ssa-dce.c: Likewise.
21429 * tree-ssa-dom.c: Likewise.
21430 * tree-ssa-dse.c: Likewise.
21431 * tree-ssa-forwprop.c: Likewise.
21432 * tree-ssa-ifcombine.c: Likewise.
21433 * tree-ssa-loop-ch.c: Likewise.
21434 * tree-ssa-loop-ivcanon.c: Likewise.
21435 * tree-ssa-loop.c: Likewise.
21436 * tree-ssa-math-opts.c: Likewise.
21437 * tree-ssa-phiopt.c: Likewise.
21438 * tree-ssa-phiprop.c: Likewise.
21439 * tree-ssa-pre.c: Likewise.
21440 * tree-ssa-reassoc.c: Likewise.
21441 * tree-ssa-sink.c: Likewise.
21442 * tree-ssa-strlen.c: Likewise.
21443 * tree-ssa-tail-merge.c: Likewise.
21444 * tree-ssa-uncprop.c: Likewise.
21445 * tree-switch-conversion.c: Likewise.
21446 * tree-tailcall.c: Likewise.
21447 * tree-vect-generic.c: Likewise.
21448 * tree-vectorizer.c: Likewise.
21449 * tree-vrp.c: Likewise.
21450 * tsan.c: Likewise.
21451 * var-tracking.c: Likewise.
21452 * bt-load.c: Likewise.
21453 * cfgcleanup.c: Likewise.
21454 * combine-stack-adj.c: Likewise.
21455 * combine.c: Likewise.
21456 * compare-elim.c: Likewise.
21457 * config/epiphany/resolve-sw-modes.c: Likewise.
21458 * config/i386/i386.c: Likewise.
21459 * config/mips/mips.c: Likewise.
21460 * config/s390/s390.c: Likewise.
21461 * config/sh/sh_treg_combine.cc: Likewise.
21462 * config/sparc/sparc.c: Likewise.
21463 * dce.c: Likewise.
21464 * dse.c: Likewise.
21465 * final.c: Likewise.
21466 * ifcvt.c: Likewise.
21467 * mode-switching.c: Likewise.
21468 * passes.c: Likewise.
21469 * postreload.c: Likewise.
21470 * ree.c: Likewise.
21471 * reg-stack.c: Likewise.
21472 * regcprop.c: Likewise.
21473 * regrename.c: Likewise.
21474 * web.c: Likewise.
21475
21476 2014-05-06 Richard Biener <rguenther@suse.de>
21477
21478 PR middle-end/61070
21479 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
21480 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
21481
21482 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
21483
21484 PR ipa/60965
21485 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21486
21487 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21488 Tom de Vries <tom@codesourcery.com>
21489
21490 * target.def (call_fusage_contains_non_callee_clobbers): New
21491 DEFHOOKPOD.
21492 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21493 Hooks to @menu.
21494 (@node Miscellaneous Register Hooks): New node.
21495 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21496 * doc/tm.texi: Regenerate.
21497
21498 2014-05-05 Marek Polacek <polacek@redhat.com>
21499
21500 PR driver/61065
21501 * opts.c (common_handle_option): Call error_at instead of warning_at.
21502
21503 2014-05-05 Richard Biener <rguenther@suse.de>
21504
21505 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21506 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21507 under the TODO_verify_il umbrella.
21508
21509 2014-05-05 Richard Biener <rguenther@suse.de>
21510
21511 * passes.c (execute_function_todo): Move TODO_verify_flow under
21512 the TODO_verify_ul umbrella.
21513
21514 2014-05-05 Richard Biener <rguenther@suse.de>
21515
21516 PR middle-end/61010
21517 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21518 X & CST away from a CST that is the mask of a mode.
21519
21520 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21521
21522 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21523 int argument to enum machine_mode.
21524 (picochip_class_max_nregs): Ditto.
21525 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21526 (picochip_class_max_nregs): Ditto.
21527
21528 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21529
21530 * target.def: Add new target hook.
21531 * doc/tm.texi: Regenerate.
21532 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21533 * targhooks.c (default_keep_leaf_when_profiled): New function.
21534
21535 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21536 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21537
21538 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21539
21540 PR tree-optimization/60363
21541 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21542 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21543 (update_destination_phis): New parameter.
21544 (create_edge_and_update_destination_phis): Ditto.
21545 (ssa_fix_duplicate_block_edges): Pass new arguments.
21546 (thread_single_edge): Ditto.
21547
21548 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21549
21550 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21551 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21552 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21553 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21554 Use RS6000_BTM_HARD_FLOAT.
21555 (BU_MISC_2): Likewise.
21556 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21557 RS6000_BTM_HARD_FLOAT.
21558 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21559 is explicitly used.
21560 (rs6000_invalid_builtin): Add hard floating builtin support.
21561 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21562 hard float builtins.
21563 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21564
21565 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21566
21567 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21568 Add missing function* argument.
21569
21570 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21571
21572 * lra-constraints.c (valid_address_p): Move earlier in file.
21573 Add a constraint argument to the address_info version.
21574 (satisfies_memory_constraint_p): New function.
21575 (satisfies_address_constraint_p): Likewise.
21576 (process_alt_operands, curr_insn_transform): Use them.
21577 (process_address): Pass the constraint to valid_address_p when
21578 checking address operands.
21579
21580 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21581
21582 * config/mips/mips.c (mips_isa_rev): New variable.
21583 (mips_set_architecture): Set it.
21584 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21585 from mips_isa_rev.
21586 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21587 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21588 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21589 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21590 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21591 conditions in terms of mips_isa_rev.
21592 (mips_isa_rev): Declare.
21593
21594 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21595
21596 * config/sh/sh-mem.cc: Use tabs instead of spaces.
21597 (prob_unlikely, prob_likely): Make variables const.
21598
21599 2014-05-03 Denis Chertykov <chertykov@gmail.com>
21600
21601 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21602
21603 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21604
21605 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21606
21607 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21608
21609 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21610 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21611 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21612 functions.
21613 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21614 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21615 sh_pass_in_reg_p.
21616 Replace usage of ROUND_REG with sh_round_reg.
21617 Use CEIL instead of ROUND_ADVANCE.
21618
21619 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21620
21621 PR target/61026
21622 * config/sh/sh.c: Include stdlib headers before everything else.
21623
21624 2014-05-02 Jakub Jelinek <jakub@redhat.com>
21625
21626 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21627 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21628 (gimplify_adjust_omp_clauses): Simd region is never
21629 directly nested in combined parallel. Instead, for linear
21630 with copyin/copyout, if in combined for simd loop, make decl
21631 firstprivate/lastprivate on OMP_FOR.
21632 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21633 expand_omp_for_static_chunk): When setting endvar, also set
21634 fd->loop.v to the same value.
21635
21636 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21637
21638 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21639
21640 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21641
21642 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21643 expression.
21644
21645 2014-05-02 Marek Polacek <polacek@redhat.com>
21646
21647 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21648
21649 2014-05-02 Kito Cheng <kito@0xlab.org>
21650
21651 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21652 to a C expression marco.
21653 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21654 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21655 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21656 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21657 HONOR_REG_ALLOC_ORDER.
21658 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21659
21660 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21661
21662 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21663
21664 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21665
21666 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21667
21668 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21669
21670 * tree-if-conv.c (is_cond_scalar_reduction): New function.
21671 (convert_scalar_cond_reduction): Likewise.
21672 (predicate_scalar_phi): Add recognition and transformation
21673 of simple conditioanl reduction to be vectorizable.
21674
21675 2014-05-01 Marek Polacek <polacek@redhat.com>
21676
21677 PR c/43245
21678 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21679
21680 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21681
21682 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21683 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21684 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21685 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21686 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21687 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21688 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21689 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21690
21691 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21692
21693 * config/arc/arc.opt (mlra): Move comment above option name
21694 to avoid mis-parsing as language options.
21695
21696 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21697
21698 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21699 * config/sol2.h: ... here.
21700 * config/sol2-10.h: Remove.
21701
21702 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21703 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21704 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21705 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21706 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21707 * config/sol2.h: ... here.
21708 (SECTION_NAME_FORMAT): Don't redefine.
21709 (STARTFILE_ARCH32_SPEC): Rename to ...
21710 (STARTFILE_ARCH_SPEC): ... this.
21711 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21712 * config/sparc/sol2.h: ... here.
21713 (SECTION_NAME_FORMAT): Don't undef.
21714 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21715 (SUBTARGET_EXTRA_SPECS): Remove.
21716 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21717
21718 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21719 (MD_STARTFILE_PREFIX): Remove.
21720 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21721 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21722 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21723 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21724 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21725 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21726 * config/i386/sol2.h: ... here.
21727 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21728 * config/i386/sol2-bi.h: Remove.
21729 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21730 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21731
21732 * config/i386/t-sol2-64: Rename to ...
21733 * config/i386/t-sol2: ... this.
21734 * config/sparc/t-sol2-64: Rename to ...
21735 * config/sparc/t-sol2: ... this.
21736
21737 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21738 sol2_tm_file_head, sol2_tm_file_tail.
21739 Include ${cpu_type}/sol2.h before sol2.h.
21740 Remove sol2-10.h.
21741 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21742 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21743 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21744 Reflect i386/t-sol2-64 renaming.
21745 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21746 Reflect sparc/t-sol2-64 renaming.
21747
21748 2014-04-30 Richard Biener <rguenther@suse.de>
21749
21750 * passes.c (execute_function_todo): Move TODO_verify_stmts
21751 and TODO_verify_ssa under the TODO_verify_il umbrella.
21752 * tree-ssa.h (verify_ssa): Adjust prototype.
21753 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21754 we should verify SSA operands.
21755 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21756 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21757 whether we should verify whether not throwing stmts have EH info.
21758 * graphite-scop-detection.c (create_sese_edges): Adjust.
21759 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21760 * tree-eh.c (lower_try_finally_switch): Do not add the
21761 default case label twice.
21762
21763 2014-04-30 Marek Polacek <polacek@redhat.com>
21764
21765 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21766 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21767 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21768 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21769
21770 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21771
21772 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21773 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21774 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21775 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21776 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21777 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21778 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21779 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21780
21781 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21782
21783 * tree-cfg.c (dump_function_to_file): Dump the return type of
21784 functions, in a line to itself before the function body, mimicking
21785 the layout of a C function.
21786
21787 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21788
21789 PR tree-optimization/60971
21790 * tree-tailcall.c (process_assignment): Reject conversions which
21791 reduce precision.
21792
21793 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21794
21795 * calls.c (initialize_argument_information): Always treat
21796 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21797 (expand_call): Likewise.
21798 (emit_library_call_calue_1): Likewise.
21799 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21800 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21801 code accordingly.
21802
21803 2014-04-29 Nick Clifton <nickc@redhat.com>
21804
21805 * config/msp430/msp430.md (umulsidi): Fix typo.
21806 (mulhisi3): Enable even inside interrupt handlers.
21807 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21808 bigger return address pushed in large mode.
21809
21810 2014-04-29 Nick Clifton <nickc@redhat.com>
21811
21812 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21813 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21814 available modes.
21815 * config/m32r/m32r.c (init_reg_tables): Likewise.
21816 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21817 enum to hold the modes.
21818
21819 2014-04-29 Richard Biener <rguenther@suse.de>
21820
21821 * dominance.c (free_dominance_info): Add overload with
21822 function parameter.
21823 (dom_info_state): Likewise.
21824 (dom_info_available_p): Likewise.
21825 * basic-block.h (free_dominance_info, dom_info_state,
21826 dom_info_available_p): Declare overloads.
21827 * passes.c (execute_function_todo): Verify that verifiers
21828 don't change dominator info state. Drop dominator info
21829 for IPA pass invocations.
21830 * cgraph.c (release_function_body): Restore asserts that
21831 dominator information is released.
21832
21833 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21834
21835 * doc/invoke.texi: Fix typo.
21836 * tree-vrp.c: Fix typos.
21837 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21838
21839 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21840
21841 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21842
21843 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21844
21845 * config/aarch64/aarch64-builtins.c
21846 (aarch64_types_storestruct_lane_qualifiers): New.
21847 (TYPES_STORESTRUCT_LANE): Likewise.
21848 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
21849 (st3_lane): Likewise.
21850 (st4_lane): Likewise.
21851 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
21852 (vec_store_lanesci_lane<mode>): Likewise.
21853 (vec_store_lanesxi_lane<mode>): Likewise.
21854 (aarch64_st2_lane<VQ:mode>): Likewise.
21855 (aarch64_st3_lane<VQ:mode>): Likewise.
21856 (aarch64_st4_lane<VQ:mode>): Likewise.
21857 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
21858 * config/aarch64/arm_neon.h
21859 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
21860 use new macro arguments.
21861 (__ST3_LANE_FUNC): Likewise.
21862 (__ST4_LANE_FUNC): Likewise.
21863 * config/aarch64/iterators.md (V_TWO_ELEM): New.
21864 (V_THREE_ELEM): Likewise.
21865 (V_FOUR_ELEM): Likewise.
21866
21867 2014-04-28 David Malcolm <dmalcolm@redhat.com>
21868
21869 * doc/gimple.texi: Replace the description of the now-defunct
21870 union gimple_statement_d with a diagram showing the
21871 gimple_statement_base class hierarchy and its relationships to
21872 the GSS_ and GIMPLE_ enums.
21873
21874 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21875
21876 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
21877 * config/aarch64/aarch64.c
21878 (aarch64_cannot_change_mode_class): Weaken conditions.
21879 (aarch64_modes_tieable_p): New.
21880 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
21881
21882 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
21883
21884 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21885 (loadsync_<mode>): Change mode.
21886 (load_quadpti, store_quadpti): New.
21887 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21888 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21889
21890 2014-04-28 Martin Jambor <mjambor@suse.cz>
21891
21892 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
21893 same alias type as the original statement.
21894 (subreplacement_assignment_data): New type.
21895 (handle_unscalarized_data_in_subtree): New type of parameter,
21896 generate new memory accesses with same alias type as the original
21897 statement.
21898 (load_assign_lhs_subreplacements): Likewise.
21899 (sra_modify_constructor_assign): Generate new memory accesses with
21900 same alias type as the original statement.
21901
21902 2014-04-28 Richard Biener <rguenther@suse.de>
21903
21904 * tree-pass.h (TODO_verify_il): Define.
21905 (TODO_verify_all): Complete properly.
21906 * passes.c (execute_function_todo): Move existing loop-closed
21907 SSA verification under TODO_verify_il.
21908 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
21909 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
21910 Fix tree sharing issue.
21911
21912 2014-04-28 Richard Biener <rguenther@suse.de>
21913
21914 PR middle-end/60092
21915 * builtins.def (DEF_C11_BUILTIN): Add.
21916 (BUILT_IN_ALIGNED_ALLOC): Likewise.
21917 * coretypes.h (enum function_class): Add function_c11_misc.
21918 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21919 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
21920 (call_may_clobber_ref_p_1): Likewise.
21921 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21922 (mark_all_reaching_defs_necessary_1): Likewise.
21923 (propagate_necessity): Likewise.
21924 (eliminate_unnecessary_stmts): Likewise.
21925 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
21926
21927 2014-04-28 Richard Biener <rguenther@suse.de>
21928
21929 * tree-vrp.c (vrp_var_may_overflow): Remove.
21930 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
21931 with overflow immediately bump to one before that value and
21932 let iteration figure out overflow status.
21933
21934 2014-04-28 Richard Biener <rguenther@suse.de>
21935
21936 * configure.ac: Do valgrind header checks unconditionally.
21937 Add --enable-valgrind-annotations.
21938 * system.h: Guard valgrind header inclusion with
21939 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
21940 * alloc-pool.c (pool_alloc, pool_free): Use
21941 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
21942 to guard possibly dead code.
21943 * config.in: Regenerated.
21944 * configure: Likewise.
21945
21946 2014-04-28 Jeff Law <law@redhat.com>
21947
21948 PR tree-optimization/60902
21949 * tree-ssa-threadedge.c
21950 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
21951 over real defs when invalidating outputs from statements that do not
21952 produce useful outputs for threading.
21953
21954 2014-04-28 Richard Biener <rguenther@suse.de>
21955
21956 PR tree-optimization/60979
21957 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
21958 SCOPs that end in a block with a successor with abnormal
21959 predecessors.
21960
21961 2014-04-28 Richard Biener <rguenther@suse.de>
21962
21963 * tree-pass.h (execute_pass_list): Adjust prototype.
21964 * passes.c (pass_manager::execute_early_local_passes): Adjust.
21965 (do_per_function): Change callback signature, push all actual
21966 work to the callbals.
21967 (do_per_function_toporder): Likewise.
21968 (execute_function_dump): Adjust.
21969 (execute_function_todo): Likewise.
21970 (clear_last_verified): Likewise.
21971 (verify_curr_properties): Likewise.
21972 (update_properties_after_pass): Likewise.
21973 (execute_pass_list_1): Split out from ...
21974 (execute_pass_list): ... here. Adjust.
21975 (execute_ipa_pass_list): Likewise.
21976 * cgraphunit.c (cgraph_add_new_function): Adjust.
21977 (analyze_function): Likewise.
21978 (expand_function): Likewise.
21979 * cgraph.c (release_function_body): Free dominance info
21980 here instead of asserting it was magically freed elsewhere.
21981
21982 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
21983
21984 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
21985 * configure: Regenerate.
21986 * config/sparc/sparc.opt (muser-mode): New option.
21987 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
21988 for LEON3.
21989 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
21990 * doc/invoke.texi (SPARC options): Document -muser-mode.
21991
21992 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
21993
21994 * cselib.c (find_slot_memmode): Delete.
21995 (cselib_hasher): Change compare_type to a struct.
21996 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
21997 constants.
21998 (preserve_constants_and_equivs): Adjust for new compare_type.
21999 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22000 (wrap_constant): Delete.
22001 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22002
22003 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22004
22005 * doc/install.texi (Building with profile feedback): Remove
22006 outdated sentence.
22007
22008 2014-04-26 Tom de Vries <tom@codesourcery.com>
22009
22010 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22011 array accesses.
22012
22013 2014-04-25 Cary Coutant <ccoutant@google.com>
22014
22015 PR debug/60929
22016 * dwarf2out.c (should_move_die_to_comdat): A type definition
22017 can contain a subprogram definition, but don't move it to a
22018 comdat unit.
22019 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22020 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22021 from original DIE.
22022 (clone_tree_hash): Rename to...
22023 (clone_tree_partial): ...this; change callers. Copy
22024 DW_TAG_subprogram DIEs as declarations.
22025 (copy_decls_walk): Don't copy children of a declaration into a
22026 type unit.
22027
22028 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22029
22030 PR target/60969
22031 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22032 alternative 12.
22033
22034 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22035
22036 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22037 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22038 reg for long_call.
22039 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22040 restriction.
22041
22042 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22043
22044 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22045
22046 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22047
22048 PR tree-optimization/60930
22049 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22050 creating a multiply candidate by folding two constant
22051 multiplicands when the result overflows.
22052
22053 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22054
22055 PR tree-optimization/60960
22056 * tree-vect-generic.c (expand_vector_operation): Only call
22057 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22058
22059 2014-04-25 Tom de Vries <tom@codesourcery.com>
22060
22061 * expr.c (clobber_reg_mode): New function.
22062 * expr.h (clobber_reg): New function.
22063
22064 2014-04-25 Tom de Vries <tom@codesourcery.com>
22065
22066 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22067 clobbers.
22068
22069 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22070 Tom de Vries <tom@codesourcery.com>
22071
22072 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22073 handle.
22074 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22075 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22076 new argument to find_all_hard_reg_sets call.
22077
22078 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22079
22080 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22081 Use HOST_WIDE_INT_C for mask literal.
22082 (aarch_rev16_shleft_mask_imm_p): Likewise.
22083
22084 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22085
22086 PR target/60941
22087 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22088
22089 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22090
22091 PR preprocessor/56540
22092 * config/i386/i386-c.c (ix86_target_macros): Define
22093 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22094
22095 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22096
22097 * configure.ac (tga_func): Remove.
22098 (LIB_TLS_SPEC): Remove.
22099 * configure: Regenerate.
22100 * config.in: Regenerate.
22101 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22102
22103 2014-04-25 Richard Biener <rguenther@suse.de>
22104
22105 PR ipa/60912
22106 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22107 call stmt use/clobber sets during stmt walk instead of
22108 walking the possibly incomplete set of caller edges.
22109
22110 2014-04-25 Richard Biener <rguenther@suse.de>
22111
22112 PR ipa/60911
22113 * passes.c (apply_ipa_transforms): Inline into only caller ...
22114 (execute_one_pass): ... here. Properly bring in function
22115 bodies for nodes we want to apply IPA transforms to.
22116
22117 2014-04-24 Cong Hou <congh@google.com>
22118
22119 PR tree-optimization/60896
22120 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22121 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22122 (vect_mark_pattern_stmts): Set the def type of all statements in
22123 PATTERN_DEF_SEQ as vect_internal_def.
22124
22125 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22126
22127 * doc/extend.texi (PowerPC Built-in Functions): Document new
22128 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22129 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22130
22131 * config/rs6000/predicates.md (const_0_to_3_operand): New
22132 predicate to match 0..3 integer constants.
22133
22134 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22135 to support adding miscellaneous builtin functions.
22136 (BU_DFP_MISC_2): Likewise.
22137 (BU_P7_MISC_1): Likewise.
22138 (BU_P7_MISC_2): Likewise.
22139 (BU_P8V_MISC_3): Likewise.
22140 (BU_MISC_1): Likewise.
22141 (BU_MISC_2): Likewise.
22142 (DIVWE): Add extended divide builtin functions.
22143 (DIVWEO): Likewise.
22144 (DIVWEU): Likewise.
22145 (DIVWEUO): Likewise.
22146 (DIVDE): Likewise.
22147 (DIVDEO): Likewise.
22148 (DIVDEU): Likewise.
22149 (DIVDEUO): Likewise.
22150 (DXEX): Add decimal floating-point builtin functions.
22151 (DXEXQ): Likewise.
22152 (DDEDPD): Likewise.
22153 (DDEDPDQ): Likewise.
22154 (DENBCD): Likewise.
22155 (DENBCDQ): Likewise.
22156 (DIEX): Likewise.
22157 (DIEXQ): Likewise.
22158 (DSCLI): Likewise.
22159 (DSCLIQ): Likewise.
22160 (DSCRI): Likewise.
22161 (DSCRIQ): Likewise.
22162 (CDTBCD): Add new BCD builtin functions.
22163 (CBCDTD): Likewise.
22164 (ADDG6S): Likewise.
22165 (BCDADD): Likewise.
22166 (BCDADD_LT): Likewise.
22167 (BCDADD_EQ): Likewise.
22168 (BCDADD_GT): Likewise.
22169 (BCDADD_OV): Likewise.
22170 (BCDSUB): Likewise.
22171 (BCDSUB_LT): Likewise.
22172 (BCDSUB_EQ): Likewise.
22173 (BCDSUB_GT): Likewise.
22174 (BCDSUB_OV): Likewise.
22175 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22176 (UNPACK_TD): Likewise.
22177 (PACK_TF): Likewise.
22178 (UNPACK_TF): Likewise.
22179 (UNPACK_TF_0): Likewise.
22180 (UNPACK_TF_1): Likewise.
22181 (PACK_V1TI): Likewise.
22182 (UNPACK_V1TI): Likewise.
22183
22184 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22185 support for decimal floating point builtin functions.
22186 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22187 functions that take constant arguments.
22188 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22189 (rs6000_init_builtins): Setup long double, _Decimal64, and
22190 _Decimal128 types for new builtin functions.
22191 (builtin_function_type): Set the unsigned flags appropriately for
22192 the new builtin functions.
22193 (rs6000_opt_masks): Add support for decimal floating point builtin
22194 functions.
22195
22196 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22197 floating point builtin functions.
22198 (RS6000_BTM_COMMON): Likewise.
22199 (RS6000_BTI_long_double): Likewise.
22200 (RS6000_BTI_dfloat64): Likewise.
22201 (RS6000_BTI_dfloat128): Likewise.
22202 (long_double_type_internal_node): Likewise.
22203 (dfloat64_type_internal_node): Likewise.
22204 (dfloat128_type_internal_node): Likewise.
22205
22206 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22207 2.07 bcd arithmetic instructions.
22208 (UNSPEC_BCDSUB): Likewise.
22209 (UNSPEC_BCD_OVERFLOW): Likewise.
22210 (UNSPEC_BCD_ADD_SUB): Likewise.
22211 (bcd_add_sub): Likewise.
22212 (BCD_TEST): Likewise.
22213 (bcd<bcd_add_sub>): Likewise.
22214 (bcd<bcd_add_sub>_test): Likewise.
22215 (bcd<bcd_add_sub>_test2): Likewise.
22216 (bcd<bcd_add_sub>_<code>): Likewise.
22217 (peephole2 for combined bcd ops): Likewise.
22218
22219 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22220 decimal floating point builtin functions.
22221 (UNSPEC_DENBCD): Likewise.
22222 (UNSPEC_DXEX): Likewise.
22223 (UNSPEC_DIEX): Likewise.
22224 (UNSPEC_DSCLI): Likewise.
22225 (UNSPEC_DSCRI): Likewise.
22226 (D64_D128): Likewise.
22227 (dfp_suffix): Likewise.
22228 (dfp_ddedpd_<mode>): Likewise.
22229 (dfp_denbcd_<mode>): Likewise.
22230 (dfp_dxex_<mode>): Likewise.
22231 (dfp_diex_<mode>): Likewise.
22232 (dfp_dscli_<mode>): Likewise.
22233 (dfp_dscri_<mode>): Likewise.
22234
22235 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22236 builtin functions.
22237 (UNSPEC_CDTBCD): Likewise.
22238 (UNSPEC_CBCDTD): Likewise.
22239 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22240 (UNSPEC_DIVEO): Likewise.
22241 (UNSPEC_DIVEU): Likewise.
22242 (UNSPEC_DIVEUO): Likewise.
22243 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22244 pack/unpack 128-bit types.
22245 (UNSPEC_PACK_128BIT): Likewise.
22246 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22247 (udiv<mode>3): Use idiv_ldiv mode attribute.
22248 (div<mode>3): Likewise.
22249 (addg6s): Add new BCD builtin functions.
22250 (cdtbcd): Likewise.
22251 (cbcdtd): Likewise.
22252 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22253 (div_extend): Likewise.
22254 (div<div_extend>_<mode>"): Likewise.
22255 (FP128_64): Add support for new builtin functions to pack/unpack
22256 128-bit types.
22257 (unpack<mode>): Likewise.
22258 (unpacktf_0): Likewise.
22259 (unpacktf_1): Likewise.
22260 (unpack<mode>_dm): Likewise.
22261 (unpack<mode>_nodm): Likewise.
22262 (pack<mode>): Likewise.
22263 (unpackv1ti): Likewise.
22264 (packv1ti): Likewise.
22265
22266 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22267
22268 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22269 is disabled.
22270
22271 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22272
22273 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22274 * gimplify.c (omp_is_private): Change last argument's type to int.
22275 Only diagnose lastprivate if the simd argument is 1, only diagnose
22276 linear if the simd argument is 2.
22277 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22278 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22279 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22280 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22281 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22282 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22283 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22284 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22285 * tree-nested.c (convert_nonlocal_omp_clauses,
22286 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22287
22288 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22289
22290 PR target/60822
22291 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22292 operand 1.
22293
22294 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22295
22296 * flag-types.h (enum ivar_visibility): Add.
22297
22298 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22299
22300 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22301 function * argument.
22302
22303 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22304
22305 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22306
22307 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22308 Tom de Vries <tom@codesourcery.com>
22309
22310 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22311 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22312 reg-note.
22313 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22314 * emit-rtl.c (try_split): Same.
22315
22316 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22317 Tom de Vries <tom@codesourcery.com>
22318
22319 * common.opt (fuse-caller-save): New option.
22320
22321 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22322
22323 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22324 elements for big-endian.
22325
22326 2014-04-24 Richard Biener <rguenther@suse.de>
22327
22328 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22329 during TER and instead use the sepops interface for expanding
22330 non-GIMPLE_SINGLE_RHS.
22331
22332 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22333
22334 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22335 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22336
22337 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22338
22339 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22340 assembler 64-bit option.
22341 * configure: Regenerate.
22342
22343 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22344
22345 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22346 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22347 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22348 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22349 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22350
22351 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22352
22353 * config/aarch64/aarch64-builtins.c
22354 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22355 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22356 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22357 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22358 builtins.
22359 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22360 (Vrevsuff): New mode attribute.
22361
22362 2014-04-24 Terry Guo <terry.guo@arm.com>
22363
22364 * config/arm/arm.h (machine_function): Define variable
22365 after_arm_reorg here.
22366 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22367 (arm_split_constant): Update the way to access variable
22368 after_arm_reorg.
22369 (arm_reorg): Ditto.
22370 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22371
22372 2014-04-23 Tom de Vries <tom@codesourcery.com>
22373
22374 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22375
22376 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22377
22378 * is-a.h: Update comments to reflect the following changes to the
22379 "pointerness" of the API, making the template parameter match the
22380 return type, allowing use of is-a.h with typedefs of pointers.
22381 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22382 that the return type matches the parameter to the is_a_helper.
22383 (as_a): Likewise.
22384 (dyn_cast): Likewise.
22385
22386 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
22387 pointer from the is-a.h API.
22388
22389 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
22390 (is_a_helper <cgraph_node *>::test): ...this, matching change to
22391 is-a.h API.
22392 (is_a_helper <varpool_node>::test): Likewise, convert to...
22393 (is_a_helper <varpool_node *>::test): ...this.
22394
22395 (varpool_first_variable): Update for removal of implicit pointer
22396 from the is-a.h API.
22397 (varpool_next_variable): Likewise.
22398 (varpool_first_static_initializer): Likewise.
22399 (varpool_next_static_initializer): Likewise.
22400 (varpool_first_defined_variable): Likewise.
22401 (varpool_next_defined_variable): Likewise.
22402 (cgraph_first_defined_function): Likewise.
22403 (cgraph_next_defined_function): Likewise.
22404 (cgraph_first_function): Likewise.
22405 (cgraph_next_function): Likewise.
22406 (cgraph_first_function_with_gimple_body): Likewise.
22407 (cgraph_next_function_with_gimple_body): Likewise.
22408 (cgraph_alias_target): Likewise.
22409 (varpool_alias_target): Likewise.
22410 (cgraph_function_or_thunk_node): Likewise.
22411 (varpool_variable_node): Likewise.
22412 (symtab_real_symbol_p): Likewise.
22413 * cgraphunit.c (referred_to_p): Likewise.
22414 (analyze_functions): Likewise.
22415 (handle_alias_pairs): Likewise.
22416 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
22417 * gimple-ssa.h (gimple_vuse_op): Likewise.
22418 (gimple_vdef_op): Likewise.
22419 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
22420 * gimple.c (gimple_build_asm_1): Likewise.
22421 (gimple_build_try): Likewise.
22422 (gimple_build_resx): Likewise.
22423 (gimple_build_eh_dispatch): Likewise.
22424 (gimple_build_omp_for): Likewise.
22425 (gimple_omp_for_set_clauses): Likewise.
22426
22427 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
22428 (is_a_helper <gimple_statement_asm *>::test): ...this.
22429 (is_a_helper <gimple_statement_bind>::test): Convert to...
22430 (is_a_helper <gimple_statement_bind *>::test): ...this.
22431 (is_a_helper <gimple_statement_call>::test): Convert to...
22432 (is_a_helper <gimple_statement_call *>::test): ...this.
22433 (is_a_helper <gimple_statement_catch>::test): Convert to...
22434 (is_a_helper <gimple_statement_catch *>::test): ...this.
22435 (is_a_helper <gimple_statement_resx>::test): Convert to...
22436 (is_a_helper <gimple_statement_resx *>::test): ...this.
22437 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
22438 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
22439 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
22440 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
22441 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
22442 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
22443 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
22444 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
22445 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
22446 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
22447 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
22448 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
22449 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
22450 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
22451 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
22452 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
22453 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
22454 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
22455 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
22456 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
22457 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
22458 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
22459 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
22460 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
22461 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
22462 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
22463 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
22464 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
22465 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
22466 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
22467 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
22468 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
22469 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
22470 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
22471 (is_a_helper <gimple_statement_phi>::test): Convert to...
22472 (is_a_helper <gimple_statement_phi *>::test): ...this.
22473 (is_a_helper <gimple_statement_transaction>::test): Convert to...
22474 (is_a_helper <gimple_statement_transaction *>::test): ...this.
22475 (is_a_helper <gimple_statement_try>::test): Convert to...
22476 (is_a_helper <gimple_statement_try *>::test): ...this.
22477 (is_a_helper <gimple_statement_wce>::test): Convert to...
22478 (is_a_helper <gimple_statement_wce *>::test): ...this.
22479 (is_a_helper <const gimple_statement_asm>::test): Convert to...
22480 (is_a_helper <const gimple_statement_asm *>::test): ...this.
22481 (is_a_helper <const gimple_statement_bind>::test): Convert to...
22482 (is_a_helper <const gimple_statement_bind *>::test): ...this.
22483 (is_a_helper <const gimple_statement_call>::test): Convert to...
22484 (is_a_helper <const gimple_statement_call *>::test): ...this.
22485 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22486 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22487 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22488 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22489 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22490 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22491 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22492 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22493 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22494 Convert to...
22495 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22496 ...this.
22497 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22498 Convert to...
22499 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22500 ...this.
22501 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22502 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22503 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22504 to...
22505 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22506 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22507 to...
22508 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22509 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22510 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22511 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22512 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22513 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22514 to...
22515 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22516 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22517 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22518 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22519 to...
22520 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22521 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22522 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22523 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22524 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22525 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22526 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22527 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22528 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22529 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22530 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22531 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22532 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22533 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22534 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22535 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22536 to...
22537 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22538 ...this.
22539 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22540 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22541
22542 (gimple_use_ops): Update for removal of implicit pointer from the
22543 is-a.h API.
22544 (gimple_set_use_ops): Likewise.
22545 (gimple_vuse): Likewise.
22546 (gimple_vdef): Likewise.
22547 (gimple_vuse_ptr): Likewise.
22548 (gimple_vdef_ptr): Likewise.
22549 (gimple_set_vuse): Likewise.
22550 (gimple_set_vdef): Likewise.
22551 (gimple_omp_return_set_lhs): Likewise.
22552 (gimple_omp_return_lhs): Likewise.
22553 (gimple_omp_return_lhs_ptr): Likewise.
22554 (gimple_call_fntype): Likewise.
22555 (gimple_call_set_fntype): Likewise.
22556 (gimple_call_set_internal_fn): Likewise.
22557 (gimple_call_use_set): Likewise.
22558 (gimple_call_clobber_set): Likewise.
22559 (gimple_bind_vars): Likewise.
22560 (gimple_bind_set_vars): Likewise.
22561 (gimple_bind_body_ptr): Likewise.
22562 (gimple_bind_set_body): Likewise.
22563 (gimple_bind_add_stmt): Likewise.
22564 (gimple_bind_block): Likewise.
22565 (gimple_bind_set_block): Likewise.
22566 (gimple_asm_ninputs): Likewise.
22567 (gimple_asm_noutputs): Likewise.
22568 (gimple_asm_nclobbers): Likewise.
22569 (gimple_asm_nlabels): Likewise.
22570 (gimple_asm_input_op): Likewise.
22571 (gimple_asm_input_op_ptr): Likewise.
22572 (gimple_asm_output_op): Likewise.
22573 (gimple_asm_output_op_ptr): Likewise.
22574 (gimple_asm_set_output_op): Likewise.
22575 (gimple_asm_clobber_op): Likewise.
22576 (gimple_asm_set_clobber_op): Likewise.
22577 (gimple_asm_label_op): Likewise.
22578 (gimple_asm_set_label_op): Likewise.
22579 (gimple_asm_string): Likewise.
22580 (gimple_catch_types): Likewise.
22581 (gimple_catch_types_ptr): Likewise.
22582 (gimple_catch_handler_ptr): Likewise.
22583 (gimple_catch_set_types): Likewise.
22584 (gimple_catch_set_handler): Likewise.
22585 (gimple_eh_filter_types): Likewise.
22586 (gimple_eh_filter_types_ptr): Likewise.
22587 (gimple_eh_filter_failure_ptr): Likewise.
22588 (gimple_eh_filter_set_types): Likewise.
22589 (gimple_eh_filter_set_failure): Likewise.
22590 (gimple_eh_must_not_throw_fndecl): Likewise.
22591 (gimple_eh_must_not_throw_set_fndecl): Likewise.
22592 (gimple_eh_else_n_body_ptr): Likewise.
22593 (gimple_eh_else_e_body_ptr): Likewise.
22594 (gimple_eh_else_set_n_body): Likewise.
22595 (gimple_eh_else_set_e_body): Likewise.
22596 (gimple_try_eval_ptr): Likewise.
22597 (gimple_try_cleanup_ptr): Likewise.
22598 (gimple_try_set_eval): Likewise.
22599 (gimple_try_set_cleanup): Likewise.
22600 (gimple_wce_cleanup_ptr): Likewise.
22601 (gimple_wce_set_cleanup): Likewise.
22602 (gimple_phi_capacity): Likewise.
22603 (gimple_phi_num_args): Likewise.
22604 (gimple_phi_result): Likewise.
22605 (gimple_phi_result_ptr): Likewise.
22606 (gimple_phi_set_result): Likewise.
22607 (gimple_phi_arg): Likewise.
22608 (gimple_phi_set_arg): Likewise.
22609 (gimple_resx_region): Likewise.
22610 (gimple_resx_set_region): Likewise.
22611 (gimple_eh_dispatch_region): Likewise.
22612 (gimple_eh_dispatch_set_region): Likewise.
22613 (gimple_omp_critical_name): Likewise.
22614 (gimple_omp_critical_name_ptr): Likewise.
22615 (gimple_omp_critical_set_name): Likewise.
22616 (gimple_omp_for_clauses): Likewise.
22617 (gimple_omp_for_clauses_ptr): Likewise.
22618 (gimple_omp_for_set_clauses): Likewise.
22619 (gimple_omp_for_collapse): Likewise.
22620 (gimple_omp_for_index): Likewise.
22621 (gimple_omp_for_index_ptr): Likewise.
22622 (gimple_omp_for_set_index): Likewise.
22623 (gimple_omp_for_initial): Likewise.
22624 (gimple_omp_for_initial_ptr): Likewise.
22625 (gimple_omp_for_set_initial): Likewise.
22626 (gimple_omp_for_final): Likewise.
22627 (gimple_omp_for_final_ptr): Likewise.
22628 (gimple_omp_for_set_final): Likewise.
22629 (gimple_omp_for_incr): Likewise.
22630 (gimple_omp_for_incr_ptr): Likewise.
22631 (gimple_omp_for_set_incr): Likewise.
22632 (gimple_omp_for_pre_body_ptr): Likewise.
22633 (gimple_omp_for_set_pre_body): Likewise.
22634 (gimple_omp_parallel_clauses): Likewise.
22635 (gimple_omp_parallel_clauses_ptr): Likewise.
22636 (gimple_omp_parallel_set_clauses): Likewise.
22637 (gimple_omp_parallel_child_fn): Likewise.
22638 (gimple_omp_parallel_child_fn_ptr): Likewise.
22639 (gimple_omp_parallel_set_child_fn): Likewise.
22640 (gimple_omp_parallel_data_arg): Likewise.
22641 (gimple_omp_parallel_data_arg_ptr): Likewise.
22642 (gimple_omp_parallel_set_data_arg): Likewise.
22643 (gimple_omp_task_clauses): Likewise.
22644 (gimple_omp_task_clauses_ptr): Likewise.
22645 (gimple_omp_task_set_clauses): Likewise.
22646 (gimple_omp_task_child_fn): Likewise.
22647 (gimple_omp_task_child_fn_ptr): Likewise.
22648 (gimple_omp_task_set_child_fn): Likewise.
22649 (gimple_omp_task_data_arg): Likewise.
22650 (gimple_omp_task_data_arg_ptr): Likewise.
22651 (gimple_omp_task_set_data_arg): Likewise.
22652 (gimple_omp_taskreg_clauses): Likewise.
22653 (gimple_omp_taskreg_clauses_ptr): Likewise.
22654 (gimple_omp_taskreg_set_clauses): Likewise.
22655 (gimple_omp_taskreg_child_fn): Likewise.
22656 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22657 (gimple_omp_taskreg_set_child_fn): Likewise.
22658 (gimple_omp_taskreg_data_arg): Likewise.
22659 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22660 (gimple_omp_taskreg_set_data_arg): Likewise.
22661 (gimple_omp_task_copy_fn): Likewise.
22662 (gimple_omp_task_copy_fn_ptr): Likewise.
22663 (gimple_omp_task_set_copy_fn): Likewise.
22664 (gimple_omp_task_arg_size): Likewise.
22665 (gimple_omp_task_arg_size_ptr): Likewise.
22666 (gimple_omp_task_set_arg_size): Likewise.
22667 (gimple_omp_task_arg_align): Likewise.
22668 (gimple_omp_task_arg_align_ptr): Likewise.
22669 (gimple_omp_task_set_arg_align): Likewise.
22670 (gimple_omp_single_clauses): Likewise.
22671 (gimple_omp_single_clauses_ptr): Likewise.
22672 (gimple_omp_single_set_clauses): Likewise.
22673 (gimple_omp_target_clauses): Likewise.
22674 (gimple_omp_target_clauses_ptr): Likewise.
22675 (gimple_omp_target_set_clauses): Likewise.
22676 (gimple_omp_target_child_fn): Likewise.
22677 (gimple_omp_target_child_fn_ptr): Likewise.
22678 (gimple_omp_target_set_child_fn): Likewise.
22679 (gimple_omp_target_data_arg): Likewise.
22680 (gimple_omp_target_data_arg_ptr): Likewise.
22681 (gimple_omp_target_set_data_arg): Likewise.
22682 (gimple_omp_teams_clauses): Likewise.
22683 (gimple_omp_teams_clauses_ptr): Likewise.
22684 (gimple_omp_teams_set_clauses): Likewise.
22685 (gimple_omp_sections_clauses): Likewise.
22686 (gimple_omp_sections_clauses_ptr): Likewise.
22687 (gimple_omp_sections_set_clauses): Likewise.
22688 (gimple_omp_sections_control): Likewise.
22689 (gimple_omp_sections_control_ptr): Likewise.
22690 (gimple_omp_sections_set_control): Likewise.
22691 (gimple_omp_for_set_cond): Likewise.
22692 (gimple_omp_for_cond): Likewise.
22693 (gimple_omp_atomic_store_set_val): Likewise.
22694 (gimple_omp_atomic_store_val): Likewise.
22695 (gimple_omp_atomic_store_val_ptr): Likewise.
22696 (gimple_omp_atomic_load_set_lhs): Likewise.
22697 (gimple_omp_atomic_load_lhs): Likewise.
22698 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22699 (gimple_omp_atomic_load_set_rhs): Likewise.
22700 (gimple_omp_atomic_load_rhs): Likewise.
22701 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22702 (gimple_omp_continue_control_def): Likewise.
22703 (gimple_omp_continue_control_def_ptr): Likewise.
22704 (gimple_omp_continue_set_control_def): Likewise.
22705 (gimple_omp_continue_control_use): Likewise.
22706 (gimple_omp_continue_control_use_ptr): Likewise.
22707 (gimple_omp_continue_set_control_use): Likewise.
22708 (gimple_transaction_body_ptr): Likewise.
22709 (gimple_transaction_label): Likewise.
22710 (gimple_transaction_label_ptr): Likewise.
22711 (gimple_transaction_set_body): Likewise.
22712 (gimple_transaction_set_label): Likewise.
22713
22714 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22715 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22716 * ipa-ref.c (ipa_record_reference): Likewise.
22717 * ipa-reference.c (analyze_function): Likewise.
22718 (ipa_reference_write_optimization_summary): Likewise.
22719 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22720 (address_taken_from_non_vtable_p): Likewise.
22721 (comdat_can_be_unshared_p_1): Likewise.
22722 * lto-cgraph.c (lto_output_ref): Likewise.
22723 (add_references): Likewise.
22724 (compute_ltrans_boundary): Likewise.
22725 (output_symtab): Likewise.
22726 (input_ref): Likewise.
22727 (input_cgraph_1): Likewise.
22728 (output_cgraph_opt_summary): Likewise.
22729 * lto-streamer-out.c (lto_output): Likewise.
22730 (output_symbol_p): Likewise.
22731 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22732 (lsei_start_function_in_partition): Likewise.
22733 (lsei_next_variable_in_partition): Likewise.
22734 (lsei_start_variable_in_partition): Likewise.
22735 * symtab.c (insert_to_assembler_name_hash): Likewise.
22736 (unlink_from_assembler_name_hash): Likewise.
22737 (symtab_unregister_node): Likewise.
22738 (symtab_remove_node): Likewise.
22739 (dump_symtab_node): Likewise.
22740 (verify_symtab_base): Likewise.
22741 (verify_symtab_node): Likewise.
22742 (symtab_make_decl_local): Likewise.
22743 (symtab_alias_ultimate_target): Likewise.
22744 (symtab_resolve_alias): Likewise.
22745 (symtab_get_symbol_partitioning_class): Likewise.
22746 * tree-phinodes.c (allocate_phi_node): Likewise.
22747 (reserve_phi_args_for_new_edge): Likewise.
22748 (remove_phi_args): Likewise.
22749 * varpool.c (varpool_node_for_asm): Likewise.
22750 (varpool_remove_unreferenced_decls): Likewise.
22751
22752 2014-04-23 Jeff Law <law@redhat.com>
22753
22754 PR tree-optimization/60902
22755 * tree-ssa-threadedge.c
22756 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22757 invalidate outputs from statements that do not produce useful
22758 outputs for threading.
22759
22760 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22761
22762 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22763 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22764 machine descriptions for Stack Smashing Protector.
22765
22766 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22767
22768 * aarch64.md (<optab>_rol<mode>3): New pattern.
22769 (<optab>_rolsi3_uxtw): Likewise.
22770 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22771
22772 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22773
22774 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22775 (arm_cortex_a12_tune): Likewise.
22776
22777 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22778
22779 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22780
22781 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22782
22783 * config/arm/arm.md (arm_rev16si2): New pattern.
22784 (arm_rev16si2_alt): Likewise.
22785 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22786
22787 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22788
22789 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22790 (rev16<mode>2_alt): Likewise.
22791 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22792 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22793 (aarch_rev16_shleft_mask_imm_p): Likewise.
22794 (aarch_rev16_p_1): Likewise.
22795 (aarch_rev16_p): Likewise.
22796 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22797 (aarch_rev16_shright_mask_imm_p): Likewise.
22798 (aarch_rev16_shleft_mask_imm_p): Likewise.
22799
22800 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22801
22802 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22803 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22804 rev cost.
22805 (cortex_a53_extra_costs): Likewise.
22806 (cortex_a57_extra_costs): Likewise.
22807 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22808 (cortexa7_extra_costs): Likewise.
22809 (cortexa8_extra_costs): Likewise.
22810 (cortexa12_extra_costs): Likewise.
22811 (cortexa15_extra_costs): Likewise.
22812 (v7m_extra_costs): Likewise.
22813 (arm_new_rtx_costs): Handle BSWAP.
22814
22815 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22816
22817 * config/arm/arm.c (cortexa8_extra_costs): New table.
22818 (arm_cortex_a8_tune): New tuning struct.
22819 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22820
22821 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22822
22823 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22824
22825 2014-04-23 Richard Biener <rguenther@suse.de>
22826
22827 * Makefile.in (OBJS): Remove loop-unswitch.o.
22828 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22829 * passes.def (pass_rtl_unswitch): Likewise.
22830 * loop-init.c (gate_rtl_unswitch): Likewise.
22831 (rtl_unswitch): Likewise.
22832 (pass_data_rtl_unswitch): Likewise.
22833 (pass_rtl_unswitch): Likewise.
22834 (make_pass_rtl_unswitch): Likewise.
22835 * rtl.h (reversed_condition): Likewise.
22836 (compare_and_jump_seq): Likewise.
22837 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22838 and make static.
22839 * loop-unroll.c (compare_and_jump_seq): Likewise.
22840
22841 2014-04-23 Richard Biener <rguenther@suse.de>
22842
22843 PR tree-optimization/60903
22844 * tree-ssa-loop-im.c (analyze_memory_references): Remove
22845 commented code block.
22846 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
22847 loop flags to newly created BBs and edges.
22848
22849 2014-04-23 Nick Clifton <nickc@redhat.com>
22850
22851 * config/msp430/msp430.c (msp430_handle_option): Move function
22852 to msp430-common.c
22853 (msp430_option_override): Simplify mcu and mcpu option handling.
22854 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
22855 support for -mhwmult command line option.
22856 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
22857 -mhwmult command line option.
22858 (msp430_hwmult_enabled): Delete.
22859 (msp43o_output_labelref): Add support for -mhwmult command line option.
22860 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
22861 (umulsidi3): Likewise.
22862 * config/msp430/msp430.opt (mmcu): Add Report attribute.
22863 (mcpu, mlarge, msmall): Likewise.
22864 (mhwmult): New option.
22865 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
22866 prototype.
22867 (msp430_is_f5_mcu): Remove prototype.
22868 (msp430_use_f5_series_hwmult): Add prototype.
22869 * config/msp430/msp430-opts.h: New file.
22870 * common/config/msp430: New directory.
22871 * common/config/msp430/msp430-common.c: New file.
22872 * config.gcc (msp430): Remove target_has_targetm_common.
22873 * doc/invoke.texi: Document -mhwmult command line option.
22874
22875 2014-04-23 Nick Clifton <nickc@redhat.com>
22876
22877 * config/i386/cygwin.h (ENDFILE_SPEC): Include
22878 default-manifest.o if it can be found in the search path.
22879 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22880
22881 2014-04-23 Terry Guo <terry.guo@arm.com>
22882
22883 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
22884
22885 2014-04-23 Richard Biener <rguenther@suse.de>
22886
22887 PR middle-end/60895
22888 * tree-inline.c (declare_return_variable): Use mark_addressable.
22889
22890 2014-04-23 Richard Biener <rguenther@suse.de>
22891
22892 PR middle-end/60891
22893 * loop-init.c (loop_optimizer_init): Make sure to apply
22894 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
22895
22896 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22897
22898 PR sanitizer/60275
22899 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
22900 New options.
22901 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
22902 if flag_sanitize_undefined_trap_on_error.
22903 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
22904 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
22905 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
22906 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
22907 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
22908 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
22909 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
22910 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
22911 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
22912 * ubsan.c (ubsan_instrument_unreachable): Return
22913 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
22914 (ubsan_expand_null_ifn): Emit __builtin_trap ()
22915 if flag_sanitize_undefined_trap_on_error and
22916 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
22917 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
22918 instrument_bool_enum_load): Emit __builtin_trap () if
22919 flag_sanitize_undefined_trap_on_error and
22920 __builtin_handle_*_abort () if !flag_sanitize_recover.
22921 * doc/invoke.texi (-fsanitize-recover,
22922 -fsanitize-undefined-trap-on-error): Document.
22923
22924 2014-04-22 Christian Bruel <christian.bruel@st.com>
22925
22926 * config/sh/sh.md (mov<mode>): Replace movQIHI.
22927 Force immediates to SImode.
22928
22929 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
22930
22931 * config/nios2/nios2.md (UNSPEC_ROUND): New.
22932 (lroundsfsi2): New.
22933 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
22934 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
22935 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
22936 (nios2_fpu_insn): Add entry for round.
22937 (N2FPU_NO_ERRNO_P): Define.
22938 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
22939 flag_errno_math.
22940 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
22941
22942 2014-04-22 Richard Henderson <rth@redhat.com>
22943
22944 * config/aarch64/aarch64 (addti3, subti3): New expanders.
22945 (add<GPI>3_compare0): Remove leading * from name.
22946 (add<GPI>3_carryin): Likewise.
22947 (sub<GPI>3_compare0): Likewise.
22948 (sub<GPI>3_carryin): Likewise.
22949 (<su_optab>mulditi3): New expander.
22950 (multi3): New expander.
22951 (madd<GPI>): Remove leading * from name.
22952
22953 2014-04-22 Martin Jambor <mjambor@suse.cz>
22954
22955 * cgraphclones.c (cgraph_function_versioning): Copy
22956 ipa_transforms_to_apply instead of asserting it is empty.
22957
22958 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
22959
22960 PR target/60868
22961 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
22962 on count_exp to get mode.
22963
22964 2014-04-22 Andrew Pinski <apinski@cavium.com>
22965
22966 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22967 Handle TLS for ILP32.
22968 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
22969 (tlsie_small_<mode>): this and handle PTR.
22970 (tlsie_small_sidi): New pattern.
22971 (tlsle_small): Change to an expand to handle ILP32.
22972 (tlsle_small_<mode>): New pattern.
22973 (tlsdesc_small): Rename to ...
22974 (tlsdesc_small_<mode>): this and handle PTR.
22975
22976 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22977
22978 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
22979
22980 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22981
22982 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22983 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
22984 (aarch64_types_signed_poly_qualifiers): Likewise.
22985 (aarch64_types_unsigned_signed_qualifiers): Likewise.
22986 (aarch64_types_poly_signed_qualifiers): Likewise.
22987 (TYPES_REINTERP_SS): Type macro added.
22988 (TYPES_REINTERP_SU): Likewise.
22989 (TYPES_REINTERP_SP): Likewise.
22990 (TYPES_REINTERP_US): Likewise.
22991 (TYPES_REINTERP_PS): Likewise.
22992 (aarch64_fold_builtin): New expression folding added.
22993 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
22994 Declarations removed.
22995 (REINTERP_SS): Declarations added.
22996 (REINTERP_US): Likewise.
22997 (REINTERP_PS): Likewise.
22998 (REINTERP_SU): Likewise.
22999 (REINTERP_SP): Likewise.
23000 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23001 (vreinterpretq_p8_f64): Likewise.
23002 (vreinterpret_p16_f64): Likewise.
23003 (vreinterpretq_p16_f64): Likewise.
23004 (vreinterpret_f32_f64): Likewise.
23005 (vreinterpretq_f32_f64): Likewise.
23006 (vreinterpret_f64_f32): Likewise.
23007 (vreinterpret_f64_p8): Likewise.
23008 (vreinterpret_f64_p16): Likewise.
23009 (vreinterpret_f64_s8): Likewise.
23010 (vreinterpret_f64_s16): Likewise.
23011 (vreinterpret_f64_s32): Likewise.
23012 (vreinterpret_f64_s64): Likewise.
23013 (vreinterpret_f64_u8): Likewise.
23014 (vreinterpret_f64_u16): Likewise.
23015 (vreinterpret_f64_u32): Likewise.
23016 (vreinterpret_f64_u64): Likewise.
23017 (vreinterpretq_f64_f32): Likewise.
23018 (vreinterpretq_f64_p8): Likewise.
23019 (vreinterpretq_f64_p16): Likewise.
23020 (vreinterpretq_f64_s8): Likewise.
23021 (vreinterpretq_f64_s16): Likewise.
23022 (vreinterpretq_f64_s32): Likewise.
23023 (vreinterpretq_f64_s64): Likewise.
23024 (vreinterpretq_f64_u8): Likewise.
23025 (vreinterpretq_f64_u16): Likewise.
23026 (vreinterpretq_f64_u32): Likewise.
23027 (vreinterpretq_f64_u64): Likewise.
23028 (vreinterpret_s64_f64): Likewise.
23029 (vreinterpretq_s64_f64): Likewise.
23030 (vreinterpret_u64_f64): Likewise.
23031 (vreinterpretq_u64_f64): Likewise.
23032 (vreinterpret_s8_f64): Likewise.
23033 (vreinterpretq_s8_f64): Likewise.
23034 (vreinterpret_s16_f64): Likewise.
23035 (vreinterpretq_s16_f64): Likewise.
23036 (vreinterpret_s32_f64): Likewise.
23037 (vreinterpretq_s32_f64): Likewise.
23038 (vreinterpret_u8_f64): Likewise.
23039 (vreinterpretq_u8_f64): Likewise.
23040 (vreinterpret_u16_f64): Likewise.
23041 (vreinterpretq_u16_f64): Likewise.
23042 (vreinterpret_u32_f64): Likewise.
23043 (vreinterpretq_u32_f64): Likewise.
23044
23045 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23046
23047 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23048 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23049 (vreinterpret_p8_s8): Likewise.
23050 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23051 (vreinterpret_p8_s16): Likewise.
23052 (vreinterpret_p8_s32): Likewise.
23053 (vreinterpret_p8_s64): Likewise.
23054 (vreinterpret_p8_f32): Likewise.
23055 (vreinterpret_p8_u8): Likewise.
23056 (vreinterpret_p8_u16): Likewise.
23057 (vreinterpret_p8_u32): Likewise.
23058 (vreinterpret_p8_u64): Likewise.
23059 (vreinterpret_p8_p16): Likewise.
23060 (vreinterpretq_p8_s8): Likewise.
23061 (vreinterpretq_p8_s16): Likewise.
23062 (vreinterpretq_p8_s32): Likewise.
23063 (vreinterpretq_p8_s64): Likewise.
23064 (vreinterpretq_p8_f32): Likewise.
23065 (vreinterpretq_p8_u8): Likewise.
23066 (vreinterpretq_p8_u16): Likewise.
23067 (vreinterpretq_p8_u32): Likewise.
23068 (vreinterpretq_p8_u64): Likewise.
23069 (vreinterpretq_p8_p16): Likewise.
23070 (vreinterpret_p16_s8): Likewise.
23071 (vreinterpret_p16_s16): Likewise.
23072 (vreinterpret_p16_s32): Likewise.
23073 (vreinterpret_p16_s64): Likewise.
23074 (vreinterpret_p16_f32): Likewise.
23075 (vreinterpret_p16_u8): Likewise.
23076 (vreinterpret_p16_u16): Likewise.
23077 (vreinterpret_p16_u32): Likewise.
23078 (vreinterpret_p16_u64): Likewise.
23079 (vreinterpret_p16_p8): Likewise.
23080 (vreinterpretq_p16_s8): Likewise.
23081 (vreinterpretq_p16_s16): Likewise.
23082 (vreinterpretq_p16_s32): Likewise.
23083 (vreinterpretq_p16_s64): Likewise.
23084 (vreinterpretq_p16_f32): Likewise.
23085 (vreinterpretq_p16_u8): Likewise.
23086 (vreinterpretq_p16_u16): Likewise.
23087 (vreinterpretq_p16_u32): Likewise.
23088 (vreinterpretq_p16_u64): Likewise.
23089 (vreinterpretq_p16_p8): Likewise.
23090 (vreinterpret_f32_s8): Likewise.
23091 (vreinterpret_f32_s16): Likewise.
23092 (vreinterpret_f32_s32): Likewise.
23093 (vreinterpret_f32_s64): Likewise.
23094 (vreinterpret_f32_u8): Likewise.
23095 (vreinterpret_f32_u16): Likewise.
23096 (vreinterpret_f32_u32): Likewise.
23097 (vreinterpret_f32_u64): Likewise.
23098 (vreinterpret_f32_p8): Likewise.
23099 (vreinterpret_f32_p16): Likewise.
23100 (vreinterpretq_f32_s8): Likewise.
23101 (vreinterpretq_f32_s16): Likewise.
23102 (vreinterpretq_f32_s32): Likewise.
23103 (vreinterpretq_f32_s64): Likewise.
23104 (vreinterpretq_f32_u8): Likewise.
23105 (vreinterpretq_f32_u16): Likewise.
23106 (vreinterpretq_f32_u32): Likewise.
23107 (vreinterpretq_f32_u64): Likewise.
23108 (vreinterpretq_f32_p8): Likewise.
23109 (vreinterpretq_f32_p16): Likewise.
23110 (vreinterpret_s64_s8): Likewise.
23111 (vreinterpret_s64_s16): Likewise.
23112 (vreinterpret_s64_s32): Likewise.
23113 (vreinterpret_s64_f32): Likewise.
23114 (vreinterpret_s64_u8): Likewise.
23115 (vreinterpret_s64_u16): Likewise.
23116 (vreinterpret_s64_u32): Likewise.
23117 (vreinterpret_s64_u64): Likewise.
23118 (vreinterpret_s64_p8): Likewise.
23119 (vreinterpret_s64_p16): Likewise.
23120 (vreinterpretq_s64_s8): Likewise.
23121 (vreinterpretq_s64_s16): Likewise.
23122 (vreinterpretq_s64_s32): Likewise.
23123 (vreinterpretq_s64_f32): Likewise.
23124 (vreinterpretq_s64_u8): Likewise.
23125 (vreinterpretq_s64_u16): Likewise.
23126 (vreinterpretq_s64_u32): Likewise.
23127 (vreinterpretq_s64_u64): Likewise.
23128 (vreinterpretq_s64_p8): Likewise.
23129 (vreinterpretq_s64_p16): Likewise.
23130 (vreinterpret_u64_s8): Likewise.
23131 (vreinterpret_u64_s16): Likewise.
23132 (vreinterpret_u64_s32): Likewise.
23133 (vreinterpret_u64_s64): Likewise.
23134 (vreinterpret_u64_f32): Likewise.
23135 (vreinterpret_u64_u8): Likewise.
23136 (vreinterpret_u64_u16): Likewise.
23137 (vreinterpret_u64_u32): Likewise.
23138 (vreinterpret_u64_p8): Likewise.
23139 (vreinterpret_u64_p16): Likewise.
23140 (vreinterpretq_u64_s8): Likewise.
23141 (vreinterpretq_u64_s16): Likewise.
23142 (vreinterpretq_u64_s32): Likewise.
23143 (vreinterpretq_u64_s64): Likewise.
23144 (vreinterpretq_u64_f32): Likewise.
23145 (vreinterpretq_u64_u8): Likewise.
23146 (vreinterpretq_u64_u16): Likewise.
23147 (vreinterpretq_u64_u32): Likewise.
23148 (vreinterpretq_u64_p8): Likewise.
23149 (vreinterpretq_u64_p16): Likewise.
23150 (vreinterpret_s8_s16): Likewise.
23151 (vreinterpret_s8_s32): Likewise.
23152 (vreinterpret_s8_s64): Likewise.
23153 (vreinterpret_s8_f32): Likewise.
23154 (vreinterpret_s8_u8): Likewise.
23155 (vreinterpret_s8_u16): Likewise.
23156 (vreinterpret_s8_u32): Likewise.
23157 (vreinterpret_s8_u64): Likewise.
23158 (vreinterpret_s8_p8): Likewise.
23159 (vreinterpret_s8_p16): Likewise.
23160 (vreinterpretq_s8_s16): Likewise.
23161 (vreinterpretq_s8_s32): Likewise.
23162 (vreinterpretq_s8_s64): Likewise.
23163 (vreinterpretq_s8_f32): Likewise.
23164 (vreinterpretq_s8_u8): Likewise.
23165 (vreinterpretq_s8_u16): Likewise.
23166 (vreinterpretq_s8_u32): Likewise.
23167 (vreinterpretq_s8_u64): Likewise.
23168 (vreinterpretq_s8_p8): Likewise.
23169 (vreinterpretq_s8_p16): Likewise.
23170 (vreinterpret_s16_s8): Likewise.
23171 (vreinterpret_s16_s32): Likewise.
23172 (vreinterpret_s16_s64): Likewise.
23173 (vreinterpret_s16_f32): Likewise.
23174 (vreinterpret_s16_u8): Likewise.
23175 (vreinterpret_s16_u16): Likewise.
23176 (vreinterpret_s16_u32): Likewise.
23177 (vreinterpret_s16_u64): Likewise.
23178 (vreinterpret_s16_p8): Likewise.
23179 (vreinterpret_s16_p16): Likewise.
23180 (vreinterpretq_s16_s8): Likewise.
23181 (vreinterpretq_s16_s32): Likewise.
23182 (vreinterpretq_s16_s64): Likewise.
23183 (vreinterpretq_s16_f32): Likewise.
23184 (vreinterpretq_s16_u8): Likewise.
23185 (vreinterpretq_s16_u16): Likewise.
23186 (vreinterpretq_s16_u32): Likewise.
23187 (vreinterpretq_s16_u64): Likewise.
23188 (vreinterpretq_s16_p8): Likewise.
23189 (vreinterpretq_s16_p16): Likewise.
23190 (vreinterpret_s32_s8): Likewise.
23191 (vreinterpret_s32_s16): Likewise.
23192 (vreinterpret_s32_s64): Likewise.
23193 (vreinterpret_s32_f32): Likewise.
23194 (vreinterpret_s32_u8): Likewise.
23195 (vreinterpret_s32_u16): Likewise.
23196 (vreinterpret_s32_u32): Likewise.
23197 (vreinterpret_s32_u64): Likewise.
23198 (vreinterpret_s32_p8): Likewise.
23199 (vreinterpret_s32_p16): Likewise.
23200 (vreinterpretq_s32_s8): Likewise.
23201 (vreinterpretq_s32_s16): Likewise.
23202 (vreinterpretq_s32_s64): Likewise.
23203 (vreinterpretq_s32_f32): Likewise.
23204 (vreinterpretq_s32_u8): Likewise.
23205 (vreinterpretq_s32_u16): Likewise.
23206 (vreinterpretq_s32_u32): Likewise.
23207 (vreinterpretq_s32_u64): Likewise.
23208 (vreinterpretq_s32_p8): Likewise.
23209 (vreinterpretq_s32_p16): Likewise.
23210 (vreinterpret_u8_s8): Likewise.
23211 (vreinterpret_u8_s16): Likewise.
23212 (vreinterpret_u8_s32): Likewise.
23213 (vreinterpret_u8_s64): Likewise.
23214 (vreinterpret_u8_f32): Likewise.
23215 (vreinterpret_u8_u16): Likewise.
23216 (vreinterpret_u8_u32): Likewise.
23217 (vreinterpret_u8_u64): Likewise.
23218 (vreinterpret_u8_p8): Likewise.
23219 (vreinterpret_u8_p16): Likewise.
23220 (vreinterpretq_u8_s8): Likewise.
23221 (vreinterpretq_u8_s16): Likewise.
23222 (vreinterpretq_u8_s32): Likewise.
23223 (vreinterpretq_u8_s64): Likewise.
23224 (vreinterpretq_u8_f32): Likewise.
23225 (vreinterpretq_u8_u16): Likewise.
23226 (vreinterpretq_u8_u32): Likewise.
23227 (vreinterpretq_u8_u64): Likewise.
23228 (vreinterpretq_u8_p8): Likewise.
23229 (vreinterpretq_u8_p16): Likewise.
23230 (vreinterpret_u16_s8): Likewise.
23231 (vreinterpret_u16_s16): Likewise.
23232 (vreinterpret_u16_s32): Likewise.
23233 (vreinterpret_u16_s64): Likewise.
23234 (vreinterpret_u16_f32): Likewise.
23235 (vreinterpret_u16_u8): Likewise.
23236 (vreinterpret_u16_u32): Likewise.
23237 (vreinterpret_u16_u64): Likewise.
23238 (vreinterpret_u16_p8): Likewise.
23239 (vreinterpret_u16_p16): Likewise.
23240 (vreinterpretq_u16_s8): Likewise.
23241 (vreinterpretq_u16_s16): Likewise.
23242 (vreinterpretq_u16_s32): Likewise.
23243 (vreinterpretq_u16_s64): Likewise.
23244 (vreinterpretq_u16_f32): Likewise.
23245 (vreinterpretq_u16_u8): Likewise.
23246 (vreinterpretq_u16_u32): Likewise.
23247 (vreinterpretq_u16_u64): Likewise.
23248 (vreinterpretq_u16_p8): Likewise.
23249 (vreinterpretq_u16_p16): Likewise.
23250 (vreinterpret_u32_s8): Likewise.
23251 (vreinterpret_u32_s16): Likewise.
23252 (vreinterpret_u32_s32): Likewise.
23253 (vreinterpret_u32_s64): Likewise.
23254 (vreinterpret_u32_f32): Likewise.
23255 (vreinterpret_u32_u8): Likewise.
23256 (vreinterpret_u32_u16): Likewise.
23257 (vreinterpret_u32_u64): Likewise.
23258 (vreinterpret_u32_p8): Likewise.
23259 (vreinterpret_u32_p16): Likewise.
23260 (vreinterpretq_u32_s8): Likewise.
23261 (vreinterpretq_u32_s16): Likewise.
23262 (vreinterpretq_u32_s32): Likewise.
23263 (vreinterpretq_u32_s64): Likewise.
23264 (vreinterpretq_u32_f32): Likewise.
23265 (vreinterpretq_u32_u8): Likewise.
23266 (vreinterpretq_u32_u16): Likewise.
23267 (vreinterpretq_u32_u64): Likewise.
23268 (vreinterpretq_u32_p8): Likewise.
23269 (vreinterpretq_u32_p16): Likewise.
23270
23271 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23272
23273 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23274 Pattern extended.
23275 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23276 (sqabs): Likewise.
23277 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23278 (vqnegd_s64): Likewise.
23279 (vqabs_s64): Likewise.
23280 (vqabsd_s64): Likewise.
23281
23282 2014-04-22 Richard Henderson <rth@redhat.com>
23283
23284 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23285 computation to the top of the loop.
23286
23287 2014-04-22 Renlin <renlin.li@arm.com>
23288 Jiong Wang <jiong.wang@arm.com>
23289
23290 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23291 * config/aarch64/aarch64.c (aarch64_layout_frame)
23292 (aarch64_initial_elimination_offset): Likewise.
23293
23294 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23295
23296 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23297 Fix indentation.
23298
23299 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23300
23301 * machmode.h (bitwise_mode_for_mode): Declare.
23302 * stor-layout.h (bitwise_type_for_mode): Likewise.
23303 * stor-layout.c (bitwise_mode_for_mode): New function.
23304 (bitwise_type_for_mode): Likewise.
23305 * builtins.c (fold_builtin_memory_op): Use it instead of
23306 int_mode_for_mode and build_nonstandard_integer_type.
23307
23308 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23309
23310 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23311 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23312 (*-*-solaris2*): Simplify.
23313 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23314 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23315 *-*-solaris2.9* handling.
23316
23317 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23318 as bug.
23319 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23320 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23321 handling, simplify.
23322 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23323 * configure: Regenerate.
23324
23325 * config/i386/sol2-9.h: Remove.
23326
23327 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23328 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23329 Remove Solaris 9 references.
23330
23331 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23332
23333 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23334 (floatuns<GPI:mode><GPF:mode>2): Remove.
23335 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23336 and floatuns conversions.
23337 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23338 and floatuns conversions.
23339 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23340 (w1,w2): New mode attributes for inequal width conversions.
23341
23342 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23343
23344 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23345 the output asm format.
23346
23347 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23348
23349 * config/aarch64/aarch64-simd.md
23350 (aarch64_cm<optab>di): Always split.
23351 (*aarch64_cm<optab>di): New.
23352 (aarch64_cmtstdi): Always split.
23353 (*aarch64_cmtstdi): New.
23354
23355 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23356
23357 PR tree-optimization/60823
23358 * omp-low.c (ipa_simd_modify_function_body): Go through
23359 all SSA_NAMEs and for those refering to vector arguments
23360 which are going to be replaced adjust SSA_NAME_VAR and,
23361 if it is a default definition, change it into a non-default
23362 definition assigned at the beginning of function from new_decl.
23363 (ipa_simd_modify_stmt_ops): Rewritten.
23364 * tree-dfa.c (set_ssa_default_def): When removing default def,
23365 check for NULL loc instead of NULL *loc.
23366
23367 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23368
23369 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23370 restrictions on core registers for DImode values in Thumb2.
23371
23372 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23373
23374 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23375 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23376
23377 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23378
23379 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23380 (*iordi_notzesidi_di): Likewise.
23381 (*iordi_notsesidi_di): Likewise.
23382
23383 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23384
23385 * config/arm/arm-protos.h (tune_params): New struct members.
23386 * config/arm/arm.c: Initialise tune_params per processor.
23387 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
23388 for speed, based on new tune_params.
23389
23390 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23391
23392 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
23393 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
23394 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
23395 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
23396 * config/aarch64/arm_neon.h (vrnd_f64): Added.
23397 (vrnda_f64): Likewise.
23398 (vrndi_f64): Likewise.
23399 (vrndm_f64): Likewise.
23400 (vrndn_f64): Likewise.
23401 (vrndp_f64): Likewise.
23402 (vrndx_f64): Likewise.
23403
23404 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23405
23406 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
23407 GET_MODE_SIZE argument is enum machine_mode.
23408
23409 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23410
23411 PR target/60910
23412 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
23413 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
23414
23415 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
23416
23417 PR middle-end/60281
23418 * asan.c (asan_emit_stack_protection): Force the base to align to
23419 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
23420 appropriate bits if STRICT_ALIGNMENT.
23421 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
23422 when asan is on.
23423 (expand_used_vars): Leave a space in the stack frame for alignment
23424 if STRICT_ALIGNMENT.
23425
23426 2014-04-21 David Malcolm <dmalcolm@redhat.com>
23427
23428 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
23429 than a gimple.
23430 (gimple_store_p): Likewise.
23431 (gimple_assign_load_p): Likewise.
23432 (gimple_assign_cast_p): Likewise.
23433 (gimple_clobber_p): Likewise.
23434
23435 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
23436 rather than a gimple.
23437 (gimple_assign_cast_p): Likewise.
23438
23439 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23440
23441 PR target/60735
23442 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
23443 If mode is DDmode and TARGET_E500_DOUBLE allow move.
23444
23445 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
23446 more debug information for E500 if -mdebug=reg.
23447
23448 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
23449
23450 PR target/60909
23451 * config/i386/i386.c (ix86_expand_builtin)
23452 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
23453 register for target RTX.
23454 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
23455
23456 2014-04-18 Cong Hou <congh@google.com>
23457
23458 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
23459 the widen-mult pattern by handling two operands with different sizes,
23460 and operands whose size is smaller than half of the result type.
23461
23462 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23463
23464 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
23465 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
23466 (do_estimate_edge_time): Compute it.
23467 * ipa-inline.c (want_inline_small_function_p): Bypass
23468 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
23469
23470 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
23471
23472 * ipa-inline.c (spec_rem): New static variable.
23473 (dump_overall_stats): New function.
23474 (dump_inline_stats): New function.
23475
23476 2014-04-18 Richard Henderson <rth@redhat.com>
23477
23478 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
23479 to GET_MODE_SIZE, not a reg_class_t.
23480
23481 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23482
23483 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
23484 (vsx_xxmrglw_<mode>): Likewise.
23485
23486 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23487
23488 PR target/60876
23489 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23490 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23491 (rs6000_init_hard_regno_mode_ok): Likewise.
23492
23493 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23494
23495 * ipa-inline.c (inline_small_functions): Account only non-cold
23496 functions.
23497 * doc/invoke.texi (inline-unit-growth): Update documentation.
23498
23499 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23500
23501 * config/rs6000/rs6000.md (addti3, subti3): New.
23502
23503 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23504
23505 PR target/60863
23506 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23507 comment. Check optimize_insn_for_size_p instead of
23508 optimize_insn_for_speed_p.
23509
23510 2014-04-17 Martin Jambor <mjambor@suse.cz>
23511
23512 * gimple-iterator.c (gsi_start_edge): New function.
23513 * gimple-iterator.h (gsi_start_edge): Declare.
23514 * tree-sra.c (single_non_eh_succ): New function.
23515 (disqualify_ops_if_throwing_stmt): Renamed to
23516 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23517 having one non-EH successor BB.
23518 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23519 generate loads into replacements.
23520 (sra_modify_assign): Likewise and and also use the simple path for
23521 such statements.
23522 (sra_modify_function_body): Commit statements on edges.
23523
23524 2014-04-17 Richard Biener <rguenther@suse.de>
23525
23526 PR middle-end/60849
23527 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23528 comparison results and add clarifying comment.
23529
23530 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23531
23532 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23533 (blank_mode): Initialize it.
23534 (emit_mode_size_inline, emit_mode_nunits_inline,
23535 emit_mode_inner_inline): New functions.
23536 (emit_insn_modes_h): Call them and surround their output with
23537 #if GCC_VERSION >= 4001 ... #endif.
23538 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23539 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23540 mode_* arrays if the argument is __builtin_constant_p.
23541 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23542 is enum machine_mode.
23543
23544 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23545
23546 * passes.c (opt_pass::execute): Adjust.
23547 (pass_manager::execute_pass_mode_switching): Likewise.
23548 (early_local_passes::execute): Likewise.
23549 (execute_one_pass): Pass cfun to the pass's execute method.
23550 * tree-pass.h (opt_pass::execute): Add function * argument.
23551 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23552 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23553 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23554 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23555 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23556 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23557 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23558 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23559 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23560 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23561 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23562 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23563 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23564 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23565 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23566 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23567 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23568 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23569 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23570 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23571 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23572 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23573 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23574 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23575 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23576 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23577 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23578 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23579 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23580 Adjust.
23581
23582 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23583
23584 * passes.c (opt_pass::gate): Take function * argument.
23585 (gate_all_early_local_passes): Merge into
23586 (early_local_passes::gate): this.
23587 (gate_all_early_optimizations): Merge into
23588 (all_early_optimizations::gate): this.
23589 (gate_all_optimizations): Mege into
23590 (all_optimizations::gate): this.
23591 (gate_all_optimizations_g): Merge into
23592 (all_optimizations_g::gate): this.
23593 (gate_rest_of_compilation): Mege into
23594 (rest_of_compilation::gate): this.
23595 (gate_postreload): Merge into
23596 (postreload::gate): this.
23597 (dump_one_pass): Pass cfun to the pass's gate method.
23598 (execute_ipa_summary_passes): Likewise.
23599 (execute_one_pass): Likewise.
23600 (ipa_write_summaries_2): Likewise.
23601 (ipa_write_optimization_summaries_1): Likewise.
23602 (ipa_read_summaries_1): Likewise.
23603 (ipa_read_optimization_summaries_1): Likewise.
23604 (execute_ipa_stmt_fixups): Likewise.
23605 * tree-pass.h (opt_pass::gate): Add function * argument.
23606 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23607 combine-stack-adj.c, combine.c, compare-elim.c,
23608 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23609 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23610 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23611 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
23612 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23613 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23614 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23615 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23616 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23617 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23618 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23619 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23620 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23621 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23622 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23623 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23624 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23625 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23626 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23627 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23628 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23629 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23630 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23631 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23632 var-tracking.c, vtable-verify.c, web.c: Adjust.
23633
23634 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23635
23636 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23637 * configure: Regenerate.
23638
23639 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23640
23641 * passes.c (dump_one_pass): don't check pass->has_gate.
23642 (execute_ipa_summary_passes): Likewise.
23643 (execute_one_pass): Likewise.
23644 (ipa_write_summaries_2): Likewise.
23645 (ipa_write_optimization_summaries_1): Likewise.
23646 (ipa_read_optimization_summaries_1): Likewise.
23647 (execute_ipa_stmt_fixups): Likewise.
23648 * tree-pass.h (pass_data::has_gate): Remove.
23649 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23650 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23651 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23652 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23653 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23654 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23655 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23656 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23657 gimple-low.c, gimple-ssa-isolate-paths.c,
23658 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23659 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23660 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23661 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23662 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23663 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23664 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23665 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23666 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23667 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23668 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23669 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23670 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23671 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23672 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23673 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23674 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23675 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23676 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23677 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23678 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23679 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23680 Adjust.
23681
23682 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23683
23684 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23685 declaration.
23686 * passes.c (pass_manager::register_dump_files_1): Merge into
23687 (pass_manager::register_dump_files): this, and remove its handling of
23688 properties since the pass always has the properties anyway.
23689 (pass_manager::pass_manager): Adjust.
23690
23691 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23692
23693 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23694 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23695 dealing with properties.
23696 (pass_manager::register_dump_files): Adjust.
23697
23698 2014-03-20 Mark Wielaard <mjw@redhat.com>
23699
23700 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23701 then represent the bound as normal constant value.
23702
23703 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23704
23705 PR target/60847
23706 Forward port from 4.8 branch
23707 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23708
23709 * config/i386/bmiintrin.h (_blsi_u32): New.
23710 (_blsi_u64): Ditto.
23711 (_blsr_u32): Ditto.
23712 (_blsr_u64): Ditto.
23713 (_blsmsk_u32): Ditto.
23714 (_blsmsk_u64): Ditto.
23715 (_tzcnt_u32): Ditto.
23716 (_tzcnt_u64): Ditto.
23717
23718 2014-04-17 Kito Cheng <kito@0xlab.org>
23719
23720 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23721
23722 2014-04-17 Richard Biener <rguenther@suse.de>
23723
23724 PR middle-end/60849
23725 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23726 boolean results for comparisons.
23727
23728 2014-04-17 Richard Biener <rguenther@suse.de>
23729
23730 PR tree-optimization/60836
23731 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23732 initial PHI args to be gimple values.
23733
23734 2014-04-17 Richard Biener <rguenther@suse.de>
23735
23736 PR tree-optimization/60841
23737 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23738 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23739 of stmts to SLP build.
23740 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23741 (vect_analyze_slp): Likewise.
23742 (vect_analyze_slp_instance): Likewise.
23743 (vect_build_slp_tree): Limit overall SLP tree growth.
23744 * tree-vectorizer.h (vect_analyze_data_refs,
23745 vect_analyze_slp): Adjust prototypes.
23746
23747 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23748
23749 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23750 Silvermont.
23751
23752 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23753
23754 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23755 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23756 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23757 for TARGET_SLOW_PSHUFB
23758
23759 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23760
23761 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23762 * config/i386/i386.c (intel_cost): Ditto.
23763
23764 2014-04-17 Joey Ye <joey.ye@arm.com>
23765
23766 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23767
23768 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23769
23770 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23771 with -fuse-profile.
23772
23773 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23774
23775 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23776 (type_all_derivations_known_p): New predicate.
23777 (type_all_ctors_visible_p): New predicate.
23778 (type_possibly_instantiated_p): New predicate.
23779 (get_odr_type): Compute all_derivations_known.
23780 (dump_odr_type): Dump the flag.
23781 (maybe_record_type): Cleanup.
23782 (record_target_from_binfo): Add bases_to_consider array;
23783 record bases for types w/o instances and skip CXX destructor.
23784 (possible_polymorphic_call_targets_1): Add bases_to_consider
23785 and consider_construction parameters; check if type may have instance.
23786 (get_polymorphic_call_info): Set maybe_in_construction to true
23787 when we know nothing.
23788 (record_targets_from_bases): Skip CXX destructors; they are
23789 never called for types in construction.
23790 (possible_polymorphic_call_targets): Do not record target when
23791 type may not have instance.
23792
23793 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23794
23795 PR ipa/60854
23796 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23797 external aliases alive, too.
23798
23799 2014-04-16 Andrew Pinski <apinski@cavium.com>
23800
23801 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23802 definition.
23803
23804 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23805
23806 * final.c (compute_alignments): Do not apply loop alignment to a block
23807 falling through to the exit.
23808
23809 2014-04-16 Catherine Moore <clm@codesourcery.com>
23810
23811 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23812 Adjust constraints for microMIPS store patterns.
23813
23814 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23815
23816 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23817
23818 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23819
23820 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23821 (append_use): Run at -O0.
23822 (append_vdef): Likewise.
23823 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23824 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23825
23826 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23827
23828 PR tree-optimization/60844
23829 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23830 (propagate_op_to_single_use, remove_visited_stmt_chain,
23831 linearize_expr, repropagate_negates, reassociate_bb): Use it
23832 instead of gsi_remove.
23833
23834 2014-04-16 Martin Jambor <mjambor@suse.cz>
23835
23836 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23837 ipa_transforms_to_apply.
23838 (cgraph_function_versioning): Assert that old_node has empty
23839 ipa_transforms_to_apply.
23840 * trans-mem.c (ipa_tm_create_version): Likewise.
23841 * tree-inline.c (tree_function_versioning): Do not duplicate
23842 ipa_transforms_to_apply.
23843
23844 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23845
23846 PR target/60817
23847 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
23848 x86_64-*-* cases.
23849 Pass necessary as flags on 64-bit Solaris/x86.
23850 Use lowercase relocs for x86_64-*-*.
23851 * configure: Regenerate.
23852
23853 2014-04-15 Jan Hubicka <jh@suse.cz>
23854
23855 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
23856 (maybe_record_node, likely_target_p): Use it.
23857
23858 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23859
23860 PR target/60839
23861 Revert following patch
23862
23863 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23864
23865 PR target/60735
23866 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23867 software floating point or no floating point registers, do not
23868 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23869 in GPRs that occurs after we tested for GPRs that would never be
23870 true.
23871
23872 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23873 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23874 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23875 specifically allow DDmode, since that does not use the SPE SIMD
23876 instructions.
23877
23878 2014-03-21 Mark Wielaard <mjw@redhat.com>
23879
23880 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
23881 as unsigned or int depending on type and value used.
23882
23883 2014-04-15 Richard Biener <rguenther@suse.de>
23884
23885 PR rtl-optimization/56965
23886 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
23887 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
23888 ... here.
23889 * alias.c (true_dependence_1): Do not call
23890 nonoverlapping_component_refs_p.
23891 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
23892 nonoverlapping_component_refs_p.
23893 (indirect_refs_may_alias_p): Likewise.
23894
23895 2014-04-15 Teresa Johnson <tejohnson@google.com>
23896
23897 * cfg.c (dump_bb_info): Fix flags check.
23898 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
23899
23900 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23901
23902 PR rtl-optimization/60663
23903 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
23904 avoid 0 cost.
23905
23906 2014-04-15 Richard Biener <rguenther@suse.de>
23907
23908 * lto-streamer.h (LTO_major_version): Bump to 4.
23909
23910 2014-04-15 Richard Biener <rguenther@suse.de>
23911
23912 * common.opt (lto_partition_model): New enum.
23913 (flto-partition=): Merge separate options with a single with argument,
23914 add -flto-partition=one support.
23915 * flag-types.h (enum lto_partition_model): Declare.
23916 * opts.c (finish_options): Remove duplicate -flto-partition=
23917 option check.
23918 * lto-wrapper.c (run_gcc): Adjust.
23919
23920 2014-04-15 Richard Biener <rguenther@suse.de>
23921
23922 * alias.c (ncr_compar): New function.
23923 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
23924
23925 2014-04-15 Richard Biener <rguenther@suse.de>
23926
23927 * alias.c (record_component_aliases): Do not walk BINFOs.
23928
23929 2014-04-15 Richard Biener <rguenther@suse.de>
23930
23931 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23932 Add struct function argument and adjust.
23933 (find_func_aliases_for_call): Likewise.
23934 (find_func_aliases): Likewise.
23935 (find_func_clobbers): Likewise.
23936 (intra_create_variable_infos): Likewise.
23937 (compute_points_to_sets): Likewise.
23938 (ipa_pta_execute): Adjust. Do not push/pop cfun.
23939
23940 2014-04-15 Richard Biener <rguenther@suse.de>
23941
23942 * tree.c (iterative_hash_expr): Use enum tree_code_class
23943 to store TREE_CODE_CLASS.
23944 (tree_block): Likewise.
23945 (tree_set_block): Likewise.
23946 * tree.h (fold_build_pointer_plus_loc): Use
23947 convert_to_ptrofftype_loc.
23948
23949 2014-04-15 Jakub Jelinek <jakub@redhat.com>
23950
23951 PR plugins/59335
23952 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
23953 added in 4.9.
23954
23955 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
23956
23957 * cfgloop.h (struct loop): Move force_vectorize down.
23958 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
23959 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
23960 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
23961 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
23962 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
23963 * tree-core.h (enum annot_expr_kind): Add new kind values.
23964 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
23965 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
23966 kinds.
23967 * tree.def (ANNOTATE_EXPR): Tweak comment.
23968
23969 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23970
23971 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
23972 cxa_pure_virtual).
23973
23974 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
23975
23976 * tree.h (TYPE_IDENTIFIER): Declare.
23977 * tree.c (subrange_type_for_debug_p): Use it.
23978 * godump.c (go_format_type): Likewise.
23979 * dwarf2out.c (is_cxx_auto, modified_type_die,
23980 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
23981 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
23982
23983 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23984
23985 PR lto/60820
23986 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
23987
23988 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
23989
23990 * config/i386/i386.c (examine_argument): Return bool. Return true if
23991 parameter should be passed in memory.
23992 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
23993 (construct_container): Update calls to examine_argument.
23994 (function_arg_advance_64): Ditto.
23995 (return_in_memory_32): Merge with ix86_return_in_memory.
23996 (return_in_memory_64): Ditto.
23997 (return_in_memory_ms_64): Ditto.
23998
23999 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24000
24001 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24002 * coverage.c (coverage_compute_profile_id): Handle externally visible
24003 symbols.
24004
24005 2014-04-14 Martin Jambor <mjambor@suse.cz>
24006
24007 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24008 DECL_DISREGARD_INLINE_LIMITS functions.
24009
24010 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24011
24012 PR target/60827
24013 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24014
24015 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24016
24017 PR target/60827
24018 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24019 optimize_insn_for_speed_p instead of
24020 optimize_function_for_speed_p.
24021
24022 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24023
24024 * doc/invoke.texi (free): Document AArch64.
24025
24026 2014-04-14 Richard Biener <rguenther@suse.de>
24027
24028 PR tree-optimization/60042
24029 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24030 (insert_into_preds_of_block): Do not prevent PHI insertion
24031 for REFERENCE exprs here ...
24032 (eliminate_dom_walker::before_dom_children): ... but prevent
24033 their use here under similar conditions when applied to the
24034 IL after PRE optimizations.
24035
24036 2014-04-14 Richard Biener <rguenther@suse.de>
24037
24038 * passes.def: Move early points-to after early SRA.
24039
24040 2014-04-14 Richard Biener <rguenther@suse.de>
24041
24042 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24043 check for which sign-changes we allow when forwarding
24044 a converted value into a switch.
24045
24046 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24047
24048 * stor-layout.c (place_field): Finalize non-constant offset for the
24049 field, if any.
24050
24051 2014-04-14 Richard Biener <rguenther@suse.de>
24052
24053 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24054 as argument.
24055 (expand_switch_using_bit_tests_p): Likewise.
24056 (process_switch): Compute and pass on speed_p based on the
24057 switch stmt.
24058 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24059 optimize_bb_for_speed_p.
24060
24061 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24062
24063 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24064 * function.h (struct function): Rename has_force_vect_loops into
24065 has_force_vectorize_loops.
24066 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24067 (input_struct_function_base): Likewise.
24068 * lto-streamer-out.c (output_cfg): Likewise.
24069 (output_struct_function_base): Likewise.
24070 * omp-low.c (expand_omp_simd): Likewise.
24071 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24072 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24073 (version_loop_for_if_conversion): Likewise.
24074 (tree_if_conversion): Likewise.
24075 (main_tree_if_conversion): Likewise.
24076 (gate_tree_if_conversion): Likewise.
24077 * tree-inline.c (copy_loops): Likewise.
24078 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24079 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24080 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24081 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24082 * tree-vectorizer.c (vectorize_loops): Likewise.
24083 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24084
24085 2014-04-14 Richard Biener <rguenther@suse.de>
24086
24087 PR lto/60720
24088 * lto-streamer-out.c (wrap_refs): New function.
24089 (lto_output): Wrap symbol references in global initializes in
24090 type-preserving MEM_REFs.
24091
24092 2014-04-14 Christian Bruel <christian.bruel@st.com>
24093
24094 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24095
24096 2014-04-14 Christian Bruel <christian.bruel@st.com>
24097
24098 * config/sh/sh.md (setmemqi): New expand pattern.
24099 * config/sh/sh.h (CLEAR_RATIO): Define.
24100 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24101 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24102
24103 2014-04-14 Richard Biener <rguenther@suse.de>
24104
24105 PR middle-end/55022
24106 * fold-const.c (negate_expr_p): Don't negate directional rounding
24107 division.
24108 (fold_negate_expr): Likewise.
24109
24110 2014-04-14 Richard Biener <rguenther@suse.de>
24111
24112 PR tree-optimization/59817
24113 PR tree-optimization/60453
24114 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24115 recursion to catch all CHRECs in the scalar evolution and restrict
24116 the predicate for the remains appropriately.
24117
24118 2014-04-12 Catherine Moore <clm@codesourcery.com>
24119
24120 * config/mips/constraints.md: Add new register constraint "kb".
24121 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24122 (*movhi_internal): Likewise.
24123 (*movqi_internal): Likewise.
24124 * config/mips/mips.h (M16_STORE_REGS): New register class.
24125 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24126 (REG_CLASS_CONTENTS): Likewise.
24127 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24128
24129 2014-04-11 Tobias Burnus <burnus@net-b.de>
24130
24131 PR c/60194
24132 * doc/invoke.texi (-Wformat-signedness): Document it.
24133 (Wformat=2): Mention that this enables -Wformat-signedness.
24134
24135 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24136
24137 * common/config/epiphany/epiphany-common.c
24138 (epiphany_option_optimization_table): Enable section anchors by
24139 default at -O1 or higher.
24140 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24141 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24142 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24143 carries no extra cost.
24144 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24145 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24146 * config/epiphany/predicates.md (memclob_operand): New predicate.
24147 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24148 Use memclob_operand predicate and X constraint for operand 3.
24149
24150 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24151
24152 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24153 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24154 its operands.
24155
24156 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24157
24158 PR rtl-optimization/60651
24159 * mode-switching.c (optimize_mode_switching): Make sure to emit
24160 sets of a lower numbered entity before sets of a higher numbered
24161 entity to a mode of the same or lower priority.
24162 When creating a seginfo for a basic block that starts with a code
24163 label, move the insertion point past the code label.
24164 (new_seginfo): Document and enforce requirement that
24165 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24166 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24167 * doc/tm.texi: Regenerate.
24168
24169 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24170
24171 PR target/60811
24172 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24173
24174 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24175
24176 * BASE-VER: Set to 4.10.0.
24177
24178 2014-04-11 Tobias Burnus <burnus@net-b.de>
24179
24180 PR other/59055
24181 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24182 * doc/gcc.texi (Service): Update description in the @menu
24183 * doc/invoke.texi (Option Summary): Remove misplaced and
24184 duplicated @menu.
24185
24186 2014-04-11 Steve Ellcey <sellcey@mips.com>
24187 Jakub Jelinek <jakub@redhat.com>
24188
24189 PR middle-end/60556
24190 * expr.c (convert_move): Use emit_store_flag_force instead of
24191 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24192 argument to it.
24193
24194 2014-04-11 Richard Biener <rguenther@suse.de>
24195
24196 PR middle-end/60797
24197 * varasm.c (assemble_alias): Avoid endless error reporting
24198 recursion by setting TREE_ASM_WRITTEN.
24199
24200 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24201
24202 * config/s390/s390.md: Add a splitter for NOT rtx.
24203
24204 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24205
24206 PR rtl-optimization/60663
24207 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24208
24209 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24210 Jakub Jelinek <jakub@redhat.com>
24211
24212 PR lto/60567
24213 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24214 flag from decl_node to node.
24215
24216 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24217
24218 PR debug/60655
24219 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24220 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24221 ameliorating the cases where it can be.
24222
24223 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24224
24225 Revert
24226 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24227
24228 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24229 (loadsync_<mode>): Change mode.
24230 (load_quadpti, store_quadpti): New.
24231 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24232 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24233 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24234
24235 2014-04-09 Cong Hou <congh@google.com>
24236
24237 PR testsuite/60773
24238 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24239 documentation.
24240
24241 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24242
24243 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24244 instead of vnor to exploit possible fusion opportunity in the
24245 future.
24246 (altivec_expand_vec_perm_const_le): Likewise.
24247
24248 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24249
24250 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24251 (loadsync_<mode>): Change mode.
24252 (load_quadpti, store_quadpti): New.
24253 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24254 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24255
24256 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24257
24258 PR target/60763
24259 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24260 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24261 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24262
24263 2014-04-08 Richard Biener <rguenther@suse.de>
24264
24265 PR middle-end/60706
24266 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24267 a 64bit widest int print double-int similar to on HWI64 hosts.
24268
24269 2014-04-08 Richard Biener <rguenther@suse.de>
24270
24271 PR tree-optimization/60785
24272 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24273 default defs properly.
24274
24275 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24276
24277 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24278 (Weffc++): Likewise.
24279
24280 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24281
24282 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24283 set completep to false rather than true.
24284
24285 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24286
24287 PR target/60504
24288 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24289 ARM_TARGET2_DWARF_FORMAT.
24290
24291 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24292
24293 PR target/60609
24294 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24295 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24296 ADDR_DIFF_VEC.
24297
24298 2014-04-07 Richard Biener <rguenther@suse.de>
24299
24300 PR tree-optimization/60766
24301 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24302 (may_eliminate_iv): Convert cand_value_at result to desired type.
24303
24304 2014-04-07 Jason Merrill <jason@redhat.com>
24305
24306 PR c++/60731
24307 * common.opt (-fno-gnu-unique): Add.
24308 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24309
24310 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24311
24312 * haifa-sched.c: Fix outdated function reference and minor
24313 grammar errors in introductory comment.
24314
24315 2014-04-07 Richard Biener <rguenther@suse.de>
24316
24317 PR middle-end/60750
24318 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24319 for noreturn calls.
24320 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24321
24322 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24323
24324 PR debug/55794
24325 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24326 size accounting for thunks.
24327 (pa_asm_output_mi_thunk): Use final_start_function() and
24328 final_end_function() to output function start and end directives.
24329
24330 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24331
24332 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24333 device specific ISA/ feature information. Remove short_sp and
24334 errata_skip ds. Add avr_device_specific_features enum to have device
24335 specific info.
24336 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24337 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24338 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24339 updated device specific info.
24340 * config/avr/avr-mcus.def: Merge device specific details to
24341 dev_attribute field.
24342 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24343 errata_skip.
24344 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24345 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24346 assembler if RMW isa supported by current device.
24347 * config/avr/genmultilib.awk: Update as device info structure changed.
24348 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24349
24350 2014-04-04 Cong Hou <congh@google.com>
24351
24352 PR tree-optimization/60656
24353 * tree-vect-stmts.c (supportable_widening_operation):
24354 Fix a bug that elements in a vector with vect_used_by_reduction
24355 property are incorrectly reordered when the operation on it is not
24356 consistant with the one in reduction operation.
24357
24358 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24359
24360 PR rtl-optimization/60155
24361 * gcse.c (record_set_data): New function.
24362 (single_set_gcse): New function.
24363 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24364 (hoist_code): Likewise.
24365 (get_pressure_class_and_nregs): Likewise.
24366
24367 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24368
24369 * explow.c (probe_stack_range): Emit a final optimization blockage.
24370
24371 2014-04-04 Anthony Green <green@moxielogic.com>
24372
24373 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24374 typos.
24375
24376 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24377
24378 PR ipa/59626
24379 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24380 flags are set only during streaming.
24381 * ipa.c (process_references, walk_polymorphic_call_targets,
24382 symtab_remove_unreachable_nodes): Drop bodies of always inline
24383 after early inlining.
24384 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
24385
24386 2014-04-04 Jakub Jelinek <jakub@redhat.com>
24387 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24388
24389 PR debug/60655
24390 * dwarf2out.c (const_ok_for_output_1): Reject expressions
24391 containing a NOT.
24392
24393 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24394
24395 PR bootstrap/60743
24396 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
24397 duration.
24398 (cortex_a53_fdivd): Likewise.
24399
24400 2014-04-04 Martin Jambor <mjambor@suse.cz>
24401
24402 PR ipa/60640
24403 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
24404 Adjust all callers.
24405 * cgraph.c (clone_of_p): Also return true if thunks match.
24406 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
24407 cgraph_function_or_thunk_node and an obsolete comment.
24408 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
24409 file.
24410 (build_function_decl_skip_args): Likewise.
24411 (set_new_clone_decl_and_node_flags): New function.
24412 (duplicate_thunk_for_node): Likewise.
24413 (redirect_edge_duplicating_thunks): Likewise.
24414 (cgraph_clone_node): New parameter args_to_skip, pass it to
24415 redirect_edge_duplicating_thunks which is called instead of
24416 cgraph_redirect_edge_callee.
24417 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
24418 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
24419
24420 2014-04-04 Jeff Law <law@redhat.com>
24421
24422 PR target/60657
24423 * config/arm/predicates.md (const_int_I_operand): New predicate.
24424 (const_int_M_operand): Similarly.
24425 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
24426 const_int_operand.
24427 (insv_t2, extv_reg, extzv_t2): Likewise.
24428 (load_multiple_with_writeback): Similarly for const_int_I_operand.
24429 (pop_multiple_with_writeback_and_return): Likewise.
24430 (vfp_pop_multiple_with_writeback): Likewise
24431
24432 2014-04-04 Richard Biener <rguenther@suse.de>
24433
24434 PR ipa/60746
24435 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
24436 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
24437 non-GIMPLE_LABELs.
24438 * gimplify.h (gimple_add_tmp_var_fn): Declare.
24439 * gimplify.c (gimple_add_tmp_var_fn): New function.
24440 * gimple-expr.h (create_tmp_reg_fn): Declare.
24441 * gimple-expr.c (create_tmp_reg_fn): New function.
24442 * gimple-low.c (record_vars_into): Don't change cfun.
24443 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
24444 code generation without cfun.
24445
24446 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
24447
24448 PR bootstrap/60719
24449 * Makefile.in (install-driver): Fix shell scripting.
24450
24451 2014-04-03 Cong Hou <congh@google.com>
24452
24453 PR tree-optimization/60505
24454 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
24455 threshold of number of iterations below which no vectorization
24456 will be done.
24457 * tree-vect-loop.c (new_loop_vec_info):
24458 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
24459 * tree-vect-loop.c (vect_analyze_loop_operations):
24460 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
24461 * tree-vect-loop.c (vect_transform_loop):
24462 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
24463 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
24464 of iterations of the loop and see if we should build the epilogue.
24465
24466 2014-04-03 Richard Biener <rguenther@suse.de>
24467
24468 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
24469 (streamer_tree_cache_create): Adjust.
24470 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
24471 to allow optional nodes array.
24472 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
24473 (streamer_tree_cache_append): Likewise.
24474 (streamer_tree_cache_create): Create nodes array optionally
24475 as specified by parameter.
24476 * lto-streamer-out.c (create_output_block): Avoid maintaining
24477 the node array in the writer cache.
24478 (DFS_write_tree): Remove assertion.
24479 (produce_asm_for_decls): Free the out decl state hash table early.
24480 * lto-streamer-in.c (lto_data_in_create): Adjust for
24481 streamer_tree_cache_create prototype change.
24482
24483 2014-04-03 Richard Biener <rguenther@suse.de>
24484
24485 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24486 set TREE_CHAIN to NULL_TREE.
24487
24488 2014-04-03 Richard Biener <rguenther@suse.de>
24489
24490 PR tree-optimization/60740
24491 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24492 over all GIMPLE_COND operands.
24493
24494 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24495
24496 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24497 (Weffc++): Remove Scott's numbering, merge lists and reference
24498 Wnon-virtual-dtor.
24499
24500 2014-04-03 Nick Clifton <nickc@redhat.com>
24501
24502 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24503 properly.
24504
24505 2014-04-03 Martin Jambor <mjambor@suse.cz>
24506
24507 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24508 mention gcc_unreachable before failing.
24509 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24510 removed symbols.
24511
24512 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24513
24514 PR ipa/60659
24515 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24516 inconsistent code and instead mark the context inconsistent.
24517 (possible_polymorphic_call_targets): For inconsistent contexts
24518 return empty complete list.
24519
24520 2014-04-02 Anthony Green <green@moxielogic.com>
24521
24522 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24523 (extendqisi2, extendhisi2): Define.
24524 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24525 (WCHAR_TYPE): Change to unsigned int.
24526
24527 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24528
24529 PR tree-optimization/60733
24530 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24531 insertion point for PHI candidates to be the end of the feeding
24532 block for the PHI argument.
24533
24534 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24535
24536 PR rtl-optimization/60650
24537 * lra-constraints.c (process_alt_operands): Decrease reject for
24538 earlyclobber matching.
24539
24540 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24541
24542 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24543
24544 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24545
24546 * config/spu/spu.c (pad_bb): Do not crash when the last
24547 insn is CODE_FOR_blockage.
24548
24549 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24550
24551 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24552 lies outside the target mode.
24553
24554 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24555
24556 PR target/60735
24557 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24558 software floating point or no floating point registers, do not
24559 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24560 in GPRs that occurs after we tested for GPRs that would never be
24561 true.
24562
24563 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24564 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24565 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24566 specifically allow DDmode, since that does not use the SPE SIMD
24567 instructions.
24568
24569 2014-04-02 Richard Biener <rguenther@suse.de>
24570
24571 PR middle-end/60729
24572 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24573 MODE_INTs. Properly use negv_optab.
24574 (expand_abs): Likewise.
24575
24576 2014-04-02 Richard Biener <rguenther@suse.de>
24577
24578 PR bootstrap/60719
24579 * Makefile.in (install-driver): Guard extra installs with special
24580 names properly.
24581
24582 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
24583
24584 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24585 Document vec_vgbbd.
24586
24587 2014-04-01 Richard Henderson <rth@redhat.com>
24588
24589 PR target/60704
24590 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24591 alternative enabled before register allocation.
24592
24593 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
24594
24595 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24596 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24597 typo.
24598 (nios2_large_got_address): Remove unneeded 'sym' parameter.
24599 (nios2_got_address): Update nios2_large_got_address call site.
24600 (nios2_delegitimize_address): New function.
24601 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24602 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24603 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24604
24605 2014-04-01 Martin Husemann <martin@duskware.de>
24606
24607 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24608 for -mabi=32.
24609
24610 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
24611
24612 PR rtl-optimization/60604
24613 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24614 check from register_operand.
24615 (register_operand): Redefine in terms of general_operand.
24616 (nonmemory_operand): Use register_operand for the non-constant cases.
24617
24618 2014-04-01 Richard Biener <rguenther@suse.de>
24619
24620 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24621
24622 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
24623
24624 * doc/invoke.texi (mapp-regs): Clarify.
24625
24626 2014-03-31 Ulrich Drepper <drepper@gmail.com>
24627
24628 * config/i386/avx512fintrin.h (__v32hi): Define type.
24629 (__v64qi): Likewise.
24630 (_mm512_set1_epi8): Define.
24631 (_mm512_set1_epi16): Define.
24632 (_mm512_set4_epi32): Define.
24633 (_mm512_set4_epi64): Define.
24634 (_mm512_set4_pd): Define.
24635 (_mm512_set4_ps): Define.
24636 (_mm512_setr4_epi64): Define.
24637 (_mm512_setr4_epi32): Define.
24638 (_mm512_setr4_pd): Define.
24639 (_mm512_setr4_ps): Define.
24640 (_mm512_setzero_epi32): Define.
24641
24642 2014-03-31 Martin Jambor <mjambor@suse.cz>
24643
24644 PR middle-end/60647
24645 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24646 callsite_arguments_match_p. Updated all callers. Also check types of
24647 corresponding formal parameters and actual arguments.
24648 (not_all_callers_have_enough_arguments_p) Renamed to
24649 some_callers_have_mismatched_arguments_p.
24650
24651 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24652
24653 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24654
24655 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24656
24657 PR target/60034
24658 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24659 section anchor.
24660
24661 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24662
24663 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24664 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24665 Split out
24666 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24667 Use FMAMODE_NOVF512 mode iterator.
24668 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24669 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24670 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24671 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24672 Split out
24673 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24674 Use VF_128_256 mode iterator.
24675 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24676 Ditto.
24677
24678 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24679
24680 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24681 static chain if needed.
24682
24683 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24684
24685 PR target/60697
24686 * lra-constraints.c (index_part_to_reg): New.
24687 (process_address): Use it.
24688
24689 2014-03-27 Jeff Law <law@redhat.com>
24690 Jakub Jelinek <jakub@redhat.com>
24691
24692 PR target/60648
24693 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24694 gen_rtx_{PLUS,MULT} to build up the address expression.
24695
24696 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24697 creating non-canonical RTL.
24698
24699 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24700
24701 PR ipa/60243
24702 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24703 functions; reorganize to make cheap checks first.
24704 (inline_small_functions): Do not estimate growth when dumping;
24705 it is expensive.
24706 * ipa-inline.h (inline_summary): Add min_size.
24707 (growth_likely_positive): New function.
24708 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24709 (set_cond_stmt_execution_predicate): Cleanup.
24710 (estimate_edge_size_and_time): Compute min_size.
24711 (estimate_calls_size_and_time): Likewise.
24712 (estimate_node_size_and_time): Likewise.
24713 (inline_update_overall_summary): Update min_size.
24714 (do_estimate_edge_time): Likewise.
24715 (do_estimate_edge_size): Update.
24716 (do_estimate_edge_hints): Update.
24717 (growth_likely_positive): New function.
24718
24719 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24720
24721 PR target/60693
24722 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24723 also if addr has VOIDmode.
24724
24725 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24726
24727 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24728 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24729 Declare extern.
24730 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24731 instructions as well as AdvancedSIMD loads.
24732
24733 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24734
24735 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24736 Use crypto_aese type.
24737 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24738 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24739 crypto_aese, crypto_aesmc. Move to types.md.
24740 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24741 crypto_aesmc.
24742 * config/arm/iterators.md (crypto_type): Likewise.
24743
24744 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24745
24746 * cgraph.c: Include expr.h and tree-dfa.h.
24747 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24748 remove LHS.
24749
24750 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24751
24752 PR target/60675
24753 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24754 regs from checking multi-reg pseudos.
24755
24756 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24757
24758 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24759
24760 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24761
24762 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24763 if it would clobber the stack pointer, even temporarily.
24764
24765 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24766
24767 * mode-switching.c: Make small adjustments to the top comment.
24768
24769 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24770
24771 * config/rs6000/constraints.md (wD constraint): New constraint to
24772 match the constant integer to get the top DImode/DFmode out of a
24773 vector in a VSX register.
24774
24775 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24776 match the constant integer to get the top DImode/DFmode out of a
24777 vector in a VSX register.
24778
24779 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24780 for ISA 2.07.
24781
24782 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24783 vbpermq builtins.
24784
24785 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24786 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24787
24788 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24789 Optimize vec_extract of 64-bit values, where the value being
24790 extracted is in the top word, where we can use scalar
24791 instructions. Add direct move and store support. Combine the big
24792 endian/little endian vector select load support into a single insn.
24793 (vsx_extract_<mode>_internal1): Likewise.
24794 (vsx_extract_<mode>_internal2): Likewise.
24795 (vsx_extract_<mode>_load): Likewise.
24796 (vsx_extract_<mode>_store): Likewise.
24797 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24798 combined into vsx_extract_<mode>_load.
24799 (vsx_extract_<mode>_one_le): Likewise.
24800
24801 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24802 define the top 64-bit vector element.
24803
24804 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24805 constraint.
24806
24807 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24808 Document vec_vbpermq builtin.
24809
24810 PR target/60672
24811 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24812 enable use of xxsldwi and xxpermdi builtin functions.
24813 (vec_xxpermdi): Likewise.
24814
24815 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24816 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24817
24818 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24819
24820 PR rtl-optimization/60650
24821 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24822 first_p. Use it.
24823 (find_spills_for): New.
24824 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24825 Spill all pseudos on the second iteration.
24826
24827 2014-03-27 Marek Polacek <polacek@redhat.com>
24828
24829 PR c/50347
24830 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24831 types.
24832
24833 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24834
24835 * config/s390/s390.c (s390_can_use_return_insn): Check for
24836 call-saved FPRs on 31 bit.
24837
24838 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24839
24840 PR middle-end/60682
24841 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24842 if they need regimplification, just drop them instead of
24843 calling gimple_regimplify_operands on them.
24844
24845 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
24846
24847 PR target/60580
24848 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
24849 (aarch64_frame_pointer_required): Adjust logic.
24850 (aarch64_can_eliminate): Adjust logic.
24851 (aarch64_override_options_after_change): Adjust logic.
24852
24853 2014-03-27 Dehao Chen <dehao@google.com>
24854
24855 * ipa-inline.c (early_inliner): Update node's inline info.
24856
24857 2014-03-26 Dehao Chen <dehao@google.com>
24858
24859 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
24860 compiler inserted conditional jumps for NAN float check.
24861
24862 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24863
24864 * ubsan.h (ubsan_create_data): Change second argument's type
24865 to const location_t *.
24866 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
24867 _("<unknown>").
24868 (ubsan_create_data): Change second argument to const location_t *PLOC.
24869 Create Loc field whenever PLOC is non-NULL.
24870 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
24871 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
24872 callers.
24873
24874 PR other/59545
24875 * real.c (real_to_integer2): Change type of low to UHWI.
24876
24877 2014-03-26 Tobias Burnus <burnus@net-b.de>
24878
24879 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
24880 (CILK_SELF_SPECS): New define.
24881 (driver_self_specs): Use it.
24882
24883 2014-03-26 Richard Biener <rguenther@suse.de>
24884
24885 * tree-pretty-print.c (percent_K_format): Implement special
24886 case for LTO and its stripped down BLOCK tree.
24887
24888 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24889
24890 PR sanitizer/60636
24891 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
24892
24893 * tree-vrp.c (simplify_internal_call_using_ranges): If only
24894 one range is range_int_cst_p, but not both, at least optimize
24895 addition/subtraction of 0 and multiplication by 0 or 1.
24896 * gimple-fold.c (gimple_fold_call): Fold
24897 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
24898 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
24899 INTEGER_CSTs, try to fold at least x * 0 and y - y.
24900
24901 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
24902
24903 PR rtl-optimization/60452
24904 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
24905 <case REG>: Return 1 for invalid offsets from the frame pointer.
24906
24907 2014-03-26 Marek Polacek <polacek@redhat.com>
24908
24909 PR c/37428
24910 * doc/extend.texi (C Extensions): Mention variable-length arrays in
24911 a structure/union.
24912
24913 2014-03-26 Marek Polacek <polacek@redhat.com>
24914
24915 PR c/39525
24916 * doc/extend.texi (Designated Inits): Describe what happens to omitted
24917 field members.
24918
24919 2014-03-26 Marek Polacek <polacek@redhat.com>
24920
24921 PR other/59545
24922 * ira-color.c (update_conflict_hard_regno_costs): Perform the
24923 multiplication in unsigned type.
24924
24925 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24926
24927 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
24928
24929 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24930
24931 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
24932
24933 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24934
24935 PR ipa/60315
24936 * cif-code.def (UNREACHABLE) New code.
24937 * ipa-inline.c (inline_small_functions): Skip edges to
24938 __builtlin_unreachable.
24939 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
24940 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
24941 predicate to __bulitin_unreachable.
24942 (set_cond_stmt_execution_predicate): Fix issue when
24943 invert_tree_comparison returns ERROR_MARK.
24944 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
24945 propagate to inline clones.
24946 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
24947 to unreachable.
24948 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
24949 * cgraphclones.c (cgraph_clone_node): If call destination is already
24950 ureachable, do not redirect it back.
24951 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
24952 unreachable.
24953
24954 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24955
24956 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
24957 Do not modify inline clones.
24958
24959 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24960
24961 * config/i386/i386.md (general_sext_operand): New mode attr.
24962 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
24963 don't generate (sign_extend (const_int)).
24964 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
24965 operands[2]. Use We constraint instead of <i> and
24966 <general_sext_operand> predicate instead of <general_operand>.
24967 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
24968 * config/i386/constraints.md (We): New constraint.
24969 * config/i386/predicates.md (x86_64_sext_operand,
24970 sext_operand): New predicates.
24971
24972 2014-03-25 Martin Jambor <mjambor@suse.cz>
24973
24974 PR ipa/60600
24975 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
24976 inconsistent devirtualizations to __builtin_unreachable.
24977
24978 2014-03-25 Marek Polacek <polacek@redhat.com>
24979
24980 PR c/35449
24981 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
24982
24983 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
24984
24985 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
24986 order of elements for big-endian.
24987
24988 2014-03-25 Richard Biener <rguenther@suse.de>
24989
24990 PR middle-end/60635
24991 * gimplify-me.c (gimple_regimplify_operands): Update the
24992 re-gimplifed stmt.
24993
24994 2014-03-25 Martin Jambor <mjambor@suse.cz>
24995
24996 PR ipa/59176
24997 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
24998 (lto_output_varpool_node): Likewise.
24999 (input_overwrite_node): Likewise.
25000 (input_varpool_node): Likewise.
25001
25002 2014-03-25 Richard Biener <rguenther@suse.de>
25003
25004 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25005 (run_gcc): Likewise.
25006
25007 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25008
25009 * combine.c (simplify_compare_const): Add MODE argument.
25010 Handle mode_width 0 as very large mode_width.
25011 (try_combine, simplify_comparison): Adjust callers.
25012
25013 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25014 type to avoid signed integer overflow.
25015 * explow.c (plus_constant): Likewise.
25016
25017 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25018
25019 * doc/generic.texi: Correct typos.
25020
25021 2014-03-24 Tobias Burnus <burnus@net-b.de>
25022
25023 * doc/invoke.texi (-flto): Expand section about
25024 using static libraries with LTO.
25025
25026 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25027
25028 PR rtl-optimization/60501
25029 * optabs.def (addptr3_optab): New optab.
25030 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25031 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25032 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25033
25034 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25035
25036 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25037
25038 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25039
25040 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25041 _mm512_set1_pd.
25042
25043 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25044 (_mm256_undefined_ps): Define.
25045 (_mm256_undefined_pd): Define.
25046 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25047 (_mm_undefined_pd): Define.
25048 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25049 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25050 (_mm512_undefined_ps): Define.
25051 (_mm512_undefined_pd): Define.
25052 Use _mm*_undefined_*.
25053 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25054
25055 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25056
25057 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25058 (lshr_simd): DI mode added.
25059 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25060 (aarch64_ushr_simddi): Likewise.
25061 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25062 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25063 (vshrd_n_u64): Likewise.
25064
25065 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25066
25067 * Makefile.in (s-macro_list): Depend on cc1.
25068
25069 2014-03-23 Teresa Johnson <tejohnson@google.com>
25070
25071 * ipa-utils.c (ipa_print_order): Use specified dump file.
25072
25073 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25074
25075 PR rtl-optimization/60601
25076 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25077
25078 * gcc.c (eval_spec_function): Initialize save_growing_value.
25079
25080 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25081
25082 PR sanitizer/60613
25083 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25084 code == MINUS_EXPR, never swap op0 with op1.
25085
25086 * toplev.c (init_local_tick): Avoid signed integer multiplication
25087 overflow.
25088 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25089 shift by first operand's bitsize.
25090
25091 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25092
25093 PR target/60610
25094 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25095 redefine to 1 or 0.
25096 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25097 TARGET_ISA_64BIT_P(x).
25098
25099 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25100
25101 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25102 pattern for vector nor instead of subtract from splat(-1).
25103 (altivec_expand_vec_perm_const_le): Likewise.
25104
25105 2014-03-21 Richard Henderson <rth@twiddle.net>
25106
25107 PR target/60598
25108 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25109 related insns after epilogue_completed.
25110
25111 2014-03-21 Martin Jambor <mjambor@suse.cz>
25112
25113 PR ipa/59176
25114 * cgraph.h (symtab_node): New flag body_removed.
25115 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25116 when removing bodies.
25117 * symtab.c (dump_symtab_base): Dump body_removed flag.
25118 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25119 had their bodies removed.
25120
25121 2014-03-21 Martin Jambor <mjambor@suse.cz>
25122
25123 PR ipa/60419
25124 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25125 in the border.
25126
25127 2014-03-21 Richard Biener <rguenther@suse.de>
25128
25129 PR tree-optimization/60577
25130 * tree-core.h (struct tree_base): Document nothrow_flag use
25131 in DECL_NONALIASED.
25132 * tree.h (DECL_NONALIASED): New.
25133 (may_be_aliased): Adjust.
25134 * coverage.c (build_var): Set DECL_NONALIASED.
25135
25136 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25137
25138 * expr.c (expand_expr_real_1): Remove outdated comment.
25139
25140 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25141
25142 PR middle-end/60597
25143 * ira.c (adjust_cleared_regs): Call copy_rtx on
25144 *reg_equiv[REGNO (loc)].src_p before passing it to
25145 simplify_replace_fn_rtx.
25146
25147 PR target/60568
25148 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25149 into CONST, put pic register as first operand of PLUS. Use
25150 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25151
25152 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25153
25154 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25155
25156 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25157
25158 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25159 around for store forwarding issue in the FPU on the UT699.
25160 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25161 loads and operations if -mfix-ut699 is specified.
25162 (divtf3_hq): Tweak attribute.
25163 (sqrttf2_hq): Likewise.
25164
25165 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25166
25167 * calls.c (store_one_arg): Remove incorrect const qualification on the
25168 type of the temporary.
25169 * cfgexpand.c (expand_return): Likewise.
25170 * expr.c (expand_constructor): Likewise.
25171 (expand_expr_real_1): Likewise.
25172
25173 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25174
25175 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25176 of parts.
25177
25178 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25179
25180 PR target/60039
25181 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25182
25183 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25184
25185 * config/arm/aarch-common-protos.h
25186 (alu_cost_table): Fix spelling of "extend".
25187 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25188
25189 2014-03-19 Richard Biener <rguenther@suse.de>
25190
25191 PR middle-end/60553
25192 * tree-core.h (tree_type_common): Re-order pointer members
25193 to reduce recursion depth during GC walks.
25194
25195 2014-03-19 Marek Polacek <polacek@redhat.com>
25196
25197 PR sanitizer/60569
25198 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25199 before accessing it.
25200
25201 2014-03-19 Richard Biener <rguenther@suse.de>
25202
25203 PR lto/59543
25204 * lto-streamer-in.c (input_function): In WPA stage do not drop
25205 debug stmts.
25206
25207 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25208
25209 PR tree-optimization/60559
25210 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25211 with build_zero_cst assignment.
25212
25213 2014-03-18 Kai Tietz <ktietz@redhat.com>
25214
25215 PR rtl-optimization/56356
25216 * sdbout.c (sdbout_parms): Verify that parms'
25217 incoming argument is valid.
25218 (sdbout_reg_parms): Likewise.
25219
25220 2014-03-18 Richard Henderson <rth@redhat.com>
25221
25222 PR target/60562
25223 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25224 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25225 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25226
25227 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25228
25229 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25230 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25231 Italicize plugin event names in description. Explain that
25232 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25233 Remind that no GCC functions should be called after PLUGIN_FINISH.
25234 Explain what pragmas with expansion are.
25235
25236 2014-03-18 Martin Liska <mliska@suse.cz>
25237
25238 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25239 gimple call statement is update.
25240 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25241 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25242
25243 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25244
25245 PR sanitizer/60557
25246 * ubsan.c (ubsan_instrument_unreachable): Call
25247 initialize_sanitizer_builtins.
25248 (ubsan_pass): Likewise.
25249
25250 PR sanitizer/60535
25251 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25252 varpool_finalize_decl instead of rest_of_decl_compilation.
25253
25254 2014-03-18 Richard Biener <rguenther@suse.de>
25255
25256 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25257 by using bitmap_and_compl instead of bitmap_and_compl_into.
25258 (df_rd_transfer_function): Likewise.
25259
25260 2014-03-18 Richard Biener <rguenther@suse.de>
25261
25262 * doc/lto.texi (fresolution): Fix typo.
25263
25264 2014-03-18 Richard Biener <rguenther@suse.de>
25265
25266 * doc/invoke.texi (flto): Update for changes in 4.9.
25267
25268 2014-03-18 Richard Biener <rguenther@suse.de>
25269
25270 * doc/loop.texi: Remove section on the removed lambda framework.
25271 Update loop docs with recent changes in preserving loop structure.
25272
25273 2014-03-18 Richard Biener <rguenther@suse.de>
25274
25275 * doc/lto.texi (-fresolution): Document.
25276
25277 2014-03-18 Richard Biener <rguenther@suse.de>
25278
25279 * doc/contrib.texi: Adjust my name.
25280
25281 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25282
25283 PR ipa/58721
25284 * internal-fn.c: Include diagnostic-core.h.
25285 (expand_BUILTIN_EXPECT): New function.
25286 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25287 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25288 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25289 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25290 IFN_BUILTIN_EXPECT.
25291 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25292 Revert 3 argument __builtin_expect code.
25293 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25294 * gimple-fold.c (gimple_fold_call): Likewise.
25295 * tree.h (fold_builtin_expect): New prototype.
25296 * builtins.c (build_builtin_expect_predicate): Add predictor
25297 argument, if non-NULL, create 3 argument __builtin_expect.
25298 (fold_builtin_expect): No longer static. Add ARG2 argument,
25299 pass it through to build_builtin_expect_predicate.
25300 (fold_builtin_2): Adjust caller.
25301 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25302 * internal-fn.def (BUILTIN_EXPECT): New.
25303
25304 2014-03-18 Tobias Burnus <burnus@net-b.de>
25305
25306 PR ipa/58721
25307 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25308 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25309 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25310
25311 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25312
25313 PR ipa/58721
25314 * predict.c (combine_predictions_for_bb): Fix up formatting.
25315 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25316 fill what it points to if non-NULL.
25317 (tree_predict_by_opcode): Adjust caller, use the predictor.
25318 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25319
25320 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25321
25322 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25323 proper constant for the store mode.
25324
25325 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25326
25327 * symtab.c (change_decl_assembler_name): Fix transparent alias
25328 chain construction.
25329
25330 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25331
25332 * config/aarch64/aarch64.c: Correct the comments about the
25333 aarch64 stack layout.
25334
25335 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25336
25337 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25338 check for GF_OMP_FOR_KIND_FOR.
25339
25340 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25341
25342 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25343 ymm and zmm register names.
25344
25345 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25346
25347 PR target/60516
25348 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25349 note creation for the 2010-08-31 changes.
25350
25351 2014-03-17 Marek Polacek <polacek@redhat.com>
25352
25353 PR middle-end/60534
25354 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25355 as -fno-tree-loop-vectorize.
25356 (expand_omp_simd): Likewise.
25357
25358 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25359
25360 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25361 (eligible_for_call_delay): New prototype.
25362 * config/sparc/sparc.c (tls_call_delay): Rename into...
25363 (eligible_for_call_delay): ...this. Return false if the instruction
25364 cannot be put in the delay slot of a branch.
25365 (eligible_for_restore_insn): Simplify.
25366 (eligible_for_return_delay): Return false if the instruction cannot be
25367 put in the delay slot of a branch and simplify.
25368 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25369 put in the delay slot of a branch.
25370 * config/sparc/sparc.md (fix_ut699): New attribute.
25371 (tls_call_delay): Delete.
25372 (in_call_delay): Reimplement.
25373 (eligible_for_sibcall_delay): Rename into...
25374 (in_sibcall_delay): ...this.
25375 (eligible_for_return_delay): Rename into...
25376 (in_return_delay): ...this.
25377 (in_branch_delay): Reimplement.
25378 (in_uncond_branch_delay): Delete.
25379 (in_annul_branch_delay): Delete.
25380
25381 2014-03-14 Richard Henderson <rth@redhat.com>
25382
25383 PR target/60525
25384 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
25385 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
25386 (*floathi<X87MODEF>2_i387_with_temp): Remove.
25387 (floathi splitters): Remove.
25388 (float<SWI48x>xf2): New pattern.
25389 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
25390 code that tried to handle DImode for 32-bit, but which was excluded
25391 by the pattern's condition. Drop allocation of stack temporary.
25392 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
25393 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
25394 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
25395 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
25396 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
25397 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
25398 (*float<SWI48><MODEF>2_sse_interunit): Remove.
25399 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
25400 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
25401 (*float<SWI48x><X87MODEF>2_i387): Remove.
25402 (all float _with_temp splitters): Remove.
25403 (*float<SWI48x><MODEF>2_i387): New pattern.
25404 (*float<SWI48><MODEF>2_sse): New pattern.
25405 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
25406 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
25407
25408 2014-03-14 Jakub Jelinek <jakub@redhat.com>
25409 Marek Polacek <polacek@redhat.com>
25410
25411 PR middle-end/60484
25412 * common.opt (dump_base_name_prefixed): New Variable.
25413 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
25414 if x_dump_base_name_prefixed is already set, set it at the end.
25415
25416 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
25417
25418 PR rtl-optimization/60508
25419 * lra-constraints.c (get_reload_reg): Add new parameter
25420 in_subreg_p.
25421 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
25422 Pass the new parameter values.
25423
25424 2014-03-14 Richard Biener <rguenther@suse.de>
25425
25426 * common.opt: Revert unintented changes from r205065.
25427 * opts.c: Likewise.
25428
25429 2014-03-14 Richard Biener <rguenther@suse.de>
25430
25431 PR middle-end/60518
25432 * cfghooks.c (split_block): Properly adjust all loops the
25433 block was a latch of.
25434
25435 2014-03-14 Martin Jambor <mjambor@suse.cz>
25436
25437 PR lto/60461
25438 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
25439 and simplify it.
25440
25441 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
25442
25443 PR target/59396
25444 * config/avr/avr.c (avr_set_current_function): Pass function name
25445 through default_strip_name_encoding before sanity checking instead
25446 of skipping the first char of the assembler name.
25447
25448 2014-03-13 Richard Henderson <rth@redhat.com>
25449
25450 PR debug/60438
25451 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
25452 (ix86_force_to_memory, ix86_free_from_memory): Remove.
25453 * config/i386/i386-protos.h: Likewise.
25454 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
25455 in the expander instead of a splitter.
25456 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
25457 any possibility of requiring a memory.
25458 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
25459 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
25460 (fp branch splitters): Update for ix86_split_fp_branch.
25461 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
25462 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
25463 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
25464 (*fop_<MODEF>_2_i387): Remove f/r alternative.
25465 (*fop_<MODEF>_3_i387): Likewise.
25466 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
25467 (splitters for the fop_* register patterns): Remove.
25468 (fscalexf4_i387): Rename from *fscalexf4_i387.
25469 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
25470
25471 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25472
25473 PR tree-optimization/59779
25474 * tree-dfa.c (get_ref_base_and_extent): Use double_int
25475 type for bitsize and maxsize instead of HOST_WIDE_INT.
25476
25477 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
25478
25479 PR rtl-optimization/57320
25480 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
25481 the CFG after thread_prologue_and_epilogue_insns.
25482
25483 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
25484
25485 PR rtl-optimization/57189
25486 * lra-constraints.c (process_alt_operands): Disfavor spilling
25487 vector pseudos.
25488
25489 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25490
25491 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25492
25493 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25494
25495 PR tree-optimization/59025
25496 PR middle-end/60418
25497 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25498 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25499
25500 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25501
25502 PR target/60486
25503 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25504 calls of avr_out_plus_1.
25505
25506 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25507
25508 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25509 BB's single pred and update the father loop's latch info later.
25510
25511 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25512
25513 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25514 (VEC_M): Likewise.
25515 (VEC_N): Likewise.
25516 (VEC_R): Likewise.
25517 (VEC_base): Likewise.
25518 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25519 registers, we need to swap double words in little endian mode.
25520
25521 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25522 to be a container mode for 128-bit integer operations added in ISA
25523 2.07. Unlike TImode and PTImode, the preferred register set is
25524 the Altivec/VMX registers for the 128-bit operations.
25525
25526 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25527 declarations.
25528 (rs6000_split_128bit_ok_p): Likewise.
25529
25530 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25531 macros for creating ISA 2.07 normal and overloaded builtin
25532 functions with 3 arguments.
25533 (BU_P8V_OVERLOAD_3): Likewise.
25534 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25535 for use as overloaded functions.
25536 (VPERM_1TI_UNS): Likewise.
25537 (VSEL_1TI): Likewise.
25538 (VSEL_1TI_UNS): Likewise.
25539 (ST_INTERNAL_1ti): Likewise.
25540 (LD_INTERNAL_1ti): Likewise.
25541 (XXSEL_1TI): Likewise.
25542 (XXSEL_1TI_UNS): Likewise.
25543 (VPERM_1TI): Likewise.
25544 (VPERM_1TI_UNS): Likewise.
25545 (XXPERMDI_1TI): Likewise.
25546 (SET_1TI): Likewise.
25547 (LXVD2X_V1TI): Likewise.
25548 (STXVD2X_V1TI): Likewise.
25549 (VEC_INIT_V1TI): Likewise.
25550 (VEC_SET_V1TI): Likewise.
25551 (VEC_EXT_V1TI): Likewise.
25552 (EQV_V1TI): Likewise.
25553 (NAND_V1TI): Likewise.
25554 (ORC_V1TI): Likewise.
25555 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25556 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25557 overloaded builtin.
25558 (VADDUQM): Likewise.
25559 (VSUBCUQ): Likewise.
25560 (VADDEUQM): Likewise.
25561 (VADDECUQ): Likewise.
25562 (VSUBEUQM): Likewise.
25563 (VSUBECUQ): Likewise.
25564
25565 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25566 __int128_t and __uint128_t types.
25567 (__uint128_type): Likewise.
25568 (altivec_categorize_keyword): Add support for vector __int128_t,
25569 vector __uint128_t, vector __int128, and vector unsigned __int128
25570 as a container type for TImode operations that need to be done in
25571 VSX/Altivec registers.
25572 (rs6000_macro_to_expand): Likewise.
25573 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25574 to support 128-bit integer instructions vaddcuq, vadduqm,
25575 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25576 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25577
25578 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25579 for V1TImode, and set up preferences to use VSX/Altivec registers.
25580 Setup VSX reload handlers.
25581 (rs6000_debug_reg_global): Likewise.
25582 (rs6000_init_hard_regno_mode_ok): Likewise.
25583 (rs6000_preferred_simd_mode): Likewise.
25584 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25585 (easy_altivec_constant): Likewise.
25586 (output_vec_const_move): Likewise.
25587 (rs6000_expand_vector_set): Convert V1TImode set and extract to
25588 simple move.
25589 (rs6000_expand_vector_extract): Likewise.
25590 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25591 addressing.
25592 (rs6000_const_vec): Add support for V1TImode.
25593 (rs6000_emit_le_vsx_load): Swap double words when loading or
25594 storing TImode/V1TImode.
25595 (rs6000_emit_le_vsx_store): Likewise.
25596 (rs6000_emit_le_vsx_move): Likewise.
25597 (rs6000_emit_move): Add support for V1TImode.
25598 (altivec_expand_ld_builtin): Likewise.
25599 (altivec_expand_st_builtin): Likewise.
25600 (altivec_expand_vec_init_builtin): Likewise.
25601 (altivec_expand_builtin): Likewise.
25602 (rs6000_init_builtins): Add support for V1TImode type. Add
25603 support for ISA 2.07 128-bit integer builtins. Define type names
25604 for the VSX/Altivec vector types.
25605 (altivec_init_builtins): Add support for overloaded vector
25606 functions with V1TImode type.
25607 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25608 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25609 external function.
25610 (rs6000_split_128bit_ok_p): Likewise.
25611 (rs6000_handle_altivec_attribute): Create V1TImode from vector
25612 __int128_t and vector __uint128_t.
25613
25614 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25615 and mode attributes.
25616 (VSX_M): Likewise.
25617 (VSX_M2): Likewise.
25618 (VSm): Likewise.
25619 (VSs): Likewise.
25620 (VSr): Likewise.
25621 (VSv): Likewise.
25622 (VS_scalar): Likewise.
25623 (VS_double): Likewise.
25624 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25625
25626 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25627 we support the ISA 2.07 128-bit integer arithmetic instructions.
25628 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25629 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25630 and TImode types for use with the builtin functions.
25631 (V1TI_type_node): Likewise.
25632 (unsigned_V1TI_type_node): Likewise.
25633 (intTI_type_internal_node): Likewise.
25634 (uintTI_type_internal_node): Likewise.
25635
25636 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25637 128-bit builtin functions.
25638 (UNSPEC_VADDEUQM): Likewise.
25639 (UNSPEC_VADDECUQ): Likewise.
25640 (UNSPEC_VSUBCUQ): Likewise.
25641 (UNSPEC_VSUBEUQM): Likewise.
25642 (UNSPEC_VSUBECUQ): Likewise.
25643 (VM): Add V1TImode to vector mode iterators.
25644 (VM2): Likewise.
25645 (VI_unit): Likewise.
25646 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25647 (altivec_vaddcuq): Likewise.
25648 (altivec_vsubuqm): Likewise.
25649 (altivec_vsubcuq): Likewise.
25650 (altivec_vaddeuqm): Likewise.
25651 (altivec_vaddecuq): Likewise.
25652 (altivec_vsubeuqm): Likewise.
25653 (altivec_vsubecuq): Likewise.
25654
25655 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25656 mode iterators.
25657 (BOOL_128): Likewise.
25658 (BOOL_REGS_OUTPUT): Likewise.
25659 (BOOL_REGS_OP1): Likewise.
25660 (BOOL_REGS_OP2): Likewise.
25661 (BOOL_REGS_UNARY): Likewise.
25662 (BOOL_REGS_AND_CR0): Likewise.
25663
25664 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25665 128-bit integer builtin support.
25666 (vec_vadduqm): Likewise.
25667 (vec_vaddecuq): Likewise.
25668 (vec_vaddeuqm): Likewise.
25669 (vec_vsubecuq): Likewise.
25670 (vec_vsubeuqm): Likewise.
25671 (vec_vsubcuq): Likewise.
25672 (vec_vsubuqm): Likewise.
25673
25674 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25675 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25676 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25677 128-bit integer add/subtract to ISA 2.07.
25678
25679 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25680
25681 * config/arc/arc.c (arc_predicate_delay_insns):
25682 Fix third argument passed to conditionalize_nonjump.
25683
25684 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25685
25686 * config/aarch64/aarch64-builtins.c
25687 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25688 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25689 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25690 instead of __builtin_lfloor.
25691 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25692
25693 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25694
25695 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25696 (tree_ssa_ifcombine_bb_1): New function.
25697 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25698 is an empty forwarder block to then_bb or vice versa and then_bb
25699 and else_bb are effectively swapped.
25700
25701 2014-03-12 Christian Bruel <christian.bruel@st.com>
25702
25703 PR target/60264
25704 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25705 REG_CFA_DEF_CFA note.
25706 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25707 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25708
25709 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25710
25711 PR tree-optimization/60454
25712 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25713
25714 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25715
25716 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25717 Do not define target_cpu_default2 to generic.
25718 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25719 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25720 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25721
25722 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25723 Marc Glisse <marc.glisse@inria.fr>
25724
25725 PR tree-optimization/60502
25726 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25727 instead of build_low_bits_mask.
25728
25729 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25730
25731 PR middle-end/60482
25732 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25733 if there are multiple uses, but op doesn't live on E edge.
25734 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25735 clobber stmts before __builtin_unreachable.
25736
25737 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25738
25739 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25740 hard_frame_pointer_rtx.
25741 * cse.c (cse_insn): Remove volatile check.
25742 * cselib.c (cselib_process_insn): Likewise.
25743 * dse.c (scan_insn): Likewise.
25744
25745 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25746
25747 * config/arc/arc.c (conditionalize_nonjump): New function,
25748 broken out of ...
25749 (arc_ifcvt): ... this.
25750 (arc_predicate_delay_insns): Use it.
25751
25752 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25753
25754 * config/arc/predicates.md (extend_operand): During/after reload,
25755 allow const_int_operand.
25756 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25757 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25758 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25759 to "i".
25760 (umulsi3_highpart_i): Likewise.
25761
25762 2014-03-11 Richard Biener <rguenther@suse.de>
25763
25764 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25765 Add asserts to guard possible wrong-code bugs.
25766
25767 2014-03-11 Richard Biener <rguenther@suse.de>
25768
25769 PR tree-optimization/60429
25770 PR tree-optimization/60485
25771 * tree-ssa-structalias.c (set_union_with_increment): Properly
25772 take into account all fields that overlap the shifted vars.
25773 (do_sd_constraint): Likewise.
25774 (do_ds_constraint): Likewise.
25775 (get_constraint_for_ptr_offset): Likewise.
25776
25777 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25778
25779 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25780 (nios2_compute_frame_layout):
25781 Add calculation of cfun->machine->fp_save_offset.
25782 (nios2_expand_prologue): Correct setting of frame pointer register
25783 in prologue.
25784 (nios2_expand_epilogue): Update recovery of stack pointer from
25785 frame pointer accordingly.
25786 (nios2_initial_elimination_offset): Update calculation of offset
25787 for eliminating to HARD_FRAME_POINTER_REGNUM.
25788
25789 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25790
25791 PR ipa/60457
25792 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25793 cgraph_get_create_node on VAR_DECLs.
25794
25795 2014-03-10 Richard Biener <rguenther@suse.de>
25796
25797 PR middle-end/60474
25798 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25799
25800 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25801
25802 * config/vms/vms.opt (vms_float_format): New variable.
25803
25804 2014-03-08 Tobias Burnus <burnus@net-b.de>
25805
25806 * doc/invoke.texi (-fcilkplus): Update implementation status.
25807
25808 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25809 Richard Biener <rguenther@suse.de>
25810
25811 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25812 consistently accross all TUs.
25813 (run_gcc): Enable -fshort-double automatically at link at link-time
25814 and disallow override.
25815
25816 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25817
25818 PR target/58271
25819 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25820 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25821 if they can't be used.
25822
25823 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25824
25825 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25826 for Solaris 11/x86 ld.
25827 * configure: Regenerate.
25828
25829 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25830
25831 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25832 (LIB_TLS_SPEC): Save as ld_tls_libs.
25833 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25834 (HAVE_AS_IX86_TLSLDM): New test.
25835 * configure, config.in: Regenerate.
25836 * config/i386/i386.c (legitimize_tls_address): Fall back to
25837 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25838 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25839 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25840 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25841
25842 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25843
25844 * common.opt (fira-loop-pressure): Mark as optimization.
25845
25846 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
25847
25848 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
25849 an OpenMP mappable type.
25850
25851 2014-03-06 Matthias Klose <doko@ubuntu.com>
25852
25853 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
25854 MULTILIB_OSDIRNAMES is not defined.
25855
25856 2014-03-06 Jakub Jelinek <jakub@redhat.com>
25857 Meador Inge <meadori@codesourcery.com>
25858
25859 PR target/58595
25860 * config/arm/arm.c (arm_tls_symbol_p): Remove.
25861 (arm_legitimize_address): Call legitimize_tls_address for any
25862 arm_tls_referenced_p expression, handle constant addend. Call it
25863 before testing for !TARGET_ARM.
25864 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
25865
25866 2014-03-06 Richard Biener <rguenther@suse.de>
25867
25868 PR middle-end/60445
25869 PR lto/60424
25870 PR lto/60427
25871 Revert
25872 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25873
25874 * tree-streamer.c (record_common_node): Assert we don't record
25875 nodes with type double.
25876 (preload_common_node): Skip type double, complex double and double
25877 pointer since it is now frontend dependent due to fshort-double option.
25878
25879 2014-03-06 Richard Biener <rguenther@suse.de>
25880
25881 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
25882 or -fno-lto is specified and the linker has full plugin support.
25883 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
25884 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
25885 * lto-wrapper.c (merge_and_complain): Merge compile-time
25886 optimization levels.
25887 (run_gcc): And pass it through to the link options.
25888
25889 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
25890
25891 PR debug/60381
25892 Revert:
25893 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25894 PR debug/59992
25895 * cselib.c (remove_useless_values): Skip to avoid quadratic
25896 behavior if the condition moved from...
25897 (cselib_process_insn): ... here holds.
25898
25899 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25900
25901 PR plugins/59335
25902 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
25903 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
25904
25905 PR plugins/59335
25906 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
25907 (TM_H): Add x86-tune.def.
25908
25909 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25910
25911 * config/aarch64/aarch64.c (generic_tunings):
25912 Use cortexa57_extra_costs.
25913
25914 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25915
25916 PR lto/60404
25917 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
25918 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
25919 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
25920 cost for in_lto_p.
25921
25922 2014-03-04 Heiher <r@hev.cc>
25923
25924 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
25925 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
25926
25927 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
25928
25929 * config/i386/predicates.md (const2356_operand): Change to ...
25930 (const2367_operand): ... this.
25931 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
25932 const2367_operand.
25933 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25934 (*avx512pf_scatterpf<mode>sf): Ditto.
25935 (avx512pf_scatterpf<mode>df): Ditto.
25936 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25937 (*avx512pf_scatterpf<mode>df): Ditto.
25938 * config/i386/i386.c (ix86_expand_builtin): Update
25939 incorrect hint operand error message.
25940
25941 2014-03-04 Richard Biener <rguenther@suse.de>
25942
25943 * lto-section-in.c (lto_get_section_data): Fix const cast.
25944
25945 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25946
25947 * tree-streamer.c (record_common_node): Assert we don't record
25948 nodes with type double.
25949 (preload_common_node): Skip type double, complex double and double
25950 pointer since it is now frontend dependent due to fshort-double option.
25951
25952 2014-03-04 Richard Biener <rguenther@suse.de>
25953
25954 PR lto/60405
25955 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
25956 (lto_input_toplevel_asms): Likewise.
25957 * lto-section-in.c (lto_get_section_data): Instead do it here
25958 for every section.
25959
25960 2014-03-04 Richard Biener <rguenther@suse.de>
25961
25962 PR tree-optimization/60382
25963 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
25964 dead PHIs a reduction.
25965
25966 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
25967
25968 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
25969 hint value.
25970 (_mm_prefetch): Move out of GCC target("sse") pragma.
25971 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
25972 GCC target("prfchw") pragma.
25973 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
25974 for locality <= 2.
25975 * config/i386/i386.c (ix86_option_override_internal): Enable
25976 -mprfchw with -mprefetchwt1.
25977
25978 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25979
25980 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
25981 Mark as varying.
25982
25983 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25984
25985 * opts.h (CL_PCH_IGNORE): Define.
25986 * targhooks.c (option_affects_pch_p):
25987 Return false for options that have CL_PCH_IGNORE set.
25988 * opt-functions.awk: Process PchIgnore.
25989 * doc/options.texi: Document PchIgnore.
25990
25991 * config/arc/arc.opt (misize): Add PchIgnore property.
25992
25993 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25994
25995 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
25996 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
25997 constraint on constants to permit them being loaded into
25998 GENERAL_REGS or BASE_REGS.
25999
26000 2014-03-03 Nick Clifton <nickc@redhat.com>
26001
26002 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26003 anti-cacnonical alternatives.
26004 (negandhi3_real): New pattern.
26005 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26006
26007 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26008
26009 * config/avr/avr-mcus.def: Remove atxmega16x1.
26010 * config/avr/avr-tables.opt: Regenerate.
26011 * config/avr/t-multilib: Regenerate.
26012 * doc/avr-mmcu.texi: Regenerate.
26013
26014 2014-03-03 Tobias Grosser <tobias@grosser.es>
26015 Mircea Namolaru <mircea.namolaru@inria.fr>
26016
26017 PR tree-optimization/58028
26018 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26019 scalar dimensions.
26020
26021 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26022
26023 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26024 not handled by recognizers.
26025
26026 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26027
26028 PR middle-end/60175
26029 * function.c (expand_function_end): Don't emit
26030 clobber_return_register sequence if clobber_after is a BARRIER.
26031 * cfgexpand.c (construct_exit_block): Append instructions before
26032 return_label to prev_bb.
26033
26034 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26035
26036 * config/rs6000/constraints.md: Document reserved use of "wc".
26037
26038 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26039
26040 PR ipa/60150
26041 * ipa.c (function_and_variable_visibility): When dissolving comdat
26042 group, also set all symbols to local.
26043
26044 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26045
26046 PR ipa/60306
26047
26048 Revert:
26049 2013-12-14 Jan Hubicka <jh@suse.cz>
26050 PR middle-end/58477
26051 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26052
26053 2014-03-02 Jon Beniston <jon@beniston.com>
26054
26055 PR bootstrap/48230
26056 PR bootstrap/50927
26057 PR bootstrap/52466
26058 PR target/46898
26059 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26060 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26061 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26062 (simple_return, *simple_return): New patterns
26063 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26064 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26065
26066 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26067
26068 * dwarf2out.c (gen_subprogram_die): Tidy.
26069
26070 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26071
26072 PR target/60071
26073 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26074 (*mov_t_msb_neg_negc): ... this new insn.
26075
26076 2014-02-28 Jason Merrill <jason@redhat.com>
26077
26078 PR c++/58678
26079 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26080 function.
26081
26082 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26083
26084 PR c++/60314
26085 * dwarf2out.c (decltype_auto_die): New static.
26086 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26087 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26088 (is_cxx_auto): Likewise.
26089
26090 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26091
26092 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26093 we are not using general regs only.
26094
26095 2014-02-28 Richard Biener <rguenther@suse.de>
26096
26097 PR target/60280
26098 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26099 previous fix and only allow to remove trivial pre-headers
26100 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26101 (remove_forwarder_block): Properly update the latch of a loop.
26102
26103 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26104
26105 PR debug/59992
26106 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26107 (cselib_preserved_hash_table): New.
26108 (preserve_constants_and_equivs): Move preserved vals to it.
26109 (cselib_find_slot): Look it up first.
26110 (cselib_init): Initialize it.
26111 (cselib_finish): Release it.
26112 (dump_cselib_table): Dump it.
26113
26114 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26115
26116 PR debug/59992
26117 * cselib.c (remove_useless_values): Skip to avoid quadratic
26118 behavior if the condition moved from...
26119 (cselib_process_insn): ... here holds.
26120
26121 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26122
26123 PR debug/57232
26124 * var-tracking.c (vt_initialize): Apply the same condition to
26125 preserve the CFA base value.
26126
26127 2014-02-28 Joey Ye <joey.ye@arm.com>
26128
26129 PR target/PR60169
26130 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26131 if reload in progress or completed.
26132
26133 2014-02-28 Tobias Burnus <burnus@net-b.de>
26134
26135 PR middle-end/60147
26136 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26137 NAMELIST_DECL.
26138
26139 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26140
26141 * doc/tm.texi.in (Condition Code Status): Update documention for
26142 relative locations of cc0-setter and cc0-user.
26143
26144 2014-02-27 Jeff Law <law@redhat.com>
26145
26146 PR rtl-optimization/52714
26147 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26148 into two independent simple sets, if I3 is a jump, ensure the
26149 pattern we place into I3 is a (set (pc) ...).
26150
26151 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26152 Jeff Law <law@redhat.com>
26153
26154 PR rtl-optimization/49847
26155 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26156 are in different blocks.
26157 * doc/tm.texi (Condition Code Status): Update documention for
26158 relative locations of cc0-setter and cc0-user.
26159
26160 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26161
26162 PR target/59222
26163 * lra.c (lra_emit_add): Check SUBREG too.
26164
26165 2014-02-27 Andreas Schwab <schwab@suse.de>
26166
26167 * config/m68k/m68k.c (m68k_option_override): Disable
26168 -flive-range-shrinkage for classic m68k.
26169 (m68k_override_options_after_change): Likewise.
26170
26171 2014-02-27 Marek Polacek <polacek@redhat.com>
26172
26173 PR middle-end/59223
26174 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26175 -Wmaybe-uninitialized.
26176
26177 2014-02-27 Alan Modra <amodra@gmail.com>
26178
26179 PR target/57936
26180 * reload1.c (emit_input_reload_insns): When reload_override_in,
26181 set old to rl->in_reg when rl->in_reg is a subreg.
26182
26183 2014-02-26 Richard Biener <rguenther@suse.de>
26184
26185 PR bootstrap/60343
26186 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26187
26188 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26189
26190 * common/config/i386/predicates.md (const1256_operand): Remove.
26191 (const2356_operand): New.
26192 (const_1_to_2_operand): Remove.
26193 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26194 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26195 (*avx512pf_gatherpf<mode>sf): Ditto.
26196 (avx512pf_gatherpf<mode>df): Ditto.
26197 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26198 (*avx512pf_gatherpf<mode>df): Ditto.
26199 (avx512pf_scatterpf<mode>sf): Ditto.
26200 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26201 (*avx512pf_scatterpf<mode>sf): Ditto.
26202 (avx512pf_scatterpf<mode>df): Ditto.
26203 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26204 (*avx512pf_scatterpf<mode>df): Ditto.
26205 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26206
26207 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26208
26209 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26210 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26211 (_mm512_mask_testn_epi64_mask): Move to ...
26212 * config/i386/avx512cdintrin.h: Here.
26213 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26214 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26215 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26216 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26217 TARGET_AVX512F from TARGET_AVX512CD.
26218
26219 2014-02-26 Richard Biener <rguenther@suse.de>
26220
26221 PR ipa/60327
26222 * ipa.c (walk_polymorphic_call_targets): Properly guard
26223 call to inline_update_overall_summary.
26224
26225 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26226
26227 PR target/60280
26228 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26229 and latches only if requested. Fix latch if it is removed.
26230 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26231 LOOPS_HAVE_PREHEADERS.
26232
26233 2014-02-25 Andrew Pinski <apinski@cavium.com>
26234
26235 * builtins.c (expand_builtin_thread_pointer): Create a new target
26236 when the target is NULL.
26237
26238 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26239
26240 PR rtl-optimization/60317
26241 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26242 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26243 * lra-assigns.c: Include params.h.
26244 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26245 other reload pseudos considerations.
26246
26247 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26248
26249 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26250 to use canonical form for nor<mode>3.
26251
26252 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26253
26254 PR target/55426
26255 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26256 conversions.
26257
26258 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26259
26260 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26261 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26262 (ix86_handle_option): Handle OPT_mprefetchwt1.
26263 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26264 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26265 PREFETCHWT1 CPUID.
26266 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26267 OPTION_MASK_ISA_PREFETCHWT1.
26268 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26269 (PTA_PREFETCHWT1): New.
26270 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26271 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26272 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26273 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26274 (*prefetch_avx512pf_<mode>_: Change into ...
26275 (*prefetch_prefetchwt1_<mode>: This.
26276 * config/i386/i386.opt (mprefetchwt1): New.
26277 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26278 (_mm_prefetch): Handle intent to write.
26279 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26280
26281 2014-02-25 Richard Biener <rguenther@suse.de>
26282
26283 PR middle-end/60291
26284 * emit-rtl.c (mem_attrs_htab): Remove.
26285 (mem_attrs_htab_hash): Likewise.
26286 (mem_attrs_htab_eq): Likewise.
26287 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26288 (init_emit_once): Do not allocate mem_attrs_htab.
26289
26290 2014-02-25 Richard Biener <rguenther@suse.de>
26291
26292 PR lto/60319
26293 * lto-opts.c (lto_write_options): Output non-explicit conservative
26294 -fwrapv, -fno-trapv and -fno-strict-overflow.
26295 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26296 (run_gcc): And pass them through.
26297
26298 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26299
26300 * sel-sched.c (calculate_new_fences): New parameter ptime.
26301 Calculate it as a maximum over all fence cycles.
26302 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26303 Print the final schedule timing when sched_verbose.
26304
26305 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26306
26307 PR rtl-optimization/60292
26308 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26309 bit fot the fence instruction.
26310
26311 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26312
26313 * calls.h: Fix typo in comment.
26314
26315 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26316
26317 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26318 adjusting offsetable addresses.
26319
26320 2014-02-24 Guozhi Wei <carrot@google.com>
26321
26322 * sparseset.h (sparseset_pop): Fix the wrong index.
26323
26324 2014-02-24 Walter Lee <walt@tilera.com>
26325
26326 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26327 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26328 triplet.
26329 * common/config/tilegx/tilegx-common.c
26330 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26331 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26332 (LINK_SPEC): Ditto.
26333 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26334 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26335 (tilegx_gimplify_va_arg_expr): Handle big endian.
26336 (tilegx_expand_unaligned_load): Ditto.
26337 (tilegx_expand_unaligned_store): Ditto.
26338 (TARGET_RETURN_IN_MSB): New.
26339 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26340 (TARGET_ENDIAN_DEFAULT): New.
26341 (TARGET_BIG_ENDIAN): Handle big endian.
26342 (BYTES_BIG_ENDIAN): Ditto.
26343 (WORDS_BIG_ENDIAN): Ditto.
26344 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26345 (ENDIAN_SPEC): New.
26346 (EXTRA_SPECS): New.
26347 * config/tilegx/tilegx.md (extv): Handle big endian.
26348 (extzv): Ditto.
26349 (insn_st<n>): Ditto.
26350 (insn_st<n>_add<bitsuffix>): Ditto.
26351 (insn_stnt<n>): Ditto.
26352 (insn_stnt<n>_add<bitsuffix>):Ditto.
26353 (vec_interleave_highv8qi): Handle big endian.
26354 (vec_interleave_highv8qi_be): New.
26355 (vec_interleave_highv8qi_le): New.
26356 (insn_v1int_h): Handle big endian.
26357 (vec_interleave_lowv8qi): Handle big endian.
26358 (vec_interleave_lowv8qi_be): New.
26359 (vec_interleave_lowv8qi_le): New.
26360 (insn_v1int_l): Handle big endian.
26361 (vec_interleave_highv4hi): Handle big endian.
26362 (vec_interleave_highv4hi_be): New.
26363 (vec_interleave_highv4hi_le): New.
26364 (insn_v2int_h): Handle big endian.
26365 (vec_interleave_lowv4hi): Handle big endian.
26366 (vec_interleave_lowv4hi_be): New.
26367 (vec_interleave_lowv4hi_le): New.
26368 (insn_v2int_l): Handle big endian.
26369 (vec_interleave_highv2si): Handle big endian.
26370 (vec_interleave_highv2si_be): New.
26371 (vec_interleave_highv2si_le): New.
26372 (insn_v4int_h): Handle big endian.
26373 (vec_interleave_lowv2si): Handle big endian.
26374 (vec_interleave_lowv2si_be): New.
26375 (vec_interleave_lowv2si_le): New.
26376 (insn_v4int_l): Handle big endian.
26377 * config/tilegx/tilegx.opt (mbig-endian): New option.
26378 (mlittle-endian): New option.
26379 * doc/install.texi: Document tilegxbe-linux.
26380 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26381
26382 2014-02-24 Martin Jambor <mjambor@suse.cz>
26383
26384 PR ipa/60266
26385 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
26386 there are no parameter descriptors.
26387
26388 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
26389
26390 PR rtl-optimization/60268
26391 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
26392 initialization to ...
26393 (sched_rgn_init): ... here.
26394 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
26395
26396 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26397
26398 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
26399 names.
26400
26401 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
26402
26403 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
26404 definition.
26405
26406 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26407
26408 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
26409 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
26410
26411 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
26412
26413 * config/microblaze/predicates.md: Add cmp_op predicate.
26414 * config/microblaze/microblaze.md: Add branch_compare instruction
26415 which uses cmp_op predicate and emits cmp insn before branch.
26416 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
26417 to microblaze_expand_conditional_branch and consolidate logic.
26418 (microblaze_expand_conditional_branch): emit branch_compare
26419 insn instead of handling cmp op separate from branch insn.
26420
26421 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26422
26423 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
26424 to permit subregs.
26425
26426 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26427
26428 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
26429 define_insn with define_expand and new define_insn
26430 *altivec_lve<VI_char>x_internal.
26431 (altivec_stve<VI_char>x): Replace define_insn with define_expand
26432 and new define_insn *altivec_stve<VI_char>x_internal.
26433 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
26434 prototype.
26435 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
26436 lve*x built-ins.
26437 (altivec_expand_stvex_be): New function.
26438
26439 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
26440
26441 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
26442 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
26443 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
26444 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
26445
26446 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
26447
26448 PR target/60298
26449 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
26450 instead of emit_move_insn.
26451
26452 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26453
26454 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
26455 vspltw with vsldoi.
26456 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
26457 gen_altivec_vsumsws.
26458
26459 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26460
26461 * config/rs6000/altivec.md (altivec_lvxl): Rename as
26462 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
26463 (altivec_lvxl_<mode>): New define_expand incorporating
26464 -maltivec=be semantics where needed.
26465 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
26466 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
26467 semantics where needed.
26468 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
26469 (altivec_stvx_<mode>): New define_expand incorporating
26470 -maltivec=be semantics where needed.
26471 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
26472 VM2 iterator instead of V4SI.
26473 (altivec_stvxl_<mode>): New define_expand incorporating
26474 -maltivec=be semantics where needed.
26475 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
26476 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
26477 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
26478 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
26479 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
26480 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
26481 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
26482 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
26483 ALTIVEC_BUILTIN_STVXL.
26484 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
26485 (altivec_expand_stvx_be): Likewise.
26486 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26487 (altivec_expand_lvx_be): Likewise.
26488 (altivec_expand_stvx_be): Likewise.
26489 (altivec_expand_builtin): Add cases for
26490 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26491 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26492 (altivec_init_builtins): Add definitions for
26493 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26494 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26495
26496 2014-02-21 Catherine Moore <clm@codesourcery.com>
26497
26498 * doc/invoke.texi (mvirt, mno-virt): Document.
26499 * config/mips/mips.opt (mvirt): New option.
26500 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26501
26502 2014-02-21 Richard Biener <rguenther@suse.de>
26503
26504 PR tree-optimization/60276
26505 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26506 (STMT_VINFO_MIN_NEG_DIST): New macro.
26507 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26508 STMT_VINFO_MIN_NEG_DIST.
26509 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26510 made for negative dependence distances still hold.
26511
26512 2014-02-21 Richard Biener <rguenther@suse.de>
26513
26514 PR middle-end/60291
26515 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26516 DECL_INITIAL for globals not in the current function context.
26517
26518 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26519
26520 PR tree-optimization/56490
26521 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26522 * tree-ssa-uninit.c: Include params.h.
26523 (compute_control_dep_chain): Add num_calls argument, return false
26524 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26525 num_calls to recursive call.
26526 (find_predicates): Change dep_chain into normal array,
26527 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26528 variable and adjust compute_control_dep_chain caller.
26529 (find_def_preds): Likewise.
26530
26531 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26532
26533 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26534 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26535
26536 2014-02-21 Nick Clifton <nickc@redhat.com>
26537
26538 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26539 (pushhi1): Likewise.
26540 (popqi1): Add mode to pre_dec.
26541 (pophi1): Likewise.
26542
26543 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26544
26545 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26546 mode for mask of V8SFmode permutation.
26547
26548 2014-02-20 Richard Henderson <rth@redhat.com>
26549
26550 PR c++/60272
26551 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26552 a new pseudo for OLDVAL.
26553
26554 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26555
26556 PR target/57896
26557 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26558 gen_reg_rtx if d->testing_p.
26559 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26560 if d->testing_p and we will certainly return true.
26561 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26562 if d->testing_p.
26563
26564 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26565
26566 * emit-rtl.c (gen_reg_rtx): Assert that
26567 crtl->emit.regno_pointer_align_length is non-zero.
26568
26569 2014-02-20 Richard Henderson <rth@redhat.com>
26570
26571 PR c++/60272
26572 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26573 on failure the store back into EXPECT.
26574
26575 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
26576 Sandra Loosemore <sandra@codesourcery.com>
26577
26578 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26579 * config/nios2/nios2.c (nios2_function_profiler): Add
26580 -fPIC (flag_pic == 2) support.
26581 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26582 (nios2_large_offset_p): New function.
26583 (nios2_unspec_reloc_p): Move up position, update to use
26584 nios2_large_offset_p.
26585 (nios2_unspec_address): Remove function.
26586 (nios2_unspec_offset): New function.
26587 (nios2_large_got_address): New function.
26588 (nios2_got_address): Add large offset support.
26589 (nios2_legitimize_tls_address): Update usage of removed and new
26590 functions.
26591 (nios2_symbol_binds_local_p): New function.
26592 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26593 (nios2_legitimize_address): Update to use nios2_large_offset_p.
26594 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26595 (nios2_print_operand): Merge H/L processing, add hiadj/lo
26596 processing for (const (unspec ...)).
26597 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26598
26599 2014-02-20 Richard Biener <rguenther@suse.de>
26600
26601 * tree-cfg.c (replace_uses_by): Mark altered BBs before
26602 doing the substitution.
26603 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26604
26605 2014-02-20 Martin Jambor <mjambor@suse.cz>
26606
26607 PR ipa/55260
26608 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26609 info when checking whether lattices are bottom.
26610
26611 2014-02-20 Richard Biener <rguenther@suse.de>
26612
26613 PR middle-end/60221
26614 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26615 regions at -O0.
26616
26617 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
26618
26619 PR ipa/58555
26620 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26621 parameter specifying the scaling.
26622 (inline_call): Update.
26623 (want_inline_recursively): Guard division by zero.
26624 (recursive_inlining): Update.
26625 * ipa-inline.h (clone_inlined_nodes): Update.
26626
26627 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26628
26629 PR target/60204
26630 * config/i386/i386.c (classify_argument): Pass structures of size
26631 64 bytes or less in register.
26632
26633 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26634 Kirill Yukhin <kirill.yukhin@intel.com>
26635
26636 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26637 (_mm_rcp28_round_ss): Ditto.
26638 (_mm_rsqrt28_round_sd): Ditto.
26639 (_mm_rsqrt28_round_ss): Ditto.
26640 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26641 (_mm_rcp14_round_ss): Ditto.
26642 (_mm_rsqrt14_round_sd): Ditto.
26643 (_mm_rsqrt14_round_ss): Ditto.
26644 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26645 the first input operand, get rid of match_dup.
26646 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26647 attribute to sse.
26648 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26649 Ditto.
26650 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26651 operand as the first input operand, set type attribute.
26652 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26653 Set type attribute.
26654 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26655 operand as the first input operand, set type attribute.
26656
26657 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26658
26659 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26660 bit of zero.
26661
26662 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26663
26664 PR target/60207
26665 * config/i386/i386.c (construct_container): Remove TFmode check
26666 for X86_64_INTEGER_CLASS.
26667
26668 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
26669
26670 PR target/59794
26671 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26672 only when -Wpsabi is enabled.
26673
26674 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26675
26676 PR target/59799
26677 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26678 passing arrays in registers are the same as for structs, so remove the
26679 special case for them.
26680
26681 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26682
26683 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26684 destination type, extract only the valid bits if the source type is not
26685 integral and has a different mode.
26686
26687 2014-02-19 Richard Biener <rguenther@suse.de>
26688
26689 PR ipa/60243
26690 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26691 for all calls.
26692
26693 2014-02-19 Richard Biener <rguenther@suse.de>
26694
26695 PR ipa/60243
26696 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26697 (ipa_modify_call_arguments): Emit an argument load explicitely and
26698 preserve virtual SSA form there and for the replacement call.
26699 Do not update SSA form nor free dominance info.
26700
26701 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26702
26703 * ipa.c (function_and_variable_visibility): Also clear WEAK
26704 flag when disolving COMDAT_GROUP.
26705
26706 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26707
26708 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26709 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26710 not devirtualizing.
26711 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26712 do more sanity checks.
26713 (detect_type_change): Return true when giving up early.
26714 (compute_complex_assign_jump_func): Fix type parameter of
26715 ipa_set_ancestor_jf.
26716 (compute_complex_ancestor_jump_func): Likewise.
26717 (update_jump_functions_after_inlining): Fix updating of
26718 ancestor function.
26719 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26720
26721 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26722
26723 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26724 inline clones when edge disappears.
26725
26726 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26727
26728 PR target/60203
26729 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26730 Split 64-bit moves into 2 patterns. Do not allow the use of
26731 direct move for TDmode in little endian, since the decimal value
26732 has little endian bytes within a word, but the 64-bit pieces are
26733 ordered in a big endian fashion, and normal subreg's of TDmode are
26734 not allowed.
26735 (mov<mode>_64bit_dm): Likewise.
26736 (movtd_64bit_nodm): Likewise.
26737
26738 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26739
26740 PR tree-optimization/60174
26741 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26742 statement of an SSA_NAME that occurs in an abnormal PHI node.
26743
26744 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26745
26746 PR sanitizer/60142
26747 * final.c (SEEN_BB): Remove.
26748 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26749 (final_scan_insn): Don't force_source_line on second
26750 NOTE_INSN_BASIC_BLOCK.
26751
26752 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26753
26754 PR target/60205
26755 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26756 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26757 (type_natural_mode): Warn ABI change when %zmm register is not
26758 available for AVX512F vector value passing.
26759
26760 2014-02-18 Kai Tietz <ktietz@redhat.com>
26761
26762 PR target/60193
26763 * config/i386/i386.c (ix86_expand_prologue): Use value in
26764 rax register as displacement when restoring %r10 or %rax.
26765 Fix wrong offset when restoring both registers.
26766
26767 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26768
26769 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26770 assertion with conditional return.
26771
26772 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26773 Uros Bizjak <ubizjak@gmail.com>
26774
26775 PR driver/60233
26776 * config/i386/driver-i386.c (host_detect_local_cpu): If
26777 YMM state is not saved by the OS, also clear has_f16c. Move
26778 CPUID 0x80000001 handling before YMM state saving checking.
26779
26780 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26781
26782 PR rtl-optimization/58960
26783 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26784 factored out from ...
26785 (sched_init): ... here.
26786 (free_global_sched_pressure_data): New, factored out from ...
26787 (sched_finish): ... here.
26788 * sched-int.h (free_global_sched_pressure_data): Declare.
26789 * sched-rgn.c (nr_regions_initial): New static global.
26790 (haifa_find_rgns): Initialize it.
26791 (schedule_region): Disable sched-pressure for the newly
26792 generated regions.
26793
26794 2014-02-17 Richard Biener <rguenther@suse.de>
26795
26796 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26797 release SSA defs of pattern stmts.
26798
26799 2014-02-17 Richard Biener <rguenther@suse.de>
26800
26801 * tree-inline.c (expand_call_inline): Release the virtual
26802 operand defined by the call we are about to inline.
26803
26804 2014-02-17 Richard Biener <rguenther@suse.de>
26805
26806 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26807
26808 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26809 Ilya Tocar <ilya.tocar@intel.com>
26810
26811 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26812 arguments order in builtin.
26813 (_mm512_permutexvar_epi64): Ditto.
26814 (_mm512_mask_permutexvar_epi64): Ditto
26815 (_mm512_maskz_permutexvar_epi32): Ditto
26816 (_mm512_permutexvar_epi32): Ditto
26817 (_mm512_mask_permutexvar_epi32): Ditto
26818
26819 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26820
26821 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26822 (p8_vmrgow): Likewise.
26823
26824 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26825
26826 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26827 endian targets.
26828
26829 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26830
26831 PR target/60203
26832 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26833 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26834 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26835 using direct move instructions on ISA 2.07. Also adjust
26836 instruction length for 64-bit.
26837 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26838 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26839
26840 2014-02-15 Alan Modra <amodra@gmail.com>
26841
26842 PR target/58675
26843 PR target/57935
26844 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26845 find_replacement on parts of insn rtl that might be reloaded.
26846
26847 2014-02-15 Richard Biener <rguenther@suse.de>
26848
26849 PR tree-optimization/60183
26850 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
26851 (tree_ssa_phiprop): Calculate and free post-dominators.
26852
26853 2014-02-14 Jeff Law <law@redhat.com>
26854
26855 PR rtl-optimization/60131
26856 * ree.c (get_extended_src_reg): New function.
26857 (combine_reaching_defs): Use it rather than assuming location of REG.
26858 (find_and_remove_re): Verify first operand of extension is
26859 a REG before adding the insns to the copy list.
26860
26861 2014-02-14 Roland McGrath <mcgrathr@google.com>
26862
26863 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
26864 * configure: Regenerated.
26865 * config.in: Regenerated.
26866 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
26867 instead of ASM_SHORT.
26868
26869 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
26870 Richard Earnshaw <rearnsha@arm.com>
26871
26872 PR rtl-optimization/59535
26873 * lra-constraints.c (process_alt_operands): Encourage alternative
26874 when unassigned pseudo class is superset of the alternative class.
26875 (inherit_reload_reg): Don't inherit when optimizing for code size.
26876 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
26877 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
26878 modes not less than 4 for Thumb1.
26879
26880 2014-02-14 Kyle McMartin <kyle@redhat.com>
26881
26882 PR pch/60010
26883 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
26884
26885 2014-02-14 Richard Biener <rguenther@suse.de>
26886
26887 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
26888 (get_frame_arg): Drop the assert with langhook types_compatible_p.
26889 Do not strip INDIRECT_REFs.
26890
26891 2014-02-14 Richard Biener <rguenther@suse.de>
26892
26893 PR lto/60179
26894 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
26895 DECL_FUNCTION_SPECIFIC_TARGET.
26896 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
26897 * tree-streamer-out.c (pack_ts_target_option): Remove.
26898 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
26899 (write_ts_function_decl_tree_pointers): Do not stream
26900 DECL_FUNCTION_SPECIFIC_TARGET.
26901 * tree-streamer-in.c (unpack_ts_target_option): Remove.
26902 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
26903 (lto_input_ts_function_decl_tree_pointers): Do not stream
26904 DECL_FUNCTION_SPECIFIC_TARGET.
26905
26906 2014-02-14 Jakub Jelinek <jakub@redhat.com>
26907
26908 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
26909 (get_initial_def_for_induction, vectorizable_induction): Ignore
26910 debug stmts when looking for exit_phi.
26911 (vectorizable_live_operation): Fix up condition.
26912
26913 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26914
26915 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
26916 nreverse() because it changes the content of original tree list.
26917
26918 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26919
26920 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
26921 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
26922
26923 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26924
26925 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
26926 GNU coding standards.
26927
26928 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26929
26930 PR debug/60152
26931 * dwarf2out.c (gen_subprogram_die): Don't call
26932 add_calling_convention_attribute if subr_die is old_die.
26933
26934 2014-02-13 Sharad Singhai <singhai@google.com>
26935
26936 * doc/optinfo.texi: Fix order of nodes.
26937
26938 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
26939
26940 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
26941 operands[2], not operands[3].
26942
26943 2014-02-13 Richard Biener <rguenther@suse.de>
26944
26945 PR bootstrap/59878
26946 * doc/install.texi (ISL): Update recommended version to 0.12.2,
26947 mention the possibility of an in-tree build.
26948 (CLooG): Update recommended version to 0.18.1, mention the
26949 possibility of an in-tree build and clarify that the ISL
26950 bundled with CLooG does not work.
26951
26952 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26953
26954 PR target/43546
26955 * expr.c (compress_float_constant): If x is a hard register,
26956 extend into a pseudo and then move to x.
26957
26958 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
26959
26960 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
26961 caused by bad second argument to warning_at() with -mhotpatch and
26962 nested functions (e.g. with gfortran).
26963
26964 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
26965
26966 * opts.c (option_name): Remove "enabled by default" rider.
26967
26968 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
26969
26970 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
26971
26972 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
26973 Uros Bizjak <ubizjak@gmail.com>
26974
26975 PR target/60151
26976 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
26977 * configure: Regenerated.
26978
26979 2014-02-12 Richard Biener <rguenther@suse.de>
26980
26981 * vec.c (vec_prefix::calculate_allocation): Move as
26982 inline variant to vec.h.
26983 (vec_prefix::calculate_allocation_1): New out-of-line version.
26984 * vec.h (vec_prefix::calculate_allocation_1): Declare.
26985 (vec_prefix::m_has_auto_buf): Rename to ...
26986 (vec_prefix::m_using_auto_storage): ... this.
26987 (vec_prefix::calculate_allocation): Inline the easy cases
26988 and dispatch to calculate_allocation_1 which doesn't need the
26989 prefix address.
26990 (va_heap::reserve): Use gcc_checking_assert.
26991 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
26992 m_using_auto_storage.
26993 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
26994 member and adjust.
26995 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
26996 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
26997 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
26998
26999 2014-02-12 Richard Biener <rguenther@suse.de>
27000
27001 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27002 when we found a dependence.
27003
27004 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27005
27006 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27007 common code...
27008 (maybe_fold_stmt): ... into this new function.
27009 * omp-low.c (lower_omp): Update comment.
27010
27011 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27012 last use.
27013
27014 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27015 dereference.
27016
27017 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27018
27019 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27020 identifiers in comments.
27021 (cortexa53_extra_costs): Likewise.
27022 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27023 (cortexa7_extra_costs): Likewise.
27024 (cortexa12_extra_costs): Likewise.
27025 (cortexa15_extra_costs): Likewise.
27026 (v7m_extra_costs): Likewise.
27027
27028 2014-02-12 Richard Biener <rguenther@suse.de>
27029
27030 PR middle-end/60092
27031 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27032 of posix_memalign being successful.
27033 (lower_stmt): Restrict lowering of posix_memalign to when
27034 -ftree-bit-ccp is enabled.
27035
27036 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27037
27038 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27039 arg_loc.
27040 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27041
27042 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27043
27044 PR rtl-optimization/60116
27045 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27046 other_insn once the combination has been validated.
27047
27048 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27049
27050 PR lto/59468
27051 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27052 and wrapper.
27053 * ipa-devirt.c: Include demangle.h
27054 (odr_violation_reported): New static variable.
27055 (add_type_duplicate): Update odr_violations.
27056 (maybe_record_node): Add completep parameter; update it.
27057 (record_target_from_binfo): Add COMPLETEP parameter;
27058 update it as needed.
27059 (possible_polymorphic_call_targets_1): Likewise.
27060 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27061 rename FINAL to COMPLETE.
27062 (record_targets_from_bases): Sanity check we found the binfo;
27063 fix COMPLETEP updating.
27064 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27065 parameter, fix computing of COMPLETEP.
27066 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27067 at LTO time do demangling.
27068 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27069 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27070 parameter.
27071 (gimple_get_virt_method_for_binfo): Likewise.
27072 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27073 gimple_get_virt_method_for_vtable): Update prototypes.
27074
27075 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27076
27077 PR target/49008
27078 * genautomata.c (add_presence_absence): Fix typo with
27079 {final_}presence_list.
27080
27081 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27082
27083 PR target/60137
27084 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27085 for VSX/Altivec vectors that land in GPR registers.
27086
27087 2014-02-11 Richard Henderson <rth@redhat.com>
27088 Jakub Jelinek <jakub@redhat.com>
27089
27090 PR debug/59776
27091 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27092 around drhs if type conversion to lacc->type is not useless.
27093
27094 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27095
27096 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27097 tuning struct.
27098 (cortex-a57.cortex-a53): Likewise.
27099 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27100
27101 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27102
27103 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27104 arm_restrict_it.
27105
27106 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27107
27108 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27109 add_options_for_arm_vfp3.
27110
27111 2014-02-11 Jeff Law <law@redhat.com>
27112
27113 PR middle-end/54041
27114 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27115 object with an undesirable mode.
27116
27117 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27118
27119 PR libgomp/60107
27120 * config/i386/sol2-9.h: New file.
27121 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27122 *-*-solaris2.9*): Use it.
27123
27124 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27125
27126 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27127 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27128
27129 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27130
27131 * config/microblaze/microblaze.c: Extend mcpu version format
27132
27133 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27134
27135 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27136
27137 2014-02-10 Richard Henderson <rth@redhat.com>
27138
27139 PR target/59927
27140 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27141 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27142 ms-abi vs -mno-accumulate-outgoing-args.
27143 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27144 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27145 respect to ms-abi.
27146
27147 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27148
27149 PR middle-end/60080
27150 * cfgexpand.c (expand_asm_operands): Attach source location to
27151 ASM_INPUT rtx objects.
27152 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27153
27154 2014-02-10 Nick Clifton <nickc@redhat.com>
27155
27156 * config/mn10300/mn10300.c (popcount): New function.
27157 (mn10300_expand_prologue): Include saved registers in stack usage
27158 count.
27159
27160 2014-02-10 Jeff Law <law@redhat.com>
27161
27162 PR middle-end/52306
27163 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27164 when changing the SET_DEST of a prior insn to avoid an input reload.
27165
27166 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27167
27168 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27169 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27170 -mcall-openbsd, or -mcall-linux.
27171 (CC1_ENDIAN_BIG_SPEC): Remove.
27172 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27173 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27174 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27175 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27176 and %cc1_endian_default.
27177 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27178
27179 2014-02-10 Richard Biener <rguenther@suse.de>
27180
27181 PR tree-optimization/60115
27182 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27183 MEM_REF handling. Properly verify that the accesses are not
27184 out of the objects bound.
27185
27186 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27187
27188 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27189 coretex to cortex.
27190
27191 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27192
27193 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27194 proper constants and fix formatting.
27195 (possible_polymorphic_call_targets): Fix formatting.
27196
27197 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27198 Ilya Tocar <ilya.tocar@intel.com>
27199
27200 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27201 (_mm512_loadu_epi32): Renamed into...
27202 (_mm512_loadu_si512): This.
27203 (_mm512_storeu_epi32): Renamed into...
27204 (_mm512_storeu_si512): This.
27205 (_mm512_maskz_ceil_ps): Removed.
27206 (_mm512_maskz_ceil_pd): Ditto.
27207 (_mm512_maskz_floor_ps): Ditto.
27208 (_mm512_maskz_floor_pd): Ditto.
27209 (_mm512_floor_round_ps): Ditto.
27210 (_mm512_floor_round_pd): Ditto.
27211 (_mm512_ceil_round_ps): Ditto.
27212 (_mm512_ceil_round_pd): Ditto.
27213 (_mm512_mask_floor_round_ps): Ditto.
27214 (_mm512_mask_floor_round_pd): Ditto.
27215 (_mm512_mask_ceil_round_ps): Ditto.
27216 (_mm512_mask_ceil_round_pd): Ditto.
27217 (_mm512_maskz_floor_round_ps): Ditto.
27218 (_mm512_maskz_floor_round_pd): Ditto.
27219 (_mm512_maskz_ceil_round_ps): Ditto.
27220 (_mm512_maskz_ceil_round_pd): Ditto.
27221 (_mm512_expand_pd): Ditto.
27222 (_mm512_expand_ps): Ditto.
27223 * config/i386/i386.c (ix86_builtins): Remove
27224 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27225 (bdesc_args): Ditto.
27226 * config/i386/predicates.md (const1256_operand): New.
27227 (const_1_to_2_operand): Ditto.
27228 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27229 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27230 (*avx512pf_gatherpf<mode>sf): Ditto.
27231 (avx512pf_gatherpf<mode>df): Ditto.
27232 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27233 (*avx512pf_gatherpf<mode>df): Ditto.
27234 (avx512pf_scatterpf<mode>sf): Ditto.
27235 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27236 (*avx512pf_scatterpf<mode>sf): Ditto.
27237 (avx512pf_scatterpf<mode>df): Ditto.
27238 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27239 (*avx512pf_scatterpf<mode>df): Ditto.
27240 (avx512f_expand<mode>): Removed.
27241 (<shift_insn><mode>3<mask_name>): Change predicate type.
27242
27243 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27244
27245 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27246 not at the end of datarefs vector use ordered_remove to avoid
27247 reordering datarefs vector.
27248
27249 PR c/59984
27250 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27251 mark local addressable non-static vars as GOVD_PRIVATE
27252 instead of GOVD_LOCAL.
27253 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27254 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27255 than copying them.
27256
27257 PR middle-end/60092
27258 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27259 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27260 assume_aligned or alloc_align attributes.
27261 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27262 arguments. Handle also assume_aligned and alloc_align attributes.
27263 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27264 calls to functions with assume_aligned or alloc_align attributes.
27265 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27266
27267 2014-02-08 Terry Guo <terry.guo@arm.com>
27268
27269 * doc/invoke.texi: Document ARM -march=armv7e-m.
27270
27271 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27272
27273 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27274 flag on __cilkrts_rethrow builtin.
27275
27276 PR ipa/60026
27277 * ipa-cp.c (determine_versionability): Fail at -O0
27278 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27279 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27280
27281 Revert:
27282 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27283
27284 PR ipa/60026
27285 * tree-inline.c (copy_forbidden): Fail for
27286 __attribute__((optimize (0))) functions.
27287
27288 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27289
27290 * varpool.c: Include pointer-set.h.
27291 (varpool_remove_unreferenced_decls): Variables in other partitions
27292 will not be output; be however careful to not lose information
27293 about partitioning.
27294
27295 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27296
27297 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27298 lookup in the vtable constructor.
27299
27300 2014-02-07 Jeff Law <law@redhat.com>
27301
27302 PR target/40977
27303 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27304 define_insn_and_split.
27305
27306 * ipa-inline.c (inline_small_functions): Fix typos.
27307
27308 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27309
27310 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27311 (s390_can_use_return_insn): Declare.
27312 * config/s390/s390.h (EPILOGUE_USES): Define.
27313 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27314 instructions.
27315 (s390_chunkify_start): Handle return JUMP_LABELs.
27316 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27317 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27318 (s390_can_use_return_insn): New functions.
27319 (s390_fix_long_loop_prediction): Handle conditional returns.
27320 (TARGET_SET_UP_BY_PROLOGUE): Define.
27321 * config/s390/s390.md (ANY_RETURN): New code iterator.
27322 (*creturn, *csimple_return, return, simple_return): New patterns.
27323
27324 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27325
27326 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27327 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27328 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27329 REG_CFA_RESTORE list when deciding not to restore a register.
27330
27331 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27332
27333 * config/s390/s390.c: Include tree-pass.h and context.h.
27334 (s390_early_mach): New function, split out from...
27335 (s390_emit_prologue): ...here.
27336 (pass_data_s390_early_mach): New pass structure.
27337 (pass_s390_early_mach): New class.
27338 (s390_option_override): Create and register early_mach pass.
27339 Move to end of file.
27340
27341 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27342
27343 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27344 to match for the exit block.
27345
27346 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27347
27348 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27349 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27350 Reject misaligned operands.
27351
27352 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27353
27354 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27355
27356 2014-02-07 Richard Biener <rguenther@suse.de>
27357
27358 PR middle-end/60092
27359 * gimple-low.c (lower_builtin_posix_memalign): New function.
27360 (lower_stmt): Call it to lower posix_memalign in a way
27361 to make alignment info accessible.
27362
27363 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27364
27365 PR c++/60082
27366 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27367 __builtin_setjmp_receiver.
27368
27369 2014-02-07 Richard Biener <rguenther@suse.de>
27370
27371 PR middle-end/60092
27372 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27373 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27374 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27375 Handle BUILT_IN_POSIX_MEMALIGN.
27376 (find_func_clobbers): Likewise.
27377 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27378 (call_may_clobber_ref_p_1): Likewise.
27379
27380 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27381
27382 PR ipa/59918
27383 * ipa-devirt.c (record_target_from_binfo): Remove overactive
27384 sanity check.
27385
27386 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27387
27388 PR ipa/59469
27389 * lto-cgraph.c (lto_output_node): Use
27390 symtab_get_symbol_partitioning_class.
27391 (lto_output_varpool_node): likewise.
27392 (symtab_get_symbol_partitioning_class): Move here from
27393 lto/lto-partition.c
27394 * cgraph.h (symbol_partitioning_class): Likewise.
27395 (symtab_get_symbol_partitioning_class): Declare.
27396
27397 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27398
27399 * ggc.h (ggc_internal_cleared_alloc): New macro.
27400 * vec.h (vec_safe_copy): Handle memory stats.
27401 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
27402 * target-globals.c (save_target_globals): Likewise.
27403
27404 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27405
27406 PR target/60077
27407 * expr.c (emit_move_resolve_push): Export; be bit more selective
27408 on when to clear alias set.
27409 * expr.h (emit_move_resolve_push): Declare.
27410 * function.h (struct function): Add tail_call_marked.
27411 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
27412 * config/i386/i386-protos.h (ix86_expand_push): Remove.
27413 * config/i386/i386.md (TImode move expander): De not call
27414 ix86_expand_push.
27415 (FP push expanders): Preserve memory attributes.
27416 * config/i386/sse.md (push<mode>1): Remove.
27417 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
27418 (ix86_expand_push): Remove.
27419 * config/i386/mmx.md (push<mode>1): Remove.
27420
27421 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27422
27423 PR rtl-optimization/60030
27424 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
27425 lopart with paradoxical subreg before shifting it up by hprec.
27426
27427 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27428
27429 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
27430 Remove extra newline at end of file.
27431 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
27432 (arm_issue_rate): Handle cortexa57.
27433 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
27434 (cortex-a57.cortex-a53): Likewise.
27435
27436 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27437
27438 PR target/59575
27439 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
27440 don't record in REG_FRAME_RELATED_EXPR registers not set in that
27441 bitmask.
27442 (arm_expand_prologue): Adjust all callers.
27443 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
27444 info, registers also at the lowest numbered registers side. Use
27445 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
27446 XEXP.
27447
27448 PR debug/59992
27449 * var-tracking.c (adjust_mems): Before adding a SET to
27450 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
27451
27452 2014-02-06 Alan Modra <amodra@gmail.com>
27453
27454 PR target/60032
27455 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
27456 change SDmode to DDmode when lra_in_progress.
27457
27458 2014-02-06 Jakub Jelinek <jakub@redhat.com>
27459
27460 PR middle-end/59150
27461 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
27462 free_data_ref on the dr first, and before goto again also set dr
27463 to the next dr. For simd_lane_access, free old datarefs[i] before
27464 overwriting it. For get_vectype_for_scalar_type failure, don't
27465 free_data_ref if simd_lane_access.
27466
27467 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
27468
27469 PR target/60062
27470 * tree.h (opts_for_fn): New inline function.
27471 (opt_for_fn): Define.
27472 * config/i386/i386.c (ix86_function_regparm): Use
27473 opt_for_fn (decl, optimize) instead of optimize.
27474
27475 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
27476
27477 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
27478 for SYMBOL_REF in large memory model.
27479
27480 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27481
27482 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
27483 and crypto support.
27484 (cortex-a57): Likewise.
27485 (cortex-a57.cortex-a53): Likewise.
27486
27487 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27488 Kugan Vivekanandarajah <kuganv@linaro.org>
27489
27490 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27491 unaligned_access.
27492 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27493
27494 2014-02-06 Richard Biener <rguenther@suse.de>
27495
27496 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27497 set_loop_copy and initialize_original_copy_tables.
27498
27499 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27500
27501 * config/aarch64/aarch64-simd.md
27502 (aarch64_ashr_simddi): Change QI to SI.
27503
27504 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27505 Jakub Jelinek <jakub@redhat.com>
27506
27507 PR middle-end/60013
27508 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27509 of the dataflow.
27510
27511 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27512
27513 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27514 CODE_FOR_altivec_vpku[hw]um to
27515 CODE_FOR_altivec_vpku[hw]um_direct.
27516 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27517 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27518 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27519 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27520
27521 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27522
27523 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27524 generation for -maltivec=be.
27525 (altivec_vsumsws): Simplify redundant test.
27526
27527 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27528
27529 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27530 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27531 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27532 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27533 gen_altivec_vpkuwum.
27534 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27535 BYTES_BIG_ENDIAN.
27536 (altivec_vpks<VI_char>ss): Likewise.
27537 (altivec_vpks<VI_char>us): Likewise.
27538 (altivec_vpku<VI_char>us): Likewise.
27539 (altivec_vpku<VI_char>um): Likewise.
27540 (altivec_vpku<VI_char>um_direct): New (copy of
27541 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27542 internal use).
27543 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27544 target is little endian and -maltivec=be is not specified.
27545 (*altivec_vupkhs<VU_char>_direct): New (copy of
27546 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27547 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27548 target is little endian and -maltivec=be is not specified.
27549 (*altivec_vupkls<VU_char>_direct): New (copy of
27550 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27551 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27552 little endian and -maltivec=be is not specified.
27553 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27554 little endian and -maltivec=be is not specified.
27555
27556 2014-02-05 Richard Henderson <rth@redhat.com>
27557
27558 PR debug/52727
27559 * combine-stack-adj.c: Revert r206943.
27560 * sched-int.h (struct deps_desc): Add last_args_size.
27561 * sched-deps.c (init_deps): Initialize it.
27562 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27563 contain REG_ARGS_SIZE notes.
27564
27565 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27566
27567 * lto-cgraph.c (asm_nodes_output): Make global.
27568 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27569 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27570 (driver_handle_option): Handle OPT_fwpa.
27571
27572 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27573
27574 PR ipa/59947
27575 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27576 a comment typo and formatting issue. If odr_hash hasn't been
27577 created, return vNULL and set *completep to false.
27578
27579 PR middle-end/57499
27580 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27581 bb with no successors.
27582
27583 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
27584
27585 PR target/59718
27586 * doc/invoke.texi (-march): Clarify documentation for ARM.
27587 (-mtune): Likewise.
27588 (-mcpu): Likewise.
27589
27590 2014-02-05 Richard Biener <rguenther@suse.de>
27591
27592 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27593 when not vectorizing because of too many alias checks.
27594 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27595 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27596
27597 2014-02-05 Nick Clifton <nickc@redhat.com>
27598
27599 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27600 accept extended registers in any mode when compiling for the MN10300.
27601
27602 2014-02-05 Yury Gribov <y.gribov@samsung.com>
27603
27604 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27605 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27606 sanitization attributes.
27607 (can_inline_edge_p): Likewise.
27608 (sanitize_attrs_match_for_inline_p): New function.
27609
27610 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27611
27612 * ipa-prop.c (detect_type_change): Shor circuit testing of
27613 type changes on THIS pointer.
27614
27615 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
27616
27617 PR target/59777
27618 * config/pa/pa.c (legitimize_tls_address): Return original address
27619 if not passed a SYMBOL_REF rtx.
27620 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27621 addresses.
27622 (pa_emit_move_sequence): Simplify TLS source operands.
27623 (pa_legitimate_constant_p): Reject all TLS constants.
27624 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27625 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27626
27627 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27628
27629 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27630 groups when we know they are controlled by LTO.
27631 * varasm.c (default_binds_local_p_1): If object is in other partition,
27632 it will be resolved locally.
27633
27634 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27635
27636 * config/host-linux.c (linux_gt_pch_use_address): Don't
27637 use SSIZE_MAX because it is not always defined.
27638
27639 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27640
27641 PR bootstrap/59913
27642 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27643 threshold for pseudo splitting.
27644 (update_ebb_live_info): Process call argument hard registers and
27645 hard registers from insn definition too.
27646 (max_small_class_regs_num): New constant.
27647 (inherit_in_ebb): Update live hard regs through EBBs. Update
27648 reloads_num only for small register classes. Don't split for
27649 outputs of jumps.
27650
27651 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27652
27653 PR ipa/60058
27654 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27655 is non-null.
27656
27657 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27658
27659 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27660 visibility is safe.
27661
27662 2014-02-04 Marek Polacek <polacek@redhat.com>
27663
27664 * gdbinit.in (pel): Define.
27665
27666 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27667
27668 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27669 behavior.
27670
27671 2014-02-04 Richard Biener <rguenther@suse.de>
27672
27673 PR lto/59723
27674 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27675 in function context local.
27676 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27677 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27678 similar to LTO_imported_decl_ref.
27679
27680 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27681
27682 PR tree-optimization/60002
27683 * cgraphclones.c (build_function_decl_skip_args): Clear
27684 DECL_LANG_SPECIFIC.
27685
27686 PR tree-optimization/60023
27687 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27688 false to gsi_replace.
27689 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27690 has been in some EH region and vec_stmt could throw, add
27691 vec_stmt into the same EH region.
27692 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27693 has no lhs, ignore it.
27694 * internal-fn.c (expand_MASK_LOAD): Likewise.
27695
27696 PR ipa/60026
27697 * tree-inline.c (copy_forbidden): Fail for
27698 __attribute__((optimize (0))) functions.
27699
27700 PR other/58712
27701 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27702 is set, copy one less argument.
27703 (expand_simd_clones): Don't subtract clone_info->inbranch
27704 from simd_clone_struct_alloc argument.
27705
27706 PR rtl-optimization/57915
27707 * recog.c (simplify_while_replacing): If all unary/binary/relational
27708 operation arguments are constant, attempt to simplify those.
27709
27710 PR middle-end/59261
27711 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27712 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27713
27714 2014-02-04 Richard Biener <rguenther@suse.de>
27715
27716 PR tree-optimization/60012
27717 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27718 TBAA disambiguation to all DDRs.
27719
27720 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27721
27722 PR target/59788
27723 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27724 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27725
27726 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27727
27728 PR ipa/59882
27729 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27730
27731 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27732
27733 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27734 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27735
27736 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27737
27738 PR ipa/59831
27739 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27740 to figure out targets of polymorphic calls with known decl.
27741 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27742 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27743 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27744 (get_polymorphic_call_info): ... here.
27745 (get_polymorphic_call_info_from_invariant): New function.
27746
27747 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27748
27749 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27750 lookup via vtable pointer; check for type consistency
27751 and turn inconsitent facts into UNREACHABLE.
27752 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27753 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27754 type inconsistent querries; return UNREACHABLE instead.
27755
27756 2014-02-03 Richard Henderson <rth@twiddle.net>
27757
27758 PR tree-opt/59924
27759 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27760 already processed this node.
27761 (normalize_one_pred_1): Pass along mark_set.
27762 (normalize_one_pred): Create and destroy a pointer_set_t.
27763 (normalize_one_pred_chain): Likewise.
27764
27765 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27766
27767 PR gcov-profile/58602
27768 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27769
27770 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27771
27772 PR ipa/59831
27773 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27774 -fno-devirtualize; try to devirtualize by the knowledge of
27775 virtual table pointer given by aggregate propagation.
27776 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27777 (ipa_print_node_jump_functions): Dump also offset that
27778 is relevant for polymorphic calls.
27779 (determine_known_aggregate_parts): Add arg_type parameter; use it
27780 instead of determining the type from pointer type.
27781 (ipa_compute_jump_functions_for_edge): Update call of
27782 determine_known_aggregate_parts.
27783 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27784 (gimple_get_virt_method_for_binfo): ... here; simplify using
27785 vtable_pointer_value_to_vtable.
27786 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27787 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27788 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27789 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27790 POINTER_PLUS_EXPR.
27791 (vtable_pointer_value_to_binfo): ... here.
27792 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27793
27794 2014-02-03 Teresa Johnson <tejohnson@google.com>
27795
27796 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27797 redef of outer loop index variable.
27798
27799 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27800
27801 PR c++/53017
27802 PR c++/59211
27803 * doc/extend.texi (Function Attributes): Typo.
27804
27805 2014-02-03 Cong Hou <congh@google.com>
27806
27807 PR tree-optimization/60000
27808 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27809 if the vectorized statement is a store. A store statement can only
27810 appear at the end of pattern statements.
27811
27812 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27813
27814 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27815 (ix86_option_override_internal): Default long double to 64-bit for
27816 32-bit Bionic and to 128-bit for 64-bit Bionic.
27817
27818 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27819 TARGET_LONG_DOUBLE_128 is true.
27820 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27821
27822 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27823 (mlong-double-64): Negate -mlong-double-128.
27824 (mlong-double-128): New option.
27825
27826 * config/i386/i386-c.c (ix86_target_macros): Define
27827 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27828
27829 * doc/invoke.texi: Document -mlong-double-128.
27830
27831 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27832
27833 PR rtl-optimization/60024
27834 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27835
27836 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27837
27838 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27839
27840 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27841
27842 PR rtl-optimization/57662
27843 * sel-sched.c (code_motion_path_driver): Do not mark already not
27844 existing blocks in the visiting bitmap.
27845
27846 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27847
27848 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
27849 on the insn being emitted.
27850
27851 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
27852 Will Deacon <will.deacon@arm.com>
27853
27854 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
27855
27856 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27857
27858 * config/arm/arm-tables.opt: Regenerate.
27859
27860 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27861
27862 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
27863 for vector types other than V16QImode.
27864 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
27865 define_expand, and call altivec_expand_vec_perm_le when producing
27866 code with little endian element order.
27867 (*altivec_vperm_<mode>_internal): New insn having previous
27868 behavior of altivec_vperm_<mode>.
27869 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
27870 altivec_expand_vec_perm_le when producing code with little endian
27871 element order.
27872 (*altivec_vperm_<mode>_uns_internal): New insn having previous
27873 behavior of altivec_vperm_<mode>_uns.
27874
27875 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27876
27877 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
27878 (altivec_vsumsws): Add handling for -maltivec=be with a little
27879 endian target.
27880 (altivec_vsumsws_direct): New.
27881 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
27882 gen_altivec_vsumsws.
27883
27884 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27885
27886 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
27887 vtable_pointer_value_to_binfo): New functions.
27888 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
27889 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
27890
27891 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
27892
27893 * config/nios2/nios2.md (load_got_register): Initialize GOT
27894 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
27895 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
27896
27897 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27898
27899 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
27900 preserverd by passthrough, do not propagate the type.
27901
27902 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27903
27904 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
27905 (mips_atomic_assign_expand_fenv): New function.
27906 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27907
27908 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27909
27910 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
27911 (__builtin_mips_set_fcsr): Likewise.
27912 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
27913 MIPS_USI_FTYPE_VOID.
27914 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
27915 (mips16_expand_set_fcsr): Likewise.
27916 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
27917 (mips16_set_fcsr_stub): Likewise.
27918 (mips16_get_fcsr_one_only_stub): New class.
27919 (mips16_set_fcsr_one_only_stub): Likewise.
27920 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
27921 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
27922 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
27923 (hard_float): New availability predicate.
27924 (mips_builtins): Add get_fcsr and set_fcsr.
27925 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
27926 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
27927 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
27928 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
27929 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
27930 patterns.
27931
27932 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27933
27934 * config/mips/mips.c (mips_one_only_stub): New class.
27935 (mips_need_mips16_rdhwr_p): Replace with...
27936 (mips16_rdhwr_stub): ...this new variable.
27937 (mips16_stub_call_address): New function.
27938 (mips16_rdhwr_one_only_stub): New class.
27939 (mips_expand_thread_pointer): Use mips16_stub_call_address.
27940 (mips_output_mips16_rdhwr): Delete.
27941 (mips_finish_stub): New function.
27942 (mips_code_end): Use it to handle rdhwr stubs.
27943
27944 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
27945
27946 PR target/60017
27947 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
27948 when calculating size of integer atomic types.
27949
27950 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
27951
27952 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
27953
27954 2014-02-01 Jakub Jelinek <jakub@redhat.com>
27955
27956 PR tree-optimization/60003
27957 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
27958 * profile.c (branch_prob): Use gimple_call_builtin_p
27959 to check for BUILT_IN_SETJMP_RECEIVER.
27960 * tree-inline.c (copy_bb): Call notice_special_calls.
27961
27962 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
27963
27964 PR bootstrap/59985
27965 * lra-constraints.c (process_alt_operands): Update reload_sum only
27966 on the first pass.
27967
27968 2014-01-31 Richard Henderson <rth@redhat.com>
27969
27970 PR middle-end/60004
27971 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
27972 until after else_eh is processed.
27973
27974 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27975
27976 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
27977 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
27978 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
27979 in smmintrin.h, remove them.
27980 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
27981 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
27982 * config/i386/i386.md (ROUND_SAE): Fix value.
27983 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
27984 (const48_operand): New.
27985 * config/i386/subst.md (round), (round_expand): Use
27986 const_4_or_8_to_11_operand.
27987 (round_saeonly), (round_saeonly_expand): Use const48_operand.
27988
27989 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27990
27991 * config/i386/constraints.md (Yk): Swap meaning with k.
27992 * config/i386/i386.md (movhi_internal): Change Yk to k.
27993 (movqi_internal): Ditto.
27994 (*k<logic><mode>): Ditto.
27995 (*andhi_1): Ditto.
27996 (*andqi_1): Ditto.
27997 (kandn<mode>): Ditto.
27998 (*<code>hi_1): Ditto.
27999 (*<code>qi_1): Ditto.
28000 (kxnor<mode>): Ditto.
28001 (kortestzhi): Ditto.
28002 (kortestchi): Ditto.
28003 (kunpckhi): Ditto.
28004 (*one_cmplhi2_1): Ditto.
28005 (*one_cmplqi2_1): Ditto.
28006 * config/i386/sse.md (): Change k to Yk.
28007 (avx512f_load<mode>_mask): Ditto.
28008 (avx512f_blendm<mode>): Ditto.
28009 (avx512f_store<mode>_mask): Ditto.
28010 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28011 (avx512f_storedqu<mode>_mask): Ditto.
28012 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28013 Ditto.
28014 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28015 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28016 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28017 (avx512f_maskcmp<mode>3): Ditto.
28018 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28019 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28020 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28021 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28022 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28023 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28024 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28025 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28026 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28027 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28028 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28029 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28030 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28031 (vec_extract_lo_<mode>_maskm): Ditto.
28032 (vec_extract_hi_<mode>_maskm): Ditto.
28033 (avx512f_vternlog<mode>_mask): Ditto.
28034 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28035 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28036 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28037 (avx512f_<code>v8div16qi2_mask): Ditto.
28038 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28039 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28040 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28041 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28042 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28043 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28044 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28045 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28046 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28047 (avx512cd_maskb_vec_dupv8di): Ditto.
28048 (avx512cd_maskw_vec_dupv16si): Ditto.
28049 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28050 (avx512f_vpermi2var<mode>3_mask): Ditto.
28051 (avx512f_vpermi2var<mode>3_mask): Ditto.
28052 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28053 (*avx512f_gathersi<mode>): Ditto.
28054 (*avx512f_gathersi<mode>_2): Ditto.
28055 (*avx512f_gatherdi<mode>): Ditto.
28056 (*avx512f_gatherdi<mode>_2): Ditto.
28057 (*avx512f_scattersi<mode>): Ditto.
28058 (*avx512f_scatterdi<mode>): Ditto.
28059 (avx512f_compress<mode>_mask): Ditto.
28060 (avx512f_compressstore<mode>_mask): Ditto.
28061 (avx512f_expand<mode>_mask): Ditto.
28062 * config/i386/subst.md (mask): Change k to Yk.
28063 (mask_scalar_merge): Ditto.
28064 (sd): Ditto.
28065
28066 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28067
28068 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28069
28070 2014-01-31 Richard Biener <rguenther@suse.de>
28071
28072 PR middle-end/59990
28073 * builtins.c (fold_builtin_memory_op): Make sure to not
28074 use a floating-point mode or a boolean or enumeral type for
28075 the copy operation.
28076
28077 2014-01-30 DJ Delorie <dj@redhat.com>
28078
28079 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28080 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28081 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28082 whenever main() has an epilogue.
28083
28084 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28085
28086 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28087 unused variable "field".
28088 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28089 (vsx_mergeh_<mode>): Likewise.
28090 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28091 (altivec_vmrghh): Likewise.
28092 (altivec_vmrghw): Likewise.
28093 (altivec_vmrglb): Likewise.
28094 (altivec_vmrglh): Likewise.
28095 (altivec_vmrglw): Likewise.
28096 (altivec_vspltb): Add missing uses.
28097 (altivec_vsplth): Likewise.
28098 (altivec_vspltw): Likewise.
28099 (altivec_vspltsf): Likewise.
28100
28101 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28102
28103 PR target/59923
28104 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28105 frame related instructions.
28106
28107 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28108
28109 PR rtl-optimization/59959
28110 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28111 any reload of register whose subreg is invalid.
28112
28113 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28114
28115 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28116 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28117 Add missing return type - void.
28118
28119 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28120
28121 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28122 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28123 remove element index adjustment for endian (now handled in vsx.md
28124 and altivec.md).
28125 (altivec_expand_vec_perm_const): Use
28126 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28127 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28128 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28129 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28130 define_expand and a new define_insn *altivec_vspltb_internal;
28131 adjust for -maltivec=be on a little endian target.
28132 (altivec_vspltb_direct): New.
28133 (altivec_vsplth): Divide into a define_expand and a new
28134 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28135 little endian target.
28136 (altivec_vsplth_direct): New.
28137 (altivec_vspltw): Divide into a define_expand and a new
28138 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28139 little endian target.
28140 (altivec_vspltw_direct): New.
28141 (altivec_vspltsf): Divide into a define_expand and a new
28142 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28143 a little endian target.
28144
28145 2014-01-30 Richard Biener <rguenther@suse.de>
28146
28147 PR tree-optimization/59993
28148 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28149 can propagate form the earlier stmt and avoid the transform
28150 when the intermediate result is needed.
28151
28152 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28153
28154 * README.Portability: Fix typo.
28155
28156 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28157
28158 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28159 comparison_operator with ordered_comparison_operator.
28160
28161 2014-01-30 Nick Clifton <nickc@redhat.com>
28162
28163 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28164 Rename to mn10300_store_multiple_regs.
28165 * config/mn10300/mn10300.c: Likewise.
28166 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28167 store_multiple_regs.
28168 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28169 Call mn10300_store_multiple_regs.
28170
28171 2014-01-30 Nick Clifton <nickc@redhat.com>
28172 DJ Delorie <dj@redhat.com>
28173
28174 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28175 %fp 2 to keep registers after it properly word-aligned.
28176 (rl78_alloc_physical_registers_umul): Handle the case where both
28177 input operands are the same.
28178
28179 2014-01-30 Richard Biener <rguenther@suse.de>
28180
28181 PR tree-optimization/59903
28182 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28183 check properly.
28184
28185 2014-01-30 Jason Merrill <jason@redhat.com>
28186
28187 PR c++/59633
28188 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28189
28190 PR c++/59645
28191 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28192
28193 2014-01-30 Richard Biener <rguenther@suse.de>
28194
28195 PR tree-optimization/59951
28196 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28197
28198 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28199
28200 PR target/59784
28201 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28202 SFmode to DFmode case.
28203
28204 2014-01-29 DJ Delorie <dj@redhat.com>
28205
28206 * config/msp430/msp430.opt (-minrt): New.
28207 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28208 if -minrt given.
28209 (ENDFILE_SPEC): Likewise.
28210
28211 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28212
28213 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28214 (estimate_function_body_sizes): Use it.
28215
28216 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28217
28218 PR c++/58561
28219 * dwarf2out.c (is_cxx_auto): New.
28220 (is_base_type): Use it.
28221 (gen_type_die_with_usage): Likewise.
28222
28223 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28224
28225 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28226 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28227 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28228 -maltivec=be with LE targets.
28229 (vsx_mergeh_<mode>): Likewise.
28230 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28231 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28232 (altivec_vmrghb): Replace with define_expand and new
28233 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28234 (altivec_vmrghb_direct): New define_insn.
28235 (altivec_vmrghh): Replace with define_expand and new
28236 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28237 (altivec_vmrghh_direct): New define_insn.
28238 (altivec_vmrghw): Replace with define_expand and new
28239 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28240 (altivec_vmrghw_direct): New define_insn.
28241 (*altivec_vmrghsf): Adjust for endianness.
28242 (altivec_vmrglb): Replace with define_expand and new
28243 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28244 (altivec_vmrglb_direct): New define_insn.
28245 (altivec_vmrglh): Replace with define_expand and new
28246 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28247 (altivec_vmrglh_direct): New define_insn.
28248 (altivec_vmrglw): Replace with define_expand and new
28249 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28250 (altivec_vmrglw_direct): New define_insn.
28251 (*altivec_vmrglsf): Adjust for endianness.
28252 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28253 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28254 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28255 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28256 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28257 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28258 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28259 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28260
28261 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28262
28263 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28264 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28265 whitespace.
28266
28267 2014-01-29 Richard Biener <rguenther@suse.de>
28268
28269 PR tree-optimization/58742
28270 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28271 associate_pointerplus_align.
28272 (associate_pointerplus_diff): New function.
28273 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28274 and associate_pointerplus_diff.
28275
28276 2014-01-29 Richard Biener <rguenther@suse.de>
28277
28278 * lto-streamer.h (LTO_major_version): Bump to 3.
28279 (LTO_minor_version): Reset to 0.
28280
28281 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28282
28283 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28284 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28285 (arm_file_start): Generate correct asm header for armv7ve.
28286 * config/arm/bpabi.h: Add multilib support for armv7ve.
28287 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28288 and cortex-a15 to armv7ve.
28289 * config/arm/t-aprofile: Add multilib support for armv7ve.
28290 * doc/invoke.texi: Document -march=armv7ve.
28291
28292 2014-01-29 Richard Biener <rguenther@suse.de>
28293
28294 PR tree-optimization/58742
28295 * tree-ssa-forwprop.c (associate_plusminus): Return true
28296 if we changed sth, defer EH cleanup to ...
28297 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28298 (simplify_mult): New function.
28299
28300 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28301
28302 PR middle-end/59917
28303 PR tree-optimization/59920
28304 * tree.c (build_common_builtin_nodes): Remove
28305 __builtin_setjmp_dispatcher initialization.
28306 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28307 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28308 instead of gsi_after_labels + manually skipping debug stmts.
28309 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28310 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28311 * tree-inline.c (copy_edges_for_bb): Remove
28312 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28313 argument. Ignore computed_goto_p stmts. Don't call
28314 make_abnormal_goto_edges. If a call might need abnormal edges
28315 for non-local gotos, see if it already has an edge to
28316 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28317 with true argument, don't do anything then, otherwise add
28318 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28319 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28320 caller.
28321 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28322 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28323 (lower_stmt): Don't set data->calls_builtin_setjmp.
28324 (lower_builtin_setjmp): Adjust comment.
28325 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28326 * tree-cfg.c (found_computed_goto): Remove.
28327 (factor_computed_gotos): Remove.
28328 (make_goto_expr_edges): Return bool, true for computed gotos.
28329 Don't call make_abnormal_goto_edges.
28330 (build_gimple_cfg): Don't set found_computed_goto, don't call
28331 factor_computed_gotos.
28332 (computed_goto_p): No longer static.
28333 (make_blocks): Don't set found_computed_goto.
28334 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28335 (make_edges): If make_goto_expr_edges returns true, push bb
28336 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28337 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28338 vector. Record mapping between bbs and OpenMP regions if there
28339 are any, adjust make_gimple_omp_edges caller. Call
28340 handle_abnormal_edges.
28341 (make_abnormal_goto_edges): Remove.
28342 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28343 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28344 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28345 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28346 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28347 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28348 filling *region also set *region_idx to (*region)->entry->index.
28349
28350 PR other/58712
28351 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28352 For REGs set ORIGINAL_REGNO.
28353
28354 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28355
28356 * doc/md.texi: Mention that a target shouldn't implement
28357 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28358 than hi/lo pair.
28359
28360 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28361
28362 PR tree-optimization/59594
28363 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28364 a copy of the datarefs vector rather than the vector itself.
28365
28366 2014-01-28 Jason Merrill <jason@redhat.com>
28367
28368 PR c++/53756
28369 * dwarf2out.c (auto_die): New static.
28370 (gen_type_die_with_usage): Handle C++1y 'auto'.
28371 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28372 on definition.
28373
28374 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28375
28376 PR target/59672
28377 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28378 (SPEC_X32): Likewise.
28379 (SPEC_64): Likewise.
28380 * config/i386/i386.c (ix86_option_override_internal): Turn off
28381 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28382 for TARGET_16BIT.
28383 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28384 * config/i386/i386.h (TARGET_16BIT): New macro.
28385 (TARGET_16BIT_P): Likewise.
28386 * config/i386/i386.opt: Add m16.
28387 * doc/invoke.texi: Document -m16.
28388
28389 2014-01-28 Jakub Jelinek <jakub@redhat.com>
28390
28391 PR preprocessor/59935
28392 * input.c (location_get_source_line): Bail out on when line number
28393 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
28394
28395 2014-01-28 Richard Biener <rguenther@suse.de>
28396
28397 PR tree-optimization/58742
28398 * tree-ssa-forwprop.c (associate_plusminus): Handle
28399 pointer subtraction of the form (T)(P + A) - (T)P.
28400
28401 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28402
28403 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
28404 at const_int_cost.
28405
28406 2014-01-28 Richard Biener <rguenther@suse.de>
28407
28408 Revert
28409 2014-01-28 Richard Biener <rguenther@suse.de>
28410
28411 PR rtl-optimization/45364
28412 PR rtl-optimization/59890
28413 * var-tracking.c (local_get_addr_clear_given_value): Handle
28414 already cleared slot.
28415 (val_reset): Handle not allocated local_get_addr_cache.
28416 (vt_find_locations): Use post-order on the inverted CFG.
28417
28418 2014-01-28 Richard Biener <rguenther@suse.de>
28419
28420 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
28421
28422 2014-01-28 Richard Biener <rguenther@suse.de>
28423
28424 PR rtl-optimization/45364
28425 PR rtl-optimization/59890
28426 * var-tracking.c (local_get_addr_clear_given_value): Handle
28427 already cleared slot.
28428 (val_reset): Handle not allocated local_get_addr_cache.
28429 (vt_find_locations): Use post-order on the inverted CFG.
28430
28431 2014-01-28 Alan Modra <amodra@gmail.com>
28432
28433 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
28434 * configure.ac <recursive call for build != host>: Define
28435 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
28436 and LD_FOR_BUILD too.
28437 * configure: Regenerate.
28438
28439 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
28440
28441 * config/i386/i386.c (get_builtin_code_for_version): Separate
28442 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
28443 Broadwell from Haswell.
28444
28445 2014-01-27 Steve Ellcey <sellcey@mips.com>
28446
28447 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28448 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
28449 * config/mips/mips.c (mips_option_override): Change setting
28450 of TARGET_DSP.
28451 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
28452 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
28453 Change from Mask to Var.
28454
28455 2014-01-27 Jeff Law <law@redhat.com>
28456
28457 * ipa-inline.c (inline_small_functions): Fix typo.
28458
28459 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
28460
28461 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
28462 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
28463 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
28464 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
28465 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
28466 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
28467 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
28468 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
28469 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
28470 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
28471 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
28472 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
28473 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
28474 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
28475 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
28476 (_mm512_storeu_epi64): Ditto.
28477 (_mm512_cmpge_epi32_mask): Ditto.
28478 (_mm512_cmpge_epu32_mask): Ditto.
28479 (_mm512_cmpge_epi64_mask): Ditto.
28480 (_mm512_cmpge_epu64_mask): Ditto.
28481 (_mm512_cmple_epi32_mask): Ditto.
28482 (_mm512_cmple_epu32_mask): Ditto.
28483 (_mm512_cmple_epi64_mask): Ditto.
28484 (_mm512_cmple_epu64_mask): Ditto.
28485 (_mm512_cmplt_epi32_mask): Ditto.
28486 (_mm512_cmplt_epu32_mask): Ditto.
28487 (_mm512_cmplt_epi64_mask): Ditto.
28488 (_mm512_cmplt_epu64_mask): Ditto.
28489 (_mm512_cmpneq_epi32_mask): Ditto.
28490 (_mm512_cmpneq_epu32_mask): Ditto.
28491 (_mm512_cmpneq_epi64_mask): Ditto.
28492 (_mm512_cmpneq_epu64_mask): Ditto.
28493 (_mm512_expand_pd): Ditto.
28494 (_mm512_expand_ps): Ditto.
28495 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28496 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28497 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28498 * config/i386/i386.c (ix86_builtins): Add
28499 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28500 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28501 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28502 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28503 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28504 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28505 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28506 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28507 IX86_BUILTIN_PMOVUSQW512_MEM.
28508 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28509 __builtin_ia32_pmovsqd512mem_mask,
28510 __builtin_ia32_pmovqd512mem_mask,
28511 __builtin_ia32_pmovusqw512mem_mask,
28512 __builtin_ia32_pmovsqw512mem_mask,
28513 __builtin_ia32_pmovqw512mem_mask,
28514 __builtin_ia32_pmovusdw512mem_mask,
28515 __builtin_ia32_pmovsdw512mem_mask,
28516 __builtin_ia32_pmovdw512mem_mask,
28517 __builtin_ia32_pmovqb512mem_mask,
28518 __builtin_ia32_pmovusqb512mem_mask,
28519 __builtin_ia32_pmovsqb512mem_mask,
28520 __builtin_ia32_pmovusdb512mem_mask,
28521 __builtin_ia32_pmovsdb512mem_mask,
28522 __builtin_ia32_pmovdb512mem_mask.
28523 (bdesc_args): Add __builtin_ia32_expanddf512,
28524 __builtin_ia32_expandsf512.
28525 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28526 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28527 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28528 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28529 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28530 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28531 (avx512f_<code>v8div16qi2_mask_store): This.
28532 (avx512f_expand<mode>): New.
28533
28534 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28535
28536 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28537 New.
28538 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28539 (_mm512_prefetch_i32scatter_pd): Ditto.
28540 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28541 (_mm512_prefetch_i64scatter_pd): Ditto.
28542 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28543 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28544 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28545 (_mm512_prefetch_i32scatter_ps): Ditto.
28546 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28547 (_mm512_prefetch_i64scatter_ps): Ditto.
28548 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28549 * config/i386/i386-builtin-types.def: Define
28550 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28551 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28552 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28553 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28554 IX86_BUILTIN_SCATTERPFQPD.
28555 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28556 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28557 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28558 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28559 __builtin_ia32_scatterpfqps.
28560 (ix86_expand_builtin): Expand new built-ins.
28561 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28562 fix memory access data type.
28563 (*avx512pf_gatherpf<mode>_mask): Ditto.
28564 (*avx512pf_gatherpf<mode>): Ditto.
28565 (avx512pf_scatterpf<mode>): Ditto.
28566 (*avx512pf_scatterpf<mode>_mask): Ditto.
28567 (*avx512pf_scatterpf<mode>): Ditto.
28568 (GATHER_SCATTER_SF_MEM_MODE): New.
28569 (avx512pf_gatherpf<mode>df): Ditto.
28570 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28571 (*avx512pf_scatterpf<mode>df): Ditto.
28572
28573 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28574
28575 PR bootstrap/59934
28576 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28577 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28578 reached.
28579
28580 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28581
28582 * common/config/arm/arm-common.c
28583 (arm_rewrite_mcpu): Handle multiple names.
28584 * config/arm/arm.h
28585 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28586
28587 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28588
28589 * gimple-builder.h (create_gimple_tmp): Delete.
28590
28591 2014-01-27 Christian Bruel <christian.bruel@st.com>
28592
28593 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28594 words comparisons.
28595
28596 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
28597
28598 * config/pa/pa.md (call): Generate indirect long calls to non-local
28599 functions when outputing 32-bit code.
28600 (call_value): Likewise except for special call to buggy powf function.
28601
28602 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28603 portable runtime and PIC indirect calls.
28604 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28605 and PIC call sequences. Use ldo instead of blr to set return register
28606 in PIC call sequence.
28607
28608 2014-01-25 Walter Lee <walt@tilera.com>
28609
28610 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28611 avoid clobbering a live register.
28612
28613 2014-01-25 Walter Lee <walt@tilera.com>
28614
28615 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28616 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28617 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28618 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28619
28620 2014-01-25 Walter Lee <walt@tilera.com>
28621
28622 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28623 arguments on even registers.
28624 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28625 STACK_BOUNDARY.
28626 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28627 (BIGGEST_ALIGNMENT): Ditto.
28628 (BIGGEST_FIELD_ALIGNMENT): Ditto.
28629
28630 2014-01-25 Walter Lee <walt@tilera.com>
28631
28632 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28633 insns before bundling.
28634 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28635
28636 2014-01-25 Walter Lee <walt@tilera.com>
28637
28638 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28639 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28640 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28641
28642 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28643
28644 * config/mips/constraints.md (kl): Delete.
28645 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28646 define expands, using...
28647 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28648 instructions for MIPS16.
28649 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28650 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28651
28652 2014-01-25 Walter Lee <walt@tilera.com>
28653
28654 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28655 (clzdi2): Ditto.
28656 (ffsdi2): Ditto.
28657
28658 2014-01-25 Walter Lee <walt@tilera.com>
28659
28660 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28661 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28662
28663 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28664
28665 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28666 Handle XOR.
28667
28668 2014-01-25 Jakub Jelinek <jakub@redhat.com>
28669
28670 * print-rtl.c (in_call_function_usage): New var.
28671 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28672 EXPR_LIST mode as mode and not as reg note name.
28673
28674 PR middle-end/59561
28675 * cfgloopmanip.c (copy_loop_info): If
28676 loop->warned_aggressive_loop_optimizations, make sure
28677 the flag is set in target loop too.
28678
28679 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28680
28681 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28682 flag_cilkplus.
28683 * builtins.def: Likewise.
28684 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28685 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28686 * ira.c (ira_setup_eliminable_regset): Likewise.
28687 * omp-low.c (gate_expand_omp): Likewise.
28688 (execute_lower_omp): Likewise.
28689 (diagnose_sb_0): Likewise.
28690 (gate_diagnose_omp_blocks): Likewise.
28691 (simd_clone_clauses_extract): Likewise.
28692 (gate): Likewise.
28693
28694 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28695
28696 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28697 correction for little endian...
28698 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28699 here.
28700
28701 2014-01-24 Jeff Law <law@redhat.com>
28702
28703 PR tree-optimization/59919
28704 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28705 for non-returning calls.
28706
28707 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28708
28709 * common/config/aarch64/aarch64-common.c
28710 (aarch64_rewrite_mcpu): Handle multiple names.
28711 * config/aarch64/aarch64.h
28712 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28713
28714 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28715
28716 * input.c (add_file_to_cache_tab): Handle the case where fopen
28717 returns NULL.
28718
28719 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28720
28721 PR target/59929
28722 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28723 from push operand if code of push isn't PRE_DEC.
28724
28725 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28726
28727 PR target/59909
28728 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28729 -mquad-memory-atomic. Update -mquad-memory documentation to say
28730 it is only used for non-atomic loads/stores.
28731
28732 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28733 -mquad-memory or -mquad-memory-atomic switches.
28734
28735 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28736 -mquad-memory-atomic to ISA 2.07 support.
28737
28738 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28739 to separate support of normal quad word memory operations (ldq, stq)
28740 from the atomic quad word memory operations.
28741
28742 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28743 support to separate non-atomic quad word operations from atomic
28744 quad word operations. Disable non-atomic quad word operations in
28745 little endian mode so that we don't have to swap words after the
28746 load and before the store.
28747 (quad_load_store_p): Add comment about atomic quad word support.
28748 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28749 options printed with -mdebug=reg.
28750
28751 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28752 -mquad-memory-atomic as the test for whether we have quad word
28753 atomic instructions.
28754 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28755 or -mp8-vector are used, allow byte/half-word atomic operations.
28756
28757 * config/rs6000/sync.md (load_lockedti): Insure that the address
28758 is a proper indexed or indirect address for the lqarx instruction.
28759 On little endian systems, swap the hi/lo registers after the lqarx
28760 instruction.
28761 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28762 insure the address is valid for the lqarx instruction.
28763 (store_conditionalti): Insure that the address is a proper indexed
28764 or indirect address for the stqcrx. instruction. On little endian
28765 systems, swap the hi/lo registers before doing the stqcrx.
28766 instruction.
28767 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28768 insure the address is valid for the stqcrx. instruction.
28769
28770 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28771 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28772 type of quad memory support is available.
28773
28774 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28775
28776 PR regression/59915
28777 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28778 there is a danger of looping.
28779
28780 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28781
28782 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28783 force flag_ira_loop_pressure if set via command line.
28784
28785 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28786
28787 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28788 (ashr_simd): New builtin handling DI mode.
28789 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28790 (aarch64_sshr_simddi): New match pattern.
28791 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28792 (vshrd_n_s64): Likewise.
28793 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28794
28795 2014-01-23 Nick Clifton <nickc@redhat.com>
28796
28797 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28798 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28799 favour of mcu specific scripts.
28800 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28801 430x multilibs.
28802
28803 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28804 Alex Velenko <Alex.Velenko@arm.com>
28805
28806 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28807 (vaddv_s16): Likewise.
28808 (vaddv_s32): Likewise.
28809 (vaddv_u8): Likewise.
28810 (vaddv_u16): Likewise.
28811 (vaddv_u32): Likewise.
28812 (vaddvq_s8): Likewise.
28813 (vaddvq_s16): Likewise.
28814 (vaddvq_s32): Likewise.
28815 (vaddvq_s64): Likewise.
28816 (vaddvq_u8): Likewise.
28817 (vaddvq_u16): Likewise.
28818 (vaddvq_u32): Likewise.
28819 (vaddvq_u64): Likewise.
28820 (vaddv_f32): Likewise.
28821 (vaddvq_f32): Likewise.
28822 (vaddvq_f64): Likewise.
28823 (vmaxv_f32): Likewise.
28824 (vmaxv_s8): Likewise.
28825 (vmaxv_s16): Likewise.
28826 (vmaxv_s32): Likewise.
28827 (vmaxv_u8): Likewise.
28828 (vmaxv_u16): Likewise.
28829 (vmaxv_u32): Likewise.
28830 (vmaxvq_f32): Likewise.
28831 (vmaxvq_f64): Likewise.
28832 (vmaxvq_s8): Likewise.
28833 (vmaxvq_s16): Likewise.
28834 (vmaxvq_s32): Likewise.
28835 (vmaxvq_u8): Likewise.
28836 (vmaxvq_u16): Likewise.
28837 (vmaxvq_u32): Likewise.
28838 (vmaxnmv_f32): Likewise.
28839 (vmaxnmvq_f32): Likewise.
28840 (vmaxnmvq_f64): Likewise.
28841 (vminv_f32): Likewise.
28842 (vminv_s8): Likewise.
28843 (vminv_s16): Likewise.
28844 (vminv_s32): Likewise.
28845 (vminv_u8): Likewise.
28846 (vminv_u16): Likewise.
28847 (vminv_u32): Likewise.
28848 (vminvq_f32): Likewise.
28849 (vminvq_f64): Likewise.
28850 (vminvq_s8): Likewise.
28851 (vminvq_s16): Likewise.
28852 (vminvq_s32): Likewise.
28853 (vminvq_u8): Likewise.
28854 (vminvq_u16): Likewise.
28855 (vminvq_u32): Likewise.
28856 (vminnmv_f32): Likewise.
28857 (vminnmvq_f32): Likewise.
28858 (vminnmvq_f64): Likewise.
28859
28860 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28861
28862 * config/aarch64/aarch64-simd.md
28863 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
28864 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
28865 (*aarch64_mul3_elt<mode>): Likewise.
28866 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
28867 (*aarch64_mul3_elt_to_64v2df): Likewise.
28868 (*aarch64_mla_elt<mode>): Likewise.
28869 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28870 (*aarch64_mls_elt<mode>): Likewise.
28871 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28872 (*aarch64_fma4_elt<mode>): Likewise.
28873 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28874 (*aarch64_fma4_elt_to_64v2df): Likewise.
28875 (*aarch64_fnma4_elt<mode>): Likewise.
28876 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28877 (*aarch64_fnma4_elt_to_64v2df): Likewise.
28878 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
28879 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
28880 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28881 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28882 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
28883 (aarch64_sqdmull_lane<mode>_internal): Likewise.
28884 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
28885
28886 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
28887
28888 * config/aarch64/aarch64-simd.md
28889 (aarch64_be_checked_get_lane<mode>): New define_expand.
28890 * config/aarch64/aarch64-simd-builtins.def
28891 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
28892 New builtin definition.
28893 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
28894 Use new safe be builtin.
28895
28896 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28897
28898 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
28899 New define_insn.
28900 (aarch64_be_st1<mode>): Likewise.
28901 (aarch_ld1<VALL:mode>): Define_expand modified.
28902 (aarch_st1<VALL:mode>): Likewise.
28903 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
28904 (UNSPEC_ST1): Likewise.
28905
28906 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
28907
28908 * config/microblaze/microblaze.md: Add trap insn and attribute
28909
28910 2014-01-23 Dodji Seketeli <dodji@redhat.com>
28911
28912 PR preprocessor/58580
28913 * input.h (location_get_source_line): Take an additional line_size
28914 parameter.
28915 (void diagnostics_file_cache_fini): Declare new function.
28916 * input.c (struct fcache): New type.
28917 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
28918 New static constants.
28919 (diagnostic_file_cache_init, total_lines_num)
28920 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
28921 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
28922 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
28923 (get_next_line, read_next_line, goto_next_line, read_line_num):
28924 New static function definitions.
28925 (diagnostic_file_cache_fini): New function.
28926 (location_get_source_line): Take an additional output line_len
28927 parameter. Re-write using lookup_or_add_file_to_cache_tab and
28928 read_line_num.
28929 * diagnostic.c (diagnostic_finish): Call
28930 diagnostic_file_cache_fini.
28931 (adjust_line): Take an additional input parameter for the length
28932 of the line, rather than calculating it with strlen.
28933 (diagnostic_show_locus): Adjust the use of
28934 location_get_source_line and adjust_line with respect to their new
28935 signature. While displaying a line now, do not stop at the first
28936 null byte. Rather, display the zero byte as a space and keep
28937 going until we reach the size of the line.
28938 * Makefile.in: Add vec.o to OBJS-libcommon
28939
28940 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28941 Ilya Tocar <ilya.tocar@intel.com>
28942
28943 * config/i386/avx512fintrin.h (_mm512_kmov): New.
28944 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
28945 (__builtin_ia32_kmov16): Ditto.
28946 * config/i386/i386.md (UNSPEC_KMOV): New.
28947 (kmovw): Ditto.
28948
28949 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28950
28951 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
28952 (_mm512_storeu_si512): Ditto.
28953
28954 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
28955
28956 PR target/52125
28957 * rtl.h (get_referenced_operands): Declare.
28958 * recog.c (get_referenced_operands): New function.
28959 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
28960 operands have been referenced when recording LO_SUM references.
28961
28962 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
28963
28964 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
28965
28966 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28967
28968 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
28969 Enable for generic and recent AMD targets.
28970
28971 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28972
28973 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
28974 ARG_SIZE note when adjustment was eliminated.
28975
28976 2014-01-22 Jeff Law <law@redhat.com>
28977
28978 PR tree-optimization/59597
28979 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
28980 in file. Accept new argument REGISTERING and use it to modify
28981 dump output appropriately.
28982 (register_jump_thread): Corresponding changes.
28983 (mark_threaded_blocks): Reinstate code to cancel unprofitable
28984 thread paths involving joiner blocks. Add code to dump cancelled
28985 jump threading paths.
28986
28987 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
28988
28989 PR rtl-optimization/59477
28990 * lra-constraints.c (inherit_in_ebb): Process call for living hard
28991 regs. Update reloads_num and potential_reload_hard_regs for all insns.
28992
28993 2014-01-22 Tom Tromey <tromey@redhat.com>
28994
28995 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
28996 PARAMS.
28997 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
28998
28999 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29000
29001 PR rtl-optimization/59896
29002 * lra-constraints.c (process_alt_operands): Check unused note for
29003 matched operands of insn with no output reloads.
29004
29005 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29006
29007 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29008 (mips_move_from_gpr_cost): Likewise.
29009
29010 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29011
29012 PR rtl-optimization/59858
29013 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29014 ira_class_hard_regs_num.
29015 (process_alt_operands): Increase reject for dying matched operand.
29016
29017 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29018
29019 PR target/59003
29020 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29021 smaller than size, perform several stores or loads and stores
29022 at dst + count - size to store or copy all of size bytes, rather
29023 than just last modesize bytes.
29024
29025 2014-01-20 DJ Delorie <dj@redhat.com>
29026
29027 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29028 that CLOBBERs are REGs before propogating their values.
29029
29030 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29031
29032 PR middle-end/59789
29033 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29034 (cgraph_inline_failed_type): New function.
29035 * cgraph.h (DEFCIFCODE): Add type.
29036 (cgraph_inline_failed_type_t): New enum.
29037 (cgraph_inline_failed_type): New prototype.
29038 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29039 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29040 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29041 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29042 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29043 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29044 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29045 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29046 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29047 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29048 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29049 OPTIMIZATION_MISMATCH.
29050 * tree-inline.c (expand_call_inline): Emit errors during
29051 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29052
29053 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29054
29055 PR target/59685
29056 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29057 mode attribute in insn output.
29058
29059 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29060
29061 * output.h (output_constant): Delete.
29062 * varasm.c (output_constant): Make private.
29063
29064 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29065
29066 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29067
29068 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29069
29070 PR middle-end/59860
29071 * tree.h (fold_builtin_strcat): New prototype.
29072 * builtins.c (fold_builtin_strcat): No longer static. Add len
29073 argument, if non-NULL, don't call c_strlen. Optimize
29074 directly into __builtin_memcpy instead of __builtin_strcpy.
29075 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29076 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29077
29078 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29079
29080 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29081 for SImode_address_operand operands, having only a REG argument.
29082
29083 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29084
29085 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29086 loader name using mbig-endian.
29087 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29088
29089 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29090
29091 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29092 (-mtune): Likewise.
29093 (-mcpu): Likewise.
29094
29095 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29096
29097 * config/aarch64/aarch64-protos.h
29098 (aarch64_cannot_change_mode_class_ptr): Declare.
29099 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29100 aarch64_cannot_change_mode_class_ptr): New.
29101 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29102 backend hook aarch64_cannot_change_mode_class.
29103
29104 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29105
29106 * common/config/aarch64/aarch64-common.c
29107 (aarch64_handle_option): Don't handle any option order logic here.
29108 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29109 selected_cpu, warn on architecture version mismatch.
29110 (aarch64_override_options): Fix parsing order for option strings.
29111
29112 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29113 Iain Sandoe <iain@codesourcery.com>
29114
29115 PR bootstrap/59496
29116 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29117 warning. Amend comment to reflect current functionality.
29118
29119 2014-01-20 Richard Biener <rguenther@suse.de>
29120
29121 PR middle-end/59860
29122 * builtins.c (fold_builtin_strcat): Remove case better handled
29123 by tree-ssa-strlen.c.
29124
29125 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29126
29127 * config/aarch64/aarch64.opt
29128 (mcpu, march, mtune): Make case-insensitive.
29129
29130 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29131
29132 PR target/59880
29133 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29134 if operands[1] is a REG or ZERO_EXTEND of a REG.
29135
29136 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29137
29138 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29139
29140 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29141
29142 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29143 long non-pic millicode calls.
29144
29145 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29146
29147 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29148
29149 2014-01-19 Kito Cheng <kito@0xlab.org>
29150
29151 * builtins.c (expand_movstr): Check movstr expand done or fail.
29152
29153 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29154 H.J. Lu <hongjiu.lu@intel.com>
29155
29156 PR target/59379
29157 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29158 to DImode for zero-extended addresses.
29159
29160 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29161
29162 PR rtl-optimization/57763
29163 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29164 on the new indirect jump_insn and increment LABEL_NUSES (label).
29165
29166 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29167
29168 PR bootstrap/59580
29169 PR bootstrap/59583
29170 * config.gcc (x86_archs): New variable.
29171 (x86_64_archs): Likewise.
29172 (x86_cpus): Likewise.
29173 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29174 --with-arch/--with-cpu= options.
29175 Support --with-arch=/--with-cpu={nehalem,westmere,
29176 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29177
29178 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29179
29180 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29181 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29182
29183 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29184
29185 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29186
29187 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29188
29189 PR target/58944
29190 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29191 clear cpp_get_options (parse_in)->warn_unused_macros for
29192 ix86_target_macros_internal with cpp_define.
29193
29194 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29195
29196 * jump.c (delete_related_insns): Keep (use (insn))s.
29197 * reorg.c (redundant_insn): Check for barriers too.
29198
29199 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29200
29201 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29202
29203 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29204
29205 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29206 call to $$dyncall when TARGET_LONG_CALLS is true.
29207
29208 2014-01-17 Jeff Law <law@redhat.com>
29209
29210 * ree.c (combine_set_extension): Temporarily disable test for
29211 changing number of hard registers.
29212
29213 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29214
29215 PR middle-end/58125
29216 * ipa-inline-analysis.c (inline_free_summary):
29217 Do not free summary of aliases.
29218
29219 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29220
29221 PR middle-end/59706
29222 * gimplify.c (gimplify_expr): Use create_tmp_var
29223 instead of create_tmp_var_raw. If cond doesn't have
29224 integral type, don't add the IFN_ANNOTATE builtin at all.
29225
29226 2014-01-17 Martin Jambor <mjambor@suse.cz>
29227
29228 PR ipa/59736
29229 * ipa-cp.c (prev_edge_clone): New variable.
29230 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29231 Also resize prev_edge_clone vector.
29232 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29233 (ipcp_edge_removal_hook): New function.
29234 (ipcp_driver): Register ipcp_edge_removal_hook.
29235
29236 2014-01-17 Andrew Pinski <apinski@cavium.com>
29237 Steve Ellcey <sellcey@mips.com>
29238
29239 PR target/59462
29240 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29241 of operator mode.
29242
29243 2014-01-17 Jeff Law <law@redhat.com>
29244
29245 PR middle-end/57904
29246 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29247 so that pass_ccp runs first.
29248
29249 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29250
29251 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29252 (ix86_adjust_cost): Use !TARGET_XXX.
29253 (do_reorder_for_imul): Likewise.
29254 (swap_top_of_ready_list): Likewise.
29255 (ix86_sched_reorder): Likewise.
29256
29257 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29258
29259 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29260 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29261 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29262 (intel_memset): New. Duplicate slm_memset.
29263 (intel_cost): New. Duplicate slm_cost.
29264 (m_INTEL): New macro.
29265 (processor_target_table): Add "intel".
29266 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29267 with PROCESSOR_INTEL for "intel".
29268 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29269 PROCESSOR_SILVERMONT.
29270 (ix86_issue_rate): Likewise.
29271 (ix86_adjust_cost): Likewise.
29272 (ia32_multipass_dfa_lookahead): Likewise.
29273 (swap_top_of_ready_list): Likewise.
29274 (ix86_sched_reorder): Likewise.
29275 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29276 instead of TARGET_OPT_AGU.
29277 * config/i386/i386.h (TARGET_INTEL): New.
29278 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29279 (processor_type): Add PROCESSOR_INTEL.
29280 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29281 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29282
29283 2014-01-17 Marek Polacek <polacek@redhat.com>
29284
29285 PR c/58346
29286 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29287 size is zero.
29288
29289 2014-01-17 Richard Biener <rguenther@suse.de>
29290
29291 PR tree-optimization/46590
29292 * opts.c (default_options_table): Add entries for
29293 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29294 all enabled at -O1 but not for -Og.
29295 * common.opt (fbranch-count-reg): Remove Init(1).
29296 (fmove-loop-invariants): Likewise.
29297 (ftree-pta): Likewise.
29298
29299 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29300
29301 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29302 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29303 decls to at least the GCC 4.8 used alignments.
29304
29305 PR fortran/59440
29306 * tree-nested.c (convert_nonlocal_reference_stmt,
29307 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29308 of GIMPLE_BIND stmts, adjust associated decls.
29309
29310 2014-01-17 Richard Biener <rguenther@suse.de>
29311
29312 PR tree-optimization/46590
29313 * vec.h (vec<>::bseach): New member function implementing
29314 binary search according to C89 bsearch.
29315 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29316 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29317 bitmap pointer again. Make accesses_in_loop a flat array.
29318 (mem_ref_obstack): New global.
29319 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29320 (mark_ref_stored): Likewise.
29321 (ref_indep_loop_p_2): Likewise.
29322 (set_ref_stored_in_loop): New helper function.
29323 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29324 (memref_free): Adjust.
29325 (record_mem_ref_loc): Simplify.
29326 (gather_mem_refs_stmt): Adjust.
29327 (sort_locs_in_loop_postorder_cmp): New function.
29328 (analyze_memory_references): Sort accesses_in_loop after
29329 loop postorder number.
29330 (find_ref_loc_in_loop_cmp): New function.
29331 (for_all_locs_in_loop): Find relevant cluster of locs in
29332 accesses_in_loop and iterate without recursion.
29333 (execute_sm): Avoid uninit warning.
29334 (struct ref_always_accessed): Simplify.
29335 (ref_always_accessed::operator ()): Likewise.
29336 (ref_always_accessed_p): Likewise.
29337 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29338 loop postorder numbers here.
29339 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29340 numbers.
29341
29342 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29343
29344 PR c++/57945
29345 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29346 on decls for which assemble_alias has been called.
29347
29348 2014-01-17 Nick Clifton <nickc@redhat.com>
29349
29350 * config/msp430/msp430.opt: (mcpu): New option.
29351 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29352 (msp430_option_override): Parse target_cpu. If the MCU name
29353 matches a generic string, clear target_mcu.
29354 (msp430_attr): Allow numeric interrupt values up to 63.
29355 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29356 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29357 option.
29358 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29359 Add mcpu matches.
29360 * config/msp430/msp430.md (popm): Use %J rather than %I.
29361 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29362 (addhi_cy_i): Use immediate_operand for operand 2.
29363 * doc/invoke.texi: Document -mcpu option.
29364
29365 2014-01-17 Richard Biener <rguenther@suse.de>
29366
29367 PR rtl-optimization/38518
29368 * df.h (df_analyze_loop): Declare.
29369 * df-core.c: Include cfgloop.h.
29370 (df_analyze_1): Split out main part of df_analyze.
29371 (df_analyze): Adjust.
29372 (loop_inverted_post_order_compute): New function.
29373 (loop_post_order_compute): Likewise.
29374 (df_analyze_loop): New function avoiding whole-function
29375 postorder computes.
29376 * loop-invariant.c (find_defs): Use df_analyze_loop.
29377 (find_invariants): Adjust.
29378 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29379
29380 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29381
29382 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29383 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
29384
29385 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
29386
29387 * ipa-ref.c (ipa_remove_stmt_references): Fix references
29388 traversal when removing references.
29389
29390 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
29391
29392 PR ipa/59775
29393 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
29394
29395 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
29396
29397 PR middle-end/56791
29398 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
29399 pushing a reload for an autoinc when we had previously reloaded an
29400 inner part of the address.
29401
29402 2014-01-16 Jakub Jelinek <jakub@redhat.com>
29403
29404 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
29405 field.
29406 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
29407 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
29408 when not giving up or versioning for alias only because of
29409 loop->safelen.
29410 (vect_analyze_data_ref_dependences): Set to true.
29411 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
29412 is a GIMPLE_PHI.
29413 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
29414 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
29415 to the condition.
29416
29417 PR middle-end/58344
29418 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
29419
29420 PR target/59839
29421 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
29422 operand 0 predicate for gathers, use a new pseudo as subtarget.
29423
29424 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29425
29426 PR middle-end/59609
29427 * lra-constraints.c (process_alt_operands): Add printing debug info.
29428 Check absence of input/output reloads for matched operands too.
29429
29430 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
29431
29432 PR rtl-optimization/59835
29433 * ira.c (ira_init_register_move_cost): Increase cost for
29434 impossible modes.
29435
29436 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
29437
29438 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
29439
29440 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
29441
29442 PR target/59780
29443 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
29444 non-register objects. Use gen_(high/low)part more consistently.
29445 Fix assertions.
29446
29447 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29448
29449 PR target/59844
29450 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
29451 endian support, remove tests for WORDS_BIG_ENDIAN.
29452 (p8_mfvsrd_3_<mode>): Likewise.
29453 (reload_gpr_from_vsx<mode>): Likewise.
29454 (reload_gpr_from_vsxsf): Likewise.
29455 (p8_mfvsrd_4_disf): Likewise.
29456
29457 2014-01-16 Richard Biener <rguenther@suse.de>
29458
29459 PR rtl-optimization/46590
29460 * lcm.c (compute_antinout_edge): Use postorder iteration.
29461 (compute_laterin): Use inverted postorder iteration.
29462
29463 2014-01-16 Nick Clifton <nickc@redhat.com>
29464
29465 PR middle-end/28865
29466 * varasm.c (output_constant): Return the number of bytes actually
29467 emitted.
29468 (output_constructor_array_range): Update the field size with the
29469 number of bytes emitted by output_constant.
29470 (output_constructor_regular_field): Likewise. Also do not
29471 complain if the total number of bytes emitted is now greater
29472 than the expected fieldpos.
29473 * output.h (output_constant): Update prototype and descriptive comment.
29474
29475 2014-01-16 Marek Polacek <polacek@redhat.com>
29476
29477 PR middle-end/59827
29478 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
29479 it is error_mark_node.
29480
29481 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
29482
29483 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
29484 VALID_AVX256_REG_OR_OI_MODE.
29485
29486 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29487
29488 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29489 current procedure should be profiled.
29490
29491 2014-01-15 Andrew Pinski <apinski@cavium.com>
29492
29493 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29494 of moving from/to the STACK_REG register class.
29495
29496 2014-01-15 Richard Henderson <rth@redhat.com>
29497
29498 PR debug/54694
29499 * reginfo.c (global_regs_decl): Globalize.
29500 * rtl.h (global_regs_decl): Declare.
29501 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29502 reserved via global_regs.
29503
29504 2014-01-15 Teresa Johnson <tejohnson@google.com>
29505
29506 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29507
29508 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29509
29510 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29511 and vmulosh rather than call gen_vec_widen_smult_*.
29512 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29513 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29514 (vec_widen_smult_even_v16qi): Likewise.
29515 (vec_widen_umult_even_v8hi): Likewise.
29516 (vec_widen_smult_even_v8hi): Likewise.
29517 (vec_widen_umult_odd_v16qi): Likewise.
29518 (vec_widen_smult_odd_v16qi): Likewise.
29519 (vec_widen_umult_odd_v8hi): Likewise.
29520 (vec_widen_smult_odd_v8hi): Likewise.
29521 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29522 vmuloub rather than call gen_vec_widen_umult_*.
29523 (vec_widen_umult_lo_v16qi): Likewise.
29524 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29525 vmulosb rather than call gen_vec_widen_smult_*.
29526 (vec_widen_smult_lo_v16qi): Likewise.
29527 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29528 rather than call gen_vec_widen_umult_*.
29529 (vec_widen_umult_lo_v8hi): Likewise.
29530 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29531 rather than call gen_vec_widen_smult_*.
29532 (vec_widen_smult_lo_v8hi): Likewise.
29533
29534 2014-01-15 Jeff Law <law@redhat.com>
29535
29536 PR tree-optimization/59747
29537 * ree.c (find_and_remove_re): Properly handle case where a second
29538 eliminated extension requires widening a copy created for elimination
29539 of a prior extension.
29540 (combine_set_extension): Ensure that the number of hard regs needed
29541 for a destination register does not change when we widen it.
29542
29543 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29544
29545 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29546 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29547 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29548 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29549 (avr-*-rtems*): Likewise.
29550 (bfin*-rtems*): Likewise.
29551 (moxie-*-rtems*): Likewise.
29552 (h8300-*-rtems*): Likewise.
29553 (i[34567]86-*-rtems*): Likewise.
29554 (lm32-*-rtems*): Likewise.
29555 (m32r-*-rtems*): Likewise.
29556 (m68k-*-rtems*): Likewise.
29557 (microblaze*-*-rtems*): Likewise.
29558 (mips*-*-rtems*): Likewise.
29559 (powerpc-*-rtems*): Likewise.
29560 (sh-*-rtems*): Likewise.
29561 (sparc-*-rtems*): Likewise.
29562 (sparc64-*-rtems*): Likewise.
29563 (v850-*-rtems*): Likewise.
29564 (m32c-*-rtems*): Likewise.
29565
29566 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29567
29568 PR rtl-optimization/59511
29569 * ira.c (ira_init_register_move_cost): Use memory costs for some
29570 cases of register move cost calculations.
29571 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29572 instead of BB frequency.
29573 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29574 * lra-assigns.c (find_hard_regno_for): Ditto.
29575
29576 2014-01-15 Richard Biener <rguenther@suse.de>
29577
29578 PR tree-optimization/59822
29579 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29580 (vectorizable_load): Use it to hoist defs of uses of invariant
29581 loads out of the loop.
29582
29583 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
29584 Kugan Vivekanandarajah <kuganv@linaro.org>
29585
29586 PR target/59695
29587 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29588 truncation.
29589
29590 2014-01-15 Richard Biener <rguenther@suse.de>
29591
29592 PR rtl-optimization/59802
29593 * lcm.c (compute_available): Use inverted postorder to seed
29594 the initial worklist.
29595
29596 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29597
29598 PR target/59803
29599 * config/s390/s390.c (s390_preferred_reload_class): Don't return
29600 ADDR_REGS for invalid symrefs in non-PIC code.
29601
29602 2014-01-15 Jakub Jelinek <jakub@redhat.com>
29603
29604 PR other/58712
29605 * builtins.c (determine_block_size): Initialize *probable_max_size
29606 even if len_rtx is CONST_INT.
29607
29608 2014-01-14 Andrew Pinski <apinski@cavium.com>
29609
29610 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29611 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29612 (cortexa53_tunings): Likewise.
29613 (aarch64_sched_issue_rate): New function.
29614 (TARGET_SCHED_ISSUE_RATE): Define.
29615
29616 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29617
29618 * ira-costs.c (find_costs_and_classes): Add missed
29619 ira_init_register_move_cost_if_necessary.
29620
29621 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29622
29623 PR target/59787
29624 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29625
29626 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
29627
29628 PR target/59794
29629 * config/i386/i386.c (type_natural_mode): Add a bool parameter
29630 to indicate if type is used for function return value. Warn ABI
29631 change if the vector mode isn't available for function return value.
29632 (ix86_function_arg_advance): Pass false to type_natural_mode.
29633 (ix86_function_arg): Likewise.
29634 (ix86_gimplify_va_arg): Likewise.
29635 (function_arg_32): Don't warn ABI change.
29636 (ix86_function_value): Pass true to type_natural_mode.
29637 (ix86_return_in_memory): Likewise.
29638 (ix86_struct_value_rtx): Removed.
29639 (TARGET_STRUCT_VALUE_RTX): Likewise.
29640
29641 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29642
29643 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29644 converting a conditional jump into a conditional return.
29645
29646 2014-01-14 Richard Biener <rguenther@suse.de>
29647
29648 PR tree-optimization/58921
29649 PR tree-optimization/59006
29650 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29651 hoisting invariant stmts.
29652 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29653 invariant loads on the preheader edge if possible.
29654
29655 2014-01-14 Joey Ye <joey.ye@arm.com>
29656
29657 * doc/plugin.texi (Building GCC plugins): Update to C++.
29658
29659 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29660
29661 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29662 (_mm_rcp28_round_ss): Ditto.
29663 (_mm_rsqrt28_round_sd): Ditto.
29664 (_mm_rsqrt28_round_ss): Ditto.
29665 (_mm_rcp28_sd): Ditto.
29666 (_mm_rcp28_ss): Ditto.
29667 (_mm_rsqrt28_sd): Ditto.
29668 (_mm_rsqrt28_ss): Ditto.
29669 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29670 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29671 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29672 (IX86_BUILTIN_RCP28SD): Ditto.
29673 (IX86_BUILTIN_RCP28SS): Ditto.
29674 (IX86_BUILTIN_RSQRT28SD): Ditto.
29675 (IX86_BUILTIN_RSQRT28SS): Ditto.
29676 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29677 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29678 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29679 (ix86_expand_special_args_builtin): Expand new FTYPE.
29680 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29681 (srcp14<mode>): Make insn unary.
29682 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29683 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29684 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29685 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29686 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29687 Fix rounding: make it SAE only.
29688 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29689 Ditto.
29690 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29691 Ditto.
29692 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29693 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29694 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29695 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29696 (round_saeonly_mask_scalar_operand4): Ditto.
29697 (round_saeonly_mask_scalar_op3): Ditto.
29698 (round_saeonly_mask_scalar_op4): Ditto.
29699
29700 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29701
29702 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29703 Implement -maltivec=be for vec_insert and vec_extract.
29704
29705 2014-01-10 DJ Delorie <dj@redhat.com>
29706
29707 * config/msp430/msp430.md (call_internal): Don't allow memory
29708 references with SP as the base register.
29709 (call_value_internal): Likewise.
29710 * config/msp430/constraints.md (Yc): New. For memory references
29711 that don't use SP as a base register.
29712
29713 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29714 "an integer without a # prefix"
29715 * config/msp430/msp430.md (epilogue_helper): Use it.
29716
29717 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29718
29719 PR target/59617
29720 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29721 AVX512F gather builtins.
29722 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29723 on gather decls with INTEGER_TYPE masktype.
29724 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29725 directly into the builtin rather than hoisting it before loop.
29726
29727 PR tree-optimization/59387
29728 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29729 (scev_const_prop): If folded_casts and type has undefined overflow,
29730 use force_gimple_operand instead of force_gimple_operand_gsi and
29731 for each added stmt if it is assign with
29732 arith_code_with_undefined_signed_overflow, call
29733 rewrite_to_defined_overflow.
29734 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29735 gimple-fold.h instead.
29736 (arith_code_with_undefined_signed_overflow,
29737 rewrite_to_defined_overflow): Moved to ...
29738 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29739 rewrite_to_defined_overflow): ... here. No longer static.
29740 Include gimplify-me.h.
29741 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29742 rewrite_to_defined_overflow): New prototypes.
29743
29744 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29745
29746 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29747
29748 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29749
29750 * builtins.c (get_object_alignment_2): Minor tweak.
29751 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29752
29753 2014-01-13 Christian Bruel <christian.bruel@st.com>
29754
29755 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29756 optimized non constant lengths.
29757
29758 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29759
29760 PR libgomp/59194
29761 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29762 load as __atomic_load_N if possible.
29763
29764 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29765
29766 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29767 target parameter.
29768 (rs6000_expand_builtin): Adjust call.
29769
29770 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29771
29772 PR target/58115
29773 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29774 * config/rs6000/rs6000.c: Include target-globals.h.
29775 (rs6000_set_current_function): Instead of doing target_reinit
29776 unconditionally, use save_target_globals_default_opts and
29777 restore_target_globals.
29778
29779 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29780 FPSCR.
29781 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29782 (rs6000_expand_builtin): Handle mffs and mtfsf.
29783 (rs6000_init_builtins): Define mffs and mtfsf.
29784 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29785 (rs6000_mffs): New pattern.
29786 (rs6000_mtfsf): New pattern.
29787
29788 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29789
29790 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29791 Start narrowing with START. Apply candidate-use pair
29792 and check overall cost in narrowing.
29793 (iv_ca_prune): Pass new argument.
29794
29795 2014-01-10 Jeff Law <law@redhat.com>
29796
29797 PR middle-end/59743
29798 * ree.c (combine_reaching_defs): Ensure the defining statement
29799 occurs before the extension when optimizing extensions with
29800 different source and destination hard registers.
29801
29802 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29803
29804 PR ipa/58585
29805 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29806 vtables into the type inheritance graph.
29807
29808 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29809
29810 PR rtl-optimization/59754
29811 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29812 modes in the REGNO != REGNO case.
29813
29814 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29815
29816 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29817
29818 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29819
29820 PR tree-optimization/59745
29821 * tree-predcom.c (tree_predictive_commoning_loop): Call
29822 free_affine_expand_cache if giving up because components is NULL.
29823
29824 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29825 GC in payload of target_globals struct instead of allocating them on
29826 the heap and the larger structs separately using GC.
29827 * target-globals.h (struct target_globals): Make regs, hard_regs,
29828 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29829 of GTY((skip)) and change type to void *.
29830 (reset_target_globals): Cast loads from those fields to corresponding
29831 types.
29832
29833 2014-01-10 Steve Ellcey <sellcey@mips.com>
29834
29835 PR plugins/59335
29836 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29837 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29838 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29839
29840 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29841
29842 PR target/59744
29843 * aarch64-modes.def (CC_Zmode): New flags mode.
29844 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
29845 represents an equality.
29846 (aarch64_get_condition_code): Handle CC_Zmode.
29847 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
29848
29849 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29850
29851 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
29852 extraction in good case.
29853
29854 2014-01-10 Richard Biener <rguenther@suse.de>
29855
29856 PR tree-optimization/59374
29857 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
29858 checking after SLP discovery. Mark stmts not participating
29859 in any SLP instance properly.
29860
29861 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29862
29863 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
29864 when handling a SET rtx.
29865
29866 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29867
29868 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
29869 (cortex-a57): Likewise.
29870 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
29871
29872 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29873
29874 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
29875 non-iwmmxt builtins.
29876
29877 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29878
29879 PR ipa/58252
29880 PR ipa/59226
29881 * ipa-devirt.c record_target_from_binfo): Take as argument
29882 stack of binfos and lookup matching one for virtual inheritance.
29883 (possible_polymorphic_call_targets_1): Update.
29884
29885 2014-01-10 Huacai Chen <chenhc@lemote.com>
29886
29887 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
29888 kernel strings for Loongson-2E/2F/3A.
29889
29890 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29891
29892 PR middle-end/59670
29893 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
29894 is_gimple_call before calling gimple_call_internal_p.
29895
29896 2014-01-09 Steve Ellcey <sellcey@mips.com>
29897
29898 * Makefile.in (TREE_FLOW_H): Remove.
29899 (TREE_SSA_H): Add file names from tree-flow.h.
29900 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
29901 * tree.h: Remove tree-flow.h reference.
29902 * hash-table.h: Remove tree-flow.h reference.
29903 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
29904 reference with tree-ssa-loop.h.
29905
29906 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29907
29908 * doc/invoke.texi: Add -maltivec={be,le} options, and document
29909 default element-order behavior for -maltivec.
29910 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
29911 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
29912 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
29913 when targeting big endian, at least for now.
29914 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
29915
29916 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29917
29918 PR middle-end/47735
29919 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
29920 var satisfies use_register_for_decl, just take into account type
29921 alignment, rather than decl alignment.
29922
29923 PR tree-optimization/59622
29924 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
29925 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
29926 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
29927 Don't devirtualize for inplace at all. For targets.length () == 1,
29928 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
29929
29930 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29931
29932 * config/i386/i386.md (cpu): Remove the unused btver1.
29933
29934 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29935
29936 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
29937
29938 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29939
29940 PR target/58115
29941 * tree-core.h (struct target_globals): New forward declaration.
29942 (struct tree_target_option): Add globals field.
29943 * tree.h (TREE_TARGET_GLOBALS): Define.
29944 (prepare_target_option_nodes_for_pch): New prototype.
29945 * target-globals.h (struct target_globals): Define even if
29946 !SWITCHABLE_TARGET.
29947 * tree.c (prepare_target_option_node_for_pch,
29948 prepare_target_option_nodes_for_pch): New functions.
29949 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
29950 * config/i386/i386.c: Include target-globals.h.
29951 (ix86_set_current_function): Instead of doing target_reinit
29952 unconditionally, use save_target_globals_default_opts and
29953 restore_target_globals.
29954
29955 2014-01-09 Richard Biener <rguenther@suse.de>
29956
29957 PR tree-optimization/59715
29958 * tree-cfg.h (split_critical_edges): Declare.
29959 * tree-cfg.c (split_critical_edges): Export.
29960 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
29961
29962 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
29963
29964 * cfgexpand.c (expand_stack_vars): Optionally disable
29965 asan stack protection.
29966 (expand_used_vars): Likewise.
29967 (partition_stack_vars): Likewise.
29968 * asan.c (asan_emit_stack_protection): Optionally disable
29969 after return stack usage.
29970 (instrument_derefs): Optionally disable memory access instrumentation.
29971 (instrument_builtin_call): Likewise.
29972 (instrument_strlen_call): Likewise.
29973 (asan_protect_global): Optionally disable global variables protection.
29974 * doc/invoke.texi: Added doc for new options.
29975 * params.def: Added new options.
29976 * params.h: Likewise.
29977
29978 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29979
29980 PR rtl-optimization/59724
29981 * ifcvt.c (cond_exec_process_if_block): Don't call
29982 flow_find_head_matching_sequence with 0 longest_match.
29983 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
29984 non-active insns if !stop_after.
29985 (try_head_merge_bb): Revert 2014-01-07 changes.
29986
29987 2014-01-08 Jeff Law <law@redhat.com>
29988
29989 * ree.c (get_sub_rtx): New function, extracted from...
29990 (merge_def_and_ext): Here.
29991 (combine_reaching_defs): Use get_sub_rtx.
29992
29993 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
29994
29995 * cgraph.h (varpool_variable_node): Do not choke on null node.
29996
29997 2014-01-08 Catherine Moore <clm@codesourcery.com>
29998
29999 * config/mips/mips.md (simple_return): Attempt to use JRC
30000 for microMIPS.
30001 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30002
30003 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30004
30005 PR rtl-optimization/59137
30006 * reorg.c (steal_delay_list_from_target): Call update_block for
30007 elided insns.
30008 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30009
30010 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30011
30012 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30013 two duplicate entries.
30014
30015 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30016
30017 Revert:
30018 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30019
30020 * config/mips/mips.c (mips_truncated_op_cost): New function.
30021 (mips_rtx_costs): Adjust test for BADDU.
30022 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30023
30024 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30025
30026 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30027 (*baddu_si): ...this new pattern.
30028
30029 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30030
30031 PR ipa/59722
30032 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30033
30034 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30035
30036 PR middle-end/57748
30037 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30038 inner_reference_p.
30039 (expand_expr, expand_normal): Adjust.
30040 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30041 inner_reference_p. Use inner_reference_p to expand inner references.
30042 (store_expr): Adjust.
30043 * cfgexpand.c (expand_call_stmt): Adjust.
30044
30045 2014-01-08 Rong Xu <xur@google.com>
30046
30047 * gcov-io.c (gcov_var): Move from gcov-io.h.
30048 (gcov_position): Ditto.
30049 (gcov_is_error): Ditto.
30050 (gcov_rewrite): Ditto.
30051 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30052 only part to libgcc/libgcov.h.
30053
30054 2014-01-08 Marek Polacek <polacek@redhat.com>
30055
30056 PR middle-end/59669
30057 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30058
30059 2014-01-08 Marek Polacek <polacek@redhat.com>
30060
30061 PR sanitizer/59667
30062 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30063
30064 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30065
30066 PR rtl-optimization/59649
30067 * stor-layout.c (get_mode_bounds): For BImode return
30068 0 and STORE_FLAG_VALUE.
30069
30070 2014-01-08 Richard Biener <rguenther@suse.de>
30071
30072 PR middle-end/59630
30073 * gimple.h (is_gimple_builtin_call): Remove.
30074 (gimple_builtin_call_types_compatible_p): New.
30075 (gimple_call_builtin_p): New overload.
30076 * gimple.c (is_gimple_builtin_call): Remove.
30077 (validate_call): Rename to ...
30078 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30079 check return types.
30080 (validate_type): New static function.
30081 (gimple_call_builtin_p): New overload and adjust.
30082 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30083 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30084 (gimple_fold_stmt_to_constant_1): Likewise.
30085 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30086
30087 2014-01-08 Richard Biener <rguenther@suse.de>
30088
30089 PR middle-end/59471
30090 * gimplify.c (gimplify_expr): Gimplify register-register type
30091 VIEW_CONVERT_EXPRs to separate stmts.
30092
30093 2014-01-07 Jeff Law <law@redhat.com>
30094
30095 PR middle-end/53623
30096 * ree.c (combine_set_extension): Handle case where source
30097 and destination registers in an extension insn are different.
30098 (combine_reaching_defs): Allow source and destination registers
30099 in extension to be different under limited circumstances.
30100 (add_removable_extension): Remove restriction that the
30101 source and destination registers in the extension are the same.
30102 (find_and_remove_re): Emit a copy from the extension's
30103 destination to its source after the defining insn if
30104 the source and destination registers are different.
30105
30106 PR middle-end/59285
30107 * ifcvt.c (merge_if_block): If we are merging a block with more than
30108 one successor with a block with no successors, remove any BARRIER
30109 after the second block.
30110
30111 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30112
30113 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30114
30115 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30116
30117 PR target/59652
30118 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30119 for 14-bit register offsets when INT14_OK_STRICT is false.
30120
30121 2014-01-07 Roland Stigge <stigge@antcom.de>
30122 Michael Meissner <meissner@linux.vnet.ibm.com>
30123
30124 PR 57386/target
30125 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30126 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30127
30128 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30129
30130 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30131 -mcpu.
30132
30133 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30134
30135 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30136 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30137 rtx is const0_rtx or not.
30138
30139 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30140
30141 PR target/58115
30142 * target-globals.c (save_target_globals): Remove this_fn_optab
30143 handling.
30144 * toplev.c: Include optabs.h.
30145 (target_reinit): Temporarily restore the global options if another
30146 set of options are in force.
30147
30148 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30149
30150 PR rtl-optimization/58668
30151 * cfgcleanup.c (flow_find_cross_jump): Don't count
30152 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30153 to determine what is counted.
30154 (flow_find_head_matching_sequence): Use active_insn_p to determine
30155 what is counted.
30156 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30157 counting change.
30158 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30159 determine what is counted.
30160
30161 PR tree-optimization/59643
30162 * tree-predcom.c (split_data_refs_to_components): If one dr is
30163 read and one write, determine_offset fails and the write isn't
30164 in the bad component, just put the read into the bad component.
30165
30166 2014-01-07 Mike Stump <mikestump@comcast.net>
30167 Jakub Jelinek <jakub@redhat.com>
30168
30169 PR pch/59436
30170 * tree-core.h (struct tree_optimization_option): Change optabs
30171 type from unsigned char * to void *.
30172 * optabs.c (init_tree_optimization_optabs): Adjust
30173 TREE_OPTIMIZATION_OPTABS initialization.
30174
30175 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30176
30177 PR target/59644
30178 * config/i386/i386.h (struct machine_function): Add
30179 no_drap_save_restore field.
30180 * config/i386/i386.c (ix86_save_reg): Use
30181 !cfun->machine->no_drap_save_restore instead of
30182 crtl->stack_realign_needed.
30183 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30184 this function clears frame_pointer_needed. Set
30185 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30186 and DRAP reg is needed.
30187
30188 2014-01-06 Marek Polacek <polacek@redhat.com>
30189
30190 PR c/57773
30191 * doc/implement-c.texi: Mention that other integer types are
30192 permitted as bit-field types in strictly conforming mode.
30193
30194 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30195
30196 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30197 is newly allocated.
30198
30199 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30200
30201 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30202
30203 2014-01-06 Martin Jambor <mjambor@suse.cz>
30204
30205 PR ipa/59008
30206 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30207 to int.
30208 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30209
30210 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30211
30212 PR debug/59350
30213 PR debug/59510
30214 * var-tracking.c (add_stores): Preserve the value of the source even if
30215 we don't record the store.
30216
30217 2014-01-06 Terry Guo <terry.guo@arm.com>
30218
30219 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30220
30221 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30222
30223 PR bootstrap/59541
30224 * config/darwin.c (darwin_function_section): Adjust return values to
30225 correspond to optimisation changes made in r206070.
30226
30227 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30228
30229 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30230 from prefetch_block tune setting.
30231 (nocona_cost): Correct size of prefetch block to 64.
30232
30233 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30234
30235 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30236 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30237 used to save the static chain register in the computation of the offset
30238 from which the FP registers need to be restored.
30239
30240 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30241
30242 PR tree-optimization/59519
30243 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30244 ICE if get_current_def (current_new_name) is already non-NULL, as long
30245 as it is a phi result of some other phi in *new_exit_bb that has
30246 the same argument.
30247
30248 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30249 or vmovdqu* for misaligned_operand.
30250 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30251 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30252 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30253 aligned_mem for AVX512F masked aligned load and store builtins and for
30254 non-temporal moves.
30255
30256 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30257
30258 PR tree-optimization/59651
30259 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30260 Address range for negative step should be added by TYPE_SIZE_UNIT.
30261
30262 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30263
30264 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30265 overlapping registers also for registers other than the stack pointer.
30266
30267 2014-01-03 Marek Polacek <polacek@redhat.com>
30268
30269 PR other/59661
30270 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30271 __builtin_FILE.
30272
30273 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30274
30275 PR target/59625
30276 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30277 asm goto as jump.
30278
30279 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30280 (push splitter): Use <P:MODE_SIZE> instead of
30281 GET_MODE_SIZE (<P:MODE>mode).
30282 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30283 (mov -1, reg peephole2): Likewise.
30284 * config/i386/sse.md (*mov<mode>_internal,
30285 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30286 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30287 *<code><mode>3, *andnot<mode>3<mask_name>,
30288 <mask_codefor><code><mode>3<mask_name>): Likewise.
30289 * config/i386/subst.md (mask_mode512bit_condition,
30290 sd_mask_mode512bit_condition): Likewise.
30291
30292 2014-01-02 Xinliang David Li <davidxl@google.com>
30293
30294 PR tree-optimization/59303
30295 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30296 (dump_predicates): Better output format.
30297 (pred_equal_p): New function.
30298 (is_neq_relop_p): Ditto.
30299 (is_neq_zero_form_p): Ditto.
30300 (pred_expr_equal_p): Ditto.
30301 (pred_neg_p): Ditto.
30302 (simplify_pred): Ditto.
30303 (simplify_preds_2): Ditto.
30304 (simplify_preds_3): Ditto.
30305 (simplify_preds_4): Ditto.
30306 (simplify_preds): Ditto.
30307 (push_pred): Ditto.
30308 (push_to_worklist): Ditto.
30309 (get_pred_info_from_cmp): Ditto.
30310 (is_degenerated_phi): Ditto.
30311 (normalize_one_pred_1): Ditto.
30312 (normalize_one_pred): Ditto.
30313 (normalize_one_pred_chain): Ditto.
30314 (normalize_preds): Ditto.
30315 (normalize_cond_1): Remove function.
30316 (normalize_cond): Ditto.
30317 (is_gcond_subset_of): Ditto.
30318 (is_subset_of_any): Ditto.
30319 (is_or_set_subset_of): Ditto.
30320 (is_and_set_subset_of): Ditto.
30321 (is_norm_cond_subset_of): Ditto.
30322 (pred_chain_length_cmp): Ditto.
30323 (convert_control_dep_chain_into_preds): Type change.
30324 (find_predicates): Ditto.
30325 (find_def_preds): Ditto.
30326 (destroy_predicates_vecs): Ditto.
30327 (find_matching_predicates_in_rest_chains): Ditto.
30328 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30329 (is_pred_expr_subset): Ditto.
30330 (is_pred_chain_subset_of): Ditto.
30331 (is_included_in): Ditto.
30332 (is_superset_of): Ditto.
30333
30334 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30335
30336 Update copyright years.
30337
30338 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30339
30340 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30341 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30342 config/arc/arc.md, config/arc/arc.opt,
30343 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30344 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30345 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30346 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30347 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30348 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30349 vtable-verify.c, vtable-verify.h: Use the standard form for the
30350 copyright notice.
30351
30352 2014-01-02 Tobias Burnus <burnus@net-b.de>
30353
30354 * gcc.c (process_command): Update copyright notice dates.
30355 * gcov-dump.c: Ditto.
30356 * gcov.c: Ditto.
30357 * doc/cpp.texi: Bump @copying's copyright year.
30358 * doc/cppinternals.texi: Ditto.
30359 * doc/gcc.texi: Ditto.
30360 * doc/gccint.texi: Ditto.
30361 * doc/gcov.texi: Ditto.
30362 * doc/install.texi: Ditto.
30363 * doc/invoke.texi: Ditto.
30364
30365 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30366
30367 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30368
30369 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30370
30371 * config/i386/sse.md (*mov<mode>_internal): Guard
30372 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30373
30374 PR rtl-optimization/59647
30375 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30376 new_rtx into UNSIGNED_FLOAT rtxes.
30377 \f
30378 Copyright (C) 2014 Free Software Foundation, Inc.
30379
30380 Copying and distribution of this file, with or without modification,
30381 are permitted in any medium without royalty provided the copyright
30382 notice and this notice are preserved.