Convert various INSN accessors in rtl.h to inline functions
[gcc.git] / gcc / ChangeLog
1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2
3 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4 functions. Require merely an rtx for now, not an rtx_insn *.
5 (BLOCK_FOR_INSN): Likewise.
6 (INSN_LOCATION): Likewise.
7 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
8
9 2014-08-27 David Malcolm <dmalcolm@redhat.com>
10
11 * rtl.h (PATTERN): Convert this macro into a pair of inline
12 functions, for now, requiring const_rtx and rtx.
13
14 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15
16 * target.def (unwind_emit): Strengthen param "insn" from rtx to
17 rtx_insn *.
18 (final_postscan_insn): Likewise.
19 (adjust_cost): Likewise.
20 (adjust_priority): Likewise.
21 (variable_issue): Likewise.
22 (macro_fusion_pair_p): Likewise.
23 (dfa_post_cycle_insn): Likewise.
24 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
25 (first_cycle_multipass_issue): Likewise.
26 (dfa_new_cycle): Likewise.
27 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
28 (speculate_insn): Likewise for param "insn".
29 (gen_spec_check): Likewise for params "insn" and "label".
30 (get_insn_spec_ds): Likewise for param "insn".
31 (get_insn_checked_ds): Likewise.
32 (dispatch_do): Likewise.
33 (dispatch): Likewise.
34 (cannot_copy_insn_p): Likewise.
35 (invalid_within_doloop): Likewise.
36 (legitimate_combined_insn): Likewise.
37 (needed): Likewise.
38 (after): Likewise.
39
40 * doc/tm.texi: Automatically updated to reflect changes to
41 target.def.
42
43 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
44 working with insn.
45 (schedule_block): Likewise.
46 (sched_init): Likewise.
47 (sched_speculate_insn): Strengthen param "insn" from rtx to
48 rtx_insn *.
49 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
50 working with insn.
51 * hooks.c (hook_bool_rtx_true): Rename to...
52 hook_bool_rtx_insn_true): ...this, and strengthen first param from
53 rtx to rtx_insn *.
54 (hook_constcharptr_const_rtx_null): Rename to...
55 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
56 first param from const_rtx to const rtx_insn *.
57 (hook_bool_rtx_int_false): Rename to...
58 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
59 param from rtx to rtx_insn *.
60 (hook_void_rtx_int): Rename to...
61 (hook_void_rtx_insn_int): ...this, and strengthen first param from
62 rtx to rtx_insn *.
63
64 * hooks.h (hook_bool_rtx_true): Rename to...
65 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
66 rtx to rtx_insn *.
67 (hook_bool_rtx_int_false): Rename to...
68 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
69 param from rtx to rtx_insn *.
70 (hook_void_rtx_int): Rename to...
71 (hook_void_rtx_insn_int): ...this, and strengthen first param from
72 rtx to rtx_insn *.
73 (hook_constcharptr_const_rtx_null): Rename to...
74 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
75 first param from const_rtx to const rtx_insn *.
76
77 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
78 and local "prev" from rtx to rtx_insn *.
79
80 * sched-int.h (sched_speculate_insn): Strengthen first param from
81 rtx to rtx_insn *.
82
83 * sel-sched.c (create_speculation_check): Likewise for local "label".
84 * targhooks.c (default_invalid_within_doloop): Strengthen param
85 "insn" from const_rtx to const rtx_insn *.
86 * targhooks.h (default_invalid_within_doloop): Strengthen param
87 from const_rtx to const rtx_insn *.
88
89 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
90 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
91
92 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
93 "insn".
94 (arc_invalid_within_doloop): Likewise, with const.
95
96 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
97 (arm_cannot_copy_insn_p): Likewise for param "insn".
98 (arm_unwind_emit): Likewise.
99
100 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
101 "dep_insn".
102
103 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
104 (c6x_variable_issue): Likewise. Removed now-redundant checked
105 cast.
106 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
107
108 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
109 Likewise for param "insn".
110 (epiphany_mode_after): Likewise.
111 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
112 params "insn", "dep_insn".
113 (epiphany_mode_needed): Likewise for param "insn".
114 (epiphany_mode_after): Likewise.
115
116 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
117 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
118 (ix86_avx_u128_mode_needed): Likewise.
119 (ix86_i387_mode_needed): Likewise.
120 (ix86_mode_needed): Likewise.
121 (ix86_avx_u128_mode_after): Likewise.
122 (ix86_mode_after): Likewise.
123 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
124 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
125 (ix86_adjust_priority): Likewise for param "insn".
126 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
127 (do_dispatch): Likewise.
128 (has_dispatch): Likewise.
129 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
130
131 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
132 reflect renaming of default hook implementation from
133 hook_constcharptr_const_rtx_null to
134 hook_constcharptr_const_rtx_insn_null.
135 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
136 rtx to rtx_insn *.
137 (ia64_variable_issue): Likewise for param "insn".
138 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
139 (ia64_dfa_new_cycle): Likewise.
140 (ia64_get_insn_spec_ds): Likewise.
141 (ia64_get_insn_checked_ds): Likewise.
142 (ia64_speculate_insn): Likewise.
143 (ia64_gen_spec_check): Likewise for params "insn", "label".
144 (ia64_asm_unwind_emit): Likewise for param "insn".
145
146 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
147
148 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
149 "insn", "def_insn".
150 (m68k_sched_variable_issue): Likewise for param "insn".
151
152 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
153 "def_insn".
154
155 * config/microblaze/microblaze.c (microblaze_adjust_cost):
156 Likewise for params "insn", "dep".
157
158 * config/mips/mips.c (mips_adjust_cost): Likewise.
159 (mips_variable_issue): Likewise for param "insn".
160 (mips_final_postscan_insn): Likewise.
161
162 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
163 for params "insn", "dep".
164
165 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
166 "dep_insn".
167 (pa_adjust_priority): Likewise for param "insn".
168
169 * config/picochip/picochip.c (picochip_sched_adjust_cost):
170 Likewise for params "insn", "dep_insn".
171
172 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
173 param "insn".
174 (rs6000_variable_issue): Likewise.
175 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
176 (rs6000_debug_adjust_cost): Likewise.
177 (rs6000_adjust_priority): Likewise for param "insn".
178 (rs6000_use_sched_lookahead_guard): Likewise.
179 (get_next_active_insn): Likewise for return type and both params.
180 (redefine_groups): Likewise for params "prev_head_insn", "tail"
181 and locals "insn", "next_insn".
182 (pad_groups): Likewise.
183
184 * config/s390/s390.c (s390_adjust_priority): Likewise for param
185 "insn".
186 (s390_cannot_copy_insn_p): Likewise.
187 (s390_sched_variable_issue): Likewise for third param, eliminating
188 checked cast.
189 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
190 default hook implementation from hook_constcharptr_const_rtx_null
191 to hook_constcharptr_const_rtx_insn_null.
192
193 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
194 from rtx to rtx_insn *.
195 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
196 (sh_variable_issue): Likewise for param "insn".
197 (sh_dfa_new_cycle): Likewise.
198 (sh_mode_needed): Likewise.
199 (sh_mode_after): Likewise.
200
201 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
202 params "insn", "dep_insn".
203 (hypersparc_adjust_cost): Likewise.
204 (sparc_adjust_cost): Likewise.
205
206 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
207 param, eliminated checked cast.
208 (spu_sched_adjust_cost): Likewise for first and third params.
209
210 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
211 params "insn" and "dep_insn" from rtx to rtx_insn *.
212
213 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
214
215 2014-08-27 David Malcolm <dmalcolm@redhat.com>
216
217 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
218 (set_is_load_p): ...this, updating to work on a SET pattern rather
219 than an insn.
220 (is_store_insn): Rename to...
221 (set_is_store_p): ...this, updating to work on a SET pattern
222 rather than an insn.
223 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
224 top of function to where it is needed. Rewrite the bogus
225 condition that checks for "insn" and "dep" being PARALLEL to
226 instead use single_set, introducing locals "insn_set" and
227 "dep_set". Given that we only ever returned "cost" for a non-pair
228 of SETs, bail out early if we don't have a pair of SET.
229 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
230 use the new locals "insn_set" and "dep_set", and update calls to
231 is_load_insn and is_store_insn to be calls to set_is_load_p and
232 set_is_store_p.
233
234 2014-08-27 Guozhi Wei <carrot@google.com>
235
236 PR target/62262
237 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
238 amount before using it.
239
240 2014-08-27 Richard Biener <rguenther@suse.de>
241
242 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
243 get_maxval_strlen inside a more useful API.
244 (gimple_fold_builtin_with_strlen): Remove and fold into ...
245 (gimple_fold_builtin): ... caller.
246 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
247 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
248 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
249 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
250 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
251 gimple_fold_builtin_sprintf): Adjust to compute maxval
252 themselves.
253
254 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
255
256 PR other/62248
257 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
258
259 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
260 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
261 Anna Tikhonova <anna.tikhonova@intel.com>
262 Ilya Tocar <ilya.tocar@intel.com>
263 Andrey Turetskiy <andrey.turetskiy@intel.com>
264 Ilya Verbin <ilya.verbin@intel.com>
265 Kirill Yukhin <kirill.yukhin@intel.com>
266 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
267
268 * config/i386/sse.md
269 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
270 Use `concat_tg_mode' attribute to determine asm register size.
271
272 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
273 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
274 Anna Tikhonova <anna.tikhonova@intel.com>
275 Ilya Tocar <ilya.tocar@intel.com>
276 Andrey Turetskiy <andrey.turetskiy@intel.com>
277 Ilya Verbin <ilya.verbin@intel.com>
278 Kirill Yukhin <kirill.yukhin@intel.com>
279 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
280
281 * config/i386/sse.md
282 (define_mode_iterator VI48_AVX512VL): New.
283 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
284 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
285 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
286 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
287 with VI1): Change mode iterator.
288 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
289 with VI_ULOADSTORE_BW_AVX512VL): New.
290 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
291 with VI_ULOADSTORE_F_AVX512VL): Ditto.
292 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
293 with VI1): Change mode iterator.
294 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
295 with VI_ULOADSTORE_BW_AVX512VL): New.
296 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
297 with VI_ULOADSTORE_F_AVX512VL): Ditto.
298 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
299 with VI1): Change mode iterator.
300 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
301 with VI_ULOADSTORE_BW_AVX512VL): New.
302 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
303 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
304 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
305 (define_insn "<avx512>_storedqu<mode>_mask" with
306 VI48_AVX512VL): New.
307 (define_insn "<avx512>_storedqu<mode>_mask" with
308 VI12_AVX512VL): Ditto.
309
310 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
311 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
312 Anna Tikhonova <anna.tikhonova@intel.com>
313 Ilya Tocar <ilya.tocar@intel.com>
314 Andrey Turetskiy <andrey.turetskiy@intel.com>
315 Ilya Verbin <ilya.verbin@intel.com>
316 Kirill Yukhin <kirill.yukhin@intel.com>
317 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
318
319 * config/i386/sse.md
320 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
321 (define_mode_iterator VI48_AVX512BW): New.
322 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
323 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
324 with VI48_AVX2_48_AVX512F): New.
325 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
326 with VI2_AVX512VL): Ditto.
327
328 2014-08-27 Richard Biener <rguenther@suse.de>
329
330 PR middle-end/62239
331 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
332 (fold_builtin_3): Do not fold strcat_chk here.
333 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
334 from builtins.c.
335 (gimple_fold_builtin): Fold strcat_chk here.
336
337 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
338
339 * dwarf2out.h (dwarf2out_decl): Remove prototype.
340 * dwarf2out.c (dwarf2out_decl): Make static.
341
342 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
343
344 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
345
346 2014-08-26 David Malcolm <dmalcolm@redhat.com>
347
348 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
349 from rtx to rtx_insn *.
350 (cselib_lookup_from_insn): Likewise for final param.
351 (cselib_subst_to_values_from_insn): Likewise.
352 (cselib_add_permanent_equiv): Likewise.
353
354 * cselib.c (cselib_current_insn): Likewise for this variable.
355 (cselib_subst_to_values_from_insn): Likewise for param "insn".
356 (cselib_lookup_from_insn): Likewise.
357 (cselib_add_permanent_equiv): Likewise for param "insn" and local
358 "save_cselib_current_insn".
359 (cselib_process_insn): Replace use of NULL_RTX with NULL.
360
361 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
362 from rtx to rtx_insn *.
363
364 2014-08-26 David Malcolm <dmalcolm@redhat.com>
365
366 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
367 rtx_insn *.
368
369 2014-08-26 David Malcolm <dmalcolm@redhat.com>
370
371 * df.h (df_dump_insn_problem_function): Strengthen first param of
372 this callback from const_rtx to const rtx_insn *.
373 (struct df_insn_info): Strengthen field "insn" from rtx to
374 rtx_insn *.
375 (DF_REF_INSN): Eliminate this function, reinstating the older
376 macro definition.
377 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
378 (df_reg_defined): Likewise.
379 (df_find_use): Likewise.
380 (df_reg_used): Likewise.
381 (df_dump_insn_top): Strengthen param 1 from const_rtx to
382 const rtx_insn *.
383 (df_dump_insn_bottom): Likewise.
384 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
385 (df_insn_debug_regno): Likewise.
386 (debug_df_insn): Likewise.
387 (df_rd_simulate_one_insn): Likewise for param 2.
388 (df_word_lr_simulate_defs): Likewise for param 1.
389 (df_word_lr_simulate_uses): Likewise.
390 (df_md_simulate_one_insn): Likewise for param 2.
391 (df_simulate_find_noclobber_defs): Likewise for param 1.
392 (df_simulate_find_defs): Likewise.
393 (df_simulate_defs): Likewise.
394 (df_simulate_uses): Likewise.
395 (df_simulate_one_insn_backwards): Likewise for param 2.
396 (df_simulate_one_insn_forwards): Likewise.
397 (df_uses_create): Likewise for param 2.
398 (df_insn_create_insn_record): Likewise for param 1.
399 (df_insn_delete): Likewise.
400 (df_insn_rescan): Likewise.
401 (df_insn_rescan_debug_internal): Likewise.
402 (df_insn_change_bb): Likewise.
403 (df_notes_rescan): Likewise.
404 * rtl.h (remove_death): Likewise for param 2.
405 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
406 const rtx_insn *.
407 * sched-int.h (reemit_notes): Strengthen param from rtx to
408 rtx_insn *.
409 * valtrack.h (propagate_for_debug): Likewise for param 1.
410
411 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
412 local "tmp_rtx" from const_rtx to const rtx_insn *.
413 * combine.c (remove_death): Strengthen param "insn" from rtx to
414 rtx_insn *.
415 (move_deaths): Likewise for local "where_dead".
416 * cse.c (delete_trivially_dead_insns): Introduce local
417 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
418 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
419 rtx_insn *.
420 (df_reg_defined): Likewise.
421 (df_find_use): Likewise.
422 (df_reg_used): Likewise.
423 (df_dump_insn_problem_data): Strengthen param "insn" from
424 const_rtx to const rtx_insn *.
425 (df_dump_insn_top): Likewise.
426 (df_dump_insn_bottom): Likewise.
427 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
428 (df_insn_debug_regno): Likewise.
429 (debug_df_insn): Likewise.
430 (DF_REF_INSN): Delete.
431 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
432 from rtx to rtx_insn *.
433 (df_chain_insn_top_dump): Strengthen param "insn" from
434 const_rtx to const rtx_insn *.
435 (df_chain_insn_bottom_dump): Likewise.
436 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
437 rtx_insn *.
438 (df_word_lr_simulate_uses): Likewise.
439 (df_print_note): Likewise.
440 (df_remove_dead_and_unused_notes): Likewise.
441 (df_set_unused_notes_for_mw): Likewise.
442 (df_set_dead_notes_for_mw): Likewise.
443 (df_create_unused_note): Likewise.
444 (df_simulate_find_defs): Likewise.
445 (df_simulate_find_uses): Likewise.
446 (df_simulate_find_noclobber_defs): Likewise.
447 (df_simulate_defs): Likewise.
448 (df_simulate_uses): Likewise.
449 (df_simulate_one_insn_backwards): Likewise.
450 (df_simulate_one_insn_forwards): Likewise.
451 (df_md_simulate_one_insn): Likewise.
452 * df-scan.c (df_uses_create): Likewise.
453 (df_insn_create_insn_record): Likewise.
454 (df_insn_delete): Likewise.
455 (df_insn_rescan): Likewise.
456 (df_insn_rescan_debug_internal): Likewise.
457 (df_insn_change_bb): Likewise.
458 (df_notes_rescan): Likewise.
459 (df_refs_add_to_chains): Likewise.
460 (df_insn_refs_verify): Likewise.
461 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
462 when invoking df_insn_delete.
463 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
464 (set_unique_reg_note): Add checked cast.
465 * final.c (cleanup_subreg_operands): Likewise.
466 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
467 "insn" from rtx to rtx_insn *.
468 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
469 "last" from rtx to rtx_insn *.
470 * ira-emit.c (change_regs_in_insn): New function.
471 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
472 Invoke change_regs_in_insn rather than change_regs.
473 * ira.c (update_equiv_regs): Strengthen locals "insn",
474 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
475 for_each_rtx_in_insn rather than for_each_rtx.
476 * recog.c (confirm_change_group): Add checked casts.
477 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
478 Add checked cast.
479 (peep2_fill_buffer): Add checked cast.
480 * rtlanal.c (remove_note): Likewise.
481 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
482 locals "next" "end" from rtx to rtx_insn *.
483
484 2014-08-26 David Malcolm <dmalcolm@redhat.com>
485
486 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
487 to rtx_insn *.
488 (struct reg_use_data): Likewise for field "insn".
489 (insn_cost): Likewise for param.
490 (real_insn_for_shadow): Likewise for return type and param.
491 (increase_insn_priority): Likewise for param 1.
492 (debug_dependencies): Likewise for both params.
493
494 * haifa-sched.c (insn_delay): Likewise for param "insn".
495 (real_insn_for_shadow): Likewise for return type and param "insn".
496 (update_insn_after_change): Likewise for param "insn".
497 (recompute_todo_spec): Likewise for param "next" and locals "pro",
498 "other".
499 (insn_cost): Likewise for param "insn".
500 (increase_insn_priority): Likewise.
501 (calculate_reg_deaths): Likewise.
502 (setup_insn_reg_pressure_info): Likewise.
503 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
504 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
505 (model_recompute): Likewise.
506 (must_restore_pattern_p): Likewise for param "next".
507 (model_excess_cost): Likewise for param "insn".
508 (queue_remove): Likewise.
509 (adjust_priority): Likewise for param "prev".
510 (update_register_pressure): Likewise for param "insn".
511 (setup_insn_max_reg_pressure): Likewise for local "insn".
512 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
513 (model_add_to_schedule): Likewise.
514 (model_reset_queue_indices): Likewise for local "insn".
515 (unschedule_insns_until): Strengthen local "recompute_vec" from
516 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
517 "con" from rtx to rtx_insn *.
518 (restore_last_backtrack_point): Likewise for both locals "x". Add
519 checked casts.
520 (estimate_insn_tick): Likewise for param "insn".
521 (commit_schedule): Likewise for params "prev_head", "tail" and
522 local "x".
523 (verify_shadows): Likewise for locals "i1", "i2".
524 (dump_insn_stream): Likewise for params "head", "tail" and locals
525 "next_tail", "insn".
526 (schedule_block): Likewise for locals "insn", "x". Add a checked
527 cast.
528 (fix_inter_tick): Likewise for params "head", "tail".
529 (create_check_block_twin): Likewise for local "jump".
530 (haifa_change_pattern): Likewise for param "insn".
531 (haifa_speculate_insn): Likewise.
532 (dump_new_block_header): Likewise for params "head", "tail".
533 (fix_jump_move): Likewise for param "jump".
534 (move_block_after_check): Likewise.
535 (sched_init_insn_luid): Likewise for param "insn".
536 (sched_init_luids): Likewise for local "insn".
537 (insn_luid): Likewise for param "insn".
538 (init_h_i_d): Likewise.
539 (haifa_init_h_i_d): Likewise for local "insn".
540 (haifa_init_insn): Likewise for param "insn".
541 * sched-deps.c (add_dependence): Likewise for local "real_pro",
542 "other".
543 (create_insn_reg_use): Likewise for param "insn".
544 (setup_insn_reg_uses): Likewise. Add a checked cast.
545 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
546 "tail" from rtx to rtx_insn *.
547 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
548 "insn", "next_tail".
549
550 2014-08-26 David Malcolm <dmalcolm@redhat.com>
551
552 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
553 from rtx to rtx_insn *.
554 (model_add_to_schedule): Likewise for locals "start", "end",
555 "iter".
556
557 2014-08-26 David Malcolm <dmalcolm@redhat.com>
558
559 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
560 rtx_insn *.
561 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
562 "to" and locals "insn", "next", "copy". Remove now-redundant
563 checked cast.
564
565 2014-08-26 David Malcolm <dmalcolm@redhat.com>
566
567 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
568 rtx_insn * and param 4 from rtx * to rtx_insn **.
569 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
570 param 2 from rtx * to rtx_insn **.
571
572 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
573 rtx_insn * and final param from rtx * to rtx_insn **.
574
575 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
576 from rtx to rtx_insn *.
577 (try_head_merge_bb): Likewise for both locals named "move_upto".
578 * df-problems.c (can_move_insns_across): Likewise for params
579 "from", "to", "across_from", "across_to" and locals "insn",
580 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
581 rtx_insn **.
582 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
583 from rtx to rtx_insn *.
584 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
585 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
586 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
587 rtx_insn *.
588 (noce_try_abs): Likewise.
589 (noce_get_condition): Likewise for param "jump". Strengthen param
590 "earliest" from rtx * to rtx_insn **.
591 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
592 rtx_insn *.
593 (find_cond_trap): Likewise.
594 (dead_or_predicable): Likewise for local "earliest".
595 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
596 checked cast.
597 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
598 and local "prev". Strengthen param "earliest" from rtx * to
599 rtx_insn **.
600 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
601 Strengthen param "earliest" from rtx * to rtx_insn **.
602
603 2014-08-26 David Malcolm <dmalcolm@redhat.com>
604
605 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
606 "to" and local "insn" from rtx to rtx_insn *.
607
608 2014-08-26 David Malcolm <dmalcolm@redhat.com>
609
610 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
611 from rtx to rtx_insn *.
612 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
613 (code_motion_path_driver): Likewise for local "last_insn".
614 (simplify_changed_insns): Likewise for local "insn".
615
616 2014-08-26 David Malcolm <dmalcolm@redhat.com>
617
618 * rtl.h (push_to_sequence): Strengthen param from rtx to
619 rtx_insn *.
620 (push_to_sequence2): Likewise for both params.
621 (delete_insns_since): Likewise for param.
622 (reorder_insns_nobb): Likewise for all three params.
623 (set_new_first_and_last_insn): Likewise for both params.
624
625 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
626 rtx_insn *. Remove now-redundant cast.
627 (set_last_insn): Likewise.
628
629 * builtins.c (expand_builtin_return): Strengthen local
630 "call_fusage" from rtx to rtx_insn *.
631 * cfgrtl.c (create_basic_block_structure): Likewise for local
632 "after".
633 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
634 "first", "last" and local "insn".
635 (delete_insns_since): Likewise for param "from".
636 (reorder_insns_nobb): Likewise for params "from", "to", "after"
637 and local "x".
638 (push_to_sequence): Likewise for param "first" and local "last".
639 (push_to_sequence2): Likewise for params "first" and "last".
640 * lra.c (emit_add3_insn): Likewise for local "last".
641 (lra_emit_add): Likewise.
642 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
643 "last_insn".
644 (process_address_1): Likewise for locals "insn", last".
645 * modulo-sched.c (ps_first_note): Likewise for return type.
646 * optabs.c (expand_binop_directly): Likewise for param "last".
647
648 2014-08-26 David Malcolm <dmalcolm@redhat.com>
649
650 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
651 to rtx_insn*.
652 * emit-rtl.c (get_last_insn_anywhere): Likewise.
653
654 2014-08-26 David Malcolm <dmalcolm@redhat.com>
655
656 * function.h (struct sequence_stack): Strengthen fields "first"
657 and "last" from rtx to rtx_insn *.
658 (struct emit_status): Likewise for fields "x_first_insn" and
659 "x_last_insn".
660
661 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
662 (set_first_insn): Add checked cast.
663 (get_last_insn): Remove now-redundant checked cast.
664 (set_last_insn): Add checked cast.
665
666 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
667 "saved_first" and "saved_last" from rtx to rtx_insn *.
668
669 2014-08-26 David Malcolm <dmalcolm@redhat.com>
670
671 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
672 (unlink_insn_chain): Strengthen both params from rtx to
673 rtx_insn *.
674
675 * cfgrtl.c (cfg_layout_function_header): Likewise for this
676 variable.
677 (unlink_insn_chain): Likewise for params "first" and "last".
678 Remove now-redundant checked cast.
679 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
680 (fixup_reorder_chain): Strengthen local "insn" from rtx to
681 rtx_insn *.
682 * emit-rtl.c (link_insn_into_chain): Likewise for all three
683 params.
684 (add_insn): Likewise for param "insn" and local "prev".
685 (add_insn_after_nobb): Likewise for both params and local "next".
686 (add_insn_before_nobb): Likewise for both params and local "prev".
687 (add_insn_after): Rename param "after" to "uncast_after",
688 introducing local "after" with another checked cast.
689 (add_insn_before): Rename params "insn" and "before", giving them
690 "uncast_" prefixes, adding the old names back using checked casts.
691 (emit_note_after): Likewise for param "after".
692 (emit_note_before): Likewise for param "before".
693 (emit_label): Add a checked cast.
694
695 2014-08-26 David Malcolm <dmalcolm@redhat.com>
696
697 * cselib.h (cselib_record_sets_hook): Strengthen initial param
698 "insn" from rtx to rtx_insn *.
699
700 * cselib.c (cselib_record_sets_hook): Likewise.
701
702 * var-tracking.c (add_with_sets): Likewise, renaming back from
703 "uncast_insn" to "insn" and eliminating the checked cast from rtx
704 to rtx_insn *.
705
706 2014-08-26 David Malcolm <dmalcolm@redhat.com>
707
708 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
709 and "header_" from rtx to rtx_insn *.
710 (struct basic_block_d): Likewise for field "head_" within "x"
711 field of union basic_block_il_dependent.
712 (BB_HEAD): Drop function...
713 (SET_BB_HEAD): ...and this function in favor of...
714 (BB_HEAD): ...reinstate macro.
715 (BB_END): Drop function...
716 (SET_BB_END): ...and this function in favor of...
717 (BB_END): ...reinstate macro.
718 (BB_HEADER): Drop function...
719 (SET_BB_HEADER): ...and this function in favor of...
720 (BB_HEADER): ...reinstate macro.
721
722 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
723 (fix_crossing_unconditional_branches): Likewise.
724 * caller-save.c (save_call_clobbered_regs): Likewise.
725 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
726 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
727 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
728 (merge_blocks_move_successor_nojumps): Likewise.
729 (outgoing_edges_match): Update use of for_each_rtx to
730 for_each_rtx_in_insn.
731 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
732 (expand_gimple_cond): Likewise.
733 (expand_gimple_tailcall): Likewise.
734 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
735 SET_BB_END.
736 (construct_exit_block): Drop use of SET_BB_END.
737 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
738 rtx_insn *.
739 (delete_insn): Rename param "insn" to "uncast_insn", introducing
740 a new local "insn" with a checked cast to rtx_insn *. Drop use of
741 SET_BB_HEAD and SET_BB_END.
742 (create_basic_block_structure): Drop use of SET_BB_HEAD and
743 SET_BB_END.
744 (rtl_delete_block): Drop use of SET_BB_HEAD.
745 (rtl_split_block): Drop use of SET_BB_END.
746 (emit_nop_for_unique_locus_between): Likewise.
747 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
748 (block_label): Drop use of SET_BB_HEAD.
749 (fixup_abnormal_edges): Drop use of SET_BB_END.
750 (record_effective_endpoints): Drop use of SET_BB_HEADER.
751 (relink_block_chain): Likewise.
752 (fixup_reorder_chain): Drop use of SET_BB_END.
753 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
754 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
755 rtx_insn **. Drop use of SET_BB_HEADER.
756 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
757 SET_BB_HEAD.
758 (BB_HEAD): Delete this function.
759 (SET_BB_HEAD): Likewise.
760 (BB_END): Likewise.
761 (SET_BB_END): Likewise.
762 (BB_HEADER): Likewise.
763 (SET_BB_HEADER): Likewise.
764 * emit-rtl.c (add_insn_after): Rename param "insn" to
765 "uncast_insn", adding a new local "insn" and a checked cast to
766 rtx_insn *. Drop use of SET_BB_END.
767 (remove_insn): Strengthen locals "next" and "prev" from rtx to
768 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
769 (reorder_insns): Drop use of SET_BB_END.
770 (emit_insn_after_1): Strengthen param "first" and locals "last",
771 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
772 (emit_pattern_after_noloc): Add checked cast.
773 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
774 (restore_other_notes): Likewise.
775 (move_insn): Likewise.
776 (sched_extend_bb): Likewise.
777 (fix_jump_move): Likewise.
778 * ifcvt.c (noce_process_if_block): Likewise.
779 (dead_or_predicable): Likewise.
780 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
781 * reg-stack.c (change_stack): Drop use of SET_BB_END.
782 * sel-sched-ir.c (sel_move_insn): Likewise.
783 * sel-sched.c (move_nop_to_previous_block): Likewise.
784
785 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
786 SET_BB_END.
787 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
788
789 2014-08-26 David Malcolm <dmalcolm@redhat.com>
790
791 * basic-block.h (create_basic_block_structure): Strengthen params
792 1 "head" and 2 "end" from rtx to rtx_insn *.
793 * cfgrtl.c (create_basic_block_structure): Likewise.
794 (rtl_create_basic_block): Update casts from void * to rtx to
795 rtx_insn *, so that we can pass them as rtx_insn * to
796 create_basic_block_structure.
797 * sel-sched-ir.c (sel_create_basic_block): Likewise.
798
799 2014-08-26 David Malcolm <dmalcolm@redhat.com>
800
801 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
802 rtx_insn **.
803 (check_for_inc_dec): Strengthen param "insn" from rtx to
804 rtx_insn *.
805
806 * cselib.h (cselib_process_insn): Likewise.
807
808 * cselib.c (cselib_record_sets): Likewise.
809 (cselib_process_insn): Likewise.
810
811 * dse.c (struct insn_info): Likewise for field "insn".
812 (check_for_inc_dec_1): Likewise for local "insn".
813 (check_for_inc_dec): Likewise for param "insn".
814 (scan_insn): Likewise.
815 (dse_step1): Likewise for local "insn".
816
817 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
818 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
819
820 2014-08-26 David Malcolm <dmalcolm@redhat.com>
821
822 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
823 from rtx to rtx_insn *.
824 (DEP_PRO): Delete this function and...
825 (SET_DEP_PRO): ...this function in favor of...
826 (DEP_PRO): ...reinstate this macro.
827 (DEP_CON): Delete this function and...
828 (SET_DEP_CON): ...this function in favor of...
829 (DEP_CON): ...reinstate this old macro.
830 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
831 (init_dep): Likewise.
832 (set_priorities): Likewise for both params.
833 (sd_copy_back_deps): Likewise for params 1 and 2.
834
835 * haifa-sched.c (priority): Likewise for param "insn" and local
836 "next".
837 (set_priorities): Likewise for params "head" and "tail" and local
838 "insn".
839 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
840 local "consumer".
841 (add_to_speculative_block): Add a checked cast.
842 (create_check_block_twin): Drop use of SET_DEP_CON.
843 (add_jump_dependencies): Strengthen params "insn" and "jump" from
844 rtx to rtx_insn *.
845
846 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
847 Drop use of SET_DEP_PRO
848 (init_dep): Strengthen params "pro" and "con" from rtx to
849 rtx_insn *.
850 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
851 use of SET_DEP_CON.
852 (DEP_PRO): Delete.
853 (DEP_CON): Delete.
854 (SET_DEP_PRO): Delete.
855 (SET_DEP_CON): Delete.
856
857 2014-08-26 David Malcolm <dmalcolm@redhat.com>
858
859 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
860 from rtx to rtx_insn *.
861 (VINSN_INSN_RTX): Eliminate rvalue function and...
862 (SET_VINSN_INSN): ...lvalue function in favor of...
863 (VINSN_INSN_RTX): reinstate this old macro.
864
865 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
866 in favor of VINSN_INSN_RTX.
867 (VINSN_INSN_RTX): Delete this function.
868 (SET_VINSN_INSN_RTX): Likewise.
869
870 2014-08-26 David Malcolm <dmalcolm@redhat.com>
871
872 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
873 (BND_TO): Delete this function and...
874 (SET_BND_TO): ...this functions in favor of...
875 (BND_TO): ...reinstating this macro.
876 (struct _fence): Strengthen field "executing_insns" from
877 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
878 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
879 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
880 and param "insn" from rtx to insn_t.
881 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
882 rtx_insn *.
883
884 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
885 vec<rtx_insn *> .
886 (rtx_vec_t): Likewise.
887 (struct sched_deps_info_def): Strengthen param of "start_insn"
888 callback from rtx to rtx_insn *. Likewise for param "insn2" of
889 "note_mem_dep" callback and first param of "note_dep" callback.
890
891 * haifa-sched.c (add_to_speculative_block): Strengthen param
892 "insn" from rtx to rtx_insn *.
893 (clear_priorities): Likewise.
894 (calc_priorities): Likewise for local "insn".
895
896 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
897 Remove redundant checked cast.
898 (haifa_note_mem_dep): Likewise for param "pending_insn".
899 (haifa_note_dep): Likewise for param "elem".
900 (note_mem_dep): Likewise for param "e".
901 (sched_analyze_1): Add checked casts.
902 (sched_analyze_2): Likewise.
903
904 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
905 from rtx to rtx_insn *.
906 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
907 from vec<rtx> * to vec<rtx_insn *> *.
908
909 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
910 scaffolding.
911 (flist_add): Strengthen param "executing_insns" from
912 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
913 (advance_deps_context): Remove now-redundant checked cast.
914 (init_fences): Replace uses of NULL_RTX with NULL.
915 (merge_fences): Strengthen params "last_scheduled_insn" and
916 "sched_next" from rtx to rtx_insn * and "executing_insns" from
917 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
918 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
919 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
920 an instruction, rather than doing double-duty as a pattern.
921 (return_nop_to_pool): Update for change of insn_t.
922 (deps_init_id): Remove now-redundant checked cast.
923 (struct sched_scan_info_def): Strengthen param of "init_insn"
924 callback from rtx to insn_t.
925 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
926 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
927 NULL.
928 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
929 "end" from rtx to rtx_insn *.
930 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
931 (rtx insn_rtx, bool force_unique_p)
932 (BND_TO): Delete function.
933 (SET_BND_TO): Delete function.
934
935 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
936 rtx to rtx_insn *.
937 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
938 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
939 rtx to rtx_insn *.
940 (undo_transformations): Likewise for param "insn".
941 (update_liveness_on_insn): Likewise.
942 (compute_live_below_insn): Likewise for param "insn" and local
943 "succ".
944 (update_data_sets): Likewise for param "insn".
945 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
946 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
947 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
948 rtx_insn *.
949 (move_cond_jump): Likewise for param "insn".
950 (move_cond_jump): Drop use of SET_BND_TO.
951 (compute_av_set_on_boundaries): Likewise.
952 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
953 (update_and_record_unavailable_insns): Strengthen local "bb_end"
954 from rtx to rtx_insn *.
955 (maybe_emit_renaming_copy): Likewise for param "insn".
956 (maybe_emit_speculative_check): Likewise.
957 (handle_emitting_transformations): Likewise.
958 (remove_insn_from_stream): Likewise.
959 (code_motion_process_successors): Strengthen local "succ" from rtx
960 to insn_t.
961
962 2014-08-26 David Malcolm <dmalcolm@redhat.com>
963
964 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
965 ilist_t, not _xlist_t;
966 (ILIST_INSN): Define in terms of new union field "insn".
967 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
968 _XLIST_NEXT.
969 (struct _list_node): Add new field "insn" to the union, of type
970 insn_t.
971 (ilist_add): Replace macro with an inline function, requiring an
972 insn_t.
973 (ilist_remove): Define this macro directly in terms of
974 _list_remove, rather than indirectly via _xlist_remove.
975 (ilist_clear): Likewise, in terms of _list_clear rather than
976 _xlist_clear.
977 (ilist_is_in_p): Replace macro with an inline function, requiring
978 an insn_t.
979 (_list_iter_cond_insn): New function.
980 (ilist_iter_remove): Define this macro directly in terms of
981 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
982 (ilist_iterator): Define directly in terms of _list_iterator
983 rather than indirectly through _xlist_iterator.
984 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
985 than in terms of _FOR_EACH_X.
986 (FOR_EACH_INSN_1): Likewise.
987
988 2014-08-26 Joseph Myers <joseph@codesourcery.com>
989
990 PR target/60606
991 PR target/61330
992 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
993 DECL_HARD_REGISTER and return for invalid register specifications.
994 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
995 DECL_HARD_REGISTER, call expand_one_error_var.
996 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
997 CC_REGNUM with non-MODE_CC modes.
998 (arm_regno_class): Return NO_REGS for PC_REGNUM.
999
1000 2014-08-26 Marek Polacek <polacek@redhat.com>
1001
1002 PR c/61271
1003 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1004
1005 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1006
1007 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1008 qi cost; add di cost.
1009 (cortexa57_addrcost_table): Likewise.
1010
1011 2014-08-26 Marek Polacek <polacek@redhat.com>
1012
1013 PR c/61271
1014 * expr.c (is_aligning_offset): Remove logical not.
1015
1016 2014-08-26 Marek Polacek <polacek@redhat.com>
1017
1018 PR c/61271
1019 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1020 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1021
1022 2014-08-26 Richard Biener <rguenther@suse.de>
1023
1024 PR tree-optimization/62175
1025 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1026 expand possibly trapping operations.
1027
1028 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1029
1030 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1031 "insn" from rtx to rtx_insn *.
1032 (permute_load): Likewise for param "insn".
1033 (permute_store): Likewise.
1034 (handle_special_swappables): Likewise for local "insn".
1035 (replace_swap_with_copy): Likewise for locals "insn" and
1036 "new_insn".
1037 (rs6000_analyze_swaps): Likewise for local "insn".
1038
1039 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1040
1041 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1042 to rtx_insn *.
1043
1044 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1045
1046 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1047 "note_list" from rtx to rtx_insn *.
1048 (BB_NOTE_LIST): Replace this function and...
1049 (SET_BB_NOTE_LIST): ...this function with...
1050 (BB_NOTE_LIST): ...the former macro implementation.
1051
1052 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1053 local "from_start" from rtx to rtx_insn *. Strengthen param
1054 "to_endp" from rtx * to rtx_insn **.
1055
1056 * haifa-sched.c (concat_note_lists): Likewise.
1057 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1058 BB_NOTE_LIST.
1059 (sel_restore_notes): Likewise.
1060 (move_bb_info): Likewise.
1061 (BB_NOTE_LIST): Delete this function.
1062 (SET_BB_NOTE_LIST): Delete this function.
1063 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1064 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1065
1066 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1067
1068 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1069 from rtx * to rtx_insn **.
1070 (reorder2): Likewise.
1071 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1072 from rtx to rtx_insn *.
1073
1074 * doc/tm.texi: Update mechanically for above change to target.def.
1075
1076 * sched-int.h (note_list): Strengthen this variable from rtx to
1077 rtx_insn *.
1078 (remove_notes): Likewise for both params.
1079 (restore_other_notes): Likewise for return type and first param.
1080 (struct ready_list): Strengthen field "vec" from rtx * to
1081 rtx_insn **.
1082 (struct dep_replacement): Strenghten field "insn" from rtx to
1083 rtx_insn *.
1084 (struct deps_desc): Likewise for fields "last_debug_insn",
1085 "last_args_size".
1086 (struct haifa_sched_info): Likewise for callback field
1087 "can_schedule_ready_p"'s param, for first param of "new_ready"
1088 callback field, for both params of "rank" callback field, for
1089 first field of "print_insn" callback field (with a const), for
1090 both params of "contributes_to_priority" callback, for param
1091 of "insn_finishes_block_p" callback, for fields "prev_head",
1092 "next_tail", "head", "tail", for first param of "add_remove_insn"
1093 callback, for first param of "begin_schedule_ready" callback, for
1094 both params of "begin_move_insn" callback, and for second param
1095 of "advance_target_bb" callback.
1096 (add_dependence): Likewise for params 1 and 2.
1097 (sched_analyze): Likewise for params 2 and 3.
1098 (deps_analyze_insn): Likewise for param 2.
1099 (ready_element): Likewise for return type.
1100 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1101 (try_ready): Strenghten param from rtx to rtx_insn *.
1102 (sched_emit_insn): Likewise for return type.
1103 (record_delay_slot_pair): Likewise for params 1 and 2.
1104 (add_delay_dependencies): Likewise for param.
1105 (contributes_to_priority): Likewise for both params.
1106 (find_modifiable_mems): Likewise.
1107
1108 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1109 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1110 "first_older_only_insn" from rtx to rtx_insn *.
1111 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1112 rtx_insn **.
1113
1114 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1115 "last_scheduled_iter0" from rtx to rtx_insn *.
1116 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1117 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1118 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1119 "insn" from rtx to rtx_insn *.
1120 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1121 rtx_insn **.
1122 (c6x_sched_reorder2): Strengthen param "ready" and locals
1123 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1124 "insn" from rtx to rtx_insn *.
1125 (c6x_variable_issue): Add a checked cast when assigning from insn
1126 to ss.last_scheduled_iter0.
1127 (split_delayed_branch): Strengthen param "insn" and local "i1"
1128 from rtx to rtx_insn *.
1129 (split_delayed_nonbranch): Likewise.
1130 (undo_split_delayed_nonbranch): Likewise for local "insn".
1131 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1132 "entry_after", "end_packet", "head_insn", "tail_insn",
1133 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1134 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1135 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1136 but add a checked cast on loop->start_label. Consolidate calls to
1137 avoid assigning result of gen_spkernel to "insn", now an
1138 rtx_insn *.
1139
1140 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1141 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1142 rtx to rtx_insn *.
1143 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1144 rtx_insn **. Strengthen locals "top", "next" from rtx to
1145 rtx_insn *.
1146 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1147 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1148 (add_parameter_dependencies): Strengthen params "call", "head" and
1149 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1150 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1151 (add_dependee_for_func_arg): Likewise for param "arg" and local
1152 "insn".
1153 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1154 "tail" and locals "insn", "first_arg".
1155
1156 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1157 for params "head", "tail" and locals "insn", "next", "next_tail".
1158 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1159 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1160 "insn", "lowest", "highest" from rtx to rtx_insn *.
1161 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1162 rtx_insn **.
1163 (ia64_sched_reorder2): Likewise.
1164
1165 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1166 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1167 from rtx * to rtx_insn **.
1168 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1169 rtx_insn **.
1170 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1171 rtx_insn *.
1172 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1173 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1174 to rtx_insn *.
1175
1176 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1177 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1178 to rtx_insn *.
1179 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1180 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1181 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1182 rtx_insn **.
1183 (vr4130_reorder): Likewise.
1184 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1185 rtx to rtx_insn *.
1186 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1187 rtx_insn **.
1188 (mips_sched_reorder): Likewise.
1189 (mips_sched_reorder2): Likewise.
1190
1191 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1192
1193 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1194 Strengthen local "tmp" from rtx to rtx_insn *.
1195 (rs6000_sched_reorder2): Likewise.
1196
1197 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1198 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1199 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1200 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1201
1202 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1203 "tmp2" from rtx to rtx_insn *.
1204 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1205 Strengthen local "insn" from rtx to rtx_insn *.
1206 (ready_reorder): Strengthen param "ready" from rtx * to
1207 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1208 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1209 (sh_reorder2): Likewise.
1210
1211 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1212 local "insn" from rtx to rtx_insn *.
1213
1214 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1215 rtx_insn *.
1216 (scheduled_insns): Strengthen this variable from vec<rtx> to
1217 vec<rtx_insn *>.
1218 (set_modulo_params): Likewise for locals "i1", "i2".
1219 (record_delay_slot_pair): Likewise for params "i1", "i2".
1220 (add_delay_dependencies): Likewise for param "insn".
1221 (cond_clobbered_p): Likewise.
1222 (recompute_todo_spec): Likewise for local "prev".
1223 (last_scheduled_insn): Likewise for this variable.
1224 (nonscheduled_insns_begin): Likewise.
1225 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1226 rtx_insn **.
1227 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1228 rtx_insn *.
1229 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1230 Strengthen local "insn" from rtx to rtx_insn *.
1231 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1232 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1233 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1234 (ready_remove_first): Likewise for return type and local "t".
1235 (ready_element): Likewise for return type.
1236 (ready_remove): Likewise for return type and local "t".
1237 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1238 (check_clobbered_conditions): Strengthen local "x" from rtx to
1239 rtx_insn *, adding a checked cast.
1240 (schedule_insn): Likewise for param "insn".
1241 (remove_notes): Likewise for params "head", "tail" and locals
1242 "next_tail", "insn", "next".
1243 (struct haifa_saved_data): Likewise for fields
1244 "last_scheduled_insn", "nonscheduled_insns_begin".
1245 (save_backtrack_point): Update for change to field "vec" of
1246 struct ready_list.
1247 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1248 rtx_insn **.
1249 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1250 from rtx to rtx_insn *
1251 (resolve_dependencies): Strengthen param "insn" from rtx to
1252 rtx_insn *
1253 (restore_other_notes): Likewise for return type, for param "head"
1254 and local "note_head".
1255 (undo_all_replacements): Likewise for local "insn".
1256 (first_nonscheduled_insn): Likewise for return type and local "insn".
1257 (queue_to_ready): Likewise for local "insn", adding checked casts.
1258 (early_queue_to_ready): Likewise for local "insn".
1259 (debug_ready_list_1): Strengthen local "p" from rtx * to
1260 rtx_insn **.
1261 (move_insn): Strengthen param "insn" and local "note" from rtx to
1262 rtx_insn *
1263 (insn_finishes_cycle_p): Likewise for param "insn".
1264 (max_issue): Likewise for local "insn".
1265 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1266 to rtx_insn **.
1267 (commit_schedule): Strengthen param "prev_head" and local "insn"
1268 from rtx to rtx_insn *
1269 (prune_ready_list): Likewise for local "insn".
1270 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1271 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1272 (set_priorities): Likewise for local "prev_head".
1273 (try_ready): Likewise for param "next".
1274 (fix_tick_ready): Likewise.
1275 (change_queue_index): Likewise.
1276 (sched_extend_ready_list): Update for change to field "vec" of
1277 struct ready_list.
1278 (generate_recovery_code): Strengthen param "insn" from rtx to
1279 rtx_insn *.
1280 (begin_speculative_block): Likewise.
1281 (create_check_block_twin): Likewise for param "insn" and locals
1282 "label", "check", "twin". Introduce local "check_pat" to avoid
1283 "check" being used as a plain rtx before being used as an insn.
1284 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1285 extracting elements from ready_list.
1286 (sched_remove_insn): Strengthen param "insn" from rtx to
1287 rtx_insn *.
1288 (sched_emit_insn): Likewise for return type.
1289 (ready_remove_first_dispatch): Likewise for return type and local
1290 "insn".
1291
1292 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1293
1294 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1295 const rtx_insn *.
1296
1297 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1298 from rtx to rtx_insn *.
1299 (add_dependence_list): Likewise for param "insn". Add a checked
1300 cast.
1301 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1302 to rtx_insn *. Strengthen param "list_p" from rtx * to
1303 rtx_insn **.
1304 (chain_to_prev_insn): Strengthen param "insn" and locals
1305 "prec_nonnote", "i" from rtx to rtx_insn *.
1306 (flush_pending_lists): Likewise for param "insn".
1307 (cur_insn): Likewise for this variable.
1308 (haifa_start_insn): Add a checked cast.
1309 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1310 (sched_analyze_reg): Likewise for param "insn".
1311 (sched_analyze_1): Likewise.
1312 (sched_analyze_2): Likewise. Add checked casts.
1313 (sched_analyze_insn): Likewise. Also for local "prev".
1314 (deps_analyze_insn): Likewise for param "insn".
1315 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1316 (add_dependence_1): Likewise for params "insn", "elem".
1317 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1318 (parse_add_or_inc): Likewise for param "insn".
1319 (find_inc): Likewise for local "inc_cand".
1320 (find_modifiable_mems): Likewise for params "head", "tail" and
1321 locals "insn", "next_tail".
1322
1323 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1324 (begin_schedule_ready): Likewise for param "insn".
1325 (begin_move_insn): Likewise for params "insn" and "last".
1326 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1327 const rtx_insn *.
1328 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1329 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1330 (ebb_add_remove_insn): Likewise for param "insn".
1331 (advance_target_bb): Likewise.
1332
1333 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1334 "insn".
1335 (check_live): Likewise for param "insn".
1336 (init_ready_list): Likewise for local "insn".
1337 (can_schedule_ready_p): Likewise for param "insn".
1338 (begin_schedule_ready): Likewise.
1339 (new_ready): Likewise for param "next".
1340 (rgn_print_insn): Likewise for param "insn".
1341 (rgn_rank): Likewise for params "insn1", "insn2".
1342 (contributes_to_priority): Likewise for params "next", "insn".
1343 (rgn_insn_finishes_block_p): Likewise for param "insn".
1344 (add_branch_dependences): Likewise for params "head", "tail" and
1345 locals "insn", "last".
1346 (rgn_add_remove_insn): Likewise for param "insn".
1347 (advance_target_bb): Likewise.
1348
1349 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1350 const_rtx to const rtx_insn *.
1351
1352 * sel-sched-dump.h (sel_print_insn): Likewise.
1353
1354 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1355 (deps_init_id): Likewise.
1356
1357 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1358 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1359 rtx_insn **.
1360
1361 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1362
1363 * output.h (final_start_function): Strengthen param 1 from rtx to
1364 rtx_insn *.
1365
1366 * final.c (final_start_function): Likewise, renaming back from
1367 "uncast_first" to "first", and dropping the checked cast from rtx
1368 to rtx_insn *.
1369
1370 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1371
1372 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1373 * final.c (final): Likewise. Rename param back from
1374 "uncast_first" to "first" and eliminate the checked cast from rtx
1375 to rtx_insn *.
1376
1377 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1378
1379 * output.h (shorten_branches): Strengthen param from rtx to
1380 rtx_insn *.
1381
1382 * final.c (shorten_branches): Likewise, renaming param back from
1383 "uncast_first" to "first", and dropping the checked cast from rtx
1384 to rtx_insn *.
1385
1386 * genattr.c (gen_attr): Likewise when writing out the prototype of
1387 shorten_branches.
1388
1389 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1390
1391 * sched-int.h (struct haifa_sched_info): Strengthen fields
1392 "prev_head" and "next_tail" from rtx to rtx_insn *.
1393
1394 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1395
1396 * rtl.h (rtx_jump_table_data::get_labels): New method.
1397 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1398 with use of the new rtx_jump_table_data::get_labels method.
1399 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1400 to rtx_jump_table_data *. Simplify by using get_labels method.
1401 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1402 a dyn_cast, introducing local "table", using it to replace
1403 label-lookup logic with a get_labels method call.
1404 (patch_jump_insn): Simplify using get_labels method.
1405 * dwarf2cfi.c (create_trace_edges): Likewise.
1406 * rtlanal.c (label_is_jump_target_p): Likewise.
1407
1408 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1409
1410 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1411 to rtx_insn *.
1412
1413 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1414 (unshare_all_rtl_again): Likewise, also for local "p".
1415
1416 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1417
1418 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1419 to rtx_insn *.
1420 * cfgrtl.c (delete_insn_and_edges): Likewise.
1421
1422 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1423
1424 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1425 from rtx to rtx_insn *.
1426
1427 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1428
1429 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1430
1431 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1432 locals "returnjump", "epilogue_end", "insn", "next".
1433
1434 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1435 "returnjump" from rtx * to rtx_insn **.
1436 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1437
1438 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1439
1440 * basic-block.h (struct edge_def). Strengthen "r" within
1441 union edge_def_insns from rtx to rtx_insn *.
1442
1443 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1444 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1445 rtx_insn *.
1446 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1447 from rtx to rtx_insn *.
1448 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1449 rtx_insn *.
1450 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1451 (reg_used_on_edge): Likewise.
1452 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1453 (gt_pch_nx): New overload for rtx_insn *&.
1454 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1455 from rtx to rtx_insn *.
1456
1457 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1458
1459 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1460 from rtx to rtx_insn *.
1461 (BB_FOOTER): Replace function with access macro.
1462 (SET_BB_FOOTER): Delete.
1463
1464 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1465 with BB_FOOTER.
1466 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1467 (emit_barrier_after_bb): Likewise.
1468 (record_effective_endpoints): Likewise.
1469 (relink_block_chain): Likewise.
1470 (fixup_fallthru_exit_predecessor): Likewise.
1471 (cfg_layout_duplicate_bb): Likewise.
1472 (cfg_layout_split_block): Likewise.
1473 (cfg_layout_delete_block): Likewise.
1474 (cfg_layout_merge_blocks): Likewise.
1475 (BB_FOOTER): Delete function.
1476 (SET_BB_FOOTER): Delete function.
1477 * combine.c (update_cfg_for_uncondjump): Replace uses of
1478 SET_BB_FOOTER with BB_FOOTER.
1479
1480 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1481
1482 * except.h (struct eh_landing_pad_d): Strengthen field
1483 "landing_pad" from rtx to rtx_code_label *.
1484
1485 * except.c (sjlj_emit_dispatch_table): Likewise for param
1486 "dispatch_label"
1487 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1488
1489 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1490
1491 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1492 first param from rtx to rtx_insn *.
1493 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1494 field "set_frame_ptr_insn".
1495 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1496 "csend" from rtx to rtx_code_label *.
1497 (xtensa_expand_atomic): Likewise for local "csloop".
1498 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1499 rtx_insn *.
1500 (xtensa_call_tls_desc): Likewise for return type and locals
1501 "call_insn", "insns".
1502 (xtensa_legitimize_tls_address): Likewise for local "insns".
1503 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1504
1505 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1506
1507 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1508 first param from rtx to rtx_insn *.
1509 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1510 "insn".
1511
1512 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1513
1514 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1515 Strengthen param 1 from rtx to rtx_insn *.
1516 (tilepro_output_cbranch): Likewise.
1517 (tilepro_adjust_insn_length): Likewise.
1518 (tilepro_final_prescan_insn): Likewise for sole param.
1519
1520 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1521 Likewise for local "last".
1522 (cbranch_predicted_p): Likewise for param "insn".
1523 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1524 (tilepro_output_cbranch_with_opcode): Likewise.
1525 (tilepro_output_cbranch): Likewise.
1526 (frame_emit_load): Likewise for return type and locals "seq",
1527 "insn".
1528 (emit_sp_adjust): Likewise for return type and local "insn".
1529 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1530 "insn".
1531 (tilepro_adjust_insn_length): Likewise for param "insn".
1532 (next_insn_to_bundle): Likewise for return type and params
1533 "r", "end".
1534 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1535 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1536 local "new_insns".
1537 (match_addli_pcrel): Likewise for param "insn".
1538 (replace_addli_pcrel): Likewise.
1539 (match_auli_pcrel): Likewise.
1540 (replace_auli_pcrel): Likewise.
1541 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1542 "next_insn".
1543 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1544 "queue", "next_queue", "prev".
1545 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1546 (tilepro_final_prescan_insn): Likewise for param "insn".
1547
1548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1549
1550 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1551 Strengthen param 1 from rtx to rtx_insn *.
1552 (tilegx_output_cbranch): Likewise.
1553 (tilegx_adjust_insn_length): Likewise.
1554 (tilegx_final_prescan_insn): Likewise for sole param.
1555
1556 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1557 or local "last".
1558 (cbranch_predicted_p): Likewise for param "insn".
1559 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1560 (tilegx_output_cbranch_with_opcode): Likewise.
1561 (tilegx_output_cbranch): Likewise.
1562 (frame_emit_load): Likewise for return type.
1563 (set_frame_related_p): Likewise for locals "seq", "insn".
1564 (emit_sp_adjust): Likewise for return type, and for local "insn".
1565 Introduce local "pat" for use in place of "insn" where the latter
1566 isn't an instruction.
1567 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1568 from rtx to rtx_insn *.
1569 (tilegx_adjust_insn_length): Likewise for param "insn".
1570 (next_insn_to_bundle): Likewise for return type and params "r" and
1571 "end".
1572 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1573 "end".
1574 (replace_insns): Likewise for params "old_insn", "new_insns".
1575 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1576 "new_insns".
1577 (replace_mov_pcrel_step2): Likewise.
1578 (replace_mov_pcrel_step3): Likewise.
1579 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1580 "next_insn".
1581 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1582 "queue", "next_queue", "prev".
1583 (tilegx_output_mi_thunk): Likewise for local "insn".
1584 (tilegx_final_prescan_insn): Likewise for param "insn".
1585
1586 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1587
1588 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1589 rtx to rtx_insn *.
1590 (frame_emit_load): Likewise.
1591 (frame_emit_add_imm): Likewise, also for local "insn".
1592 (spu_expand_prologue): Likewise for local "insn".
1593 (struct spu_bb_info): Likewise for field "prop_jump".
1594 (emit_nop_for_insn): Likewise for param "insn" and local
1595 "new_insn".
1596 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1597 "hbr_insn".
1598 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1599 locals "hint", "insn".
1600 (get_branch_target): Likewise for param "branch".
1601 (insn_clobbers_hbr): Likewise for param "insn".
1602 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1603 locals "insn", "before_4", "before_16".
1604 (insert_hbrp): Likewise for local "insn".
1605 (spu_machine_dependent_reorg): Likewise for locals "branch",
1606 "insn", "next", "bbend".
1607 (uses_ls_unit): Likewise for param "insn".
1608 (get_pipe): Likewise.
1609 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1610 introducing a checked cast.
1611 (spu_sched_adjust_cost): Likewise for params "insn" and
1612 "dep_insn".
1613 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1614 (spu_sms_res_mii): Likewise.
1615
1616 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1617
1618 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1619 from rtx to rtx_insn *.
1620 (output_cbranch): Likewise for param 6.
1621 (output_return): Likewise for param 1.
1622 (output_sibcall): Likewise.
1623 (output_v8plus_shift): Likewise.
1624 (output_v8plus_mult): Likewise.
1625 (output_v9branch): Likewise for param 7.
1626 (output_cbcond): Likewise for param 3.
1627
1628 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1629 for local "insn".
1630 (sparc_legitimize_pic_address): Likewise.
1631 (sparc_emit_call_insn): Likewise.
1632 (emit_save_or_restore_regs): Likewise.
1633 (emit_window_save): Likewise for return type and local "insn".
1634 (sparc_expand_prologue): Likewise for local "insn".
1635 (sparc_flat_expand_prologue): Likewise.
1636 (output_return): Likewise for param "insn".
1637 (output_sibcall): Likewise for param "insn" and local "delay".
1638 (output_ubranch): Likewise for param "insn".
1639 (output_cbranch): Likewise.
1640 (output_cbcond): Likewise.
1641 (output_v9branch): Likewise.
1642 (output_v8plus_shift): Likewise.
1643 (sparc_output_mi_thunk): Likewise for local "insn".
1644 (get_some_local_dynamic_name): Likewise.
1645 (output_v8plus_mult): Likewise for param "insn".
1646
1647 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1648
1649 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1650 from rtx to rtx_insn *.
1651 (output_branchy_insn): Likewise for param 3.
1652 (output_far_jump): Likewise for param 1.
1653 (final_prescan_insn): Likewise.
1654 (sh_insn_length_adjustment): Likewise for sole param.
1655
1656 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1657 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1658 rtx_code_label *.
1659 (sh_emit_compare_and_set): Likewise for local "lab".
1660 (output_far_jump): Strengthen param "insn" and local "prev" from
1661 rtx to rtx_insn *.
1662 (output_branchy_insn): Likewise for param "insn" and local
1663 "next_insn".
1664 (output_ieee_ccmpeq): Likewise for param "insn".
1665 (struct label_ref_list_d): Strengthen field "label" from rtx to
1666 rtx_code_label *.
1667 (pool_node): Likewise.
1668 (pool_window_label): Likewise for this global.
1669 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1670 (dump_table): Strengthen params "start", "barrier" and local
1671 "scan" from rtx to rtx_insn *.
1672 (broken_move): Likewise for param "insn".
1673 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1674 Strengthen param "first_mova" from rtx * to rtx_insn **.
1675 (mova_p): Likewise for param "insn".
1676 (fixup_mova): Likewise for param "mova".
1677 (find_barrier): Likewise for return type, params "mova" and
1678 "from", and locals "barrier_before_mova", "found_barrier",
1679 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1680 "label" from rtx to rtx_code_label *.
1681 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1682 rtx to rtx_insn *.
1683 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1684 (split_branches): Likewise for param "first" and local "insn".
1685 (final_prescan_insn): Likewise for param "insn".
1686 (sequence_insn_p): Likewise for locals "prev", "next".
1687 (sh_insn_length_adjustment): Likewise for param "insn".
1688 (sh_can_redirect_branch): Likewise for local "insn".
1689 (find_r0_life_regions): Likewise for locals "end", "insn".
1690 (sh_output_mi_thunk): Likewise for local "insns".
1691
1692 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1693
1694 * config/score/score.c (score_output_mi_thunk): Strengthen local
1695 "insn" from rtx to rtx_insn *.
1696 (score_prologue): Likewise.
1697
1698 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1699
1700 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1701 1 from rtx to rtx_insn *.
1702 (s390_emit_jump): Likewise for return type.
1703 (s390_emit_call): Likewise.
1704 (s390_load_got): Likewise.
1705
1706 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1707 variable.
1708 (s390_match_ccmode): Likewise for param "insn".
1709 (s390_emit_jump): Likewise for return type.
1710 (s390_split_branches): Likewise for local "label".
1711 (struct constant): Strengthen field "label" from rtx to
1712 rtx_code_label *.
1713 (struct constant_pool): Likewise for field "label". Strengthen
1714 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1715 rtx_insn *.
1716 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1717 insns.
1718 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1719 (s390_end_pool): Likewise.
1720 (s390_dump_pool): Likewise for local "insn".
1721 (s390_mainpool_start): Likewise.
1722 (s390_chunkify_start): Likewise.
1723 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1724 with insns. Strengthen locals "label", "jump", "barrier", "next",
1725 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1726 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1727 rtx_insn *.
1728 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1729 "jump", "label", "next_insn".
1730 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1731 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1732 "tbegin_insn".
1733 (s390_load_got): Likewise for return type and local "insns".
1734 (s390_save_gprs_to_fprs): Likewise for local "insn".
1735 (s390_restore_gprs_from_fprs): Likewise.
1736 (pass_s390_early_mach::execute): Likewise.
1737 (s390_emit_prologue): Likewise for local "insns".
1738 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1739 rtx_code_label *.
1740 (s390_emit_call): Strengthen return type and local "insn" from
1741 rtx to rtx_insn *.
1742 (s390_emit_tpf_eh_return): Likewise for local "insn".
1743 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1744 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1745 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1746 local "cur_insn".
1747 (s390_non_addr_reg_read_p): Likewise for param "insn".
1748 (find_cond_jump): Likewise for return type and param "insn".
1749 (s390_swap_cmp): Likewise for param "insn".
1750 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1751 "prev_insn", "next_insn".
1752 (s390_reorg): Likewise for locals "insn", "target".
1753 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1754 (s390_sched_variable_issue): For now, rename param "insn" to
1755 "uncast_insn", introducing a checked cast.
1756 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1757 insn.
1758 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1759 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1760
1761 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1762
1763 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1764 param from rtx to rtx_insn *.
1765 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1766
1767 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1768
1769 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1770 4 from rtx to rtx_insn *.
1771 (rs6000_final_prescan_insn): Likewise for first param.
1772 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1773 local "insn".
1774 (rs6000_get_some_local_dynamic_name): Likewise.
1775 (output_cbranch): Likewise for param "insn".
1776 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1777 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1778 (rs6000_emit_allocate_stack): Likewise for local "insn".
1779 (load_cr_save): Likewise.
1780 (restore_saved_cr): Likewise.
1781 (restore_saved_lr): Likewise.
1782 (emit_cfa_restores): Likewise.
1783 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1784 "deleted_debug_label".
1785 (rs6000_output_mi_thunk): Likewise for local "insn".
1786 (rs6000_final_prescan_insn): Likewise for param "insn".
1787
1788 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1789
1790 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1791 Strengthen param "insn" from rtx to rtx_insn *.
1792 * config/picochip/picochip.c (picochip_current_prescan_insn):
1793 Likewise for this variable.
1794 (picochip_final_prescan_insn): Likewise for param "insn".
1795
1796 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1797
1798 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1799 from rtx to rtx_insn *.
1800 (pa_output_indirect_call): Likewise.
1801 (pa_adjust_insn_length): Likewise.
1802 (pa_attr_length_millicode_call): Likewise.
1803 (pa_attr_length_call): Likewise.
1804 (pa_attr_length_indirect_call): Likewise.
1805
1806 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1807 "insn".
1808 (pa_attr_length_millicode_call): Likewise.
1809 (pa_attr_length_call): Likewise.
1810 (pa_output_call): Likewise.
1811 (pa_attr_length_indirect_call): Likewise.
1812 (pa_output_indirect_call): Likewise.
1813
1814 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1815
1816 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1817 Strengthen first param from rtx to rtx_insn *.
1818 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1819 param "insn".
1820
1821 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1822
1823 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1824 type from rtx to rtx_insn *.
1825 (mips_expand_call): Likewise.
1826 (mips_adjust_insn_length): Likewise for first param.
1827 (mips_output_conditional_branch): Likewise.
1828 (mips_output_order_conditional_branch): Likewise.
1829 (mips_final_prescan_insn): Likewise.
1830
1831 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1832 rtx_insn * for the SEQUENCE case.
1833 (SEQ_END): Likewise.
1834 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1835 (mips_emit_call_insn): Likewise, also for local "insn".
1836 (mips16_gp_pseudo_reg): Likewise for local "scan".
1837 (mips16_build_call_stub): Likewise for return type and for local
1838 "insn". Introduce a new local "pattern" so that "insn" can indeed
1839 be an insn.
1840 (mips_expand_call): Strengthen return type and local "insn" from
1841 rtx to rtx_insn *.
1842 (mips_block_move_loop): Strengthen local "label" from rtx to
1843 rtx_code_label *.
1844 (mips_expand_synci_loop): Likewise for locals "label",
1845 "end_label".
1846 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1847 rtx_insn *.
1848 (mips16e_collect_argument_saves): Likewise for locals "insn",
1849 "next".
1850 (mips_find_gp_ref): Likewise for param of callback for "pred"
1851 param, and for local "insn".
1852 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1853 (mips_insn_has_flexible_gp_ref_p): Likewise.
1854 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1855 local "insn".
1856 (mips_epilogue_set_cfa): Likewise for local "insn".
1857 (mips_expand_epilogue): Likewise.
1858 (mips_adjust_insn_length): Likewise for param "insn".
1859 (mips_output_conditional_branch): Likewise.
1860 (mips_output_order_conditional_branch): Likewise.
1861 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1862 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1863 "falu2_turn_enabled_insn".
1864 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1865 "done_label" from rtx to rtx_code_label *.
1866 (struct mips16_constant): Likewise for field "label".
1867 (mips16_add_constant): Likewise for return type.
1868 (mips16_emit_constants_1): Strengthen return type and param "insn"
1869 from rtx to rtx_insn *.
1870 (mips16_emit_constants): Likewise for param "insn".
1871 (mips16_insn_length): Likewise.
1872 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1873 to rtx_code_label *.
1874 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1875 from rtx to rtx_insn *.
1876 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1877 "jump". Strengthen local "label" from rtx to rtx_code_label *.
1878 (r10k_simplify_address): Strengthen param "insn" and local
1879 "def_insn" from rtx to rtx_insn *.
1880 (r10k_safe_address_p): Strengthen param "insn" from rtx to
1881 rtx_insn *.
1882 (r10k_needs_protection_p_1): Update target type of cast of data
1883 from to rtx to rtx_insn *.
1884 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1885 rtx * to rtx_insn **.
1886 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1887 rtx_insn *.
1888 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1889 (mips_call_expr_from_insn): Likewise for param "insn".
1890 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1891 (mips_find_pic_call_symbol): Likewise for param "insn".
1892 (mips_annotate_pic_calls): Likewise for local "insn".
1893 (mips_sim_insn): Likewise for this variable.
1894 (struct mips_sim): Likewise for field "insn" within elements of
1895 last_set array.
1896 (mips_sim_wait_reg): Likewise for param "insn".
1897 (mips_sim_wait_regs): Likewise.
1898 (mips_sim_wait_units): Likewise.
1899 (mips_sim_wait_insn): Likewise.
1900 (mips_sim_issue_insn): Likewise.
1901 (mips_sim_finish_insn): Likewise.
1902 (mips_seq_time): Likewise for param "seq" and local "insn".
1903 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1904 locals "first", "second".
1905 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1906 "last", "last2", "next".
1907 (mips_avoid_hazard): Likewise for params "after", "insn".
1908 (mips_reorg_process_insns): Likewise for locals "insn",
1909 "last_insn", "subinsn", "next_insn".
1910 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1911 (mips16_split_long_branches): Likewise for locals "insn" "jump",
1912 "jump_sequence".
1913 (mips_output_mi_thunk): Likewise for local "insn".
1914 (mips_final_prescan_insn): Likewise for param "insn".
1915
1916 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1917
1918 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1919 Strengthen return type and local "insns" from rtx to rtx_insn *.
1920 (microblaze_legitimize_tls_address): Likewise for local "insns".
1921 (microblaze_block_move_loop): Strengthen local "label" from rtx
1922 to rtx_code_label *.
1923 (microblaze_expand_prologue): Strengthen two locals named "insn"
1924 from rtx to rtx_insn *.
1925 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1926 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1927 "insn". Strengthen locals "div_label", "div_end_label" from rtx
1928 to rtx_code_label *.
1929
1930 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1931
1932 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1933 param from rtx to rtx_insn *.
1934 (mep_reuse_lo): Likewise for third param.
1935 (mep_use_post_modify_p): Likewise for first param.
1936 (mep_core_address_length): Likewise.
1937 (mep_cop_address_length): Likewise.
1938 (mep_final_prescan_insn): Likewise.
1939 (mep_store_data_bypass_p): Likewise for both params.
1940 (mep_mul_hilo_bypass_p): Likewise.
1941 (mep_ipipe_ldc_p): Likewise for param.
1942
1943 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1944 (mep_rewrite_mult): Likewise.
1945 (mep_rewrite_mulsi3): Likewise.
1946 (mep_rewrite_maddsi3): Likewise.
1947 (mep_reuse_lo_p_1): Likewise.
1948 (mep_reuse_lo_p): Likewise.
1949 (mep_frame_expr): Likewise.
1950 (mep_make_parallel): Likewise for both params.
1951 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1952 local "insn".
1953 (mep_use_post_modify_p): Likewise for param "insn".
1954 (mep_core_address_length): Likewise.
1955 (mep_cop_address_length): Likewise.
1956 (mep_reg_set_in_function): Likewise for local "insn".
1957 (mep_asm_without_operands_p): Likewise.
1958 (F): Likewise for return type and param "x".
1959 (add_constant): Likewise for local "insn".
1960 (maybe_dead_move): Likewise for return type and local "insn".
1961 (mep_expand_prologue): Likewise for local "insn".
1962 (mep_final_prescan_insn): Likewise for param "insn".
1963 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1964 "next", "follow", "x".
1965 (mep_insert_repeat_label_last): Likewise for return type, param
1966 "last_insn", and locals "next", "prev". Strengthen param "label"
1967 from rtx to rtx_code_label *.
1968 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1969 rtx_insn *.
1970 (struct mep_doloop_end): Likewise for fields "insn" and
1971 "fallthrough".
1972 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1973 Strengthen local "repeat_label" from rtx to rtx_code_label *.
1974 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1975 rtx_insn *.
1976 (mep_invert_branch): Likewise for params "insn" and "after".
1977 (mep_reorg_erepeat): Likewise for param "insns" and locals
1978 "insn", "prev", "new_last", "barrier", "user". Strengthen local
1979 "l" from rtx to rtx_code_label *.
1980 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1981 from rtx to rtx_insn *.
1982 (mep_reorg_addcombine): Likewise for param "insns" and locals
1983 "i", "n".
1984 (add_sp_insn_p): Likewise for param "insn".
1985 (mep_reorg_noframe): Likewise for param "insns" and locals
1986 "start_frame_insn", "end_frame_insn", "next".
1987 (mep_reorg): Likewise for local "insns".
1988 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
1989 cast.
1990 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
1991 (mep_mul_hilo_bypass_p): Likewise.
1992 (mep_ipipe_ldc_p): Likewise for param "insn".
1993 (mep_make_bundle): Likewise for return type, param "cop" and local
1994 "insn", splitting out the latter into a new local "seq" for when it
1995 is a SEQUENCE rather than an insn.
1996 (core_insn_p): Likewise for param "insn".
1997 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
1998 "last", "first", "note", "prev", "core_insn".
1999
2000 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2001
2002 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2003 rtx to rtx_insn *.
2004 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2005 (m68k_final_prescan_insn): Likewise for first param.
2006
2007 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2008 (m68k_set_frame_related): Likewise for param "insn".
2009 (output_btst): Likewise for param "insn".
2010 (m68k_final_prescan_insn): Likewise.
2011 (m68k_move_to_reg): Likewise for local "insn".
2012 (m68k_call_tls_get_addr): Likewise for local "insns".
2013 (m68k_call_m68k_read_tp): Likewise.
2014 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2015 (m68k_output_mi_thunk): Likewise for local "insn".
2016
2017 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2018
2019 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2020 first param from rtx to rtx_insn *.
2021 (iq2000_adjust_insn_length): Likewise.
2022 (iq2000_output_conditional_branch): Likewise.
2023 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2024 "insn" and local "nop_insn".
2025 (iq2000_annotate_frame_insn): Likewise for param "insn".
2026 (iq2000_expand_prologue): Likewise for both locals "insn".
2027 (iq2000_adjust_insn_length): Likewise for param "insn".
2028 (iq2000_output_conditional_branch): Likewise.
2029
2030 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2031
2032 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2033 "insns" from rtx to rtx_insn *.
2034 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2035 (struct spill_fill_data): Likewise for field "init_after" and for
2036 elements of array field "prev_insn".
2037 (spill_restore_mem): Likewise for locals "insn", "first".
2038 (do_spill): Likewise for local "insn".
2039 (do_restore): Likewise.
2040 (ia64_expand_prologue): Likewise.
2041 (ia64_expand_epilogue): Likewise.
2042 (emit_insn_group_barriers): Likewise for locals "insn",
2043 "last_label".
2044 (emit_all_insn_group_barriers): Likewise for locals "insn",
2045 "last".
2046 (dfa_stop_insn): Likewise for this global.
2047 (dfa_pre_cycle_insn): Likewise.
2048 (ia64_nop): Likewise.
2049 (final_emit_insn_group_barriers): Likewise for locals "insn",
2050 "last".
2051 (emit_predicate_relation_info): Likewise for locals "head", "n",
2052 "insn", "b", "a".
2053 (ia64_reorg): Likewise for local "insn".
2054 (ia64_output_mi_thunk): Likewise.
2055 (expand_vec_perm_interleave_2): Likewise for local "seq".
2056
2057 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2058
2059 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2060 param 1 "insn" from rtx to rtx_insn *.
2061 (ix86_use_lea_for_mov): Likewise.
2062 (ix86_avoid_lea_for_addr): Likewise.
2063 (ix86_split_lea_for_addr): Likewise.
2064 (ix86_lea_for_add_ok): Likewise.
2065 (ix86_output_call_insn): Likewise.
2066
2067 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2068 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2069 (ix86_output_function_epilogue): Likewise for locals "insn",
2070 "deleted_debug_label".
2071 (legitimize_tls_address): Likewise for local "insn".
2072 (get_some_local_dynamic_name): Likewise.
2073 (increase_distance): Likewise for params "prev", "next".
2074 (distance_non_agu_define_in_bb): Likewise for params "insn",
2075 "start" and locals "prev", "next".
2076 (distance_non_agu_define): Likewise for param "insn".
2077 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2078 locals "next", "prev".
2079 (distance_agu_use): Likewise for param "insn".
2080 (ix86_lea_outperforms): Likewise.
2081 (ix86_ok_to_clobber_flags): Likewise.
2082 (ix86_avoid_lea_for_add): Likewise.
2083 (ix86_use_lea_for_mov): Likewise.
2084 (ix86_avoid_lea_for_addr): Likewise.
2085 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2086 (ix86_split_lea_for_addr): Likewise for param "insn".
2087 (ix86_lea_for_add_ok): Likewise for param "insn".
2088 (ix86_expand_carry_flag_compare): Likewise for local
2089 "compare_seq".
2090 (ix86_expand_int_movcc): Likewise.
2091 (ix86_output_call_insn): Likewise for param "insn".
2092 (ix86_output_call_insn): Likewise for local "i".
2093 (x86_output_mi_thunk): Introduce local "insn", using it in place
2094 of "tmp" when dealing with insns.
2095 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2096 "start".
2097 (ix86_pad_returns): Likewise for locals "ret", "prev".
2098 (ix86_count_insn_bb): Likewise for local "insn".
2099 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2100 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2101 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2102 (expand_vec_perm_interleave2): Likewise for local "seq".
2103 (expand_vec_perm_vperm2f128_vblend): Likewise.
2104 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2105 call to for_each_rtx with for_each_rtx_in_insn.
2106
2107 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2108
2109 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2110 "label" from rtx to rtx_code_label *.
2111 (ix86_expand_prologue): Likewise.
2112 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2113 "varargs_label".
2114 (ix86_split_idivmod): Likewise for locals "end_label" and
2115 "qimode_label".
2116 (ix86_expand_branch): Likewise for local "label2".
2117 (ix86_expand_aligntest): Likewise for return type and local "label".
2118 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2119 "top_label".
2120 (expand_movmem_epilogue): Likewise for the various locals named
2121 "label".
2122 (expand_setmem_epilogue): Likewise.
2123 (expand_small_movmem_or_setmem): Likewise for local "label".
2124 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2125 Strengthen param "done_label" from rtx * to rtx_code_label **.
2126 Strengthen locals "loop_label" and "label" from rtx to
2127 rtx_code_label *.
2128 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2129 Likewise for locals "loop_label", "label".
2130 (ix86_expand_set_or_movmem): Likewise for locals "label",
2131 "jump_around_label", "hot_label".
2132 (ix86_expand_strlensi_unroll_1): Likewise for locals
2133 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2134 "end_2_label".
2135 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2136 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2137 "label2", "jump_label".
2138 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2139 local "label".
2140 (ix86_expand_lfloorceil): Likewise for local "label".
2141 (ix86_expand_rint): Likewise.
2142 (ix86_expand_floorceildf_32): Likewise.
2143 (ix86_expand_floorceil): Likewise.
2144 (ix86_expand_rounddf_32): Likewise.
2145 (ix86_expand_trunc): Likewise.
2146 (ix86_expand_truncdf_32): Likewise.
2147 (ix86_expand_round): Likewise.
2148
2149 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2150
2151 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2152 first param from rtx to rtx_insn *.
2153 (h8300_insn_length_from_table): Likewise.
2154 * config/h8300/h8300.c (F): Likewise for return type and param
2155 "x".
2156 (Fpa): Add a checked cast to rtx_insn *.
2157 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2158 rtx_insn *.
2159 (final_prescan_insn): Likewise for param "insn".
2160 (h8300_binary_length): Likewise.
2161 (h8300_insn_length_from_table): Likewise.
2162
2163 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2164
2165 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2166 Strengthen first param "insn" from rtx to rtx_insn *.
2167
2168 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2169 Likewise.
2170 (frame_insn): Likewise for return type. Introduce local "insn"
2171 for use in place of local "x" for use as an rtx_insn *.
2172 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2173 (epiphany_expand_prologue): Likewise for local "insn".
2174 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2175 * config/epiphany/resolve-sw-modes.c
2176 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2177 "seq".
2178
2179 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2180
2181 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2182 param from rtx to rtx_insn *.
2183 (c6x_final_prescan_insn): Likewise for first param.
2184
2185 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2186 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2187 (c6x_expand_compare): Strengthen local "insns" from rtx to
2188 rtx_insn *.
2189 (c6x_get_unit_specifier): Likewise for param "insn".
2190 (c6x_print_unit_specifier_field): Likewise.
2191 (c6x_final_prescan_insn): Likewise.
2192 (emit_add_sp_const): Likewise for local "insn".
2193 (c6x_expand_prologue): Likewise.
2194
2195 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2196
2197 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2198 param 1 from rtx to rtx_insn *.
2199 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2200 the various locals named "insn".
2201 (expand_epilogue_reg_restore): Likewise.
2202 (frame_related_constant_load): Likewise.
2203 (add_to_reg): Likewise.
2204 (emit_link_insn): Likewise.
2205 (do_link): Likewise.
2206 (expand_interrupt_handler_prologue): Likewise.
2207 (branch_dest): Likewise for param "branch".
2208 (asm_conditional_branch): Likewise for param "insn".
2209 (gen_one_bundle): Likewise for elements of param "slot" and local
2210 "t".
2211 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2212 elements of local "slot".
2213 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2214 "queue", "next_queue", "prev".
2215 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2216 (add_sched_insns_for_speculation): Likewise for local "insn".
2217
2218 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2219
2220 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2221 from rtx to rtx_insn *.
2222 (output_movhi): Likewise.
2223 (output_movsisf): Likewise.
2224 (avr_out_tstsi): Likewise.
2225 (avr_out_tsthi): Likewise.
2226 (avr_out_tstpsi): Likewise.
2227 (avr_out_compare): Likewise.
2228 (avr_out_compare64): Likewise.
2229 (avr_out_movpsi): Likewise.
2230 (ashlqi3_out): Likewise.
2231 (ashlhi3_out): Likewise.
2232 (ashlsi3_out): Likewise.
2233 (ashrqi3_out): Likewise.
2234 (ashrhi3_out): Likewise.
2235 (ashrsi3_out): Likewise.
2236 (lshrqi3_out): Likewise.
2237 (lshrhi3_out): Likewise.
2238 (lshrsi3_out): Likewise.
2239 (avr_out_ashlpsi3): Likewise.
2240 (avr_out_ashrpsi3): Likewise.
2241 (avr_out_lshrpsi3): Likewise.
2242 (avr_out_fract): Likewise.
2243 (avr_out_sbxx_branch): Likewise.
2244 (avr_out_round): Likewise.
2245 (avr_out_xload): Likewise.
2246 (avr_out_movmem): Likewise.
2247 (adjust_insn_length): Likewise.
2248 (avr_out_lpm): Likewise.
2249 (reg_unused_after): Likewise.
2250 (_reg_unused_after): Likewise.
2251 (avr_jump_mode): Likewise for second param.
2252 (jump_over_one_insn): Likewise for first param.
2253 (avr_final_prescan_insn): Likewise.
2254 (out_shift_with_cnt): Likewise for second param.
2255
2256 * config/avr/avr.c (get_sequence_length): Likewise for param
2257 "insns" and local "insn".
2258 (emit_push_byte): Likewise for local "insn".
2259 (emit_push_sfr): Likewise.
2260 (avr_prologue_setup_frame): Likewise for locals "insn",
2261 "fp_plus_insns", "sp_plus_insns".
2262 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2263 "sp_plus_insns".
2264 (avr_jump_mode): Likewise for param "insn".
2265 (avr_final_prescan_insn): Likewise.
2266 (avr_find_unused_d_reg): Likewise.
2267 (avr_out_lpm_no_lpmx): Likewise.
2268 (avr_out_lpm): Likewise.
2269 (avr_out_xload): Likewise.
2270 (output_movqi): Likewise.
2271 (output_movhi): Likewise.
2272 (out_movqi_r_mr): Likewise.
2273 (out_movhi_r_mr): Likewise.
2274 (out_movsi_r_mr): Likewise.
2275 (out_movsi_mr_r): Likewise.
2276 (output_movsisf): Likewise.
2277 (avr_out_load_psi): Likewise.
2278 (avr_out_store_psi): Likewise.
2279 (avr_out_movpsi): Likewise.
2280 (out_movqi_mr_r): Likewise.
2281 (avr_out_movhi_mr_r_xmega): Likewise.
2282 (out_movhi_mr_r): Likewise.
2283 (compare_condition): Likewise for param "insn" and local "next".
2284 (compare_sign_p): Likewise for param "insn".
2285 (compare_diff_p): Likewise.
2286 (compare_eq_p): Likewise.
2287 (avr_out_compare): Likewise.
2288 (avr_out_compare64): Likewise.
2289 (avr_out_tsthi): Likewise.
2290 (avr_out_tstpsi): Likewise.
2291 (avr_out_tstsi): Likewise.
2292 (out_shift_with_cnt): Likewise.
2293 (ashlqi3_out): Likewise.
2294 (ashlhi3_out): Likewise.
2295 (avr_out_ashlpsi3): Likewise.
2296 (ashlsi3_out): Likewise.
2297 (ashrqi3_out): Likewise.
2298 (ashrhi3_out): Likewise.
2299 (avr_out_ashrpsi3): Likewise.
2300 (ashrsi3_out): Likewise.
2301 (lshrqi3_out): Likewise.
2302 (lshrhi3_out): Likewise.
2303 (avr_out_lshrpsi3): Likewise.
2304 (lshrsi3_out): Likewise.
2305 (avr_out_fract): Likewise.
2306 (avr_out_round): Likewise.
2307 (avr_adjust_insn_length): Likewise.
2308 (reg_unused_after): Likewise.
2309 (_reg_unused_after): Likewise.
2310 (avr_compare_pattern): Likewise.
2311 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2312 and locals "branch1", "branch2", "insn2", "jump".
2313 (avr_reorg): Likewise for local "insn".
2314 (avr_2word_insn_p): Likewise for param "insn".
2315 (jump_over_one_insn_p): Likewise.
2316 (avr_out_sbxx_branch): Likewise.
2317 (avr_out_movmem): Likewise.
2318
2319 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2320
2321 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2322 param from rtx to rtx_insn *.
2323 (thumb1_final_prescan_insn): Likewise.
2324 (thumb2_final_prescan_insn): Likewise.
2325
2326 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2327 rtx to rtx_insn *.
2328 (struct minipool_node): Likewise for field "insn".
2329 (dump_minipool): Likewise for param "scan".
2330 (create_fix_barrier): Likewise for local "from". Strengthen local
2331 "label" from rtx to rtx_code_label *.
2332 (push_minipool_barrier): Strengthen param "insn" from rtx to
2333 rtx_insn *.
2334 (push_minipool_fix): Likewise.
2335 (note_invalid_constants): Likewise.
2336 (thumb2_reorg): Likewise for local "insn".
2337 (arm_reorg): Likewise.
2338 (thumb2_final_prescan_insn): Likewise for param
2339 "insn" and local "first_insn".
2340 (arm_final_prescan_insn): Likewise for param "insn" and locals
2341 "start_insn", "this_insn".
2342 (arm_debugger_arg_offset): Likewise for param "insn".
2343 (thumb1_emit_multi_reg_push): Likewise for return type and local
2344 "insn".
2345 (thumb1_final_prescan_insn): Likewise for param "insn".
2346 (thumb_far_jump_used_p): Likewise for local "insn".
2347 (thumb1_expand_prologue): Likewise.
2348 (arm_expand_epilogue_apcs_frame): Likewise.
2349 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2350 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2351 from rtx to rtx_code_label *.
2352 (arm_split_atomic_op): Likewise for local "label".
2353 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2354
2355 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2356
2357 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2358 first param from rtx to rtx_insn *.
2359 (arc_verify_short): Likewise.
2360 (arc_short_long): Likewise.
2361 (arc_need_delay): Likewise.
2362
2363 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2364 "target_insn".
2365 (arc_ccfsm_advance): Likewise for param "insn" and locals
2366 "start_insn", "this_insn".
2367 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2368 (arc_ccfsm_post_advance): Likewise for param "insn".
2369 (arc_next_active_insn): Likewise for return type and param "insn".
2370 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2371 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2372 (output_short_suffix): Likewise for local "insn".
2373 (arc_final_prescan_insn): Likewise for param "insn". Remove
2374 now-redundant checked cast.
2375 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2376 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2377 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2378 for use where lc_set became an insn.
2379 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2380 rtx to rtx_insn *.
2381 (arc_get_insn_variants): Likewise for local "prev".
2382 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2383 "next".
2384 (arc_predicate_delay_insns): Likewise for local "insn".
2385 (arc_pad_return): Likewise for local "prev". For now, add a
2386 checked cast when extracting the insn from "final_sequence".
2387 (arc_short_long): Likewise for param "insn".
2388 (arc_need_delay): Likewise for param "insn" and local "next".
2389 (arc_label_align): Likewise for locals "prev", "next".
2390
2391 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2392
2393 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2394 "insn" from rtx to rtx_insn *.
2395 (alpha_gp_save_rtx): Likewise for local "seq".
2396 (alpha_instantiate_decls): Likewise for local "top".
2397 (get_some_local_dynamic_name): Likewise for local "insn".
2398 (alpha_does_function_need_gp): Likewise.
2399 (set_frame_related_p): Likewise for return type and for locals
2400 "seq" and "insn".
2401 (emit_frame_store_1): Likewise for local "insn".
2402 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2403 (alpha_end_function): Likewise for local "insn".
2404 (alpha_output_mi_thunk_osf): Likewise.
2405 (alphaev4_insn_pipe): Likewise for param "insn".
2406 (alphaev5_insn_pipe): Likewise.
2407 (alphaev4_next_group): Likewise for return type and param 1
2408 "insn".
2409 (alphaev5_next_group): Likewise.
2410 (alpha_align_insns_1): Likewise for return type and param 1 of
2411 callback param "next_group", and for locals "i", "next", "prev",
2412 "where", "where2", "insn".
2413
2414 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2415
2416 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2417 rather than modifying the stmt.
2418
2419 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2420
2421 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2422 cgraph_state conversion.
2423
2424 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2425
2426 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2427 Strengthen local "insns" from rtx to rtx_insn *.
2428 (aarch64_set_frame_expr): Likewise for local "insn".
2429 (aarch64_save_or_restore_fprs): Likewise.
2430 (aarch64_save_or_restore_callee_save_registers): Likewise.
2431 (aarch64_expand_prologue): Likewise.
2432 (aarch64_expand_epilogue): Likewise.
2433 (aarch64_output_mi_thunk): Likewise.
2434 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2435 "label2" from rtx to rtx_code_label *.
2436 (aarch64_split_atomic_op): Likewise for local "label".
2437
2438 2014-08-25 Martin Liska <mliska@suse.cz>
2439
2440 * cgraph.h (symtab_node):
2441 (bool needed_p (void)): created from decide_is_symbol_needed
2442 (bool referred_to_p (void)): created from referred_to_p
2443 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2444 * cgraph.h (cgraph_node):
2445 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2446 (void expand (void)): created from expand_function
2447 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2448 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2449 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2450 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2451 * cgraph.h (varpool_node):
2452 (static void add (tree decl): created from varpool_add_new_variable
2453 * cgraph.h (cgraph_edge):
2454 void remove (void);
2455 (void remove_caller (void)): created from cgraph_edge_remove_caller
2456 (void remove_callee (void)): created from cgraph_edge_remove_callee
2457 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2458 created from cgraph_set_call_stmt
2459 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2460 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2461 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2462 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2463 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2464 created from cgraph_speculative_call_info
2465 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2466 int freq_scale, bool update_original)): created from cgraph_clone_edge
2467 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2468 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2469 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2470 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2471 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2472 (static void rebuild_references (void)): created from cgraph_rebuild_references
2473 * cgraph.h (symbol_table):
2474 (create_reference): renamed from add_reference
2475 (maybe_create_reference): renamed from maybe_add_reference
2476 (void register_symbol (symtab_node *node)): new function
2477 (void clear_asm_symbols (void)): new function
2478 (void unregister (symtab_node *node)): new function
2479 (void release_symbol (cgraph_node *node, int uid)): new function
2480 (cgraph_node * allocate_cgraph_symbol (void)): new function
2481 (void initialize (void)): created from cgraph_init
2482 (symtab_node *first_symbol (void)):new function
2483 (asm_node *first_asm_symbol (void)):new function
2484 (symtab_node *first_defined_symbol (void)):new function
2485 (varpool_node *first_variable (void)):new function
2486 (varpool_node *next_variable (varpool_node *node)):new function
2487 (varpool_node *first_static_initializer (void)):new function
2488 (varpool_node *next_static_initializer (varpool_node *node)):new function
2489 (varpool_node *first_defined_variable (void)):new function
2490 (varpool_node *next_defined_variable (varpool_node *node)):new function
2491 (cgraph_node *first_defined_function (void)):new function
2492 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2493 (cgraph_node *first_function (void)):new function
2494 (cgraph_node *next_function (cgraph_node *node)):new function
2495 (cgraph_node *first_function_with_gimple_body (void)):new function
2496 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2497 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2498 created from symtab_remove_unreachable_nodes
2499 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2500 (void process_new_functions (void)): created from cgraph_process_new_functions
2501 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2502 (bool output_variables (void)): created from varpool_node::output_variables
2503 (void output_asm_statements (void)): created from output_asm_statements
2504 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2505 (void compile (void)): created from compile
2506 (void output_weakrefs (void)): created from output_weakrefs
2507 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2508 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2509 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2510 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2511 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2512 created from cgraph_next_function_with_gimple_body
2513 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2514 created from cgraph_remove_edge_removal_hook
2515 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2516 created from cgraph_add_node_removal_hook
2517 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2518 created from cgraph_remove_node_removal_hook
2519 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2520 created from varpool_add_node_removal_hook
2521 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2522 created from varpool_remove_node_removal_hook
2523 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2524 created from cgraph_add_function_insertion_hook
2525 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2526 created from cgraph_remove_function_insertion_hook
2527 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2528 created from varpool_add_variable_insertion_hook
2529 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2530 created from varpool_remove_variable_insertion_hook
2531 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2532 created from cgraph_add_edge_duplication_hook
2533 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2534 created from cgraph_remove_edge_duplication_hook
2535 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2536 created from cgraph_add_node_duplication_hook
2537 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2538 created from cgraph_remove_node_duplication_hook
2539 (void call_edge_removal_hooks (cgraph_edge *e)):
2540 created from cgraph_call_edge_removal_hooks
2541 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2542 created from call_function_insertion_hooks
2543 (void call_cgraph_removal_hooks (cgraph_node *node)):
2544 created from cgraph_call_node_removal_hooks
2545 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2546 created from cgraph_node::call_duplication_hooks
2547 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2548 created from cgraph_call_edge_duplication_hooks
2549 (void call_varpool_removal_hooks (varpool_node *node)):
2550 created from varpool_call_node_removal_hooks
2551 (void call_varpool_insertion_hooks (varpool_node *node)):
2552 created from varpool_call_variable_insertion_hooks
2553 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2554 created from insert_to_assembler_name_hash
2555 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2556 created from unlink_from_assembler_name_hash
2557 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2558 created from symtab_prevail_in_asm_name_hash
2559 (void symtab_initialize_asm_name_hash (void)):
2560 created from symtab_initialize_asm_name_hash
2561 (void change_decl_assembler_name (tree decl, tree name)):
2562 created from change_decl_assembler_name
2563 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2564 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2565 created from decl_assembler_name_hash
2566 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2567 created from decl_assembler_name_equal
2568 (static hashval_t hash_node_by_assembler_name (const void *p)):
2569 created from hash_node_by_assembler_name
2570 (static int eq_assembler_name (const void *p1, const void *p2)):
2571 created from eq_assembler_name
2572
2573 2014-08-25 Marek Polacek <polacek@redhat.com>
2574
2575 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2576
2577 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2578
2579 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2580 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2581 SWI1248_AVX512BW mode iterator.
2582
2583 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2584
2585 PR target/62111
2586 * config/sh/predicates.md (general_extend_operand): Disable
2587 TRUNCATE before reload completes.
2588
2589 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2590
2591 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2592
2593 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2594
2595 PR target/61996
2596 * config/sh/sh.opt (musermode): Allow negative form.
2597 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2598 targets that don't support it.
2599 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2600 Document -mno-usermode option.
2601
2602 2014-08-24 Kito Cheng <kito@0xlab.org>
2603
2604 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2605 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2606 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2607 * doc/tm.texi: Regenerate.
2608
2609 2014-08-24 Kito Cheng <kito@0xlab.org>
2610
2611 * ira.c: Fix typo in comment.
2612
2613 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2614
2615 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2616 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2617
2618 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2619
2620 PR target/62038
2621 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2622 last_address when the current function is a thunk.
2623 (pa_asm_output_mi_thunk): When we don't have named sections or they
2624 are not being used, check that thunk can reach the stub table with a
2625 short branch.
2626
2627 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2628
2629 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2630 rtx_insn *.
2631 (pass_web::execute): Likewise for local "insn".
2632
2633 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2634
2635 * var-tracking.c (struct micro_operation_def): Strengthen field
2636 "insn" from rtx to rtx_insn *.
2637 (struct emit_note_data_def): Likewise.
2638 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2639 (vt_stack_adjustments): Likewise for local "insn".
2640 (adjust_insn): Likewise for param "insn".
2641 (val_store): Likewise.
2642 (val_resolve): Likewise.
2643 (struct count_use_info): Likewise for field "insn".
2644 (log_op_type): Likewise for param "insn".
2645 (reverse_op): Likewise.
2646 (prepare_call_arguments): Likewise.
2647 (add_with_sets): The initial param takes an insn, but we can't
2648 yet strengthen it from rtx to rtx_insn * since it's used as a
2649 cselib_record_sets_hook callback. For now rename initial param
2650 from "insn" to "uncast_insn", and introduce a local "insn" of
2651 the stronger rtx_insn * type, with a checked cast.
2652 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2653 rtx_insn *.
2654 (emit_note_insn_var_location): Likewise.
2655 (emit_notes_for_changes): Likewise.
2656 (emit_notes_for_differences): Likewise.
2657 (next_non_note_insn_var_location): Likewise for return type and
2658 for param "insn".
2659 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2660 (vt_initialize): Likewise for local "insn".
2661 (delete_debug_insns): Likewise for locals "insn" and "next".
2662
2663 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2664
2665 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2666 rtx_insn *.
2667 (mark_constant_pool): Likewise for local "insn".
2668
2669 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2670
2671 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2672 rtx to rtx_insn *.
2673 (dead_debug_promote_uses): Likewise.
2674 (dead_debug_insert_temp): Likewise.
2675
2676 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2677
2678 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2679 from const_rtx to const rtx_insn *.
2680 (store_killed_after): Likewise. Strengthen locals "last", "act"
2681 from rtx to rtx_insn *.
2682 (store_killed_before): Strengthen param "insn" from const_rtx to
2683 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2684 (find_moveable_store): Strengthen param "insn" from rtx to
2685 rtx_insn *.
2686 (compute_store_table): Likewise for local "insn".
2687 (insert_insn_start_basic_block): Likewise for param "insn" and
2688 locals "prev", "before", "insn".
2689 (insert_store): For now, add a checked cast to rtx_insn * on the
2690 result of gen_move_insn.
2691 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2692 to rtx_insn *.
2693 (replace_store_insn): Likewise. For now, add a checked cast to
2694 rtx_insn * on the result of gen_move_insn.
2695
2696 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2697
2698 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2699 rtx_insn *.
2700 (expand_sjlj_dispatch_table): Likewise.
2701
2702 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2703
2704 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2705 "insn" from rtx to rtx_insn *.
2706
2707 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2708
2709 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2710 "insn" from rtx to rtx_insn *.
2711 (dup_block_and_redirect): Likewise for param 3 "before".
2712
2713 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2714 from rtx to rtx_insn *.
2715 (move_insn_for_shrink_wrap): Likewise.
2716 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2717 (dup_block_and_redirect): Likewise for param "before" and local
2718 "insn".
2719 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2720 "end".
2721 (convert_to_simple_return): Likewise for local "start".
2722
2723 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2724 Strengthen local "insn" from rtx to rtx_insn *, for use when
2725 invoking requires_stack_frame_p.
2726
2727 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2728
2729 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2730 rtx_insn *.
2731 (speculate_expr): Likewise for locals "orig_insn_rtx",
2732 "spec_insn_rtx".
2733 (eq_transformed_insns): Likewise for locals "i1", "i2".
2734 (check_for_new_jump): Likewise for return type and local "end".
2735 (find_new_jump): Likewise for return type and local "jump".
2736 (sel_split_edge): Likewise for local "jump".
2737 (sel_create_recovery_block): Likewise.
2738 (sel_redirect_edge_and_branch_force): Likewise.
2739 (sel_redirect_edge_and_branch): Likewise.
2740
2741 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2742
2743 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2744 "new_insn" from rtx to rtx_insn *.
2745 (create_insn_rtx_with_rhs): Likewise for return type and for local
2746 "insn_rtx".
2747 (create_insn_rtx_with_lhs): Likewise.
2748 (create_speculation_check): Likewise for local "insn_rtx".
2749 (implicit_clobber_conflict_p): Likewise for local "insn".
2750 (get_expr_cost): Likewise.
2751 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2752 (move_cond_jump): Likewise for locals "next", "prev", "link",
2753 "head", "from", "to".
2754
2755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2756
2757 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2758 "next" from rtx to rtx_insn *.
2759 (find_conditional_protection): Likewise for local "next".
2760 (is_conditionally_protected): Likewise for local "insn1".
2761 (is_pfree): Likewise for locals "insn1", "insn2".
2762
2763 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2764
2765 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2766 from rtx to rtx_insn *.
2767
2768 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2769 locals "insn1", "insn2" from rtx to rtx_insn *.
2770 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2771 locals "insn", "prev", "last_jump", "next_tail".
2772 (schedule_ebb): Likewise for params "head", "tail".
2773 (schedule_ebbs): Likewise for locals "tail", "head".
2774
2775 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2776 to rtx_insn on "last_insn" in one of the invocations of
2777 schedule_ebb.
2778
2779 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2780
2781 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2782 "elem", "insn" from rtx to rtx_insn *.
2783 (change_spec_dep_to_hard): Likewise.
2784 (get_back_and_forw_lists): Likewise for local "con".
2785 (sd_add_dep): Likewise for locals "elem", "insn".
2786 (sd_resolve_dep): Likewise for locals "pro", "con".
2787 (sd_unresolve_dep): Likewise.
2788 (sd_delete_dep): Likewise.
2789 (chain_to_prev_insn): Likewise for local "pro".
2790 (find_inc): Likewise for locals "pro", "con".
2791
2792 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2793
2794 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2795 to rtx_insn *.
2796 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2797 const rtx_insn *.
2798 (modified_between_p): Strengthen local "insn" from rtx to
2799 rtx_insn *.
2800 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2801 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2802 const rtx_insn *.
2803
2804 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2805
2806 * resource.c (next_insn_no_annul): Strengthen local "next" from
2807 rtx to rtx_insn *.
2808 (mark_referenced_resources): Likewise for local "insn".
2809
2810 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2811
2812 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2813 to rtx_insn *.
2814 (find_reloads): Likewise for param 1.
2815 (subst_reloads): Likewise for sole param.
2816 (find_equiv_reg): Likwise for param 2.
2817 (regno_clobbered_p): Likwise for param 2.
2818 (reload): Likewise for param 1.
2819
2820 * caller-save.c (save_call_clobbered_regs): Strengthen local
2821 "insn" from rtx to rtx_insn *.
2822 (insert_one_insn): Likewise for local "insn".
2823
2824 * reload.c (this_insn): Likewise for this global.
2825 (find_reloads): Likewise for param "insn".
2826 (find_reloads_toplev): Likewise.
2827 (find_reloads_address): Likewise.
2828 (subst_reg_equivs): Likewise.
2829 (update_auto_inc_notes): Likewise.
2830 (find_reloads_address_1): Likewise.
2831 (find_reloads_subreg_address): Likewise.
2832 (subst_reloads): Likewise.
2833 (find_equiv_reg): Likewise, also for local "p".
2834 (regno_clobbered_p): Likewise for param "insn".
2835
2836 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2837 array.
2838 (spill_reg_store): Likewise for the elements of this array.
2839 (remove_init_insns): Likewise for local "equiv_insn".
2840 (will_delete_init_insn_p): Likewise for param "insn".
2841 (reload): Likewise for param ""first" and local "insn".
2842 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2843 rtx_insn *.
2844 (calculate_elim_costs_all_insns): Likewise.
2845 (delete_caller_save_insns): Likewise.
2846 (spill_failure): Likewise for param "insn".
2847 (delete_dead_insn): Likewise.
2848 (set_label_offsets): Likewise.
2849 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2850 "prev_insn".
2851 (elimination_costs_in_insn): Likewise for param "insn".
2852 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2853 when referring to an insn.
2854 (set_initial_label_offsets): Likewise.
2855 (set_offsets_for_label): Strengthen param "insn" from rtx to
2856 rtx_insn *.
2857 (init_eliminable_invariants): Likewise for param "first" and local
2858 "insn".
2859 (fixup_eh_region_note): Likewise for param "insn".
2860 (reload_as_needed): Likewise for locals "prev", "insn",
2861 "old_next", "old_prev", "next".
2862 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2863 "last".
2864 (reload_inheritance_insn): Strengthen elements of this array from
2865 rtx to rtx_insn *.
2866 (failed_reload): Likewise for param "insn".
2867 (choose_reload_regs): Likewise for local "insn". Replace use of
2868 NULL_RTX with NULL when referring to an insn.
2869 (input_reload_insns): Strengthen elements of this array from rtx
2870 to rtx_insn *.
2871 (other_input_address_reload_insns): Likewise for this global.
2872 (other_input_reload_insns): Likewise for this global.
2873 (input_address_reload_insns): Likwise for the elements of this
2874 array.
2875 (inpaddr_address_reload_insns): Likwise for the elements of this
2876 array.
2877 (output_reload_insns): Likewise for the elements of this array.
2878 (output_address_reload_insns): Likewise for the elements of this
2879 array.
2880 (outaddr_address_reload_insns): Likewise for the elements of this
2881 array.
2882 (operand_reload_insns): Likewise for this global.
2883 (other_operand_reload_insns): Likewise for this global.
2884 (other_output_reload_insns): Likewise for the elements of this
2885 array.
2886 (new_spill_reg_store): Likewise for the elements of this
2887 array.
2888 (emit_input_reload_insns): Likewise for locals "insn", "temp".
2889 Strengthen local "where" from rtx * to rtx_insn **.
2890 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2891 from rtx to rtx_insn *.
2892 (do_input_reload): Likewise for local "insn".
2893 (do_output_reload): Likewise for local "insn".
2894 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2895 (emit_insn_if_valid_for_reload): Likewise for return type and local
2896 "last". Add checked cast to rtx_insn when returning "insn" since
2897 this has been through emit_insn.
2898 (gen_reload): Strengthen return type and locals "last", "insn", "set"
2899 from rtx to rtx_insn *. Add checked cast to rtx_insn when
2900 returning "insn" since it's been through
2901 emit_insn_if_valid_for_reload at this point.
2902 (delete_output_reload): Strengthen param "insn" and locals
2903 "output_reload_insn", "i2" from rtx to rtx_insn *.
2904 (delete_address_reloads): Likewise for params "dead_insn",
2905 "current_insn" and locals "prev", "next".
2906 (delete_address_reloads_1): Likewise for params "dead_insn",
2907 "current_insn" and locals "prev", "i2".
2908 (inc_for_reload): Likewise for locals "last", "add_insn".
2909 (add_auto_inc_notes): Strengthen param "insn" from rtx to
2910 rtx_insn *.
2911
2912 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2913 param of this duplicate of the prototype from reload.h
2914
2915 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2916
2917 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2918 rtx to rtx_insn *.
2919 (regstat_bb_compute_calls_crossed): Likewise.
2920
2921 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2922
2923 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2924 to rtx_insn *.
2925 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2926 with an insn.
2927 (regrename_analyze): Strengthen local "insn" from rtx to
2928 rtx_insn *.
2929 (scan_rtx_reg): Likewise for param "insn".
2930 (scan_rtx_address): Likewise.
2931 (scan_rtx): Likewise.
2932 (restore_operands): Likewise.
2933 (record_out_operands): Likewise.
2934 (build_def_use): Likewise for local "insn". Replace use of
2935 NULL_RTX with NULL when dealing with an insn.
2936
2937 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2938
2939 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2940 * reginfo.c (reg_scan): Likewise, also for local "insn".
2941 (reg_scan_mark_refs): Likewise for param "insn".
2942 (init_subregs_of_mode): Likewise for local "insn".
2943
2944 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2945
2946 * regcprop.c (struct queued_debug_insn_change): Strengthen field
2947 "insn" from rtx to rtx_insn *.
2948 (replace_oldest_value_reg): Likewise for param "insn".
2949 (replace_oldest_value_addr): Likewise.
2950 (replace_oldest_value_mem): Likewise.
2951 (apply_debug_insn_changes): Likewise for local "last_insn".
2952 (copyprop_hardreg_forward_1): Likewise for local "insn".
2953
2954 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2955
2956 * reg-stack.c (next_flags_user): Strengthen return type and param
2957 "insn" from rtx to rtx_insn *.
2958 (straighten_stack): Likewise for param "insn".
2959 (check_asm_stack_operands): Likewise.
2960 (remove_regno_note): Likewise.
2961 (emit_pop_insn): Likewise for return type, param "insn", local
2962 "pop_insn".
2963 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
2964 "limit" from rtx to rtx_insn *.
2965 (swap_to_top): Likewise for param "insn".
2966 (move_for_stack_reg): Likewise.
2967 (move_nan_for_stack_reg): Likewise.
2968 (swap_rtx_condition): Likewise.
2969 (compare_for_stack_reg): Likewise.
2970 (subst_all_stack_regs_in_debug_insn): Likewise.
2971 (subst_stack_regs_pat): Likewise, and local "insn2".
2972 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2973 rtx_insn *.
2974 (subst_stack_regs): Likewise.
2975 (change_stack): Likewise.
2976 (convert_regs_1): Likewise for locals "insn", "next".
2977
2978 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2979
2980 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2981 rtx_insn *.
2982 (combine_set_extension): Likewise for param "curr_insn".
2983 (transform_ifelse): Likewise for param "def_insn".
2984 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
2985 from vec<rtx> * to vec<rtx_insn *> *.
2986 (is_cond_copy_insn): Likewise for param "insn".
2987 (struct ext_state): Strengthen the four vec fields from vec<rtx>
2988 to vec<rtx_insn *>.
2989 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
2990 local "def_insn" from rtx to rtx_insn *.
2991 (get_sub_rtx): Likewise for param "def_insn".
2992 (merge_def_and_ext): Likewise.
2993 (combine_reaching_defs): Likewise.
2994 (add_removable_extension): Likewise for param "insn".
2995 (find_removable_extensions): Likewise for local "insn".
2996 (find_and_remove_re): Likewise for locals "curr_insn" and
2997 "def_insn". Strengthen locals "reinsn_del_list" and
2998 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
2999
3000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3001
3002 * recog.c (split_insn): Strengthen param "insn" and locals
3003 "first", "last" from rtx to rtx_insn *.
3004 (split_all_insns): Likewise for locals "insn", "next".
3005 (split_all_insns_noflow): Likewise.
3006
3007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3008
3009 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3010 const rtx_insn *.
3011 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3012 (debug_rtx_find): Likewise for param 1 "x".
3013
3014 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3015 const_rtx to const rtx_insn *. Likewise for local "insn".
3016 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3017 (debug_rtx_find): Likewise for param 1 "x".
3018 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3019 from const_rtx to const rtx_insn * within the appropriate cases of
3020 the switch statement.
3021
3022 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3023 Strengthen local "insns" from rtx to rtx_insn * since this is
3024 passed to a call to debug_rtx_list.
3025
3026 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3027
3028 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3029 to rtx_insn *.
3030
3031 * function.c (stack_protect_epilogue): Add checked cast to
3032 rtx_insn for now when invoking predict_insn_def.
3033
3034 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3035 rtx_insn *.
3036 (predict_insn_def): Likewise.
3037 (rtl_predict_edge): Likewise for local "last_insn".
3038 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3039 const rtx_insn *.
3040 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3041 to rtx_insn *.
3042 (bb_estimate_probability_locally): Likewise for local "last_insn".
3043 (expensive_function_p): Likewise for local "insn".
3044
3045 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3046 local "jmp", since this is used when invoking predict_insn_def.
3047
3048 2014-08-22 Marek Polacek <polacek@redhat.com>
3049
3050 PR c++/62199
3051 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3052
3053 2014-08-22 Marek Polacek <polacek@redhat.com>
3054
3055 PR c/61271
3056 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3057 a comparison in parens.
3058 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3059 in parens.
3060
3061 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3062
3063 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3064 rtx_insn *.
3065
3066 * cprop.c (fis_get_condition): Likewise.
3067
3068 * postreload.c (reload_cse_regs): Likewise for param "first".
3069 (reload_cse_simplify): Likewise for param "insn".
3070 (reload_cse_regs_1): Likewise for local "insn".
3071 (reload_cse_simplify_set): Likewise for param "insn".
3072 (reload_cse_simplify_operands): Likewise.
3073 (struct reg_use): Likewise for field "insn".
3074 (reload_combine_purge_insn_uses): Likewise for param "insn".
3075 (fixup_debug_insns): Likewise for params "from", "to" and local
3076 "insn".
3077 (try_replace_in_use): Likewise for local "use_insn".
3078 (reload_combine_recognize_const_pattern): Likewise for param
3079 "insn" and locals "add_moved_after_insn", "use_insn".
3080 (reload_combine_recognize_pattern): Likewise for param "insn" and
3081 local "prev".
3082 (reload_combine): Likewise for locals "insn", "prev".
3083 (reload_combine_note_use): Likewise for param "insn".
3084 (move2add_use_add2_insn): Likewise.
3085 (move2add_use_add3_insn): Likewise.
3086 (reload_cse_move2add): Likewise, also for local "next".
3087 (move2add_note_store): Likewise for local "insn".
3088
3089 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3090
3091 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3092 rtx to rtx_insn *.
3093 (struct unoccr): Likewise.
3094 (struct modifies_mem): Likewise.
3095 (alloc_mem): Likewise for local "insn".
3096 (insert_expr_in_table): Likewise for param "insn".
3097 (dump_expr_hash_table_entry): Likewise for local "insn".
3098 (oprs_unchanged_p): Likewise for param "insn".
3099 (load_killed_in_block_p): Likewise for local "setter".
3100 (record_last_reg_set_info): Likewise for param "insn".
3101 (record_last_reg_set_info_regno): Likewise.
3102 (record_last_mem_set_info): Likewise.
3103 (record_last_set_info): Likewise for local "last_set_insn".
3104 (record_opr_changes): Likewise for param "insn".
3105 (hash_scan_set): Likewise.
3106 (compute_hash_table): Likewise for local "insn".
3107 (get_avail_load_store_reg): Likewise for param "insn".
3108 (eliminate_partially_redundant_load): Likewise, also for locals
3109 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3110 RTX for insns.
3111 (eliminate_partially_redundant_loads): Likewise for local "insn".
3112
3113 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3114
3115 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3116 rtx to rtx_insn *.
3117 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3118 (expand_twoval_unop): Likewise for locals entry_last", "last".
3119 (expand_twoval_binop): Likewise.
3120 (expand_twoval_binop_libfunc): Likewise for local "insns".
3121 (widen_leading): Likewise for local "last".
3122 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3123 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3124 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3125 (expand_parity): Likewise for locals "last" and "seq".
3126 (expand_ffs): Likewise for local "seq". Strengthen local
3127 "nonzero_label" from rtx to rtx_code_label *.
3128 (expand_absneg_bit): Strengthen local "insns" from rtx to
3129 rtx_insn *.
3130 (expand_unop_direct): Likewise for local "last".
3131 (expand_unop): Likewise for locals "last", "insns".
3132 (expand_abs_nojump): Likewise for local "last".
3133 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3134 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3135 rtx_insn *.
3136 (expand_copysign_absneg): Strengthen local "label" from rtx to
3137 rtx_code_label *.
3138 (expand_copysign_bit): Strengthen local "insns" from rtx to
3139 rtx_insn *.
3140 (struct no_conflict_data): Likewise for fields "first", "insn".
3141 (emit_libcall_block_1): Likewise for param "insns" and locals
3142 "next", "last", "insn".
3143 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3144 on "insns" when invoking emit_libcall_block_1. Ultimately we
3145 want to strengthen insns itself.
3146 (prepare_cmp_insn): Strengthen local "last" from rtx to
3147 rtx_insn *.
3148 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3149 (prepare_float_lib_cmp): Likewise for local "insns".
3150 (emit_conditional_move): Likewise for local "last".
3151 (emit_conditional_add): Likewise.
3152 (have_sub2_insn): Likewise for local "seq".
3153 (expand_float): Likewise for local "insns". Strengthen locals
3154 "label", "neglabel" from rtx to rtx_code_label *.
3155 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3156 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3157 (expand_fixed_convert): Likewise for local "insns" (to
3158 rtx_insn *).
3159 (expand_sfix_optab): Likewise for local "last".
3160 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3161 to rtx_code_label *.
3162 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3163 from rtx to rtx_insn *.
3164 (expand_atomic_fetch_op): Likewise for local "insn".
3165 (maybe_legitimize_operand_same_code): Likewise for local "last".
3166 (maybe_legitimize_operands): Likewise.
3167
3168 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3169
3170 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3171 "insn" from rtx to rtx_insn *.
3172 (ps_rtl_insn): Likewise for return type.
3173 (doloop_register_get): Likewise for params "head", "tail" and
3174 locals "insn", "first_insn_not_to_check".
3175 (schedule_reg_move): Likewise for local "this_insn".
3176 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3177 of gen_move_insn for now.
3178 (reset_sched_times): Strengthen local "insn" from rtx to
3179 rtx_insn *.
3180 (permute_partial_schedule): Likewise.
3181 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3182 (dump_insn_location): Likewise for param "insn".
3183 (loop_canon_p): Likewise for local "insn".
3184 (sms_schedule): Likewise.
3185 (print_partial_schedule): Likewise.
3186 (ps_has_conflicts): Likewise.
3187
3188 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3189
3190 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3191 "tailp" from rtx * to rtx_insn **.
3192
3193 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3194 from rtx to rtx_insn *.
3195 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3196 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3197 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3198 rtx to rtx_insn *.
3199 * modulo-sched.c (const_iteration_count): Strengthen return type
3200 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3201 use of NULL_RTX with NULL when working with insns.
3202 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3203 to rtx_insn *.
3204 (sms_schedule): Likewise.
3205 * sched-rgn.c (init_ready_list): Likewise, also for locals
3206 "src_head" and "src_next_tail".
3207 (compute_block_dependences): Likewise.
3208 (free_block_dependencies): Likewise.
3209 (debug_rgn_dependencies): Likewise.
3210 (free_rgn_deps): Likewise.
3211 (compute_priorities): Likewise.
3212 (schedule_region): Likewise.
3213 * sel-sched.c (find_ebb_boundaries): Likewise.
3214
3215 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3216 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3217
3218 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3219
3220 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3221 from rtx to rtx_insn *.
3222 (new_seginfo): Likewise for param "insn".
3223 (create_pre_exit): Likewise for locals "last_insn",
3224 "before_return_copy", "return_copy".
3225 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3226 "mode_set".
3227
3228 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3229
3230 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3231 from rtx to rtx_insn *.
3232 (lra_push_insn): Likewise for 1st param.
3233 (lra_push_insn_and_update_insn_regno_info): Likewise.
3234 (lra_pop_insn): Likewise for return type.
3235 (lra_invalidate_insn_data): Likewise for 1st param.
3236 (lra_set_insn_deleted): Likewise.
3237 (lra_delete_dead_insn): Likewise.
3238 (lra_process_new_insns): Likewise for first 3 params.
3239 (lra_set_insn_recog_data): Likewise for 1st param.
3240 (lra_update_insn_recog_data): Likewise.
3241 (lra_set_used_insn_alternative): Likewise.
3242 (lra_invalidate_insn_regno_info): Likewise.
3243 (lra_update_insn_regno_info): Likewise.
3244 (lra_former_scratch_operand_p): Likewise.
3245 (lra_eliminate_regs_1): Likewise.
3246 (lra_get_insn_recog_data): Likewise.
3247
3248 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3249 rtx to rtx_insn *.
3250
3251 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3252 "mv1" and "mv2".
3253 (substitute_within_insn): New.
3254 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3255 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3256 Replace call to "substitute" with call to substitute_within_insn.
3257
3258 * lra-constraints.c (curr_insn): Strengthen from rtx to
3259 rtx_insn *.
3260 (get_equiv_with_elimination): Likewise for param "insn".
3261 (match_reload): Strengthen params "before" and "after" from rtx *
3262 to rtx_insn **.
3263 (emit_spill_move): Likewise for return type. Add a checked cast
3264 to rtx_insn * on result of gen_move_insn for now.
3265 (check_and_process_move): Likewise for local "before". Replace
3266 NULL_RTX with NULL when referring to insns.
3267 (process_addr_reg): Strengthen params "before" and "after" from
3268 rtx * to rtx_insn **.
3269 (insert_move_for_subreg): Likewise.
3270 (simplify_operand_subreg): Strengthen locals "before" and "after"
3271 from rtx to rtx_insn *.
3272 (process_address_1): Strengthen params "before" and "after" from
3273 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3274 rtx to rtx_insn *.
3275 (process_address): Strengthen params "before" and "after" from
3276 rtx * to rtx_insn **.
3277 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3278 (curr_insn_transform): Strengthen locals "before" and "after"
3279 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3280 to insns.
3281 (loc_equivalence_callback): Update cast of "data", changing
3282 resulting type from rtx to rtx_insn *.
3283 (substitute_pseudo_within_insn): New.
3284 (inherit_reload_reg): Strengthen param "insn" from rtx to
3285 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3286 NULL when referring to insns. Add a checked cast to rtx_insn *
3287 when using usage_insn to invoke lra_update_insn_regno_info.
3288 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3289 likewise for locals "restore", "save". Add checked casts to
3290 rtx_insn * when using usage_insn to invoke
3291 lra_update_insn_regno_info and lra_process_new_insns. Replace
3292 NULL_RTX with NULL when referring to insns.
3293 (split_if_necessary): Strengthen param "insn" from rtx to
3294 rtx_insn *.
3295 (update_ebb_live_info): Likewise for params "head", "tail" and local
3296 "prev_insn".
3297 (get_last_insertion_point): Likewise for return type and local "insn".
3298 (get_live_on_other_edges): Likewise for local "last".
3299 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3300 "prev_insn", "next_insn", "restore".
3301 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3302 (undo_optional_reloads): Likewise for local "insn".
3303
3304 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3305 "insn".
3306 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3307 insns.
3308 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3309 rtx_insn *.
3310 (spill_pseudos): Likewise for local "insn".
3311 (init_elimination): Likewise.
3312 (process_insn_for_elimination): Likewise for param "insn".
3313
3314 * lra-lives.c (curr_insn): Likewise.;
3315
3316 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3317 (remove_pseudos): Likewise for param "insn".
3318 (spill_pseudos): Likewise for local "insn".
3319 (lra_final_code_change): Likewise for locals "insn", "curr".
3320
3321 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3322 (lra_set_insn_deleted): Likewise.
3323 (lra_delete_dead_insn): Likewise, and for local "prev".
3324 (new_insn_reg): Likewise for param "insn".
3325 (lra_set_insn_recog_data): Likewise.
3326 (lra_update_insn_recog_data): Likewise.
3327 (lra_set_used_insn_alternative): Likewise.
3328 (get_insn_freq): Likewise.
3329 (invalidate_insn_data_regno_info): Likewise.
3330 (lra_invalidate_insn_regno_info): Likewise.
3331 (lra_update_insn_regno_info): Likewise.
3332 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3333 vec<rtx_insn *>.
3334 (lra_push_insn_1): Strengthen param "insn" from rtx to
3335 rtx_insn *.
3336 (lra_push_insn): Likewise.
3337 (lra_push_insn_and_update_insn_regno_info): Likewise.
3338 (lra_pop_insn): Likewise for return type and local "insn".
3339 (push_insns): Likewise for params "from", "to", and local "insn".
3340 (setup_sp_offset): Likewise for params "from", "last" and locals
3341 "before", "insn".
3342 (lra_process_new_insns): Likewise for params "insn", "before",
3343 "after" and local "last".
3344 (struct sloc): Likewise for field "insn".
3345 (lra_former_scratch_operand_p): Likewise for param "insn".
3346 (remove_scratches): Likewise for locals "insn", "last".
3347 (check_rtl): Likewise for local "insn".
3348 (add_auto_inc_notes): Likewise for param "insn".
3349 (update_inc_notes): Likewise for local "insn".
3350 (lra): Replace NULL_RTX with NULL when referring to insn.
3351
3352 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3353
3354 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3355 to rtx_insn *.
3356 (resolve_reg_notes): Likewise.
3357 (resolve_simple_move): Likewise for return type, param "insn", and
3358 locals "insns", "minsn".
3359 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3360 (resolve_use): Likewise.
3361 (resolve_debug): Likewise.
3362 (find_decomposable_shift_zext): Likewise.
3363 (resolve_shift_zext): Likewise for return type, param "insn", and
3364 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3365 (decompose_multiword_subregs): Likewise for local "insn",
3366 "orig_insn", "decomposed_shift", "end".
3367
3368 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3369
3370 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3371 param "insns" from rtx to rtx_insn *.
3372
3373 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3374 rtx to rtx_insn *.
3375 (struct iv_to_split): Likewise.
3376 (loop_exit_at_end_p): Likewise for local "insn".
3377 (split_edge_and_insert): Likewise for param "insns".
3378 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3379 and locals "seq", "jump".
3380 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3381 "branch_code"; update invocations of compare_and_jump_seq to
3382 eliminate NULL_RTX in favor of NULL.
3383 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3384 rtx to rtx_insn *.
3385 (reset_debug_uses_in_loop): Likewise.
3386 (analyze_insn_to_expand_var): Likewise for param "insn".
3387 (analyze_iv_to_split_insn): Likewise.
3388 (analyze_insns_in_loop): Likewise for local "insn".
3389 (insert_base_initialization): Likewise for param
3390 "insn" and local "seq".
3391 (split_iv): Likewise for param "insn" and local "seq".
3392 (expand_var_during_unrolling): Likewise for param "insn".
3393 (insert_var_expansion_initialization): Likewise for local "seq".
3394 (combine_var_copies_in_loop_exit): Likewise.
3395 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3396 "insn".
3397 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3398 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3399 "next".
3400
3401 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3402
3403 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3404 rtx_insn *.
3405 (iv_analyze_result): Likewise.
3406 (iv_analyze_expr): Likewise.
3407 (biv_p): Likewise.
3408
3409 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3410 local "def_insn" from rtx to rtx_insn *.
3411 (get_biv_step_1): Likewise for local "insn".
3412 (iv_analyze_expr): Likewise for param "insn".
3413 (iv_analyze_def): Likewise for local "insn".
3414 (iv_analyze_op): Likewise for param "insn".
3415 (iv_analyze): Likewise.
3416 (iv_analyze_result): Likewise.
3417 (biv_p): Likewise.
3418 (suitable_set_for_replacement): Likewise.
3419 (simplify_using_initial_values): Likewise for local "insn".
3420 (iv_number_of_iterations): Likewise for param "insn".
3421 (check_simple_exit): Add checked cast to rtx_insn when invoking
3422 iv_number_of_iterations for now (until get_condition is
3423 strengthened).
3424
3425 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3426 "insn" from rtx to rtx_insn *.
3427 (analyze_insns_in_loop): Likewise for local "insn".
3428
3429 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3430
3431 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3432 to rtx_insn *.
3433 (struct invariant): Likewise.
3434 (hash_invariant_expr_1): Likewise for param "insn".
3435 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3436 (find_exits): Likewise for local "insn".
3437 (create_new_invariant): Likewise for param "insn".
3438 (check_dependencies): Likewise.
3439 (find_invariant_insn): Likewise.
3440 (record_uses): Likewise.
3441 (find_invariants_insn): Likewise.
3442 (find_invariants_bb): Likewise for local "insn".
3443 (get_pressure_class_and_nregs): Likewise for param "insn".
3444 (calculate_loop_reg_pressure): Likewise for local "insn".
3445
3446 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3447
3448 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3449 to rtx_insn *.
3450 (add_test): Likewise for locals "seq", "jump".
3451 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3452
3453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3454
3455 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3456 rtx_insn *.
3457 (rebuild_jump_labels_chain): Likewise for param "chain".
3458
3459 * cfgexpand.c (pass_expand::execute): Add checked cast to
3460 rtx_insn * when calling rebuild_jump_labels_chain in region where
3461 we know e->insns.r is non-NULL.
3462
3463 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3464 rtx_insn *.
3465 (rebuild_jump_labels): Likewise.
3466 (rebuild_jump_labels_chain): Likewise for param "chain".
3467 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3468 (init_label_info): Likewise for param "f".
3469 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3470 "prev_nonjump_insn".
3471 (mark_all_labels): Likewise for param "f" and locals "insn",
3472 "prev_nonjump_insn".
3473
3474 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3475
3476 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3477 from rtx to rtx_insn *insn.
3478 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3479 (ira_add_allocno_copy): Likewise.
3480 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3481 rtx to rtx_insn *.
3482 (ira_create_copy): Likewise.
3483 (ira_add_allocno_copy): Likewise.
3484 (create_bb_allocnos): Likewise for local "insn".
3485 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3486 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3487 process_regs_for_copy for rtx_insn * param.
3488 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3489 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3490 process_regs_for_copy for rtx_insn * param.
3491 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3492 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3493 (record_operand_costs): Likewise.
3494 (scan_one_insn): Likewise for return type, and for param "insn".
3495 (process_bb_for_costs): Likewise for local "insn".
3496 (process_bb_node_for_hard_reg_moves): Likewise.
3497 * ira-emit.c (struct move): Likewise for field "insn".
3498 (create_move): Eliminate use of NULL_RTX when dealing with an
3499 rtx_insn *.
3500 (emit_move_list): Strengthen return type and locals "result",
3501 "insn" from rtx to rtx_insn *insn.
3502 (emit_moves): Likewise for locals "insns", "tmp".
3503 (ira_emit): Likewise for local "insn".
3504 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3505 "insn".
3506 (find_call_crossed_cheap_reg): Likewise.
3507 (process_bb_node_lives): Likewise for local "insn".
3508 * ira.c (decrease_live_ranges_number): Likewise.
3509 (compute_regs_asm_clobbered): Likewise.
3510 (build_insn_chain): Likewise.
3511 (find_moveable_pseudos): Likewise, also locals "def_insn",
3512 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3513 to rtx_insn **. Add a checked cast when assigning from
3514 "closest_use" into closest_uses array in a region where we know
3515 it's a non-NULL insn.
3516 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3517 to rtx_insn *.
3518 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3519 "last_interesting_insn", "uin".
3520 (move_unallocated_pseudos): Likewise for locals "def_insn",
3521 "move_insn", "newinsn".
3522
3523 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3524
3525 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3526 Strengthen locals "done_label", "do_error" from rtx to
3527 rtx_code_label *.
3528 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3529 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3530 rtx_code_label *.
3531 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3532 "done_label", "do_error" to rtx_code_label * and local "last" to
3533 rtx_insn *.
3534 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3535 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3536 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3537 "after_lopart_neg", "do_overflow", "hipart_different" to
3538 rtx_code_label * and local "last" to rtx_insn *.
3539
3540 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3541
3542 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3543 "insn" and "move_insn" from rtx to rtx_insn *.
3544
3545 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3546
3547 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3548 rtx_insn *.
3549 (cheap_bb_rtx_cost_p): Likewise.
3550 (first_active_insn): Likewise for return type and local "insn".
3551 (last_active_insn): Likewise for return type and locals "insn",
3552 "head".
3553 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3554 "insn_b".
3555 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3556 "seq".
3557 (noce_try_move): Likewise for local "seq".
3558 (noce_try_store_flag): Likewise.
3559 (noce_try_store_flag_constants): Likewise.
3560 (noce_try_addcc): Likewise.
3561 (noce_try_store_flag_mask): Likewise.
3562 (noce_try_cmove): Likewise.
3563 (noce_try_minmax): Likewise.
3564 (noce_try_abs): Likewise.
3565 (noce_try_sign_mask): Likewise.
3566 (noce_try_bitop): Likewise.
3567 (noce_can_store_speculate_p): Likewise for local "insn".
3568 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3569 seq".
3570 (check_cond_move_block): Likewise for local "insn".
3571 (cond_move_convert_if_block): Likewise.
3572 (cond_move_process_if_block): Likewise for locals "seq",
3573 "loc_insn".
3574 (noce_find_if_block): Likewise for local "jump".
3575 (merge_if_block): Likewise for local "last".
3576 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3577 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3578 (block_has_only_trap): Likewise for return type and local "trap".
3579 (find_if_case_1): Likewise for local "jump".
3580 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3581 "insn".
3582
3583 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3584
3585 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3586 "last_insn", "loop_end" from rtx to rtx_insn *.
3587
3588 * hw-doloop.c (scan_loop): Likewise for local "insn".
3589 (discover_loop): Likewise for param "tail_insn".
3590 (discover_loops): Likewise for local "tail".
3591
3592 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3593 cast to rtx_insn * when assigning from an rtx local to a
3594 hwloop_info's "last_insn" field.
3595
3596 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3597
3598 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3599 (add_delay_dependencies): Strengthen local "pro" from rtx to
3600 rtx_insn *.
3601 (recompute_todo_spec): Likewise.
3602 (dep_cost_1): Likewise for locals "insn", "used".
3603 (schedule_insn): Likewise for local "dbg".
3604 (schedule_insn): Likewise for locals "pro", "next".
3605 (unschedule_insns_until): Likewise for local "con".
3606 (restore_pattern): Likewise for local "next".
3607 (estimate_insn_tick): Likewise for local "pro".
3608 (resolve_dependencies): Likewise for local "next".
3609 (fix_inter_tick): Likewise.
3610 (fix_tick_ready): Likewise for local "pro".
3611 (add_to_speculative_block): Likewise for locals "check", "twin",
3612 "pro".
3613 (sched_extend_bb): Likewise for locals "end", "insn".
3614 (init_before_recovery): Likewise for local "x".
3615 (sched_create_recovery_block): Likewise for local "barrier".
3616 (create_check_block_twin): Likewise for local "pro".
3617 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3618 "consumer".
3619 (unlink_bb_notes): Update for change to type of bb_header.
3620 Strengthen locals "prev", "label", "note", "next" from rtx to
3621 rtx_insn *.
3622 (clear_priorities): Likewise for local "pro".
3623
3624 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3625
3626 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3627 rtx_insn *.
3628 (test_insn): Likewise for this global.
3629 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3630 const rtx_insn *.
3631 (oprs_anticipatable_p): Likewise.
3632 (oprs_available_p): Likewise.
3633 (insert_expr_in_table): Strengthen param "insn" from rtx to
3634 rtx_insn *.
3635 (hash_scan_set): Likewise.
3636 (hash_scan_clobber): Likewise.
3637 (hash_scan_call): Likewise.
3638 (hash_scan_insn): Likewise.
3639 (compute_hash_table_work): Likewise for local "insn".
3640 (process_insert_insn): Likewise for return type and local "pat".
3641 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3642 "pat", "pat_end", "maybe_cc0_setter".
3643 (pre_edge_insert): Likewise for local "insn".
3644 (pre_insert_copy_insn): Likewise for param "insn".
3645 (pre_insert_copies): Likewise for local "insn".
3646 (struct set_data): Likewise for field "insn".
3647 (single_set_gcse): Likewise for param "insn".
3648 (gcse_emit_move_after): Likewise.
3649 (pre_delete): Likewise for local "insn".
3650 (update_bb_reg_pressure): Likewise for param "from" and local
3651 "insn".
3652 (should_hoist_expr_to_dom): Likewise for param "from".
3653 (hoist_code): Likewise for local "insn".
3654 (get_pressure_class_and_nregs): Likewise for param "insn".
3655 (calculate_bb_reg_pressure): Likewise for local "insn".
3656 (compute_ld_motion_mems): Likewise.
3657
3658 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3659
3660 * genpeep.c (main): Rename param back from "uncast_ins1" to
3661 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3662 checked cast.
3663
3664 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3665
3666 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3667
3668 PR target/62195
3669 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3670 documentation to state it is only for VSX operations.
3671
3672 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3673 constraint only active if VSX.
3674
3675 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3676 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3677 (lfiwzx): Likewise.
3678
3679 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3680
3681 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3682 Strengthen local "insn" from rtx to rtx_insn *.
3683 (use_killed_between): Likewise for param "target_insn".
3684 (all_uses_available_at): Likewise for param "target_insn" and
3685 local "next".
3686 (update_df_init): Likewise for params "def_insn", "insn".
3687 (update_df): Likewise for param "insn".
3688 (try_fwprop_subst): Likewise for param "def_insn" and local
3689 "insn".
3690 (free_load_extend): Likewise for param "insn".
3691 (forward_propagate_subreg): Likewise for param "def_insn" and
3692 local "use_insn".
3693 (forward_propagate_asm): Likewise for param "def_insn" and local
3694 "use_insn".
3695 (forward_propagate_and_simplify): Likewise for param "def_insn"
3696 and local "use_insn".
3697 (forward_propagate_into): Likewise for locals "def_insn" and
3698 "use_insn".
3699
3700 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3701
3702 * function.c (emit_initial_value_sets): Strengthen local "seq"
3703 from rtx to rtx_insn *.
3704 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3705 local "seq".
3706 (instantiate_virtual_regs): Likewise for local "insn".
3707 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3708 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3709 (expand_function_end): Likewise for locals "insn" and "seq".
3710 (epilogue_done): Likewise for local "insn".
3711 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3712 "last", "trial".
3713 (reposition_prologue_and_epilogue_notes): Likewise for locals
3714 "insn", "last", "note", "first".
3715 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3716 (pass_match_asm_constraints::execute): Likewise for local "insn".
3717
3718 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3719
3720 * output.h (final_scan_insn): Strengthen return type from rtx to
3721 rtx_insn *.
3722 (final_forward_branch_p): Likewise for param.
3723 (current_output_insn): Likewise for this global.
3724
3725 * final.c (rtx debug_insn): Likewise for this variable.
3726 (current_output_insn): Likewise.
3727 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3728 adding "insn" back in as an rtx_insn * with a checked cast, so
3729 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3730 first param.
3731 (compute_alignments): Strengthen local "label" from rtx to
3732 rtx_insn *.
3733 (shorten_branches): Rename param from "first" to "uncast_first",
3734 introducing a new local rtx_insn * "first" using a checked cast to
3735 effectively strengthen "first" from rtx to rtx_insn * without
3736 affecting the type signature. Strengthen locals "insn", "seq",
3737 "next", "label" from rtx to rtx_insn *.
3738 (change_scope): Strengthen param "orig_insn" and local "insn" from
3739 rtx to rtx_insn *.
3740 (final_start_function): Rename param from "first" to "uncast_first",
3741 introducing a new local rtx_insn * "first" using a checked cast to
3742 effectively strengthen "first" from rtx to rtx_insn * without
3743 affecting the type signature. Strengthen local "insn" from rtx to
3744 rtx_insn *.
3745 (dump_basic_block_info): Strengthen param "insn" from rtx to
3746 rtx_insn *.
3747 (final): Rename param from "first" to "uncast_first",
3748 introducing a new local rtx_insn * "first" using a checked cast to
3749 effectively strengthen "first" from rtx to rtx_insn * without
3750 affecting the type signature. Strengthen locals "insn", "next"
3751 from rtx to rtx_insn *.
3752 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3753 rtx_insn *.
3754 (call_from_call_insn): Strengthen param "insn" from rtx to
3755 rtx_call_insn *.
3756 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3757 introducing a new local rtx_insn * "insn" using a checked cast to
3758 effectively strengthen "insn" from rtx to rtx_insn * without
3759 affecting the type signature. Strengthen return type and locals
3760 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3761 now-redundant checked cast to rtx_insn * from both invocations of
3762 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3763 introducing a local "call_insn" for use when invoking
3764 call_from_call_insn.
3765 (notice_source_line): Strengthen param "insn" from rtx to
3766 rtx_insn *.
3767 (leaf_function_p): Likewise for local "insn".
3768 (final_forward_branch_p): Likewise.
3769 (leaf_renumber_regs): Likewise for param "first".
3770 (rest_of_clean_state): Likewise for locals "insn" and "next".
3771 (self_recursive_call_p): Likewise for param "insn".
3772 (collect_fn_hard_reg_usage): Likewise for local "insn".
3773 (get_call_fndecl): Likewise for param "insn".
3774 (get_call_cgraph_rtl_info): Likewise.
3775 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3776 introducing a new local rtx_insn * "insn" using a checked cast to
3777 effectively strengthen "insn" from rtx to rtx_insn * without
3778 affecting the type signature.
3779
3780 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3781 cast when assigning from param "insn" to current_output_insn.
3782 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3783 so that we can assign it back to current_output_insn.
3784
3785 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3786
3787 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3788 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3789 atmxt540s and atmxt540sreva devices.
3790 * config/avr/avr-tables.opt: Regenerate.
3791 * config/avr/t-multilib: Regenerate.
3792 * doc/avr-mmcu.texi: Regenerate.
3793
3794 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3795
3796 * expr.c (convert_move): Strengthen local "insns" from rtx to
3797 rtx_insn *.
3798 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3799 "top_label" from rtx to rtx_code_label *.
3800 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3801 rtx_insn *.
3802 (emit_single_push_insn): Likewise for locals "prev", "last".
3803 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3804 to rtx_code_label *.
3805 (store_constructor): Likewise for locals "loop_start", "loop_end".
3806 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3807 rtx_insn *.
3808 (expand_expr_real_2): Likewise.
3809 (expand_expr_real_1): Strengthen local "label" from rtx to
3810 rtx_code_label *.
3811
3812 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3813
3814 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3815 from rtx to rtx_insn *.
3816 (store_bit_field_1): Likewise.
3817 (extract_bit_field_1): Likewise.
3818 (expand_mult_const): Likewise for local "insns".
3819 (expmed_mult_highpart): Strengthen local "label" from rtx to
3820 rtx_code_label *.
3821 (expand_smod_pow2): Likewise.
3822 (expand_sdiv_pow2): Likewise.
3823 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3824 rtx_insn *. Strengthen locals "label", "label1", "label2",
3825 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3826 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3827 (emit_store_flag): Likewise.
3828 (emit_store_flag_force): Strengthen local "label" from rtx to
3829 rtx_code_label *.
3830 (do_cmp_and_jump): Likewise for param "label".
3831
3832 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3833
3834 * explow.c (force_reg): Strengthen local "insn" from rtx to
3835 rtx_insn *.
3836 (adjust_stack_1): Likewise.
3837 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3838 "final_label", "available_label", "space_available" from rtx to
3839 rtx_code_label *.
3840 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3841 (anti_adjust_stack_and_probe): Likewise.
3842
3843 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3844
3845 * except.h (sjlj_emit_function_exit_after): Strengthen param
3846 "after" from rtx to rtx_insn *. This is only called with
3847 result of get_last_insn (in function.c) so type-change should be
3848 self-contained.
3849
3850 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3851 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3852 to rtx_insn *. These fields are only used from except.c so this
3853 type-change should be self-contained to this patch.
3854
3855 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3856 local "last" from rtx to rtx_insn *.
3857 (dw2_build_landing_pads): Likewise for local "seq".
3858 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3859 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3860 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3861 rtx to rtx_insn *.
3862 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3863 to rtx_insn *.
3864 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3865 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3866 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3867 referring to an insn. Strengthen local "dispatch_label" from
3868 rtx to rtx_code_label *.
3869 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3870 rtx_insn *.
3871 (expand_eh_return): Strengthen local "around_label" from
3872 rtx to rtx_code_label *.
3873 (convert_to_eh_region_ranges): Strengthen locals "iter",
3874 "last_action_insn", "first_no_action_insn",
3875 "first_no_action_insn_before_switch",
3876 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3877
3878 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3879
3880 * dwarf2out.c (last_var_location_insn): Strengthen this variable
3881 from rtx to rtx_insn *.
3882 (cached_next_real_insn): Likewise.
3883 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3884 working with insns.
3885 (dwarf2out_var_location): Strengthen locals "next_real",
3886 "next_note", "expected_next_loc_note", "last_start", "insn" from
3887 rtx to rtx_insn *.
3888
3889 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3890
3891 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3892 from rtx to rtx_insn *.
3893 (create_pseudo_cfg): Likewise for local "insn".
3894
3895 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3896
3897 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3898 from rtx to rtx_insn *.
3899 (df_bb_regno_last_def_find): Likewise.
3900
3901 * df-problems.c (df_rd_bb_local_compute): Likewise.
3902 (df_lr_bb_local_compute): Likewise.
3903 (df_live_bb_local_compute): Likewise.
3904 (df_chain_remove_problem): Likewise.
3905 (df_chain_create_bb): Likewise.
3906 (df_word_lr_bb_local_compute): Likewise.
3907 (df_remove_dead_eq_notes): Likewise for param "insn".
3908 (df_note_bb_compute): Likewise for local "insn".
3909 (simulate_backwards_to_point): Likewise.
3910 (df_md_bb_local_compute): Likewise.
3911
3912 * df-scan.c (df_scan_free_bb_info): Likewise.
3913 (df_scan_start_dump): Likewise.
3914 (df_scan_start_block): Likewise.
3915 (df_install_ref_incremental): Likewise for local "insn".
3916 (df_insn_rescan_all): Likewise.
3917 (df_reorganize_refs_by_reg_by_insn): Likewise.
3918 (df_reorganize_refs_by_insn_bb): Likewise.
3919 (df_recompute_luids): Likewise.
3920 (df_bb_refs_record): Likewise.
3921 (df_update_entry_exit_and_calls): Likewise.
3922 (df_bb_verify): Likewise.
3923
3924 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3925
3926 * ddg.h (struct ddg_node): Strengthen fields "insn" and
3927 "first_note" from rtx to rtx_insn *.
3928 (get_node_of_insn): Likewise for param 2 "insn".
3929 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3930
3931 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3932 rtx_insn *.
3933 (mem_write_insn_p): Likewise.
3934 (mem_access_insn_p): Likewise.
3935 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3936 (def_has_ccmode_p): Likewise for param "insn".
3937 (add_cross_iteration_register_deps): Likewise for locals
3938 "def_insn" and "use_insn".
3939 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3940 (build_intra_loop_deps): Likewise for local "src_insn".
3941 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3942 to rtx_insn *.
3943 (get_node_of_insn): Likewise for param "insn".
3944
3945 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3946
3947 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3948 (deletable_insn_p): Strengthen param "insn" from rtx to
3949 rtx_insn *. Add checked cast to rtx_call_insn when invoking
3950 find_call_stack_args, since this is guarded by CALL_P (insn).
3951 (marked_insn_p): Strengthen param "insn" from rtx to
3952 rtx_insn *.
3953 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
3954 invoking find_call_stack_args, since this is guarded by
3955 CALL_P (insn).
3956 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3957 rtx_insn *; we know this is an insn since this was called by
3958 mark_nonreg_stores.
3959 (mark_nonreg_stores_2): Likewise.
3960 (mark_nonreg_stores): Strengthen param "insn" from rtx to
3961 rtx_insn *.
3962 (find_call_stack_args): Strengthen param "call_insn" from rtx to
3963 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3964 to rtx_insn *.
3965 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3966 from rtx to rtx_insn *.
3967 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3968 "next", "ref_insn".
3969 (delete_unmarked_insns): Likewise for locals "insn", "next".
3970 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3971 (mark_reg_dependencies): Likewise for param "insn".
3972 (rest_of_handle_ud_dce): Likewise for local "insn".
3973 (word_dce_process_block): Likewise.
3974 (dce_process_block): Likewise.
3975
3976 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3977
3978 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3979 from rtx to rtx_insn *.
3980 (struct change_cc_mode_args): Likewise for field "insn".
3981 (this_insn): Strengthen from rtx to rtx_insn *.
3982 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
3983 with insn.
3984 (validate_canon_reg): Strengthen param "insn" from rtx to
3985 rtx_insn *.
3986 (canon_reg): Likewise.
3987 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
3988 dealing with insn.
3989 (record_jump_equiv): Strengthen param "insn" from rtx to
3990 rtx_insn *.
3991 (try_back_substitute_reg): Likewise, also for locals "prev",
3992 "bb_head".
3993 (find_sets_in_insn): Likewise for param "insn".
3994 (canonicalize_insn): Likewise.
3995 (cse_insn): Likewise. Add a checked cast.
3996 (invalidate_from_clobbers): Likewise for param "insn".
3997 (invalidate_from_sets_and_clobbers): Likewise.
3998 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
3999 dealing with insn.
4000 (cse_prescan_path): Strengthen local "insn" from rtx to
4001 rtx_insn *.
4002 (cse_extended_basic_block): Likewise for locals "insn" and
4003 "prev_insn".
4004 (cse_main): Likewise for param "f".
4005 (check_for_label_ref): Likewise for local "insn".
4006 (set_live_p): Likewise for second param ("insn").
4007 (insn_live_p): Likewise for first param ("insn") and for local
4008 "next".
4009 (cse_change_cc_mode_insn): Likewise for first param "insn".
4010 (cse_change_cc_mode_insns): Likewise for first and second params
4011 "start" and "end".
4012 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4013 and "end".
4014 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4015 "cc_src_insn".
4016
4017 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4018 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4019 Anna Tikhonova <anna.tikhonova@intel.com>
4020 Ilya Tocar <ilya.tocar@intel.com>
4021 Andrey Turetskiy <andrey.turetskiy@intel.com>
4022 Ilya Verbin <ilya.verbin@intel.com>
4023 Kirill Yukhin <kirill.yukhin@intel.com>
4024 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4025
4026 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4027 New.
4028 * config/i386/sse.md
4029 (define_mode_iterator VI248_AVX2): Delete.
4030 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4031 (define_mode_iterator VI48_AVX2): Ditto.
4032 (define_insn <shift_insn><mode>3): Delete.
4033 (define_insn "<shift_insn><mode>3<mask_name>" with
4034 VI2_AVX2_AVX512BW): New.
4035 (define_insn "<shift_insn><mode>3<mask_name>" with
4036 VI48_AVX2): Ditto.
4037
4038 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4039 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4040 Anna Tikhonova <anna.tikhonova@intel.com>
4041 Ilya Tocar <ilya.tocar@intel.com>
4042 Andrey Turetskiy <andrey.turetskiy@intel.com>
4043 Ilya Verbin <ilya.verbin@intel.com>
4044 Kirill Yukhin <kirill.yukhin@intel.com>
4045 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4046
4047 * config/i386/sse.md
4048 (define_mode_iterator VI4F_BRCST32x2): New.
4049 (define_mode_attr 64x2_mode): Ditto.
4050 (define_mode_attr 32x2mode): Ditto.
4051 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4052 with VI4F_BRCST32x2): Ditto.
4053 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4054 with V16FI mode iterator): Ditto.
4055 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4056 with V16FI): Ditto.
4057 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4058 with VI8F_BRCST64x2): Ditto.
4059
4060 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4061 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4062 Anna Tikhonova <anna.tikhonova@intel.com>
4063 Ilya Tocar <ilya.tocar@intel.com>
4064 Andrey Turetskiy <andrey.turetskiy@intel.com>
4065 Ilya Verbin <ilya.verbin@intel.com>
4066 Kirill Yukhin <kirill.yukhin@intel.com>
4067 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4068
4069 * config/i386/sse.md
4070 (define_mode_iterator VI8_AVX512VL): New.
4071 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4072
4073 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4074
4075 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4076 (define_mode_iterator V48_AVX512VL): New.
4077 (define_mode_iterator V12_AVX512VL): Ditto.
4078 (define_insn <avx512>_load<mode>_mask): Split into two similar
4079 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4080 Refactor output template.
4081 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4082
4083 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4084
4085 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4086 rtx_insn *.
4087 (reg_available_p): Likewise for param "insn".
4088 (insert_set_in_table): Likewise.
4089 (hash_scan_set): Likewise.
4090 (hash_scan_insn): Likewise.
4091 (make_set_regs_unavailable): Likewise.
4092 (compute_hash_table_work): Likewise for local "insn".
4093 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4094 const rtx_insn *.
4095 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4096 (try_replace_reg): Likewise.
4097 (find_avail_set): Likewise.
4098 (cprop_jump): Likewise for params "setcc", "jump".
4099 (constprop_register): Likewise for param "insn".
4100 (cprop_insn): Likewise.
4101 (do_local_cprop): Likewise.
4102 (local_cprop_pass): Likewise for local "insn".
4103 (bypass_block): Likewise for params "setcc" and "jump".
4104 (bypass_conditional_jumps): Likewise for locals "setcc" and
4105 "insn".
4106 (one_cprop_pass): Likewise for local "insn".
4107
4108 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4109
4110 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4111 from rtx to rtx_insn *.
4112 (struct comparison): Likewise, also for field "prev_clobber".
4113 (conforming_compare): Likewise for param "insn".
4114 (arithmetic_flags_clobber_p): Likewise.
4115 (find_flags_uses_in_insn): Likewise.
4116 (find_comparison_dom_walker::before_dom_children): Likewise for
4117 locals "insn", "next", "last_clobber".
4118 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4119
4120 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4121
4122 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4123 "insn" from rtx to rtx_insn *.
4124 (single_set_for_csa): Likewise for param "insn".
4125 (record_one_stack_ref): Likewise.
4126 (try_apply_stack_adjustment): Likewise.
4127 (struct record_stack_refs_data): Likewise for field "insn".
4128 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4129 (prev_active_insn_bb): Likewise for return type and param "insn".
4130 (next_active_insn_bb): Likewise.
4131 (force_move_args_size_note): Likewise for params "prev" and "last"
4132 and locals "test", "next_candidate", "prev_candidate".
4133 (combine_stack_adjustments_for_block): Strengthen locals
4134 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4135 rtx_insn *.
4136
4137 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4138
4139 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4140 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4141 (subst_insn): Likewise for this variable.
4142 (added_links_insn): Likewise.
4143 (struct insn_link): Likewise for field "insn".
4144 (alloc_insn_link): Likewise for param "insn".
4145 (struct undobuf): Likewise for field "other_insn".
4146 (find_single_use): Likewise for param "insn" and local "next".
4147 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4148 (delete_noop_moves): Likewise for locals "insn", "next".
4149 (create_log_links): Likewise for locals "insn", "use_insn".
4150 Strengthen local "next_use" from rtx * to rtx_insn **.
4151 (insn_a_feeds_b): Likewise for params "a", "b".
4152 (combine_instructions): Likewise for param "f" and locals "insn",
4153 "next", "prev", "first", "last_combined_insn", "link", "link1",
4154 "temp". Replace use of NULL_RTX with NULL when referring to
4155 insns.
4156 (setup_incoming_promotions): Likewise for param "first"
4157 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4158 (can_combine_p): Likewise for params "insn", "i3", "pred",
4159 "pred2", "succ", "succ2" and for local "p".
4160 (combinable_i3pat): Likewise for param "i3".
4161 (cant_combine_insn_p): Likewise for param "insn".
4162 (likely_spilled_retval_p): Likewise.
4163 (adjust_for_new_dest): Likewise.
4164 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4165 (try_combine): Likewise for return type and for params "i3", "i2",
4166 "i1", "i0", "last_combined_insn", and for locals "insn",
4167 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4168 "i0_insn". Eliminate local "tem" in favor of new locals
4169 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4170 checked cast for now to rtx_insn * on the return type of
4171 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4172 insns.
4173 (find_split_point): Strengthen param "insn" from rtx to
4174 rtx_insn *.
4175 (simplify_set): Likewise for local "other_insn".
4176 (recog_for_combine): Likewise for param "insn".
4177 (record_value_for_reg): Likewise.
4178 (record_dead_and_set_regs_1): Likewise for local
4179 "record_dead_insn".
4180 (record_dead_and_set_regs): Likewise for param "insn".
4181 (record_promoted_value): Likewise.
4182 (check_promoted_subreg): Likewise.
4183 (get_last_value_validate): Likewise.
4184 (reg_dead_at_p): Likewise.
4185 (move_deaths): Likewise for param "to_insn".
4186 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4187 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4188 in favor of new locals "tem_note" and "tem_insn", the latter being
4189 an rtx_insn *.
4190 (distribute_links): Strengthen locals "place", "insn" from rtx to
4191 rtx_insn *.
4192
4193 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4194
4195 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4196 than a const_rtx.
4197 (can_delete_label_p): Require a const rtx_code_label * rather than
4198 a const_rtx.
4199 (delete_insn): Add checked cast to rtx_code_label * when we know
4200 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4201 rtx to rtx_insn *.
4202 (delete_insn_chain): Strengthen locals "prev" and "current" from
4203 rtx to rtx_insn *. Add a checked cast when assigning from
4204 "finish" (strengthening the params will come later). Add a
4205 checked cast to rtx_note * in region where we know
4206 NOTE_P (current).
4207 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4208 rtx_insn *.
4209 (compute_bb_for_insn): Likewise.
4210 (free_bb_for_insn): Likewise for local "insn".
4211 (compute_bb_for_insn): Likewise.
4212 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4213 local "insn" from rtx to rtx_insn *
4214 (flow_active_insn_p): Require a const rtx_insn * rather than a
4215 const_rtx.
4216 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4217 rtx_insn *.
4218 (can_fallthru): Likewise for locals "insn" and "insn2".
4219 (bb_note): Likewise for local "note".
4220 (first_insn_after_basic_block_note): Likewise for local "note" and
4221 for return type.
4222 (rtl_split_block): Likewise for locals "insn" and "next".
4223 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4224 "end".
4225 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4226 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4227 "prev", "tmp".
4228 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4229 them), "kill_from", "barrier", "new_insn".
4230 (patch_jump_insn): Likewise for params "insn", "old_label".
4231 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4232 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4233 "old_label", "new_label".
4234 (rtl_tidy_fallthru_edge): Likewise for local "q".
4235 (rtl_split_edge): Likewise for locals "before", "last".
4236 (commit_one_edge_insertion): Likewise for locals "before",
4237 "after", "insns", "tmp", "last", adding a checked cast where
4238 currently necessary.
4239 (commit_edge_insertions): Likewise.
4240 (rtl_dump_bb): Likewise for locals "insn", "last".
4241 (print_rtl_with_bb): Likewise for local "x".
4242 (rtl_verify_bb_insns): Likewise for local "x".
4243 (rtl_verify_bb_pointers): Likewise for local "insn".
4244 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4245 "head", "end".
4246 (rtl_verify_fallthru): Likewise for local "insn".
4247 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4248 (purge_dead_edges): Likewise for local "insn".
4249 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4250 (skip_insns_after_block): Likewise for return type and for locals
4251 "insn", "last_insn", "next_head", "prev".
4252 (record_effective_endpoints): Likewise for locals "next_insn",
4253 "insn", "end".
4254 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4255 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4256 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4257 (duplicate_insn_chain): For now, add checked cast from rtx to
4258 rtx_insn * when returning insn.
4259 (cfg_layout_duplicate_bb): Likewise for local "insn".
4260 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4261 "prev", "remaints".
4262 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4263 (rtl_block_empty_p): Likewise.
4264 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4265 "split_point", "last".
4266 (rtl_block_ends_with_call_p): Likewise for local "insn".
4267 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4268 const rtx_insn *.
4269 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4270 "split_at_insn" from rtx to rtx_insn *.
4271 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4272 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4273 to const rtx_insn *.
4274 (rtl_account_profile_record): Likewise.
4275
4276 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4277
4278 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4279 rtx to rtx_insn *.
4280 (average_num_loop_insns): Likewise.
4281 (init_set_costs): Likewise for local "seq".
4282 (seq_cost): Likewise for param "seq", from const_rtx to const
4283 rtx_insn *.
4284
4285 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4286
4287 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4288 rtx to rtx_insn *.
4289
4290 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4291
4292 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4293 "f1" and "f2" from rtx * to rtx_insn **.
4294 (flow_find_head_matching_sequence): Likewise.
4295
4296 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4297 "cbranch_insn" from rtx to rtx_insn *.
4298 (thread_jump): Likewise for local "insn".
4299 (try_forward_edges): Likewise for local "last".
4300 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4301 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4302 "real_b_end".
4303 (can_replace_by): Likewise for params "i1", "i2".
4304 (old_insns_match_p): Likewise.
4305 (merge_notes): Likewise.
4306 (walk_to_nondebug_insn): Likewise for param "i1".
4307 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4308 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4309 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4310 (flow_find_head_matching_sequence): Strengthen params "f1" and
4311 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4312 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4313 rtx_insn *.
4314 (outgoing_edges_match): Likewise for locals "last1", "last2".
4315 (try_crossjump_to_edge): Likewise for local "insn".
4316 Replace call to for_each_rtx with for_each_rtx_in_insn.
4317
4318 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4319 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4320 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4321 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4322 (try_optimize_cfg): Strengthen local "last" from rtx to
4323 rtx_insn *.
4324 (delete_dead_jumptables): Likewise for locals "insn", "next",
4325 "label".
4326
4327 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4328 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4329 "rtx else_first_tail", to reflect the basic-block.h changes above.
4330
4331 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4332
4333 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4334 rtx_insn *.
4335 (purge_dead_tablejump_edges): Likewise.
4336 (find_bb_boundaries): Likewise for locals "insn", "end",
4337 "flow_transfer_insn".
4338
4339 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4340
4341 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4342 "ins" and "prev" from rtx to rtx_insn *.
4343
4344 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4345
4346 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4347 rtx_insn *.
4348 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4349 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4350 "scan_start".
4351 (load_register_parameters): Likewise for local "before_arg".
4352 (check_sibcall_argument_overlap): Likewise for param "insn".
4353 (expand_call): Likewise for locals "normal_call_insns",
4354 "tail_call_insns", "insns", "before_call", "after_args",
4355 "before_arg", "last", "prev". Strengthen one of the "last" from
4356 rtx to rtx_call_insn *.
4357 (fixup_tail_calls): Strengthen local "insn" from rtx to
4358 rtx_insn *.
4359 (emit_library_call_value_1): Likewise for locals "before_call" and
4360 "last".
4361
4362 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4363
4364 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4365 and "last" from rtx to rtx_insn *.
4366 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4367 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4368 rtx_call_insn *.
4369 (expand_errno_check): Strengthen local "lab" from rtx to
4370 rtx_code_label *.
4371 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4372 rtx_insn *.
4373 (expand_builtin_mathfn_2): Likewise.
4374 (expand_builtin_mathfn_ternary): Likewise.
4375 (expand_builtin_mathfn_3): Likewise.
4376 (expand_builtin_interclass_mathfn): Likewise for local "last".
4377 (expand_builtin_int_roundingfn): Likewise for local "insns".
4378 (expand_builtin_int_roundingfn_2): Likewise.
4379 (expand_builtin_strlen): Likewise for local "before_strlen".
4380 (expand_builtin_strncmp): Likewise for local "seq".
4381 (expand_builtin_signbit): Likewise for local "last".
4382 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4383 from rtx to rtx_code_label *.
4384 (expand_stack_restore): Strengthen local "prev" from rtx to
4385 rtx_insn *.
4386
4387 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4388
4389 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4390 to rtx_insn *.
4391 (struct btr_def_s): Likewise.
4392 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4393 const rtx_insn *.
4394 (add_btr_def): Likewise.
4395 (new_btr_user): Likewise.
4396 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4397 rtx to rtx_insn *.
4398 (link_btr_uses): Likewise.
4399 (move_btr_def): Likewise for locals "insp", "old_insn",
4400 "new_insn". Add checked cast to rtx_insn * for now on result of
4401 gen_move_insn.
4402 (can_move_up): Strengthen param "insn" from const_rtx to
4403 const rtx_insn *.
4404
4405 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4406
4407 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4408 rtx_insn *.
4409 (get_uncond_jump_length): Likewise for locals "label", "jump".
4410 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4411 "jump", "insn".
4412 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4413 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4414 (find_jump_block): Likewise for local "insn".
4415 (fix_crossing_conditional_branches): Likewise for locals
4416 "old_jump", "new_jump".
4417 (fix_crossing_unconditional_branches): Likewise for locals
4418 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4419 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4420
4421 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4422
4423 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4424 rtx to rtx_insn *.
4425 (struct mem_insn): Likewise for field "insn".
4426 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4427 (reg_next_inc_use): Likewise.
4428 (reg_next_def): Likewise.
4429 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4430 from rtx to rtx_insn *.
4431 (move_insn_before): Likewise for param "next_insn" and local "insns".
4432 (attempt_change): Likewise for local "mov_insn".
4433 (try_merge): Likewise for param "last_insn".
4434 (get_next_ref): Likewise for return type and local "insn".
4435 Strengthen param "next_array" from rtx * to rtx_insn **.
4436 (parse_add_or_inc): Strengthen param "insn" from rtx to
4437 rtx_insn *.
4438 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4439 the latter).
4440 (merge_in_block): Likewise for locals "insn", "curr",
4441 "other_insn".
4442 (pass_inc_dec::execute): Update allocations of the arrays to
4443 reflect the stronger types.
4444
4445 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4446
4447 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4448 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4449 from rtx to rtx_code_label *.
4450
4451 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4452
4453 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4454 to rtx_insn *.
4455
4456 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4457
4458 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4459 generated a warning and prevented bootstrapping the compiler.
4460
4461 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4462
4463 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4464 rtx_insn *.
4465
4466 * jump.c (delete_related_insns): Likewise, also for locals "next"
4467 and "prev".
4468
4469 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4470
4471 * genautomata.c (output_internal_insn_latency_func): When writing
4472 the function "internal_insn_latency" to insn-automata.c,
4473 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4474 allowing the optional guard function of (define_bypass) clauses to
4475 expect a pair of rtx_insn *, rather than a pair of rtx.
4476 (output_insn_latency_func): When writing the function
4477 "insn_latency", add an "uncast_" prefix to params "insn" and
4478 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4479 using checked casts from the params, thus enabling the above
4480 change to the generated "internal_insn_latency" function.
4481
4482 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4483
4484 PR tree-optimization/62091
4485 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4486 handle correctly arrays.
4487 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4488 inheritance binfos.
4489 (record_known_type): Walk into inner type.
4490 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4491 condition on no type changes.
4492
4493 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4494
4495 * genattrtab.c (write_attr_get): Within the generated get_attr_
4496 functions, rename param "insn" to "uncast_insn" and reintroduce
4497 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4498 is an rtx_insn * within insn-attrtab.c
4499
4500 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4501
4502 * output.h (peephole): Strengthen return type from rtx to
4503 rtx_insn *.
4504 * rtl.h (delete_for_peephole): Likewise for both params.
4505 * genpeep.c (main): In generated "peephole" function, strengthen
4506 return type and local "insn" from rtx to rtx_insn *. For now,
4507 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4508 rtx_insn *, with a checked cast.
4509 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4510 locals "insn", "next", "prev" from rtx to rtx_insn *.
4511
4512 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4513
4514 PR tree-optimization/62112
4515 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4516 * gimple-iterator.h (gsi_replace): Return bool.
4517 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4518 moved from ref_may_alias_global_p.
4519 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4520 New overloads.
4521 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4522 (stmt_kills_ref_p_1): Rename...
4523 (stmt_kills_ref_p): ... to this.
4524 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4525 stmt_kills_ref_p): Declare.
4526 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4527 Move the self-assignment case...
4528 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4529
4530 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4531
4532 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4533
4534 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4535 "after". For now, don't strengthen param "trial", which requires
4536 adding checked casts when returning it.
4537
4538 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4539
4540 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4541 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4542 "var_location" hook from rtx to rtx_insn *.
4543 (debug_nothing_rtx): Delete in favor of...
4544 (debug_nothing_rtx_code_label): New prototype.
4545 (debug_nothing_rtx_rtx): Delete unused prototype.
4546 (debug_nothing_rtx_insn): New prototype.
4547
4548 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4549 invoking debug_hooks->var_location (in two places, one in a NOTE
4550 case of a switch statement, the other guarded by a CALL_P
4551 conditional. Add checked cast to rtx_code_label * when invoking
4552 debug_hooks->label (within CODE_LABEL case of switch statement).
4553
4554 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4555 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4556 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4557 (xcoff_debug_hooks): Likewise.
4558 * debug.c (do_nothing_debug_hooks): Likewise.
4559 (debug_nothing_rtx): Delete in favor of...
4560 (debug_nothing_rtx_insn): New function.
4561 (debug_nothing_rtx_rtx): Delete unused function.
4562 (debug_nothing_rtx_code_label): New function.
4563 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4564 debug_nothing_rtx to debug_nothing_rtx_code_label.
4565 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4566 to rtx_insn *.
4567 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4568 debug_nothing_rtx to debug_nothing_rtx_insn.
4569 (sdbout_label): Strengthen param "insn" from rtx to
4570 rtx_code_label *.
4571 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4572 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4573 "var_location" hook from debug_nothing_rtx to
4574 debug_nothing_rtx_insn.
4575
4576 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4577
4578 * recog.h (insn_output_fn): Update this function typedef to match
4579 the changes below to the generated output functions, strengthening
4580 the 2nd param from rtx to rtx_insn *.
4581
4582 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4583 insn when invoking an output function, to match the new signature
4584 of insn_output_fn with a stronger second param.
4585
4586 * genconditions.c (write_header): In the generated code for
4587 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4588 to match the other changes in this patch.
4589
4590 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4591 the generated "gen_" functions from rtx to rtx_insn * within their
4592 implementations.
4593
4594 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4595 the subfunctions within the generated "recog_", "split", "peephole2"
4596 function trees from rtx to rtx_insn *. For now, the top-level
4597 generated functions ("recog", "split", "peephole2") continue to
4598 take a plain rtx for "insn", to avoid introducing dependencies on
4599 other patches. Rename this 2nd param from "insn" to
4600 "uncast_insn", and reintroduce "insn" as a local variable of type
4601 rtx_insn *, initialized at the top of the generated function with
4602 a checked cast on "uncast_insn".
4603 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4604 the generated "gen_" functions from rtx to rtx_insn * within their
4605 prototypes.
4606
4607 * genoutput.c (process_template): Strengthen the 2nd param within
4608 the generated "output_" functions "insn" from rtx to rtx_insn *.
4609
4610 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4611
4612 * tree-profile.c (tree_profiling): Skip external functions
4613 when doing coverage instrumentation.
4614 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4615
4616 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4617
4618 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4619 (vec_mergee): Likewise.
4620 (vec_mergeo): Likewise.
4621 (vec_cntlz): Likewise.
4622 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4623 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4624 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4625 VMRGEW, and VMRGOW.
4626 * doc/extend.texi: Document various forms of vec_cpsgn,
4627 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4628 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4629 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4630 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4631 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4632
4633 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4634
4635 * config/rs6000/rs6000.c (context.h): New include.
4636 (tree-pass.h): Likewise.
4637 (make_pass_analyze_swaps): New decl.
4638 (rs6000_option_override): Register pass_analyze_swaps.
4639 (swap_web_entry): New subsclass of web_entry_base (df.h).
4640 (special_handling_values): New enum.
4641 (union_defs): New function.
4642 (union_uses): Likewise.
4643 (insn_is_load_p): Likewise.
4644 (insn_is_store_p): Likewise.
4645 (insn_is_swap_p): Likewise.
4646 (rtx_is_swappable_p): Likewise.
4647 (insn_is_swappable_p): Likewise.
4648 (chain_purpose): New enum.
4649 (chain_contains_only_swaps): New function.
4650 (mark_swaps_for_removal): Likewise.
4651 (swap_const_vector_halves): Likewise.
4652 (adjust_subreg_index): Likewise.
4653 (permute_load): Likewise.
4654 (permute_store): Likewise.
4655 (handle_special_swappables): Likewise.
4656 (replace_swap_with_copy): Likewise.
4657 (dump_swap_insn_table): Likewise.
4658 (rs6000_analyze_swaps): Likewise.
4659 (pass_data_analyze_swaps): New pass_data.
4660 (pass_analyze_swaps): New rtl_opt_pass.
4661 (make_pass_analyze_swaps): New function.
4662 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4663
4664 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4665
4666 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4667 type from rtx to rtx_insn *.
4668 (create_copy_of_insn_rtx): Likewise.
4669 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4670 (create_copy_of_insn_rtx): Likewise, also for local "res".
4671
4672 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4673
4674 * rtl.h (find_first_parameter_load): Strengthen return type from
4675 rtx to rtx_insn *.
4676 * rtlanal.c (find_first_parameter_load): Strengthen return type
4677 from rtx to rtx_insn *. Add checked cast for now, to postpone
4678 strengthening the params.
4679
4680 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4681
4682 PR fortran/44054
4683 * diagnostic.c: Set default caret.
4684 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4685 line is needed.
4686 * diagnostic.h (struct diagnostic_context):
4687
4688 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4689
4690 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4691 (sel_bb_head): Strengthen return type insn_t (currently just an
4692 rtx) to rtx_insn *.
4693 (sel_bb_end): Likewise.
4694
4695 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4696 (sel_bb_head): Strengthen return type and local "head" from
4697 insn_t (currently just an rtx) to rtx_insn *.
4698 (sel_bb_end): Likewise for return type.
4699 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4700 working with insn.
4701
4702 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4703
4704 * basic-block.h (get_last_bb_insn): Strengthen return type from
4705 rtx to rtx_insn *.
4706 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4707 end".
4708
4709 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4710
4711 PR fortran/44054
4712 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4713 to here ...
4714 (diagnostic_report_diagnostic): ... from here.
4715 * toplev.c (general_init): Move code to c-family.
4716
4717 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4718
4719 * df.h (web_entry_base): Replace existing struct web_entry with a
4720 new class web_entry_base with only the predecessor member.
4721 (unionfind_root): Remove declaration and move to class member.
4722 (unionfind_union): Remove declaration and move to friend
4723 function.
4724 (union_defs): Remove declaration.
4725 * web.c (web_entry_base::unionfind_root): Modify to be member
4726 function and adjust accessors.
4727 (unionfind_union): Modify to be friend function and adjust
4728 accessors.
4729 (web_entry): New subclass of web_entry_base containing the reg
4730 member.
4731 (union_match_dups): Modify for struct -> class changes.
4732 (union_defs): Likewise.
4733 (entry_register): Likewise.
4734 (pass_web::execute): Likewise.
4735
4736 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4737
4738 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4739 builtin define __VEC_ELEMENT_REG_ORDER__.
4740
4741 2014-08-20 Martin Jambor <mjambor@suse.cz>
4742 Wei Mi <wmi@google.com>
4743
4744 PR ipa/60449
4745 PR middle-end/61776
4746 * tree-ssa-operands.c (update_stmt_operands): Remove
4747 MODIFIED_NORETURN_CALLS.
4748 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4749 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4750 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4751 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4752 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4753 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4754 (gimple_call_set_ctrl_altering): New func.
4755 (gimple_call_ctrl_altering_p): Ditto.
4756 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4757 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4758 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4759 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4760 remove MODIFIED_NORETURN_CALLS.
4761
4762 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4763
4764 * coverage.c (coverage_compute_profile_id): Return non-0;
4765 also handle symbols with unique name.
4766 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4767
4768 2014-08-20 Steve Ellcey <sellcey@mips.com>
4769
4770 PR middle-end/49191
4771 * doc/sourcebuild.texi (non_strict_align): New.
4772
4773 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4774
4775 * cgraphunit.c (ipa_passes, compile): Reshedule
4776 symtab_remove_unreachable_nodes passes; update comments.
4777 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4778 TODO_remove_functions before the pass; the functions ought to be
4779 already removed.
4780 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4781 TODO_remove_functions.
4782 * passes.c (pass_data_early_local_passes): Do not schedule function
4783 removal.
4784 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4785
4786 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4787
4788 PR c/59304
4789 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4790 before setting the option.
4791 * diagnostic.c (diagnostic_classify_diagnostic): Record
4792 command-line status.
4793
4794 2014-08-20 Richard Biener <rguenther@suse.de>
4795
4796 PR lto/62190
4797 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4798 to build uint{16,32,64}_type_node.
4799
4800 2014-08-20 Terry Guo <terry.guo@arm.com>
4801
4802 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4803 with immediate_operand.
4804
4805 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4806
4807 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4808 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4809 NULL.
4810
4811 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4812
4813 PR preprocessor/51303
4814 * incpath.c (remove_duplicates): Use cpp_warning.
4815
4816 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4817
4818 PR c/60975
4819 PR c/53063
4820 * doc/options.texi (CPP): Document it.
4821 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4822 * optc-gen.awk: Handle CPP.
4823 * opth-gen.awk: Likewise.
4824
4825 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4826
4827 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4828 rtx_insn *.
4829 (duplicate_insn_chain): Likewise.
4830 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4831 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4832 checked cast for now (until we can strengthen the params in the
4833 same way).
4834 (duplicate_insn_chain): Likewise.
4835
4836 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4837
4838 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4839 rtx_insn *.
4840 (prev_cc0_setter): Likewise.
4841
4842 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4843 rtx_insn *, adding checked casts for now as necessary.
4844 (prev_cc0_setter): Likewise.
4845
4846 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4847
4848 * expr.h (emit_move_insn): Strengthen return type from rtx to
4849 rtx_insn *.
4850 (emit_move_insn_1): Likewise.
4851 (emit_move_complex_push): Likewise.
4852 (emit_move_complex_parts): Likewise.
4853
4854 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4855 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4856 with insns.
4857 (emit_move_complex_push): Strengthen return type from rtx to
4858 rtx_insn *.
4859 (emit_move_complex): Likewise, also for local "ret".
4860 (emit_move_ccmode): Likewise.
4861 (emit_move_multi_word): Likewise for return type and locals
4862 "last_insn", "seq".
4863 (emit_move_insn_1): Likewise for return type and locals "result",
4864 "ret".
4865 (emit_move_insn): Likewise for return type and local "last_insn".
4866 (compress_float_constant): Likewise.
4867
4868 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4869
4870 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4871 from rtx to rtx_insn *.
4872
4873 * rtl.h (emit_insn_before): Likewise.
4874 (emit_insn_before_noloc): Likewise.
4875 (emit_insn_before_setloc): Likewise.
4876 (emit_jump_insn_before): Likewise.
4877 (emit_jump_insn_before_noloc): Likewise.
4878 (emit_jump_insn_before_setloc): Likewise.
4879 (emit_call_insn_before): Likewise.
4880 (emit_call_insn_before_noloc): Likewise.
4881 (emit_call_insn_before_setloc): Likewise.
4882 (emit_debug_insn_before): Likewise.
4883 (emit_debug_insn_before_noloc): Likewise.
4884 (emit_debug_insn_before_setloc): Likewise.
4885 (emit_label_before): Likewise.
4886 (emit_insn_after): Likewise.
4887 (emit_insn_after_noloc): Likewise.
4888 (emit_insn_after_setloc): Likewise.
4889 (emit_jump_insn_after): Likewise.
4890 (emit_jump_insn_after_noloc): Likewise.
4891 (emit_jump_insn_after_setloc): Likewise.
4892 (emit_call_insn_after): Likewise.
4893 (emit_call_insn_after_noloc): Likewise.
4894 (emit_call_insn_after_setloc): Likewise.
4895 (emit_debug_insn_after): Likewise.
4896 (emit_debug_insn_after_noloc): Likewise.
4897 (emit_debug_insn_after_setloc): Likewise.
4898 (emit_label_after): Likewise.
4899 (emit_insn): Likewise.
4900 (emit_debug_insn): Likewise.
4901 (emit_jump_insn): Likewise.
4902 (emit_call_insn): Likewise.
4903 (emit_label): Likewise.
4904 (gen_clobber): Likewise.
4905 (emit_clobber): Likewise.
4906 (gen_use): Likewise.
4907 (emit_use): Likewise.
4908 (emit): Likewise.
4909
4910 (emit_barrier_before): Strengthen return type from rtx to
4911 rtx_barrier *.
4912 (emit_barrier_after): Likewise.
4913 (emit_barrier): Likewise.
4914
4915 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
4916 from rtx to rtx_insn *. Add checked casts for now when converting
4917 "last" from rtx to rtx_insn *.
4918 (emit_insn_before_noloc): Likewise for return type.
4919 (emit_jump_insn_before_noloc): Likewise.
4920 (emit_call_insn_before_noloc): Likewise.
4921 (emit_debug_insn_before_noloc): Likewise.
4922 (emit_barrier_before): Strengthen return type and local "insn"
4923 from rtx to rtx_barrier *.
4924 (emit_label_before): Strengthen return type from rtx to
4925 rtx_insn *. Add checked cast for now when returning param
4926 (emit_pattern_after_noloc): Strengthen return type from rtx to
4927 rtx_insn *. Add checked casts for now when converting "last" from
4928 rtx to rtx_insn *.
4929 (emit_insn_after_noloc): Strengthen return type from rtx to
4930 rtx_insn *.
4931 (emit_jump_insn_after_noloc): Likewise.
4932 (emit_call_insn_after_noloc): Likewise.
4933 (emit_debug_insn_after_noloc): Likewise.
4934 (emit_barrier_after): Strengthen return type from rtx to
4935 rtx_barrier *.
4936 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4937 Add checked cast for now when converting "label" from rtx to
4938 rtx_insn *.
4939 (emit_pattern_after_setloc): Strengthen return type from rtx to
4940 rtx_insn *. Add checked casts for now when converting "last" from
4941 rtx to rtx_insn *.
4942 (emit_pattern_after): Strengthen return type from rtx to
4943 rtx_insn *.
4944 (emit_insn_after_setloc): Likewise.
4945 (emit_insn_after): Likewise.
4946 (emit_jump_insn_after_setloc): Likewise.
4947 (emit_jump_insn_after): Likewise.
4948 (emit_call_insn_after_setloc): Likewise.
4949 (emit_call_insn_after): Likewise.
4950 (emit_debug_insn_after_setloc): Likewise.
4951 (emit_debug_insn_after): Likewise.
4952 (emit_pattern_before_setloc): Likewise. Add checked casts for now
4953 when converting "last" from rtx to rtx_insn *.
4954 (emit_pattern_before): Strengthen return type from rtx to
4955 rtx_insn *.
4956 (emit_insn_before_setloc): Likewise.
4957 (emit_insn_before): Likewise.
4958 (emit_jump_insn_before_setloc): Likewise.
4959 (emit_jump_insn_before): Likewise.
4960 (emit_call_insn_before_setloc): Likewise.
4961 (emit_call_insn_before): Likewise.
4962 (emit_debug_insn_before_setloc): Likewise.
4963 (emit_debug_insn_before): Likewise.
4964 (emit_insn): Strengthen return type and locals "last", "insn",
4965 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
4966 within cases where we know we have an insn.
4967 (emit_debug_insn): Likewise.
4968 (emit_jump_insn): Likewise.
4969 (emit_call_insn): Strengthen return type and local "insn" from rtx
4970 to rtx_insn *.
4971 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
4972 a checked cast to rtx_insn * for now on "label".
4973 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4974 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4975 (emit_use): Likewise.
4976 (gen_use): Likewise, also for local "seq".
4977 (emit): Likewise for return type and local "insn".
4978 (rtx_insn): Likewise for return type and local "new_rtx".
4979
4980 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4981 from rtx to rtx_barrier *.
4982
4983 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
4984 changed return type from rtx to rtx_insn *, we must update
4985 "emit_fn" type, and this in turn means updating...
4986 (frame_insn): ...this. Strengthen return type from rtx to
4987 rtx_insn *. Introduce a new local "insn" of the appropriate type.
4988
4989 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4990
4991 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
4992 rtx to rtx_jump_table_data *. Also for local.
4993 * rtl.h (emit_jump_table_data): Likewise.
4994
4995 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4996
4997 * basic-block.h (create_basic_block_structure): Strengthen third
4998 param "bb_note" from rtx to rtx_note *.
4999 * rtl.h (emit_note_before): Strengthen return type from rtx to
5000 rtx_note *.
5001 (emit_note_after): Likewise.
5002 (emit_note): Likewise.
5003 (emit_note_copy): Likewise. Also, strengthen param similarly.
5004 * function.h (struct rtl_data): Strengthen field
5005 "x_stack_check_probe_note" from rtx to rtx_note *.
5006
5007 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5008 from rtx to rtx_note *.
5009 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5010 "bb_note" from rtx to rtx_note *.
5011 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5012 when calling emit_note_copy.
5013 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5014 rtx_note *.
5015 (emit_note_after): Likewise.
5016 (emit_note_before): Likewise.
5017 (emit_note_copy): Likewise. Also, strengthen param similarly.
5018 (emit_note): Likewise.
5019 * except.c (emit_note_eh_region_end): Likewise for return type.
5020 Strengthen local "next" from rtx to rtx_insn *.
5021 (convert_to_eh_region_ranges): Strengthen local "note"
5022 from rtx to rtx_note *.
5023 * final.c (change_scope): Likewise.
5024 (reemit_insn_block_notes): Likewise, for both locals named "note".
5025 Also, strengthen local "insn" from rtx to rtx_insn *.
5026 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5027 rtx to rtx_note *.
5028 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5029 strengthen local "seq" from rtx to rtx_insn *.
5030 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5031 to rtx_note *.
5032 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5033 vec<rtx_note *>.
5034 (get_bb_note_from_pool): Strengthen return type from rtx to
5035 rtx_note *.
5036 (sel_create_basic_block): Strengthen local "new_bb_note" from
5037 insn_t to rtx_note *.
5038 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5039 "note" from rtx to rtx_note *.
5040 (emit_notes_in_bb): Likewise.
5041
5042 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5043
5044 * function.h (struct rtl_data): Strengthen field
5045 "x_parm_birth_insn" from rtx to rtx_insn *.
5046 * function.c (struct assign_parm_data_all): Strengthen fields
5047 "first_conversion_insn" and "last_conversion_insn" from rtx to
5048 rtx_insn *.
5049
5050 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5051
5052 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5053 to rtx_insn *; also for local "var_end_seq".
5054 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5055 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5056 "insn".
5057 (expand_gimple_cond): Likewise for locals "last2" and "last".
5058 (mark_transaction_restart_calls): Likewise for local "insn".
5059 (expand_gimple_stmt): Likewise for return type and locals "last"
5060 and "insn".
5061 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5062 (avoid_complex_debug_insns): Likewise for param "insn".
5063 (expand_debug_locations): Likewise for locals "insn", "last",
5064 "prev_insn" and "insn2".
5065 (expand_gimple_basic_block): Likewise for local "last".
5066 (construct_exit_block): Likewise for locals "head", "end",
5067 "orig_end".
5068 (pass_expand::execute): Likewise for locals "var_seq",
5069 "var_ret_seq", "next".
5070
5071 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5072
5073 * asan.h (asan_emit_stack_protection): Strengthen return type from
5074 rtx to rtx_insn *.
5075 * asan.c (asan_emit_stack_protection): Likewise. Add local
5076 "insns" to hold the return value.
5077
5078 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5079
5080 * basic-block.h (bb_note): Strengthen return type from rtx to
5081 rtx_note *.
5082 * sched-int.h (bb_note): Likewise.
5083 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5084
5085 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5086
5087 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5088 rtx_insn *.
5089
5090 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5091 "insn" from rtx to rtx_insn *.
5092 (make_debug_insn_raw): Strengthen return type from rtx to
5093 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5094 (make_jump_insn_raw): Strengthen return type from rtx to
5095 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5096 (make_call_insn_raw): Strengthen return type from rtx to
5097 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5098 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5099 callback from rtx to rtx_insn *; likewise for local "insn" and
5100 "next", adding a checked cast to rtx_insn in the relevant cases of
5101 the switch statement.
5102 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5103 callback from rtx to rtx_insn *.
5104 (emit_pattern_after_setloc): Likewise.
5105 (emit_pattern_after): Likewise.
5106 (emit_pattern_before_setloc): Likewise.
5107 (emit_pattern_before): Likewise.
5108
5109 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5110
5111 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5112 rtx_call_insn *.
5113 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5114 accepting an rtx_insn *.
5115 (last_call_insn): Strengthen return type from rtx to
5116 rtx_call_insn *.
5117
5118 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5119
5120 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5121 "insns" from rtx to rtx_insn *.
5122 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5123 locals "insn" and "prev".
5124
5125 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5126
5127 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5128 rtx_jump_table_data **.
5129
5130 * cfgbuild.c (make_edges): Introduce local "table", using it in
5131 place of "tmp" for jump table data.
5132 (find_bb_boundaries): Strengthen local "table" from rtx to
5133 rtx_jump_table_data *.
5134 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5135 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5136 (try_crossjump_to_edge): Likewise.
5137 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5138 "table".
5139 (patch_jump_insn): Introduce local "table", using it in place of
5140 "tmp" for jump table data.
5141 (force_nonfallthru_and_redirect): Introduce local "table", so that
5142 call to tablejump_p can receive an rtx_jump_table_data **. Update
5143 logic around the call to overwrite "note" appropriately if
5144 tablejump_p returns non-zero.
5145 (get_last_bb_insn): Introduce local "table", using it in place of
5146 "tmp" for jump table data.
5147 * dwarf2cfi.c (create_trace_edges): Likewise.
5148
5149 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5150 from rtx to rtx_jump_table_data *.
5151 (create_fix_barrier): Strengthen local "tmp" from rtx to
5152 rtx_jump_table_data *.
5153 (arm_reorg): Likewise for local "table".
5154
5155 * config/s390/s390.c (s390_chunkify_start): Likewise.
5156
5157 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5158
5159 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5160 rtx to rtx_jump_table_data *.
5161
5162 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5163 rtx_jump_table_data **. Add a checked cast when writing through
5164 the pointer: we know there that local "table" is non-NULL and that
5165 JUMP_TABLE_DATA_P (table) holds.
5166 (label_is_jump_target_p): Introduce local "table", using it in
5167 place of "tmp" for jump table data.
5168
5169 2014-08-19 Marek Polacek <polacek@redhat.com>
5170
5171 PR c++/62153
5172 * doc/invoke.texi: Document -Wbool-compare.
5173
5174 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5175
5176 * rtl.h (entry_of_function): Strengthen return type from rtx to
5177 rtx_insn *.
5178 * cfgrtl.c (entry_of_function): Likewise.
5179
5180 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5181
5182 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5183 rtx_insn *, adding a checked cast for now.
5184 (get_last_insn): Likewise.
5185
5186 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5187
5188 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5189 rtx_code_label *.
5190
5191 * emit-rtl.c (gen_label_rtx): Likewise.
5192
5193 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5194
5195 * rtl.h (previous_insn): Strengthen return type from rtx to
5196 rtx_insn *.
5197 (next_insn): Likewise.
5198 (prev_nonnote_insn): Likewise.
5199 (prev_nonnote_insn_bb): Likewise.
5200 (next_nonnote_insn): Likewise.
5201 (next_nonnote_insn_bb): Likewise.
5202 (prev_nondebug_insn): Likewise.
5203 (next_nondebug_insn): Likewise.
5204 (prev_nonnote_nondebug_insn): Likewise.
5205 (next_nonnote_nondebug_insn): Likewise.
5206 (prev_real_insn): Likewise.
5207 (next_real_insn): Likewise.
5208 (prev_active_insn): Likewise.
5209 (next_active_insn): Likewise.
5210
5211 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5212 rtx_insn *, adding a checked cast.
5213 (previous_insn): Likewise.
5214 (next_nonnote_insn): Likewise.
5215 (next_nonnote_insn_bb): Likewise.
5216 (prev_nonnote_insn): Likewise.
5217 (prev_nonnote_insn_bb): Likewise.
5218 (next_nondebug_insn): Likewise.
5219 (prev_nondebug_insn): Likewise.
5220 (next_nonnote_nondebug_insn): Likewise.
5221 (prev_nonnote_nondebug_insn): Likewise.
5222 (next_real_insn): Likewise.
5223 (prev_real_insn): Likewise.
5224 (next_active_insn): Likewise.
5225 (prev_active_insn): Likewise.
5226
5227 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5228 param "stepfunc" so that it returns an rtx_insn * rather than an
5229 rtx, to track the change to prev_nonnote_insn_bb, which is the
5230 only function this is called with.
5231 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5232
5233 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5234
5235 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5236 assert.
5237
5238 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5239
5240 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5241 (class rtx_nonjump_insn): Likewise.
5242 (class rtx_jump_insn): Likewise.
5243 (class rtx_call_insn): Likewise.
5244 (class rtx_jump_table_data): Likewise.
5245 (class rtx_barrier): Likewise.
5246 (class rtx_code_label): Likewise.
5247 (class rtx_note): Likewise.
5248
5249 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5250 adding the invariant DEBUG_INSN_P (X).
5251 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5252 the invariant NONJUMP_INSN_P (X).
5253 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5254 the invariant JUMP_P (X).
5255 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5256 the invariant CALL_P (X).
5257 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5258 invariant JUMP_TABLE_DATA_P (X).
5259 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5260 invariant BARRIER_P (X).
5261 (class rtx_code_label): New, a subclass of rtx_insn, adding
5262 the invariant LABEL_P (X).
5263 (class rtx_note): New, a subclass of rtx_insn, adding
5264 the invariant NOTE_P(X).
5265 (is_a_helper <rtx_debug_insn *>::test): New.
5266 (is_a_helper <rtx_nonjump_insn *>::test): New.
5267 (is_a_helper <rtx_jump_insn *>::test): New.
5268 (is_a_helper <rtx_call_insn *>::test): New.
5269 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5270 overloaded for both rtx and rtx_insn *.
5271 (is_a_helper <rtx_barrier *>::test): New.
5272 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5273 for both rtx and rtx_insn *.
5274 (is_a_helper <rtx_note *>::test): New.
5275
5276 2014-08-19 Marek Polacek <polacek@redhat.com>
5277
5278 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5279 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5280 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5281 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5282
5283 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5284
5285 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5286 rtx_insn *. To help with transition, for now, convert from an
5287 access macro into a pair of functions: BND_TO, returning an
5288 rtx_insn *, and...
5289 (SET_BND_TO): New function, for use where BND_TO is used as an
5290 lvalue.
5291
5292 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5293 SET_BND_TO.
5294 (BND_TO): New function, adding a checked cast.
5295 (SET_BND_TO): New function.
5296
5297 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5298 SET_BND_TO.
5299 (compute_av_set_on_boundaries): Likewise.
5300
5301 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5302
5303 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5304 destination if it is used in source.
5305 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5306 (*popcount<mode>2_falsedep_1): Likewise.
5307
5308 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5309
5310 PR other/62168
5311 * configure.ac: Set install_gold_as_default to no first.
5312 * configure: Regenerated.
5313
5314 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5315
5316 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5317 "note_list" field will eventually be an rtx_insn *. To help with
5318 transition, for now, convert from an access macro into a pair of
5319 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5320 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5321 used as an lvalue.
5322
5323 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5324 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5325
5326 * sel-sched-ir.c (init_bb): Likewise.
5327 (sel_restore_notes): Likewise.
5328 (move_bb_info): Likewise.
5329 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5330 (SET_BB_NOTE_LIST): New function.
5331
5332 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5333
5334 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5335 field will eventually be an rtx_insn *. To help with transition,
5336 for now, convert from an access macro into a pair of functions:
5337 VINSN_INSN_RTX, returning an rtx_insn *, and...
5338 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5339 is used as an lvalue.
5340
5341 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5342 SET_VINSN_INSN_RTX where it's used as an lvalue.
5343 (VINSN_INSN_RTX): New function.
5344 (SET_VINSN_INSN_RTX): New function.
5345
5346 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5347
5348 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5349 eventually be rtx_insn *, but to help with transition, for now,
5350 convert from an access macro into a pair of functions: DEP_PRO
5351 returning an rtx_insn * and...
5352 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5353 lvalue, returning an rtx&.
5354 (DEP_CON): Analogous changes to DEP_PRO above.
5355 (SET_DEP_CON): Likewise.
5356
5357 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5358 an lvalue to SET_DEP_CON.
5359 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5360 (sd_copy_back_deps): Likewise for DEP_CON.
5361 (DEP_PRO): New function, adding a checked cast for now.
5362 (DEP_CON): Likewise.
5363 (SET_DEP_PRO): New function.
5364 (SET_DEP_CON): Likewise.
5365
5366 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5367
5368 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5369 (extra_options): Add i386/cygwin.opt.
5370 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5371 (CPP_SPEC): Accept -pthread.
5372 (LINK_SPEC): Ditto.
5373 (GOMP_SELF_SPECS): Update comment.
5374 * config/i386/cygwin.opt: New file for -pthread flag.
5375
5376 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5377
5378 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5379 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5380 that we can return an rtx_insn *.
5381
5382 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5383
5384 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5385 when building executables, not DLLs. Add --large-address-aware
5386 under the same conditions.
5387 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5388 when building executables, not DLLs. Add --large-address-aware
5389 under the same conditions when using -m32.
5390
5391 * config/i386/cygwin-stdint.h: Throughout, make type
5392 definitions dependent on target architecture, not host.
5393
5394 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5395
5396 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5397 the return type from rtx to rtx_insn *, which will enable various
5398 conversions in followup patches. For now this is is done by a
5399 checked cast.
5400 (NEXT_INSN): Likewise.
5401 (SET_PREV_INSN): Convert to an inline function. This is intended
5402 for use as an lvalue, and so returns an rtx& to allow in-place
5403 modification.
5404 (SET_NEXT_INSN): Likewise.
5405
5406 2014-07-08 Mark Wielaard <mjw@redhat.com>
5407
5408 PR debug/59051
5409 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5410
5411 2014-08-19 Marek Polacek <polacek@redhat.com>
5412
5413 PR c/61271
5414 * cgraphunit.c (handle_alias_pairs): Fix condition.
5415
5416 2014-08-19 Richard Biener <rguenther@suse.de>
5417
5418 * gimple-fold.c (fold_gimple_assign): Properly build a
5419 null-pointer constant when devirtualizing addresses.
5420
5421 2014-07-07 Mark Wielaard <mjw@redhat.com>
5422
5423 * dwarf2out.c (decl_quals): New function.
5424 (modified_type_die): Take one cv_quals argument instead of two,
5425 one for const and one for volatile.
5426 (add_type_attribute): Likewise.
5427 (generic_parameter_die): Call add_type_attribute with one modifier
5428 argument.
5429 (base_type_for_mode): Likewise.
5430 (add_bounds_info): Likewise.
5431 (add_subscript_info): Likewise.
5432 (gen_array_type_die): Likewise.
5433 (gen_descr_array_type_die): Likewise.
5434 (gen_entry_point_die): Likewise.
5435 (gen_enumeration_type_die): Likewise.
5436 (gen_formal_parameter_die): Likewise.
5437 (gen_subprogram_die): Likewise.
5438 (gen_variable_die): Likewise.
5439 (gen_const_die): Likewise.
5440 (gen_field_die): Likewise.
5441 (gen_pointer_type_die): Likewise.
5442 (gen_reference_type_die): Likewise.
5443 (gen_ptr_to_mbr_type_die): Likewise.
5444 (gen_inheritance_die): Likewise.
5445 (gen_subroutine_type_die): Likewise.
5446 (gen_typedef_die): Likewise.
5447 (force_type_die): Likewise.
5448
5449 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5450
5451 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5452 if unset.
5453 * configure: Regenerate.
5454
5455 2014-08-19 Richard Biener <rguenther@suse.de>
5456
5457 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5458 DECL_EXTERNALs in BLOCKs as non-references.
5459 * tree-streamer-out.c (streamer_write_chain): Likewise.
5460
5461 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5462 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5463 Anna Tikhonova <anna.tikhonova@intel.com>
5464 Ilya Tocar <ilya.tocar@intel.com>
5465 Andrey Turetskiy <andrey.turetskiy@intel.com>
5466 Ilya Verbin <ilya.verbin@intel.com>
5467 Kirill Yukhin <kirill.yukhin@intel.com>
5468 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5469
5470 * config/i386/sse.md
5471 (define_mode_iterator VI48_AVX512F): Delete.
5472 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5473 (define_mode_iterator VI2_AVX512VL): Ditto.
5474 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5475 Delete.
5476 (define_insn
5477 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5478 New.
5479 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5480 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5481 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5482 with VI48_AVX512F_AVX512VL): New.
5483 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5484 with VI2_AVX512VL): Ditto.
5485
5486 2014-08-19 Marek Polacek <polacek@redhat.com>
5487
5488 * doc/invoke.texi: Document -Wc99-c11-compat.
5489
5490 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5491
5492 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5493 for rvalues, and...
5494 (SET_PREV_INSN): New macro, for use as an lvalue.
5495 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5496
5497 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5498 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5499 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5500 (fixup_abnormal_edges): Likewise.
5501 (unlink_insn_chain): Likewise.
5502 (fixup_reorder_chain): Likewise.
5503 (cfg_layout_delete_block): Likewise.
5504 (cfg_layout_merge_blocks): Likewise.
5505 * combine.c (update_cfg_for_uncondjump): Likewise.
5506 * emit-rtl.c (link_insn_into_chain): Likewise.
5507 (remove_insn): Likewise.
5508 (delete_insns_since): Likewise.
5509 (reorder_insns_nobb): Likewise.
5510 (emit_insn_after_1): Likewise.
5511 * final.c (rest_of_clean_state): Likewise.
5512 (final_scan_insn): Likewise.
5513 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5514 * haifa-sched.c (concat_note_lists): Likewise.
5515 (remove_notes): Likewise.
5516 (restore_other_notes): Likewise.
5517 (move_insn): Likewise.
5518 (unlink_bb_notes): Likewise.
5519 (restore_bb_notes): Likewise.
5520 * jump.c (delete_for_peephole): Likewise.
5521 * optabs.c (emit_libcall_block_1): Likewise.
5522 * reorg.c (emit_delay_sequence): Likewise.
5523 (fill_simple_delay_slots): Likewise.
5524 * sel-sched-ir.c (sel_move_insn): Likewise.
5525 (sel_remove_insn): Likewise.
5526 (get_bb_note_from_pool): Likewise.
5527 * sel-sched.c (move_nop_to_previous_block): Likewise.
5528
5529 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5530 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5531 (c6x_gen_bundles): Likewise.
5532 (hwloop_optimize): Likewise.
5533 * config/frv/frv.c (frv_function_prologue): Likewise.
5534 (frv_register_nop): Likewise.
5535 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5536 (ia64_reorg): Likewise.
5537 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5538 (mep_make_bundle): Likewise.
5539 (mep_bundle_insns): Likewise.
5540 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5541 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5542 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5543
5544 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5545
5546 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5547 return type from rtx to rtx_insn *.
5548 (BB_END): Likewise.
5549 (BB_HEADER): Likewise.
5550 (BB_FOOTER): Likewise.
5551 (SET_BB_HEAD): Convert to a function.
5552 (SET_BB_END): Likewise.
5553 (SET_BB_HEADER): Likewise.
5554 (SET_BB_FOOTER): Likewise.
5555
5556 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5557 Strengthen the return type from rtx to rtx_insn *. For now, this
5558 is done by adding a checked cast, but this will eventually
5559 become a field lookup.
5560 (BB_END): Likewise.
5561 (BB_HEADER): Likewise.
5562 (BB_FOOTER): Likewise.
5563 (SET_BB_HEAD): New function, from macro of same name. This is
5564 intended for use as an lvalue, and so returns an rtx& to allow
5565 in-place modification.
5566 (SET_BB_END): Likewise.
5567 (SET_BB_HEADER): Likewise.
5568 (SET_BB_FOOTER): Likewise.
5569
5570 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5571
5572 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5573 for rvalues, and...
5574 (SET_BB_HEAD): New macro, for use as a lvalue.
5575 (BB_END, SET_BB_END): Likewise.
5576 (BB_HEADER, SET_BB_HEADER): Likewise.
5577 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5578
5579 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5580 of BB_* macros into SET_BB_* macros.
5581 (fix_crossing_unconditional_branches): Likewise.
5582 * caller-save.c (save_call_clobbered_regs): Likewise.
5583 (insert_one_insn): Likewise.
5584 * cfgbuild.c (find_bb_boundaries): Likewise.
5585 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5586 (outgoing_edges_match): Likewise.
5587 (try_optimize_cfg): Likewise.
5588 * cfgexpand.c (expand_gimple_cond): Likewise.
5589 (expand_gimple_tailcall): Likewise.
5590 (expand_gimple_basic_block): Likewise.
5591 (construct_exit_block): Likewise.
5592 * cfgrtl.c (delete_insn): Likewise.
5593 (create_basic_block_structure): Likewise.
5594 (rtl_delete_block): Likewise.
5595 (rtl_split_block): Likewise.
5596 (emit_nop_for_unique_locus_between): Likewise.
5597 (rtl_merge_blocks): Likewise.
5598 (block_label): Likewise.
5599 (try_redirect_by_replacing_jump): Likewise.
5600 (emit_barrier_after_bb): Likewise.
5601 (fixup_abnormal_edges): Likewise.
5602 (record_effective_endpoints): Likewise.
5603 (relink_block_chain): Likewise.
5604 (fixup_reorder_chain): Likewise.
5605 (fixup_fallthru_exit_predecessor): Likewise.
5606 (cfg_layout_duplicate_bb): Likewise.
5607 (cfg_layout_split_block): Likewise.
5608 (cfg_layout_delete_block): Likewise.
5609 (cfg_layout_merge_blocks): Likewise.
5610 * combine.c (update_cfg_for_uncondjump): Likewise.
5611 * emit-rtl.c (add_insn_after): Likewise.
5612 (remove_insn): Likewise.
5613 (reorder_insns): Likewise.
5614 (emit_insn_after_1): Likewise.
5615 * haifa-sched.c (get_ebb_head_tail): Likewise.
5616 (restore_other_notes): Likewise.
5617 (move_insn): Likewise.
5618 (sched_extend_bb): Likewise.
5619 (fix_jump_move): Likewise.
5620 * ifcvt.c (noce_process_if_block): Likewise.
5621 (dead_or_predicable): Likewise.
5622 * ira.c (update_equiv_regs): Likewise.
5623 * reg-stack.c (change_stack): Likewise.
5624 * sel-sched-ir.c (sel_move_insn): Likewise.
5625 * sel-sched.c (move_nop_to_previous_block): Likewise.
5626
5627 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5628 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5629
5630 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5631
5632 * rtl.h (for_each_rtx_in_insn): New function.
5633 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5634
5635 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5636
5637 * coretypes.h (class rtx_insn): Add forward declaration.
5638
5639 * rtl.h: Include is-a.h.
5640 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5641 workaround to ensure gengtype knows inheritance is occurring,
5642 whilst continuing to use the pre-existing special-casing for
5643 rtx_def.
5644 (class rtx_insn): New subclass of rtx_def, adding the
5645 invariant that we're dealing with something we can sanely use
5646 INSN_UID, NEXT_INSN, PREV_INSN on.
5647 (is_a_helper <rtx_insn *>::test): New.
5648 (is_a_helper <const rtx_insn *>::test): New.
5649
5650 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5651
5652 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5653
5654 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5655
5656 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5657 comdats as extern.
5658
5659 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5660
5661 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5662 to BUILT_IN_UNREACHABLE.
5663
5664 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5665
5666 PR target/62011
5667 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5668 New tune flag.
5669 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5670 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5671 (ffs<mode>2): Do not expand with tzcnt for
5672 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5673 (ffssi2_no_cmove): Ditto.
5674 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5675 (ctz<mode>2): New expander.
5676 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5677 (*ctz<mode>2_falsedep): New insn.
5678 (*ctz<mode>2): Rename from ctz<mode>2.
5679 (clz<mode>2_lzcnt): New expander.
5680 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5681 (*clz<mode>2_lzcnt_falsedep): New insn.
5682 (*clz<mode>2): Rename from ctz<mode>2.
5683 (popcount<mode>2): New expander.
5684 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5685 (*popcount<mode>2_falsedep): New insn.
5686 (*popcount<mode>2): Rename from ctz<mode>2.
5687 (*popcount<mode>2_cmp): Remove.
5688 (*popcountsi2_cmp_zext): Ditto.
5689
5690 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5691
5692 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5693 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5694 * config/microblaze/microblaze.h
5695 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5696
5697 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5698
5699 PR other/62168
5700 * configure.ac: Set install_gold_as_default to no for
5701 --enable-gold=no.
5702 * configure: Regenerated.
5703
5704 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5705
5706 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5707 * config.in: Add undef of HAVE_isl.
5708 * configure: Regenerate.
5709 * configure.ac: Add definition of HAVE_isl.
5710 * graphite-blocking.c: Add checking of HAVE_isl.
5711 * graphite-dependences.c: Likewise.
5712 * graphite-interchange.c: Likewise.
5713 * graphite-isl-ast-to-gimple.c: Likewise.
5714 * graphite-optimize-isl.c: Likewise.
5715 * graphite-poly.c: Likewise.
5716 * graphite-scop-detection.c: Likewise.
5717 * graphite-sese-to-poly.c: Likewise.
5718 * graphite.c: Likewise.
5719 * toplev.c: Replace the checking of HAVE_cloog with the checking
5720 of HAVE_isl.
5721
5722 2014-08-18 Richard Biener <rguenther@suse.de>
5723
5724 PR tree-optimization/62090
5725 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5726 (fold_builtin_3): Do not fold snprintf.
5727 (fold_builtin_4): Likewise.
5728 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5729 moved from builtins.c.
5730 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5731 (gimple_fold_builtin): Do not fold sprintf here.
5732
5733 2014-08-18 Richard Biener <rguenther@suse.de>
5734
5735 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5736 code to ...
5737 (maybe_canonicalize_mem_ref_addr): ... this function.
5738 (fold_stmt_1): Apply it here before all simplification.
5739
5740 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5741
5742 PR ipa/61800
5743 * cgraph.h (cgraph_node::create_indirect_edge): Add
5744 compute_indirect_info param.
5745 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5746 indirect_info only when it is required.
5747 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5748 indirect_info fore cloned indirect edge.
5749
5750 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5751 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5752 Anna Tikhonova <anna.tikhonova@intel.com>
5753 Ilya Tocar <ilya.tocar@intel.com>
5754 Andrey Turetskiy <andrey.turetskiy@intel.com>
5755 Ilya Verbin <ilya.verbin@intel.com>
5756 Kirill Yukhin <kirill.yukhin@intel.com>
5757 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5758
5759 * config/i386/sse.md
5760 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5761 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5762
5763 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5764 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5765 Anna Tikhonova <anna.tikhonova@intel.com>
5766 Ilya Tocar <ilya.tocar@intel.com>
5767 Andrey Turetskiy <andrey.turetskiy@intel.com>
5768 Ilya Verbin <ilya.verbin@intel.com>
5769 Kirill Yukhin <kirill.yukhin@intel.com>
5770 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5771
5772 * config/i386/sse.md
5773 (define_mode_iterator VF1_AVX512VL): New.
5774 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5775 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5776 New.
5777
5778 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5779 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5780 Anna Tikhonova <anna.tikhonova@intel.com>
5781 Ilya Tocar <ilya.tocar@intel.com>
5782 Andrey Turetskiy <andrey.turetskiy@intel.com>
5783 Ilya Verbin <ilya.verbin@intel.com>
5784 Kirill Yukhin <kirill.yukhin@intel.com>
5785 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5786
5787 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5788 * config/i386/i386.md
5789 (define_code_iterator any_float): New.
5790 (define_code_attr floatsuffix): New.
5791 * config/i386/sse.md
5792 (define_mode_iterator VF1_128_256VL): New.
5793 (define_mode_iterator VF2_512_256VL): New.
5794 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5795 TARGET check.
5796 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5797 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5798 New.
5799 (define_mode_attr qq2pssuff): New.
5800 (define_mode_attr sselongvecmode): New.
5801 (define_mode_attr sselongvecmodelower): New.
5802 (define_mode_attr sseintvecmode3): New.
5803 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5804 New.
5805 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5806 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5807 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5808 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5809
5810 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5811 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5812 Anna Tikhonova <anna.tikhonova@intel.com>
5813 Ilya Tocar <ilya.tocar@intel.com>
5814 Andrey Turetskiy <andrey.turetskiy@intel.com>
5815 Ilya Verbin <ilya.verbin@intel.com>
5816 Kirill Yukhin <kirill.yukhin@intel.com>
5817 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5818
5819 * config/i386/sse.md
5820 (define_mode_iterator VF2_AVX512VL): New.
5821 (define_mode_attr sseintvecmode2): New.
5822 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5823 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5824 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5825 (define_insn
5826 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5827 Ditto.
5828 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5829 Ditto.
5830 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5831 Ditto.
5832
5833 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5834 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5835 Anna Tikhonova <anna.tikhonova@intel.com>
5836 Ilya Tocar <ilya.tocar@intel.com>
5837 Andrey Turetskiy <andrey.turetskiy@intel.com>
5838 Ilya Verbin <ilya.verbin@intel.com>
5839 Kirill Yukhin <kirill.yukhin@intel.com>
5840 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5841
5842 * config/i386/i386.md
5843 (define_insn "*movoi_internal_avx"): Add evex version.
5844 (define_insn "*movti_internal"): Ditto.
5845
5846 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5847 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5848 Anna Tikhonova <anna.tikhonova@intel.com>
5849 Ilya Tocar <ilya.tocar@intel.com>
5850 Andrey Turetskiy <andrey.turetskiy@intel.com>
5851 Ilya Verbin <ilya.verbin@intel.com>
5852 Kirill Yukhin <kirill.yukhin@intel.com>
5853 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5854
5855 * config/i386/i386.md
5856 (define_attr "isa"): Add avx512dq, noavx512dq.
5857 (define_attr "enabled"): Ditto.
5858 * config/i386/sse.md
5859 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5860
5861 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5862 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5863 Anna Tikhonova <anna.tikhonova@intel.com>
5864 Ilya Tocar <ilya.tocar@intel.com>
5865 Andrey Turetskiy <andrey.turetskiy@intel.com>
5866 Ilya Verbin <ilya.verbin@intel.com>
5867 Kirill Yukhin <kirill.yukhin@intel.com>
5868 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5869
5870 * config/i386/i386.c
5871 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5872 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5873 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5874 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5875 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5876 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5877 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5878 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5879 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5880 * config/i386/sse.md
5881 (define_mode_iterator VMOVE): Allow V4TI mode.
5882 (define_mode_iterator V_AVX512VL): New.
5883 (define_mode_iterator V): New handling for AVX512VL.
5884 (define_insn "avx512f_load<mode>_mask"): Delete.
5885 (define_insn "<avx512>_load<mode>_mask"): New.
5886 (define_insn "avx512f_store<mode>_mask"): Delete.
5887 (define_insn "<avx512>_store<mode>_mask"): New.
5888
5889
5890 2014-08-18 Yury Gribov <y.gribov@samsung.com>
5891
5892 PR sanitizer/62089
5893 * asan.c (instrument_derefs): Fix bitfield check.
5894
5895 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5896
5897 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5898 * config/rs6000/htm.md (ttest): Remove clobber.
5899 * config/rs6000/predicates.md (any_mask_operand): New predicate.
5900 (and_operand): Reformat.
5901 (and_2rld_operand): New predicate.
5902 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5903 parameter.
5904 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5905 parameter. Handle AND directly.
5906 (rs6000_split_logical_di): Remove last parameter.
5907 (rs6000_split_logical): Remove last parameter. Remove obsolete
5908 comment.
5909 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5910 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5911 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
5912 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5913 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5914 and 5 anonymous splitters): Delete.
5915 (and<mode>3): New expander.
5916 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5917 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5918 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5919 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5920 (floatdisf2_internal1): Remove clobbers.
5921 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5922 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5923 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5924 (and<mode>3 for BOOL_128): Remove clobber.
5925 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
5926 rs6000_split_logical.
5927 (*bool<mode>3_internal for BOOL_128): Adjust call of
5928 rs6000_split_logical.
5929 (*boolc<mode>3_internal1 for BOOL_128,
5930 *boolc<mode>3_internal2 for BOOL_128,
5931 *boolcc<mode>3_internal1 for BOOL_128,
5932 *boolcc<mode>3_internal2 for BOOL_128,
5933 *eqv<mode>3_internal1 for BOOL_128,
5934 *eqv<mode>3_internal2 for BOOL_128,
5935 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5936 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5937 clobber.
5938 (*vec_reload_and_reg_<mptrsize>): Delete.
5939
5940 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5941
5942 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5943 and split, *boolccsi3_internal3 and split): Delete.
5944 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5945 *boolccdi3_internal3 and split): Delete.
5946 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5947 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
5948
5949 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5950
5951 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5952 and split, *boolcsi3_internal3 and split): Delete.
5953 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5954 *boolcdi3_internal3 and split): Delete.
5955 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5956
5957 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5958
5959 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5960 <'u'>: Also support printing the low-order 16 bits.
5961 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5962 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5963 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5964 *booldi3_internal3 and split): Delete.
5965 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5966 *bool<mode>3_dot2): New.
5967 (two anonymous define_splits for non_logical_cint_operand): Merge.
5968
5969 2014-08-17 Marek Polacek <polacek@redhat.com>
5970 Manuel López-Ibáñez <manu@gcc.gnu.org>
5971
5972 PR c/62059
5973 * diagnostic.c (adjust_line): Add gcc_checking_assert.
5974 (diagnostic_show_locus): Don't print caret diagnostic
5975 if a column is larger than the line_width.
5976
5977 2014-08-17 Roman Gareev <gareevroman@gmail.com>
5978
5979 * common.opt: Make the ISL AST generator to be the main code generator
5980 of Graphite.
5981
5982 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
5983
5984 * wide-int.h (generic_wide_int): Declare as class instead of struct.
5985
5986 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
5987
5988 PR target/61641
5989 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
5990 Declare.
5991 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
5992 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
5993 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
5994 Define.
5995 * config/pa/pa.md (begin_brtab): Delete insn.
5996 (end_brtab): Likewise.
5997
5998 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5999
6000 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6001
6002 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6003
6004 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6005 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6006 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6007 (get_dynamic_type): Remove.
6008 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6009 (clear_speculation): Bring to ipa-deivrt.h
6010 (get_class_context): Rename to ...
6011 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6012 (contains_type_p): Update.
6013 (get_dynamic_type): Rename to ...
6014 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6015 (possible_polymorphic_call_targets): UPdate.
6016 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6017 * ipa-prop.c (ipa_analyze_call_uses): Update.
6018
6019 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6020
6021 * doc/invoke.texi (SH options): Document missing processor variant
6022 options. Remove references to Hitachi. Undocument deprecated mspace
6023 option.
6024
6025 2014-08-15 Jason Merrill <jason@redhat.com>
6026
6027 * tree.c (type_hash_canon): Uncomment assert.
6028
6029 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6030
6031 * input.h (in_system_header_at): Add comment.
6032
6033 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6034
6035 PR fortran/44054
6036 * diagnostic.c (build_message_string): Make it extern.
6037 * diagnostic.h (build_message_string): Make it extern.
6038
6039 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6040
6041 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6042 load/store from/to non-floating class pseudo.
6043
6044 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6045
6046 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6047
6048 2014-08-15 Richard Biener <rguenther@suse.de>
6049
6050 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6051 (get_constraint_for_ssa_var): Remove dead code.
6052 (get_constraint_for_1): Adjust.
6053 (find_what_var_points_to): Likewise.
6054 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6055
6056 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6057
6058 PR target/61878
6059 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6060 (_mm512_mask_cmpge_epu32_mask): Ditto.
6061 (_mm512_cmpge_epu32_mask): Ditto.
6062 (_mm512_mask_cmpge_epi64_mask): Ditto.
6063 (_mm512_cmpge_epi64_mask): Ditto.
6064 (_mm512_mask_cmpge_epu64_mask): Ditto.
6065 (_mm512_cmpge_epu64_mask): Ditto.
6066 (_mm512_mask_cmple_epi32_mask): Ditto.
6067 (_mm512_cmple_epi32_mask): Ditto.
6068 (_mm512_mask_cmple_epu32_mask): Ditto.
6069 (_mm512_cmple_epu32_mask): Ditto.
6070 (_mm512_mask_cmple_epi64_mask): Ditto.
6071 (_mm512_cmple_epi64_mask): Ditto.
6072 (_mm512_mask_cmple_epu64_mask): Ditto.
6073 (_mm512_cmple_epu64_mask): Ditto.
6074 (_mm512_mask_cmplt_epi32_mask): Ditto.
6075 (_mm512_cmplt_epi32_mask): Ditto.
6076 (_mm512_mask_cmplt_epu32_mask): Ditto.
6077 (_mm512_cmplt_epu32_mask): Ditto.
6078 (_mm512_mask_cmplt_epi64_mask): Ditto.
6079 (_mm512_cmplt_epi64_mask): Ditto.
6080 (_mm512_mask_cmplt_epu64_mask): Ditto.
6081 (_mm512_cmplt_epu64_mask): Ditto.
6082 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6083 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6084 (_mm512_cmpneq_epu32_mask): Ditto.
6085 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6086 (_mm512_cmpneq_epi64_mask): Ditto.
6087 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6088 (_mm512_cmpneq_epu64_mask): Ditto.
6089 (_mm512_castpd_ps): Ditto.
6090 (_mm512_castpd_si512): Ditto.
6091 (_mm512_castps_pd): Ditto.
6092 (_mm512_castps_si512): Ditto.
6093 (_mm512_castsi512_ps): Ditto.
6094 (_mm512_castsi512_pd): Ditto.
6095 (_mm512_castpd512_pd128): Ditto.
6096 (_mm512_castps512_ps128): Ditto.
6097 (_mm512_castsi512_si128): Ditto.
6098 (_mm512_castpd512_pd256): Ditto.
6099 (_mm512_castps512_ps256): Ditto.
6100 (_mm512_castsi512_si256): Ditto.
6101 (_mm512_castpd128_pd512): Ditto.
6102 (_mm512_castps128_ps512): Ditto.
6103 (_mm512_castsi128_si512): Ditto.
6104 (_mm512_castpd256_pd512): Ditto.
6105 (_mm512_castps256_ps512): Ditto.
6106 (_mm512_castsi256_si512): Ditto.
6107 (_mm512_cmpeq_epu32_mask): Ditto.
6108 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6109 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6110 (_mm512_cmpeq_epu64_mask): Ditto.
6111 (_mm512_cmpgt_epu32_mask): Ditto.
6112 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6113 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6114 (_mm512_cmpgt_epu64_mask): Ditto.
6115 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6116 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6117 * config/i386/i386.c (enum ix86_builtins): Add
6118 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6119 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6120 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6121 (bdesc_args): Add __builtin_ia32_si512_256si,
6122 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6123 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6124 __builtin_ia32_pd512_pd.
6125 (ix86_expand_args_builtin): Handle new FTYPEs.
6126 * config/i386/sse.md (castmode): Add 512-bit modes.
6127 (AVX512MODE2P): New.
6128 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6129 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6130
6131 2014-08-15 Richard Biener <rguenther@suse.de>
6132
6133 * fold-const.c (tree_swap_operands_p): Put all constants
6134 last, also strip sign-changing NOPs when considering further
6135 canonicalization. Canonicalize also when optimizing for size.
6136
6137 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6138
6139 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6140 one_match > zero_match case to just before simple_sequence.
6141
6142 2014-08-15 Richard Biener <rguenther@suse.de>
6143
6144 * data-streamer.h (streamer_string_index, string_for_index):
6145 Remove.
6146 * data-streamer-out.c (streamer_string_index): Make static.
6147 * data-streamer-in.c (string_for_index): Likewise.
6148 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6149 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6150
6151 2014-08-15 Richard Biener <rguenther@suse.de>
6152
6153 PR tree-optimization/62031
6154 * tree-data-ref.c (dr_analyze_indices): Do not set
6155 DR_UNCONSTRAINED_BASE.
6156 (dr_may_alias_p): All indirect accesses have to go the
6157 formerly DR_UNCONSTRAINED_BASE path.
6158 * tree-data-ref.h (struct indices): Remove
6159 unconstrained_base member.
6160 (DR_UNCONSTRAINED_BASE): Remove.
6161
6162 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6163
6164 PR middle-end/62092
6165 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6166 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6167 in OMP_CLAUSE_MAP in some outer target region.
6168
6169 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6170
6171 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6172 name_expansion_cache.
6173 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6174 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6175 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6176 (difference_cannot_overflow_p): New parameter. Use affine
6177 expansion for equality check.
6178 (iv_elimination_compare_lt): Pass new argument.
6179
6180 2014-08-14 DJ Delorie <dj@redhat.com>
6181
6182 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6183 variables to the accumulator.
6184
6185 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6186 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6187 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6188 with far-far moves.
6189
6190 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6191 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6192 (umulqihi3_virt): Likewise.
6193 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6194 (umulqihi3_real): Likewise.
6195
6196 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6197
6198 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6199
6200 PR tree-optimization/62091
6201 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6202 function_entry_reached.
6203 (walk_aliased_vdefs): Clear it here.
6204 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6205
6206 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6207
6208 * ipa-utils.h (compare_virtual_tables): Declare.
6209 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6210
6211 2014-08-14 Marek Polacek <polacek@redhat.com>
6212
6213 DR 458
6214 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6215 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6216
6217 2014-08-14 Tom de Vries <tom@codesourcery.com>
6218
6219 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6220
6221 2014-08-14 Tom de Vries <tom@codesourcery.com>
6222
6223 PR rtl-optimization/62004
6224 PR rtl-optimization/62030
6225 * ifcvt.c (rtx_interchangeable_p): New function.
6226 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6227 * emit-rtl.h (mem_attrs_eq_p): Declare.
6228
6229 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6230
6231 * graphite-scop-detection.c:
6232 Add inclusion of cp-tree.h.
6233 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6234 in case they are pointers to object types
6235
6236 2014-08-14 Richard Biener <rguenther@suse.de>
6237
6238 * BASE-VER: Change to 5.0.0
6239
6240 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6241 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6242 Anna Tikhonova <anna.tikhonova@intel.com>
6243 Ilya Tocar <ilya.tocar@intel.com>
6244 Andrey Turetskiy <andrey.turetskiy@intel.com>
6245 Ilya Verbin <ilya.verbin@intel.com>
6246 Kirill Yukhin <kirill.yukhin@intel.com>
6247 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6248
6249 * config/i386/sse.md (define_mode_attr avx512): New.
6250 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6251 V4DI modes.
6252 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6253 (define_mode_attr ssse3_avx2): Ditto.
6254 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6255 (define_mode_attr avx2_avx512bw): New.
6256 (define_mode_attr ssedoublemodelower): New.
6257 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6258 V32HI, V64QI modes.
6259 (define_mode_attr ssebytemode): Allow V8DI modes.
6260 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6261 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6262 (define_mode_attr ssePSmode2): New.
6263 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6264 V16HI, V32HI modes.
6265 (define_mode_attr dbpsadbwmode): New.
6266 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6267 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6268 (vi8_sse4_1_avx2_avx512): New.
6269 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6270 mode attribute.
6271 (define_mode_attr blendbits): Move before its immediate use.
6272
6273 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6275 Anna Tikhonova <anna.tikhonova@intel.com>
6276 Ilya Tocar <ilya.tocar@intel.com>
6277 Andrey Turetskiy <andrey.turetskiy@intel.com>
6278 Ilya Verbin <ilya.verbin@intel.com>
6279 Kirill Yukhin <kirill.yukhin@intel.com>
6280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6281
6282 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6283 * config/i386/subst.md
6284 (define_mode_iterator SUBST_V): Update.
6285 (define_mode_iterator SUBST_A): Ditto.
6286 (define_subst_attr "mask_operand7"): New.
6287 (define_subst_attr "mask_operand10"): New.
6288 (define_subst_attr "mask_operand_arg34") : New.
6289 (define_subst_attr "mask_expand_op3"): New.
6290 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6291 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6292 (define_subst_attr "mask_avx512vl_condition"): New.
6293 (define_subst_attr "round_mask_operand4"): Ditto.
6294 (define_subst_attr "round_mask_scalar_op3"): Delete.
6295 (define_subst_attr "round_mask_op4"): New.
6296 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6297 V16SImode.
6298 (define_subst_attr "round_modev8sf_condition"): New.
6299 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6300 <MODE>mode.
6301 (define_subst_attr "round_saeonly_mask_operand4"): New.
6302 (define_subst_attr "round_saeonly_mask_op4"): New.
6303 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6304 V8DImode, V16SImode.
6305 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6306 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6307 (define_subst_attr "mask_expand4_args"): New.
6308 (define_subst "mask_expand4"): New.
6309
6310 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6311 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6312 Anna Tikhonova <anna.tikhonova@intel.com>
6313 Ilya Tocar <ilya.tocar@intel.com>
6314 Andrey Turetskiy <andrey.turetskiy@intel.com>
6315 Ilya Verbin <ilya.verbin@intel.com>
6316 Kirill Yukhin <kirill.yukhin@intel.com>
6317 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6318
6319 * config/i386/i386.md
6320 (define_attr "isa"): Add avx512bw,noavx512bw.
6321 (define_attr "enabled"): Ditto.
6322 (define_split): Add 32/64-bit mask logic.
6323 (define_insn "*k<logic>qi"): New.
6324 (define_insn "*k<logic>hi"): New.
6325 (define_insn "*anddi_1"): Add mask version.
6326 (define_insn "*andsi_1"): Ditto.
6327 (define_insn "*<code><mode>_1"): Ditto.
6328 (define_insn "*<code>hi_1"): Ditto.
6329 (define_insn "kxnor<mode>"): New.
6330 (define_insn "kunpcksi"): New.
6331 (define_insn "kunpckdi"): New.
6332 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6333 (define_insn "*one_cmplhi2_1"): Ditto.
6334
6335 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6336 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6337 Anna Tikhonova <anna.tikhonova@intel.com>
6338 Ilya Tocar <ilya.tocar@intel.com>
6339 Andrey Turetskiy <andrey.turetskiy@intel.com>
6340 Ilya Verbin <ilya.verbin@intel.com>
6341 Kirill Yukhin <kirill.yukhin@intel.com>
6342 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6343
6344 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6345 V32HImode.
6346
6347 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6348 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6349 Anna Tikhonova <anna.tikhonova@intel.com>
6350 Ilya Tocar <ilya.tocar@intel.com>
6351 Andrey Turetskiy <andrey.turetskiy@intel.com>
6352 Ilya Verbin <ilya.verbin@intel.com>
6353 Kirill Yukhin <kirill.yukhin@intel.com>
6354 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6355
6356 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6357 registers.
6358 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6359 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6360 xmm/ymm16+ when availble.
6361 * config/i386/i386.h
6362 (HARD_REGNO_NREGS): Add mask regs.
6363 (VALID_AVX512F_REG_MODE): Ditto.
6364 (VALID_AVX512F_REG_MODE) : Define.
6365 (VALID_MASK_AVX512BW_MODE): Ditto.
6366 (reg_class) (MASK_REG_P(X)): Define.
6367 * config/i386/i386.md: Do not split long moves with mask register,
6368 use kmovb if avx512bw is availible.
6369 (movdi_internal): Handle mask registers.
6370
6371 2014-08-14 Richard Biener <rguenther@suse.de>
6372
6373 PR tree-optimization/62081
6374 * tree-ssa-loop.c (pass_fix_loops): New pass.
6375 (pass_tree_loop::gate): Do not fixup loops here.
6376 * tree-pass.h (make_pass_fix_loops): Declare.
6377 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6378
6379 2014-08-14 Richard Biener <rguenther@suse.de>
6380
6381 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6382 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6383
6384 2014-08-14 Richard Biener <rguenther@suse.de>
6385
6386 PR tree-optimization/62090
6387 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6388 (fold_builtin_2): Do not fold sprintf.
6389 (fold_builtin_3): Likewise.
6390 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6391 moved from builtins.c.
6392 (gimple_fold_builtin): Fold sprintf.
6393
6394 2014-08-14 Richard Biener <rguenther@suse.de>
6395
6396 PR rtl-optimization/62079
6397 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6398 run cleanup_cfg.
6399
6400 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6401
6402 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6403 current_function_decl.
6404
6405 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6406
6407 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6408 cgraph_function_node to cgraph_node::function_symbol
6409 refactoring.
6410
6411 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6412
6413 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6414 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6415
6416 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6417
6418 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6419 warning.
6420
6421 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6422
6423 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6424 generator.
6425
6426 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6427
6428 PR target/62025
6429 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6430 any registers that are used in mem_insn.
6431
6432 2014-08-12 Steve Ellcey <sellcey@mips.com>
6433
6434 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6435
6436 2014-08-12 Steve Ellcey <sellcey@mips.com>
6437
6438 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6439 (MULTILIB_DIRNAMES): Ditto.
6440 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6441 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6442 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6443 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6444 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6445 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6446
6447 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6448
6449 PR target/61413
6450 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6451 of __ARM_SIZEOF_WCHAR_T.
6452
6453 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6454
6455 PR target/62098
6456 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6457 Remove unnecessary attributes.
6458
6459 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6460
6461 * internal-fn.c (init_internal_fns): Fix off-by-one.
6462
6463 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6464 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6465 Anna Tikhonova <anna.tikhonova@intel.com>
6466 Ilya Tocar <ilya.tocar@intel.com>
6467 Andrey Turetskiy <andrey.turetskiy@intel.com>
6468 Ilya Verbin <ilya.verbin@intel.com>
6469 Kirill Yukhin <kirill.yukhin@intel.com>
6470 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6471
6472 * config/i386/i386.c (standard_sse_constant_opcode): Use
6473 vpxord/vpternlog if avx512 is availible.
6474
6475 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6476
6477 PR middle-end/62103
6478 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6479 bitfields, that is when size doesn't match the size of type or the
6480 size of the constructor.
6481
6482 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6483
6484 * config/rs6000/constraints.md (wh constraint): New constraint,
6485 for FP registers if direct move is available.
6486 (wi constraint): New constraint, for VSX/FP registers that can
6487 handle 64-bit integers.
6488 (wj constraint): New constraint for VSX/FP registers that can
6489 handle 64-bit integers for direct moves.
6490 (wk constraint): New constraint for VSX/FP registers that can
6491 handle 64-bit doubles for direct moves.
6492 (wy constraint): Make documentation match implementation.
6493
6494 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6495 scalar_in_vmx_p field to simplify tests of whether SFmode or
6496 DFmode can go in the Altivec registers.
6497 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6498 (rs6000_setup_reg_addr_masks): Likewise.
6499 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6500 field, and wh/wi/wj/wk constraints.
6501 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6502 the wh/wi/wj/wk constraints.
6503 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6504 upper registers, prefer VSX registers unless the operation is a
6505 memory operation with REG+OFFSET addressing.
6506
6507 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6508 DImode. Change SFmode to use ww constraint instead of d to allow
6509 SF registers in the upper registers.
6510 (VSr2): Likewise.
6511 (VSr3): Likewise.
6512 (VSr5): Fix thinko in comment.
6513 (VSa): New mode attribute that is an alternative to wa, that
6514 returns the VSX register class that a mode can go in, but may not
6515 be the preferred register class.
6516 (VS_64dm): New mode attribute for appropriate register classes for
6517 referencing 64-bit elements of vectors for direct moves and normal
6518 moves.
6519 (VS_64reg): Likewise.
6520 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6521 register allocator to only registers the data type can handle.
6522 (vsx_le_perm_load_<mode>): Likewise.
6523 (vsx_le_perm_store_<mode>): Likewise.
6524 (vsx_xxpermdi2_le_<mode>): Likewise.
6525 (vsx_xxpermdi4_le_<mode>): Likewise.
6526 (vsx_lxvd2x2_le_<mode>): Likewise.
6527 (vsx_lxvd2x4_le_<mode>): Likewise.
6528 (vsx_stxvd2x2_le_<mode>): Likewise.
6529 (vsx_add<mode>3): Likewise.
6530 (vsx_sub<mode>3): Likewise.
6531 (vsx_mul<mode>3): Likewise.
6532 (vsx_div<mode>3): Likewise.
6533 (vsx_tdiv<mode>3_internal): Likewise.
6534 (vsx_fre<mode>2): Likewise.
6535 (vsx_neg<mode>2): Likewise.
6536 (vsx_abs<mode>2): Likewise.
6537 (vsx_nabs<mode>2): Likewise.
6538 (vsx_smax<mode>3): Likewise.
6539 (vsx_smin<mode>3): Likewise.
6540 (vsx_sqrt<mode>2): Likewise.
6541 (vsx_rsqrte<mode>2): Likewise.
6542 (vsx_tsqrt<mode>2_internal): Likewise.
6543 (vsx_fms<mode>4): Likewise.
6544 (vsx_nfma<mode>4): Likewise.
6545 (vsx_eq<mode>): Likewise.
6546 (vsx_gt<mode>): Likewise.
6547 (vsx_ge<mode>): Likewise.
6548 (vsx_eq<mode>_p): Likewise.
6549 (vsx_gt<mode>_p): Likewise.
6550 (vsx_ge<mode>_p): Likewise.
6551 (vsx_xxsel<mode>): Likewise.
6552 (vsx_xxsel<mode>_uns): Likewise.
6553 (vsx_copysign<mode>3): Likewise.
6554 (vsx_float<VSi><mode>2): Likewise.
6555 (vsx_floatuns<VSi><mode>2): Likewise.
6556 (vsx_fix_trunc<mode><VSi>2): Likewise.
6557 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6558 (vsx_x<VSv>r<VSs>i): Likewise.
6559 (vsx_x<VSv>r<VSs>ic): Likewise.
6560 (vsx_btrunc<mode>2): Likewise.
6561 (vsx_b2trunc<mode>2): Likewise.
6562 (vsx_floor<mode>2): Likewise.
6563 (vsx_ceil<mode>2): Likewise.
6564 (vsx_<VS_spdp_insn>): Likewise.
6565 (vsx_xscvspdp): Likewise.
6566 (vsx_xvcvspuxds): Likewise.
6567 (vsx_float_fix_<mode>2): Likewise.
6568 (vsx_set_<mode>): Likewise.
6569 (vsx_extract_<mode>_internal1): Likewise.
6570 (vsx_extract_<mode>_internal2): Likewise.
6571 (vsx_extract_<mode>_load): Likewise.
6572 (vsx_extract_<mode>_store): Likewise.
6573 (vsx_splat_<mode>): Likewise.
6574 (vsx_xxspltw_<mode>): Likewise.
6575 (vsx_xxspltw_<mode>_direct): Likewise.
6576 (vsx_xxmrghw_<mode>): Likewise.
6577 (vsx_xxmrglw_<mode>): Likewise.
6578 (vsx_xxsldwi_<mode>): Likewise.
6579 (vsx_xscvdpspn): Tighten constraints to only use register classes
6580 the types use.
6581 (vsx_xscvspdpn): Likewise.
6582 (vsx_xscvdpspn_scalar): Likewise.
6583
6584 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6585 wj, and wk constraints.
6586 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6587 general purpose registers.
6588
6589 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6590 direct moves.
6591 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6592 DImode instead of wm. Use wk constraint for direct move of DFmode
6593 instead of wm.
6594 (extendsidi2_lfiwax): Likewise.
6595 (lfiwax): Likewise.
6596 (lfiwzx): Likewise.
6597 (movdi_internal64): Likewise.
6598
6599 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6600 wk constraints. Make the wy constraint documentation match them
6601 implementation.
6602
6603 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6604
6605 Replacement of isl_int by isl_val
6606 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6607 (compute_bounds_for_param): use isl_val instead of isl_int
6608 (compute_bounds_for_loop): likewise
6609 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6610 (build_linearized_memory_access): use isl_val instead of isl_int
6611 (pdr_stride_in_loop): likewise
6612 * graphite-optimize-isl.c:
6613 (getPrevectorMap): use isl_val instead of isl_int
6614 * graphite-poly.c:
6615 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6616 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6617 (extern the_isl_ctx): declare
6618 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6619 (extract_affine_gmp): likewise
6620 (wrap): likewise
6621 (build_loop_iteration_domains): likewise
6622 (add_param_constraints): likewise
6623
6624 2014-08-11 Richard Biener <rguenther@suse.de>
6625
6626 PR tree-optimization/62075
6627 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6628 handle uses in patterns.
6629
6630 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6631 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6632 Anna Tikhonova <anna.tikhonova@intel.com>
6633 Ilya Tocar <ilya.tocar@intel.com>
6634 Andrey Turetskiy <andrey.turetskiy@intel.com>
6635 Ilya Verbin <ilya.verbin@intel.com>
6636 Kirill Yukhin <kirill.yukhin@intel.com>
6637 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6638
6639 * common/config/i386/i386-common.c
6640 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6641 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6642 (ix86_handle_option): Handle OPT_mavx512vl.
6643 * config/i386/cpuid.h (bit_AVX512VL): Define.
6644 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6645 set -mavx512vl accordingly.
6646 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6647 OPTION_MASK_ISA_AVX512VL.
6648 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6649 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6650 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6651 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6652 * config/i386/i386.h (TARGET_AVX512VL): Define.
6653 (TARGET_AVX512VL_P(x)): Ditto.
6654 * config/i386/i386.opt: Add mavx512vl.
6655
6656 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6657
6658 PR tree-optimization/62073
6659 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6660 a basic block.
6661
6662 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6663 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6664 Anna Tikhonova <anna.tikhonova@intel.com>
6665 Ilya Tocar <ilya.tocar@intel.com>
6666 Andrey Turetskiy <andrey.turetskiy@intel.com>
6667 Ilya Verbin <ilya.verbin@intel.com>
6668 Kirill Yukhin <kirill.yukhin@intel.com>
6669 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6670
6671 * common/config/i386/i386-common.c
6672 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6673 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6674 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6675 (ix86_handle_option): Handle OPT_mavx512bw.
6676 * config/i386/cpuid.h (bit_AVX512BW): Define.
6677 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6678 set -mavx512bw accordingly.
6679 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6680 OPTION_MASK_ISA_AVX512BW.
6681 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6682 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6683 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6684 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6685 * config/i386/i386.h (TARGET_AVX512BW): Define.
6686 (TARGET_AVX512BW_P(x)): Ditto.
6687 * config/i386/i386.opt: Add mavx512bw.
6688
6689 2014-08-11 Richard Biener <rguenther@suse.de>
6690
6691 PR tree-optimization/62070
6692 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6693 Remove SSA checking.
6694
6695 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6696
6697 * asan.c (asan_check_flags): New enum.
6698 (build_check_stmt_with_calls): Removed function.
6699 (build_check_stmt): Split inlining logic to
6700 asan_expand_check_ifn.
6701 (instrument_derefs): Rename parameter.
6702 (instrument_mem_region_access): Rename parameter.
6703 (instrument_strlen_call): Likewise.
6704 (asan_expand_check_ifn): New function.
6705 (asan_instrument): Remove old code.
6706 (pass_sanopt::execute): Change handling of
6707 asan-instrumentation-with-call-threshold.
6708 (asan_clear_shadow): Fix formatting.
6709 (asan_function_start): Likewise.
6710 (asan_emit_stack_protection): Likewise.
6711 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6712 Update description.
6713 * internal-fn.c (expand_ASAN_CHECK): New function.
6714 * internal-fn.def (ASAN_CHECK): New internal function.
6715 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6716 Update description.
6717 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6718 * tree.c: Small comment fix.
6719
6720 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6721
6722 * gimple.c (gimple_call_fnspec): Support internal functions.
6723 (gimple_call_return_flags): Use const.
6724 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6725 * internal-fn.def: Add fnspec information.
6726 * internal-fn.h (internal_fn_fnspec): New function.
6727 (init_internal_fns): Declare new function.
6728 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6729 (init_internal_fns): New function.
6730 * tree-core.h: Update macro call.
6731 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6732
6733 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6734
6735 * lto-streamer.h (struct output_block::symbol): Change from
6736 struct symtab_node to plain symtab_node.
6737 (referenced_from_this_partition_p): Change first parameter
6738 from struct symtab_node to plain symtab_node.
6739
6740 2014-08-10 Marek Polacek <polacek@redhat.com>
6741
6742 PR c/51849
6743 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6744
6745 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6746
6747 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6748 DECL correctly; do not give up on types in static storage.
6749
6750 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6751
6752 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6753
6754 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6755
6756 * graphite-isl-ast-to-gimple.c:
6757 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6758
6759 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6760
6761 2014-08-08 Guozhi Wei <carrot@google.com>
6762
6763 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6764
6765 2014-08-08 Cary Coutant <ccoutant@google.com>
6766
6767 * dwarf2out.c (get_skeleton_type_unit): Remove.
6768 (output_skeleton_debug_sections): Remove skeleton type units.
6769 (output_comdat_type_unit): Likewise.
6770 (dwarf2out_finish): Likewise.
6771
6772 2014-08-07 Yi Yang <ahyangyi@google.com>
6773
6774 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6775
6776 2014-08-08 Richard Biener <rguenther@suse.de>
6777
6778 * lto-streamer.h (struct lto_input_block): Make it a class
6779 with a constructor.
6780 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6781 (struct lto_function_header, struct lto_simple_header,
6782 struct lto_simple_header_with_strings,
6783 struct lto_decl_header, struct lto_function_header): Make
6784 a simple inheritance hieararchy. Remove unused fields.
6785 (struct lto_asm_header): Remove.
6786 * lto-streamer-out.c (produce_asm): Adjust.
6787 (lto_output_toplevel_asms): Likewise.
6788 (produce_asm_for_decls): Likewise.
6789 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6790 * data-streamer-in.c (string_for_index): Likewise.
6791 * ipa-inline-analysis.c (inline_read_section): Likewise.
6792 * ipa-prop.c (ipa_prop_read_section): Likewise.
6793 (read_replacements_section): Likewise.
6794 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6795 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6796 (lto_destroy_simple_input_block): Likewise.
6797 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6798 (lto_input_toplevel_asms): Likewise.
6799
6800 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6801 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6802 Anna Tikhonova <anna.tikhonova@intel.com>
6803 Ilya Tocar <ilya.tocar@intel.com>
6804 Andrey Turetskiy <andrey.turetskiy@intel.com>
6805 Ilya Verbin <ilya.verbin@intel.com>
6806 Kirill Yukhin <kirill.yukhin@intel.com>
6807 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6808
6809 * common/config/i386/i386-common.c
6810 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6811 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6812 (ix86_handle_option): Handle OPT_mavx512dq.
6813 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6814 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6815 set -mavx512dq accordingly.
6816 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6817 OPTION_MASK_ISA_AVX512DQ.
6818 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6819 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6820 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6821 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6822 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6823 (TARGET_AVX512DQ_P(x)): Ditto.
6824 * config/i386/i386.opt: Add mavx512dq.
6825
6826 2014-08-08 Richard Biener <rguenther@suse.de>
6827
6828 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6829 target_percent, target_percent_s): Export.
6830 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6831 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6832 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6833 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6834 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6835 Move to gimple-fold.c.
6836 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6837 strcat and strcpy.
6838 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6839 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6840 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6841 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6842 (rewrite_call_expr_array): Remove.
6843 (fold_builtin_sprintf_chk): Likewise.
6844 (fold_builtin_snprintf_chk): Likewise.
6845 (fold_builtin_varargs): Remove handling of sprintf_chk,
6846 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6847 (gimple_fold_builtin_sprintf_chk): Remove.
6848 (gimple_fold_builtin_snprintf_chk): Likewise.
6849 (gimple_fold_builtin_varargs): Likewise.
6850 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6851 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6852 * gimple.c (gimple_seq_add_seq_without_update): New function.
6853 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6854 * gimple-fold.c: Include output.h.
6855 (gsi_replace_with_seq_vops): New function, split out from ...
6856 (gimplify_and_update_call_from_tree): ... here.
6857 (replace_call_with_value): New function.
6858 (replace_call_with_call_and_fold): Likewise.
6859 (var_decl_component_p): Moved from builtins.c.
6860 (gimple_fold_builtin_memory_op): Moved from builtins.c
6861 fold_builtin_memory_op and rewritten to GIMPLE.
6862 (gimple_fold_builtin_memset): Likewise.
6863 (gimple_fold_builtin_strcpy): Likewise.
6864 (gimple_fold_builtin_strncpy): Likewise.
6865 (gimple_fold_builtin_strcat): Likewise.
6866 (gimple_fold_builtin_fputs): Likewise.
6867 (gimple_fold_builtin_memory_chk): Likewise.
6868 (gimple_fold_builtin_stxcpy_chk): Likewise.
6869 (gimple_fold_builtin_stxncpy_chk): Likewise.
6870 (gimple_fold_builtin_snprintf_chk): Likewise.
6871 (gimple_fold_builtin_sprintf_chk): Likewise.
6872 (gimple_fold_builtin_strlen): New function.
6873 (gimple_fold_builtin_with_strlen): New function split out from
6874 gimple_fold_builtin.
6875 (gimple_fold_builtin): Change signature and handle
6876 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6877 here. Call gimple_fold_builtin_with_strlen.
6878 (gimple_fold_call): Adjust.
6879
6880 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6881
6882 * calls.c (precompute_arguments): Check
6883 promoted_for_signed_and_unsigned_p and set the promoted mode.
6884 (promoted_for_signed_and_unsigned_p): New function.
6885 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6886 and set the promoted mode.
6887 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6888 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6889 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6890
6891
6892 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6893
6894 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6895 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6896 (expand_call): Likewise.
6897 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6898 to get promoted mode.
6899 * combine.c (record_promoted_value): Skip > 0 comparison with
6900 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6901 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6902 of SUBREG_PROMOTED_UNSIGNED_P.
6903 (convert_modes): Likewise.
6904 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6905 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6906 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6907 SUBREG_PROMOTED_UNSIGNED_SET.
6908 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6909 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6910 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6911 SUBREG_PROMOTED_SET.
6912 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6913 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6914 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6915 of SUBREG_PROMOTED_UNSIGNED_P.
6916 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6917 (SUBREG_PROMOTED_SET): New define.
6918 (SUBREG_PROMOTED_GET): Likewise.
6919 (SUBREG_PROMOTED_SIGN): Likewise.
6920 (SUBREG_PROMOTED_SIGNED_P): Likewise.
6921 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6922 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6923 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6924 instead of SUBREG_PROMOTED_UNSIGNED_GET.
6925 (nonzero_bits1): Skip > 0 comparison with the results as
6926 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6927 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6928 of !SUBREG_PROMOTED_UNSIGNED_P.
6929 * simplify-rtx.c (simplify_unary_operation_1): Use new
6930 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6931 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6932 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6933 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6934
6935 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
6936
6937 * ipa-devirt.c: Include gimple-pretty-print.h
6938 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6939 further tests.
6940 (decl_maybe_in_construction_p): Fix conditional on cdtor check
6941 (get_polymorphic_call_info): Fix return value
6942 (type_change_info): New sturcture based on ipa-prop
6943 variant.
6944 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6945 based on ipa-prop variant.
6946 (extr_type_from_vtbl_ptr_store): New function
6947 based on ipa-prop variant.
6948 (record_known_type): New function.
6949 (check_stmt_for_type_change): New function.
6950 (get_dynamic_type): New function.
6951 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6952 * tree-ssa-pre.c: ipa-utils.h
6953 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6954 machinery; sanity check with ipa-prop devirtualization.
6955 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6956 polymorphic flag.
6957
6958 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6959
6960 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6961 * alias.c, cfgexpand.c, cgraphbuild.c,
6962 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6963 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6964 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6965 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6966 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6967 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6968 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6969 dse.c, except.c, gengtype.c, gimple-expr.c,
6970 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6971 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6972 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6973 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6974 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6975 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6976 pointer-set.h.
6977 * pointer-set.c: Remove file.
6978 * pointer-set.h: Remove file.
6979
6980 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6981
6982 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6983 * config/arm/types.md (f_sels, f_seld): Delete.
6984
6985 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6986
6987 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
6988 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
6989 (aarch64_movdi_<mode>high): Likewise.
6990 (aarch64_mov<mode>high_di): Likewise.
6991 (aarch64_movdi_<mode>low): Likewise.
6992 (aarch64_mov<mode>low_di): Likewise.
6993 (aarch64_movtilow_tilow): Likewise.
6994 Add comment explaining usage of fp,simd attributes and of
6995 TARGET_FLOAT and TARGET_SIMD.
6996
6997 2014-08-07 Ian Bolton <ian.bolton@arm.com>
6998 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6999
7000 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7001 Use MOVN when one of the half-words is 0xffff.
7002
7003 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7004
7005 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7006
7007 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7008
7009 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7010 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7011 (rfs_str): String corresponding to RFS_* constants.
7012 (rank_for_schedule_stats_t): New typedef.
7013 (rank_for_schedule_stats): New static variable.
7014 (rfs_result): New static function.
7015 (rank_for_schedule): Track statistics for deciding heuristics.
7016 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7017 static functions.
7018 (ready_sort): Use them for debug printouts.
7019 (schedule_block): Init statistics state. Print statistics on
7020 rank_for_schedule decisions.
7021
7022 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7023
7024 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7025
7026 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7027
7028 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7029 constraint.
7030
7031 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7032
7033 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7034 function to not conflict.
7035 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7036 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7037 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7038 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7039 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7040 of pointer_map.
7041
7042 2014-08-07 Marek Polacek <polacek@redhat.com>
7043
7044 * fold-const.c (fold_binary_loc): Add folding of
7045 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7046
7047 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7048
7049 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7050 instead of type size.
7051 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7052
7053 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7054
7055 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7056 (*thumb1_movqi_insn): Likewise.
7057 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7058
7059 2014-08-07 Tom de Vries <tom@codesourcery.com>
7060
7061 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7062 (glibc_2_11_or_earlier): Remove effective-target keywords.
7063
7064 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7065
7066 * config/arm/arm.c (bdesc_2arg): Fix typo.
7067 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7068
7069 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7070
7071 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7072
7073 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7074
7075 PR debug/61923
7076 * haifa-sched.c (advance_one_cycle): Fix dump.
7077 (schedule_block): Don't advance cycle if we are already at the
7078 beginning of the cycle.
7079
7080 2014-08-06 Martin Jambor <mjambor@suse.cz>
7081
7082 PR ipa/61393
7083 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7084
7085 2014-08-06 Richard Biener <rguenther@suse.de>
7086
7087 PR lto/62034
7088 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7089 SCCs here.
7090 (lto_input_tree): Pop SCCs here.
7091
7092 2014-08-06 Richard Biener <rguenther@suse.de>
7093
7094 PR tree-optimization/61320
7095 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7096 handle misaligned loads.
7097
7098 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7099
7100 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7101 (aarch64_expand_vec_perm_const): Check for dup before zip.
7102
7103 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7104
7105 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7106 CONST_INT_P instead of GET_CODE and compare.
7107 (aarch64_select_cc_mode): Likewise.
7108 (aarch64_print_operand): Likewise.
7109 (aarch64_rtx_costs): Likewise.
7110 (aarch64_simd_valid_immediate): Likewise.
7111 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7112 (aarch64_simd_emit_pair_result_insn): Likewise.
7113
7114 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7115
7116 * gdbhooks.py (find_gcc_source_dir): New helper function.
7117 (class PassNames): New class, locating and parsing passes.def.
7118 (class BreakOnPass): New command "break-on-pass".
7119
7120 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7121
7122 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7123 getting olde.
7124
7125 2014-08-05 Richard Biener <rguenther@suse.de>
7126
7127 PR rtl-optimization/61672
7128 * emit-rtl.h (mem_attrs_eq_p): Declare.
7129 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7130 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7131 * cfgcleanup.c (merge_memattrs): Likewise.
7132 Include emit-rtl.h.
7133
7134 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7135
7136 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7137 rather than singleton vectors.
7138 (vqdmlsls_lane_s32): Likewise.
7139
7140 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7141
7142 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7143 Use VSDQ_HSI mode iterator.
7144 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7145 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7146 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7147 Use BUILTIN_VDQHS macro.
7148 (sqrdmulh_laneq): Likewise.
7149 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7150 (vqdmlals_laneq_s32): Likewise.
7151 (vqdmlslh_laneq_s16): Likewise.
7152 (vqdmlsls_laneq_s32): Likewise.
7153 (vqdmulhh_laneq_s16): Likewise.
7154 (vqdmulhs_laneq_s32): Likewise.
7155 (vqrdmulhh_laneq_s16): Likewise.
7156 (vqrdmulhs_laneq_s32): Likewise.
7157
7158 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7159
7160 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7161 (vmuld_laneq_f64): Likewise.
7162 (vmuls_laneq_f32): Likewise.
7163 (vmul_n_f64): Likewise.
7164 (vmuld_lane_f64): Reimplement in C.
7165 (vmuls_lane_f32): Likewise.
7166
7167 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7168
7169 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7170 to reservation.
7171 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7172
7173 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7174
7175 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7176 (rbitsi2): Likewise.
7177 (*arm_rev): Set predicable and predicable_short_it attributes.
7178
7179 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7180
7181 * convert.c (convert_to_integer): Guard transformation to lrint by
7182 -fno-math-errno.
7183
7184 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7185
7186 * config/aarch64/aarch64-builtins.c
7187 (aarch64_simd_builtin_type_mode): Delete.
7188 (v8qi_UP): Remap to V8QImode.
7189 (v4hi_UP): Remap to V4HImode.
7190 (v2si_UP): Remap to V2SImode.
7191 (v2sf_UP): Remap to V2SFmode.
7192 (v1df_UP): Remap to V1DFmode.
7193 (di_UP): Remap to DImode.
7194 (df_UP): Remap to DFmode.
7195 (v16qi_UP):V16QImode.
7196 (v8hi_UP): Remap to V8HImode.
7197 (v4si_UP): Remap to V4SImode.
7198 (v4sf_UP): Remap to V4SFmode.
7199 (v2di_UP): Remap to V2DImode.
7200 (v2df_UP): Remap to V2DFmode.
7201 (ti_UP): Remap to TImode.
7202 (ei_UP): Remap to EImode.
7203 (oi_UP): Remap to OImode.
7204 (ci_UP): Map to CImode.
7205 (xi_UP): Remap to XImode.
7206 (si_UP): Remap to SImode.
7207 (sf_UP): Remap to SFmode.
7208 (hi_UP): Remap to HImode.
7209 (qi_UP): Remap to QImode.
7210 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7211 (VAR1): Build builtin name.
7212 (aarch64_init_simd_builtins): Remove dead code.
7213
7214 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7215
7216 * graphite-isl-ast-to-gimple.c:
7217 (set_options): New function.
7218 (scop_to_isl_ast): Add calling of set_options.
7219
7220 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7221
7222 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7223 (analyze_iv_to_split_insn): Don't initialize them.
7224 (get_ivts_expr): Removed.
7225 (allocate_basic_variable, insert_base_initialization): Use
7226 SET_SRC instead of *get_ivts_expr.
7227 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7228
7229 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7230
7231 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7232 (translate_isl_ast_for_loop): Add checking of the
7233 flag_loop_parallelize_all.
7234 (ast_build_before_for): New function.
7235 (scop_to_isl_ast): Add checking of the
7236 flag_loop_parallelize_all.
7237 * graphite-dependences.c: Move the defenition of the
7238 scop_get_dependences from graphite-optimize-isl.c to this file.
7239 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7240 (carries_deps): Add checking of the x's value.
7241 * graphite-optimize-isl.c: Move the defenition of the
7242 scop_get_dependences to graphite-dependences.c.
7243 * graphite-poly.h: Add declarations of scop_get_dependences
7244 and carries_deps.
7245
7246 2014-08-04 Rohit <rohitarulraj@freescale.com>
7247
7248 PR target/60102
7249 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7250 names.
7251 (alt_reg_names): Likewise.
7252 (rs6000_dwarf_register_span): For SPE high registers, replace
7253 dwarf register numbers with GCC hard register numbers.
7254 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7255 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7256 register number for the corresponding GCC hard register number.
7257 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7258 newly added GCC hard register numbers for SPE high registers.
7259 (DWARF_FRAME_REGISTERS): Likewise.
7260 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7261 (DWARF_FRAME_REGNUM): Likewise.
7262 (FIXED_REGISTERS): Likewise.
7263 (CALL_USED_REGISTERS): Likewise.
7264 (CALL_REALLY_USED_REGISTERS): Likewise.
7265 (REG_ALLOC_ORDER): Likewise.
7266 (enum reg_class): Likewise.
7267 (REG_CLASS_NAMES): Likewise.
7268 (REG_CLASS_CONTENTS): Likewise.
7269 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7270
7271 2014-08-04 Richard Biener <rguenther@suse.de>
7272
7273 * gimple-fold.h (gimple_fold_builtin): Remove.
7274 * gimple-fold.c (gimple_fold_builtin): Make static.
7275 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7276 fold_stmt, not gimple_fold_builtin.
7277
7278 2014-08-04 Martin Liska <mliska@suse.cz>
7279
7280 * cgraph.h (csi_end_p): Removed.
7281 (csi_next): Likewise.
7282 (csi_node): Likewise.
7283 (csi_start): Likewise.
7284 (cgraph_node_in_set_p): Likewise.
7285 (cgraph_node_set_size): Likewise.
7286 (vsi_end_p): Likewise.
7287 (vsi_next): Likewise.
7288 (vsi_node): Likewise.
7289 (vsi_start): Likewise.
7290 (varpool_node_set_size): Likewise.
7291 (cgraph_node_set_nonempty_p): Likewise.
7292 (varpool_node_set_nonempty_p): Likewise.
7293 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7294 cgraph_node_set.
7295 * ipa-inline-transform.c: Likewise.
7296 * ipa-utils.c (cgraph_node_set_new): Removed.
7297 (cgraph_node_set_add): Likewise.
7298 (cgraph_node_set_remove): Likewise.
7299 (cgraph_node_set_find): Likewise.
7300 (dump_cgraph_node_set): Likewise.
7301 (debug_cgraph_node_set): Likewise.
7302 (free_cgraph_node_set): Likewise.
7303 (varpool_node_set_new): Likewise.
7304 (varpool_node_set_add): Likewise.
7305 (varpool_node_set_remove): Likewise.
7306 (varpool_node_set_find): Likewise.
7307 (dump_varpool_node_set): Likewise.
7308 (free_varpool_node_set): Likewise.
7309 (debug_varpool_node_set): Likewise.
7310 * tree-emutls.c (struct tls_var_data):
7311 (emutls_index): Removed.
7312 (emutls_decl): Likewise.
7313 (gen_emutls_addr): Function implementation uses newly added
7314 hash_map<varpool_node *, tls_var_data>.
7315 (clear_access_vars): Likewise.
7316 (create_emultls_var): Likewise.
7317 (ipa_lower_emutls): Likewise.
7318 (reset_access): New function.
7319
7320 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7321
7322 * config/i386/i386.c (ix86_option_override_internal): Add
7323 PTA_RDRND and PTA_MOVBE for bdver4.
7324
7325 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7326 James Greenhalgh <james.greenhalgh@arm.com>
7327
7328 * doc/md.texi (clrsb): Document.
7329 (clz): Change reference to x into operand 1.
7330 (ctz): Likewise.
7331 (popcount): Likewise.
7332
7333 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7334
7335 PR target/61713
7336 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7337 move to subtarget in serial version if result is ignored.
7338
7339 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7340 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7341
7342 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7343 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7344 (sched_analyze_insn): Update use of try_group_insn to
7345 sched_macro_fuse_insns.
7346 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7347 arguments that are not conditional jumps.
7348
7349 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7350
7351 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7352 family information. Handle BTVER2 cpu with cpuid family value.
7353
7354 2014-08-04 Tom de Vries <tom@codesourcery.com>
7355
7356 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7357 (glibc_2_11_or_earlier): Document effective-target keywords.
7358
7359 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7360
7361 * ipa-devirt.c (odr_type_warn_count): Add type.
7362 (possible_polymorphic_call_targets): Set it.
7363 (ipa_devirt): Use it.
7364
7365 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7366
7367 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7368 Document.
7369 * ipa-devirt.c: Include hash-map.h
7370 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7371 (clear_speculation): Break out of ...
7372 (get_class_context): ... here; speed up handling obviously useless
7373 speculations.
7374 (odr_type_warn_count, decl_warn_count): New structures.
7375 (final_warning_record): New structure.
7376 (final_warning_records): New static variable.
7377 (possible_polymorphic_call_targets): Cleanup handling of
7378 speculative info; do not build speculation when user do not care;
7379 record info about warnings when asked for.
7380 (add_decl_warning): New function.
7381 (type_warning_cmp): New function.
7382 (decl_warning_cmp): New function.
7383 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7384 (gate): Enable pass when warnings are requested.
7385 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7386 options.
7387
7388 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7389
7390 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7391 Fix cast.
7392 (hash_map::remove): New method.
7393 (hash_map::traverse): New method.
7394 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7395 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7396 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7397 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7398 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7399 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7400 pointer_map.
7401
7402 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7403
7404 * hash-set.h: new File.
7405 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7406 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7407 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7408 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7409 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7410 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7411 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7412 varpool.c: Use hash_set instead of pointer_set.
7413
7414 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7415
7416 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7417
7418 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7419
7420 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7421 for frame access when strict_p is false.
7422
7423 2014-08-01 Renlin Li <renlin.li@arm.com>
7424 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7425
7426 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7427 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7428 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7429 Declaration.
7430 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7431 predicate.
7432 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7433 aarch64_mem_pair_offset.
7434
7435 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7436
7437 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7438 offset.
7439 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7440 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7441
7442 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7443
7444 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7445
7446 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7447
7448 PR regression/61510
7449 * cgraphunit.c (analyze_functions): Use get_create rather than get
7450 for decls which are clones of abstract functions.
7451
7452 2014-08-01 Martin Liska <mliska@suse.cz>
7453
7454 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7455 * ipa-prop.h (count_formal_params): Global function created from static.
7456 * ipa-prop.c (count_formal_params): Likewise.
7457 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7458 profiles for semantically equivalent functions.
7459 * passes.c (do_per_function): If we load body of a function
7460 during WPA, this condition should behave same.
7461 * varpool.c (ctor_for_folding): More tolerant assert for variable
7462 aliases created during WPA.
7463
7464 2014-08-01 Martin Liska <mliska@suse.cz>
7465
7466 * doc/invoke.texi (Options That Control Optimization): Documentation
7467 for -foptimize-strlen introduced. Optimization levels default options
7468 fixed.
7469
7470 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7471
7472 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7473 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7474 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7475 type to bool.
7476 * stor-layout.h (min_align_of_type): New prototype.
7477 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7478 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7479 check.
7480 * ubsan.c: Include builtins.h.
7481 (ubsan_expand_bounds_ifn): Change return type to bool,
7482 always return true.
7483 (ubsan_expand_null_ifn): Change return type to bool, change
7484 argument to gimple_stmt_iterator *. Handle both null and alignment
7485 sanitization, take type from ckind argument's type rather than
7486 first argument.
7487 (instrument_member_call): Removed.
7488 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7489 Handle both null and alignment sanitization, don't say whole
7490 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7491 call instead of 2 argument.
7492 (instrument_null): Adjust instrument_mem_ref caller. Don't
7493 instrument calls here.
7494 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7495 like SANITIZE_NULL.
7496 * stor-layout.c (min_align_of_type): New function.
7497 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7498 Or it into SANITIZE_UNDEFINED.
7499 * doc/invoke.texi (-fsanitize=alignment): Document.
7500
7501 2014-07-31 Andi Kleen <ak@linux.intel.com>
7502
7503 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7504
7505 2014-07-31 Andi Kleen <ak@linux.intel.com>
7506
7507 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7508 inchash.
7509 (vn_reference_compute_hash): Dito.
7510 (vn_nary_op_compute_hash): Dito.
7511 (vn_phi_compute_hash): Dito.
7512 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7513
7514 2014-07-31 Andi Kleen <ak@linux.intel.com>
7515
7516 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7517 Rename to inchash:add_expr_commutative. Convert to inchash.
7518 (iterative_hash_hashable_expr): Rename to
7519 inchash:add_hashable_expr. Convert to inchash.
7520 (avail_expr_hash): Dito.
7521
7522 2014-07-31 Andi Kleen <ak@linux.intel.com>
7523
7524 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7525 Convert to inchash.
7526
7527 2014-07-31 Andi Kleen <ak@linux.intel.com>
7528
7529 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7530
7531 2014-07-31 Andi Kleen <ak@linux.intel.com>
7532
7533 * Makefile.in (OBJS): Add rtlhash.o
7534 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7535 (loc_checksum): Dito.
7536 (loc_checksum_ordered): Dito.
7537 (hash_loc_operands): Dito.
7538 (hash_locs): Dito.
7539 (hash_loc_list): Dito.
7540 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7541 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7542 * rtlhash.c: New file.
7543 * rtlhash.h: New file.
7544
7545 2014-07-31 Andi Kleen <ak@linux.intel.com>
7546
7547 * inchash.h (inchash): Change inchash class to namespace.
7548 (class hash): ... Rename from inchash.
7549 (add_object): Move from macro to class template.
7550 * lto-streamer-out.c (hash_tree): Change inchash
7551 to inchash::hash.
7552 * tree.c (build_type_attribute_qual_variant): Dito.
7553 (type_hash_list): Dito.
7554 (attribute_hash_list): Dito.
7555 (iterative_hstate_expr): Rename to inchash::add_expr
7556 (build_range_type_1): Change inchash to inchash::hash
7557 and use hash::add_expr.
7558 (build_array_type_1): Dito.
7559 (build_function_type): Dito
7560 (build_method_type_directly): Dito.
7561 (build_offset_type): Dito.
7562 (build_complex_type): Dito.
7563 (make_vector_type): Dito.
7564 * tree.h (iterative_hash_expr): Dito.
7565
7566 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7567
7568 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7569
7570 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7571
7572 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7573 correct alphabetical position.
7574 (vpaddd_f64): Rewrite using builtins.
7575 (vpaddd_s64): Move to correct alphabetical position.
7576 (vpaddd_u64): New.
7577
7578 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7579
7580 PR target/61844
7581 * config/sh/sh.c (sh_legitimate_address_p,
7582 sh_legitimize_reload_address): Handle reg+reg address modes when
7583 ALLOW_INDEXED_ADDRESS is false.
7584 * config/sh/predicates.md (general_movsrc_operand,
7585 general_movdst_operand): Likewise.
7586
7587 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7588
7589 * config/aarch64/aarch64-builtins.c
7590 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7591 BYTES_BIG_ENDIAN.
7592
7593 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7594
7595 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7596 the generated mask based on BYTES_BIG_ENDIAN.
7597 (aarch64_simd_check_vect_par_cnst_half): New.
7598 * config/aarch64/aarch64-protos.h
7599 (aarch64_simd_check_vect_par_cnst_half): New.
7600 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7601 the check out to aarch64_simd_check_vect_par_cnst_half.
7602 (vect_par_cnst_lo_half): Likewise.
7603 * config/aarch64/aarch64-simd.md
7604 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7605 (move_hi_quad_<mode>): Always generate a low mask.
7606
7607 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7608
7609 * doc/invoke.texi (AVR Options): Add documentation about
7610 __AVR_DEVICE_NAME__ built-in macro.
7611
7612 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7613
7614 PR target/61948
7615 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7616 constraints are satisfied.
7617 (<shift>di3_neon): Likewise.
7618
7619 2014-07-31 Richard Biener <rguenther@suse.de>
7620
7621 PR tree-optimization/61964
7622 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7623 by structural equality.
7624
7625 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7626
7627 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7628 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7629 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7630 New enums.
7631 * gcc.c (sanitize_spec_function): Support new option.
7632 (SANITIZER_SPEC): Remove now redundant check.
7633 * opts.c (common_handle_option): Support new option.
7634 (finish_options): Check for incompatibilities.
7635 * toplev.c (process_options): Split userspace-specific checks.
7636
7637 2014-07-31 Richard Biener <rguenther@suse.de>
7638
7639 * lto-streamer.h (struct output_block): Remove global.
7640 (struct data_in): Remove labels, num_named_labels and
7641 num_unnamed_labels.
7642 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7643 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7644
7645 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7646
7647 PR c++/60517
7648 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7649 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7650 (isolate_path): New argument to avoid inserting a trap.
7651 (find_implicit_erroneous_behaviour): Handle returning the address
7652 of a local variable.
7653 (find_explicit_erroneous_behaviour): Likewise.
7654
7655 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7656
7657 PR lto/61868
7658 * toplev.c (init_random_seed): Move piece of code never called to
7659 set_random_seed.
7660 (set_random_seed): see above.
7661
7662 2014-07-31 Tom de Vries <tom@codesourcery.com>
7663
7664 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7665
7666 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7667
7668 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7669 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7670
7671 2014-07-31 Richard Biener <rguenther@suse.de>
7672
7673 * data-streamer.h (streamer_write_data_stream): Declare here,
7674 renamed from ...
7675 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7676 * lto-cgraph.c (lto_output_node): Adjust.
7677 (lto_output_varpool_node): Likewise.
7678 * data-streamer-out.c (streamer_string_index): Likewise.
7679 (streamer_write_data_stream, lto_append_block): Move from ...
7680 * lto-section-out.c (lto_output_data_stream,
7681 lto_append_block): ... here.
7682
7683 2014-07-30 Mike Stump <mikestump@comcast.net>
7684
7685 * configure.ac: Also check for popen.
7686 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7687 * configure: Regenerate.
7688 * config.in: Regenerate.
7689
7690 2014-07-30 Martin Jambor <mjambor@suse.cz>
7691
7692 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7693 parameter to gimple.
7694
7695 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7696
7697 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7698 address as second parameter to __tpf_eh_return routine.
7699
7700 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7701
7702 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7703 Thumb2.
7704
7705 2014-07-30 Tom Tromey <tromey@redhat.com>
7706
7707 PR c/59855
7708 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7709 * doc/extend.texi (Type Attributes): Document designated_init
7710 attribute.
7711
7712 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7713
7714 * graphite-isl-ast-to-gimple.c:
7715 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7716 (gcc_expression_from_isl_expression): Pass type to
7717 gcc_expression_from_isl_ast_expr_id.
7718
7719 2014-07-30 Richard Biener <rguenther@suse.de>
7720
7721 * lto-streamer.h (lto_write_data): New function.
7722 * langhooks.c (lhd_append_data): Do not free block.
7723 * lto-section-out.c (lto_write_data): New function writing
7724 raw data to the current section.
7725 (lto_write_stream): Adjust for langhook semantic change.
7726 (lto_destroy_simple_output_block): Write header directly.
7727 * lto-opts.c (lto_write_options): Write options directly.
7728 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7729 (lto_output_toplevel_asms): Likewise.
7730 (copy_function_or_variable): Copy data directly.
7731 (write_global_references): Output index table directly.
7732 (lto_output_decl_state_refs): Likewise.
7733 (write_symbol): Write data directly.
7734 (produce_symtab): Adjust.
7735 (produce_asm_for_decls): Output header and refs directly.
7736
7737 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7738
7739 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7740 to speculative_targets
7741 (get_class_context): Fix handling of contextes without outer type;
7742 avoid matching non-polymorphic types in LTO.
7743 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7744 parameter to speculative_targetsp; handle speculation.
7745 (dump_possible_polymorphic_call_targets): Update dumping.
7746
7747 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7748
7749 * common.opt (Wodr): Enable by default.
7750
7751 2014-07-29 Olivier Hainque <hainque@adacore.com>
7752
7753 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7754
7755 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7756
7757 PR bootstrap/61914
7758 * gengtype.c (strtoken): New function.
7759 (create_user_defined_type): Replace strtok with strtoken.
7760
7761 2014-07-29 Nathan Sidwell <nathan@acm.org>
7762
7763 * gcov-io.c (gcov_var): Make hidden.
7764 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7765 (gcov_do_dump): Declare.
7766 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7767
7768 2014-07-29 Martin Jambor <mjambor@suse.cz>
7769
7770 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7771 parameter to gimple.
7772 (sra_modify_assign): Likewise.
7773
7774 2014-07-29 Richard Biener <rguenther@suse.de>
7775
7776 PR middle-end/52478
7777 * expr.c (expand_expr_real_2): Revert last change.
7778
7779 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7780
7781 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7782 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7783 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7784 call.
7785 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7786 (contains_type_p): Forward declare.
7787 (polymorphic_call_target_hasher::hash): Hash speculative info.
7788 (polymorphic_call_target_hasher::equal): Compare speculative info.
7789 (get_class_context): Handle speuclation.
7790 (contains_type_p): Update.
7791 (get_polymorphic_call_info_for_decl): Update.
7792 (walk_ssa_copies): Break out from ...
7793 (get_polymorphic_call_info): ... here; set speculative context
7794 before giving up.
7795 * ipa-prop.c (ipa_write_indirect_edge_info,
7796 ipa_read_indirect_edge_info): Stream speculative context.
7797 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7798 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7799 SPECULATIVE_MAYBE_DERIVED_TYPE).
7800 (possible_polymorphic_call_targets overriders): Update.
7801 (dump_possible_polymorphic_call_targets overriders): Update.
7802 (dump_possible_polymorphic_call_target_p overriders): Update.
7803
7804 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7805
7806 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7807 ipa-devirt path; fix thinko there.
7808
7809 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7810
7811 * config/i386/i386.c (ix86_return_in_memory): Replace one
7812 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7813
7814 2014-07-28 Marek Polacek <polacek@redhat.com>
7815
7816 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7817
7818 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7819
7820 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7821 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7822 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7823 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7824 (USE_LD_AS_NEEDED): Likewise.
7825 (ASM_APP_ON): Likewise.
7826 (ASM_APP_OFF): Likewise.
7827 (TARGET_POSIX_IO): Likewise.
7828 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7829 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7830 (USE_LD_AS_NEEDED): Likewise.
7831 (ASM_APP_ON): Likewise.
7832 (ASM_APP_OFF): Likewise.
7833 (TARGET_POSIX_IO): Likewise.
7834
7835 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7836
7837 PR middle-end/61734
7838 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7839 operators other than the equality operators.
7840
7841 2014-07-28 Richard Biener <rguenther@suse.de>
7842
7843 PR middle-end/52478
7844 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7845 sure to register SImode ones, not only >= word_mode ones.
7846 * expr.c (expand_expr_real_2): When expanding -ftrapv
7847 binops do not use OPTAB_LIB_WIDEN.
7848
7849 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7850
7851 PR middle-end/61919
7852 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7853 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7854 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7855 inserting them in the insn stream.
7856
7857 2014-07-28 Marek Polacek <polacek@redhat.com>
7858
7859 PR middle-end/61913
7860 * common.opt (Wodr): Add Var.
7861
7862 2014-07-28 Richard Biener <rguenther@suse.de>
7863
7864 PR tree-optimization/61921
7865 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7866 if there is a varpool node before dereferencing it.
7867
7868 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7869
7870 * graphite-sese-to-poly.c:
7871 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7872 id of the pbb), which contains pointer to the pbb1.
7873
7874 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7875
7876 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7877
7878 * graphite-isl-ast-to-gimple.c:
7879 (graphite_create_new_guard): New function.
7880 (translate_isl_ast_node_if): New function.
7881 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7882
7883 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7884
7885 2014-07-27 Anthony Green <green@moxielogic.com>
7886
7887 * config.gcc: Add moxie-*-moxiebox* configuration.
7888 * config/moxie/moxiebox.h: New file.
7889
7890 2014-07-26 Andrew Pinski <apinski@cavium.com>
7891
7892 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7893 from the read only register.
7894
7895 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7896
7897 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7898 as the allocation class if it isn't likely to be spilled.
7899
7900 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7901
7902 * rtl.h (tls_referenced_p): Declare.
7903 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7904 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7905 (mips_cannot_force_const_mem): Use tls_referenced_p.
7906 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7907 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7908 instead of pa_tls_referenced_p.
7909 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7910 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7911 (pa_legitimate_constant_p): Likewise.
7912 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7913 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7914 (rs6000_cannot_force_const_mem, rs6000_emit_move)
7915 (rs6000_address_for_altivec): Use tls_referenced_p instead of
7916 rs6000_tls_referenced_p.
7917 (rs6000_tls_symbol_ref_1): Delete.
7918
7919 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
7920
7921 PR target/44551
7922 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7923 Optimize inverse of a VEC_CONCAT.
7924
7925 2014-07-25 Xinliang David Li <davidxl@google.com>
7926
7927 * params.def: New parameter.
7928 * coverage.c (get_coverage_counts): Check new flag.
7929 (coverage_compute_profile_id): Check new flag.
7930 (coverage_begin_function): Check new flag.
7931 (coverage_end_function): Check new flag.
7932 * value-prof.c (coverage_node_map_initialized_p): New function.
7933 (init_node_map): Populate map with all functions.
7934 * doc/invoke.texi: Document new parameter.
7935
7936 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
7937 Richard Biener <rguenther@suse.de>
7938
7939 * lto-streamer-out.c (struct sccs): Turn to ...
7940 (class DFS): ... this one; refactor the DFS walk so it can
7941 be re-done on per-SCC basis.
7942 (DFS::DFS): New constructor.
7943 (DFS::~DFS): New destructor.
7944 (hash_tree): Add new MAP argument holding in-SCC hash values;
7945 remove POINTER_TYPE hashing hack.
7946 (scc_entry_compare): Rename to ...
7947 (DFS::scc_entry_compare): ... this one.
7948 (hash_scc): Rename to ...
7949 (DFS::hash_scc): ... this one; pass output_block instead
7950 of streamer_cache; work harder to get unique and stable SCC
7951 hashes.
7952 (DFS_write_tree): Rename to ...
7953 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7954 (lto_output_tree): Update.
7955
7956 2014-07-25 Andi Kleen <ak@linux.intel.com>
7957
7958 * lto-streamer-out.c (hash_tree): Convert to inchash.
7959
7960 2014-07-25 Andi Kleen <ak@linux.intel.com>
7961
7962 * tree.c (build_type_attribute_qual_variant): Use inchash.
7963 (type_hash_list): Dito.
7964 (attribute_hash_list): Dito
7965 (iterative_hstate_expr): Dito.
7966 (iterative_hash_expr): Dito.
7967 (build_range_type_1): Dito.
7968 (build_array_type_1): Dito.
7969 (build_function_type): Dito.
7970 (build_method_type_directly): Dito.
7971 (build_offset_type): Dito.
7972 (build_complex_type): Dito.
7973 (make_vector_type): Dito.
7974 * tree.h (iterative_hash_expr): Add compat wrapper.
7975 (iterative_hstate_expr): Add.
7976
7977 2014-07-25 Andi Kleen <ak@linux.intel.com>
7978
7979 * Makefile.in (OBJS): Add inchash.o.
7980 (PLUGIN_HEADERS): Add inchash.h.
7981 * ipa-devirt.c: Include inchash.h.
7982 * lto-streamer-out.c: Dito.
7983 * tree-ssa-dom.c: Dito.
7984 * tree-ssa-pre.c: Dito.
7985 * tree-ssa-sccvn.c: Dito.
7986 * tree-ssa-tail-merge.c: Dito.
7987 * asan.c: Dito.
7988 * tree.c (iterative_hash_hashval_t): Move to ...
7989 (iterative_hash_host_wide_int): Move to ...
7990 * inchash.c: Here. New file.
7991 * tree.h (iterative_hash_hashval_t): Move to ...
7992 (iterative_hash_host_wide_int): Move to ...
7993 * inchash.h: Here. New file.
7994
7995 2014-07-25 Richard Biener <rguenther@suse.de>
7996
7997 PR middle-end/61762
7998 PR middle-end/61894
7999 * fold-const.c (native_encode_int): Add and handle offset
8000 parameter to do partial encodings of expr.
8001 (native_encode_fixed): Likewise.
8002 (native_encode_real): Likewise.
8003 (native_encode_complex): Likewise.
8004 (native_encode_vector): Likewise.
8005 (native_encode_string): Likewise.
8006 (native_encode_expr): Likewise.
8007 * fold-const.c (native_encode_expr): Add offset parameter
8008 defaulting to -1.
8009 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8010 (fold_ctor_reference): Handle all reads from tcc_constant
8011 ctors.
8012
8013 2014-07-25 Richard Biener <rguenther@suse.de>
8014
8015 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8016 as possibly unused.
8017
8018 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8019
8020 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8021
8022 2014-07-24 Kyle McMartin <kyle@redhat.com>
8023
8024 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8025
8026 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8027
8028 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8029 Add prototype.
8030 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8031 function.
8032 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8033 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8034 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8035
8036 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8037
8038 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8039 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8040 aggregate types. Instead, *all* aggregate types, except for single-
8041 element or homogeneous float/vector aggregates, are quadword-aligned
8042 if required by their type alignment. Issue -Wpsabi note when a type
8043 is now treated differently than before.
8044
8045 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8046
8047 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8048 does not fit fully into floating-point registers, and there is still
8049 space in the register parameter area, use GPRs to pass those parts
8050 of the argument. Issue -Wpsabi note if any parameter is now treated
8051 differently than before.
8052 (rs6000_arg_partial_bytes): Update.
8053
8054 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8055
8056 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8057
8058 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8059
8060 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8061 * toplev.c (initialize_rtl): Don't use it. Move previously
8062 "language-dependent" calls to...
8063 (backend_init): ...here.
8064 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8065 Assert that RTL initialization hasn't happend yet.
8066
8067 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8068
8069 PR rtl-optimization/61629
8070 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8071 they have already been initialized.
8072
8073 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8074
8075 PR middle-end/61268
8076 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8077 DECL_INCOMING_RTL and entry_parm.
8078 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8079 * calls.c (load_register_parameters): Likewise argument values.
8080 (emit_library_call_value_1, store_one_arg): Likewise argument
8081 save areas.
8082 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8083 stack slot.
8084 * explow.c (validize_mem): Modify the argument in-place.
8085
8086 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8087
8088 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8089 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8090
8091 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8092
8093 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8094 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8095
8096 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8097
8098 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8099 (aarch64_save_callee_saves): New parameter "skip_wb".
8100 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8101
8102 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8103
8104 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8105 "wb_candidate2".
8106 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8107
8108 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8109
8110 * graphite-isl-ast-to-gimple.c:
8111 (graphite_create_new_loop): Add calling of isl_id_free to properly
8112 decrement reference counts.
8113
8114 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8115
8116 2014-07-24 Martin Liska <mliska@suse.cz>
8117 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8118 function used.
8119 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8120 (rs6000_code_end): Likewise.
8121
8122 2014-07-24 Martin Liska <mliska@suse.cz>
8123
8124 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8125 symtab_node funtion used.
8126 (rs6000_xcoff_declare_object_name): Likewise.
8127
8128 2014-07-24 Martin Liska <mliska@suse.cz>
8129
8130 * cgraphunit.c (compile): Correct function used.
8131
8132 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8133
8134 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8135 as non-indexable.
8136
8137 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8138
8139 PR lto/61802
8140 * varasm.c (bss_initializer_p): Handle offlined ctors.
8141 (align_variable, get_variable_align): Likewise.
8142 (make_decl_one_only): Likewise.
8143 (default_binds_local_p_1): Likewise.
8144 (decl_binds_to_current_def_p): Likewise.
8145 (get_variable_section): Get constructor if it is offlined.
8146 (assemble_variable_contents): Sanity check that the caller
8147 streamed in the ctor in LTO.
8148
8149 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8150
8151 * graphite-isl-ast-to-gimple.c:
8152 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8153 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8154 isl_ast_op_pdiv_r to the different case.
8155
8156 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8157
8158 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8159
8160 PR middle-end/61876
8161 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8162 when flag_errno_math is on.
8163
8164 2014-07-24 Martin Liska <mliska@suse.cz>
8165
8166 * cgraph.h (varpool_node):
8167 (availability get_availability (void)):
8168 created from cgraph_variable_initializer_availability
8169 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8170 created from: cgraph_variable_initializer_availability
8171 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8172 (void finalize_named_section_flags (void)):
8173 created from varpool_finalize_named_section_flags
8174 (bool assemble_decl (void)): created from varpool_assemble_decl
8175 (void analyze (void)): created from varpool_analyze_node
8176 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8177 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8178 (void remove_initializer (void)): created from varpool_remove_initializer
8179 (tree get_constructor (void)): created from varpool_get_constructor
8180 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8181 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8182 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8183 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8184 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8185 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8186 (static bool output_variables (void)): created from varpool_output_variables
8187 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8188 created from varpool_extra_name_alias
8189 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8190 (static void dump_varpool (FILE *f)): created from dump_varpool
8191 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8192 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8193 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8194 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8195 (void assemble_aliases (void)): created from assemble_aliases
8196
8197 2014-07-24 Martin Liska <mliska@suse.cz>
8198
8199 * cgraph.h (symtab_node):
8200 (void register_symbol (void)): created from symtab_register_node
8201 (void remove (void)): created from symtab_remove_node
8202 (void dump (FILE *f)): created from dump_symtab_node
8203 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8204 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8205 (struct ipa_ref *add_reference (symtab_node *referred_node,
8206 enum ipa_ref_use use_type)): created from add_reference
8207 (struct ipa_ref *add_reference (symtab_node *referred_node,
8208 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8209 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8210 gimple stmt)): created from maybe_add_reference
8211 (bool semantically_equivalent_p (symtab_node *target)): created from
8212 symtab_semantically_equivalent_p
8213 (void remove_from_same_comdat_group (void)): created from
8214 remove_from_same_comdat_group
8215 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8216 symtab_add_to_same_comdat_group
8217 (void dissolve_same_comdat_group_list (void)): created from
8218 symtab_dissolve_same_comdat_group_list
8219 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8220 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8221 created from symtab_alias_ultimate_target
8222 (inline symtab_node *next_defined_symbol (void)): created from
8223 symtab_next_defined_symbol
8224 (bool resolve_alias (symtab_node *target)): created from
8225 symtab_resolve_alias
8226 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8227 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8228 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8229 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8230 (void set_section (const char *section)): created from set_section_1
8231 (enum availability get_availability (void)): created from symtab_node_availability
8232 (void make_decl_local (void)): created from symtab_make_decl_local
8233 (bool real_symbol_p (void)): created from symtab_read_node
8234 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8235 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8236 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8237 symtab_in_same_comdat_p;
8238 (bool address_taken_from_non_vtable_p (void)): created from
8239 address_taken_from_non_vtable_p
8240 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8241 (static void dump_table (FILE *)): created from dump_symtab
8242 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8243 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8244 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8245 symtab_used_from_object_file_p
8246 (void dump_base (FILE *)): created from dump_symtab_base
8247 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8248 (void unregister (void)): created from symtab_unregister_node
8249 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8250 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8251 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8252 symtab_nonoverwritable_alias_1
8253 * cgraph.h (cgraph_node):
8254 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8255 created from cgraph_remove_node_and_inline_clones
8256 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8257 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8258 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8259 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8260 created from cgraph_function_node
8261 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8262 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8263 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8264 created from cgraph_create_clone
8265 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8266 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8267 created from cgraph_create_virtual_clone
8268 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8269 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8270 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8271 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8272 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8273 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8274 created from cgraph_function_version_info
8275 (struct cgraph_function_version_info *insert_new_function_version (void)):
8276 created from insert_new_cgraph_node_version
8277 (struct cgraph_function_version_info *function_version (void)): created from
8278 get_cgraph_node_version
8279 (void analyze (void)): created from analyze_function
8280 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8281 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8282 tree real_alias) cgraph_add_thunk
8283 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8284 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8285 created from cgraph_function_or_thunk_node
8286 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8287 created from expand_thunk
8288 (void reset (void)): created from cgraph_reset_node
8289 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8290 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8291 (void remove (void)): created from cgraph_remove_node
8292 (void dump (FILE *f)): created from dump_cgraph_node
8293 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8294 (bool get_body (void)): created from cgraph_get_body
8295 (void release_body (void)): created from cgraph_release_function_body
8296 (void unnest (void)): created from cgraph_unnest_node
8297 (void make_local (void)): created from cgraph_make_node_local
8298 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8299 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8300 gcov_type count, int freq)): created from cgraph_create_edge
8301 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8302 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8303 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8304 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8305 created from cgraph_create_edge_including_clones
8306 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8307 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8308 (void remove_callers (void)): created from cgraph_node_remove_callers
8309 (void remove_callees (void)): created from cgraph_node_remove_callees
8310 (enum availability get_availability (void)): created from cgraph_function_body_availability
8311 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8312 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8313 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8314 (void call_duplication_hooks (cgraph_node *node2)): created from
8315 cgraph_call_node_duplication_hooks
8316 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8317 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8318 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8319 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8320 (void call_function_insertion_hooks (void)):
8321 created from cgraph_call_function_insertion_hooks
8322 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8323 (bool local_p (void)): created from cgraph_local_node
8324 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8325 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8326 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8327 (inline bool only_called_directly_or_aliased_p (void)):
8328 created from cgraph_only_called_directly_or_aliased_p
8329 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8330 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8331 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8332 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8333 (bool can_remove_if_no_direct_calls_p (void)):
8334 created from cgraph_can_remove_if_no_direct_calls_p
8335 (inline bool has_gimple_body_p (void)):
8336 created from cgraph_function_with_gimple_body_p
8337 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8338 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8339 (static inline void debug_cgraph (void)): created from debug_cgraph
8340 (static void record_function_versions (tree decl1, tree decl2)):
8341 created from record_function_versions
8342 (static void delete_function_version (tree decl)):
8343 created from delete_function_version
8344 (static void add_new_function (tree fndecl, bool lowered)):
8345 created from cgraph_add_new_function
8346 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8347 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8348 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8349 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8350 (static cgraph_node *get_for_asmname (tree asmname)):
8351 created from cgraph_node_for_asm
8352 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8353 created from cgraph_same_body_alias
8354 (static bool used_from_object_file_p_worker (cgraph_node *node,
8355 void *): new function
8356 (static bool non_local_p (cgraph_node *node, void *)):
8357 created from cgraph_non_local_node_p_1
8358 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8359 created from verify_cgraph
8360 (static bool make_local (cgraph_node *node, void *)):
8361 created from cgraph_make_node_local
8362 (static cgraph_node *create_alias (tree alias, tree target)):
8363 created from cgraph_create_function_alias
8364 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8365 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8366 created from cgraph_create_edge_1
8367 * cgraph.h (varpool_node):
8368 (void remove (void)): created from varpool_remove_node
8369 (void dump (FILE *f)): created from dump_varpool_node
8370
8371 2014-07-24 Richard Biener <rguenther@suse.de>
8372
8373 PR ipa/61823
8374 * tree-ssa-structalias.c (create_variable_info_for_1):
8375 Use varpool_get_constructor.
8376 (create_variable_info_for): Likewise.
8377
8378 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8379
8380 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8381 subtract outgoing area size when restoring stack_pointer_rtx.
8382
8383 2014-07-24 Nick Clifton <nickc@redhat.com>
8384
8385 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8386 that operations are taking place in parallel.
8387 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8388
8389 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8390
8391 * omp-low.c (extract_omp_for_data): Add missing break statement.
8392
8393 2014-07-24 Richard Biener <rguenther@suse.de>
8394
8395 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8396 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8397 and adjust MOVE_RATIO query accordingly.
8398 (estimate_num_insns): Adjust callers.
8399 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8400 * ipa-cp.c (gather_context_independent_values,
8401 estimate_local_effects): Likewise.
8402 * ipa-split.c (consider_split): Likewise.
8403
8404 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8405
8406 * config/i386/driver-i386.c: Remove names of unused arguments and
8407 unnecessary unused attributes.
8408 * config/i386/host-mingw32.c: Likewise.
8409 * config/i386/i386.c: Likewise.
8410 * config/i386/winnt-stubs.c: Likewise.
8411 * config/i386/winnt.c: Likewise.
8412
8413 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8414
8415 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8416 (aarch64_gen_loadwb_pair): New helper function.
8417 (aarch64_expand_epilogue): Simplify code using new helper functions.
8418 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8419
8420 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8421
8422 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8423 (aarch64_gen_storewb_pair): New helper function.
8424 (aarch64_expand_prologue): Simplify code using new helper functions.
8425 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8426
8427 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8428
8429 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8430 Rename to aarch64_save_callee_saves, remove restore code.
8431 (aarch64_restore_callee_saves): New function.
8432
8433 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8434
8435 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8436 (aarch64_save_callee_saves): New function to handle reg save
8437 for both core and vectore regs.
8438
8439 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8440
8441 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8442 (aarch64_gen_store_pair): New helper function.
8443 (aarch64_save_or_restore_callee_save_registers)
8444 (aarch64_save_or_restore_fprs): Use new helper functions.
8445
8446 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8447
8448 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8449 (aarch64_save_or_restore_callee_save_registers)
8450 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8451
8452 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8453
8454 * config/aarch64/aarch64.c
8455 (aarch64_save_or_restore_callee_save_registers)
8456 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8457
8458 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8459
8460 * config/aarch64/aarch64.c
8461 (aarch64_save_or_restore_callee_save_registers)
8462 (aarch64_save_or_restore_fprs): Remove 'increment'.
8463
8464 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8465
8466 * config/aarch64/aarch64.c
8467 (aarch64_save_or_restore_callee_save_registers)
8468 (aarch64_save_or_restore_fprs): Use register offset in
8469 cfun->machine->frame.reg_offset.
8470
8471 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8472
8473 * config/aarch64/aarch64.c
8474 (aarch64_save_or_restore_callee_save_registers)
8475 (aarch64_save_or_restore_fprs): Remove base_rtx.
8476
8477 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8478
8479 * config/aarch64/aarch64.c
8480 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8481 to 'start_offset'. Remove local variable 'start_offset'.
8482
8483 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8484
8485 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8486 type to HOST_WIDE_INT.
8487
8488 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8489
8490 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8491 (aarch64_save_or_restore_fprs)
8492 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8493
8494 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8495
8496 * config/arm/t-rtems-eabi: Add
8497 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8498 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8499 mbig-endian/mthumb/march=armv7-r, and
8500 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8501 multilibs.
8502
8503 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8504 Chris Johns <chrisj@rtems.org>
8505 Joel Sherrill <joel.sherrill@oarcorp.com>
8506
8507 * config.gcc: Add nios2-*-rtems*.
8508 * config/nios2/rtems.h: New file.
8509 * gcc/config/nios2/t-rtems: New file.
8510
8511 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8512
8513 PR target/61396
8514 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8515 constant numbers, not general constants.
8516 (rs6000_expand_vector_init): Ditto.
8517
8518 2014-07-23 Nathan Sidwell <nathan@acm.org>
8519
8520 * gcov-tool.c (gcov_list): Declare here.
8521 (set_gcov_list): Remove.
8522 (gcov_output_files): Set gcov_list directly.
8523
8524 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8525
8526 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8527
8528 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8529
8530 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8531 callee-saved registers are available for padding purpose
8532 and r3 is not mandatory, then prefer use those callee-saved
8533 instead of r3.
8534
8535 2014-07-23 Richard Biener <rguenther@suse.de>
8536
8537 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8538 * combine.c: Include statistics.h and params.h.
8539 (combine_instructions): Guard three and four insn combines
8540 with max-combine-insns value. Record statistics for combines
8541 performed.
8542 * doc/invoke.texi (max-combine-insns): Document new param.
8543
8544 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8545
8546 * graphite-isl-ast-to-gimple.c:
8547 (translate_isl_ast_node_block): New function.
8548 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8549
8550 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8551 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8552
8553 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8554
8555 * graphite-isl-ast-to-gimple.c:
8556 (get_max_schedule_dimensions): New function.
8557 (extend_schedule): Likewise.
8558 (generate_isl_schedule): Add calling of extend_schedule and
8559 get_max_schedule_dimensions.
8560
8561 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8562
8563 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8564 (case UNSPEC): Handle UNSPEC_RBIT.
8565
8566 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8567
8568 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8569 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8570
8571 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8572
8573 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8574
8575 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8576
8577 * graphite-isl-ast-to-gimple.c:
8578 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8579 (ivs_params_clear):
8580 (build_iv_mapping): New function.
8581 (translate_isl_ast_node_user): Likewise.
8582 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8583
8584 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8585 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8586 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8587
8588 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8589
8590 PR target/55701
8591 * config/arm/arm.md (setmem): New pattern.
8592 * config/arm/arm-protos.h (struct tune_params): New fields.
8593 (arm_gen_setmem): New prototype.
8594 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8595 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8596 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8597 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8598 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8599 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8600 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8601 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8602 (arm_const_inline_cost): New function.
8603 (arm_block_set_max_insns): New function.
8604 (arm_block_set_non_vect_profit_p): New function.
8605 (arm_block_set_vect_profit_p): New function.
8606 (arm_block_set_unaligned_vect): New function.
8607 (arm_block_set_aligned_vect): New function.
8608 (arm_block_set_unaligned_non_vect): New function.
8609 (arm_block_set_aligned_non_vect): New function.
8610 (arm_block_set_vect, arm_gen_setmem): New functions.
8611
8612 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8613
8614 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8615
8616 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8617
8618 PR target/61855
8619 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8620 out of #ifdef __OPTIMIZE__.
8621
8622 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8623
8624 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8625 different trapping status if -fnon-call-exceptions is enabled.
8626
8627 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8628
8629 * expr.c (store_field): Handle VOIDmode for calls that return values
8630 in multiple locations.
8631
8632 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8633
8634 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8635 (altivec_vsldoi_<mode>): Likewise.
8636
8637 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8638
8639 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8640 to the number of characters in the line.
8641
8642 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8643
8644 * graphite-isl-ast-to-gimple.c: Add using of
8645 build_nonstandard_integer_type instead of int128_integer_type_node.
8646
8647 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8648
8649 * toplev.c (output_stack_usage): Adjust the location of the warning.
8650
8651 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8652
8653 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8654 (*membar_storeload): Disable for LEON3.
8655
8656 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8657
8658 PR rtl-optimization/61461
8659 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8660
8661 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8662
8663 PR target/61794
8664 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8665 Fix instruction constraint.
8666 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8667
8668 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8669
8670 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8671
8672 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8673
8674 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8675 GNU coding standards.
8676 (nds32_register_move_cost): Likewise.
8677 (nds32_memory_move_cost): Likewise.
8678 (nds32_address_cost): Likewise.
8679
8680 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8681
8682 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8683
8684 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8685
8686 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8687 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8688 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8689 (HAVE_sync_compare_and_swapqi): Define.
8690 (HAVE_sync_compare_and_swaphi): Likewise.
8691 (HAVE_sync_compare_and_swapsi): Likewise.
8692
8693 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8694
8695 * config/mips/p5600.md: Add missing cpu tests.
8696
8697 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8698
8699 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8700 (vmla_f64): Likewise.
8701 (vfms_f64): Likewise.
8702 (vmls_f64): Likewise.
8703
8704 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8705
8706 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8707 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8708
8709 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8710
8711 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8712 (vmlal_high_lane_s32): Likewise.
8713 (vmlal_high_lane_u16): Likewise.
8714 (vmlal_high_lane_u32): Likewise.
8715 (vmlsl_high_lane_s16): Likewise.
8716 (vmlsl_high_lane_s32): Likewise.
8717 (vmlsl_high_lane_u16): Likewise.
8718 (vmlsl_high_lane_u32): Likewise.
8719
8720 2014-07-17 Terry Guo <terry.guo@arm.com>
8721
8722 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8723 (alus_reg): Renamed to alus_sreg.
8724 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8725 from alu_reg to alu_sreg. Change type of dsp instructions from
8726 alu_reg to alu_dsp_reg.
8727 * config/arm/thumb1.md: Likewise.
8728 * config/arm/thumb2.md: Likewise.
8729 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8730 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8731 with alu_sreg and alus_sreg.
8732 * config/arm/arm1026ejs.md (alu_op): Likewise.
8733 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8734 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8735 * config/arm/fa526.md (526_alu_op): Likewise.
8736 * config/arm/fa606te.md (606te_alu_op): Likewise.
8737 * config/arm/fa626te.md (626te_alu_op): Likewise.
8738 * config/arm/fa726te.md (726te_alu_op): Likewise.
8739 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8740 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8741 alu_sreg, alu_dsp_reg and alus_sreg.
8742 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8743 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8744 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8745 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8746 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8747 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8748 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8749 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8750 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8751 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8752 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8753 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8754 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8755 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8756 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8757 alus_reg to alus_sreg.
8758
8759 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8760
8761 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8762 infinity format.
8763
8764 2014-07-17 Richard Biener <rguenther@suse.de>
8765
8766 PR rtl-optimization/61801
8767 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8768 don't set reg_pending_barrier if it appears in a debug-insn.
8769
8770 2014-07-16 DJ Delorie <dj@redhat.com>
8771
8772 * config/rx/rx.c (rx_option_override): Fix alignment values.
8773 (rx_align_for_label): Likewise.
8774
8775 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8776
8777 PR target/61737.
8778 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8779 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8780 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8781 functions.
8782 (cris_print_index, cris_print_operand, cris_constant_index_p)
8783 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8784 (cris_address_cost): Ditto last CONSTANT_P.
8785 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8786 callers changed. Yield cris_offsettable_symbol for non-PIC
8787 constant symbolic expressions including labels. Yield cris_unspec
8788 for all unspecs.
8789 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8790 target to pic_offset_table_rtx for calls that will likely go
8791 through PLT, const0_rtx when they can't. All callers changed.
8792 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8793 symbolic expressions to be PICified. Remove second, redundant,
8794 assert on can_create_pseudo_p returning non-zero. Use
8795 replace_equiv_address_nv, not replace_equiv_address, for final
8796 operand update.
8797 * config/cris/cris.md ("movsi"): Move variable t to pattern
8798 toplevel. Adjust assert for new cris_symbol_type member. Use
8799 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8800 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8801 for lapc stricter.
8802 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8803 ("call", "call_value"): Use second incoming operand as a marker
8804 for pic-offset-table-register being used.
8805 ("*expanded_call_non_v32", "*expanded_call_v32")
8806 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8807 second incoming operand to CALL, match cris_call_type_marker.
8808 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8809 ("*expanded_call_side"): Ditto. Fix typo in comment.
8810 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8811 CONSTANT_P.
8812 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8813 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8814 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8815 users changed. Add members cris_offsettable_symbol and cris_unspec.
8816 (cris_symbol_type): Rename from cris_pic_symbol_type.
8817 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8818 just CONSTANT_P.
8819 * config/cris/cris-protos.h (cris_symbol_type_of,
8820 cris_expand_pic_call_address): Adjust prototypes.
8821 (cris_legitimate_constant_p): New prototype.
8822
8823 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8824 an existing tmake_file. Don't add t-slibgcc and t-linux.
8825
8826 2014-07-17 Jason Merrill <jason@redhat.com>
8827
8828 PR c++/61623
8829 * symtab.c (symtab_remove_from_same_comdat_group): Also
8830 set_comdat_group to NULL_TREE.
8831 (verify_symtab): Fix diagnostic.
8832
8833 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8834
8835 PR target/61662
8836 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8837
8838 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8839
8840 Support location tracking for built-in macro tokens
8841 * input.h (is_location_from_builtin_token): New function declaration.
8842 * input.c (is_location_from_builtin_token): New function definition.
8843 * toplev.c (general_init): Tell libcpp what the pre-defined
8844 spelling location for built-in tokens is.
8845
8846 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8847
8848 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8849 on the FUNCTION_DECL.
8850
8851 2014-07-16 Richard Biener <rguenther@suse.de>
8852
8853 PR other/61782
8854 * doc/extend.texi (always_inline): Clarify.
8855
8856 2014-07-15 Eric Christopher <echristo@gmail.com>
8857
8858 * doc/invoke.texi (Link Options): Document -z option.
8859
8860 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8861
8862 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8863 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8864
8865 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8866
8867 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8868
8869 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
8870
8871 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8872 varpool_assemble_decl.
8873 * varpool.c (varpool_assemble_decl): Assert that node->definition is
8874 true.
8875
8876 2014-07-15 Michael Matz <matz@suse.de>
8877
8878 PR rtl-optimization/61772
8879 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8880
8881 2014-07-15 Richard Biener <rguenther@suse.de>
8882
8883 * opts.c (default_options_table): Disable bit-ccp at -Og.
8884
8885 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8886
8887 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8888
8889 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8890
8891 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8892 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8893 call langhook for unknown declaration.
8894 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8895 * tree.h (DECL_ARGUMENTS): Update.
8896 * print-tree.c (print_node): Update.
8897 * tree-core.h (tree_decl_non_common): Remove arguments.
8898 (tree_function_decl): Add arguments.
8899
8900 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
8901
8902 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8903
8904 2014-07-14 Richard Biener <rguenther@suse.de>
8905
8906 PR tree-optimization/61779
8907 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8908 simplifying a condition.
8909
8910 2014-07-14 Richard Biener <rguenther@suse.de>
8911
8912 * builtins.c (c_strlen): Make only_value == 2 really only
8913 affect warning generation.
8914
8915 2014-07-14 Richard Biener <rguenther@suse.de>
8916
8917 PR tree-optimization/61757
8918 PR tree-optimization/61783
8919 PR tree-optimization/61787
8920 * tree-ssa-dom.c (record_equality): Revert canonicalization
8921 change and add comment.
8922 (propagate_rhs_into_lhs): Revert previous fix, removing
8923 loop depth restriction again.
8924
8925 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8926
8927 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8928 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8929 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8930 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8931 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8932 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8933 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8934
8935 2014-07-14 Richard Biener <rguenther@suse.de>
8936
8937 * cgraph.h (decl_in_symtab_p): Make inline.
8938
8939 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8940
8941 PR middle-end/61294
8942 * doc/invoke.texi (-Wmemset-transposed-args): Document.
8943
8944 PR target/61656
8945 * config/i386/i386.c (classify_argument): Don't merge classes above
8946 number of words.
8947
8948 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
8949
8950 * cgraph.h (symtab_node): Add nonzero_address.
8951 (decl_in_symtab_p): Break out from ...
8952 (symtab_get_node): ... here.
8953 * fold-const.c: Include cgraph.h
8954 (tree_single_nonzero_warnv_p): Use symtab to determine
8955 if symbol is non-zero.
8956 * symtab.c (symtab_node::nonzero_address): New method.
8957
8958 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8959
8960 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8961 forgotten in previous commit.
8962
8963 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8964
8965 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8966 on builtin types.
8967 * ipa-devirt.c: Include stor-layout.h and intl.h
8968 (odr_subtypes_equivalent_p): New function.
8969 (warn_odr): New function.
8970 (warn_type_mismatch): New function.
8971 (odr_types_equivalent_p): New function.
8972 (add_type_duplicate): Use it.
8973 * common.opt (Wodr): New flag.
8974 * doc/invoke.texi (Wodr): Document new warning.
8975
8976 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8977
8978 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8979 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8980 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8981 (varpool_get_constructor): Push CTORS_IN timevar.
8982 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
8983
8984 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
8985
8986 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
8987 Remove VOID_FTYPE_PUSHORT.
8988 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
8989 Change code to USHORT_FTYPE_VOID.
8990 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
8991 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
8992 (ix86_atomic_assign_expand_fenv): Update for
8993 __builtin_ia32_fnstsw changes.
8994 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
8995 (fnstsw): Change operand 0 to nonimmediate operand.
8996
8997 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8998
8999 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9000 (varpool_get_constructor): New function.
9001 (varpool_ctor_useable_for_folding_p): Break out from ...
9002 (ctor_for_folding): ... here; use varpool_get_constructor.
9003 (varpool_assemble_decl): Likewise.
9004 * lto-streamer.h (struct output_block): Turn cgraph_node
9005 to symbol filed.
9006 (lto_input_variable_constructor): Declare.
9007 * ipa-visibility.c (function_and_variable_visibility): Use
9008 varpool_get_constructor.
9009 * cgraph.h (varpool_get_constructor): Declare.
9010 (varpool_ctor_useable_for_folding_p): New function.
9011 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9012 parameter; return error_mark_node for non-trivial constructors.
9013 (lto_write_tree_1, DFS_write_tree): Update use of
9014 get_symbol_initial_value.
9015 (output_function): Update initialization of symbol.
9016 (output_constructor): New function.
9017 (copy_function): Rename to ..
9018 (copy_function_or_variable): ... this one; handle vars too.
9019 (lto_output): Output variable sections.
9020 * lto-streamer-in.c (input_constructor): New function.
9021 (lto_read_body): Rename from ...
9022 (lto_read_body_or_constructor): ... this one; handle vars too.
9023 (lto_input_variable_constructor): New function.
9024 * ipa-prop.c (ipa_prop_write_jump_functions,
9025 ipa_prop_write_all_agg_replacement): Update.
9026 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9027 (output_cgraph_opt_summary): Set symbol to NULL.
9028
9029 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9030
9031 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9032 non-polymorphic types.
9033 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9034 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9035 of types is not polymorphic.
9036
9037 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9038
9039 * lra-constraints.c (remove_inheritance_pseudos): Process
9040 destination pseudo too.
9041
9042 2014-07-11 Rong Xu <xur@google.com>
9043
9044 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9045 commit r212448.
9046
9047 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9048
9049 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9050 * config/avr/avr-devices.c (AVR_MCU): Same.
9051 (avr_mcu_types): add text start value to end of device list.
9052 * config/avr/avr-mcus.def: Add text section start for all devices.
9053 (ata5782): Add new avr5 device.
9054 (ata5831): Same.
9055 * config/avr/avr-tables.opt: Regenerate.
9056 * config/avr/avr.h: Add declaration for text section start handler.
9057 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9058 SPEC functions.
9059 (LINK_SPEC): Include text section start handler to linker spec.
9060 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9061 pass -Ttext option to linker if the text section start for the device
9062 is not zero.
9063 * config/avr/t-multilib: Regenerate.
9064 * doc/avr-mmcu.texi: Regenerate.
9065
9066 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9067
9068 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9069 * config/rs6000/aix52.h (LINK_SPEC): Same.
9070 * config/rs6000/aix53.h (LINK_SPEC): Same.
9071 * config/rs6000/aix61.h (LINK_SPEC): Same.
9072 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9073
9074 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9075
9076 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9077 (graphite_verify): New function.
9078 (ivs_params_clear): New function.
9079 (gcc_expression_from_isl_ast_expr_id): New function.
9080 (gcc_expression_from_isl_expr_int): New function.
9081 (binary_op_to_tree): New function.
9082 (ternary_op_to_tree): New function.
9083 (unary_op_to_tree): New function.
9084 (nary_op_to_tree): New function.
9085 (gcc_expression_from_isl_expr_op): New function.
9086 (gcc_expression_from_isl_expression): New function.
9087 (graphite_create_new_loop): New function.
9088 (translate_isl_ast_for_loop): New function.
9089 (get_upper_bound): New function.
9090 (graphite_create_new_loop_guard): New function.
9091 (translate_isl_ast_node_for): New function.
9092 (translate_isl_ast): New function.
9093 (add_parameters_to_ivs_params): New function.
9094 (scop_to_isl_ast): New parameter ip.
9095 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9096
9097 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9098
9099 * config/xtensa/predicates.md (call expander): Update for
9100 DECL_SECTION_NAME being string.
9101
9102 2014-07-11 Richard Biener <rguenther@suse.de>
9103
9104 PR middle-end/61473
9105 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9106 can be implemented with a single load followed by a single store.
9107 (c_strlen): Only warn when only_value is not 2.
9108
9109 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9110
9111 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9112
9113 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9114
9115 PR target/61561
9116 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9117 (*movhi_bytes): Likewise.
9118 (*arm_movqi_insn): Likewise.
9119
9120 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9121
9122 PR target/56858
9123 * config/alpha/alpha.c: Include tree-pass.h, context.h
9124 and pass_manager.h.
9125 (pass_data_handle_trap_shadows): New pass.
9126 (pass_handle_trap_shadows::gate): New pass gate function.
9127 (make_pass_handle_trap_shadows): New function.
9128 (rest_of_handle_trap_shadows): Ditto.
9129
9130 (alpha_align_insns_1): Rename from alpha_align_insns.
9131 (pass_data_align_insns): New pass.
9132 (pass_align_insns::gate): New pass gate function.
9133 (make_pass_aling_insns): New function.
9134 (rest_of_align_insns): Ditto.
9135 (alpha_align_insns): Ditto.
9136
9137 (alpha_option_override): Declare handle_trap_shadows info
9138 and align_insns_info. Register handle_trap_shadows and align_insns
9139 passes here.
9140 (alpha_reorg): Do not call alpha_trap_shadows and
9141 alpha_align_insn from here.
9142
9143 (alpha_pad_function_end): Do not skip BARRIERs.
9144
9145 2014-07-10 Rong Xu <xur@google.com>
9146
9147 Add gcov-tool: an offline gcda profile processing tool support.
9148 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9149 (gcov_is_error): Ditto.
9150 (gcov_read_string): Ditto.
9151 (gcov_read_sync): Ditto.
9152 * gcov-io.h: Move counter defines to gcov-counter.def.
9153 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9154 * coverage.c: Ditto.
9155 * gcov-tool.c: Offline gcda profile processing tool.
9156 (unlink_gcda_file): Remove one gcda file.
9157 (unlink_profile_dir): Remove gcda files from the profile path.
9158 (gcov_output_files): Output gcda files to an output dir.
9159 (profile_merge): Merge two profiles in directory.
9160 (print_merge_usage_message): Print merge usage.
9161 (merge_usage): Print merge usage and exit.
9162 (do_merge): Driver for profile merge sub-command.
9163 (profile_rewrite): Rewrite profile.
9164 (print_rewrite_usage_message): Print rewrite usage.
9165 (rewrite_usage): Print rewrite usage and exit.
9166 (do_rewrite): Driver for profile rewrite sub-command.
9167 (print_usage): Print gcov-info usage and exit.
9168 (print_version): Print gcov-info version.
9169 (process_args): Process arguments.
9170 (main): Main routine for gcov-tool.
9171 * Makefile.in: Build and install gcov-tool.
9172 * gcov-counter.def: New file split from gcov-io.h.
9173 * doc/gcc.texi: Include gcov-tool.texi.
9174 * doc/gcov-tool.texi: Document for gcov-tool.
9175
9176 2014-07-10 Richard Biener <rguenther@suse.de>
9177
9178 PR tree-optimization/61757
9179 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9180 (propagate_rhs_into_lhs): Revert part of last change.
9181
9182 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9183
9184 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9185 FUNCTION_DECLs.
9186
9187 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9188
9189 PR middle-end/53590
9190 * function.c (allocate_struct_function): Revert r188667 change.
9191
9192 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9193
9194 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9195
9196 * doc/install.texi: Remove links to defunct package providers for
9197 Solaris.
9198
9199 2014-07-09 Tom de Vries <tom@codesourcery.com>
9200
9201 * final.c (get_call_fndecl): Declare.
9202 (self_recursive_call_p): New function.
9203 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9204
9205 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9206
9207 * ipa-devirt.c (record_node): Walk through aliases.
9208
9209 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9210
9211 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9212
9213 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9214
9215 Revert:
9216 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9217
9218 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9219
9220 * ipa-visibility.c (function_and_variable_visibility): Remove
9221 temporary hack disabling local aliases on AIX.
9222
9223 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9224
9225 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9226 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9227
9228 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9229
9230 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9231 * rs6000/rs6000.c: Inline output of .set instruction.
9232 (declare_alias_data): New struct.
9233 (rs6000_declare_alias): New function.
9234 (rs6000_xcoff_declare_function_name): Use it.
9235 (rs6000_xcoff_declare_object_name): New function.
9236 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9237 (ASM_OUTPUT_DEF): Turn to empty definition.
9238
9239 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9240
9241 PR bootstrap/61679
9242 * hash-table.h: use hash_table::value_type instead of
9243 Descriptor::value_type in the return types of several methods.
9244
9245 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9246
9247 * tree-pass.h (pass_data): Remove has_execute member.
9248 * passes.c (execute_one_pass): Don't check pass->has_execute.
9249 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9250 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9251 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9252 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9253 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9254 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9255 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9256 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9257 gimple-low.c, gimple-ssa-isolate-paths.c,
9258 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9259 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9260 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9261 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9262 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9263 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9264 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9265 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9266 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9267 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9268 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9269 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9270 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9271 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9272 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9273 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9274 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9275 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9276 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9277 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9278 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9279 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9280 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9281 web.c: Remove initializer for pass_data::has_execute.
9282
9283 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9284
9285 * graphite-htab.h: Use hash_map instead of hash_table.
9286 * graphite-clast-to-gimple.c: Adjust.
9287 * passes.c: Use hash_map instead of hash_table.
9288 * sese.c: Likewise.
9289 * sese.h: Remove now unused code.
9290
9291 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9292
9293 PR target/61599
9294 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9295 than zero.
9296
9297 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9298
9299 PR rtl-optimization/61673
9300 * combine.c (simplify_comparison): Test just mode's sign bit
9301 in tmode rather than the sign bit and any bits above it.
9302
9303 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9304
9305 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9306 Add __isl_give to the declaration.
9307 (generate_isl_schedule): Likewise.
9308 (scop_to_isl_ast): Likewise.
9309
9310 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9311
9312 * config/arm/arm.c (cortexa5_extra_costs): New table.
9313 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9314
9315 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9316
9317 PR tree-optimization/61725
9318 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9319 range, use range_includes_zerop_p instead of integer_zerop on
9320 vr0->min, only use log2 of max if min is not negative.
9321
9322 2014-07-08 Richard Biener <rguenther@suse.de>
9323
9324 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9325 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9326 restriction on loop depth difference.
9327 (record_equality): Likewise.
9328 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9329 (loop_depth_of_name): Remove.
9330 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9331 restriction on loop depth difference.
9332 (init_copy_prop): Likewise.
9333
9334 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9335
9336 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9337 parameter.
9338 (walk_aliased_vdefs): Likewise.
9339 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9340 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9341 (detect_type_change_from_memory_writes): Check if entry was reached.
9342
9343 2014-07-08 Richard Biener <rguenther@suse.de>
9344
9345 PR tree-optimization/61681
9346 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9347 NONLOCAL inside ESCAPED.
9348
9349 2014-07-08 Richard Biener <rguenther@suse.de>
9350
9351 PR tree-optimization/61680
9352 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9353 Handle properly all read-write dependences with group accesses.
9354
9355 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9356
9357 PR tree-optimization/61576
9358 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9359 block containing reduction statement is predecessor of phi basi block.
9360
9361 2014-07-08 Marek Polacek <polacek@redhat.com>
9362
9363 PR c/60226
9364 * fold-const.c (round_up_loc): Change the parameter type.
9365 Remove assert.
9366 * fold-const.h (round_up_loc): Adjust declaration.
9367 * stor-layout.c (finalize_record_size): Check for too large types.
9368
9369 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9370
9371 * symtab.c: Include calls.h.
9372 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9373
9374 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9375
9376 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9377 little-endian code generation.
9378 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9379 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9380 (spe_evmergehilo): Rename to...
9381 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9382 (spe_evmergelo): Rename to...
9383 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9384 (spe_evmergelohi): Rename to...
9385 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9386 (spe_evmergehi, spe_evmergehilo): New expanders.
9387 (spe_evmergelo, spe_evmergelohi): Likewise.
9388 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9389 (*frob_tf_ti): Likewise.
9390 (*frob_<mode>_di_2): Likewise.
9391 (*frob_tf_di_8_2): Likewise.
9392 (*frob_di_<mode>): Likewise.
9393 (*frob_ti_tf): Likewise.
9394 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9395 (*frob_ti_<mode>_8_2): Likewise.
9396 (*frob_ti_tf_2): Likewise.
9397 (mov_si<mode>_e500_subreg0): Rename to...
9398 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9399 endianness only.
9400 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9401 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9402 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9403 the big endianness only.
9404 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9405 (*mov_si<mode>_e500_subreg0_2): Rename to...
9406 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9407 big big endianness only.
9408 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9409 (*mov_si<mode>_e500_subreg4): Rename to...
9410 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9411 endianness only.
9412 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9413 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9414 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9415 the big endianness only.
9416 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9417 pattern.
9418 (*mov_si<mode>_e500_subreg4_2): Rename to...
9419 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9420 endianness only.
9421 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9422 (*mov_sitf_e500_subreg8): Rename to...
9423 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9424 endianness only.
9425 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9426 (*mov_sitf_e500_subreg8_2): Rename to...
9427 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9428 endianness only.
9429 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9430 (*mov_sitf_e500_subreg12): Rename to...
9431 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9432 endianness only.
9433 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9434 (*mov_sitf_e500_subreg12_2): Rename to...
9435 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9436 endianness only.
9437 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9438
9439 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9440
9441 * asan.c (instrument_strlen_call): Do not instrument first byte
9442 in strlen if already instrumented.
9443
9444 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9445
9446 * config/arm/arm.opt (mwords-little-endian): Delete.
9447 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9448 of TARGET_LITTLE_WORDS.
9449 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9450 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9451 warning.
9452 * doc/invoke.texi: Remove references to -mwords-little-endian.
9453
9454 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9455
9456 * expmed.c (struct init_expmed_rtl): Change all fields but
9457 pow2 and cint from struct rtx_def to rtx.
9458 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9459 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9460 at the end again.
9461
9462 2014-07-06 Marek Polacek <polacek@redhat.com>
9463
9464 PR c/6940
9465 * doc/invoke.texi: Document -Wsizeof-array-argument.
9466
9467 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9468
9469 * wide-int.h (wide_int_storage): Change declaration from struct
9470 to class.
9471
9472 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9473
9474 * cgraph.c (cgraph_create_indirect_edge): Update call of
9475 get_polymorphic_call_info.
9476 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9477 (possible_polymorphic_call_targets): Add parameter call.
9478 (decl_maybe_in_construction_p): New predicate.
9479 (get_polymorphic_call_info): Add parameter call;
9480 use decl_maybe_in_construction_p.
9481 * gimple-fold.c (fold_gimple_assign): Update use of
9482 possible_polymorphic_call_targets.
9483 (gimple_fold_call): Likewise.
9484 * ipa-prop.c: Inlcude calls.h
9485 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9486 (param_type_may_change_p): New predicate.
9487 (detect_type_change_from_memory_writes): Break out from ...
9488 (detect_type_change): ... this one; use param_type_may_change_p.
9489 (detect_type_change_ssa): Use param_type_may_change_p.
9490 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9491
9492 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9493
9494 PR target/49423
9495 * config/arm/arm-protos.h (arm_legitimate_address_p,
9496 arm_is_constant_pool_ref): Add prototypes.
9497 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9498 (arm_is_constant_pool_ref) New function.
9499 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9500 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9501 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9502 operand. Remove pool_range and neg_pool_range attributes.
9503 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9504 pool_range and neg_pool_range attributes.
9505 * config/arm/constraints.md (Uh): New constraint.
9506 (Uq): Don't allow constant pool references.
9507
9508 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9509
9510 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9511 (move_lo_quad_internal_be_<mode>): Likewise.
9512 (move_lo_quad_<mode>): Convert to define_expand.
9513 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9514 (aarch64_simd_move_hi_quad_be_<mode>): New.
9515 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9516 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9517 (aarch64_combinez_be<mode>): New.
9518 (aarch64_combine<mode>): Convert to define_expand.
9519 (aarch64_combine_internal<mode>): New.
9520 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9521
9522 2014-07-04 Tom de Vries <tom@codesourcery.com>
9523
9524 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9525 combination of earlyclobber and read/write modifiers.
9526
9527 2014-07-04 Tom de Vries <tom@codesourcery.com>
9528
9529 * config/aarch64/aarch64-simd.md
9530 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9531
9532 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9533
9534 PR target/61714
9535 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9536
9537 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9538
9539 PR middle-end/61654
9540 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9541
9542 PR tree-optimization/61684
9543 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9544 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9545
9546 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9547 Kito Cheng <kito@0xlab.org>
9548 Monk Chiang <sh.chiang04@gmail.com>
9549
9550 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9551 (nds32_symbol_load_store_p): Move to ...
9552 (nds32_fp_as_gp_check_available): Move to ...
9553 * config/nds32/nds32-fp-as-gp.c: ... here.
9554 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9555 extern declaration.
9556
9557 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9558 Kito Cheng <kito@0xlab.org>
9559 Monk Chiang <sh.chiang04@gmail.com>
9560
9561 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9562 (nds32_expand_store_multiple): Move to ...
9563 (nds32_expand_movmemqi): Move to ...
9564 * config/nds32/nds32-memory-manipulation.c: ... here.
9565
9566 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9567 Kito Cheng <kito@0xlab.org>
9568 Monk Chiang <sh.chiang04@gmail.com>
9569
9570 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9571 (nds32_output_casesi_pc_relative): Move to ...
9572 (nds32_output_casesi): Move to ...
9573 (nds32_mem_format): Move to ...
9574 (nds32_output_16bit_store): Move to ...
9575 (nds32_output_16bit_load): Move to ...
9576 (nds32_output_32bit_store): Move to ...
9577 (nds32_output_32bit_load): Move to ...
9578 (nds32_output_32bit_load_s): Move to ...
9579 (nds32_output_stack_push): Move to ...
9580 (nds32_output_stack_pop): Move to ...
9581 * config/nds32/nds32-md-auxiliary.c: ... here.
9582
9583 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9584 Ling-Hua Tseng <uranus@tinlans.org>
9585
9586 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9587 the purpose of this file.
9588
9589 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9590 Kito Cheng <kito@0xlab.org>
9591 Monk Chiang <sh.chiang04@gmail.com>
9592
9593 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9594 (nds32_address_cost): Move implementation to ...
9595 * config/nds32/nds32-cost.c: ... here.
9596 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9597 (nds32_address_cost_impl): Declare.
9598
9599 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9600 Kito Cheng <kito@0xlab.org>
9601 Monk Chiang <sh.chiang04@gmail.com>
9602
9603 * config/nds32/nds32.c
9604 (nds32_consecutive_registers_load_store_p): Move to ...
9605 (nds32_valid_multiple_load_store): Move to ...
9606 (nds32_valid_stack_push_pop): Move to ...
9607 (nds32_can_use_bclr_p): Move to ...
9608 (nds32_can_use_bset_p): Move to ...
9609 (nds32_can_use_btgl_p): Move to ...
9610 (nds32_can_use_bitci_p): Move to ...
9611 * config/nds32/nds32-predicates.c: ... here.
9612
9613 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9614 Kito Cheng <kito@0xlab.org>
9615 Monk Chiang <sh.chiang04@gmail.com>
9616
9617 * config/nds32/nds32.c
9618 (nds32_expand_builtin_null_ftype_reg): Move to ...
9619 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9620 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9621 (nds32_init_builtins): Move implementation to ...
9622 (nds32_expand_builtin): Move implementation to ...
9623 * config/nds32/nds32-intrinsic.c: ... here.
9624 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9625 (nds32_expand_builtin_impl): Declare.
9626
9627 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9628 Kito Cheng <kito@0xlab.org>
9629 Monk Chiang <sh.chiang04@gmail.com>
9630
9631 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9632 (nds32_emit_section_tail_template): Move to ...
9633 (nds32_emit_isr_jmptbl_section): Move to ...
9634 (nds32_emit_isr_vector_section): Move to ...
9635 (nds32_emit_isr_reset_conten): Move to ...
9636 (nds32_check_isr_attrs_conflict): Move to ...
9637 (nds32_construct_isr_vectors_information): Move to ...
9638 (nds32_asm_file_start): Move implementation to ...
9639 (nds32_asm_file_end): Move implementation to ...
9640 * config/nds32/nds32-isr.c: ... here.
9641 * config/nds32/nds32-protos.h
9642 (nds32_check_isr_attrs_conflict): Declare.
9643 (nds32_construct_isr_vectors_information): Declare.
9644 (nds32_asm_file_start_for_isr): Declare.
9645 (nds32_asm_file_end_for_isr): Declare.
9646
9647 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9648 Kito Cheng <kito@0xlab.org>
9649 Monk Chiang <sh.chiang04@gmail.com>
9650
9651 * config.gcc (nds32*): Add new modules to extra_objs.
9652 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9653 (nds32be-*-*): Likewise.
9654 * config/nds32/nds32-cost.c: New file.
9655 * config/nds32/nds32-fp-as-gp.c: New file.
9656 * config/nds32/nds32-intrinsic.c: New file.
9657 * config/nds32/nds32-isr.c: New file.
9658 * config/nds32/nds32-md-auxiliary.c: New file.
9659 * config/nds32/nds32-memory-manipulation.c: New file.
9660 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9661 * config/nds32/nds32-predicates.c: New file.
9662 * config/nds32/t-nds32: New file.
9663
9664 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9665
9666 PR tree-optimization/61682
9667 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9668 using cases and when one of the operands is equal to 1.
9669
9670 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9671
9672 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9673 ashr<mode>3): Correct mode of operands[2].
9674 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9675 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9676 Correct mode of operands[2]. Fix split condition.
9677
9678 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9679
9680 * arm.md (arch): Add armv6_or_vfpv3.
9681 (arch_enabled): Add test for the above.
9682 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9683 on VFP9.
9684 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9685
9686 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9687
9688 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9689 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9690 HWI 1 and negate the unsigned value.
9691 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9692 use AND instead of shift.
9693 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9694
9695 2014-07-03 Marek Polacek <polacek@redhat.com>
9696
9697 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9698 (-fsanitize=float-divide-by-zero): Move to the table with
9699 -fsanitize=undefined suboptions.
9700 (-fsanitize=float-cast-overflow): Likewise.
9701
9702 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9703
9704 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9705 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9706 endianness.
9707
9708 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9709
9710 * loop-invariant.c (struct invariant): Add a new member: eqno;
9711 (find_identical_invariants): Update eqno;
9712 (create_new_invariant): Init eqno;
9713 (get_inv_cost): Compute comp_cost with eqno;
9714
9715 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9716
9717 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9718 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9719 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9720 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9721 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9722
9723 2014-07-02 Christian Bruel <christian.bruel@st.com>
9724
9725 PR target/29349
9726 PR target/53513
9727 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9728 (make_preds_opaque): Delete.
9729 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9730 (commit_mode_sets): New function.
9731 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9732 Process all modes at once.
9733 * basic-block.h (pre_edge_lcm_avs): Declare.
9734 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9735 Call clear_aux_for_edges. Fix comments.
9736 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9737 (pre_edge_rev_lcm): Idem.
9738 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9739 parameter.
9740 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9741 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9742 Idem.
9743 * config/i386/i386.c (x96_emit_mode_set): Idem.
9744 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9745 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9746 (fpscr_toggle) Disallow from delay slot.
9747 * target.def (emit_mode_set): Add prev_mode parameter.
9748 * doc/tm.texi: Regenerate.
9749
9750 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9751
9752 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9753 variable i.
9754
9755 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9756
9757 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9758 vtable_pointer_value_to_vtable): Constify.
9759 (contains_polymorphic_type_p): Declare.
9760 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9761 vtable_pointer_value_to_vtable): Constify.
9762 (contains_polymorphic_type_p): New predicate.
9763 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9764 polymorphic types.
9765 (ipa_set_ancestor_jf): Likewise.
9766 (detect_type_change): Return false in easy cases.
9767 (compute_complex_assign_jump_func): Require type to contain
9768 polymorphic type.
9769 (compute_known_type_jump_func): Likewise.
9770
9771 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9772
9773 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9774 Remove.
9775 (type_in_anonymous_namespace_p): Constify argument.
9776 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9777 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9778 (main_odr_variant): New function.
9779 (hash_type_name): Make static; update assert; do not ICE on
9780 non-records.
9781 (types_same_for_odr): Bring here from tree.c; simplify and remove
9782 old structural comparing code that doesn't work for templates.
9783 (odr_hasher::equal): Update assert.
9784 (add_type_duplicate): Return true when bases should be computed;
9785 replace incomplete loader by complete; do not output duplicated
9786 warnings; do not ICE on non-records; set odr_violated flag.
9787 (get_odr_type): Be ready to replace incomplete type by complete
9788 one; work on ODR variants instead of main variants; reorder item
9789 in array so bases have still smaller indexes.
9790 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9791 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9792
9793 2014-07-01 Cary Coutant <ccoutant@google.com>
9794
9795 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9796 lookup.
9797 (resolve_addr_in_expr): When replacing the rtx in a location list
9798 entry, get a new address table entry.
9799 (dwarf2out_finish): Call index_location_lists even if there are no
9800 addr_index_table entries yet.
9801
9802 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9803
9804 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9805 change for not being obvious.
9806
9807 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9808
9809 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9810 unused argument.
9811
9812 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9813
9814 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9815 (vcagt_f64): Likewise.
9816 (vcale_f64): Likewise.
9817 (vcaled_f64): Likewise.
9818 (vcales_f32): Likewise.
9819 (vcalt_f64): Likewise.
9820 (vcaltd_f64): Likewise.
9821 (vcalts_f32): Likewise.
9822
9823 2014-07-01 Marek Polacek <polacek@redhat.com>
9824
9825 * doc/invoke.texi: Document -Wint-conversion.
9826
9827 2014-07-01 Marek Polacek <polacek@redhat.com>
9828
9829 PR c/58286
9830 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9831
9832 2014-07-01 Martin Liska <mliska@suse.cz>
9833
9834 IPA REF alias refactoring
9835 * cgraph.h (iterate_direct_aliases): New function.
9836 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9837 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9838 FOR_EACH_ALIAS added.
9839 (cgraph_for_node_and_aliases): Likewise.
9840 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9841 * ipa-inline.c (reset_edge_caches): Likewise.
9842 (update_caller_keys): Likewise.
9843 * trans-mem.c (ipa_tm_execute): Likewise.
9844 *varpool.c (varpool_analyze_node): Likewise.
9845 (varpool_for_node_and_aliases): Likewise.
9846 * ipa-ref.h (first_alias): New function.
9847 (last_alias): Likewise.
9848 (has_aliases_p): Likewise.
9849 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9850 is sensitive to IPA_REF_ALIASes.
9851 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9852 are put at the beginning of the list.
9853 (symtab_node::iterate_direct_aliases): New function.
9854
9855 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9856
9857 Revert:
9858 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9859 type is complete.
9860 (write_ts_type_common_tree_pointers): Do not stream fields not set
9861 for incomplete types; do not stream duplicated fields for variants;
9862 sanity check that variant and type match.
9863 (write_ts_type_non_common_tree_pointers): Likewise.
9864 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9865 TYPE_SIZE whether type is complete.
9866 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9867 write_ts_type_common_tree_pointers
9868 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9869
9870 2014-06-30 Joseph Myers <joseph@codesourcery.com>
9871
9872 * var-tracking.c (add_stores): Return instead of asserting if old
9873 and new values for conditional store are the same.
9874
9875 2014-06-30 Richard Henderson <rth@redhat.com>
9876
9877 PR rtl-opt/61608
9878 PR target/39284
9879 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9880 the cfg if there were any changes.
9881 * passes.def: Revert move of peephole2 after reorder_blocks;
9882 move duplicate_computed_gotos before peephole2.
9883
9884 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
9885
9886 * except.c (emit_note_eh_region_end): New helper function.
9887 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9888 emit EH_REGION_END note.
9889 * jump.c (cleanup_barriers): Do not split a call and its
9890 corresponding CALL_ARG_LOCATION note.
9891
9892 2014-06-30 Jeff Law <law@redhat.com>
9893
9894 PR tree-optimization/61607
9895 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9896 deeper into the SSA_NAME_VALUE chain.
9897
9898 2014-06-30 Marek Polacek <polacek@redhat.com>
9899
9900 * convert.c (convert_to_integer): Don't instrument conversions if the
9901 function has no_sanitize_undefined attribute.
9902 * ubsan.c: Don't run the ubsan pass if the function has
9903 no_sanitize_undefined attribute.
9904
9905 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9906
9907 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9908 -fsanitize=undefined suboptions.
9909
9910 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
9911
9912 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9913 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9914 against bigendian and adjust indices.
9915
9916 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9917
9918 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
9919
9920 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
9921
9922 PR target/61633
9923 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9924 Add alternative; make early clobber. Adjust both split patterns
9925 to use operand 0 as the working register.
9926
9927 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9928
9929 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9930 as ira_object_id_map might be NULL, or 1.
9931
9932 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9933
9934 * loop-invariant.c (get_inv_cost): Handle register class.
9935 (gain_for_invariant): Check the register pressure of the inv
9936 and its overlapped register class, other than all.
9937
9938 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9939
9940 * doc/invoke.texi (Optimize Options): Fix descriptions of
9941 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9942
9943 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
9944
9945 * doc/extend.texi (Function Attributes): Update 'naked' attribute
9946 documentation.
9947
9948 2014-06-29 Tobias Grosser <tobias@grosser.es>
9949
9950 PR bootstrap/61650
9951 * graphite-isl-ast-to-gimple.c: Add missing guards.
9952
9953 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9954
9955 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9956 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9957 * flag-types.h: Add new enum fgraphite_generator.
9958 * graphite-isl-ast-to-gimple.c: New.
9959 * graphite-isl-ast-to-gimple.h: New.
9960 * graphite.c (graphite_transform_loops): Add choice of Graphite
9961 code generator, which depends on flag_graphite_code_gen.
9962
9963 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9964
9965 * graphite-dependences.c (subtract_commutative_associative_deps):
9966 Add NULL checking of the following variables: must_raw_no_source,
9967 may_raw_no_source, must_war_no_source, may_war_no_source,
9968 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9969 must_war, may_war, must_waw, may_waw.
9970
9971 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9972
9973 * graphite-clast-to-gimple.c: gloog is renamed to
9974 graphite_regenerate_ast_cloog. gloog_error is renamed to
9975 graphite_regenerate_error.
9976 * graphite-clast-to-gimple.h: The definition of the struct
9977 bb_pbb_def is moved to graphite-htab.h.
9978 Add inclusion of the hash-table.h.
9979 * graphite-htab.h: The declaration of the function gloog is moved
9980 to graphite-clast-to-gimple.h and renamed to
9981 graphite_regenerate_ast_cloog.
9982 * graphite.c (graphite_transform_loops): gloog is renamed
9983 to graphite_regenerate_ast_cloog.
9984
9985 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9986
9987 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9988 type is complete.
9989 (write_ts_type_common_tree_pointers): Do not stream fields not set
9990 for incomplete types; do not stream duplicated fields for variants;
9991 sanity check that variant and type match.
9992 (write_ts_type_non_common_tree_pointers): Likewise.
9993 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9994 TYPE_SIZE whether type is complete.
9995 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9996 write_ts_type_common_tree_pointers
9997 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9998
9999 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10000
10001 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10002
10003 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10004
10005 * tree-inline.c (remap_type_1): Do not duplicate fields
10006 that are shared in between type and its main variant.
10007
10008 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10009
10010 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10011 of the type.
10012 (ipa_set_ancestor_jf) Likewise.
10013 (check_stmt_for_type_change): Check that we work on main variant.
10014 (detect_type_change): Look into main variant.
10015 (compute_known_type_jump_func): Check that main variant has BINFO.
10016
10017 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10018
10019 * ipa-devirt.c (set_type_binfo): New function.
10020 (add_type_duplicate): Use it.
10021 (get_odr_type): Sanity check that binfos points to main variants.
10022 (get_class_context): Be sure the context's outer_type is main variant.
10023 (contains_type_p): Walk main variant.
10024 (get_polymorphic_call_info_for_decl): Set outer_type to be
10025 main variant.
10026 (get_polymorphic_call_info): Likewise.
10027 (possible_polymorphic_call_targets): Sanity check that we operate
10028 on main variant.
10029
10030 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10031
10032 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10033
10034 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10035
10036 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10037 accidental change due to wide-int branch merge.
10038
10039 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10040
10041 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10042 compressed debug support.
10043 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10044 * configure: Regenerate.
10045 * config.in: Regenerate.
10046 * common.opt (compressed_debug_sections): New enum.
10047 (gz, gz=): New options.
10048 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10049 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10050 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10051 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10052 LINK_COMPRESS_DEBUG_SPEC.
10053 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10054 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10055 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10056 (Debugging Options): Document -gz[=type].
10057
10058 2014-06-27 Martin Jambor <mjambor@suse.cz>
10059
10060 PR ipa/61160
10061 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10062 args_to_skip, use those from node instead. Copy args_to_skip and
10063 combined_args_to_skip from node to the new thunk.
10064 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10065 (cgraph_create_virtual_clone): Moved computation of
10066 combined_args_to_skip...
10067 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10068
10069 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10070
10071 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10072 redundant diagnostic machinary.
10073
10074 2014-06-27 Richard Biener <rguenther@suse.de>
10075
10076 * tree-ssa-math-opts.c (bswap_replace): Fix
10077 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10078
10079 2014-06-27 Martin Liska <mliska@suse.cz>
10080
10081 * gimple.h (gimple_location_safe): New function introduced.
10082 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10083 of gimple_location_safe replaces gimple_location.
10084 (gimple_fold_call): Likewise.
10085 * ipa-devirt.c (ipa_devirt): Likewise.
10086 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10087 * ipa.c (walk_polymorphic_call_targets): Likewise.
10088 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10089
10090 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10091
10092 PR tree-optimization/57233
10093 PR tree-optimization/61299
10094 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10095 functions.
10096 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10097 would be lowered to scalar shifts, check if corresponding
10098 shifts and vector BIT_IOR_EXPR are supported and don't lower
10099 or lower just to narrower vector type in that case.
10100 * expmed.c (expand_shift_1): Fix up handling of vector
10101 shifts and rotates.
10102
10103 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10104
10105 PR target/61586
10106 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10107
10108 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10109
10110 * doc/invoke.texi (-fsemantic-interposition): Document.
10111 * common.opt (fsemantic-interposition): New flag.
10112 * varasm.c (decl_replaceable_p): Use it.
10113
10114 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10115
10116 PR target/61542
10117 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10118 extraction other than index 3.
10119
10120 2014-06-26 Teresa Johnson <tejohnson@google.com>
10121
10122 * doc/invoke.texi: Fix typo.
10123 * dumpfile.c: Add support for documented -fdump-* options
10124 optimized/missed/note/optall.
10125
10126 2014-06-26 Martin Jambor <mjambor@suse.cz>
10127
10128 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10129 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10130 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10131 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10132 * opts.c (default_options_optimization): Set
10133 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10134 * doc/invoke.texi (allow-load-data-races)
10135 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10136 (allow-store-data-races): Document the new default.
10137
10138 2014-06-26 Martin Jambor <mjambor@suse.cz>
10139
10140 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10141 renamed to ipa_impossible_devirt_target. Fix typo.
10142 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10143 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10144 ipa_impossible_devirt_target.
10145
10146 2014-06-26 Richard Biener <rguenther@suse.de>
10147
10148 PR tree-optimization/61607
10149 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10150 explaining why we restrict copies on loop depth.
10151 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10152 on loop depth.
10153 (record_equivalences_from_phis): Instead add it here.
10154
10155 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10156
10157 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10158 (LTO_WRAPPER_OBJS): New variable.
10159 (lto-wrapper$(exeext)): Use it.
10160 * collect2.c: Include "collect-utils.h".
10161 (verbose, debug): Remove variables.
10162 (at_file_supplied): No longer static.
10163 (tool_name): New variable.
10164 (do_wait, fork_execute, maybe_unlink): Don't declare.
10165 (tool_cleanup): No longer static.
10166 (notice): Remove function.
10167 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10168 fork_execute calls.
10169 (collect_wait, do_wait, collect_execute): Remove functions.
10170 (maybe_unlink): No longer static.
10171 * collect2.h (verbose, debug): Don't declare.
10172 (at_file_supplied): Declare.
10173 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10174 changed.
10175 (collect_execute): Replace with implementation from collect2, plus a
10176 new arg use_atfile. All callers changed.
10177 (collect_wait): Replace with implementation from collect2.
10178 (maybe_unlink_file): Remove function.
10179 (fork_execute): Replace with implementation from collect2, plus a
10180 new arg use_atfile. All callers changed.
10181 (do_wait): Add call to utils_cleanup to the error path.
10182 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10183 (tool_cleanup): Adjust declarations.
10184 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10185 * tlink.c: Include "collect-utils.h".
10186 (tlink_execute): New arg use_atfile. All callers changed.
10187 (tlink_init, tlink_execute): Remove declarations.
10188
10189 * collect-utils.c (save_temps): New variable.
10190 (do_wait): Use it instead of debug. Use fatal_error.
10191 * collect-utils.h (save_temps): Declare.
10192 * collect2.c (verbose): Rename from vflag. All uses changed.
10193 (tool_cleanup): New function, copied from collect_atexit.
10194 (collect_atexit, handler): Just call it.
10195 * collect2.h (verbose): Declaration renamed from vflag.
10196 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10197 debug.
10198
10199 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10200 (lto-wrapper$(exeext)): Link with collect-utils.o.
10201 * collect-utils.c: New file.
10202 * collect-utils.h: New file.
10203 * lto-wrapper.c: Include "collect-utils.h".
10204 (args_name): Delete variable.
10205 (tool_name): New variable.
10206 (tool_cleanup): New function.
10207 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10208 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10209 (fork_execute): Remove functions.
10210
10211 2014-06-26 Nick Clifton <nickc@redhat.com>
10212
10213 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10214
10215 * doc/extend.texi (Function Attributes): Fix typo in description
10216 of RX vector attribute.
10217
10218 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10219
10220 * config.gcc (supported_defaults): Error when passing either
10221 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10222
10223 2014-06-26 Richard Biener <rguenther@suse.de>
10224
10225 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10226 propagating volatile pointers.
10227
10228 2014-06-26 Richard Biener <rguenther@suse.de>
10229
10230 PR tree-optimization/61607
10231 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10232 loop if we redirected its latch edge.
10233 (thread_block_1): Do not cancel loops prematurely.
10234
10235 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10236
10237 * toplev.c (backend_init_target): Move init_emit_regs and
10238 init_regs to...
10239 (backend_init) ... here; skip ira_init_once and backend_init_target.
10240 (target_reinit) ... and here; clear
10241 this_target_rtl->lang_dependent_initialized.
10242 (lang_dependent_init_target): Clear
10243 this_target_rtl->lang_dependent_initialized;
10244 break out rtl initialization to ...
10245 (initialize_rtl): ... here; call also backend_init_target
10246 and ira_init_once.
10247 * toplev.h (initialize_rtl): New function.
10248 * function.c: Include toplev.h
10249 (init_function_start): Call initialize_rtl.
10250 * rtl.h (target_rtl): Add target_specific_initialized,
10251 lang_dependent_initialized.
10252
10253 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10254 Jakub Jelinek <jakub@redhat.com>
10255
10256 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10257
10258 2014-06-25 Tom de Vries <tom@codesourcery.com>
10259
10260 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10261
10262 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10263
10264 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10265 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10266 Issue a strict overflow warning if appropriate.
10267
10268 2014-06-25 Martin Liska <mliska@suse.cz>
10269
10270 IPA REF refactoring
10271 * Makefile.in: Removed header file (ipa-ref-inline.h).
10272 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10273 called.
10274 (cgraph_speculative_call_info): Likewise.
10275 (cgraph_for_node_thunks_and_aliases): Likewise.
10276 (cgraph_for_node_and_aliases): Likewise.
10277 (verify_cgraph_node): Likewise.
10278 * cgraph.h: Batch of IPA REF functions become member functions of
10279 symtab_node: add_reference, maybe_add_reference, clone_references,
10280 clone_referring, clone_reference, find_reference,
10281 remove_stmt_references, remove_all_references,
10282 remove_all_referring, dump_references, dump_referring,
10283 has_alias_p, iterate_reference, iterate_referring.
10284 * cgraphbuild.c (record_reference): New IPA REF function used.
10285 (record_type_list): Likewise.
10286 (record_eh_tables): Likewise.
10287 (mark_address): Likewise.
10288 (mark_load): Likewise.
10289 (mark_store): Likewise.
10290 (pass_build_cgraph_edges): Likewise.
10291 (rebuild_cgraph_edge): Likewise.
10292 (cgraph_rebuild_references): Likewise.
10293 (pass_remove_cgraph_callee_edges): Likewise.
10294 * cgraphclones.c (cgraph_clone_node): Likewise.
10295 (cgraph_create_virtual_clone): Likewise.
10296 (cgraph_materialize_clone): Likewise.
10297 (cgraph_materialize_all_clones): Likewise.
10298 * cgraphunit.c (cgraph_reset_node): Likewise.
10299 (cgraph_reset_node): Likewise.
10300 (analyze_function): Likewise.
10301 (assemble_thunks_and_aliases): Likewise.
10302 (expand_function): Likewise.
10303 * ipa-comdats.c (propagate_comdat_group): Likewise.
10304 (enqueue_references): Likewise.
10305 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10306 (create_specialized_node): Likewise.
10307 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10308 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10309 * ipa-inline.c (reset_edge_caches): Likewise.
10310 (update_caller_keys): Likewise.
10311 (execute): Likewise.
10312 * ipa-prop.c (remove_described_reference): Likewise.
10313 (propagate_controlled_uses): Likewise.
10314 (ipa_edge_duplication_hook): Likewise.
10315 (ipa_modify_call_arguments): Likewise.
10316 * ipa-pure-const.c (propagate_pure_const): Likewise.
10317 * ipa-ref-inline.h: Header file removed, functions moved
10318 to symtab_node class.
10319 * ipa-ref.c (remove_reference): New class member function.
10320 (cannot_lead_to_return): New class member function.
10321 (referring_ref_list): Likewise.
10322 (referred_ref_list): Likewise.
10323 Rest of functions moved to symtab_node class.
10324 * ipa-ref.h: New member functions remove_reference,
10325 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10326 to ipa_ref class.
10327 ipa_ref_list class has new member functions: first_reference,
10328 first_referring, clear, nreferences.
10329 * ipa-reference.c (analyze_function): New IPA REF function used.
10330 (write_node_summary_p): Likewise.
10331 (ipa_reference_write_optimization_summary): Likewise.
10332 * ipa-split.c (split_function): Likewise.
10333 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10334 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10335 (function_and_variable_visibility): Likewise.
10336 * ipa.c (has_addr_references_p): Likewise.
10337 (process_references): Argument type changed.
10338 (symtab_remove_unreachable_nodes): New IPA REF function used.
10339 (process_references): Likewise.
10340 (set_writeonly_bit): Likewise.
10341 * lto-cgraph.c: Implementation of new symtab_node member functions
10342 that uses new IPA REF functions.
10343 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10344 function used.
10345 * lto-streamer-out.c (output_symbol_p): Likewise.
10346 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10347 changed.
10348 * symtab.c: Implementation of new IPA REF API.
10349 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10350 (ipa_tm_create_version): Likewise.
10351 (ipa_tm_execute): Likewise.
10352 * tree-emutls.c (gen_emutls_addr): Likewise.
10353 * tree-inline.c (copy_bb): Likewise.
10354 (delete_unreachable_blocks_update_callgraph): Likewise.
10355 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10356 (varpool_for_node_and_aliases): Likewise.
10357
10358 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10359
10360 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10361
10362 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10363
10364 PR bootstrap/61598
10365 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10366 tree_node * instead of tree_node *.
10367 (fold): Adjust.
10368 (print_fold_checksum): Likewise.
10369 (fold_check_failed): Likewise.
10370 (debug_fold_checksum): Likewise.
10371 (fold_build1_stat_loc): Likewise.
10372 (fold_build2_stat_loc): Likewise.
10373 (fold_build3_stat_loc): Likewise.
10374 (fold_build_call_array_loc): Likewise.
10375
10376 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10377
10378 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10379 implementation with call to...
10380 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10381 function.
10382 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10383 Declare.
10384
10385 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10386
10387 PR tree-optimization/57742
10388 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10389 after replacing the statement.
10390
10391 2014-06-25 Nick Clifton <nickc@redhat.com>
10392
10393 * config/v850/v850.c (GHS_default_section_names): Change to const
10394 char * type.
10395 (GHS_current_section_names): Likewise.
10396 (v850_insert_attributes): Do not build strings, just assign the
10397 names directly. Change the type of 'chosen_section' to const
10398 char*.
10399 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10400 directly to the array entry.
10401 * config/v850/v850.h (GHS_default_section_names): Change to const
10402 char * type.
10403 (GHS_current_section_names): Likewise.
10404
10405 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10406
10407 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10408 (LANG_HOOKS_DECLS): Add it.
10409 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10410 has correct type.
10411 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10412 * langhooks.h (struct lang_hooks_for_decls): Add
10413 omp_clause_linear_ctor hook.
10414 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10415 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10416 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10417 combined simd loop use omp_clause_linear_ctor hook.
10418
10419 2014-06-24 Cong Hou <congh@google.com>
10420
10421 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10422 pattern recognition.
10423 (type_conversion_p): PROMOTION is true if it's a type promotion
10424 conversion, and false otherwise. Return true if the given expression
10425 is a type conversion one.
10426 * tree-vectorizer.h: Adjust the number of patterns.
10427 * tree.def: Add SAD_EXPR.
10428 * optabs.def: Add sad_optab.
10429 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10430 * expr.c (expand_expr_real_2): Likewise.
10431 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10432 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10433 * optabs.c (optab_for_tree_code): Likewise.
10434 * tree-cfg.c (estimate_operator_cost): Likewise.
10435 * tree-ssa-operands.c (get_expr_operands): Likewise.
10436 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10437 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10438 * doc/generic.texi: Add document for SAD_EXPR.
10439 * doc/md.texi: Add document for ssad and usad.
10440
10441 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10442
10443 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10444 qualification in cast.
10445
10446 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10447
10448 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10449 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10450 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10451 (tree_function_decl): ... here.
10452 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10453 streaming of vindex to ...
10454 (write_ts_function_decl_tree_pointers): ... here.
10455 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10456 Do not stream DECL_VINDEX.
10457 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10458
10459 2014-06-24 Catherine Moore <clm@codesourcery.com>
10460 Sandra Loosemore <sandra@codesourcery.com>
10461
10462 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10463 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10464 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10465
10466 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10467
10468 * doc/invoke.texi (Warning Options): Remove duplicated
10469 -Wmaybe-uninitialized.
10470
10471 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10472
10473 PR tree-optimization/57742
10474 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10475 (handle_builtin_malloc, handle_builtin_memset): New functions.
10476 (strlen_optimize_stmt): Call them.
10477 * passes.def: Move strlen after loop+dom but before vrp.
10478
10479 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10480
10481 PR target/61570
10482 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10483 model family 6 CPU with has_longmode never use a CPU without
10484 64-bit support.
10485
10486 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10487
10488 PR target/61570
10489 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10490 the last change.
10491
10492 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10493
10494 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10495 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10496 pointer_map.
10497 * hash-map.h: New file.
10498 * ipa-comdats.c: Use hash_map instead of pointer_map.
10499 * ipa.c: Likewise.
10500 * lto-section-out.c: Adjust.
10501 * lto-streamer.h: Replace pointer_map with hash_map.
10502 * symtab.c (verify_symtab): Likewise.
10503 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10504 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10505 * tree-streamer.h: Likewise.
10506 * tree-streamer.c: Adjust.
10507 * pointer-set.h: Remove pointer_map.
10508
10509 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10510
10511 * hash-table.h: Add a template arg to choose between storing values
10512 and storing pointers to values, and then provide partial
10513 specializations for both.
10514 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10515 should store, not the type values should point to.
10516 * tree-into-ssa.c (var_info_hasher): Likewise.
10517 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10518 * tree-complex.c: Adjust.
10519 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10520 table instead of int_tree_map *.
10521 * tree-parloops.c: Adjust.
10522 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10523 type is being stored.
10524 * tree-vectorizer.c: Adjust.
10525
10526 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10527
10528 * hash-table.h: Remove a layer of indirection from hash_table so that
10529 it contains the hash table's data instead of a pointer to the data.
10530 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10531 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10532 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10533 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10534 fold-const.c, gcse.c, ggc-common.c,
10535 gimple-ssa-strength-reduction.c, gimplify.c,
10536 graphite-clast-to-gimple.c, graphite-dependences.c,
10537 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10538 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10539 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10540 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10541 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10542 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10543 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10544 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10545 tree-ssa-live.c, tree-ssa-loop-im.c,
10546 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10547 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10548 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10549 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10550 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10551 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10552 vtable-verify.c, vtable-verify.h: Adjust.
10553
10554 2014-06-24 Richard Biener <rguenther@suse.de>
10555
10556 PR tree-optimization/61572
10557 * tree-ssa-sink.c (statement_sink_location): Do not sink
10558 loads from hard registers.
10559
10560 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10561
10562 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10563 not mentioned in clauses use private clause if the iterator is
10564 declared in #pragma omp for simd, and when adding lastprivate
10565 instead, add it to the outer #pragma omp for too. Diagnose
10566 if the variable is private in outer context. For simd collapse > 1
10567 loops, replace all iterators with temporaries.
10568 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10569 same even in collapse > 1 loops.
10570
10571 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10572 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10573 non-NULL.
10574 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10575 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10576 non-NULL.
10577 (gimplify_adjust_omp_clauses): Likewise.
10578 * omp-low.c (lower_rec_simd_input_clauses,
10579 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10580 safelen the same as safelen(1).
10581 * tree-nested.c (convert_nonlocal_omp_clauses,
10582 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10583 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10584 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10585 Fixup handling of GIMPLE_OMP_TARGET.
10586 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10587 GIMPLE_OMP_TARGET.
10588
10589 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10590
10591 PR tree-optimization/61554
10592 * tree-ssa-propagate.c: Include "bitmap.h".
10593 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10594 properly update constructor/destructor.
10595 (substitute_and_fold_dom_walker::before_dom_children):
10596 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10597 need_eh_cleaup instead.
10598 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10599 need_eh_cleanup.
10600
10601 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10602
10603 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10604 * tree-pass.h (make_pass_ipa_single_use): New pass.
10605 * cgraph.h (used_by_single_function): New flag.
10606 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10607 Stream it.
10608 * passes.def (pass_ipa_single_use): Scedule.
10609 * ipa.c (BOTTOM): New macro.
10610 (meet): New function
10611 (propagate_single_user): New function.
10612 (ipa_single_use): New function.
10613 (pass_data_ipa_single_use): New pass.
10614 (pass_ipa_single_use): New pass.
10615 (pass_ipa_single_use::gate): New gate.
10616 (make_pass_ipa_single_use): New function.
10617
10618 2014-06-23 Kai Tietz <ktietz@redhat.com>
10619
10620 PR target/39284
10621 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10622 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10623
10624 2014-06-23 Richard Biener <rguenther@suse.de>
10625
10626 * tree-ssa-loop.c (gate_loop): New function.
10627 (pass_tree_loop::gate): Call it.
10628 (pass_data_tree_no_loop, pass_tree_no_loop,
10629 make_pass_tree_no_loop): New.
10630 * tree-vectorizer.c: Include tree-scalar-evolution.c
10631 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10632 required.
10633 (pass_slp_vectorize::clone): New method.
10634 * timevar.def (TV_TREE_NOLOOP): New.
10635 * tree-pass.h (make_pass_tree_no_loop): Declare.
10636 * passes.def (pass_tree_no_loop): New pass group with
10637 SLP vectorizer.
10638
10639 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10640
10641 PR target/61570
10642 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10643 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10644
10645 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10646
10647 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10648 "yes" where needed.
10649
10650 2014-06-23 Alan Modra <amodra@gmail.com>
10651
10652 PR bootstrap/61583
10653 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10654 to zero on debug statements.
10655
10656 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10657
10658 PR target/60825
10659 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10660 Ignore third operand if present by marking qualifier_internal.
10661
10662 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10663
10664 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10665 vector extension.
10666 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10667 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10668 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10669 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10670 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10671 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10672 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10673 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10674 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10675 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10676 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10677 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10678 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10679 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10680 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10681 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10682 logic in GCC vector extensions
10683
10684 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10685 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10686 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10687 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10688 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10689 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10690 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10691 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10692 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10693 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10694
10695 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10696
10697 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10698 extensions.
10699
10700 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10701 (vget_low_s64): Use __GET_LOW macro.
10702 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10703 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10704 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10705 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10706 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10707
10708 (vcombine_s64): Use GCC vector extensions; remove cast.
10709 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10710 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10711 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10712 Fix type signature; remove cast.
10713
10714 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10715
10716 PR target/60825
10717 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10718 V1DFmode.
10719 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10720 add V1DFmode
10721 (BUILTIN_VD1): New.
10722 (BUILTIN_VD_RE): Remove.
10723 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10724 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10725 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10726 variant but not df.
10727 (vreinterpretv1df*, vreinterpret*v1df): New.
10728 (vreinterpretdf*, vreinterpret*df): Remove.
10729 * config/aarch64/aarch64-simd.md (aarch64_create,
10730 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10731 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10732 (VD1): New.
10733 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10734 (vcreate_f64): Remove cast, use v1df builtin.
10735 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10736 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10737 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10738 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10739 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10740 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10741 add range check using __builtin_aarch64_im_lane_boundsi.
10742 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10743 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10744 type signature, use gcc vector extensions.
10745 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10746 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10747 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10748 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10749 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10750 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10751 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10752 vreinterpret_u64_f64): Use v1df builtin not df.
10753
10754 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10755
10756 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10757 vector registers.
10758
10759 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10760
10761 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10762 priority directly.
10763
10764 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10765
10766 * loop-invariant.c (pre_check_invariant_p): New function.
10767 (find_invariant_insn): Call pre_check_invariant_p.
10768
10769 2014-06-22 Richard Henderson <rth@redhat.com>
10770
10771 PR target/61565
10772 * compare-elim.c (struct comparison): Add eh_note.
10773 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10774 a redundant comparison in a different EH region. Purge EH edges if
10775 necessary.
10776
10777 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10778
10779 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10780 (var_shift): Use it.
10781 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10782 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10783 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10784 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10785 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10786 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10787 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10788 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10789 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10790 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10791 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10792 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10793 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10794 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10795 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10796 *rotldi3_internal15be): Use the new attribute. Merge register and
10797 integer alternatives.
10798
10799 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10800
10801 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10802 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10803 split, *ashrdi3_internal3 and split): Delete, merge into...
10804 (ashr<mode>3): New expander.
10805 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10806 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10807
10808 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10809
10810 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10811 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10812 *rotldi3_internal3 and split): Delete, merge into...
10813 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10814 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10815 Use "rotlw" extended mnemonic.
10816
10817 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10818
10819 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10820 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10821 and split, *ashldi3_internal3 and split): Delete, merge into...
10822 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10823 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10824
10825 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10826
10827 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10828 (lshrsi3, two anonymous define_insns and define_splits,
10829 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10830 *lshrdi3_internal3 and split): Delete, merge into...
10831 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10832 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10833
10834 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10835
10836 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10837 Remove "O" alternative.
10838
10839 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10840
10841 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10842 (mips_move_from_gpr_cost): Likewise.
10843 (mips_register_move_cost): Update accordingly.
10844 (mips_secondary_reload_class): Remove name of in_p.
10845
10846 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10847
10848 PR target/61503
10849 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10850 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10851
10852 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10853
10854 * config/nios2/nios2.c: Include "builtins.h".
10855
10856 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10857
10858 * cgraph.h (tls_model_names): New variable.
10859 * print-tree.c (print_node): Simplify.
10860 * varpool.c (tls_model_names): New variable.
10861 (dump_varpool_node): Output tls model.
10862
10863 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10864
10865 * ipa-visibility.c (function_and_variable_visibility): Disable
10866 temporarily local aliases for some targets.
10867
10868 2014-06-20 Marek Polacek <polacek@redhat.com>
10869
10870 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10871 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10872 into SANITIZE_UNDEFINED.
10873 * doc/invoke.texi: Describe -fsanitize=bounds.
10874 * gimplify.c (gimplify_call_expr): Add gimplification of internal
10875 functions created in the FEs.
10876 * internal-fn.c: Move "internal-fn.h" after "tree.h".
10877 (expand_UBSAN_BOUNDS): New function.
10878 * internal-fn.def (UBSAN_BOUNDS): New internal function.
10879 * internal-fn.h: Don't define internal functions here.
10880 * opts.c (common_handle_option): Add -fsanitize=bounds.
10881 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10882 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10883 * tree-core.h: Define internal functions here.
10884 (struct tree_base): Add ifn field.
10885 * tree-pretty-print.c: Include "internal-fn.h".
10886 (dump_generic_node): Handle functions without CALL_EXPR_FN.
10887 * tree.c (get_callee_fndecl): Likewise.
10888 (build_call_expr_internal_loc): New function.
10889 * tree.def (CALL_EXPR): Update description.
10890 * tree.h (CALL_EXPR_IFN): Define.
10891 (build_call_expr_internal_loc): Declare.
10892 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10893 types.
10894 (ubsan_type_descriptor): Change bool parameter to enum
10895 ubsan_print_style. Adjust the code. Add handling of
10896 UBSAN_PRINT_ARRAY.
10897 (ubsan_expand_bounds_ifn): New function.
10898 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10899 (ubsan_build_overflow_builtin): Likewise.
10900 (instrument_bool_enum_load): Likewise.
10901 (ubsan_instrument_float_cast): Likewise.
10902 * ubsan.h (enum ubsan_print_style): New enum.
10903 (ubsan_expand_bounds_ifn): Declare.
10904 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
10905
10906 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
10907
10908 * config/rs6000/rs6000.md: Append `DONE' to preparation
10909 statements of `bswap' pattern splitters.
10910
10911 2014-06-20 Tom de Vries <tom@codesourcery.com>
10912
10913 * target.def (call_fusage_contains_non_callee_clobbers): Update
10914 definition.
10915 * doc/tm.texi: Regenerate.
10916
10917 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10918 Max Ostapenko <m.ostapenko@partner.samsung.com>
10919
10920 PR sanitizer/61547
10921 * asan.c (instrument_strlen_call): Fixed instrumentation of
10922 trailing byte.
10923
10924 2014-06-20 Martin Jambor <mjambor@suse.cz>
10925
10926 PR ipa/61540
10927 * ipa-prop.c (impossible_devirt_target): New function.
10928 (try_make_edge_direct_virtual_call): Use it, also instead of
10929 asserting.
10930
10931 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10932 Max Ostapenko <m.ostapenko@partner.samsung.com>
10933
10934 PR sanitizer/61530
10935 * asan.c (build_check_stmt): Add condition.
10936
10937 2014-06-20 Martin Jambor <mjambor@suse.cz>
10938
10939 PR ipa/61211
10940 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10941 expanded clones.
10942
10943 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10944
10945 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10946 Update comments.
10947 (VCONQ): Make comment more helpful.
10948 (VCON): Delete.
10949 * config/aarch64/aarch64-simd.md
10950 (aarch64_sqdmulh_lane<mode>):
10951 Use VCOND for operands 2. Update lane checking and flipping logic.
10952 (aarch64_sqrdmulh_lane<mode>): Likewise.
10953 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10954 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10955 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10956 attribute of operand 3 to VCOND.
10957 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10958 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10959 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10960 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10961 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10962 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10963 define_insn.
10964 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10965 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10966 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10967 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10968 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10969 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10970 operand to VCOND. Update lane flipping and bounds checking logic.
10971 (aarch64_sqdmlal2_lane<mode>): Likewise.
10972 (aarch64_sqdmlsl_lane<mode>): Likewise.
10973 (aarch64_sqdmull_lane<mode>): Likewise.
10974 (aarch64_sqdmull2_lane<mode>): Likewise.
10975 (aarch64_sqdmlal_laneq<mode>):
10976 Replace VCON usage with VCONQ.
10977 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10978 (aarch64_sqdmlal2_laneq<mode>): Emit
10979 aarch64_sqdmlal2_laneq<mode>_internal insn.
10980 Replace VCON with VCONQ.
10981 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10982 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10983 (aarch64_sqdmull_laneq<mode>): Emit
10984 aarch64_sqdmull_laneq<mode>_internal insn.
10985 Replace VCON with VCONQ.
10986 (aarch64_sqdmull2_laneq<mode>): Emit
10987 aarch64_sqdmull2_laneq<mode>_internal insn.
10988 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
10989 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
10990 of 3rd argument to int16x4_t.
10991 (vqdmlalh_lane_s16): Likewise.
10992 (vqdmlslh_lane_s16): Likewise.
10993 (vqdmull_high_lane_s16): Likewise.
10994 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
10995 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
10996 (vqdmlsl_lane_s16): Likewise.
10997 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
10998 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
10999 (vqdmlals_lane_s32): Likewise.
11000 (vqdmlsls_lane_s32): Likewise.
11001 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11002 (vqdmulls_lane_s32): Likewise.
11003 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11004 (vqdmlsl_lane_s32): Likewise.
11005 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11006 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11007 (vqrdmulhh_lane_s16): Likewise.
11008 (vqdmlsl_high_lane_s16): Likewise.
11009 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11010 (vqdmlsl_high_lane_s32): Likewise.
11011 (vqrdmulhs_lane_s32): Likewise.
11012
11013 2014-06-20 Tom de Vries <tom@codesourcery.com>
11014
11015 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11016 get_call_reg_set_usage.
11017
11018 2014-06-20 Tom de Vries <tom@codesourcery.com>
11019
11020 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11021 it contains all call_used_regs.
11022
11023 2014-06-20 Tom de Vries <tom@codesourcery.com>
11024
11025 * final.c (collect_fn_hard_reg_usage): Add and use variable
11026 function_used_regs.
11027
11028 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11029
11030 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11031 (set_init_priority, get_init_priority, set_fini_priority,
11032 get_fini_priority): New methods.
11033 * tree.c (init_priority_for_decl): Remove.
11034 (init_ttree): Do not initialize init priority.
11035 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11036 (decl_priority_info): Remove.
11037 (decl_init_priority_insert): Rewrite.
11038 (decl_fini_priority_insert): Rewrite.
11039 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11040 tree_priority_map_marked_p): Remove.
11041 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11042 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11043 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11044 not output priorities.
11045 (pack_ts_function_decl_value_fields): Likewise.
11046 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11047 not input priorities.
11048 (unpack_ts_function_decl_value_fields): Likewise.
11049 * symtab.c (symbol_priority_map): Declare.
11050 (init_priority_hash): Declare.
11051 (symtab_unregister_node): Unregister from priority hash, too.
11052 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11053 New methods.
11054 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11055 (symbol_priority_info): New function.
11056 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11057 New methods.
11058 * tree-core.h (tree_priority_map): Remove.
11059
11060 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11061
11062 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11063 0xff to uint64_t before shifting it up.
11064
11065 2014-06-20 Julian Brown <julian@codesourcery.com>
11066 Chung-Lin Tang <cltang@codesourcery.com>
11067
11068 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11069 TARGET_THUMB1_ONLY. Add comments.
11070
11071 2014-06-19 Tom de Vries <tom@codesourcery.com>
11072
11073 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11074 return type to void.
11075 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11076
11077 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11078
11079 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11080 as "move", from depends_on.
11081
11082 2014-06-19 Terry Guo <terry.guo@arm.com>
11083
11084 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11085 stage.
11086
11087 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11088
11089 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11090 Remove cr5.
11091 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11092
11093 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11094
11095 PR target/61550
11096 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11097 addresses here if reload in progress or completed.
11098
11099 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11100
11101 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11102 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11103 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11104 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11105 (mips_register_priority): New function that implements the target
11106 hook TARGET_REGISTER_PRIORITY.
11107 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11108 (mips_lra_p): Likewise for TARGET_LRA_P.
11109 (TARGET_REGISTER_PRIORITY): Define macro.
11110 (TARGET_SPILL_CLASS): Likewise.
11111 (TARGET_LRA_P): Likewise.
11112 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11113 classes.
11114 (REG_CLASS_NAMES): Likewise.
11115 (REG_CLASS_CONTENTS): Likewise.
11116 (BASE_REG_CLASS): Use M16_SP_REGS.
11117 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11118 New set attribute to enable alternatives depending on the register
11119 allocator used.
11120 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11121 (*lea64): Disable pattern for MIPS16.
11122 * config/mips/mips.opt (mlra): New option.
11123
11124 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11125
11126 * lra-constraints.c (base_to_reg): New function.
11127 (process_address): Use new function.
11128
11129 2014-06-18 Tom de Vries <tom@codesourcery.com>
11130
11131 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11132 * config/aarch64/aarch64.c
11133 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11134 (aarch64_emit_call_insn): New function.
11135 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11136 of emit_call_insn.
11137 * config/aarch64/aarch64.md (define_expand "call_internal")
11138 (define_expand "call_value_internal", define_expand "sibcall_internal")
11139 (define_expand "sibcall_value_internal"): New.
11140 (define_expand "call", define_expand "call_value")
11141 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11142 expand variant and aarch64_emit_call_insn.
11143
11144 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11145 Tom de Vries <tom@codesourcery.com>
11146
11147 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11148 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11149 Redefine to true.
11150 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11151 clobbers to CALL_INSN_FUNCTION_USAGE.
11152 (define_expand "sibcall_internal")
11153 (define_expand "sibcall_value_internal"): New.
11154 (define_expand "call", define_expand "call_value"): Add argument to
11155 arm_emit_call_insn.
11156 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11157 (define_expand "sibcall_value"): Use sibcall_value_internal and
11158 arm_emit_call_insn.
11159
11160 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11161
11162 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11163
11164 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11165
11166 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11167 __udivmoddi4.
11168
11169 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11170
11171 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11172 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11173 annotations. Fix DWARF information.
11174
11175 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11176
11177 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11178 __udivmoddi4, and fixups for negative operands.
11179
11180 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11181
11182 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11183
11184 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11185
11186 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11187 to __udivmoddi4.
11188
11189 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11190
11191 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11192 manipulation.
11193
11194 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11195
11196 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11197 describing register usage on function entry and exit.
11198
11199 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11200
11201 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11202 (__aeabi_ldivmod): Fix whitespace.
11203
11204 2014-06-18 Andreas Schwab <schwab@suse.de>
11205
11206 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11207 Remove blank line after @item.
11208
11209 2014-06-18 Richard Henderson <rth@redhat.com>
11210
11211 PR target/61545
11212 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11213
11214 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11215
11216 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11217 POST_MODIFY for neon loads and stores.
11218 (arm_print_operand): Output post-index register for neon loads and
11219 stores.
11220
11221 2014-06-18 Richard Biener <rguenther@suse.de>
11222
11223 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11224
11225 2014-06-18 Richard Biener <rguenther@suse.de>
11226
11227 * tree-pass.h (make_pass_dce_loop): Remove.
11228 * passes.def: Replace pass_dce_loop with pass_dce.
11229 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11230 changed free niter estimates and reset the scev cache.
11231 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11232 make_pass_dce_loop): Remove.
11233 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11234 (fini_copy_prop): Return whether something changed. Always
11235 let substitute_and_fold perform DCE and free niter estimates
11236 and reset the scev cache if so.
11237 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11238 (pass_data_copy_prop): Do not unconditionally schedule
11239 cleanup-cfg or update-ssa.
11240
11241 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11242
11243 PR tree-optimization/61518
11244 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11245 reduction var is used in reduction stmt or phi-function only.
11246
11247 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11248
11249 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11250
11251 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11252
11253 PR tree-optimization/61517
11254 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11255 whose rhs's first tree is the source expression instead of the
11256 expression itself.
11257 (find_bswap_or_nop): Likewise.
11258 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11259 gimple stmt whose rhs's first tree is the source. In the memory source
11260 case, move the stmt to be replaced close to one of the original load to
11261 avoid the problem of a store between the load and the stmt's original
11262 location.
11263 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11264 signature.
11265
11266 2014-06-18 Andreas Schwab <schwab@suse.de>
11267
11268 PR rtl-optimization/54555
11269 * postreload.c (move2add_use_add2_insn): Substitute
11270 STRICT_LOW_PART only if it is cheaper.
11271
11272 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11273
11274 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11275 Do not use unspec as call operand. Use memory_operand instead of
11276 memory_nox32_operand and add "m" operand constraint. Disable
11277 pattern for TARGET_X32.
11278 (*sibcall_pop_memory): Ditto.
11279 (*sibcall_value_memory): Ditto.
11280 (*sibcall_value_pop_memory): Ditto.
11281 (sibcall peepholes): Merge SImode and DImode patterns using
11282 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11283 Disable pattern for TARGET_X32. Check if eliminated register is
11284 really dead after call insn. Generate call RTX without unspec operand.
11285 (sibcall_value peepholes): Ditto.
11286 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11287 instead of memory_nox32_operand. Check if eliminated register is
11288 really dead after call insn. Generate call RTX without unspec operand.
11289 (sibcall_value_pop peepholes): Ditto.
11290 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11291
11292 2014-06-18 Terry Guo <terry.guo@arm.com>
11293
11294 PR target/61544
11295 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11296 reach the head.
11297
11298 2014-06-18 Olivier Hainque <hainque@adacore.com>
11299
11300 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11301 memorization of the end of block source location.
11302 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11303 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11304 end source location info we have on the block entry/exit code we
11305 generate.
11306
11307 2014-06-18 Richard Biener <rguenther@suse.de>
11308
11309 * common.opt (fssa-phiopt): New option.
11310 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11311 but not with -Og.
11312 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11313 * doc/invoke.texi (-fssa-phiopt): Document.
11314
11315 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11316
11317 * genattrtab.c (n_bypassed): New variable.
11318 (process_bypasses): Initialise n_bypassed.
11319 Count number of bypassed reservations.
11320 (make_automaton_attrs): Allocate space for bypassed reservations
11321 rather than number of bypasses.
11322
11323 2014-06-18 Richard Biener <rguenther@suse.de>
11324
11325 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11326 we propagated anything.
11327 (substitute_and_fold_dom_walker::before_dom_children): Something
11328 changed if we propagated into PHI arguments.
11329 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11330 we removed a stmt.
11331
11332 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11333
11334 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11335 vector case.
11336 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11337 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11338 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11339 Introduces alternative way of loads group permutaions.
11340 (vect_transform_grouped_load): Try alternative way of permutations.
11341
11342 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11343
11344 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11345 changed in ORT_TARGET region, don't jump to do_outer.
11346 (struct gimplify_adjust_omp_clauses_data): New type.
11347 (gimplify_adjust_omp_clauses_1): Adjust for data being
11348 a struct gimplify_adjust_omp_clauses_data pointer instead
11349 of tree *. Pass pre_p as a new argument to
11350 lang_hooks.decls.omp_finish_clause hook.
11351 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11352 splay_tree_foreach to pass both list_p and pre_p.
11353 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11354 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11355 gimplify_adjust_omp_clauses callers.
11356 * langhooks.c (lhd_omp_finish_clause): New function.
11357 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11358 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11359 * langhooks.h (struct lang_hooks_for_decls): Add a new
11360 gimple_seq * argument to omp_finish_clause hook.
11361 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11362 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11363 (scan_omp_parallel, lower_omp_for): When adding
11364 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11365 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11366 * tree-nested.c (convert_nonlocal_omp_clauses,
11367 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11368 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11369
11370 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11371
11372 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11373 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11374
11375 2014-06-17 Xinliang David Li <davidxl@google.com>
11376
11377 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11378 * passes.c (pass_init_dump_file): Do not set initialize
11379 flag to false unconditionally.
11380
11381 2014-06-17 Richard Biener <rguenther@suse.de>
11382
11383 * genopinit.c (main): Use vec<>::qsort method.
11384 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11385 Likewise.
11386 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11387
11388 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11389
11390 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11391 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11392 (mips_move_to_gpr_cost): Remove ST_REGS case.
11393 (mips_move_from_gpr_cost): Likewise.
11394 (mips_register_move_cost): Likewise.
11395 (mips_secondary_reload_class): Likewise.
11396
11397 2014-06-17 Richard Biener <rguenther@suse.de>
11398
11399 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11400 (pass_all_optimizations): Move 3rd copy-prop pass from after
11401 fre to before ifcombine/phiopt.
11402
11403 2014-06-17 Richard Biener <rguenther@suse.de>
11404
11405 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11406 and allow all blocks to be forwarders.
11407
11408 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11409
11410 PR target/61483
11411 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11412 variable 'size'; calculate 'size' right in the front; use
11413 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11414 pcum->aapcs_stack_words.
11415
11416 2014-06-17 Nick Clifton <nickc@redhat.com>
11417
11418 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11419 (umulhi3, mulsidi3, umulsidi3): Likewise.
11420
11421 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11422
11423 PR middle-end/61508
11424 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11425 check for section name.
11426
11427 2014-06-17 Richard Biener <rguenther@suse.de>
11428
11429 * tree-ssa-propagate.c: Include domwalk.h.
11430 (substitute_and_fold): Outline main worker into a domwalker ...
11431 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11432 Schedule stmts we can fully propagate for removal. Remove
11433 poor-mans DCE.
11434 (substitute_and_fold): Apply a dominator walk to perform
11435 substitution. Process stmts scheduled for removal here.
11436
11437 2014-06-17 Richard Biener <rguenther@suse.de>
11438
11439 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11440 of PHI node moving.
11441
11442 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11443
11444 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11445 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11446 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11447 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11448 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11449 TARGET_HARD_FLOAT.
11450 (get_fpscr) : Likewise.
11451
11452 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11453
11454 PR rtl-optimization/61325
11455 * lra-constraints.c (valid_address_p): Add forward declaration.
11456 (simplify_operand_subreg): Check address validity before and after
11457 alter_reg of memory subreg.
11458
11459 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11460
11461 * config/i386/i386.c (decide_alg): Correctly handle
11462 maximum size of stringop algorithm.
11463
11464 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11465
11466 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11467
11468 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11469
11470 PR rtl-optimization/61522
11471 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11472
11473 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11474
11475 Revert:
11476 * symtab.c (symtab_node::reset_section): New method.
11477 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11478 for localization.
11479 * cgraph.h (reset_section): Declare.
11480 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11481 do not consider comdat locals.
11482 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11483 for new symbol.
11484 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11485 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11486 reset sections of symbols dragged out of the comdats.
11487 (function_and_variable_visibility): Reset sections of
11488 localized symbols.
11489
11490 2014-06-16 Richard Biener <rguenther@suse.de>
11491
11492 PR tree-optimization/61482
11493 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11494 [-INF(OVF), +INF(OVF)] range.
11495
11496 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11497
11498 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11499 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11500 handling 32-bit multiplication.
11501
11502 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11503
11504 PR middle-end/61430
11505 * lra-lives.c (process_bb_lives): Skip creating copy during
11506 insn scan when src/dest has constrained to same regno.
11507
11508 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11509
11510 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11511 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11512
11513 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11514
11515 * asan.c (check_func): New function.
11516 (maybe_create_ssa_name): Likewise.
11517 (build_check_stmt_with_calls): Likewise.
11518 (use_calls_p): Likewise.
11519 (report_error_func): Change interface.
11520 (build_check_stmt): Allow non-integer lengths; add support
11521 for new parameter.
11522 (asan_instrument): Likewise.
11523 (instrument_mem_region_access): Moved code to build_check_stmt.
11524 (instrument_derefs): Likewise.
11525 (instrument_strlen_call): Likewise.
11526 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11527 * doc/invoke.texi: Describe new parameter.
11528 * params.def: Define new parameter.
11529 * params.h: Likewise.
11530 * sanitizer.def: Describe new builtins.
11531
11532 2014-06-16 Richard Biener <rguenther@suse.de>
11533
11534 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11535 Make all defs available at the end.
11536 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11537
11538 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11539
11540 PR plugins/45078
11541 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11542
11543 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11544
11545 PR bootstrap/61516
11546 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11547 initialization. Replace remaining use of uid.
11548
11549 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11550
11551 * c-family/c-common.c (handle_tls_model_attribute): Use
11552 set_decl_tls_model.
11553 * c-family/c-common.c (handle_tls_model_attribute): Use
11554 set_decl_tls_model.
11555 * cgraph.h (struct varpool_node): Add tls_model.
11556 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11557 * tree.h (DECL_TLS_MODEL): Update.
11558 (DECL_THREAD_LOCAL_P): Check that variable is static.
11559 (decl_tls_model): Declare.
11560 (set_decl_tls_model): Declare.
11561 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11562 set symbol prorperties.
11563 (get_emutls_init_templ_addr): Cleanup.
11564 (new_emutls_decl): Update.
11565 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11566 (lto_input_varpool_node): Likewise.
11567 * lto-streamer-out.c (hash_tree): Likewise.
11568 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11569 not stream DECL_TLS_MODEL.
11570 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11571 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11572
11573 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11574
11575 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11576
11577 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11578
11579 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11580 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11581 lists.
11582 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11583 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11584 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11585 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11586 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11587 (df_get_artificial_defs, df_get_artificial_uses)
11588 (df_single_def, df_single_use): Update accordingly.
11589 (df_refs_chain_dump): Take the first element in a linked list as
11590 parameter, rather than a pointer to an array of pointers.
11591 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11592 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11593 (df_chain_create_bb_process_use): Likewise.
11594 (df_md_bb_local_compute_process_def): Likewise.
11595 * fwprop.c (process_defs, process_uses): Likewise.
11596 (register_active_defs, update_uses): Likewise.
11597 (forward_propagate_asm): Update for new df_ref linking.
11598 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11599 (df_null_ref_rec, df_null_mw_rec): Likewise.
11600 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11601 explicitly.
11602 (df_scan_free_bb_info): Remove check for null artificial_defs.
11603 (df_install_ref_incremental): Adjust for new df_ref linking.
11604 Use a single-element insertion rather than a full sort.
11605 (df_ref_chain_delete_du_chain): Take the first element
11606 in a linked list as parameter, rather than a pointer to an array of
11607 pointers.
11608 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11609 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11610 (df_insn_info_delete): Remove check for null defs and call to
11611 df_scan_free_mws_vec.
11612 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11613 null rather than df_null_*_rec.
11614 (df_insn_rescan_debug_internal): Likewise, and update null
11615 checks in the same way. Remove check for null defs.
11616 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11617 Move a single element rather doing a full sort.
11618 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11619 linking.
11620 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11621 Initialize df_ref and df_mw_hardreg lists to null rather than
11622 df_null_*_rec.
11623 (df_ref_compare): Take df_refs as parameter, transferring the
11624 old interface to...
11625 (df_ref_ptr_compare): ...this new function.
11626 (df_sort_and_compress_refs): Update accordingly.
11627 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11628 old interface to...
11629 (df_mw_ptr_compare): ...this new function.
11630 (df_sort_and_compress_mws): Update accordingly.
11631 (df_install_refs, df_install_mws): Return a linked list rather than
11632 an array of pointers.
11633 (df_refs_add_to_chains): Assert that old lists are empty rather
11634 than freeing them.
11635 (df_insn_refs_verify): Don't handle null defs speciailly.
11636 * web.c (union_match_dups): Update for new df_ref linking.
11637
11638 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11639
11640 * df.h (df_ref_create, df_ref_remove): Delete.
11641 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11642 (df_ref_remove): Likewise.
11643
11644 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11645
11646 * df.h (df_single_def, df_single_use): New functions.
11647 * ira.c (find_moveable_pseudos): Use them.
11648
11649 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11650
11651 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11652 * df-problems.c (df_note_bb_compute): Use it.
11653 * regstat.c (regstat_bb_compute_ri): Likewise.
11654
11655 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11656
11657 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11658 * cse.c (cse_extended_basic_block): Use them.
11659 * dce.c (mark_artificial_use): Likewise.
11660 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11661 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11662 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11663 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11664 (df_simulate_initialize_backwards): Likewise.
11665 (df_simulate_finalize_backwards): Likewise.
11666 (df_simulate_initialize_forwards): Likewise.
11667 (df_md_simulate_artificial_defs_at_top): Likewise.
11668 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11669 * regrename.c (init_rename_info): Likewise.
11670 * regstat.c (regstat_bb_compute_ri): Likewise.
11671 (regstat_bb_compute_calls_crossed): Likewise.
11672
11673 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11674
11675 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11676 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11677 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11678 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11679 * combine.c (create_log_links): Likewise.
11680 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11681 (try_eliminate_compare): Likewise.
11682 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11683 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11684 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11685 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11686 (word_dce_process_block, dce_process_block): Likewise.
11687 * ddg.c (def_has_ccmode_p): Likewise.
11688 * df-core.c (df_bb_regno_first_def_find): Likewise.
11689 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11690 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11691 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11692 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11693 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11694 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11695 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11696 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11697 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11698 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11699 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11700 * fwprop.c (local_ref_killed_between_p): Likewise.
11701 (all_uses_available_at, free_load_extend): Likewise.
11702 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11703 * hw-doloop.c (scan_loop): Likewise.
11704 * ifcvt.c (dead_or_predicable): Likewise.
11705 * init-regs.c (initialize_uninitialized_regs): Likewise.
11706 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11707 (process_bb_node_lives): Likewise.
11708 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11709 (find_moveable_pseudos): Likewise.
11710 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11711 * recog.c (peep2_find_free_register): Likewise.
11712 * ree.c (get_defs): Likewise.
11713 * regstat.c (regstat_bb_compute_ri): Likewise.
11714 (regstat_bb_compute_calls_crossed): Likewise.
11715 * sched-deps.c (find_inc, find_mem): Likewise.
11716 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11717 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11718 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11719 (prepare_shrink_wrap): Likewise.
11720 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11721 * web.c (union_defs, pass_web::execute): Likewise.
11722 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11723 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11724
11725 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11726
11727 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11728 to inheritance pseudos.
11729 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11730
11731 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11732
11733 PR target/61415
11734 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11735 (BU_MISC_2): Rename to ...
11736 (BU_LDBL128_2): ... this.
11737 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11738 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11739 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11740 RS6000_BTM_LDBL128.
11741 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11742 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11743 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11744 (unpacktf_1): Likewise.
11745 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11746 (__builtin_longdouble_dw1): Likewise.
11747 * doc/sourcebuild.texi (longdouble128): Document.
11748
11749 2014-06-13 Jeff Law <law@redhat.com>
11750
11751 PR rtl-optimization/61094
11752 PR rtl-optimization/61446
11753 * ree.c (combine_reaching_defs): Get the mode for the copy from
11754 the extension insn rather than the defining insn.
11755
11756 2014-06-13 Dehao Chen <dehao@google.com>
11757
11758 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11759
11760 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11761
11762 * doc/install.texi (--enable-linker-plugin-configure-flags)
11763 (--enable-linker-plugin-flags): Document new flags.
11764
11765 2014-06-13 Martin Jambor <mjambor@suse.cz>
11766
11767 PR ipa/61186
11768 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11769 cache_token if returning early.
11770
11771 2014-06-13 Nick Clifton <nickc@redhat.com>
11772
11773 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11774 requested alignment is active.
11775 (LABEL_ALIGN): Likewise.
11776 (LOOP_ALIGN): Likewise.
11777
11778 2014-06-13 Richard Biener <rguenther@suse.de>
11779
11780 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11781 Rewrite to propagate the VN result into all uses where
11782 possible and to remove stmts becoming dead because of that.
11783 (eliminate): Generalize stmt removal handling, remove in
11784 reverse dominator order to support proper debug stmt
11785 generation. Update stmts before removing stmts.
11786 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11787
11788 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11789
11790 PR tree-optimization/61375
11791 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11792 symbolic number cannot be represented in an uint64_t.
11793 (find_bswap_or_nop_1): Likewise.
11794
11795 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11796
11797 * symtab.c (symtab_node::reset_section): New method.
11798 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11799 for localization.
11800 * cgraph.h (reset_section): Declare.
11801 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11802 do not consider comdat locals.
11803 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11804 for new symbol.
11805 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11806 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11807 reset sections of symbols dragged out of the comdats.
11808 (function_and_variable_visibility): Reset sections of
11809 localized symbols.
11810
11811 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11812
11813 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11814 to use symtab and decl_binds_to_current_def_p
11815 * tree-vectorizer.c (increase_alignment): Increase alignment
11816 of alias target, too.
11817
11818 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11819
11820 PR middle-end/61486
11821 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11822 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11823 if outer combined construct is distribute.
11824 (gimplify_omp_for): For OMP_DISTRIBUTE set
11825 gimplify_omp_ctxp->distribute.
11826 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11827 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11828 mapping into decl map.
11829
11830 2014-06-12 Jason Merrill <jason@redhat.com>
11831
11832 * common.opt (fabi-version): Change default to 0.
11833
11834 2014-06-12 Jason Merrill <jason@redhat.com>
11835
11836 * toplev.c (process_options): Reject -fabi-version=1.
11837
11838 2014-06-12 Jeff Law <law@redhat.com>
11839
11840 PR tree-optimization/61009
11841 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11842 value when we stop processing a block due to problematic PHIs.
11843
11844 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11845
11846 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11847 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11848 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11849 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11850 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11851 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11852 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11853 are not in the spec.
11854
11855 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11856
11857 PR target/59843
11858 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11859 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11860 Support V1DFmode.
11861
11862 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11863
11864 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11865
11866 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11867
11868 PR target/61443
11869 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11870 loading from address spaces.
11871
11872 2014-06-12 Martin Liska <mliska@suse.cz>
11873
11874 PR ipa/61462
11875 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11876 statement is reachable.
11877
11878 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11879
11880 * symtab.c (section_hash): New hash.
11881 (symtab_unregister_node): Clear section before freeing.
11882 (hash_section_hash_entry): New haser.
11883 (eq_sections): New function.
11884 (symtab_node::set_section_for_node): New method.
11885 (set_section_1): Update.
11886 (symtab_node::set_section): Take string instead of tree as parameter.
11887 (symtab_resolve_alias): Update.
11888 * cgraph.h (section_hash_entry_d): New structure.
11889 (section_hash_entry): New typedef.
11890 (cgraph_node): Change comdat_group_ to x_comdat_group,
11891 change section_ to x_section and turn into section_hash_entry;
11892 update accestors; put set_section_for_node offline.
11893 * tree.c (decl_section_name): Turn into string.
11894 (set_decl_section_name): Change parameter to be string.
11895 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11896 * sdbout.c (sdbout_one_type): Update.
11897 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11898 * varasm.c (IN_NAMED_SECTION, get_named_section,
11899 resolve_unique_section, hot_function_section, get_named_text_section,
11900 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11901 make_decl_rtl, default_unique_section): Update.
11902 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11903 (c6x_elf_unique_section): Update.
11904 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11905 * config/pa/pa.c (pa_function_section): Update.
11906 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11907 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11908 * config/arc/arc.c (arc_in_small_data_p): Update.
11909 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11910 * config/mcore/mcore.c (mcore_unique_section): Update.
11911 * config/mips/mips.c (mips16_build_function_stub): Update.
11912 (mips16_build_call_stub): Update.
11913 (mips_function_rodata_section): Update.
11914 (mips_in_small_data_p): Update.
11915 * config/score/score.c (score_in_small_data_p): Update.
11916 * config/rx/rx.c (rx_in_small_data): Update.
11917 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11918 (rs6000_xcoff_asm_named_section): Update.
11919 (rs6000_xcoff_unique_section): Update.
11920 * config/frv/frv.c (frv_string_begins_with): Update.
11921 (frv_in_small_data_p): Update.
11922 * config/v850/v850.c (v850_encode_data_area): Update.
11923 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11924 (bfin_handle_l1_data_attribute): Update.
11925 (bfin_handle_l2_attribute): Update.
11926 * config/mep/mep.c (mep_unique_section): Update.
11927 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11928 Update.
11929 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11930 (h8300_handle_tiny_data_attribute): Update.
11931 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11932 (m32r_in_small_data_p): Update.
11933 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11934 * config/i386/i386.c (ix86_in_large_data_p): Update.
11935 * config/i386/winnt.c (i386_pe_unique_section): Update.
11936 * config/darwin.c (darwin_function_section): Update.
11937 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11938 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11939 (new_emutls_decl): Update.
11940 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11941 input_varpool_node): Update.
11942 (ead_string_cst): Turn to ...
11943 (read_string): ... this one.
11944 * dwarf2out.c (secname_for_decl): Update.
11945 * asan.c (asan_protect_global): Update.
11946
11947 2014-06-11 DJ Delorie <dj@redhat.com>
11948
11949 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11950 cache lines.
11951 * config/rx/rx.c (rx_option_override): Likewise.
11952 (rx_align_for_label): Likewise.
11953
11954 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11955
11956 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
11957
11958 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11959 prototype.
11960
11961 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11962
11963 * common.md: New file.
11964 * doc/md.texi: Update description of generic, machine-independent
11965 constraints.
11966 * config/s390/constraints.md (e): Delete.
11967 * Makefile.in (md_file): Include common.md.
11968 * config/m32c/t-m32c (md_file): Likewise.
11969 * genpreds.c (general_mem): New array.
11970 (generic_constraint_letters): Remove constraints now defined by
11971 common.md.
11972 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11973 Allow the first character to be '<' or '>' as well.
11974 * genoutput.c (general_mem): New array.
11975 (indep_constraints): Remove constraints now defined by common.md.
11976 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11977 Remove special handling of 'm'.
11978 * ira-costs.c (record_reg_classes): Remove special handling of
11979 constraints now defined by common.md.
11980 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11981 * ira-lives.c (single_reg_class): Likewise.
11982 (ira_implicitly_set_insn_hard_regs): Likewise.
11983 * lra-constraints.c (reg_class_from_constraints): Likewise.
11984 (process_alt_operands, process_address, curr_insn_transform): Likewise.
11985 * postreload.c (reload_cse_simplify_operands): Likewise.
11986 * reload.c (push_secondary_reload, scratch_reload_class)
11987 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11988 * reload1.c (maybe_fix_stack_asms): Likewise.
11989 * targhooks.c (default_secondary_reload): Likewise.
11990 * stmt.c (parse_output_constraint): Likewise.
11991 * recog.c (preprocess_constraints): Likewise.
11992 (constrain_operands, peep2_find_free_register): Likewise.
11993 (asm_operand_ok): Likewise, but add a comment saying why 'o'
11994 must be handled specially.
11995
11996 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11997
11998 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
11999 * genpreds.c (have_const_dbl_constraints): Delete.
12000 (add_constraint): Don't set it.
12001 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12002 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12003 constraints using the lookup_constraint logic.
12004 * ira-lives.c (single_reg_class): Likewise.
12005 * ira.c (ira_setup_alts): Likewise.
12006 * lra-constraints.c (process_alt_operands): Likewise.
12007 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12008 * reload.c (find_reloads): Likewise.
12009
12010 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12011
12012 * genpreds.c (const_int_start, const_int_end): New variables.
12013 (choose_enum_order): Output CONST_INT constraints before memory
12014 constraints.
12015 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12016 Add CT_CONST_INT.
12017 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12018 * ira.c (ira_setup_alts): Likewise.
12019 * lra-constraints.c (process_alt_operands): Likewise.
12020 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12021 * reload.c (find_reloads): Likewise.
12022
12023 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12024
12025 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12026 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12027 * recog.c (preprocess_constraints): Update accordingly.
12028
12029 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12030
12031 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12032 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12033 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12034 * genpreds.c (print_type_tree): New function.
12035 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12036 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12037 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12038 Write out enum constraint_type and get_constraint_type.
12039 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12040 constraint_num rather than a constraint string.
12041 (satisfies_address_constraint_p): Likewise.
12042 (reg_class_from_constraints): Avoid old constraint macros.
12043 (process_alt_operands, process_address_1): Likewise.
12044 (curr_insn_transform): Likewise.
12045 * ira-costs.c (record_reg_classes): Likewise.
12046 (record_operand_costs): Likewise.
12047 * ira-lives.c (single_reg_class): Likewise.
12048 (ira_implicitly_set_insn_hard_regs): Likewise.
12049 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12050 * postreload.c (reload_cse_simplify_operands): Likewise.
12051 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12052 (constrain_operands, peep2_find_free_register): Likewise.
12053 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12054 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12055 * reload1.c (maybe_fix_stack_asms): Likewise.
12056 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12057 * targhooks.c (default_secondary_reload): Likewise.
12058 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12059 to EXTRA_CONSTRAINT_STR.
12060 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12061
12062 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12063
12064 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12065 (write_constraint_satisfied_p_array): ...this new function.
12066 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12067 an array.
12068 (write_insn_preds_c): Update accordingly.
12069
12070 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12071
12072 * genpreds.c (write_lookup_constraint): Rename to...
12073 (write_lookup_constraint_1): ...this.
12074 (write_lookup_constraint_array): New function.
12075 (write_tm_preds_h): Define lookup_constraint as an inline function
12076 that uses write_lookup_constraint_array where possible.
12077 (write_insn_preds_c): Update for the changes above.
12078
12079 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12080
12081 * doc/md.texi (regclass_for_constraint): Rename to...
12082 (reg_class_for_constraint): ...this.
12083 * genpreds.c (num_constraints, enum_order, register_start)
12084 (register_end, satisfied_start, memory_start, memory_end)
12085 (address_start, address_end): New variables.
12086 (add_constraint): Count the number of constraints.
12087 (choose_enum_order): New function.
12088 (write_enum_constraint_num): Iterate over enum_order.
12089 (write_regclass_for_constraint): Rename to...
12090 (write_reg_class_for_constraint_1): ...this and update output
12091 accordingly.
12092 (write_constraint_satisfied_p): Rename to...
12093 (write_constraint_satisfied_p_1): ...this and update output
12094 accordingly. Do nothing if all extra constraints are register
12095 constraints.
12096 (write_insn_extra_memory_constraint): Delete.
12097 (write_insn_extra_address_constraint): Delete.
12098 (write_range_function): New function.
12099 (write_tm_preds_h): Define constraint_satisfied_p and
12100 reg_class_for_constraint as inline functions that do a range check
12101 before calling the out-of-line function. Use write_range_function
12102 to implement insn_extra_{register,memory,address}_constraint,
12103 the first of which is new.
12104 (write_insn_preds_c): Update after above changes to write_* functions.
12105 (main): Call choose_enum_order.
12106
12107 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12108
12109 PR tree-optimization/61306
12110 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12111 expression instead of its size.
12112 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12113 false to prevent optimization when the result is unpredictable due to
12114 arithmetic right shift of signed type with highest byte is set.
12115 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12116 (init_symbolic_number): Likewise.
12117 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12118 when the result is unpredictable due to sign extension.
12119
12120 2014-06-11 Terry Guo <terry.guo@arm.com>
12121
12122 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12123 (*thumb1_addsi3): Ditto.
12124 (*thumb_subdi3): Ditto.
12125 (thumb1_subsi3_insn): Ditto.
12126 (*thumb_mulsi3): Ditto.
12127 (*thumb_mulsi3_v6): Ditto.
12128 (*thumb1_andsi3_insn): Ditto.
12129 (thumb1_bicsi3): Ditto.
12130 (*thumb1_iorsi3_insn): Ditto.
12131 (*thumb1_xorsi3_insn): Ditto.
12132 (*thumb1_ashlsi3): Ditto.
12133 (*thumb1_ashrsi3): Ditto.
12134 (*thumb1_lshrsi3): Ditto.
12135 (*thumb1_rotrsi3): Ditto.
12136 (*thumb1_negdi2): Ditto.
12137 (*thumb1_negsi2): Ditto.
12138 (*thumb1_abssi2): Ditto.
12139 (*thumb1_neg_abssi2): Ditto.
12140 (*thumb1_one_cmplsi2): Ditto.
12141 (*thumb1_zero_extendhisi2): Ditto.
12142 (*thumb1_zero_extendqisi2): Ditto.
12143 (*thumb1_zero_extendqisi2_v6): Ditto.
12144 (thumb1_extendhisi2): Ditto.
12145 (thumb1_extendqisi2): Ditto.
12146 (*thumb1_movdi_insn): Ditto.
12147 (*thumb1_movsi_insn): Ditto.
12148 (*thumb1_movhi_insn): Ditto.
12149 (thumb_movhi_clobber): Ditto.
12150 (*thumb1_movqi_insn): Ditto.
12151 (*thumb1_movhf): Ditto.
12152 (*thumb1_movsf_insn): Ditto.
12153 (*thumb_movdf_insn): Ditto.
12154 (movmem12b): Ditto.
12155 (movmem8b): Ditto.
12156 (cbranchqi4): Ditto.
12157 (cbranchsi4_insn): Ditto.
12158 (cbranchsi4_scratch): Ditto.
12159 (*negated_cbranchsi4): Ditto.
12160 (*tbit_cbranch): Ditto.
12161 (*tlobits_cbranch): Ditto.
12162 (*tstsi3_cbranch): Ditto.
12163 (*cbranchne_decr1): Ditto.
12164 (*addsi3_cbranch): Ditto.
12165 (*addsi3_cbranch_scratch): Ditto.
12166 (*thumb_cmpdi_zero): Ditto.
12167 (cstoresi_eq0_thumb1): Ditto.
12168 (cstoresi_ne0_thumb1): Ditto.
12169 (*cstoresi_eq0_thumb1_insn): Ditto.
12170 (*cstoresi_ne0_thumb1_insn): Ditto.
12171 (cstoresi_nltu_thumb1): Ditto.
12172 (cstoresi_ltu_thumb1): Ditto.
12173 (thumb1_addsi3_addgeu): Ditto.
12174 (*thumb_jump): Ditto.
12175 (*call_reg_thumb1_v5): Ditto.
12176 (*call_reg_thumb1): Ditto.
12177 (*call_value_reg_thumb1_v5): Ditto.
12178 (*call_value_reg_thumb1): Ditto.
12179 (*call_insn): Ditto.
12180 (*call_value_insn): Ditto.
12181 (thumb1_casesi_internal_pic): Ditto.
12182 (thumb1_casesi_dispatch): Ditto.
12183 (*thumb1_indirect_jump): Ditto.
12184 (prologue_thumb1_interwork): Ditto.
12185 (*epilogue_insns): Ditto.
12186 (consttable_1): Ditto.
12187 (consttable_2): Ditto.
12188 (tablejump): Ditto.
12189 (*thumb1_tablejump): Ditto.
12190 (thumb_eh_return): Ditto.
12191 (define_peephole2): Two of them are thumb1 only and got moved into
12192 new file thumb1.md.
12193 (define_split): Six of them are thumb1 only and got moved into new
12194 file thumb1.md.
12195 * config/arm/thumb1.md: New file comprised of above thumb1 only
12196 patterns.
12197
12198 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12199
12200 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12201 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12202 dependencies.
12203 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12204 (aarch64_crc_builtin_datum): New struct.
12205 (aarch64_crc_builtin_data): New.
12206 (aarch64_init_crc32_builtins): New function.
12207 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12208 (aarch64_crc32_expand_builtin): New.
12209 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12210 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12211 __ARM_FEATURE_CRC32 when appropriate.
12212 (TARGET_CRC32): Define.
12213 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12214 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12215 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12216 (aarch64_<crc_variant>): New pattern.
12217 * config/aarch64/arm_acle.h: New file.
12218 * config/aarch64/iterators.md (CRC): New int iterator.
12219 (crc_variant, crc_mode): New int attributes.
12220 * doc/aarch64-acle-intrinsics.texi: New file.
12221 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12222 Include aarch64-acle-intrinsics.texi.
12223
12224 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12225
12226 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12227 check for stores group of length 3.
12228 (vect_permute_store_chain): New permutations for stores group of
12229 length 3.
12230 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12231 of vec_perm_shuffle for the new permutations.
12232
12233 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12234
12235 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12236 table rewriting temporarily on targets not supporting ONE_ONLY.
12237
12238 2014-06-11 Richard Biener <rguenther@suse.de>
12239
12240 PR middle-end/61437
12241 Revert
12242 2014-06-04 Richard Biener <rguenther@suse.de>
12243
12244 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12245 TREE_PUBLIC and DECL_EXTERNAL decls.
12246
12247 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12248
12249 * varasm.c (set_implicit_section): New function.
12250 (resolve_unique_section): Use it to set implicit section
12251 for aliases, too.
12252 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12253 (default_function_section): Likewise.
12254 (decl_binds_to_current_def_p): Constify argument.
12255 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12256 * asan.c (asan_protect_global): Use
12257 symtab_get_node (decl)->implicit_section.
12258 * symtab.c (dump_symtab_base): Dump implicit sections.
12259 (verify_symtab_base): Verify sanity of sectoins and comdats.
12260 (symtab_resolve_alias): Alias share the section of its target.
12261 (set_section_1): New function.
12262 (symtab_node::set_section): Move here, recurse to aliases.
12263 (verify_symtab): Check for duplicated symtab lists.
12264 * tree-core.h (implicit_section_name_p): Remove.
12265 * tree-vect-data-refs.c: Include varasm.h.
12266 (vect_can_force_dr_alignment_p): Fix conditional on when
12267 decl bints to current definition; use
12268 symtab_get_node (decl)->implicit_section.
12269 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12270 * cgraph.h (struct symtab_node): Add implicit_section.
12271 (set_section): Rename to ...
12272 (set_section_for_node): ... this one.
12273 (set_section): Declare.
12274 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12275 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12276 input_overwrite_node, input_varpool_node): Stream implicit_section.
12277 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12278 removal; it will fail in LTO.
12279
12280 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12281
12282 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12283 Change second alternative type to f_mcr.
12284 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12285 and 12th alternatives' types to f_mcr and f_mrc.
12286 (*movdi_aarch64): Same for 12th and 13th alternatives.
12287 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12288 (aarch64_movtilow_tilow): Change type to fmov.
12289
12290 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12291
12292 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12293 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12294
12295 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12296
12297 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12298 New expander.
12299 (aarch64_sqrdmulh_lane<mode>): Likewise.
12300 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12301 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12302 (aarch64_sqdmulh_laneq<mode>): New expander.
12303 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12304 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12305 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12306 (aarch64_sqdmulh_lane<mode>): New expander.
12307 (aarch64_sqrdmulh_lane<mode>): Likewise.
12308 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12309 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12310 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12311 (aarch64_sqdmlal_laneq<mode>): Likewise.
12312 (aarch64_sqdmlsl_lane<mode>): Likewise.
12313 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12314 (aarch64_sqdmlal2_lane<mode>): Likewise.
12315 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12316 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12317 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12318 (aarch64_sqdmull_lane<mode>): Likewise.
12319 (aarch64_sqdmull_laneq<mode>): Likewise.
12320 (aarch64_sqdmull2_lane<mode>): Likewise.
12321 (aarch64_sqdmull2_laneq<mode>): Likewise.
12322
12323 2014-06-10 Richard Biener <rguenther@suse.de>
12324
12325 PR tree-optimization/61438
12326 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12327 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12328 insertion of IVs if running PRE.
12329 (eliminate): Adjust.
12330 (pass_pre::execute): Likewise.
12331 (pass_fre::execute): Likewise.
12332
12333 2014-06-10 Richard Biener <rguenther@suse.de>
12334
12335 PR middle-end/61456
12336 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12337 Do not use the main variant for the type comparison.
12338 (ncr_compar): Likewise.
12339 (nonoverlapping_component_refs_p): Likewise.
12340
12341 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12342
12343 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12344 REG_CFA_RESTORE mode.
12345
12346 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12347
12348 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12349 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12350 expand_vec_perm_pblendv.
12351
12352 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12353
12354 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12355 available.
12356 Simplify description of __crc32d and __crc32cd intrinsics.
12357 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12358 availability.
12359
12360 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12361
12362 PR lto/61334
12363 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12364 * config.in: Regenerate.
12365 * configure: Likewise.
12366
12367 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12368
12369 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12370 and public vars.
12371 (intersect_static_var_sets): Remove.
12372 (propagate): Do not prune local statics.
12373
12374 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12375
12376 PR fortran/60928
12377 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12378 Set lastprivate_firstprivate even if omp_private_outer_ref
12379 langhook returns true.
12380 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12381 langhook, call unshare_expr on new_var and call
12382 build_outer_var_ref to get the last argument.
12383
12384 2014-06-10 Marek Polacek <polacek@redhat.com>
12385
12386 PR c/60988
12387 * doc/extend.texi: Add cindex for transparent_union.
12388
12389 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12390
12391 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12392 init_symbolic_number ().
12393
12394 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12395
12396 PR middle-end/61141
12397 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12398 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12399 (verify_rtl_sharing): Likewise.
12400
12401 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12402
12403 PR c++/54442
12404 * tree.c (build_qualified_type): Use a canonical type for
12405 TYPE_CANONICAL.
12406
12407 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12408
12409 * config/arm/arm-modes.def: Remove XFmode.
12410
12411 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12412
12413 PR target/61062
12414 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12415 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12416 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12417 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12418 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12419 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12420 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12421 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12422 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12423
12424 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12425
12426 * tree-core.h (tree_decl_with_vis): Remove section_name.
12427
12428 2014-06-09 Kito Cheng <kito@0xlab.org>
12429
12430 * ira.c (ira): Don't call init_caller_save if LRA enabled
12431 since LRA use its own infrastructure to handle that.
12432
12433 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12434
12435 * symtab.c (dump_symtab_base): Update dumping.
12436 (symtab_make_decl_local): Clear only DECL_COMDAT.
12437 * tree-vect-data-refs.c (Check that variable is static before
12438 tampering with sections.
12439 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12440 (cgraph_create_virtual_clone): Likewise.
12441 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12442 (decl_section_name, set_decl_section_name): New accessors.
12443 (find_decls_types_r): Do not walk section name
12444 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12445 (decl_comdat_group, decl_comdat_group_id): Constify.
12446 (decl_section_name, set_decl_section_name): Update.
12447 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12448 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12449 (cgraph_make_node_local_1): Clear section and comdat group.
12450 * cgraph.h (set_comdat_group): Sanity check.
12451 (get_section, set_section): New.
12452 * ipa-comdats.c (ipa_comdats): Use get_section.
12453 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12454 * lto-streamer-out.c: Do not follow section names.
12455 * c-family/c-common.c (handle_section_attribute): Update.
12456 * lto-cgraph.c (lto_output_node): Output section.
12457 (lto_output_varpool_node): Likewise.
12458 (read_comdat_group): Rename to ...
12459 (read_identifier): ... this one.
12460 (read_string_cst): New function.
12461 (input_node, input_varpool_node): Input section names.
12462 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12463 (new_emutls_decl): Update.
12464 (secname_for_decl): Check section names only of static vars.
12465 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12466 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12467 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12468 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12469 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12470 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12471 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12472 * config/v850/v850.c (v850_insert_attributes): Likewise.
12473 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12474 Likewise.
12475 (h8300_handle_tiny_data_attribute): Likewise.
12476 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12477 (bfin_handle_l2_attribute): Likewise.
12478
12479 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12480
12481 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12482 remove static initializer.
12483
12484 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12485
12486 * varasm.c (use_blocks_for_decl_p): Check symbol table
12487 instead of alias attribute.
12488 (place_block_symbol): Recurse on aliases.
12489
12490 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12491
12492 * ipa-visibility.c: Include varasm.h
12493 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12494
12495 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12496
12497 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12498 outputting aliases.
12499
12500 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12501
12502 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12503 from test_insn into GGC space escape via SET_SRC.
12504
12505 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12506
12507 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12508 call statement, if any.
12509 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12510 statements, if any. Tidy up.
12511
12512 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12513
12514 PR target/61431
12515 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12516 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12517 handles swapping the two 64-bit double words on little endian
12518 systems. Include V1TImode and optionally TImode in VSX_LE so that
12519 these types are properly swapped. Change all of the insns and
12520 splits that do the 64-bit swaps to use VSX_LE.
12521 (vsx_le_perm_load_<mode>): Likewise.
12522 (vsx_le_perm_store_<mode>): Likewise.
12523 (splitters for little endian memory operations): Likewise.
12524 (vsx_xxpermdi2_le_<mode>): Likewise.
12525 (vsx_lxvd2x2_le_<mode>): Likewise.
12526 (vsx_stxvd2x2_le_<mode>): Likewise.
12527
12528 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12529
12530 PR target/61423
12531 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12532 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12533 and corresponding splitters. Zero extend general register
12534 or memory input operand to XMM temporary. Enable for
12535 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12536 (floatunssi<mode>2): Update expander predicate.
12537
12538 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12539
12540 PR rtl-optimization/61325
12541 * lra-constraints.c (process_address_1): Check scale equal to one
12542 to prevent transformation: base + scale * index => base + new_reg.
12543
12544 2014-06-06 Richard Biener <rguenther@suse.de>
12545
12546 PR tree-optimization/59299
12547 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12548 a def operand.
12549 (nearest_common_dominator_of_uses): Likewise.
12550 (statement_sink_location): Adjust. Support sinking loads.
12551
12552 2014-06-06 Martin Jambor <mjambor@suse.cz>
12553
12554 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12555 (build_agg_jump_func_from_list): Likewise.
12556 (determine_known_aggregate_parts): Renamed to
12557 determine_locally_known_aggregate_parts. Moved some functionality
12558 to the two functions above, removed bound checks.
12559
12560 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12561
12562 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12563 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12564 (aarch64_progress_pointer): Likewise.
12565 (aarch64_copy_one_part_and_move_pointers): Likewise.
12566 (aarch64_expand_movmen): Likewise.
12567 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12568 * config/aarch64/aarch64.md (movmem<mode>): New.
12569
12570 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12571
12572 * targhooks.c (default_add_stmt_cost): Call target specific
12573 hook instead of default one.
12574
12575 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12576
12577 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12578 endianness instead of host endianness.
12579 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12580 comments.
12581
12582 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12583
12584 PR debug/53927
12585 * function.c (instantiate_decls): Process the saved static chain.
12586 (expand_function_start): If not optimizing, save the static chain
12587 onto the stack.
12588 * tree-nested.c (convert_all_function_calls): Always create the static
12589 chain for nested functions if not optimizing.
12590
12591 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12592
12593 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12594
12595 2014-06-06 Richard Biener <rguenther@suse.de>
12596
12597 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12598 (construct_init_block): Likewise.
12599 (construct_exit_block): Likewise.
12600 (pass_expand::execute): Likewise.
12601 * graphite.c (graphite_transforms): Replace check for current_loops
12602 with a check for > 1 loops.
12603 (pass_graphite_transforms::execute): Adjust.
12604 * ipa-split.c (split_function): Remove check for current_loops.
12605 * omp-low.c (expand_parallel_call): Likewise.
12606 (expand_omp_for_init_counts): Likewise.
12607 (extract_omp_for_update_vars): Likewise.
12608 (expand_omp_for_generic): Likewise.
12609 (expand_omp_sections): Likewise.
12610 (expand_omp_target): Likewise.
12611 * tracer.c (tail_duplicate): Likewise.
12612 (pass_tracer::execute): Likewise.
12613 * trans-mem.c (expand_transaction): Likewise.
12614 * tree-complex.c (expand_complex_div_wide): Likewise.
12615 * tree-eh.c (lower_resx): Likewise.
12616 (cleanup_empty_eh_merge_phis): Likewise.
12617 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12618 current_loops with a check for > 1 loops.
12619 (pass_predcom::execute): Adjust.
12620 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12621 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12622 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12623 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12624 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12625 * tree-switch-conversion.c (process_switch): Likewise.
12626 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12627 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12628 (execute_vrp): Likewise.
12629 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12630
12631 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12632
12633 * rtl.h (insn_location): Declare.
12634 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12635 with UNKNOWN_LOCATION.
12636 * emit-rtl.c (insn_location): New function.
12637 * final.c (notice_source_line): Check that the instruction has a
12638 location before retrieving it and use insn_location.
12639 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12640 * print-rtl.c (print_rtx): Likewise.
12641
12642 2014-06-06 Richard Biener <rguenther@suse.de>
12643
12644 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12645
12646 2014-06-06 Christian Bruel <christian.bruel@st.com>
12647
12648 PR tree-optimization/43934
12649 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12650 cost.
12651
12652 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12653
12654 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12655 return NO_REGS for extra address and memory constraints. Handle
12656 operands that match (or are equivalent to something that matches)
12657 extra constant constraints. Ignore other non-register operands.
12658
12659 2014-06-06 Alan Modra <amodra@gmail.com>
12660
12661 PR target/61300
12662 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12663 * doc/tm.texi: Regenerate.
12664 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12665 Use throughout in place of REG_PARM_STACK_SPACE.
12666 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12667 "incoming" param. Pass to rs6000_function_parms_need_stack.
12668 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12669 prototype_p when incoming. Use function decl when incoming
12670 to handle K&R style functions.
12671 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12672 (INCOMING_REG_PARM_STACK_SPACE): Define.
12673
12674 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12675
12676 PR target/52472
12677 * cfgexpand.c (expand_debug_expr): Use address space of nested
12678 TREE_TYPE for ADDR_EXPR and MEM_REF.
12679
12680 2014-06-05 Jeff Law <law@redhat.com>
12681
12682 PR tree-optimization/61289
12683 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12684 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12685 looking for those which match LHS. All callers changed.
12686 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12687 parameters and code which manipulated them. All callers changed.
12688 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12689 and DST_MAP parameters. Simplify invalidation code by just calling
12690 invalidate_equivalences. All callers changed.
12691 (thread_across_edge): Simplify now that we don't need to maintain
12692 the map of equivalences to invalidate.
12693
12694 2014-06-05 Kai Tietz <ktietz@redhat.com>
12695 Richard Henderson <rth@redhat.com>
12696
12697 PR target/46219
12698 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12699 checking for !TARGET_X32.
12700 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12701 (sibcall_intern): New define_insn, plus required peepholes.
12702 (sibcall_pop_intern): Likewise.
12703 (sibcall_value_intern): Likewise.
12704 (sibcall_value_pop_intern): Likewise.
12705
12706 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12707
12708 * tree-inline.c (tree_function_versioning): Check DF info existence
12709 before accessing it.
12710
12711 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12712
12713 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12714 frame_size.
12715 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12716 aarch64_frame hard_fp_offset and frame_size.
12717 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12718 frame_size; remove original_frame_size.
12719 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12720 (aarch64_initial_elimination_offset): Remove frame_size and
12721 offset. Use aarch64_frame frame_size.
12722
12723 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12724 Jiong Wang <jiong.wang@arm.com>
12725 Renlin <renlin.li@arm.com>
12726
12727 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12728 initialization of R30 offset. Update offset. Iterate core
12729 regisers upto X30. Remove X29, X30 specific code.
12730
12731 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12732 Jiong Wang <jiong.wang@arm.com>
12733
12734 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12735 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12736 (aarch64_register_saved_on_entry): Adjust test.
12737
12738 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12739
12740 * config/aarch64/aarch64.h (machine_function): Move
12741 saved_varargs_size from here...
12742 (aarch64_frame): ... to here.
12743
12744 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12745 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12746 (aarch64_initial_elimination_offset)
12747 (aarch64_setup_incoming_varargs): Adjust location of
12748 saved_varargs_size.
12749
12750 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12751
12752 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12753 layout comment.
12754
12755 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12756 Prachi Godbole <Prachi.Godbole@imgtec.com>
12757
12758 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12759 mips32r5 entry to use PROCESSOR_P5600.
12760 * config/mips/mips-tables.opt: Regenerate.
12761 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12762 * config/mips/mips.c (mips_fmadd_bypass): New function.
12763 (mips_rtx_cost_data): Add costs for p5600.
12764 (mips_issue_rate): Add support for p5600.
12765 (mips_multipass_dfa_lookahead): Likewise.
12766 * config/mips/mips.h (TUNE_P5600): New define.
12767 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12768 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12769 * config/mips/mips.md: Include p5600.md.
12770 (processor): Add p5600.
12771 * config/mips/p5600.md: New file.
12772
12773 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12774
12775 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12776 * config/i386/predicates.md (palignr_operand): New.
12777 Indicates if permutation is suitable for palignr instruction.
12778
12779 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12780
12781 PR tree-optimization/61319
12782 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12783 stmt belongs to loop.
12784
12785 2014-06-05 Richard Biener <rguenther@suse.de>
12786
12787 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12788 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12789 (lookup_tmp_var): Adjust.
12790 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12791
12792 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12793
12794 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12795
12796 2014-06-05 Marek Polacek <polacek@redhat.com>
12797
12798 PR c/49706
12799 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12800
12801 2014-06-04 Tom de Vries <tom@codesourcery.com>
12802
12803 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12804 CONST_INT.
12805
12806 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12807
12808 PR tree-optimization/61385
12809 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12810
12811 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12812
12813 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12814 changed to use fatal_error.
12815 (main): Ensure lto_wrapper_cleanup is run atexit.
12816
12817 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12818
12819 * lra-constraints.c (valid_address_p): Move earlier in file.
12820 (address_eliminator): New structure.
12821 (satisfies_memory_constraint_p): New function.
12822 (satisfies_address_constraint_p): Likewise.
12823 (process_alt_operands, process_address, curr_insn_transform): Use them.
12824
12825 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12826
12827 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12828 const pointer.
12829 (target_lra_int, default_target_lra_int, this_target_lra_int)
12830 (op_alt_data): Delete.
12831 * lra.h (lra_init): Delete.
12832 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12833 (init_insn_code_data_once): Remove op_alt_data handling.
12834 (finish_insn_code_data_once): Likewise.
12835 (init_op_alt_data): Delete.
12836 (get_static_insn_data): Initialize operand_alternative to null.
12837 (free_insn_recog_data): Cast operand_alternative before freeing it.
12838 (setup_operand_alternative): Take the operand_alternative as
12839 parameter and assume it isn't already cached in the static
12840 insn data.
12841 (lra_set_insn_recog_data): Update accordingly.
12842 (lra_init): Delete.
12843 * ira.c (ira_init): Don't call lra_init.
12844 * target-globals.h (this_target_lra_int): Declare.
12845 (target_globals): Remove lra_int.
12846 (restore_target_globals): Update accordingly.
12847 * target-globals.c: Don't include lra-int.h.
12848 (default_target_globals, save_target_globals): Remove lra_int.
12849
12850 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12851
12852 * recog.h (operand_alternative): Convert reg_class, reject,
12853 matched and matches into bitfields.
12854 (preprocess_constraints): New overload.
12855 (preprocess_insn_constraints): New function.
12856 (preprocess_constraints): Take the insn as parameter.
12857 (recog_op_alt): Change into a pointer.
12858 (target_recog): Add x_op_alt.
12859 * recog.c (asm_op_alt): New variable.
12860 (recog_op_alt): Change into a pointer.
12861 (preprocess_constraints): New overload, replacing the old function
12862 definition with one that doesn't use global state.
12863 (preprocess_insn_constraints): New function.
12864 (preprocess_constraints): Use them. Take the insn as parameter.
12865 Use asm_op_alt for asms.
12866 (recog_init): Free existing x_op_alt entries.
12867 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12868 pointer const.
12869 (make_early_clobber_and_input_conflicts): Likewise.
12870 (process_bb_node_lives): Pass the insn to process_constraints.
12871 * reg-stack.c (check_asm_stack_operands): Likewise.
12872 (subst_asm_stack_regs): Likewise.
12873 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12874 * regrename.c (build_def_use): Likewise.
12875 * sched-deps.c (sched_analyze_insn): Likewise.
12876 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12877 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12878 (note_invalid_constants): Likewise.
12879 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12880 (ix86_legitimate_combined_insn): Make operand_alternative pointer
12881 const.
12882
12883 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12884
12885 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12886 * ira-lives.c (check_and_make_def_conflict): Check for disabled
12887 alternatives.
12888 (make_early_clobber_and_input_conflicts): Likewise.
12889 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12890
12891 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12892
12893 * recog.h (alternative_class): New function.
12894 (which_op_alt): Return a const recog_op_alt.
12895 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12896 (subst_asm_stack_regs): Likewise.
12897 * config/arm/arm.c (note_invalid_constants): Likewise.
12898 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
12899 the operand_alternative; use alternative class instead.
12900 * sel-sched.c (get_reg_class): Likewise.
12901 * regrename.c (build_def_use): Likewise.
12902 (hide_operands, restore_operands, record_out_operands): Update type
12903 accordingly.
12904
12905 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12906
12907 * recog.h (recog_op_alt): Convert to a flat array.
12908 (which_op_alt): New function.
12909 * recog.c (recog_op_alt): Convert to a flat array.
12910 (preprocess_constraints): Update accordingly, grouping all
12911 operands of the same alternative together, rather than the
12912 other way around.
12913 * ira-lives.c (check_and_make_def_conflict): Likewise.
12914 (make_early_clobber_and_input_conflicts): Likewise.
12915 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12916 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12917 (subst_asm_stack_regs): Likewise.
12918 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12919 * regrename.c (hide_operands, record_out_operands): Likewise.
12920 (build_def_use): Likewise.
12921 * sel-sched.c (get_reg_class): Likewise.
12922 * config/arm/arm.c (note_invalid_constants): Likewise.
12923
12924 2014-06-04 Jason Merrill <jason@redhat.com>
12925
12926 PR c++/51253
12927 PR c++/61382
12928 * gimplify.c (gimplify_arg): Non-static.
12929 * gimplify.h: Declare it.
12930
12931 2014-06-04 Richard Biener <rguenther@suse.de>
12932
12933 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12934 TREE_PUBLIC and DECL_EXTERNAL decls.
12935
12936 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
12937
12938 * regcprop.c (copyprop_hardreg_forward_1): Account for
12939 HARD_REGNO_CALL_PART_CLOBBERED.
12940
12941 2014-06-04 Richard Biener <rguenther@suse.de>
12942
12943 * configure.ac: Check whether the underlying type of int64_t
12944 is long or long long.
12945 * configure: Regenerate.
12946 * config.in: Likewise.
12947 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12948 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12949
12950 2014-06-04 Richard Biener <rguenther@suse.de>
12951
12952 PR tree-optimization/60098
12953 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12954 we hit a kill.
12955 (dse_optimize_stmt): Simplify, now that we found a kill
12956 earlier.
12957
12958 2014-06-04 Richard Biener <rguenther@suse.de>
12959
12960 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12961 of accesses with non-invariant address.
12962
12963 2014-06-04 Martin Liska <mliska@suse.cz>
12964
12965 * cgraph.h (cgraph_make_wrapper): New function introduced.
12966 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12967 * ipa-inline.h (inline_analyze_function): The function is global.
12968 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12969
12970 2014-06-04 Martin Liska <mliska@suse.cz>
12971
12972 * tree.h (private_lookup_attribute_starting): New function.
12973 (lookup_attribute_starting): Likewise.
12974 * tree.c (private_lookup_attribute_starting): Likewise.
12975
12976 2014-06-04 Martin Liska <mliska@suse.cz>
12977
12978 * cgraph.h (expand_thunk): New argument added.
12979 (address_taken_from_non_vtable_p): New global function.
12980 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12981 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12982 * cgraphunit.c (analyze_function): Likewise.
12983 (assemble_thunks_and_aliases): Argument added to call.
12984 (expand_thunk): New argument forces to produce GIMPLE thunk.
12985
12986 2014-06-04 Martin Liska <mliska@suse.cz>
12987
12988 * coverage.h (coverage_compute_cfg_checksum): Argument added.
12989 * coverage.c (coverage_compute_cfg_checksum): Likewise.
12990 * profile.c (branch_prob): Likewise.
12991
12992 2014-06-04 Martin Jambor <mjambor@suse.cz>
12993
12994 PR ipa/61340
12995 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
12996 handler for switch on an ipa_ref_use enum.
12997 * ipa-reference.c (analyze_function): Likewise.
12998
12999 2014-06-04 Kai Tietz <ktietz@redhat.com>
13000
13001 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13002 from old call-instruction.
13003
13004 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13005
13006 * config/aarch64/aarch64.c (aarch64_classify_address)
13007 (aarch64_legitimize_reload_address): Support full addressing modes
13008 for vector modes.
13009 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13010 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13011
13012 2014-06-03 Andrew Pinski <apinski@cavium.com>
13013
13014 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13015 for OP0.
13016
13017 2014-06-03 Andrew Pinski <apinski@cavium.com>
13018
13019 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13020 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13021
13022 2014-06-03 Kai Tietz <ktietz@redhat.com>
13023
13024 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13025 for 64-bit ms-abi.
13026
13027 2014-06-03 Dehao Chen <dehao@google.com>
13028
13029 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13030 the same loop.
13031
13032 2014-06-03 Marek Polacek <polacek@redhat.com>
13033
13034 PR c/60439
13035 * doc/invoke.texi: Document -Wswitch-bool.
13036 * function.c (stack_protect_epilogue): Cast controlling expression of
13037 the switch to int.
13038 * gengtype.c (walk_type): Generate switch expression with its
13039 controlling expression cast to int.
13040
13041 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13042
13043 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13044 and attiny841.
13045 * config/avr/avr-tables.opt: Regenerate.
13046 * config/avr/t-multilib: Regenerate.
13047 * doc/avr-mmcu.texi: Regenerate.
13048
13049 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13050 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13051
13052 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13053 (ata6617c, ata664251): Add new avr35 devices.
13054 (ata6612c): Add new avr4 device.
13055 (ata6613c, ata6614q): Add new avr5 devices.
13056 * config/avr/avr-tables.opt: Regenerate.
13057 * config/avr/t-multilib: Regenerate.
13058 * doc/avr-mmcu.texi: Regenerate.
13059
13060 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13061
13062 * gcc/config/aarch64/aarch64-builtins.c
13063 (aarch64_types_binop_ssu_qualifiers): New static data.
13064 (TYPES_BINOP_SSU): Define.
13065 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13066 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13067 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13068 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13069 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13070 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13071 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13072 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13073 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13074 suffix to builtin function name, remove cast.
13075 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13076 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13077 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13078
13079 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13080
13081 * gcc/config/aarch64/aarch64-builtins.c
13082 (aarch64_types_binop_uus_qualifiers,
13083 aarch64_types_shift_to_unsigned_qualifiers,
13084 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13085 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13086 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13087 sqshlu_n, uqshl_n): Update qualifiers.
13088 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13089 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13090 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13091 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13092 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13093 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13094 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13095 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13096 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13097 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13098 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13099 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13100 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13101 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13102 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13103 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13104 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13105 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13106 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13107 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13108 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13109 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13110 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13111 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13112 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13113 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13114 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13115
13116 2014-06-03 Teresa Johnson <tejohnson@google.com>
13117
13118 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13119
13120 2014-06-02 Jason Merrill <jason@redhat.com>
13121
13122 PR c++/61020
13123 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13124
13125 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13126
13127 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13128 location == 0.
13129
13130 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13131
13132 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13133 New pattern.
13134 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13135 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13136 * config/aarch64/iterators.md (REVERSE): New iterator.
13137 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13138 (rev_op): New int_attribute.
13139 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13140 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13141 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13142 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13143 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13144 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13145 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13146 Replace temporary __asm__ with __builtin_shuffle.
13147
13148 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13149
13150 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13151 mips64r5.
13152 * config/mips/mips-tables.opt: Regenerate.
13153 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13154 to use mips_isa_rev rather than ISA_MIPS32R2.
13155 * config/mips/mips.h (ISA_MIPS32R3): New define.
13156 (ISA_MIPS32R5): New define.
13157 (ISA_MIPS64R3): New define.
13158 (ISA_MIPS64R5): New define.
13159 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13160 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13161 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13162 and mips64r5.
13163 (MIPS_ISA_SYNCI_SPEC): Likewise.
13164 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13165 (LINK_SPEC): Added mips32r3 and mips32r5.
13166 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13167 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13168 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13169 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13170 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13171 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13172 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13173
13174 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13175
13176 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13177 options.
13178 * config/mips/mips.opt (mxpa): New option.
13179 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13180 assembler.
13181
13182 2014-06-03 Martin Jambor <mjambor@suse.cz>
13183
13184 PR ipa/61160
13185 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13186 thunks.
13187
13188 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13189
13190 PR tree-optimization/61328
13191 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13192 initialization from find_bswap_or_nop_1.
13193 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13194 in source_expr2 before using the size value the function sets. Also
13195 make use of init_symbolic_number () in both the old place and
13196 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13197 doing recursion in the GIMPLE_BINARY_RHS case.
13198
13199 2014-06-03 Richard Biener <rguenther@suse.de>
13200
13201 PR tree-optimization/61383
13202 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13203 stmts can't trap.
13204
13205 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13206
13207 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13208 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13209 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13210 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13211 in this file.
13212 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13213 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13214 * system.h: ...here and make it unconditional.
13215 * target.def (conditional_register_usage): Mention
13216 define_register_constraint instead of old-style constraint macros.
13217 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13218 * doc/tm.texi: Regenerate.
13219 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13220 protected by !USE_MD_CONSTRAINTS.
13221 * config/frv/frv.md: Remove quote from old version of documentation.
13222 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13223 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13224 CONST_DOUBLE_OK_FOR_LETTER.
13225 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13226
13227 2014-06-02 Andrew Pinski <apinski@cavium.com>
13228
13229 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13230 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13231 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13232 file whose name depends on -mabi= and -mbig-endian.
13233 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13234 Handle LP64 better and handle ilp32 too.
13235 (MULTILIB_OPTIONS): Delete.
13236 (MULTILIB_DIRNAMES): Delete.
13237
13238 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13239
13240 * expr.h: Remove prototypes of functions defined in builtins.c.
13241 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13242 Remove prototypes of functions defined in builtins.c.
13243 * builtins.h: Update prototype list to include all exported functions.
13244 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13245 no_c99_libc_has_function): Move to targhooks.c
13246 (build_string_literal, build_call_expr_loc_array,
13247 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13248 to tree.c.
13249 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13250 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13251 no_c99_libc_has_function): Relocate from builtins.c.
13252 * tree.c: Include builtins.h.
13253 (build_call_expr_loc_array, build_call_expr_loc_vec,
13254 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13255 from builtins.c.
13256 * fold-const.h (fold_fma): Move prototype to builtins.h.
13257 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13258 * asan.c: Include builtins.h.
13259 * cfgexpand.c: Likewise.
13260 * convert.c: Likewise.
13261 * emit-rtl.c: Likewise.
13262 * except.c: Likewise.
13263 * expr.c: Likewise.
13264 * fold-const.c: Likewise.
13265 * gimple-fold.c: Likewise.
13266 * gimple-ssa-strength-reduction.c: Likewise.
13267 * gimplify.c: Likewise.
13268 * ipa-inline.c: Likewise.
13269 * ipa-prop.c: Likewise.
13270 * lto-streamer-out.c: Likewise.
13271 * stmt.c: Likewise.
13272 * tree-inline.c: Likewise.
13273 * tree-object-size.c: Likewise.
13274 * tree-sra.c: Likewise.
13275 * tree-ssa-ccp.c: Likewise.
13276 * tree-ssa-forwprop.c: Likewise.
13277 * tree-ssa-loop-ivcanon.c: Likewise.
13278 * tree-ssa-loop-ivopts.c: Likewise.
13279 * tree-ssa-math-opts.c: Likewise.
13280 * tree-ssa-reassoc.c: Likewise.
13281 * tree-ssa-threadedge.c: Likewise.
13282 * tree-streamer-in.c: Likewise.
13283 * tree-vect-data-refs.c: Likewise.
13284 * tree-vect-patterns.c: Likewise.
13285 * tree-vect-stmts.c: Likewise.
13286 * config/aarch64/aarch64.c: Likewise.
13287 * config/alpha/alpha.c: Likewise.
13288 * config/arc/arc.c: Likewise.
13289 * config/arm/arm.c: Likewise.
13290 * config/avr/avr.c: Likewise.
13291 * config/bfin/bfin.c: Likewise.
13292 * config/c6x/c6x.c: Likewise.
13293 * config/cr16/cr16.c: Likewise.
13294 * config/cris/cris.c: Likewise.
13295 * config/epiphany/epiphany.c: Likewise.
13296 * config/fr30/fr30.c: Likewise.
13297 * config/frv/frv.c: Likewise.
13298 * config/h8300/h8300.c: Likewise.
13299 * config/i386/i386.c: Likewise.
13300 * config/i386/winnt.c: Likewise.
13301 * config/ia64/ia64.c: Likewise.
13302 * config/iq2000/iq2000.c: Likewise.
13303 * config/lm32/lm32.c: Likewise.
13304 * config/m32c/m32c.c: Likewise.
13305 * config/m32r/m32r.c: Likewise.
13306 * config/m68k/m68k.c: Likewise.
13307 * config/mcore/mcore.c: Likewise.
13308 * config/mep/mep.c: Likewise.
13309 * config/microblaze/microblaze.c: Likewise.
13310 * config/mips/mips.c: Likewise.
13311 * config/mmix/mmix.c: Likewise.
13312 * config/mn10300/mn10300.c: Likewise.
13313 * config/moxie/moxie.c: Likewise.
13314 * config/msp430/msp430.c: Likewise.
13315 * config/nds32/nds32.c: Likewise.
13316 * config/pa/pa.c: Likewise.
13317 * config/pdp11/pdp11.c: Likewise.
13318 * config/picochip/picochip.c: Likewise.
13319 * config/rl78/rl78.c: Likewise.
13320 * config/rs6000/rs6000.c: Likewise.
13321 * config/rx/rx.c: Likewise.
13322 * config/s390/s390.c: Likewise.
13323 * config/score/score.c: Likewise.
13324 * config/sh/sh.c: Likewise.
13325 * config/sparc/sparc.c: Likewise.
13326 * config/spu/spu.c: Likewise.
13327 * config/stormy16/stormy16.c: Likewise.
13328 * config/tilegx/tilegx.c: Likewise.
13329 * config/tilepro/tilepro.c: Likewise.
13330 * config/v850/v850.c: Likewise.
13331 * config/vax/vax.c: Likewise.
13332 * config/xtensa/xtensa.c: Likewise.
13333
13334 2014-06-02 Jeff Law <law@redhat.com>
13335
13336 PR rtl-optimization/61094
13337 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13338 was marked as do_no_reextend. If a copy is needed to eliminate
13339 an extension, then mark it as do_not_reextend.
13340
13341 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13342
13343 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13344
13345 2014-06-02 Richard Henderson <rth@redhat.com>
13346
13347 PR target/61336
13348 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13349 addresses inside asms. Use output_operand_lossage instead of
13350 gcc_unreachable.
13351
13352 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13353
13354 PR target/61239
13355 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13356 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13357
13358 2014-06-02 Tom de Vries <tom@codesourcery.com>
13359
13360 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13361 case that x has VOIDmode.
13362
13363 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13364
13365 * varasm.c (copy_constant): Delete function.
13366 (build_constant_desc): Don't call it.
13367
13368 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13369
13370 PR target/61154
13371 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13372 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13373 with immediate_operand.
13374
13375 2014-06-02 Andreas Schwab <schwab@suse.de>
13376
13377 * config/ia64/ia64.c
13378 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13379 pending_data_specs first.
13380
13381 2014-06-02 Richard Biener <rguenther@suse.de>
13382
13383 PR tree-optimization/61378
13384 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13385 valueized_anything.
13386
13387 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13388
13389 * config/i386/constraints.md (Bw): Rename from 'w'.
13390 (Bz): Rename from 'z'.
13391 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13392
13393 2014-06-01 Kai Tietz <ktietz@redhat.com>
13394
13395 PR target/61377
13396 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13397 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13398 instead of m constraint.
13399
13400 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13401
13402 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13403 a separate alternative where the scratch operand 2 is marked as
13404 early clobber.
13405
13406 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13407
13408 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13409 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13410 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13411 and __builtins_arm_get_fpscr.
13412 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13413 __builtins_arm_get_fpscr.
13414 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13415 __builtins_arm_ldfpscr.
13416 (arm_atomic_assign_expand_fenv): New function.
13417 * config/arm/vfp.md (set_fpscr): New pattern.
13418 (get_fpscr) : Likewise.
13419 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13420 VUNSPEC_SET_FPSCR.
13421 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13422 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13423
13424 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13425
13426 * asan.c (report_error_func): Add SLOW_P argument, use
13427 BUILT_IN_ASAN_*_N if set.
13428 (build_check_stmt): Likewise.
13429 (instrument_derefs): If T has insufficient alignment,
13430 force same handling as for odd sizes.
13431
13432 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13433 BUILT_IN_ASAN_REPORT_STORE_N): New.
13434 * asan.c (struct asan_mem_ref): Change access_size type to
13435 HOST_WIDE_INT.
13436 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13437 update_mem_ref_hash_table): Likewise.
13438 (asan_mem_ref_hasher::hash): Hash in a HWI.
13439 (report_error_func): Change size_in_bytes argument to HWI.
13440 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13441 two.
13442 (build_shadow_mem_access): New function.
13443 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13444 Handle size_in_bytes not power of two or larger than 16.
13445 (instrument_derefs): Don't give up if size_in_bytes is not
13446 power of two or is larger than 16.
13447
13448 2014-05-30 Kai Tietz <ktietz@redhat.com>
13449
13450 PR target/60104
13451 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13452 for sibling-tail-calls.
13453 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13454 to its use.
13455 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13456 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13457
13458 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13459
13460 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13461 * config/avr/avr-tables.opt: Regenerate.
13462 * config/avr/t-multilib: Regenerate.
13463 * doc/avr-mmcu.texi: Regenerate.
13464
13465 2014-05-30 Ian Lance Taylor <iant@google.com>
13466
13467 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13468 target("sse").
13469
13470 2014-05-30 Tom de Vries <tom@codesourcery.com>
13471
13472 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13473 Redefine as true.
13474
13475 2014-05-30 Tom de Vries <tom@codesourcery.com>
13476
13477 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13478 * lra.c (initialize_lra_reg_info_element): Add init of
13479 actual_call_used_reg_set field.
13480 (lra): Call lra_create_live_ranges before lra_inheritance for
13481 -fuse-caller-save.
13482 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13483 -fuse-caller-save.
13484 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13485 instead of call_used_reg_set for -fuse-caller-save.
13486 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13487
13488 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13489
13490 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13491 to mov_imm.
13492 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13493
13494 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13495
13496 * ira.c (ira_get_dup_out_num): Check for output operands at
13497 the start of the loop. Handle cases where an included alternative
13498 follows an excluded one.
13499
13500 2014-05-29 Mike Stump <mikestump@comcast.net>
13501
13502 PR debug/61352
13503 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13504 post ld passes when lto is used.
13505
13506 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13507
13508 PR rtl-optimization/61325
13509 * lra-constraints.c (process_address): Rename to process_address_1.
13510 (process_address): New function.
13511
13512 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13513
13514 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13515 TYPES_BINOPV): New static data.
13516 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13517 New builtin.
13518 * config/aarch64/aarch64-simd.md (aarch64_ext,
13519 aarch64_im_lane_boundsi): New patterns.
13520 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13521 patterns for EXT.
13522 (aarch64_evpc_ext): New function.
13523
13524 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13525
13526 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13527 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13528 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13529 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13530 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13531
13532 2014-05-29 Tom de Vries <tom@codesourcery.com>
13533
13534 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13535
13536 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13537 Richard Sandiford <rdsandiford@googlemail.com>
13538
13539 * arm/iterators.md (shiftable_ops): New code iterator.
13540 (t2_binop0, arith_shift_insn): New code attributes.
13541 * arm/predicates.md (shift_nomul_operator): New predicate.
13542 * arm/arm.md (insn_enabled): Delete.
13543 (enabled): Remove insn_enabled test.
13544 (*arith_shiftsi): Delete. Replace with ...
13545 (*<arith_shift_insn>_multsi): ... new pattern.
13546 (*<arith_shift_insn>_shiftsi): ... new pattern.
13547 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13548
13549 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13550 Tom de Vries <tom@codesourcery.com>
13551
13552 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13553 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13554 clobber.
13555 (mips_split_call): Use POST_CALL_TMP_REG.
13556 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13557
13558 2014-05-29 Tom de Vries <tom@codesourcery.com>
13559
13560 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13561 with #ifdef STACK_REGS.
13562
13563 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13564
13565 * varasm.c (get_variable_section): Walk aliases.
13566 (place_block_symbol): Walk aliases.
13567
13568 2014-05-28 Tom de Vries <tom@codesourcery.com>
13569
13570 Revert:
13571 2014-05-28 Tom de Vries <tom@codesourcery.com>
13572
13573 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13574 * lra.c (initialize_lra_reg_info_element): Add init of
13575 actual_call_used_reg_set field.
13576 (lra): Call lra_create_live_ranges before lra_inheritance for
13577 -fuse-caller-save.
13578 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13579 -fuse-caller-save.
13580 * lra-constraints.c (need_for_call_save_p): Use
13581 actual_call_used_reg_set instead of call_used_reg_set for
13582 -fuse-caller-save.
13583 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13584
13585 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13586
13587 * doc/md.texi: Document that the % constraint character must
13588 be at the beginning of the string.
13589 * genoutput.c (validate_insn_alternatives): Check that '=',
13590 '+' and '%' only appear at the beginning of a constraint.
13591 * ira.c (commutative_constraint_p): Delete.
13592 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13593 at the start of the string.
13594 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13595 duplicate '='s.
13596 * config/arm/neon.md (bicdi3_neon): Likewise.
13597 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13598 (slt_si, sltu_si): Likewise.
13599 * config/vax/vax.md (sbcdi3): Likewise.
13600 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13601 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13602 (mul64): Move '%' to beginning of constraint.
13603 * config/arm/arm.md (*xordi3_insn): Likewise.
13604 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13605 (xorsi3): Likewise.
13606
13607 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13608
13609 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13610
13611 2014-05-28 Jason Merrill <jason@redhat.com>
13612
13613 PR c++/47202
13614 * cgraph.h (symtab_node::get_comdat_group_id): New.
13615 * cgraphunit.c (analyze_functions): Call it.
13616 * symtab.c (dump_symtab_node): Likewise.
13617 * tree.c (decl_comdat_group_id): New.
13618 * tree.h: Declare it.
13619 * lto-streamer-out.c (write_symbol): Use it.
13620 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13621
13622 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13623
13624 PR bootstrap/PR61146
13625 * wide-int.cc: Do not include longlong.h when compiling with clang.
13626
13627 2014-05-28 Richard Biener <rguenther@suse.de>
13628
13629 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13630 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13631 (vrp_visit_assignment_or_call): Print less vertical space.
13632 (vrp_visit_stmt): Likewise.
13633 (vrp_visit_phi_node): Likewise. For a PHI argument with
13634 VR_VARYING range consider recording it as copy.
13635
13636 2014-05-28 Richard Biener <rguenther@suse.de>
13637
13638 Revert
13639 2014-05-28 Richard Biener <rguenther@suse.de>
13640
13641 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13642
13643 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13644
13645 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13646 sufficiently aligned and an offset is used at the same time.
13647 (expand_expr_real_1): Likewise.
13648
13649 2014-05-28 Richard Biener <rguenther@suse.de>
13650
13651 PR middle-end/61045
13652 * fold-const.c (fold_comparison): When folding
13653 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13654 the sign of the remaining constant operand stays the same.
13655
13656 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13657
13658 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13659 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13660 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13661 to the assembler.
13662 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13663 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13664 (m32bit-doubles) Likewise.
13665 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13666 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13667 option for RL78.
13668
13669 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13670
13671 * configure.ac ($gcc_cv_ld_clearcap): New test.
13672 * configure: Regenerate.
13673 * config.in: Regenerate.
13674 * config/sol2.opt (mclear-hwcap): New option.
13675 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13676 * config/sol2-clearcap.map: Moved here from
13677 testsuite/gcc.target/i386/clearcap.map.
13678 * config/sol2-clearcapv2.map: Move here from
13679 gcc.target/i386/clearcapv2.map.
13680 * config/t-sol2 (install): Depend on install-clearcap-map.
13681 (install-clearcap-map): New target.
13682 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13683 -mclear-hwcap.
13684
13685 2014-05-28 Richard Biener <rguenther@suse.de>
13686
13687 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13688 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13689 ... here and remove the rest.
13690 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13691
13692 2014-05-28 Richard Biener <rguenther@suse.de>
13693
13694 PR tree-optimization/61335
13695 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13696 new range fails, drop to varying.
13697
13698 2014-05-28 Olivier Hainque <hainque@adacore.com>
13699
13700 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13701 (CPP_SPEC): Add entry for -mcpu=8548.
13702 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13703 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13704
13705 2014-05-28 Tom de Vries <tom@codesourcery.com>
13706
13707 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13708 * lra.c (initialize_lra_reg_info_element): Add init of
13709 actual_call_used_reg_set field.
13710 (lra): Call lra_create_live_ranges before lra_inheritance for
13711 -fuse-caller-save.
13712 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13713 -fuse-caller-save.
13714 * lra-constraints.c (need_for_call_save_p): Use
13715 actual_call_used_reg_set instead of call_used_reg_set for
13716 -fuse-caller-save.
13717 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13718
13719 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13720 Tom de Vries <tom@codesourcery.com>
13721
13722 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13723 to gccoptlist.
13724 (@item -fuse-caller-save): New item.
13725
13726 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13727 Tom de Vries <tom@codesourcery.com>
13728
13729 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13730 OPT_fuse_caller_save.
13731
13732 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13733 Tom de Vries <tom@codesourcery.com>
13734
13735 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13736 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13737 get_call_reg_set_usage.
13738 * resource.c (mark_set_resources, mark_target_live_regs): Use
13739 get_call_reg_set_usage.
13740 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13741 field.
13742 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13743 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13744 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13745 * ira-build.c (ira_create_allocno): Init
13746 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13747 (create_cap_allocno, propagate_allocno_info)
13748 (propagate_some_info_from_allocno)
13749 (copy_info_to_removed_store_destinations): Handle
13750 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13751 * ira-costs.c (ira_tune_allocno_costs): Use
13752 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13753
13754 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13755 Tom de Vries <tom@codesourcery.com>
13756
13757 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13758 and function_used_regs_valid fields.
13759 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13760 find_all_hard_reg_sets.
13761 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13762 (get_call_reg_set_usage): New function.
13763 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13764 * regs.h (get_call_reg_set_usage): Declare.
13765
13766 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13767
13768 PR libgcc/61152
13769 * config/dbx.h (License): Add Runtime Library Exception.
13770 * config/newlib-stdint.h (License): Same.
13771 * config/rtems.h (License): Same
13772 * config/initfini-array.h (License): Same
13773 * config/v850/v850.h (License): Same.
13774 * config/v850/v850-opts.h (License): Same
13775 * config/v850/rtems.h (License): Same.
13776
13777 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13778
13779 PR target/61044
13780 * doc/extend.texi (Local Labels): Note that label differences are
13781 not supported for AVR.
13782
13783 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13784 Olivier Hainque <hainque@adacore.com>
13785
13786 * rtl.h (set_for_reg_notes): Declare.
13787 * emit-rtl.c (set_for_reg_notes): New function.
13788 (set_unique_reg_note): Use it.
13789 * optabs.c (add_equal_note): Likewise
13790
13791 2014-05-27 Andrew Pinski <apinski@cavium.com>
13792
13793 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13794 Use <w> for the register in assembly template.
13795 (stack_protect_test): Use the mode of operands[0] for the result.
13796 (stack_protect_test_<mode>): Use <w> for the register
13797 in assembly template.
13798
13799 2014-05-27 DJ Delorie <dj@redhat.com>
13800
13801 * config/rx/rx.c (add_vector_labels): New.
13802 (rx_output_function_prologue): Call it.
13803 (rx_handle_func_attribute): Don't require empty arguments.
13804 (rx_handle_vector_attribute): New.
13805 (rx_attribute_table): Add "vector" attribute.
13806 * doc/extend.texi (interrupt, vector): Document new/changed
13807 RX-specific attributes.
13808
13809 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13810
13811 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13812
13813 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13814 predicate to detect a negative quotient.
13815
13816 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13817
13818 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13819 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13820 Add X - Y CMP 0 to X CMP Y transformation.
13821 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13822
13823 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13824
13825 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13826 before printing.
13827
13828 2014-05-27 Steve Ellcey <sellcey@mips.com>
13829
13830 * config/mips/mips.c: Add include of cgraph.h.
13831
13832 2014-05-27 Richard Biener <rguenther@suse.de>
13833
13834 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13835
13836 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13837
13838 PR libgcc/61152
13839 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13840 * config/arm/arm-cores.def (License): Same.
13841 * config/arm/arm-opts.h (License): Same.
13842 * config/arm/aout.h (License): Same.
13843 * config/arm/bpabi.h (License): Same.
13844 * config/arm/elf.h (License): Same.
13845 * config/arm/linux-elf.h (License): Same.
13846 * config/arm/linux-gas.h (License): Same.
13847 * config/arm/netbsd-elf.h (License): Same.
13848 * config/arm/uclinux-eabi.h (License): Same.
13849 * config/arm/uclinux-elf.h (License): Same.
13850 * config/arm/vxworks.h (License): Same.
13851
13852 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13853
13854 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13855 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13856 (arm_init_neon_builtins): Handle NEON_BSWAP.
13857 Define required type nodes.
13858 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13859 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13860 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13861 * config/arm/iterators.md (VDQHSD): New mode iterator.
13862
13863 2014-05-27 Richard Biener <rguenther@suse.de>
13864
13865 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13866 Try using literal operands when comparing value-ranges failed.
13867
13868 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13869
13870 * ira.c (commutative_operand): Adjust for change to recog_data.
13871 [Missing from previous commit.]
13872
13873 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13874
13875 * system.h (TEST_BIT): New macro.
13876 * recog.h (alternative_mask): New type.
13877 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13878 (recog_data_d): Replace alternative_enabled_p array with
13879 enabled_alternatives.
13880 (target_recog): New structure.
13881 (default_target_recog, this_target_recog): Declare.
13882 (get_enabled_alternatives, recog_init): Likewise.
13883 * recog.c (default_target_recog, this_target_recog): New variables.
13884 (get_enabled_alternatives): New function.
13885 (extract_insn): Use it.
13886 (recog_init): New function.
13887 (preprocess_constraints, constrain_operands): Adjust for change to
13888 recog_data.
13889 * postreload.c (reload_cse_simplify_operands): Likewise.
13890 * reload.c (find_reloads): Likewise.
13891 * ira-costs.c (record_reg_classes): Likewise.
13892 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
13893 all alternatives after a disabled one would be skipped.
13894 (ira_implicitly_set_insn_hard_regs): Likewise.
13895 * ira.c (ira_setup_alts): Adjust for change to recog_data.
13896 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13897 with enabled_alternatives.
13898 * lra.c (free_insn_recog_data): Update accordingly.
13899 (lra_update_insn_recog_data): Likewise.
13900 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
13901 * lra-constraints.c (process_alt_operands): Likewise. Handle
13902 only_alternative as part of the enabled mask.
13903 * target-globals.h (this_target_recog): Declare.
13904 (target_globals): Add a recog field.
13905 (restore_target_globals): Restore this_target_recog.
13906 * target-globals.c: Include recog.h.
13907 (default_target_globals): Initialize recog field.
13908 (save_target_globals): Likewise.
13909 * reginfo.c (reinit_regs): Call recog_init.
13910 * toplev.c (backend_init_target): Likewise.
13911
13912 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13913
13914 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13915 rather than any named insn's code.
13916
13917 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13918
13919 PR libgcc/61152
13920 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13921 * config/arm/arm-cores.def (License): Same.
13922
13923 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
13924
13925 * tree.h (decl_comdat_group): Declare.
13926 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13927 * tree.c (decl_comdat_group): Here.
13928
13929 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
13930
13931 PR rtl-optimization/61222
13932 * combine.c (simplify_shift_const_1): When moving a PLUS outside
13933 the shift, truncate the PLUS operand to the result mode.
13934
13935 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
13936
13937 PR target/61271
13938 * config/i386/i386.c (ix86_rtx_costs)
13939 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13940 Fix condition.
13941
13942 2014-05-26 Martin Jambor <mjambor@suse.cz>
13943
13944 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13945 subreg uses.
13946
13947 2014-05-26 Richard Biener <rguenther@suse.de>
13948
13949 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13950 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13951 Provide specializations.
13952 (wi::int_traits <HOST_WIDE_INT>,
13953 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13954
13955 2014-05-26 Alan Modra <amodra@gmail.com>
13956
13957 PR target/61098
13958 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13959 params and return a bool. Remove dead code. Update comment.
13960 Assert we have a const_int source. Remove bogus code from
13961 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
13962 handling of constants > 2G and reg_equal note, from..
13963 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
13964 return value. Update comment. If we can, use a new pseudo
13965 for intermediate calculations.
13966 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13967 prototype.
13968 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13969 call to rs6000_emit_set_const in splitter.
13970 (movdi_internal64+2, +3): Likewise.
13971
13972 2014-05-26 Richard Biener <rguenther@suse.de>
13973
13974 * system.h: Define __STDC_FORMAT_MACROS before
13975 including inttypes.h.
13976 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13977 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13978 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13979 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13980 HOST_WIDEST_INT_C): Remove.
13981 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13982 if C99 inttypes.h is not available.
13983 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
13984 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
13985 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
13986 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
13987 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
13988 (struct output_info): Likewise.
13989 (print_statistics): Adjust.
13990 (dump_bitmap_statistics): Likewise.
13991 * bt-load.c (migrate_btr_defs): Print with PRId64.
13992 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
13993 (MAX_SAFE_MULTIPLIER): Adjust.
13994 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
13995 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
13996 dump_cgraph_node): Likewise.
13997 * final.c (dump_basic_block_info): Likewise.
13998 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
13999 * gcov.c (format_gcov): Likewise.
14000 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14001 for calculation.
14002 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14003 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14004 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14005 Use PRId64 for dumping.
14006 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14007 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14008 (add_allocno_hard_regs): Adjust.
14009 * loop-doloop.c (doloop_modify): Print using PRId64.
14010 * loop-iv.c (inverse): Compute in uint64_t.
14011 (determine_max_iter, iv_number_of_iterations): Likewise.
14012 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14013 Print using PRId64.
14014 * lto-streamer-out.c (write_symbol): Use uint64_t.
14015 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14016 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14017 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14018 * modulo-sched.c (const_iteration_count): Use int64_t.
14019 (sms_schedule): Dump using PRId64.
14020 * predict.c (dump_prediction): Likewise.
14021 * pretty-print.h (pp_widest_integer): Remove.
14022 * profile.c (get_working_sets, is_edge_inconsistent,
14023 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14024 * tree-pretty-print.c (pp_double_int): Remove case handling
14025 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14026 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14027 and adjust users.
14028 (pass_optimize_bswap::execute): Remove restriction on hosts.
14029 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14030 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14031 * tree.c (widest_int_cst_value): Remove.
14032 * tree.h (widest_int_cst_value): Likewise.
14033 * value-prof.c (dump_histogram_value): Print using PRId64.
14034 * gengtype.c (main): Also inject int64_t.
14035 * ggc-page.c (struct max_alignment): Use int64_t.
14036 * alloc-pool.c (struct allocation_object_def): Likewise.
14037 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14038 for computation.
14039 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14040 * doc/tm.texi: Regenerated.
14041 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14042 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14043 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14044 mmix_output_register_setting): Use [u]int64_t in prototypes.
14045 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14046 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14047 mmix_output_octa, mmix_output_shifted_value): Adjust.
14048 (mmix_intval): Adjust. Remove unreachable case.
14049 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14050
14051 2014-05-26 Richard Biener <rguenther@suse.de>
14052
14053 * configure.ac: Drop __int64 type check. Insist that we
14054 found uint64_t and int64_t.
14055 * hwint.h (HOST_BITS_PER___INT64): Remove.
14056 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14057 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14058 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14059 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14060 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14061 for dst_q_src_df_rms_cdt.
14062 * configure: Regenerate.
14063 * config.in: Likewise.
14064
14065 2014-05-26 Michael Tautschnig <mt@debian.org>
14066
14067 PR target/61249
14068 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14069 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14070
14071 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14072
14073 PR rtl-optimization/61278
14074 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14075
14076 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14077
14078 PR rtl-optimization/61220
14079 Part of PR rtl-optimization/61225
14080 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14081 insn; skip split_edge for a block with only one successor.
14082
14083 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14084
14085 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14086 for variables.
14087
14088 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14089
14090 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14091 (update_vtable_references): New function.
14092 (function_and_variable_visibility): Rewrite also vtable initializers.
14093 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14094
14095 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14096
14097 * ggc.h (ggc_grow): New function.
14098 * ggc-none.c (ggc_grow): New function.
14099 * ggc-page.c (ggc_grow): Likewise.
14100
14101 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14102
14103 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14104 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14105 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14106 varpool_externally_visible_p, can_replace_by_local_alias,
14107 update_visibility_by_resolution_info, function_and_variable_visibility,
14108 pass_data_ipa_function_and_variable_visibility,
14109 make_pass_ipa_function_and_variable_visibility,
14110 whole_program_function_and_variable_visibility,
14111 pass_data_ipa_whole_program_visibility,
14112 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14113 * cgraph.h (cgraph_local_node_p): Declare.
14114 * ipa-visibility.c: New file.
14115 * Makefile.in (OBJS): Add ipa-visiblity.o
14116
14117 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14118
14119 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14120 that var decl is available.
14121
14122 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14123
14124 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14125 symtab_node pointer.
14126 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14127 (find_decls_types_r): Do not walk COMDAT_GROUP.
14128 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14129 * varasm.c (make_decl_one_only): Use set_comdat_group;
14130 create node if needed.
14131 * ipa-inline-transform.c (save_inline_function_body): Update
14132 way we decl->symtab mapping.
14133 * symtab.c (symtab_hash, hash_node, eq_node
14134 symtab_insert_node_to_hashtable): Remove.
14135 (symtab_register_node): Update.
14136 (symtab_unregister_node): Update.
14137 (symtab_get_node): Reimplement as inline function.
14138 (symtab_add_to_same_comdat_group): Update.
14139 (symtab_dissolve_same_comdat_group_list): Update.
14140 (dump_symtab_base): Update.
14141 (verify_symtab_base): Update.
14142 (symtab_make_decl_local): Update.
14143 (fixup_same_cpp_alias_visibility): Update.
14144 (symtab_nonoverwritable_alias): Update.
14145 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14146 * ipa.c (update_visibility_by_resolution_info): UPdate.
14147 * bb-reorder.c: Include cgraph.h
14148 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14149 with comdat groups.
14150 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14151 * cgraph.c (cgraph_get_create_node): Update.
14152 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14153 and comdat_group_.
14154 (symtab_get_node): Make inline.
14155 (symtab_insert_node_to_hashtable): Remove.
14156 (symtab_can_be_discarded): Update.
14157 (decl_comdat_group): New function.
14158 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14159 Update.
14160 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14161 comdat group name.
14162 (read_comdat_group): New function.
14163 (input_node, input_varpool_node): Use it.
14164 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14165 comdat groups.
14166 * mips.c (mips_start_unique_function): Likewise.
14167 (ix86_code_end): Likewise.
14168 (rs6000_code_end): Likweise.
14169 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14170
14171 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14172
14173 * gengtype-state.c (fatal_reading_state): Bring offline.
14174 * optabs.c (widening_optab_handler): Bring offline.
14175 * optabs.h (widening_optab_handler): Likewise.
14176 * final.c (get_attr_length_1): Likewise.
14177
14178 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14179
14180 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14181
14182 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14183
14184 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14185 (ppc440-compare): Include shift with dot.
14186 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14187 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14188 without dot.
14189 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14190 without dot.
14191 (e6500_sfx2): Include it.
14192 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14193 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14194 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14195 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14196 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14197 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14198 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14199 *lshiftrt_internal1le, *lshiftrt_internal1be,
14200 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14201 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14202 *rotldi3_internal10le, *rotldi3_internal10be,
14203 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14204 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14205 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14206 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14207 define_insns): Use type "shift" in the appropriate alternatives.
14208
14209 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14210
14211 * config/rs6000/rs6000.md (type): Add "logical". Delete
14212 "fast_compare".
14213 (dot): Adjust comment.
14214 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14215 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14216 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14217 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14218 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14219 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14220 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14221 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14222
14223 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14224 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14225 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14226 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14227 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14228 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14229 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14230 * config/rs6000/8540.md (ppc8540_su): Adjust.
14231 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14232 cell-cmp-microcoded): Adjust.
14233 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14234 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14235 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14236 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14237 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14238 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14239 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14240 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14241 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14242 Adjust.
14243 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14244 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14245 Adjust. Adjust comment.
14246 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14247 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14248
14249 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14250
14251 * config/rs6000/rs6000.md (type): Add "add".
14252 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14253 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14254 define_insns): Use it.
14255 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14256
14257 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14258 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14259 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14260 * config/rs6000/601.md (ppc601-integer): Adjust.
14261 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14262 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14263 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14264 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14265 * config/rs6000/8540.md (ppc8540_su): Adjust.
14266 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14267 cell-cmp-microcoded): Adjust.
14268 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14269 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14270 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14271 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14272 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14273 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14274 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14275 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14276 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14277 Adjust.
14278 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14279 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14280 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14281 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14282
14283 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14284
14285 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14286 "delayed_compare", "var_delayed_compare".
14287 (var_shift): New attribute.
14288 (cell_micro): Adjust.
14289 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14290 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14291 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14292 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14293 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14294 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14295 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14296 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14297 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14298 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14299 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14300 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14301 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14302 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14303 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14304 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14305 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14306 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14307 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14308 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14309 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14310 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14311 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14312 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14313 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14314
14315 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14316 * config/rs6000/440.md (ppc440-integer): Adjust.
14317 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14318 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14319 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14320 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14321 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14322 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14323 * config/rs6000/8540.md (ppc8540_su): Adjust.
14324 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14325 cell-cmp-microcoded): Adjust.
14326 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14327 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14328 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14329 e500mc64_delayed): Adjust.
14330 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14331 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14332 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14333 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14334 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14335 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14336 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14337 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14338 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14339 Adjust comment.
14340 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14341 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14342
14343 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14344
14345 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14346 (bits): New mode_attr.
14347 (idiv_ldiv): Delete mode_attr.
14348 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14349 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14350 rs6000_adjust_priority, is_nonpipeline_insn,
14351 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14352
14353 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14354 * config/rs6000/440.md (ppc440-idiv): Adjust.
14355 * config/rs6000/476.md (ppc476-idiv): Adjust.
14356 * config/rs6000/601.md (ppc601-idiv): Adjust.
14357 * config/rs6000/603.md (ppc603-idiv): Adjust.
14358 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14359 ppc620-ldiv): Adjust.
14360 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14361 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14362 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14363 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14364 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14365 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14366 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14367 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14368 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14369 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14370 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14371 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14372 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14373 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14374 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14375 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14376 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14377 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14378
14379 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14380
14381 * config/rs6000/rs6000.md (type): Delete "insert_word",
14382 "insert_dword". Add "insert".
14383 (size): Update comment.
14384 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14385 insn_must_be_first_in_group): Adjust.
14386 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14387 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14388 *insvsi_internal6, insvdi_internal): Adjust.
14389
14390 * config/rs6000/40x.md (ppc403-integer): Adjust.
14391 * config/rs6000/440.md (ppc440-integer): Adjust.
14392 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14393 * config/rs6000/601.md (ppc601-integer): Adjust.
14394 * config/rs6000/603.md (ppc603-integer): Adjust.
14395 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14396 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14397 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14398 * config/rs6000/8540.md (ppc8540_su): Adjust.
14399 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14400 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14401 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14402 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14403 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14404 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14405 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14406 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14407 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14408 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14409 * config/rs6000/power7.md (power7-integer): Adjust.
14410 * config/rs6000/power8.md (power8-1cyc): Adjust.
14411 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14412 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14413
14414 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14415
14416 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14417 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14418 (size): New attribute.
14419 (dot): New attribute.
14420 (cell_micro): Adjust.
14421 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14422 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14423 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14424 umuldi3_highpart): Adjust.
14425 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14426 rs6000_adjust_priority, is_nonpipeline_insn,
14427 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14428
14429 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14430 ppc405-imul3): Adjust.
14431 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14432 * config/rs6000/476.md (ppc476-imul): Adjust.
14433 * config/rs6000/601.md (ppc601-imul): Adjust.
14434 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14435 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14436 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14437 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14438 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14439 Adjust.
14440 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14441 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14442 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14443 cell-imul): Adjust.
14444 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14445 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14446 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14447 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14448 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14449 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14450 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14451 power4-lmul, power4-imul, power4-imul3): Adjust.
14452 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14453 power5-lmul, power5-imul, power5-imul3): Adjust.
14454 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14455 power6-lmul, power6-imul, power6-imul3): Adjust.
14456 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14457 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14458
14459 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14460 rs64a-lmul): Adjust.
14461 * config/rs6000/titan.md (titan_imul): Adjust.
14462
14463 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14464
14465 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14466 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14467 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14468 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14469 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14470 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14471 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14472 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14473 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14474 * config/rs6000/titan.md: Delete nonsensical comment.
14475 (titan_imul): Add type imul3.
14476 (titan_mulhw): Remove type imul3; add type halfmul.
14477
14478 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14479
14480 * config/rs6000/rs6000.md (type): Reorder, reformat.
14481
14482 2014-05-23 Martin Jambor <mjambor@suse.cz>
14483
14484 PR tree-optimization/53787
14485 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14486 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14487 analysis_done, update all uses.
14488 * ipa-prop.c: Include domwalk.h
14489 (param_analysis_info): Removed.
14490 (param_aa_status): New type.
14491 (ipa_bb_info): Likewise.
14492 (func_body_info): Likewise.
14493 (ipa_get_bb_info): New function.
14494 (aa_overwalked): Likewise.
14495 (find_dominating_aa_status): Likewise.
14496 (parm_bb_aa_status_for_bb): Likewise.
14497 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14498 (load_from_unmodified_param): Accept func_body_info as a parameter
14499 instead of parms_ainfo.
14500 (parm_ref_data_preserved_p): Changed to use new param AA info.
14501 (parm_ref_data_pass_through_p): Likewise.
14502 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14503 (compute_complex_assign_jump_func): Changed to use new param AA info.
14504 (compute_complex_ancestor_jump_func): Likewise.
14505 (ipa_compute_jump_functions_for_edge): Likewise.
14506 (ipa_compute_jump_functions): Removed.
14507 (ipa_compute_jump_functions_for_bb): New function.
14508 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14509 declarations down.
14510 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14511 and info, moved variable declarations down.
14512 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14513 node and info.
14514 (ipa_analyze_stmt_uses): Likewise.
14515 (ipa_analyze_params_uses): Removed.
14516 (ipa_analyze_params_uses_in_bb): New function.
14517 (ipa_analyze_controlled_uses): Likewise.
14518 (free_ipa_bb_info): Likewise.
14519 (analysis_dom_walker): New class.
14520 (ipa_analyze_node): Handle node-specific forbidden analysis,
14521 initialize and free func_body_info, use dominator walker.
14522 (ipcp_modif_dom_walker): New class.
14523 (ipcp_transform_function): Create and free func_body_info, use
14524 ipcp_modif_dom_walker, moved a lot of functionality there.
14525
14526 2014-05-23 Marek Polacek <polacek@redhat.com>
14527 Jakub Jelinek <jakub@redhat.com>
14528
14529 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14530 * gcc.c (sanitize_spec_function): Likewise.
14531 * convert.c (convert_to_integer): Include "ubsan.h". Add
14532 floating-point to integer instrumentation.
14533 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14534 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14535 SANITIZE_NONDEFAULT.
14536 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14537 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14538 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14539 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14540 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14541 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14542 float/double/long double.
14543 (ubsan_instrument_float_cast): New function.
14544 * ubsan.h (ubsan_instrument_float_cast): Declare.
14545
14546 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14547
14548 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14549 predicate.
14550 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14551 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14552 Adjust for tailcalling through registers.
14553 * config/aarch64/aarch64.h (enum reg_class): New caller save
14554 register class.
14555 (REG_CLASS_NAMES): Likewise.
14556 (REG_CLASS_CONTENTS): Likewise.
14557 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14558 Allow tailcalling without decls.
14559
14560 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14561
14562 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14563 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14564
14565 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14566 gsi, and variables v_* to v*.
14567
14568 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14569
14570 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14571
14572 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14573
14574 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14575 * omp-low.c: Update accordingly.
14576
14577 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14578 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14579 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14580 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14581 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14582 GF_OMP_TARGET_KIND_UPDATE.
14583
14584 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14585 Explicitly enumerate the expected region types.
14586
14587 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14588
14589 PR other/56955
14590 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14591 documentation; the old documentation didn't clearly state the
14592 constraints on the contents of the pointed-to storage.
14593
14594 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14595
14596 Fix bootstrap error on ia64
14597 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14598 Return default value.
14599
14600 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14601
14602 PR tree-optimization/54733
14603 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14604 (CMPNOP): Define.
14605 (find_bswap_or_nop_load): New.
14606 (find_bswap_1): Renamed to ...
14607 (find_bswap_or_nop_1): This. Also add support for memory source.
14608 (find_bswap): Renamed to ...
14609 (find_bswap_or_nop): This. Also add support for memory source and
14610 detection of bitwise operations equivalent to load in target
14611 endianness.
14612 (execute_optimize_bswap): Likewise. Also move its leading comment back
14613 in place and split statement transformation into ...
14614 (bswap_replace): This.
14615
14616 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14617
14618 PR rtl-optimization/61215
14619 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14620 simplify_gen_subreg until final substitution.
14621
14622 2014-05-23 Alan Modra <amodra@gmail.com>
14623
14624 PR target/61231
14625 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14626 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14627 Use "Y" constraint rather than "m".
14628
14629 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14630
14631 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14632 define.
14633 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14634 New function declaration.
14635 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14636 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14637 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14638 (aarch64_init_builtins) : Initialize builtins
14639 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14640 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14641 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14642 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14643 and __builtins_aarch64_set_fpsr.
14644 (aarch64_atomic_assign_expand_fenv): New function.
14645 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14646 (get_fpcr) : Likewise.
14647 (set_fpsr) : Likewise.
14648 (get_fpsr) : Likewise.
14649 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14650 and UNSPECV_SET_FPSR.
14651 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14652 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14653 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14654
14655 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14656
14657 PR rtl-optimization/60969
14658 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14659 constraints. Set up mem cost for NO_REGS case.
14660
14661 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14662
14663 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14664
14665 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14666
14667 * config/darwin.c: Include "lto-section-names.h".
14668 (LTO_SEGMENT_NAME): Don't define.
14669 * config/i386/winnt.c: Include "lto-section-names.h".
14670 * lto-streamer.c: Include "lto-section-names.h".
14671 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14672 * lto-wrapper.c: Include "lto-section-names.h".
14673 (LTO_SECTION_NAME_PREFIX): Don't define.
14674 * lto-section-names.h: New file.
14675 * cgraphunit.c: Include "lto-section-names.h".
14676
14677 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14678
14679 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14680
14681 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14682
14683 PR target/61208
14684 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14685
14686 2014-05-22 Nick Clifton <nickc@redhat.com>
14687
14688 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14689
14690 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14691
14692 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14693 -> (T)A transformation to integer types.
14694
14695 2014-05-22 Teresa Johnson <tejohnson@google.com>
14696
14697 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14698 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14699 (gcov_rewrite): Use gcov_nonruntime_assert.
14700 (gcov_open): Ditto.
14701 (gcov_write_words): Ditto.
14702 (gcov_write_length): Ditto.
14703 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14704 gcc_assert from IN_LIBGCOV code.
14705 (gcov_read_summary): Use gcov_error to flag profile corruption.
14706 (gcov_sync): Use gcov_nonruntime_assert.
14707 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14708 (gcov_histo_index): Use gcov_nonruntime_assert.
14709 (static void gcov_histogram_merge): Ditto.
14710 (compute_working_sets): Ditto.
14711 * gcov-io.h (gcov_nonruntime_assert): Define.
14712 (gcov_error): Define for !IN_LIBGCOV
14713
14714 2014-05-22 Richard Biener <rguenther@suse.de>
14715
14716 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14717 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14718 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14719 and deallocation site.
14720 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14721 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14722 passing through the incoming points-to set.
14723 (handle_lhs_call): Use flags argument instead of recomputing it.
14724 (find_func_aliases_for_call): Call handle_lhs_call with proper
14725 call return flags.
14726
14727 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14728
14729 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14730 all padding bits in REAL_VALUE_TYPE are cleared.
14731
14732 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14733
14734 Cleanup and improve multipass_dfa_lookahead_guard
14735 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14736 (core2i7_first_cycle_multipass_begin,)
14737 (core2i7_first_cycle_multipass_issue,)
14738 (core2i7_first_cycle_multipass_backtrack): Update signature.
14739 * config/ia64/ia64.c
14740 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14741 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14742 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14743 hook definition.
14744 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14745 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14746 values.
14747 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14748 return values.
14749 * doc/tm.texi: Regenerate.
14750 * doc/tm.texi.in
14751 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14752 * haifa-sched.c (ready_try): Make signed to allow negative values.
14753 (rebug_ready_list_1): Update.
14754 (choose_ready): Simplify.
14755 (sched_extend_ready_list): Update.
14756
14757 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14758
14759 Remove IA64 speculation tweaking flags
14760 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14761 speculation tuning flags.
14762 (msched-prefer-non-data-spec-insns,)
14763 (msched-prefer-non-control-spec-insns): Obsolete options.
14764 * haifa-sched.c (choose_ready): Remove handling of
14765 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14766 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14767 and PREFER_NON_DATA_SPEC.
14768 * sel-sched.c (process_spec_exprs): Remove handling of
14769 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14770
14771 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14772
14773 Improve scheduling debug output
14774 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14775 (advance_one_cycle): Update.
14776 (schedule_insn, queue_to_ready): Add debug printouts.
14777 (debug_ready_list_1): New static function.
14778 (debug_ready_list): Update.
14779 (max_issue): Add debug printouts.
14780 (dump_insn_stream): New static function.
14781 (schedule_block): Use it. Also better indent printouts.
14782
14783 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14784
14785 Fix sched_insn debug counter
14786 * haifa-sched.c (schedule_insn): Update.
14787 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14788 (save_backtrack_point, restore_backtrack_point): Update.
14789 (first_nonscheduled_insn): New static function.
14790 (queue_to_ready, choose_ready): Use it.
14791 (schedule_block): Init nonscheduled_insns_begin.
14792 (sched_emit_insn): Update.
14793
14794
14795 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14796
14797 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14798 to GENERAL_REGS.
14799 (aarch64_secondary_reload) : LikeWise.
14800 (aarch64_class_max_nregs) : Remove CORE_REGS.
14801 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14802 (REG_CLASS_NAMES) : Likewise.
14803 (REG_CLASS_CONTENTS) : LikeWise.
14804 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14805
14806 2014-05-21 Guozhi Wei <carrot@google.com>
14807
14808 PR target/61202
14809 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14810 constraint.
14811 (vqdmulhq_n_s16): Likewise.
14812
14813 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14814
14815 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14816
14817 2014-05-21 Marek Polacek <polacek@redhat.com>
14818
14819 PR sanitizer/61272
14820 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14821
14822 2014-05-21 Martin Jambor <mjambor@suse.cz>
14823
14824 * doc/invoke.texi (Optimize Options): Document parameters
14825 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14826 ipa-cp-array-index-hint-bonus.
14827
14828 2014-05-21 Mark Wielaard <mjw@redhat.com>
14829
14830 PR debug/16063
14831 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14832 version >= 3 or not strict DWARF.
14833 * langhooks.h (struct lang_hooks_for_types): Add
14834 enum_underlying_base_type.
14835 * langhooks.c (lhd_enum_underlying_base_type): New function.
14836 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14837 enum_underlying_base_type.
14838 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14839 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14840 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14841
14842 2014-05-21 Richard Biener <rguenther@suse.de>
14843
14844 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14845
14846 2014-05-21 John Marino <gnugcc@marino.st>
14847
14848 * config.gcc (*-*-dragonfly*): New target.
14849 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14850 * configure: Regenerate.
14851 * config/dragonfly-stdint.h: New.
14852 * config/dragonfly.h: New.
14853 * config/dragonfly.opt: New.
14854 * config/i386/dragonfly.h: New.
14855 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14856
14857 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14858
14859 * tree.def (VOID_CST): New.
14860 * tree-core.h (TI_VOID): New.
14861 * tree.h (void_node): New.
14862 * tree.c (tree_node_structure_for_code, tree_code_size)
14863 (iterative_hash_expr): Handle VOID_CST.
14864 (build_common_tree_nodes): Initialize void_node.
14865
14866 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14867
14868 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14869 functions.
14870 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14871
14872 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14873 more places.
14874
14875 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14876 flag_reorder_blocks_and_partition.
14877 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14878
14879 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14880
14881 PR target/54236
14882 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
14883 constraints.
14884 (*addc_r_t): Add new insn_and_split.
14885
14886 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14887
14888 PR middle-end/61252
14889 * omp-low.c (handle_simd_reference): New function.
14890 (lower_rec_input_clauses): Use it. Defer adding reference
14891 initialization even for reduction without placeholder if in simd,
14892 handle it properly later on.
14893
14894 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14895
14896 PR tree-optimization/60899
14897 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14898 assume all static symbols will have definition wile parsing and
14899 check the do have definition later in compilation; check that
14900 variable referring symbol will be output before concluding that
14901 reference is safe; be conservative for referring local statics;
14902 be more precise about when comdat is output in other partition.
14903
14904 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14905
14906 PR bootstrap/60984
14907 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14908 parameter.
14909 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14910 (ipa_inline): Loop inline_to_all_callers until no more aliases
14911 are removed.
14912
14913 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14914
14915 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14916 set writeonly flag only for vars actually written to.
14917
14918 2014-05-20 Dehao Chen <dehao@google.com>
14919
14920 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14921 and callee count to get clone count.
14922 * tree-inline.c (expand_call_inline): Use callee count instead of bb
14923 count in copy_body.
14924
14925 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14926
14927 PR rtl-optimization/61243
14928 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14929
14930 2014-05-20 Xinliang David Li <davidxl@google.com>
14931
14932 * cgraphunit.c (walk_polymorphic_call_targets): Add
14933 dbgcnt and fopt-info support.
14934 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14935 * ipa-devirt.c (ipa_devirt): Ditto.
14936 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14937 * ipa.c (walk_polymorphic_call_targets): Ditto.
14938 * gimple-fold.c (fold_gimple_assign): Ditto.
14939 (gimple_fold_call): Ditto.
14940 * dbgcnt.def: New counter.
14941
14942 2014-05-20 DJ Delorie <dj@redhat.com>
14943
14944 * config/msp430/msp430.md (split): Don't allow subregs when
14945 splitting SImode adds.
14946 (andneghi): Fix subtraction logic.
14947 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14948
14949 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14950
14951 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14952 symbols.
14953 * except.c (switch_to_exception_section, resolve_unique_section,
14954 get_named_text_section, default_function_rodata_section,
14955 align_variable, get_block_for_decl, default_section_type_flags):
14956 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14957 * symtab.c (symtab_add_to_same_comdat_group,
14958 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14959 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14960 Likewise.
14961 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14962 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14963 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14964 (c6x_function_in_section_p): Likewise.
14965 * config/darwin.c (machopic_select_section): Likewise.
14966 * config/arm/arm.c (arm_function_in_section_p): Likewise.
14967 * config/mips/mips.c (mips_function_rodata_section): Likewise.
14968 * config/mep/mep.c (mep_select_section): LIkewise.
14969 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14970
14971 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
14972
14973 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14974 EH region of calls to pure functions that can throw an exception.
14975 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14976 (copy_reference_ops_from_call): Also copy the EH region of the call if
14977 it can throw an exception.
14978
14979 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14980
14981 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14982 nested VEC_SELECTs that are inverses of each other.
14983
14984 2014-05-20 Richard Biener <rguenther@suse.de>
14985
14986 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
14987 (extract_and_process_scc_for_name): not here.
14988 (cond_dom_walker::before_dom_children): Only process
14989 stmts that end the BB in interesting ways.
14990 (run_scc_vn): Mark param uses as visited.
14991
14992 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14993
14994 * config/arm/arm.md (arith_shiftsi): Do not predicate for
14995 arm_restrict_it.
14996
14997 2014-05-20 Nick Clifton <nickc@redhat.com>
14998
14999 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15000 (msp430_gimplify_va_arg_expr): New function.
15001 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15002
15003 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15004 operand 0 in order to prevent confusion about the number of
15005 registers involved.
15006
15007 2014-05-20 Richard Biener <rguenther@suse.de>
15008
15009 PR tree-optimization/61221
15010 * tree-ssa-pre.c (el_to_update): Remove.
15011 (eliminate_dom_walker::before_dom_children): Handle released
15012 VDEFs by value-numbering them to the associated VUSE. Update
15013 stmt immediately for substituted call address.
15014 (eliminate): Remove delayed stmt updating code.
15015 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15016 possibly late re-numbered vuses.
15017 (vn_reference_lookup_2): Adjust.
15018 (vn_reference_lookup_pieces): Likewise.
15019 (vn_reference_lookup): Likewise.
15020
15021 2014-05-20 Richard Biener <rguenther@suse.de>
15022
15023 * config.gcc: Remove need_64bit_hwint.
15024 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15025 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15026 it to be true.
15027 * config.in: Regenerate.
15028 * configure: Likewise.
15029
15030 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15031
15032 * doc/extend.texi: Create Label Attributes section,
15033 move all label attributes into it and reference it.
15034
15035 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15036
15037 * arm.c (thumb1_reorg): When scanning backwards skip anything
15038 that's not a proper insn.
15039
15040 2014-05-19 Richard Biener <rguenther@suse.de>
15041
15042 PR tree-optimization/61221
15043 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15044 Do nothing for unreachable blocks.
15045 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15046 Improve unreachability detection.
15047
15048 2014-05-19 Richard Biener <rguenther@suse.de>
15049
15050 PR tree-optimization/61209
15051 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15052
15053 2014-05-19 Nick Clifton <nickc@redhat.com>
15054
15055 * except.c (init_eh): Fix computation of builtin setjmp buffer
15056 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15057
15058 2014-05-19 Richard Biener <rguenther@suse.de>
15059
15060 PR tree-optimization/61184
15061 * tree-vrp.c (is_negative_overflow_infinity): Use
15062 TREE_OVERFLOW_P and do that check first.
15063 (is_positive_overflow_infinity): Likewise.
15064 (is_overflow_infinity): Likewise.
15065 (vrp_operand_equal_p): Properly treat operands with
15066 differing overflow as not equal.
15067
15068 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15069
15070 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15071 shift simplification where it was intended.
15072
15073 2014-05-19 Christian Bruel <christian.bruel@st.com>
15074
15075 PR target/61195
15076 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15077
15078 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15079
15080 PR target/61084
15081 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15082 than wide_int.
15083
15084 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15085
15086 * reg-notes.def (CROSSING_JUMP): Likewise.
15087 * rtl.h (rtx_def): Update comment for jump flag.
15088 (CROSSING_JUMP_P): Define.
15089 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15090 of a REG_CROSSING_JUMP note.
15091 * cfghooks.c (tidy_fallthru_edges): Likewise.
15092 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15093 * emit-rtl.c (try_split): Likewise.
15094 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15095 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15096 * jump.c (redirect_jump_2): Likewise.
15097 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15098 (relax_delay_slots): Likewise.
15099 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15100 (bbit_di): Likewise.
15101 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15102 * config/sh/sh.md (jump_compact): Likewise.
15103 * bb-reorder.c (rotate_loop): Likewise.
15104 (pass_duplicate_computed_gotos::execute): Likewise.
15105 (add_reg_crossing_jump_notes): Rename to...
15106 (update_crossing_jump_flags): ...this.
15107 (pass_partition_blocks::execute): Update accordingly.
15108
15109 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15110
15111 * tree.h: Remove extraneous template <>.
15112
15113 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15114
15115 * ipa.c (symtab_remove_unreachable_nodes): Remove
15116 symbol from comdat group if its body was eliminated.
15117 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15118 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15119 (symtab_unregister_node): ... this one.
15120 (verify_symtab_base): More strict checking of comdats.
15121 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15122
15123 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15124
15125 * tree-pass.h (make_pass_ipa_comdats): New pass.
15126 * timevar.def (TV_IPA_COMDATS): New timevar.
15127 * passes.def (pass_ipa_comdats): Add.
15128 * Makefile.in (OBJS): Add ipa-comdats.o
15129 * ipa-comdats.c: New file.
15130
15131 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15132
15133 * ipa.c (update_visibility_by_resolution_info): New function.
15134 (function_and_variable_visibility): Use it.
15135
15136 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15137
15138 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15139 New functions.
15140 (FOR_EACH_DEFINED_SYMBOL): New macro.
15141 (varpool_first_static_initializer, varpool_next_static_initializer,
15142 varpool_first_defined_variable, varpool_next_defined_variable):
15143 Fix comments.
15144 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15145
15146 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15147
15148 * ggc-page.c (ggc_handle_finalizers): Add comment.
15149
15150 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15151
15152 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15153 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15154 (ggc_internal_cleared_alloc): Likewise.
15155 * ggc-page.c (finalizer): New class.
15156 (vec_finalizer): Likewise.
15157 (globals::finalizers): New member.
15158 (globals::vec_finalizers): Likewise.
15159 (ggc_internal_alloc): Record the finalizer if any for the block being
15160 allocated.
15161 (ggc_handle_finalizers): New function.
15162 (ggc_collect): Call ggc_handle_finalizers.
15163 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15164 finalizer.
15165 (ggc_internal_cleared_alloc): Likewise.
15166 (finalize): New function.
15167 (need_finalization_p): Likewise.
15168 (ggc_alloc): Install the type's destructor as the finalizer if it
15169 might do something.
15170 (ggc_cleared_alloc): Likewise.
15171 (ggc_vec_alloc): Likewise.
15172 (ggc_cleared_vec_alloc): Likewise.
15173
15174 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15175
15176 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15177
15178 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15179
15180 * alias.c (record_alias_subset): Adjust.
15181 * bitmap.c (bitmap_element_allocate): Likewise.
15182 (bitmap_gc_alloc_stat): Likewise.
15183 * cfg.c (init_flow): Likewise.
15184 (alloc_block): Likewise.
15185 (unchecked_make_edge): Likewise.
15186 * cfgloop.c (alloc_loop): Likewise.
15187 (flow_loops_find): Likewise.
15188 (rescan_loop_exit): Likewise.
15189 * cfgrtl.c (init_rtl_bb_info): Likewise.
15190 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15191 (cgraph_allocate_node): Likewise.
15192 (cgraph_create_edge_1): Likewise.
15193 (cgraph_allocate_init_indirect_info): Likewise.
15194 * cgraphclones.c (cgraph_clone_edge): Likewise.
15195 * cgraphunit.c (add_asm_node): Likewise.
15196 (init_lowered_empty_function): Likewise.
15197 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15198 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15199 (alpha_use_linkage): Likewise.
15200 * config/arc/arc.c (arc_init_machine_status): Likewise.
15201 * config/arm/arm.c (arm_init_machine_status): Likewise.
15202 * config/avr/avr.c (avr_init_machine_status): Likewise.
15203 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15204 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15205 * config/cris/cris.c (cris_init_machine_status): Likewise.
15206 * config/darwin.c (machopic_indirection_name): Likewise.
15207 (darwin_build_constant_cfstring): Likewise.
15208 (darwin_enter_string_into_cfstring_table): Likewise.
15209 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15210 * config/frv/frv.c (frv_init_machine_status): Likewise.
15211 * config/i386/i386.c (get_dllimport_decl): Likewise.
15212 (ix86_init_machine_status): Likewise.
15213 (assign_386_stack_local): Likewise.
15214 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15215 (i386_pe_maybe_record_exported_symbol): Likewise.
15216 (i386_pe_record_stub): Likewise.
15217 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15218 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15219 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15220 (m32c_note_pragma_address): Likewise.
15221 * config/mep/mep.c (mep_init_machine_status): Likewise.
15222 (mep_note_pragma_flag): Likewise.
15223 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15224 (mips16_local_alias): Likewise.
15225 (mips_init_machine_status): Likewise.
15226 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15227 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15228 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15229 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15230 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15231 * config/pa/pa.c (pa_init_machine_status): Likewise.
15232 (pa_get_deferred_plabel): Likewise.
15233 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15234 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15235 (rs6000_init_machine_status): Likewise.
15236 (output_toc): Likewise.
15237 * config/s390/s390.c (s390_init_machine_status): Likewise.
15238 * config/score/score.c (score_output_external): Likewise.
15239 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15240 * config/spu/spu.c (spu_init_machine_status): Likewise.
15241 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15242 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15243 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15244 * coverage.c (coverage_end_function): Likewise.
15245 * dbxout.c (dbxout_init): Likewise.
15246 * doc/gty.texi: Don't mention variable_size attribute.
15247 * dwarf2cfi.c (new_cfi): Adjust.
15248 (new_cfi_row): Likewise.
15249 (copy_cfi_row): Likewise.
15250 (create_cie_data): Likewise.
15251 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15252 (new_loc_descr): Likewise.
15253 (find_AT_string_in_table): Likewise.
15254 (add_addr_table_entry): Likewise.
15255 (new_die): Likewise.
15256 (add_var_loc_to_decl): Likewise.
15257 (clone_die): Likewise.
15258 (clone_as_declaration): Likewise.
15259 (break_out_comdat_types): Likewise.
15260 (new_loc_list): Likewise.
15261 (add_loc_descr_to_each): Likewise.
15262 (add_location_or_const_value_attribute): Likewise.
15263 (add_linkage_name): Likewise.
15264 (lookup_filename): Likewise.
15265 (dwarf2out_var_location): Likewise.
15266 (new_line_info_table): Likewise.
15267 (dwarf2out_init): Likewise.
15268 (mem_loc_descriptor): Likewise.
15269 (loc_descriptor): Likewise.
15270 (add_const_value_attribute): Likewise.
15271 (tree_add_const_value_attribute): Likewise.
15272 (comp_dir_string): Likewise.
15273 (dwarf2out_vms_debug_main_pointer): Likewise.
15274 (string_cst_pool_decl): Likewise.
15275 * emit-rtl.c (set_mem_attrs): Likewise.
15276 (get_reg_attrs): Likewise.
15277 (start_sequence): Likewise.
15278 (init_emit): Likewise.
15279 (init_emit_regs): Likewise.
15280 * except.c (init_eh_for_function): Likewise.
15281 (gen_eh_region): Likewise.
15282 (gen_eh_region_catch): Likewise.
15283 (gen_eh_landing_pad): Likewise.
15284 (add_call_site): Likewise.
15285 * function.c (add_frame_space): Likewise.
15286 (insert_temp_slot_address): Likewise.
15287 (assign_stack_temp_for_type): Likewise.
15288 (get_hard_reg_initial_val): Likewise.
15289 (allocate_struct_function): Likewise.
15290 (prepare_function_start): Likewise.
15291 (types_used_by_var_decl_insert): Likewise.
15292 * gengtype.c (variable_size_p): Remove function.
15293 (enum alloc_quantity): Remove enum.
15294 (write_typed_alloc_def): Remove function.
15295 (write_typed_struct_alloc_def): Likewise.
15296 (write_typed_typedef_alloc_def): Likewise.
15297 (write_typed_alloc_defns): Likewise.
15298 (main): Adjust.
15299 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15300 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15301 * ggc.h (ggc_alloc): new function.
15302 (ggc_cleared_alloc): Likewise.
15303 (ggc_vec_alloc): Template on type of vector element, and remove
15304 element size argument.
15305 (ggc_cleared_vec_alloc): Likewise.
15306 * gimple.c (gimple_build_omp_for): Adjust.
15307 (gimple_copy): Likewise.
15308 * ipa-cp.c (get_replacement_map): Likewise.
15309 (find_aggregate_values_for_callers_subset): Likewise.
15310 (known_aggs_to_agg_replacement_list): Likewise.
15311 * ipa-devirt.c (get_odr_type): Likewise.
15312 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15313 (read_agg_replacement_chain): Likewise.
15314 * loop-iv.c (get_simple_loop_desc): Likewise.
15315 * lto-cgraph.c (input_node_opt_summary): Likewise.
15316 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15317 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15318 (input_eh_region): Likewise.
15319 (input_eh_lp): Likewise.
15320 (input_cfg): Likewise.
15321 * optabs.c (set_optab_libfunc): Likewise.
15322 (init_tree_optimization_optabs): Likewise.
15323 (set_conv_libfunc): Likewise.
15324 * passes.c (do_per_function_toporder): Likewise.
15325 * rtl.h: Don't use variable_size gty attribute.
15326 * sese.c (if_region_set_false_region): Adjust.
15327 * stringpool.c (gt_pch_save_stringpool): Likewise.
15328 * target-globals.c (save_target_globals): Likewise.
15329 * toplev.c (general_init): Likewise.
15330 * trans-mem.c (record_tm_replacement): Likewise.
15331 (split_bb_make_tm_edge): Likewise.
15332 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15333 * tree-data-ref.h (lambda_vector_new): Likewise.
15334 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15335 * tree-iterator.c (tsi_link_before): Likewise.
15336 (tsi_link_after): Likewise.
15337 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15338 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15339 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15340 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15341 * tree-ssa.c (init_tree_ssa): Adjust.
15342 * tree-ssanames.c (set_range_info): Likewise.
15343 (get_ptr_info): Likewise.
15344 (duplicate_ssa_name_ptr_info): Likewise.
15345 (duplicate_ssa_name_range_info): Likewise.
15346 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15347 (unpack_ts_fixed_cst_value_fields): Likewise.
15348 * tree.c (build_fixed): Likewise.
15349 (build_real): Likewise.
15350 (build_string): Likewise.
15351 (decl_priority_info): Likewise.
15352 (decl_debug_expr_insert): Likewise.
15353 (decl_value_expr_insert): Likewise.
15354 (decl_debug_args_insert): Likewise.
15355 (type_hash_add): Likewise.
15356 (build_omp_clause): Likewise.
15357 * ubsan.c (decl_for_type_insert): Likewise.
15358 * varasm.c (get_unnamed_section): Likewise.
15359 (get_noswitch_section): Likewise.
15360 (get_section): Likewise.
15361 (get_block_for_section): Likewise.
15362 (create_block_symbol): Likewise.
15363 (build_constant_desc): Likewise.
15364 (create_constant_pool): Likewise.
15365 (force_const_mem): Likewise.
15366 (record_tm_clone_pair): Likewise.
15367 * varpool.c (varpool_create_empty_node): Likewise.
15368
15369 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15370
15371 * dwarf2out.c (tree_add_const_value_attribute): Call
15372 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15373 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15374 instead of ggc_internal_<x>alloc_stat.
15375 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15376 (ggc_realloc): Likewise.
15377 * ggc-none.c (ggc_internal_alloc): Likewise.
15378 (ggc_internal_cleared_alloc): Likewise.
15379 * ggc-page.c: Likewise.
15380 * ggc.h (ggc_internal_alloc_stat): Likewise.
15381 (ggc_internal_alloc): Remove macro.
15382 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15383 (ggc_internal_cleared_alloc): Remove macro.
15384 (GGC_RESIZEVEC): Adjust.
15385 (ggc_resizevar): Remove macro.
15386 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15387 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15388 (ggc_internal_vec_cleared_alloc): Remove macro.
15389 (ggc_alloc_atomic_stat): Drop _stat suffix.
15390 (ggc_alloc_atomic): Remove macro.
15391 (ggc_alloc_cleared_atomic): Remove macro.
15392 (ggc_alloc_string_stat): Drop _stat suffix.
15393 (ggc_alloc_string): Remove macro.
15394 (ggc_alloc_rtx_def_stat): Adjust.
15395 (ggc_alloc_tree_node_stat): Likewise.
15396 (ggc_alloc_cleared_tree_node_stat): Likewise.
15397 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15398 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15399 * gimple.c (gimple_build_omp_for): Likewise.
15400 (gimple_copy): Likewise.
15401 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15402 * toplev.c (realloc_for_line_map): Adjust.
15403 * tree-data-ref.h (lambda_vector_new): Likewise.
15404 * tree-phinodes.c (allocate_phi_node): Likewise.
15405 * tree.c (grow_tree_vec_stat): Likewise.
15406 * vec.h (va_gc::reserve): Adjust.
15407
15408 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15409
15410 * config/microblaze/microblaze.c (break_handler): New Declaration.
15411 (microblaze_break_function_p,microblaze_is_break_handler): New.
15412 (compute_frame_size): Use microblaze_break_function_p.
15413 Add the test of break_handler.
15414 (microblaze_function_prologue) : Add the test of variable
15415 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15416 (microblaze_function_epilogue) : Add the test of break_handler.
15417 (microblaze_globalize_label) : Add the test of break_handler.
15418 Check the name by BREAK_HANDLER_NAME.
15419
15420 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15421
15422 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15423 microblaze_is_break_handler test.
15424 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15425 Use SYMBOL_REF_DECL.
15426
15427 * config/microblaze/microblaze-protos.h
15428 (microblaze_break_function_p,microblaze_is_break_handler):
15429 New Declaration.
15430
15431 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15432 new MicroBlaze break_handler functions.
15433
15434 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15435
15436 * doc/extend.texi (Size of an asm): Move node text according
15437 to its @menu entry position.
15438
15439 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15440
15441 PR tree-optimization/61140
15442 PR tree-optimization/61150
15443 PR tree-optimization/61197
15444 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15445
15446 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15447
15448 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15449
15450 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15451
15452 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15453 __SIZEOF_INT128__ is defined.
15454
15455 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15456
15457 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15458 (rs6000_delegitimize_address): Use it.
15459
15460 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15461
15462 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15463 inplace argument. Store the new address in the original MEM when true.
15464 * emit-rtl.c (change_address_1): Likewise.
15465 (adjust_address_1, adjust_automodify_address_1, offset_address):
15466 Update accordingly.
15467 * rtl.h (plus_constant): Add an inplace argument.
15468 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15469 when true. Avoid generating (plus X (const_int 0)).
15470 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15471 in-place. Pass true to plus_constant.
15472 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15473
15474 2014-05-16 Dehao Chen <dehao@google.com>
15475
15476 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15477
15478 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15479
15480 PR target/54089
15481 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15482 patterns.
15483 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15484
15485 2014-05-16 Dehao Chen <dehao@google.com>
15486
15487 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15488 optimize_function_for_size_p.
15489 * regs.h (REG_FREQ_FROM_BB): Likewise.
15490
15491 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15492
15493 PR target/51244
15494 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15495 negt_reg_operand cases.
15496 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15497 predicate.
15498 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15499
15500 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15501
15502 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15503 target variants.
15504
15505 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15506
15507 Revert:
15508 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15509
15510 * tree-cfg.c (dump_function_to_file): Dump the return type of
15511 functions, in a line to itself before the function body, mimicking
15512 the layout of a C function.
15513
15514 2014-05-16 Dehao Chen <dehao@google.com>
15515
15516 * cfghooks.c (make_forwarder_block): Use direct computation to
15517 get fall-through edge's count and frequency.
15518
15519 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15520
15521 * config/arc/arc.c (arc_init): Fix typo in error message.
15522 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15523 (split_stack_prologue_scratch_regno): Likewise.
15524 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15525 word from error message.
15526
15527 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15528
15529 * ira-costs.c: Fix typo in comment.
15530
15531 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15532
15533 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15534
15535 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15536
15537 * varpool.c (dump_varpool_node): Dump write-only flag.
15538 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15539 write-only flag.
15540 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15541 write-only variables.
15542 * ipa.c (process_references): New function.
15543 (set_readonly_bit): New function.
15544 (set_writeonly_bit): New function.
15545 (clear_addressable_bit): New function.
15546 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15547 fix handling of aliases.
15548 * cgraph.h (struct varpool_node): Add writeonly flag.
15549
15550 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15551
15552 PR rtl-optimization/60969
15553 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15554 Calculate costs for this case.
15555
15556 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15557
15558 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15559 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15560
15561 2014-05-16 Richard Biener <rguenther@suse.de>
15562
15563 PR tree-optimization/61194
15564 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15565 bool patterns ending in a COND_EXPR.
15566
15567 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15568
15569 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15570
15571 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15572
15573 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15574 where we were unable to cost an RTX.
15575
15576 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15577
15578 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15579 HIGH, LO_SUM.
15580
15581 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15582 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15583
15584 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15585
15586 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15587 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15588
15589 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15590 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15591
15592 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15593 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15594
15595 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15596 operators.
15597
15598 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15599 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15600
15601 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15602 DIV/MOD.
15603
15604 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15605 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15606
15607 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15608 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15609
15610 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15611 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15612
15613 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15614 rotates and shifts.
15615
15616 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15617 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15618
15619 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15620 ZERO_EXTEND and SIGN_EXTEND better.
15621
15622 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15623 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15624
15625 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15626 logical operations.
15627
15628 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15629 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15630
15631 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15632 costs when costing loads and stores to memory.
15633
15634 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15635 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15636
15637 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15638 for SET RTX.
15639
15640 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15641
15642 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15643
15644 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15645 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15646
15647 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15648 to...
15649 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15650 well formed.
15651 (aarch64_rtx_mult_cost): New.
15652 (aarch64_rtx_costs): Use it, refactor as appropriate.
15653
15654 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15655 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15656
15657 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15658 emit instructions, return number of instructions which would
15659 be emitted.
15660 (aarch64_add_constant): Update call to aarch64_build_constant.
15661 (aarch64_output_mi_thunk): Likewise.
15662 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15663 a CONST_DOUBLE.
15664
15665 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15666
15667 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15668 (TARGET_RTX_COSTS): Call it.
15669
15670 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15671
15672 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15673 (cortexa57_vector_cost): Likewise.
15674 (cortexa57_tunings): Use them.
15675
15676 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15677
15678 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15679 (cpu_addrcost_table): Use it.
15680 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15681 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15682 move it.
15683
15684 2014-05-16 Richard Biener <rguenther@suse.de>
15685
15686 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15687 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15688 (visit_phi): Ignore edges marked as not executable.
15689 (class cond_dom_walker): New.
15690 (cond_dom_walker::before_dom_children): Value-number
15691 control statements and mark successor edges as not
15692 executable if possible.
15693 (run_scc_vn): First walk all control statements in
15694 dominator order, marking edges as not executable.
15695 * tree-inline.c (copy_edges_for_bb): Be not confused
15696 about random edge flags.
15697
15698 2014-05-16 Richard Biener <rguenther@suse.de>
15699
15700 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15701
15702 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15703
15704 PR target/61193
15705 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15706 (__TM_simple_begin): Use it.
15707 (__TM_begin): Likewise.
15708
15709 2014-05-15 Martin Jambor <mjambor@suse.cz>
15710
15711 PR ipa/61085
15712 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15713 type_preserved flag when the indirect edge is polymorphic.
15714
15715 2014-05-15 Martin Jambor <mjambor@suse.cz>
15716
15717 PR tree-optimization/61090
15718 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15719 build_ref_for_model.
15720
15721 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15722
15723 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15724 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15725
15726 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15727
15728 PR tree-optimization/61158
15729 * fold-const.c (fold_binary_loc): If X is zero-extended and
15730 shiftc >= prec, make sure zerobits is all ones instead of
15731 invoking undefined behavior.
15732
15733 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15734
15735 * regcprop.h: New file.
15736 * regcprop.c (skip_debug_insn_p): New decl.
15737 (replace_oldest_value_reg): Check skip_debug_insn_p.
15738 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15739 * shrink-wrap.c: Include regcprop.h.
15740 (prepare_shrink_wrap): Call
15741 copyprop_hardreg_forward_bb_without_debug_insn.
15742
15743 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15744
15745 * shrink-wrap.h: Update comment.
15746 * shrink-wrap.c: Update comment.
15747 (next_block_for_reg): Rename to live_edge_for_reg.
15748 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15749 (move_insn_for_shrink_wrap): Split live_edge.
15750 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15751
15752 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15753
15754 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15755 Delete.
15756 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15757 * config/sparc/sparc.md (fptype_ut699): New attribute.
15758 (in_branch_delay): Return false if -mfix-ut699 is specified and
15759 fptype_ut699 is set to single.
15760 (truncdfsf2): Add fptype_ut699 attribute.
15761 (fix_truncdfsi2): Likewise.
15762 (floatsisf2): Change fptype attribute.
15763 (fix_truncsfsi2): Likewise.
15764 (negtf2_notv9): Delete.
15765 (negtf2_v9): Likewise.
15766 (negtf2_hq): New instruction.
15767 (negtf2): New instruction and splitter.
15768 (negdf2_notv9): Rewrite.
15769 (abstf2_notv9): Delete.
15770 (abstf2_hq_v9): Likewise.
15771 (abstf2_v9): Likewise.
15772 (abstf2_hq): New instruction.
15773 (abstf2): New instruction and splitter.
15774 (absdf2_notv9): Rewrite.
15775
15776 2014-05-14 Cary Coutant <ccoutant@google.com>
15777
15778 PR debug/61013
15779 * opts.c (common_handle_option): Don't special-case "-g".
15780 (set_debug_level): Default to at least level 2 with "-g".
15781
15782 2014-05-14 DJ Delorie <dj@redhat.com>
15783
15784 * config/msp430/msp430.c (msp430_builtin): Add
15785 MSP430_BUILTIN_DELAY_CYCLES.
15786 (msp430_init_builtins): Register void __delay_cycles(long long).
15787 (msp430_builtin_decl): Add it.
15788 (cg_magic_constant): New.
15789 (msp430_expand_delay_cycles): New.
15790 (msp430_expand_builtin): Call it.
15791 (msp430_print_operand_raw): Change integer printing from "int" to
15792 HOST_WIDE_INT.
15793 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15794 (delay_cycles_start): New.
15795 (delay_cycles_end): New.
15796 (delay_cycles_32): New.
15797 (delay_cycles_32x): New.
15798 (delay_cycles_16): New.
15799 (delay_cycles_16x): New.
15800 (delay_cycles_2): New.
15801 (delay_cycles_1): New.
15802 * doc/extend.texi: Document __delay_cycles().
15803
15804 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15805
15806 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15807 length attribute computation.
15808
15809 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15810
15811 PR debug/61188
15812 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15813
15814 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15815
15816 PR target/61084
15817 * config/sparc/sparc.md: Fix types of low and high in DI constant
15818 splitter. Use gen_int_mode in some other splitters.
15819
15820 2014-05-14 Martin Jambor <mjambor@suse.cz>
15821
15822 PR ipa/60897
15823 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15824
15825 2014-05-14 James Norris <jnorris@codesourcery.com>
15826
15827 * omp-low.c (expand_parallel_call): Remove shadow variable.
15828 (expand_omp_taskreg): Likewise.
15829
15830 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15831
15832 * common/config/i386/i386-common.c
15833 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15834 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15835 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15836 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15837 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15838 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15839 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15840 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15841 xsavecintrin.h, xsavesintrin.h.
15842 (x86_64-*-*): Ditto.
15843 * config/i386/clflushoptintrin.h: New.
15844 * config/i386/xsavecintrin.h: Ditto.
15845 * config/i386/xsavesintrin.h: Ditto.
15846 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15847 (bit_XSAVES): Ditto.
15848 (bit_XSAVES): Ditto.
15849 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15850 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15851 -mno-clflushopt.
15852 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15853 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15854 OPTION_MASK_ISA_XSAVES.
15855 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15856 -mxsavec, -mxsaves.
15857 (PTA_CLFLUSHOPT) Define.
15858 (PTA_XSAVEC): Ditto.
15859 (PTA_XSAVES): Ditto.
15860 (ix86_option_override_internal): Handle new options.
15861 (ix86_valid_target_attribute_inner_p): Ditto.
15862 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15863 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15864 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15865 (bdesc_special_args): Add __builtin_ia32_xsaves,
15866 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15867 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15868 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15869 (ix86_expand_builtin): Handle new builtins.
15870 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15871 (TARGET_CLFLUSHOPT_P): Ditto.
15872 (TARGET_XSAVEC): Ditto.
15873 (TARGET_XSAVEC_P): Ditto.
15874 (TARGET_XSAVES): Ditto.
15875 (TARGET_XSAVES_P): Ditto.
15876 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15877 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15878 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15879 (ANY_XRSTOR): New.
15880 (ANY_XRSTOR64): Ditto.
15881 (xrstor): Ditto.
15882 (xrstor): Change into <xrstor>.
15883 (xrstor_rex64): Change into <xrstor>_rex64.
15884 (xrstor64): Change into <xrstor>64
15885 (clflushopt): New.
15886 * config/i386/i386.opt (mclflushopt): New.
15887 (mxsavec): Ditto.
15888 (mxsaves): Ditto.
15889 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15890 xsavecintrin.h.
15891 * doc/invoke.texi: Document new options.
15892
15893 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15894
15895 PR rtl-optimization/60866
15896 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15897 Default it to -1. Pass it down to init_simplejump_data.
15898 (init_simplejump_data): New parameter old_seqno. Pass it down
15899 to get_seqno_for_a_jump.
15900 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
15901 initializing new jump seqno as a last resort. Add comment.
15902 (sel_redirect_edge_and_branch): Save old seqno of the conditional
15903 jump and pass it down to sel_init_new_insn.
15904 (sel_redirect_edge_and_branch_force): Likewise.
15905
15906 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
15907
15908 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15909 shifted values to avoid build warning.
15910
15911 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15912
15913 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15914 * cfgrtl.c (rtl_merge_blocks): Fix comment.
15915 (cfg_layout_merge_blocks): Likewise.
15916 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15917
15918 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15919
15920 PR rtl-optimization/60901
15921 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15922 bb predecessor belongs to the same scheduling region. Adjust comment.
15923
15924 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
15925
15926 * doc/sourcebuild.texi: (dfp_hw): Document.
15927 (p8vector_hw): Likewise.
15928 (powerpc_eabi_ok): Likewise.
15929 (powerpc_elfv2): Likewise.
15930 (powerpc_htm_ok): Likewise.
15931 (ppc_recip_hw): Likewise.
15932 (vsx_hw): Likewise.
15933
15934 2014-05-13 Cary Coutant <ccoutant@google.com>
15935
15936 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15937
15938 2014-05-13 David Malcolm <dmalcolm@redhat.com>
15939
15940 * gengtype-parse.c (require3): Eliminate in favor of...
15941 (require4): New.
15942 (require_template_declaration): Update to support optional single *
15943 on a type.
15944
15945 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15946 (create_user_defined_type): Handle a single level of explicit
15947 pointerness within template arguments.
15948 (struct write_types_data): Add field "kind".
15949 (filter_type_name): Handle "*" character.
15950 (write_user_func_for_structure_ptr): Require a write_types_data
15951 rather than just a prefix string, so that we can look up the kind
15952 of the wtd and use it as an index into wrote_user_func_for_ptr,
15953 ensuring that such functions are written at most once. Support
15954 subclasses by invoking the marking function of the ultimate base class.
15955 (write_user_func_for_structure_body): Require a write_types_data
15956 rather than just a prefix string, so that we can pass this to
15957 write_user_func_for_structure_ptr.
15958 (write_func_for_structure): Likewise.
15959 (ggc_wtd): Add initializer of new "kind" field.
15960 (pch_wtd): Likewise.
15961
15962 * gengtype.h (enum write_types_kinds): New.
15963 (struct type): Add field wrote_user_func_for_ptr to the "s"
15964 union member.
15965
15966 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15967
15968 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15969 instead of const_binop.
15970 (fold_binary_loc): Likewise.
15971
15972 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15973
15974 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15975 calculation to match get_ref_base_and_extent.
15976
15977 2014-05-13 Catherine Moore <clm@codesourcery.com>
15978 Sandra Loosemore <sandra@codesourcery.com>
15979
15980 * configure.ac: Fix assembly for explicit JALR relocation check.
15981 * configure: Regenerate.
15982
15983 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15984
15985 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
15986 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
15987 Remove associated type declarations and initialisations.
15988 (arm_expand_neon_builtin): Likewise.
15989 (neon_emit_pair_result_insn): Delete.
15990 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
15991 * config/arm/neon.md (neon_vtrn<mode>): Delete.
15992 (neon_vzip<mode>): Likewise.
15993 (neon_vuzp<mode>): Likewise.
15994
15995 2014-05-13 Richard Biener <rguenther@suse.de>
15996
15997 PR ipa/60973
15998 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
15999 it needs revisiting whether the call still may be tail-called.
16000
16001 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16002
16003 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16004 * rtl.h (block_symbol): Reduce number of fields to 2.
16005 (rtx_def): Add u2.symbol_ref_flags.
16006 (SYMBOL_REF_FLAGS): Use it.
16007 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16008 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16009 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16010 Lower index of SYMBOL_REF_DATA.
16011 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16012 Print SYMBOL_REF_FLAGS at the same time.
16013 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16014
16015 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16016
16017 * rtl.def (VAR_LOCATION): Remove "i" field.
16018 * rtl.h (rtx_def): Add u2.var_location_status.
16019 (PAT_VAR_LOCATION_STATUS): Use it.
16020 (gen_rtx_VAR_LOCATION): Declare.
16021 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16022 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16023 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16024
16025 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16026
16027 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16028 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16029
16030 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16031
16032 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16033 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16034 * rtl.h (rtx_def): Add insn_uid to u2 field.
16035 (RTX_FLAG_CHECK8): Delete in favor of...
16036 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16037 (INSN_DELETED_P): Update accordingly.
16038 (INSN_UID): Use u2.insn_uid.
16039 (INSN_CHAIN_CODE_P): Define.
16040 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16041 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16042 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16043 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16044 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16045 indices accordingly.
16046 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16047 Update indices for insn-chain rtxes.
16048 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16049 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16050 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16051 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16052 * combine.c (try_combine): Likewise.
16053 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16054
16055 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16056
16057 * rtl.def (REG): Remove middle field.
16058 * rtl.h (rtx_def): Add orignal_regno to u2.
16059 (ORIGINAL_REGNO): Use it instead of field 1.
16060 (REG_ATTRS): Lower field index accordingly.
16061 * gengtype.c (adjust_field_rtx_def): Remove handling of
16062 ORIGINAL_REGNO. Move REG_ATTRS index down.
16063 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16064 code that prints the REGNO.
16065
16066 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16067
16068 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16069 GENERATOR_FILE.
16070
16071 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16072
16073 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16074
16075 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16076
16077 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16078 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16079
16080 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16081
16082 * config/aarch64/aarch64-protos.h
16083 (aarch64_hard_regno_caller_save_mode): New prototype.
16084 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16085 New function.
16086 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16087
16088 2014-05-13 Christian Bruel <christian.bruel@st.com>
16089
16090 * target.def (mode_switching): New hook vector.
16091 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16092 (mode_exit, modepriority_to_mode): Likewise.
16093 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16094 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16095 * target.h: Include tm.h and hard-reg-set.h.
16096 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16097 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16098 * doc/tm.texi Regenerate.
16099 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16100 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16101 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16102 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16103 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16104 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16105 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16106 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16107 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16108 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16109 (ix86_emit_mode_set): Hookify.
16110 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16111 Delete.
16112 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16113 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16114 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16115 (epiphany_mode_priority_to_mode): Remove declaration.
16116 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16117 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16118 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16119 Likewise.
16120 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16121 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16122 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16123
16124 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16125
16126 PR target/61060
16127 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16128 is const0_rtx, return immediately. Don't test count == 0 when
16129 it is always true.
16130
16131 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16132
16133 * Makefile.in: add shrink-wrap.o.
16134 * config/i386/i386.c: include "shrink-wrap.h"
16135 * function.c: Likewise.
16136 (requires_stack_frame_p, next_block_for_reg,
16137 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16138 dup_block_and_redirect): Move to shrink-wrap.c
16139 (thread_prologue_and_epilogue_insns): Extract three code segments
16140 as functions in shrink-wrap.c
16141 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16142 shrink-wrap.h
16143 * shrink-wrap.c: New file.
16144 * shrink-wrap.h: New file.
16145
16146 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16147
16148 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16149 reference to Solaris.
16150
16151 2014-05-12 Mike Stump <mikestump@comcast.net>
16152
16153 PR other/31778
16154 * genattrtab.c (filename): Add.
16155 (convert_set_attr_alternative): Improve error message.
16156 (check_defs): Restore read_md_filename for error messages.
16157 (gen_insn): Save filename.
16158
16159 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16160
16161 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16162 -fno-local-ivars and -fivar-visibility.
16163 * c-family/c.opt: Make -Wshadow also implicitly enable
16164 -Wshadow-ivar.
16165
16166 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16167
16168 * doc/tm.texi: Remove reference to deleted macro.
16169 * doc/tm.texi.in: Likewise.
16170
16171 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16172
16173 PR target/60991
16174 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16175 to restore Y.
16176
16177 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16178
16179 PR libgcc/61152
16180 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16181 * config/arm/aout.h (License): Same.
16182 * config/arm/bpabi.h (License): Same.
16183 * config/arm/elf.h (License): Same.
16184 * config/arm/linux-elf.h (License): Same.
16185 * config/arm/linux-gas.h (License): Same.
16186 * config/arm/netbsd-elf.h (License): Same.
16187 * config/arm/uclinux-eabi.h (License): Same.
16188 * config/arm/uclinux-elf.h (License): Same.
16189 * config/arm/vxworks.h (License): Same.
16190
16191 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16192
16193 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16194 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16195 number of operands to 3.
16196 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16197 * tree-nested.c (convert_nonlocal_omp_clauses,
16198 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16199 * gimplify.c (gimplify_scan_omp_clauses): Handle
16200 OMP_CLAUSE_LINEAR_STMT.
16201 * omp-low.c (lower_rec_input_clauses): Fix typo.
16202 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16203 cast between Fortran boolean_type_node and C _Bool if
16204 needed.
16205
16206 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16207
16208 PR tree-optimization/61136
16209 * wide-int.h (multiple_of_p): Define a version that doesn't return
16210 the quotient.
16211 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16212 integer_zerop/const_binop pair.
16213 (multiple_of_p): Likewise, converting both operands to widest_int
16214 precision.
16215
16216 2014-05-09 Teresa Johnson <tejohnson@google.com>
16217
16218 * cgraphunit.c (analyze_functions): Use correct dump file.
16219
16220 2014-05-09 Florian Weimer <fweimer@redhat.com>
16221
16222 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16223 expand_used_vars.
16224 (stack_protect_return_slot_p): New function.
16225 (expand_used_vars): Call stack_protect_decl_p and
16226 stack_protect_return_slot_p for -fstack-protector-strong.
16227
16228 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16229 Andrew Haley <aph@redhat.com>
16230 Richard Sandiford <rdsandiford@googlemail.com>
16231
16232 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16233 pages.
16234
16235 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16236
16237 PR middle-end/61111
16238 * fold-const.c (fold_binary_loc): Changed width of mask.
16239
16240 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16241
16242 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16243 unsigned int initializers for regno_in, regno_out.
16244
16245 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16246
16247 PR target/61055
16248 * config/avr/avr.md (cc): Add new attribute set_vzn.
16249 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16250 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16251 with INC, DEC or NEG.
16252 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16253 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16254 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16255
16256 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16257
16258 Revert:
16259 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16260
16261 * wide-int.cc (UTItype): Define.
16262 (UDWtype): Define for appropriate W_TYPE_SIZE.
16263
16264 2014-05-09 Richard Biener <rguenther@suse.de>
16265
16266 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16267 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16268 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16269 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16270 ssa_propagate): Adjust.
16271
16272 2014-05-08 Jeff Law <law@redhat.com>
16273
16274 PR tree-optimization/61009
16275 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16276 tri-state rather than a boolean. When a block is too big to
16277 thread through, inform caller via negative return value.
16278 (thread_across_edge): If a block was too big for normal threading,
16279 then it's too big for a joiner too, so remove temporary equivalences
16280 and return immediately.
16281
16282 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16283 Matthias Klose <doko@ubuntu.com>
16284
16285 PR driver/61106
16286 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16287
16288 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16289
16290 PR target/59952
16291 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16292
16293 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16294
16295 PR target/61092
16296 * config/alpha/alpha.c: Include gimple-iterator.h.
16297 (alpha_gimple_fold_builtin): New function. Move
16298 ALPHA_BUILTIN_UMULH folding from ...
16299 (alpha_fold_builtin): ... here.
16300 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16301
16302 2014-05-08 Wei Mi <wmi@google.com>
16303
16304 PR target/58066
16305 * config/i386/i386.c (ix86_compute_frame_layout): Update
16306 preferred_stack_boundary for call, expanded from tls descriptor.
16307 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16308 to depend on SP register.
16309 (*tls_local_dynamic_base_32_gnu): Ditto.
16310 (*tls_local_dynamic_32_once): Ditto.
16311 (tls_global_dynamic_64_<mode>): Set
16312 ix86_tls_descriptor_calls_expanded_in_cfun.
16313 (tls_local_dynamic_base_64_<mode>): Ditto.
16314 (tls_global_dynamic_32): Set
16315 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16316 to depend on SP register.
16317 (tls_local_dynamic_base_32): Ditto.
16318
16319 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16320
16321 * config/arm/arm_neon.h: Update comment.
16322 * config/arm/neon-docgen.ml: Delete.
16323 * config/arm/neon-gen.ml: Delete.
16324 * doc/arm-neon-intrinsics.texi: Update comment.
16325
16326 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16327
16328 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16329 and v4sf versions.
16330 (vand, vorr, veor, vorn, vbic): Remove.
16331 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16332 iterator.
16333 (neon_vsub_unspec): Likewise.
16334 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16335
16336 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16337
16338 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16339 (vadd_s16): Likewise.
16340 (vadd_s32): Likewise.
16341 (vadd_f32): Likewise.
16342 (vadd_u8): Likewise.
16343 (vadd_u16): Likewise.
16344 (vadd_u32): Likewise.
16345 (vadd_s64): Likewise.
16346 (vadd_u64): Likewise.
16347 (vaddq_s8): Likewise.
16348 (vaddq_s16): Likewise.
16349 (vaddq_s32): Likewise.
16350 (vaddq_s64): Likewise.
16351 (vaddq_f32): Likewise.
16352 (vaddq_u8): Likewise.
16353 (vaddq_u16): Likewise.
16354 (vaddq_u32): Likewise.
16355 (vaddq_u64): Likewise.
16356 (vmul_s8): Likewise.
16357 (vmul_s16): Likewise.
16358 (vmul_s32): Likewise.
16359 (vmul_f32): Likewise.
16360 (vmul_u8): Likewise.
16361 (vmul_u16): Likewise.
16362 (vmul_u32): Likewise.
16363 (vmul_p8): Likewise.
16364 (vmulq_s8): Likewise.
16365 (vmulq_s16): Likewise.
16366 (vmulq_s32): Likewise.
16367 (vmulq_f32): Likewise.
16368 (vmulq_u8): Likewise.
16369 (vmulq_u16): Likewise.
16370 (vmulq_u32): Likewise.
16371 (vsub_s8): Likewise.
16372 (vsub_s16): Likewise.
16373 (vsub_s32): Likewise.
16374 (vsub_f32): Likewise.
16375 (vsub_u8): Likewise.
16376 (vsub_u16): Likewise.
16377 (vsub_u32): Likewise.
16378 (vsub_s64): Likewise.
16379 (vsub_u64): Likewise.
16380 (vsubq_s8): Likewise.
16381 (vsubq_s16): Likewise.
16382 (vsubq_s32): Likewise.
16383 (vsubq_s64): Likewise.
16384 (vsubq_f32): Likewise.
16385 (vsubq_u8): Likewise.
16386 (vsubq_u16): Likewise.
16387 (vsubq_u32): Likewise.
16388 (vsubq_u64): Likewise.
16389 (vand_s8): Likewise.
16390 (vand_s16): Likewise.
16391 (vand_s32): Likewise.
16392 (vand_u8): Likewise.
16393 (vand_u16): Likewise.
16394 (vand_u32): Likewise.
16395 (vand_s64): Likewise.
16396 (vand_u64): Likewise.
16397 (vandq_s8): Likewise.
16398 (vandq_s16): Likewise.
16399 (vandq_s32): Likewise.
16400 (vandq_s64): Likewise.
16401 (vandq_u8): Likewise.
16402 (vandq_u16): Likewise.
16403 (vandq_u32): Likewise.
16404 (vandq_u64): Likewise.
16405 (vorr_s8): Likewise.
16406 (vorr_s16): Likewise.
16407 (vorr_s32): Likewise.
16408 (vorr_u8): Likewise.
16409 (vorr_u16): Likewise.
16410 (vorr_u32): Likewise.
16411 (vorr_s64): Likewise.
16412 (vorr_u64): Likewise.
16413 (vorrq_s8): Likewise.
16414 (vorrq_s16): Likewise.
16415 (vorrq_s32): Likewise.
16416 (vorrq_s64): Likewise.
16417 (vorrq_u8): Likewise.
16418 (vorrq_u16): Likewise.
16419 (vorrq_u32): Likewise.
16420 (vorrq_u64): Likewise.
16421 (veor_s8): Likewise.
16422 (veor_s16): Likewise.
16423 (veor_s32): Likewise.
16424 (veor_u8): Likewise.
16425 (veor_u16): Likewise.
16426 (veor_u32): Likewise.
16427 (veor_s64): Likewise.
16428 (veor_u64): Likewise.
16429 (veorq_s8): Likewise.
16430 (veorq_s16): Likewise.
16431 (veorq_s32): Likewise.
16432 (veorq_s64): Likewise.
16433 (veorq_u8): Likewise.
16434 (veorq_u16): Likewise.
16435 (veorq_u32): Likewise.
16436 (veorq_u64): Likewise.
16437 (vbic_s8): Likewise.
16438 (vbic_s16): Likewise.
16439 (vbic_s32): Likewise.
16440 (vbic_u8): Likewise.
16441 (vbic_u16): Likewise.
16442 (vbic_u32): Likewise.
16443 (vbic_s64): Likewise.
16444 (vbic_u64): Likewise.
16445 (vbicq_s8): Likewise.
16446 (vbicq_s16): Likewise.
16447 (vbicq_s32): Likewise.
16448 (vbicq_s64): Likewise.
16449 (vbicq_u8): Likewise.
16450 (vbicq_u16): Likewise.
16451 (vbicq_u32): Likewise.
16452 (vbicq_u64): Likewise.
16453 (vorn_s8): Likewise.
16454 (vorn_s16): Likewise.
16455 (vorn_s32): Likewise.
16456 (vorn_u8): Likewise.
16457 (vorn_u16): Likewise.
16458 (vorn_u32): Likewise.
16459 (vorn_s64): Likewise.
16460 (vorn_u64): Likewise.
16461 (vornq_s8): Likewise.
16462 (vornq_s16): Likewise.
16463 (vornq_s32): Likewise.
16464 (vornq_s64): Likewise.
16465 (vornq_u8): Likewise.
16466 (vornq_u16): Likewise.
16467 (vornq_u32): Likewise.
16468 (vornq_u64): Likewise.
16469
16470 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16471
16472 * wide-int.cc (UTItype): Define.
16473 (UDWtype): Define for appropriate W_TYPE_SIZE.
16474
16475 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16476
16477 PR tree-optimization/59100
16478 * tree-ssa-phiopt.c: Include tree-inline.h.
16479 (neutral_element_p, absorbing_element_p): New functions.
16480 (value_replacement): Handle conditional binary operations with a
16481 neutral or absorbing element.
16482
16483 2014-05-08 Richard Biener <rguenther@suse.de>
16484
16485 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16486 folding the expression.
16487 (valueize_expr): Remove.
16488 (visit_reference_op_load): Do not valueize the result of
16489 vn_get_expr_for.
16490 (simplify_binary_expression): Likewise.
16491 (simplify_unary_expression): Likewise.
16492
16493 2014-05-08 Richard Biener <rguenther@suse.de>
16494
16495 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16496 looking at TYPE_ARG_TYPES.
16497
16498 2014-05-08 Richard Biener <rguenther@suse.de>
16499
16500 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16501 pointer propagation special-case.
16502
16503 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16504
16505 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16506 core part of address expressions.
16507
16508 2014-05-08 Alan Modra <amodra@gmail.com>
16509
16510 PR target/60737
16511 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16512 loads and stores when -mno-strict-align at any alignment.
16513 (expand_block_clear): Similarly. Also correct calculation of
16514 instruction count.
16515
16516 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16517
16518 PR middle-end/39246
16519 * tree-complex.c (expand_complex_move): Keep line info when expanding
16520 complex move.
16521 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16522 of complex expression. Use new argument to display correct location
16523 for values coming from phi statement.
16524 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16525 (warn_uninitialized_phi): Pass location of phi argument to
16526 warn_uninit.
16527 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16528 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16529
16530 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16531
16532 * config/rs6000/predicates.md (indexed_address_mem): New.
16533 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16534 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16535 fpstore_ux, fpstore_u.
16536 (sign_extend, indexed, update): New.
16537 (cell_micro): Adjust.
16538 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16539 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16540 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16541 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16542 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16543 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16544 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16545 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16546 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16547 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16548 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16549 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16550 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16551 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16552 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16553
16554 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16555 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16556 *vsx_extract_<mode>_store): Adjust.
16557 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16558 is_cracked_insn, insn_must_be_first_in_group,
16559 insn_must_be_last_in_group): Adjust.
16560
16561 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16562 Adjust.
16563 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16564 ppc440-fpstore): Adjust.
16565 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16566 ppc476-fpstore): Adjust.
16567 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16568 ppc601-fpstore): Adjust.
16569 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16570 Adjust.
16571 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16572 Adjust.
16573 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16574 ppc7450-fpstore): Adjust.
16575 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16576 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16577 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16578 Adjust.
16579 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16580 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16581 cell-fpstore, cell-fpstore-update): Adjust.
16582 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16583 ppce300c3_store, ppce300c3_fpstore): Adjust.
16584 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16585 e500mc_fpstore): Adjust.
16586 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16587 e500mc64_store, e500mc64_fpstore): Adjust.
16588 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16589 e5500_fpstore): Adjust.
16590 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16591 e6500_fpstore): Adjust.
16592 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16593 Adjust.
16594 * config/rs6000/power4.md (power4-load, power4-load-ext,
16595 power4-load-ext-update, power4-load-ext-update-indexed,
16596 power4-load-update-indexed, power4-load-update, power4-fpload,
16597 power4-fpload-update, power4-store, power4-store-update,
16598 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16599 Adjust.
16600 * config/rs6000/power5.md (power5-load, power5-load-ext,
16601 power5-load-ext-update, power5-load-ext-update-indexed,
16602 power5-load-update-indexed, power5-load-update, power5-fpload,
16603 power5-fpload-update, power5-store, power5-store-update,
16604 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16605 Adjust.
16606 * config/rs6000/power6.md (power6-load, power6-load-ext,
16607 power6-load-update, power6-load-update-indexed,
16608 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16609 power6-fpload-update, power6-store, power6-store-update,
16610 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16611 Adjust.
16612 * config/rs6000/power7.md (power7-load, power7-load-ext,
16613 power7-load-update, power7-load-update-indexed,
16614 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16615 power7-fpload-update, power7-store, power7-store-update,
16616 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16617 Adjust.
16618 * config/rs6000/power8.md (power8-load, power8-load-update,
16619 power8-load-ext, power8-load-ext-update, power8-fpload,
16620 power8-fpload-update, power8-store, power8-store-update-indexed,
16621 power8-fpstore, power8-fpstore-update): Adjust.
16622 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16623 Adjust.
16624 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16625 titan_lsu_store, titan_lsu_fpstore): Adjust.
16626 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16627
16628 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16629
16630 PR target/60884
16631 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16632 unrolled byte insns. Emit address increments after move insns.
16633
16634 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16635
16636 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16637 const_gimple, rather than a gimple.
16638 (gimple_call_builtin_p): Likewise, for the three variants.
16639
16640 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16641 (gimple_call_builtin_p): Likewise, for the three variants.
16642
16643 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16644
16645 PR tree-optimization/61095
16646 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16647
16648 2014-05-07 Richard Biener <rguenther@suse.de>
16649
16650 PR tree-optimization/61034
16651 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16652 (maybe_skip_until): Use translate to take into account
16653 lattices when trying to do disambiguations.
16654 (get_continuation_for_phi_1): Likewise.
16655 (get_continuation_for_phi): Adjust for added translate arguments.
16656 (walk_non_aliased_vuses): Likewise.
16657 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16658 (walk_non_aliased_vuses): Likewise.
16659 (call_may_clobber_ref_p_1): Declare.
16660 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16661 calls. Stop early if we are only supposed to disambiguate.
16662 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16663
16664 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16665
16666 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16667 Emit an error when the function has arguments.
16668
16669 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16670
16671 * cfgloop.h (unswitch_loops): Remove.
16672 * doc/passes.texi: Remove references to loop-unswitch.c
16673 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16674
16675 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16676
16677 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16678 check for loads group of length 3.
16679 (vect_permute_load_chain): New permutations for loads group of
16680 length 3.
16681 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16682 of vec_perm_shuffle for the new permutations.
16683
16684 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16685
16686 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16687 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16688 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16689 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16690 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16691 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16692 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16693 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16694
16695 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16696
16697 * loop-unswitch.c: Delete.
16698
16699 2014-05-07 Richard Biener <rguenther@suse.de>
16700
16701 * config.gcc: Always set need_64bit_hwint to yes.
16702
16703 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16704
16705 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16706 of using optimize_size.
16707
16708 2014-05-06 Mike Stump <mikestump@comcast.net>
16709
16710 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16711
16712 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16713
16714 * config/i386/sse.md (*mov<mode>_internal)
16715 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16716 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16717 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16718 (*<code><mode>3, *andnot<mode>3<mask_name>)
16719 (<mask_codefor><code><mode>3<mask_name>): Only consider
16720 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16721
16722 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16723
16724 Revert:
16725 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16726
16727 * lra-constraints.c (valid_address_p): Move earlier in file.
16728 Add a constraint argument to the address_info version.
16729 (satisfies_memory_constraint_p): New function.
16730 (satisfies_address_constraint_p): Likewise.
16731 (process_alt_operands, curr_insn_transform): Use them.
16732 (process_address): Pass the constraint to valid_address_p when
16733 checking address operands.
16734
16735 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16736
16737 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16738 to their respective blocks. Fix inadvertent use of "node".
16739
16740 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16741
16742 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16743 out from...
16744 (init_emit_once): ...here.
16745 * rtl.h (init_derived_machine_modes): Declare.
16746 * toplev.c (do_compile): Call it even if no_backend.
16747
16748 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16749 Mike Stump <mikestump@comcast.net>
16750 Richard Sandiford <rdsandiford@googlemail.com>
16751 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16752
16753 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16754 (rtx_equal_for_memref_p): Update comment.
16755 (adjust_offset_for_component_ref): Use wide-int interfaces.
16756 * builtins.c (get_object_alignment_2): Likewise.
16757 (c_readstr): Likewise.
16758 (target_char_cast): Add comment.
16759 (determine_block_size): Use wide-int interfaces.
16760 (expand_builtin_signbit): Likewise.
16761 (fold_builtin_int_roundingfn): Likewise.
16762 (fold_builtin_bitop): Likewise.
16763 (fold_builtin_bswap): Likewise.
16764 (fold_builtin_logarithm): Use signop.
16765 (fold_builtin_pow): Likewise.
16766 (fold_builtin_memory_op): Use wide-int interfaces.
16767 (fold_builtin_object_size): Likewise.
16768 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16769 nb_iterations_estimate.
16770 (record_niter_bound): Use wide-int interfaces.
16771 (get_estimated_loop_iterations_int): Likewise.
16772 (get_estimated_loop_iterations): Likewise.
16773 (get_max_loop_iterations): Likewise.
16774 * cfgloop.h: Include wide-int.h.
16775 (struct nb_iter_bound): Change bound to widest_int.
16776 (struct loop): Change nb_iterations_upper_bound and
16777 nb_iterations_estimate to widest_int.
16778 (record_niter_bound): Switch to use widest_int.
16779 (get_estimated_loop_iterations): Likewise.
16780 (get_max_loop_iterations): Likewise.
16781 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16782 update for wide-int.
16783 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16784 * combine.c (try_combine): Likewise.
16785 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16786 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16787 interfaces.
16788 (aarch64_float_const_representable_p): Likewise.
16789 * config/arc/arc.c: Include wide-int.h.
16790 (arc_can_use_doloop_p): Use wide-int interfaces.
16791 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16792 (vfp3_const_double_index): Likewise.
16793 * config/avr/avr.c (avr_out_round): Likewise.
16794 (avr_fold_builtin): Likewise.
16795 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16796 (bfin_can_use_doloop_p): Likewise.
16797 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16798 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16799 * config/i386/i386.c: Include wide-int.h.
16800 (ix86_data_alignment): Use wide-int interfaces.
16801 (ix86_local_alignment): Likewise.
16802 (ix86_emit_swsqrtsf): Update real_from_integer.
16803 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16804 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16805 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16806 (zero_constant): Likewise.
16807 (input_operand): Likewise.
16808 (splat_input_operand): Likewise.
16809 (non_logical_cint_operand): Change const_double to const_wide_int.
16810 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16811 (easy_altivec_constant): Remove comment.
16812 (paired_expand_vector_init): Use CONSTANT_P.
16813 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16814 (rs6000_emit_move): Update checks.
16815 (rs6000_aggregate_candidate): Use wide-int interfaces.
16816 (rs6000_expand_ternop_builtin): Likewise.
16817 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16818 (rs6000_assemble_integer): Likewise.
16819 (rs6000_hash_constant): Likewise.
16820 (output_toc): Likewise.
16821 (rs6000_rtx_costs): Likewise.
16822 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16823 * config/rs6000/rs6000-c.c: Include wide-int.h.
16824 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16825 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16826 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16827 Handle CONST_WIDE_INT.
16828 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16829 Use tree_fits_uhwi_p.
16830 * config/sparc/sparc.c: Include wide-int.h.
16831 (sparc_fold_builtin): Use wide-int interfaces.
16832 * config/vax/vax.c: Include wide-int.h.
16833 (vax_float_literal): Use real_from_integer.
16834 * coretypes.h (struct hwivec_def): New.
16835 (hwivec): New.
16836 (const_hwivec): New.
16837 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16838 (equiv_constant): Handle CONST_WIDE_INT.
16839 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16840 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16841 * dbxout.c (stabstr_U): Use wide-int interfaces.
16842 (dbxout_type): Update to use cst_fits_shwi_p.
16843 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16844 (TARGET_SUPPORTS_WIDE_INT): Add default.
16845 * dfp.c: Include wide-int.h.
16846 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16847 decimal_real_to_integer.
16848 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16849 decimal_real_to_integer.
16850 * doc/generic.texi (Constant expressions): Update for wide_int.
16851 * doc/rtl.texi (const_double): Likewise.
16852 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16853 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16854 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16855 (REAL_VALUE_FROM_INT): Remove.
16856 (TARGET_SUPPORTS_WIDE_INT): New.
16857 * doc/tm.texi: Regenerate.
16858 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16859 * double-int.h: Include wide-int.h.
16860 (struct wi::int_traits): New.
16861 * dwarf2out.c (get_full_len): New.
16862 (dw_val_equal_p): Add case dw_val_class_wide_int.
16863 (size_of_loc_descr): Likewise.
16864 (output_loc_operands): Likewise.
16865 (insert_double): Remove.
16866 (insert_wide_int): New.
16867 (add_AT_wide): New.
16868 (print_die): Add case dw_val_class_wide_int.
16869 (attr_checksum): Likewise.
16870 (attr_checksum_ordered): Likewise.
16871 (same_dw_val_p): Likewise.
16872 (size_of_die): Likewise.
16873 (value_format): Likewise.
16874 (output_die): Likewise.
16875 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16876 Use wide-int.
16877 (clz_loc_descriptor): Use wide-int interfaces.
16878 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
16879 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
16880 (round_up_to_align): Use wide-int interfaces.
16881 (field_byte_offset): Likewise.
16882 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
16883 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
16884 CONST_DOUBLE handling. Use wide-int interfaces.
16885 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
16886 (gen_enumeration_type_die): Use add_AT_wide.
16887 (hash_loc_operands): Add case dw_val_class_wide_int.
16888 (compare_loc_operands): Likewise.
16889 * dwarf2out.h: Include wide-int.h.
16890 (wide_int_ptr): New.
16891 (enum dw_val_class): Add dw_val_class_wide_int.
16892 (struct dw_val_struct): Add val_wide.
16893 * emit-rtl.c (const_wide_int_htab): New.
16894 (const_wide_int_htab_hash): New.
16895 (const_wide_int_htab_eq): New.
16896 (lookup_const_wide_int): New.
16897 (const_double_htab_hash): Use wide-int interfaces.
16898 (const_double_htab_eq): Likewise.
16899 (rtx_to_double_int): Conditionally compile for wide-int.
16900 (immed_double_int_const): Rename to immed_wide_int_const and
16901 update for wide-int.
16902 (immed_double_const): Conditionally compile for wide-int.
16903 (init_emit_once): Use wide-int interfaces.
16904 * explow.c (plus_constant): Likewise.
16905 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
16906 (lshift_value): Use wide-int interfaces.
16907 (expand_mult): Likewise.
16908 (choose_multiplier): Likewise.
16909 (expand_smod_pow2): Likewise.
16910 (make_tree): Likewise.
16911 * expr.c (convert_modes): Consolidate handling of constants.
16912 Use wide-int interfaces.
16913 (emit_group_load_1): Add note.
16914 (store_expr): Update comment.
16915 (get_inner_reference): Use wide-int interfaces.
16916 (expand_constructor): Update comment.
16917 (expand_expr_real_2): Use wide-int interfaces.
16918 (expand_expr_real_1): Likewise.
16919 (reduce_to_bit_field_precision): Likewise.
16920 (const_vector_from_tree): Likewise.
16921 * final.c: Include wide-int-print.h.
16922 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
16923 * fixed-value.c: Include wide-int.h.
16924 (fixed_from_string): Use wide-int interfaces.
16925 (fixed_to_decimal): Likewise.
16926 (fixed_convert_from_real): Likewise.
16927 (real_convert_from_fixed): Likewise.
16928 * fold-const.h (mem_ref_offset): Return an offset_int.
16929 (div_if_zero_remainder): Remove code parameter.
16930 * fold-const.c (div_if_zero_remainder): Remove code parameter.
16931 Use wide-int interfaces.
16932 (may_negate_without_overflow_p): Use wide-int interfaces.
16933 (negate_expr_p): Likewise.
16934 (fold_negate_expr): Likewise.
16935 (int_const_binop_1): Likewise.
16936 (const_binop): Likewise.
16937 (fold_convert_const_int_from_int): Likewise.
16938 (fold_convert_const_int_from_real): Likewise.
16939 (fold_convert_const_int_from_fixed): Likewise.
16940 (fold_convert_const_fixed_from_int): Likewise.
16941 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
16942 (sign_bit_p): Use wide-int interfaces.
16943 (make_range_step): Likewise.
16944 (build_range_check): Likewise. Pass an integer of the correct type
16945 instead of using integer_one_node.
16946 (range_predecessor): Pass an integer of the correct type instead
16947 of using integer_one_node.
16948 (range_successor): Likewise.
16949 (merge_ranges): Likewise.
16950 (unextend): Use wide-int interfaces.
16951 (extract_muldiv_1): Likewise.
16952 (fold_div_compare): Likewise.
16953 (fold_single_bit_test): Likewise.
16954 (fold_sign_changed_comparison): Likewise.
16955 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16956 (fold_plusminus_mult_expr): Use wide-int interfaces.
16957 (native_encode_int): Likewise.
16958 (native_interpret_int): Likewise.
16959 (fold_unary_loc): Likewise.
16960 (pointer_may_wrap_p): Likewise.
16961 (size_low_cst): Likewise.
16962 (mask_with_tz): Likewise.
16963 (fold_binary_loc): Likewise.
16964 (fold_ternary_loc): Likewise.
16965 (multiple_of_p): Likewise.
16966 (tree_call_nonnegative_warnv_p): Update calls to
16967 tree_int_cst_min_precision and real_from_integer.
16968 (fold_negate_const): Use wide-int interfaces.
16969 (fold_abs_const): Likewise.
16970 (fold_relational_const): Use tree_int_cst_lt.
16971 (round_up_loc): Use wide-int interfaces.
16972 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16973 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16974 * gengtype.c: Remove include of double-int.h.
16975 (do_typedef): Use wide-int interfaces.
16976 (open_base_files): Add wide-int.h.
16977 (main): Add offset_int and widest_int typedefs.
16978 * gengtype-lex.l: Handle "^".
16979 (CXX_KEYWORD): Add "static".
16980 * gengtype-parse.c (require3): New.
16981 (require_template_declaration): Handle constant template arguments
16982 and nested templates.
16983 * gengtype-state.c: Don't include "double-int.h".
16984 * genpreds.c (write_one_predicate_function): Update comment.
16985 (write_tm_constrs_h): Add check for hval and lval use in
16986 CONST_WIDE_INT.
16987 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
16988 (add_to_sequence): Likewise.
16989 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
16990 and const_double_operand.
16991 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
16992 interfaces.
16993 * gimple-fold.c (get_base_constructor): Likewise.
16994 (fold_array_ctor_reference): Likewise.
16995 (fold_nonarray_ctor_reference): Likewise.
16996 (fold_const_aggregate_ref_1): Likewise.
16997 (gimple_val_nonnegative_real_p): Likewise.
16998 (gimple_fold_indirect_ref): Likewise.
16999 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17000 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17001 (struct slsr_cand_d): Change index to be widest_int.
17002 (struct incr_info_d): Change incr to be widest_int.
17003 (alloc_cand_and_find_basis): Use wide-int interfaces.
17004 (slsr_process_phi): Likewise.
17005 (backtrace_base_for_ref): Likewise. Return a widest_int.
17006 (restructure_reference): Take a widest_int instead of a double_int.
17007 (slsr_process_ref): Use wide-int interfaces.
17008 (create_mul_ssa_cand): Likewise.
17009 (create_mul_imm_cand): Likewise.
17010 (create_add_ssa_cand): Likewise.
17011 (create_add_imm_cand): Take a widest_int instead of a double_int.
17012 (slsr_process_add): Use wide-int interfaces.
17013 (slsr_process_cast): Likewise.
17014 (slsr_process_copy): Likewise.
17015 (dump_candidate): Likewise.
17016 (dump_incr_vec): Likewise.
17017 (replace_ref): Likewise.
17018 (cand_increment): Likewise. Return a widest_int.
17019 (cand_abs_increment): Likewise.
17020 (replace_mult_candidate): Take a widest_int instead of a double_int.
17021 (replace_unconditional_candidate): Use wide-int interfaces.
17022 (incr_vec_index): Take a widest_int instead of a double_int.
17023 (create_add_on_incoming_edge): Likewise.
17024 (create_phi_basis): Use wide-int interfaces.
17025 (replace_conditional_candidate): Likewise.
17026 (record_increment): Take a widest_int instead of a double_int.
17027 (record_phi_increments): Use wide-int interfaces.
17028 (phi_incr_cost): Take a widest_int instead of a double_int.
17029 (lowest_cost_path): Likewise.
17030 (total_savings): Likewise.
17031 (analyze_increments): Use wide-int interfaces.
17032 (ncd_with_phi): Take a widest_int instead of a double_int.
17033 (ncd_of_cand_and_phis): Likewise.
17034 (nearest_common_dominator_for_cands): Likewise.
17035 (insert_initializers): Use wide-int interfaces.
17036 (all_phi_incrs_profitable): Likewise.
17037 (replace_one_candidate): Likewise.
17038 (replace_profitable_candidates): Likewise.
17039 * godump.c: Include wide-int-print.h.
17040 (go_output_typedef): Use wide-int interfaces.
17041 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17042 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17043 (build_loop_iteration_domains): Likewise.
17044 * hooks.h: Include wide-int.h rather than double-int.h.
17045 (hook_bool_dint_dint_uint_bool_true): Delete.
17046 (hook_bool_wint_wint_uint_bool_true): Declare.
17047 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17048 (hook_bool_wint_wint_uint_bool_true): New.
17049 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17050 interfaces.
17051 (ubsan_expand_si_overflow_mul_check): Likewise.
17052 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17053 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17054 (get_ancestor_addr_info): Likewise.
17055 (ipa_modify_call_arguments): Likewise.
17056 * loop-doloop.c (doloop_modify): Likewise.
17057 (doloop_optimize): Likewise.
17058 * loop-iv.c (iv_number_of_iterations): Likewise.
17059 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17060 (unroll_loop_constant_iterations): Likewise.
17061 (decide_unroll_runtime_iterations): Likewise.
17062 (unroll_loop_runtime_iterations): Likewise.
17063 (decide_peel_simple): Likewise.
17064 (decide_unroll_stupid): Likewise.
17065 * lto-streamer-in.c (streamer_read_wi): Add.
17066 (input_cfg): Use wide-int interfaces.
17067 (lto_input_tree_1): Likewise.
17068 * lto-streamer-out.c (streamer_write_wi): Add.
17069 (hash_tree): Use wide-int interfaces.
17070 (output_cfg): Likewise.
17071 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17072 (GTFILES): Add wide-int.h and signop.h.
17073 (TAGS): Look for .cc files too.
17074 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17075 * optabs.c (expand_subword_shift): Likewise.
17076 (expand_doubleword_shift): Likewise.
17077 (expand_absneg_bit): Likewise.
17078 (expand_copysign_absneg): Likewise.
17079 (expand_copysign_bit): Likewise.
17080 * postreload.c (reload_cse_simplify_set): Likewise.
17081 * predict.c (predict_iv_comparison): Likewise.
17082 * pretty-print.h: Include wide-int-print.h.
17083 (pp_wide_int) New.
17084 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17085 * print-tree.c: Include wide-int-print.h.
17086 (print_node_brief): Use wide-int interfaces.
17087 (print_node): Likewise.
17088 * read-rtl.c (validate_const_wide_int): New.
17089 (read_rtx_code): Add CONST_WIDE_INT case.
17090 * real.c: Include wide-int.h.
17091 (real_to_integer2): Delete.
17092 (real_to_integer): New function, returning a wide_int.
17093 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17094 (ten_to_ptwo): Update call to real_from_integer.
17095 (real_digit): Likewise.
17096 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17097 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17098 (REAL_VALUE_TO_INT): Delete.
17099 (real_to_integer): Declare a wide-int form.
17100 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17101 * recog.c (const_int_operand): Improve comment.
17102 (const_scalar_int_operand): New.
17103 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17104 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17105 (split_double): Likewise.
17106 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17107 (rtx_size): Likewise.
17108 (rtx_alloc_stat_v): New.
17109 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17110 (cwi_output_hex): New.
17111 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17112 (cwi_check_failed_bounds): New.
17113 * rtl.def (CONST_WIDE_INT): New.
17114 * rtl.h: Include <utility> and wide-int.h.
17115 (struct hwivec_def): New.
17116 (CWI_GET_NUM_ELEM): New.
17117 (CWI_PUT_NUM_ELEM): New.
17118 (struct rtx_def): Add num_elem and hwiv.
17119 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17120 (CASE_CONST_UNIQUE): Likewise.
17121 (CASE_CONST_ANY): Likewise.
17122 (CONST_SCALAR_INT_P): Likewise.
17123 (CONST_WIDE_INT_P): New.
17124 (CWI_ELT): New.
17125 (HWIVEC_CHECK): New.
17126 (cwi_check_failed_bounds): New.
17127 (CWI_ELT): New.
17128 (HWIVEC_CHECK): New.
17129 (CONST_WIDE_INT_VEC) New.
17130 (CONST_WIDE_INT_NUNITS) New.
17131 (CONST_WIDE_INT_ELT) New.
17132 (rtx_mode_t): New type.
17133 (wi::int_traits <rtx_mode_t>): New.
17134 (wi::shwi): New.
17135 (wi::min_value): New.
17136 (wi::max_value): New.
17137 (rtx_alloc_v) New.
17138 (const_wide_int_alloc): New.
17139 (immed_wide_int_const): New.
17140 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17141 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17142 * signop.h: New file.
17143 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17144 (simplify_const_unary_operation): Use wide-int interfaces.
17145 (simplify_binary_operation_1): Likewise.
17146 (simplify_const_binary_operation): Likewise.
17147 (simplify_const_relational_operation): Likewise.
17148 (simplify_immed_subreg): Likewise.
17149 * stmt.c (expand_case): Likewise.
17150 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17151 signop rather than a bool.
17152 * stor-layout.c (layout_type): Use wide-int interfaces.
17153 (initialize_sizetypes): Update calls to
17154 set_min_and_max_values_for_integral_type.
17155 (set_min_and_max_values_for_integral_type): Take a signop rather
17156 than a bool. Use wide-int interfaces.
17157 (fixup_signed_type): Update accordingly. Remove
17158 HOST_BITS_PER_DOUBLE_INT limit.
17159 (fixup_unsigned_type): Likewise.
17160 * system.h (STATIC_CONSTANT_P): New.
17161 (STATIC_ASSERT): New.
17162 * target.def (can_use_doloop_p): Take widest_ints rather than
17163 double_ints.
17164 * target.h: Include wide-int.h rather than double-int.h.
17165 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17166 than double_ints.
17167 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17168 rather than INT_CST_LT_UNSIGNED.
17169 (can_use_doloop_if_innermost): Take widest_ints rather than
17170 double_ints.
17171 * tree-affine.c: Include wide-int-print.h.
17172 (double_int_ext_for_comb): Delete.
17173 (wide_int_ext_for_comb): New.
17174 (aff_combination_zero): Use wide-int interfaces.
17175 (aff_combination_const): Take a widest_int instead of a double_int.
17176 (aff_combination_elt): Use wide-int interfaces.
17177 (aff_combination_scale): Take a widest_int instead of a double_int.
17178 (aff_combination_add_elt): Likewise.
17179 (aff_combination_add_cst): Likewise.
17180 (aff_combination_add): Use wide-int interfaces.
17181 (aff_combination_convert): Likewise.
17182 (tree_to_aff_combination): Likewise.
17183 (add_elt_to_tree): Take a widest_int instead of a double_int.
17184 (aff_combination_to_tree): Use wide-int interfaces.
17185 (aff_combination_remove_elt): Likewise.
17186 (aff_combination_add_product): Take a widest_int instead of
17187 a double_int.
17188 (aff_combination_mult): Use wide-int interfaces.
17189 (aff_combination_expand): Likewise.
17190 (double_int_constant_multiple_p): Delete.
17191 (wide_int_constant_multiple_p): New.
17192 (aff_combination_constant_multiple_p): Take a widest_int pointer
17193 instead of a double_int pointer.
17194 (print_aff): Use wide-int interfaces.
17195 (get_inner_reference_aff): Take a widest_int pointer
17196 instead of a double_int pointer.
17197 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17198 * tree-affine.h: Include wide-int.h.
17199 (struct aff_comb_elt): Change type of coef to widest_int.
17200 (struct affine_tree_combination): Change type of offset to widest_int.
17201 (double_int_ext_for_comb): Delete.
17202 (wide_int_ext_for_comb): New.
17203 (aff_combination_const): Use widest_int instead of double_int.
17204 (aff_combination_scale): Likewise.
17205 (aff_combination_add_elt): Likewise.
17206 (aff_combination_constant_multiple_p): Likewise.
17207 (get_inner_reference_aff): Likewise.
17208 (aff_comb_cannot_overlap_p): Likewise.
17209 (aff_combination_zero_p): Use wide-int interfaces.
17210 * tree.c: Include tree.h.
17211 (init_ttree): Use make_int_cst.
17212 (tree_code_size): Removed code for INTEGER_CST case.
17213 (tree_size): Add INTEGER_CST case.
17214 (make_node_stat): Update comment.
17215 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17216 (build_int_cst_type): Use wide-int interfaces.
17217 (double_int_to_tree): Likewise.
17218 (double_int_fits_to_tree_p): Delete.
17219 (force_fit_type_double): Delete.
17220 (force_fit_type): New.
17221 (int_cst_hash_hash): Use wide-int interfaces.
17222 (int_cst_hash_eq): Likewise.
17223 (build_int_cst_wide): Delete.
17224 (wide_int_to_tree): New.
17225 (cache_integer_cst): Use wide-int interfaces.
17226 (build_low_bits_mask): Likewise.
17227 (cst_and_fits_in_hwi): Likewise.
17228 (real_value_from_int_cst): Likewise.
17229 (make_int_cst_stat): New.
17230 (integer_zerop): Use wide_int interfaces.
17231 (integer_onep): Likewise.
17232 (integer_all_onesp): Likewise.
17233 (integer_pow2p): Likewise.
17234 (integer_nonzerop): Likewise.
17235 (tree_log2): Likewise.
17236 (tree_floor_log2): Likewise.
17237 (tree_ctz): Likewise.
17238 (int_size_in_bytes): Likewise.
17239 (mem_ref_offset): Return an offset_int rather than a double_int.
17240 (build_type_attribute_qual_variant): Use wide_int interfaces.
17241 (type_hash_eq): Likewise
17242 (tree_int_cst_equal): Likewise.
17243 (tree_int_cst_lt): Delete.
17244 (tree_int_cst_compare): Likewise.
17245 (tree_fits_shwi_p): Use wide_int interfaces.
17246 (tree_fits_uhwi_p): Likewise.
17247 (tree_int_cst_sign_bit): Likewise.
17248 (tree_int_cst_sgn): Likewise.
17249 (tree_int_cst_min_precision): Take a signop rather than a bool.
17250 (simple_cst_equal): Use wide_int interfaces.
17251 (compare_tree_int): Likewise.
17252 (iterative_hash_expr): Likewise.
17253 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17254 INT_CST_LT.
17255 (get_type_static_bounds): Use wide_int interfaces.
17256 (tree_int_cst_elt_check_failed): New.
17257 (build_common_tree_nodes): Reordered to set prec before filling in
17258 value.
17259 (int_cst_value): Check cst_and_fits_in_hwi.
17260 (widest_int_cst_value): Use wide_int interfaces.
17261 (upper_bound_in_type): Likewise.
17262 (lower_bound_in_type): Likewise.
17263 (num_ending_zeros): Likewise.
17264 (drop_tree_overflow): Likewise.
17265 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17266 (gen_conditions_for_pow_cst_base): Likewise.
17267 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17268 (group_case_labels_stmt): Use wide-int interfaces.
17269 (verify_gimple_assign_binary): Likewise.
17270 (print_loop): Likewise.
17271 * tree-chrec.c (tree_fold_binomial): Likewise.
17272 * tree-core.h (struct tree_base): Add int_length.
17273 (struct tree_int_cst): Change rep of value.
17274 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17275 (dr_may_alias_p): Likewise.
17276 (max_stmt_executions_tree): Likewise.
17277 * tree.def (INTEGER_CST): Update comment.
17278 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17279 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17280 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17281 (dequeue_and_dump): Use wide-int interfaces.
17282 * tree.h: Include wide-int.h.
17283 (NULL_TREE): Moved to earlier loc in file.
17284 (TREE_INT_CST_ELT_CHECK): New.
17285 (tree_int_cst_elt_check_failed): New.
17286 (TYPE_SIGN): New.
17287 (TREE_INT_CST): Delete.
17288 (TREE_INT_CST_LOW): Use wide-int interfaces.
17289 (TREE_INT_CST_HIGH): Delete.
17290 (TREE_INT_CST_NUNITS): New.
17291 (TREE_INT_CST_EXT_NUNITS): Likewise.
17292 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17293 (TREE_INT_CST_ELT): Likewise.
17294 (INT_CST_LT): Delete.
17295 (tree_int_cst_elt_check): New (two forms).
17296 (type_code_size): Update comment.
17297 (make_int_cst_stat, make_int_cst): New.
17298 (tree_to_double_int): Delete.
17299 (double_int_fits_to_tree_p): Delete.
17300 (force_fit_type_double): Delete.
17301 (build_int_cstu): Replace with out-of-line function.
17302 (build_int_cst_wide): Delete.
17303 (tree_int_cst_lt): Define inline.
17304 (tree_int_cst_le): New.
17305 (tree_int_cst_compare): Define inline.
17306 (tree_int_cst_min_precision): Take a signop rather than a bool.
17307 (wi::int_traits <const_tree>): New.
17308 (wi::int_traits <tree>): New.
17309 (wi::extended_tree): New.
17310 (wi::int_traits <wi::extended_tree>): New.
17311 (wi::to_widest): New.
17312 (wi::to_offset): New.
17313 (wi::fits_to_tree_p): New.
17314 (wi::min_value): New.
17315 (wi::max_value): New.
17316 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17317 (copy_tree_body_r): Likewise.
17318 * tree-object-size.c (compute_object_offset): Likewise.
17319 (addr_object_size): Likewise.
17320 * tree-predcom.c: Include wide-int-print.h.
17321 (struct dref_d): Change type of offset to widest_int.
17322 (dump_dref): Call wide-int printer.
17323 (aff_combination_dr_offset): Use wide-int interfaces.
17324 (determine_offset): Take a widest_int pointer rather than a
17325 double_int pointer.
17326 (split_data_refs_to_components): Use wide-int interfaces.
17327 (suitable_component_p): Likewise.
17328 (order_drefs): Likewise.
17329 (add_ref_to_chain): Likewise.
17330 (valid_initializer_p): Likewise.
17331 (determine_roots_comp): Likewise.
17332 * tree-pretty-print.c: Include wide-int-print.h.
17333 (dump_generic_node): Use wide-int interfaces.
17334 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17335 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17336 (move_fixed_address_to_symbol): Likewise.
17337 (move_hint_to_base): Likewise.
17338 (move_pointer_to_base): Likewise.
17339 (move_variant_to_index): Likewise.
17340 (most_expensive_mult_to_index): Likewise.
17341 (addr_to_parts): Likewise.
17342 (copy_ref_info): Likewise.
17343 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17344 (indirect_refs_may_alias_p): Likewise.
17345 (stmt_kills_ref_p_1): Likewise.
17346 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17347 * tree-ssa-ccp.c: Update comment at top of file. Include
17348 wide-int-print.h.
17349 (struct prop_value_d): Change type of mask to widest_int.
17350 (extend_mask): New function.
17351 (dump_lattice_value): Use wide-int interfaces.
17352 (get_default_value): Likewise.
17353 (set_constant_value): Likewise.
17354 (set_value_varying): Likewise.
17355 (valid_lattice_transition): Likewise.
17356 (set_lattice_value): Likewise.
17357 (value_to_double_int): Delete.
17358 (value_to_wide_int): New.
17359 (get_value_from_alignment): Use wide-int interfaces.
17360 (get_value_for_expr): Likewise.
17361 (do_dbg_cnt): Likewise.
17362 (ccp_finalize): Likewise.
17363 (ccp_lattice_meet): Likewise.
17364 (bit_value_unop_1): Use widest_ints rather than double_ints.
17365 (bit_value_binop_1): Likewise.
17366 (bit_value_unop): Use wide-int interfaces.
17367 (bit_value_binop): Likewise.
17368 (bit_value_assume_aligned): Likewise.
17369 (evaluate_stmt): Likewise.
17370 (ccp_fold_stmt): Likewise.
17371 (visit_cond_stmt): Likewise.
17372 (ccp_visit_stmt): Likewise.
17373 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17374 (constant_pointer_difference): Likewise.
17375 (associate_pointerplus): Likewise.
17376 (combine_conversions): Likewise.
17377 * tree-ssa-loop.h: Include wide-int.h.
17378 (struct tree_niter_desc): Change type of max to widest_int.
17379 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17380 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17381 (remove_redundant_iv_tests): Likewise.
17382 (canonicalize_loop_induction_variables): Likewise.
17383 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17384 (constant_multiple_of): Take a widest_int pointer instead of
17385 a double_int pointer.
17386 (get_computation_aff): Use wide-int interfaces.
17387 (ptr_difference_cost): Likewise.
17388 (difference_cost): Likewise.
17389 (get_loop_invariant_expr_id): Likewise.
17390 (get_computation_cost_at): Likewise.
17391 (iv_elimination_compare_lt): Likewise.
17392 (may_eliminate_iv): Likewise.
17393 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17394 instead of double_int.
17395 (max_loop_iterations): Likewise.
17396 (max_stmt_executions): Likewise.
17397 (estimated_stmt_executions): Likewise.
17398 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17399 (split_to_var_and_offset): Use wide-int interfaces.
17400 (determine_value_range): Likewise.
17401 (bound_difference_of_offsetted_base): Likewise.
17402 (bounds_add): Take a widest_int instead of a double_int.
17403 (number_of_iterations_ne_max): Use wide-int interfaces.
17404 (number_of_iterations_ne): Likewise.
17405 (number_of_iterations_lt_to_ne): Likewise.
17406 (assert_loop_rolls_lt): Likewise.
17407 (number_of_iterations_lt): Likewise.
17408 (number_of_iterations_le): Likewise.
17409 (number_of_iterations_cond): Likewise.
17410 (number_of_iterations_exit): Likewise.
17411 (finite_loop_p): Likewise.
17412 (derive_constant_upper_bound_assign): Likewise.
17413 (derive_constant_upper_bound): Return a widest_int.
17414 (derive_constant_upper_bound_ops): Likewise.
17415 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17416 (record_estimate): Take a widest_int rather than a double_int.
17417 (record_nonwrapping_iv): Use wide-int interfaces.
17418 (double_int_cmp): Delete.
17419 (wide_int_cmp): New.
17420 (bound_index): Take a widest_int rather than a double_int.
17421 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17422 (maybe_lower_iteration_bound): Likewise.
17423 (estimate_numbers_of_iterations_loop): Likewise.
17424 (estimated_loop_iterations): Take a widest_int pointer than than
17425 a double_int pointer.
17426 (estimated_loop_iterations_int): Use wide-int interfaces.
17427 (max_loop_iterations): Take a widest_int pointer than than
17428 a double_int pointer.
17429 (max_loop_iterations_int): Use wide-int interfaces.
17430 (max_stmt_executions): Take a widest_int pointer than than
17431 a double_int pointer.
17432 (estimated_stmt_executions): Likewise.
17433 (n_of_executions_at_most): Use wide-int interfaces.
17434 (scev_probably_wraps_p): Likewise.
17435 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17436 to real_to_integer.
17437 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17438 interfaces.
17439 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17440 double_ints. Adjust for trailing_wide_ints <3> representation.
17441 (set_nonzero_bits): Likewise.
17442 (get_range_info): Return wide_ints rather than double_ints.
17443 Adjust for trailing_wide_ints <3> representation.
17444 (get_nonzero_bits): Likewise.
17445 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17446 representation.
17447 * tree-ssanames.h (struct range_info_def): Replace min, max and
17448 nonzero_bits with a trailing_wide_ints <3>.
17449 (set_range_info): Use wide_int_refs rather than double_ints.
17450 (set_nonzero_bits): Likewise.
17451 (get_range_info): Return wide_ints rather than double_ints.
17452 (get_nonzero_bits): Likewise.
17453 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17454 * tree-ssa-pre.c (phi_translate_1): Likewise.
17455 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17456 (acceptable_pow_call): Likewise.
17457 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17458 interfaces.
17459 (vn_reference_fold_indirect): Likewise.
17460 (vn_reference_maybe_forwprop_address): Likewise.
17461 (valueize_refs_1): Likewise.
17462 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17463 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17464 tree_int_cst_lt and tree_int_cst_le.
17465 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17466 interfaces.
17467 (streamer_alloc_tree): Likewise.
17468 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17469 (streamer_write_tree_header): Likewise.
17470 (streamer_write_integer_cst): Likewise.
17471 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17472 (build_constructors): Likewise.
17473 (array_value_type): Likewise.
17474 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17475 (vect_check_gather): Likewise.
17476 * tree-vect-generic.c (build_replicated_const): Likewise.
17477 (expand_vector_divmod): Likewise.
17478 * tree-vect-loop.c (vect_transform_loop): Likewise.
17479 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17480 (vect_do_peeling_for_alignment): Likewise.
17481 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17482 * tree-vrp.c: Include wide-int.h.
17483 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17484 (extract_range_from_assert): Use wide-int interfaces.
17485 (vrp_int_const_binop): Likewise.
17486 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17487 double_int pointers.
17488 (ranges_from_anti_range): Use wide-int interfaces.
17489 (quad_int_cmp): Delete.
17490 (quad_int_pair_sort): Likewise.
17491 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17492 (extract_range_from_unary_expr_1): Likewise.
17493 (adjust_range_with_scev): Likewise.
17494 (masked_increment): Take and return wide_ints rather than double_ints.
17495 (register_edge_assert_for_2): Use wide-int interfaces.
17496 (check_array_ref): Likewise.
17497 (search_for_addr_array): Likewise.
17498 (maybe_set_nonzero_bits): Likewise.
17499 (union_ranges): Pass an integer of the correct type instead of
17500 using integer_one_node.
17501 (intersect_ranges): Likewise.
17502 (simplify_truth_ops_using_ranges): Likewise.
17503 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17504 (range_fits_type_p): Likewise.
17505 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17506 a bool.
17507 (simplify_conversion_using_ranges): Use wide-int interfaces.
17508 (simplify_float_conversion_using_ranges): Likewise.
17509 (vrp_finalize): Likewise.
17510 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17511 (gimple_stringops_transform): Likewise.
17512 * varasm.c (decode_addr_const): Likewise.
17513 (const_hash_1): Likewise.
17514 (const_rtx_hash_1): Likewise
17515 (output_constant): Likewise.
17516 (array_size_for_constructor): Likewise.
17517 (output_constructor_regular_field): Likewise.
17518 (output_constructor_bitfield): Likewise.
17519 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17520 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17521 GENERATOR_FILEs.
17522 * gencheck.c: Define BITS_PER_UNIT.
17523 * wide-int.cc: New.
17524 * wide-int.h: New.
17525 * wide-int-print.cc: New.
17526 * wide-int-print.h: New.
17527
17528 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17529
17530 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17531
17532 2014-05-06 Richard Biener <rguenther@suse.de>
17533
17534 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17535 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17536 (TODO_verify_all): Adjust.
17537 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17538 TODO_verify_stmts and TODO_verify_rtl_sharing.
17539 * bb-reorder.c: Likewise.
17540 * cfgexpand.c: Likewise.
17541 * cprop.c: Likewise.
17542 * cse.c: Likewise.
17543 * function.c: Likewise.
17544 * fwprop.c: Likewise.
17545 * gcse.c: Likewise.
17546 * gimple-ssa-isolate-paths.c: Likewise.
17547 * gimple-ssa-strength-reduction.c: Likewise.
17548 * ipa-split.c: Likewise.
17549 * loop-init.c: Likewise.
17550 * loop-unroll.c: Likewise.
17551 * lower-subreg.c: Likewise.
17552 * modulo-sched.c: Likewise.
17553 * postreload-gcse.c: Likewise.
17554 * predict.c: Likewise.
17555 * recog.c: Likewise.
17556 * sched-rgn.c: Likewise.
17557 * store-motion.c: Likewise.
17558 * tracer.c: Likewise.
17559 * trans-mem.c: Likewise.
17560 * tree-call-cdce.c: Likewise.
17561 * tree-cfg.c: Likewise.
17562 * tree-cfgcleanup.c: Likewise.
17563 * tree-complex.c: Likewise.
17564 * tree-eh.c: Likewise.
17565 * tree-emutls.c: Likewise.
17566 * tree-if-conv.c: Likewise.
17567 * tree-into-ssa.c: Likewise.
17568 * tree-loop-distribution.c: Likewise.
17569 * tree-object-size.c: Likewise.
17570 * tree-parloops.c: Likewise.
17571 * tree-pass.h: Likewise.
17572 * tree-sra.c: Likewise.
17573 * tree-ssa-ccp.c: Likewise.
17574 * tree-ssa-copy.c: Likewise.
17575 * tree-ssa-copyrename.c: Likewise.
17576 * tree-ssa-dce.c: Likewise.
17577 * tree-ssa-dom.c: Likewise.
17578 * tree-ssa-dse.c: Likewise.
17579 * tree-ssa-forwprop.c: Likewise.
17580 * tree-ssa-ifcombine.c: Likewise.
17581 * tree-ssa-loop-ch.c: Likewise.
17582 * tree-ssa-loop-ivcanon.c: Likewise.
17583 * tree-ssa-loop.c: Likewise.
17584 * tree-ssa-math-opts.c: Likewise.
17585 * tree-ssa-phiopt.c: Likewise.
17586 * tree-ssa-phiprop.c: Likewise.
17587 * tree-ssa-pre.c: Likewise.
17588 * tree-ssa-reassoc.c: Likewise.
17589 * tree-ssa-sink.c: Likewise.
17590 * tree-ssa-strlen.c: Likewise.
17591 * tree-ssa-tail-merge.c: Likewise.
17592 * tree-ssa-uncprop.c: Likewise.
17593 * tree-switch-conversion.c: Likewise.
17594 * tree-tailcall.c: Likewise.
17595 * tree-vect-generic.c: Likewise.
17596 * tree-vectorizer.c: Likewise.
17597 * tree-vrp.c: Likewise.
17598 * tsan.c: Likewise.
17599 * var-tracking.c: Likewise.
17600 * bt-load.c: Likewise.
17601 * cfgcleanup.c: Likewise.
17602 * combine-stack-adj.c: Likewise.
17603 * combine.c: Likewise.
17604 * compare-elim.c: Likewise.
17605 * config/epiphany/resolve-sw-modes.c: Likewise.
17606 * config/i386/i386.c: Likewise.
17607 * config/mips/mips.c: Likewise.
17608 * config/s390/s390.c: Likewise.
17609 * config/sh/sh_treg_combine.cc: Likewise.
17610 * config/sparc/sparc.c: Likewise.
17611 * dce.c: Likewise.
17612 * dse.c: Likewise.
17613 * final.c: Likewise.
17614 * ifcvt.c: Likewise.
17615 * mode-switching.c: Likewise.
17616 * passes.c: Likewise.
17617 * postreload.c: Likewise.
17618 * ree.c: Likewise.
17619 * reg-stack.c: Likewise.
17620 * regcprop.c: Likewise.
17621 * regrename.c: Likewise.
17622 * web.c: Likewise.
17623
17624 2014-05-06 Richard Biener <rguenther@suse.de>
17625
17626 PR middle-end/61070
17627 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17628 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17629
17630 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17631
17632 PR ipa/60965
17633 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17634
17635 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17636 Tom de Vries <tom@codesourcery.com>
17637
17638 * target.def (call_fusage_contains_non_callee_clobbers): New
17639 DEFHOOKPOD.
17640 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17641 Hooks to @menu.
17642 (@node Miscellaneous Register Hooks): New node.
17643 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17644 * doc/tm.texi: Regenerate.
17645
17646 2014-05-05 Marek Polacek <polacek@redhat.com>
17647
17648 PR driver/61065
17649 * opts.c (common_handle_option): Call error_at instead of warning_at.
17650
17651 2014-05-05 Richard Biener <rguenther@suse.de>
17652
17653 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17654 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17655 under the TODO_verify_il umbrella.
17656
17657 2014-05-05 Richard Biener <rguenther@suse.de>
17658
17659 * passes.c (execute_function_todo): Move TODO_verify_flow under
17660 the TODO_verify_ul umbrella.
17661
17662 2014-05-05 Richard Biener <rguenther@suse.de>
17663
17664 PR middle-end/61010
17665 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17666 X & CST away from a CST that is the mask of a mode.
17667
17668 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17669
17670 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17671 int argument to enum machine_mode.
17672 (picochip_class_max_nregs): Ditto.
17673 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17674 (picochip_class_max_nregs): Ditto.
17675
17676 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17677
17678 * target.def: Add new target hook.
17679 * doc/tm.texi: Regenerate.
17680 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17681 * targhooks.c (default_keep_leaf_when_profiled): New function.
17682
17683 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17684 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17685
17686 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17687
17688 PR tree-optimization/60363
17689 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17690 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17691 (update_destination_phis): New parameter.
17692 (create_edge_and_update_destination_phis): Ditto.
17693 (ssa_fix_duplicate_block_edges): Pass new arguments.
17694 (thread_single_edge): Ditto.
17695
17696 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17697
17698 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17699 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17700 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17701 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17702 Use RS6000_BTM_HARD_FLOAT.
17703 (BU_MISC_2): Likewise.
17704 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17705 RS6000_BTM_HARD_FLOAT.
17706 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17707 is explicitly used.
17708 (rs6000_invalid_builtin): Add hard floating builtin support.
17709 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17710 hard float builtins.
17711 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17712
17713 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17714
17715 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17716 Add missing function* argument.
17717
17718 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17719
17720 * lra-constraints.c (valid_address_p): Move earlier in file.
17721 Add a constraint argument to the address_info version.
17722 (satisfies_memory_constraint_p): New function.
17723 (satisfies_address_constraint_p): Likewise.
17724 (process_alt_operands, curr_insn_transform): Use them.
17725 (process_address): Pass the constraint to valid_address_p when
17726 checking address operands.
17727
17728 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17729
17730 * config/mips/mips.c (mips_isa_rev): New variable.
17731 (mips_set_architecture): Set it.
17732 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17733 from mips_isa_rev.
17734 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17735 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17736 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17737 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17738 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17739 conditions in terms of mips_isa_rev.
17740 (mips_isa_rev): Declare.
17741
17742 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17743
17744 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17745 (prob_unlikely, prob_likely): Make variables const.
17746
17747 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17748
17749 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17750
17751 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17752
17753 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17754
17755 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17756
17757 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17758 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17759 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17760 functions.
17761 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17762 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17763 sh_pass_in_reg_p.
17764 Replace usage of ROUND_REG with sh_round_reg.
17765 Use CEIL instead of ROUND_ADVANCE.
17766
17767 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17768
17769 PR target/61026
17770 * config/sh/sh.c: Include stdlib headers before everything else.
17771
17772 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17773
17774 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17775 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17776 (gimplify_adjust_omp_clauses): Simd region is never
17777 directly nested in combined parallel. Instead, for linear
17778 with copyin/copyout, if in combined for simd loop, make decl
17779 firstprivate/lastprivate on OMP_FOR.
17780 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17781 expand_omp_for_static_chunk): When setting endvar, also set
17782 fd->loop.v to the same value.
17783
17784 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17785
17786 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17787
17788 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17789
17790 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17791 expression.
17792
17793 2014-05-02 Marek Polacek <polacek@redhat.com>
17794
17795 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17796
17797 2014-05-02 Kito Cheng <kito@0xlab.org>
17798
17799 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17800 to a C expression marco.
17801 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17802 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17803 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17804 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17805 HONOR_REG_ALLOC_ORDER.
17806 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17807
17808 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17809
17810 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17811
17812 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17813
17814 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17815
17816 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17817
17818 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17819 (convert_scalar_cond_reduction): Likewise.
17820 (predicate_scalar_phi): Add recognition and transformation
17821 of simple conditioanl reduction to be vectorizable.
17822
17823 2014-05-01 Marek Polacek <polacek@redhat.com>
17824
17825 PR c/43245
17826 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17827
17828 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17829
17830 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17831 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17832 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17833 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17834 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17835 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17836 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17837 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17838
17839 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17840
17841 * config/arc/arc.opt (mlra): Move comment above option name
17842 to avoid mis-parsing as language options.
17843
17844 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17845
17846 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17847 * config/sol2.h: ... here.
17848 * config/sol2-10.h: Remove.
17849
17850 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17851 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17852 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17853 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17854 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17855 * config/sol2.h: ... here.
17856 (SECTION_NAME_FORMAT): Don't redefine.
17857 (STARTFILE_ARCH32_SPEC): Rename to ...
17858 (STARTFILE_ARCH_SPEC): ... this.
17859 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17860 * config/sparc/sol2.h: ... here.
17861 (SECTION_NAME_FORMAT): Don't undef.
17862 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17863 (SUBTARGET_EXTRA_SPECS): Remove.
17864 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17865
17866 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17867 (MD_STARTFILE_PREFIX): Remove.
17868 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17869 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17870 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17871 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17872 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17873 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17874 * config/i386/sol2.h: ... here.
17875 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17876 * config/i386/sol2-bi.h: Remove.
17877 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17878 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17879
17880 * config/i386/t-sol2-64: Rename to ...
17881 * config/i386/t-sol2: ... this.
17882 * config/sparc/t-sol2-64: Rename to ...
17883 * config/sparc/t-sol2: ... this.
17884
17885 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17886 sol2_tm_file_head, sol2_tm_file_tail.
17887 Include ${cpu_type}/sol2.h before sol2.h.
17888 Remove sol2-10.h.
17889 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17890 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17891 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17892 Reflect i386/t-sol2-64 renaming.
17893 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17894 Reflect sparc/t-sol2-64 renaming.
17895
17896 2014-04-30 Richard Biener <rguenther@suse.de>
17897
17898 * passes.c (execute_function_todo): Move TODO_verify_stmts
17899 and TODO_verify_ssa under the TODO_verify_il umbrella.
17900 * tree-ssa.h (verify_ssa): Adjust prototype.
17901 * tree-ssa.c (verify_ssa): Add parameter to tell whether
17902 we should verify SSA operands.
17903 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17904 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17905 whether we should verify whether not throwing stmts have EH info.
17906 * graphite-scop-detection.c (create_sese_edges): Adjust.
17907 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17908 * tree-eh.c (lower_try_finally_switch): Do not add the
17909 default case label twice.
17910
17911 2014-04-30 Marek Polacek <polacek@redhat.com>
17912
17913 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17914 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17915 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17916 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17917
17918 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
17919
17920 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17921 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17922 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17923 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17924 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17925 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17926 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17927 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17928
17929 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17930
17931 * tree-cfg.c (dump_function_to_file): Dump the return type of
17932 functions, in a line to itself before the function body, mimicking
17933 the layout of a C function.
17934
17935 2014-04-29 Jakub Jelinek <jakub@redhat.com>
17936
17937 PR tree-optimization/60971
17938 * tree-tailcall.c (process_assignment): Reject conversions which
17939 reduce precision.
17940
17941 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
17942
17943 * calls.c (initialize_argument_information): Always treat
17944 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17945 (expand_call): Likewise.
17946 (emit_library_call_calue_1): Likewise.
17947 * expr.c (PUSH_ARGS_REVERSED): Do not define.
17948 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17949 code accordingly.
17950
17951 2014-04-29 Nick Clifton <nickc@redhat.com>
17952
17953 * config/msp430/msp430.md (umulsidi): Fix typo.
17954 (mulhisi3): Enable even inside interrupt handlers.
17955 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17956 bigger return address pushed in large mode.
17957
17958 2014-04-29 Nick Clifton <nickc@redhat.com>
17959
17960 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17961 (arc_init_reg_tables): Use a machine_mode enum to iterate over
17962 available modes.
17963 * config/m32r/m32r.c (init_reg_tables): Likewise.
17964 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17965 enum to hold the modes.
17966
17967 2014-04-29 Richard Biener <rguenther@suse.de>
17968
17969 * dominance.c (free_dominance_info): Add overload with
17970 function parameter.
17971 (dom_info_state): Likewise.
17972 (dom_info_available_p): Likewise.
17973 * basic-block.h (free_dominance_info, dom_info_state,
17974 dom_info_available_p): Declare overloads.
17975 * passes.c (execute_function_todo): Verify that verifiers
17976 don't change dominator info state. Drop dominator info
17977 for IPA pass invocations.
17978 * cgraph.c (release_function_body): Restore asserts that
17979 dominator information is released.
17980
17981 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
17982
17983 * doc/invoke.texi: Fix typo.
17984 * tree-vrp.c: Fix typos.
17985 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
17986
17987 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17988
17989 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
17990
17991 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17992
17993 * config/aarch64/aarch64-builtins.c
17994 (aarch64_types_storestruct_lane_qualifiers): New.
17995 (TYPES_STORESTRUCT_LANE): Likewise.
17996 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
17997 (st3_lane): Likewise.
17998 (st4_lane): Likewise.
17999 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18000 (vec_store_lanesci_lane<mode>): Likewise.
18001 (vec_store_lanesxi_lane<mode>): Likewise.
18002 (aarch64_st2_lane<VQ:mode>): Likewise.
18003 (aarch64_st3_lane<VQ:mode>): Likewise.
18004 (aarch64_st4_lane<VQ:mode>): Likewise.
18005 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18006 * config/aarch64/arm_neon.h
18007 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18008 use new macro arguments.
18009 (__ST3_LANE_FUNC): Likewise.
18010 (__ST4_LANE_FUNC): Likewise.
18011 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18012 (V_THREE_ELEM): Likewise.
18013 (V_FOUR_ELEM): Likewise.
18014
18015 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18016
18017 * doc/gimple.texi: Replace the description of the now-defunct
18018 union gimple_statement_d with a diagram showing the
18019 gimple_statement_base class hierarchy and its relationships to
18020 the GSS_ and GIMPLE_ enums.
18021
18022 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18023
18024 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18025 * config/aarch64/aarch64.c
18026 (aarch64_cannot_change_mode_class): Weaken conditions.
18027 (aarch64_modes_tieable_p): New.
18028 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18029
18030 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18031
18032 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18033 (loadsync_<mode>): Change mode.
18034 (load_quadpti, store_quadpti): New.
18035 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18036 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18037
18038 2014-04-28 Martin Jambor <mjambor@suse.cz>
18039
18040 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18041 same alias type as the original statement.
18042 (subreplacement_assignment_data): New type.
18043 (handle_unscalarized_data_in_subtree): New type of parameter,
18044 generate new memory accesses with same alias type as the original
18045 statement.
18046 (load_assign_lhs_subreplacements): Likewise.
18047 (sra_modify_constructor_assign): Generate new memory accesses with
18048 same alias type as the original statement.
18049
18050 2014-04-28 Richard Biener <rguenther@suse.de>
18051
18052 * tree-pass.h (TODO_verify_il): Define.
18053 (TODO_verify_all): Complete properly.
18054 * passes.c (execute_function_todo): Move existing loop-closed
18055 SSA verification under TODO_verify_il.
18056 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18057 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18058 Fix tree sharing issue.
18059
18060 2014-04-28 Richard Biener <rguenther@suse.de>
18061
18062 PR middle-end/60092
18063 * builtins.def (DEF_C11_BUILTIN): Add.
18064 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18065 * coretypes.h (enum function_class): Add function_c11_misc.
18066 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18067 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18068 (call_may_clobber_ref_p_1): Likewise.
18069 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18070 (mark_all_reaching_defs_necessary_1): Likewise.
18071 (propagate_necessity): Likewise.
18072 (eliminate_unnecessary_stmts): Likewise.
18073 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18074
18075 2014-04-28 Richard Biener <rguenther@suse.de>
18076
18077 * tree-vrp.c (vrp_var_may_overflow): Remove.
18078 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18079 with overflow immediately bump to one before that value and
18080 let iteration figure out overflow status.
18081
18082 2014-04-28 Richard Biener <rguenther@suse.de>
18083
18084 * configure.ac: Do valgrind header checks unconditionally.
18085 Add --enable-valgrind-annotations.
18086 * system.h: Guard valgrind header inclusion with
18087 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18088 * alloc-pool.c (pool_alloc, pool_free): Use
18089 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18090 to guard possibly dead code.
18091 * config.in: Regenerated.
18092 * configure: Likewise.
18093
18094 2014-04-28 Jeff Law <law@redhat.com>
18095
18096 PR tree-optimization/60902
18097 * tree-ssa-threadedge.c
18098 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18099 over real defs when invalidating outputs from statements that do not
18100 produce useful outputs for threading.
18101
18102 2014-04-28 Richard Biener <rguenther@suse.de>
18103
18104 PR tree-optimization/60979
18105 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18106 SCOPs that end in a block with a successor with abnormal
18107 predecessors.
18108
18109 2014-04-28 Richard Biener <rguenther@suse.de>
18110
18111 * tree-pass.h (execute_pass_list): Adjust prototype.
18112 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18113 (do_per_function): Change callback signature, push all actual
18114 work to the callbals.
18115 (do_per_function_toporder): Likewise.
18116 (execute_function_dump): Adjust.
18117 (execute_function_todo): Likewise.
18118 (clear_last_verified): Likewise.
18119 (verify_curr_properties): Likewise.
18120 (update_properties_after_pass): Likewise.
18121 (execute_pass_list_1): Split out from ...
18122 (execute_pass_list): ... here. Adjust.
18123 (execute_ipa_pass_list): Likewise.
18124 * cgraphunit.c (cgraph_add_new_function): Adjust.
18125 (analyze_function): Likewise.
18126 (expand_function): Likewise.
18127 * cgraph.c (release_function_body): Free dominance info
18128 here instead of asserting it was magically freed elsewhere.
18129
18130 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18131
18132 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18133 * configure: Regenerate.
18134 * config/sparc/sparc.opt (muser-mode): New option.
18135 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18136 for LEON3.
18137 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18138 * doc/invoke.texi (SPARC options): Document -muser-mode.
18139
18140 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18141
18142 * cselib.c (find_slot_memmode): Delete.
18143 (cselib_hasher): Change compare_type to a struct.
18144 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18145 constants.
18146 (preserve_constants_and_equivs): Adjust for new compare_type.
18147 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18148 (wrap_constant): Delete.
18149 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18150
18151 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18152
18153 * doc/install.texi (Building with profile feedback): Remove
18154 outdated sentence.
18155
18156 2014-04-26 Tom de Vries <tom@codesourcery.com>
18157
18158 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18159 array accesses.
18160
18161 2014-04-25 Cary Coutant <ccoutant@google.com>
18162
18163 PR debug/60929
18164 * dwarf2out.c (should_move_die_to_comdat): A type definition
18165 can contain a subprogram definition, but don't move it to a
18166 comdat unit.
18167 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18168 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18169 from original DIE.
18170 (clone_tree_hash): Rename to...
18171 (clone_tree_partial): ...this; change callers. Copy
18172 DW_TAG_subprogram DIEs as declarations.
18173 (copy_decls_walk): Don't copy children of a declaration into a
18174 type unit.
18175
18176 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18177
18178 PR target/60969
18179 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18180 alternative 12.
18181
18182 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18183
18184 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18185 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18186 reg for long_call.
18187 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18188 restriction.
18189
18190 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18191
18192 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18193
18194 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18195
18196 PR tree-optimization/60930
18197 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18198 creating a multiply candidate by folding two constant
18199 multiplicands when the result overflows.
18200
18201 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18202
18203 PR tree-optimization/60960
18204 * tree-vect-generic.c (expand_vector_operation): Only call
18205 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18206
18207 2014-04-25 Tom de Vries <tom@codesourcery.com>
18208
18209 * expr.c (clobber_reg_mode): New function.
18210 * expr.h (clobber_reg): New function.
18211
18212 2014-04-25 Tom de Vries <tom@codesourcery.com>
18213
18214 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18215 clobbers.
18216
18217 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18218 Tom de Vries <tom@codesourcery.com>
18219
18220 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18221 handle.
18222 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18223 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18224 new argument to find_all_hard_reg_sets call.
18225
18226 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18227
18228 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18229 Use HOST_WIDE_INT_C for mask literal.
18230 (aarch_rev16_shleft_mask_imm_p): Likewise.
18231
18232 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18233
18234 PR target/60941
18235 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18236
18237 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18238
18239 PR preprocessor/56540
18240 * config/i386/i386-c.c (ix86_target_macros): Define
18241 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18242
18243 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18244
18245 * configure.ac (tga_func): Remove.
18246 (LIB_TLS_SPEC): Remove.
18247 * configure: Regenerate.
18248 * config.in: Regenerate.
18249 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18250
18251 2014-04-25 Richard Biener <rguenther@suse.de>
18252
18253 PR ipa/60912
18254 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18255 call stmt use/clobber sets during stmt walk instead of
18256 walking the possibly incomplete set of caller edges.
18257
18258 2014-04-25 Richard Biener <rguenther@suse.de>
18259
18260 PR ipa/60911
18261 * passes.c (apply_ipa_transforms): Inline into only caller ...
18262 (execute_one_pass): ... here. Properly bring in function
18263 bodies for nodes we want to apply IPA transforms to.
18264
18265 2014-04-24 Cong Hou <congh@google.com>
18266
18267 PR tree-optimization/60896
18268 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18269 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18270 (vect_mark_pattern_stmts): Set the def type of all statements in
18271 PATTERN_DEF_SEQ as vect_internal_def.
18272
18273 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18274
18275 * doc/extend.texi (PowerPC Built-in Functions): Document new
18276 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18277 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18278
18279 * config/rs6000/predicates.md (const_0_to_3_operand): New
18280 predicate to match 0..3 integer constants.
18281
18282 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18283 to support adding miscellaneous builtin functions.
18284 (BU_DFP_MISC_2): Likewise.
18285 (BU_P7_MISC_1): Likewise.
18286 (BU_P7_MISC_2): Likewise.
18287 (BU_P8V_MISC_3): Likewise.
18288 (BU_MISC_1): Likewise.
18289 (BU_MISC_2): Likewise.
18290 (DIVWE): Add extended divide builtin functions.
18291 (DIVWEO): Likewise.
18292 (DIVWEU): Likewise.
18293 (DIVWEUO): Likewise.
18294 (DIVDE): Likewise.
18295 (DIVDEO): Likewise.
18296 (DIVDEU): Likewise.
18297 (DIVDEUO): Likewise.
18298 (DXEX): Add decimal floating-point builtin functions.
18299 (DXEXQ): Likewise.
18300 (DDEDPD): Likewise.
18301 (DDEDPDQ): Likewise.
18302 (DENBCD): Likewise.
18303 (DENBCDQ): Likewise.
18304 (DIEX): Likewise.
18305 (DIEXQ): Likewise.
18306 (DSCLI): Likewise.
18307 (DSCLIQ): Likewise.
18308 (DSCRI): Likewise.
18309 (DSCRIQ): Likewise.
18310 (CDTBCD): Add new BCD builtin functions.
18311 (CBCDTD): Likewise.
18312 (ADDG6S): Likewise.
18313 (BCDADD): Likewise.
18314 (BCDADD_LT): Likewise.
18315 (BCDADD_EQ): Likewise.
18316 (BCDADD_GT): Likewise.
18317 (BCDADD_OV): Likewise.
18318 (BCDSUB): Likewise.
18319 (BCDSUB_LT): Likewise.
18320 (BCDSUB_EQ): Likewise.
18321 (BCDSUB_GT): Likewise.
18322 (BCDSUB_OV): Likewise.
18323 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18324 (UNPACK_TD): Likewise.
18325 (PACK_TF): Likewise.
18326 (UNPACK_TF): Likewise.
18327 (UNPACK_TF_0): Likewise.
18328 (UNPACK_TF_1): Likewise.
18329 (PACK_V1TI): Likewise.
18330 (UNPACK_V1TI): Likewise.
18331
18332 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18333 support for decimal floating point builtin functions.
18334 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18335 functions that take constant arguments.
18336 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18337 (rs6000_init_builtins): Setup long double, _Decimal64, and
18338 _Decimal128 types for new builtin functions.
18339 (builtin_function_type): Set the unsigned flags appropriately for
18340 the new builtin functions.
18341 (rs6000_opt_masks): Add support for decimal floating point builtin
18342 functions.
18343
18344 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18345 floating point builtin functions.
18346 (RS6000_BTM_COMMON): Likewise.
18347 (RS6000_BTI_long_double): Likewise.
18348 (RS6000_BTI_dfloat64): Likewise.
18349 (RS6000_BTI_dfloat128): Likewise.
18350 (long_double_type_internal_node): Likewise.
18351 (dfloat64_type_internal_node): Likewise.
18352 (dfloat128_type_internal_node): Likewise.
18353
18354 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18355 2.07 bcd arithmetic instructions.
18356 (UNSPEC_BCDSUB): Likewise.
18357 (UNSPEC_BCD_OVERFLOW): Likewise.
18358 (UNSPEC_BCD_ADD_SUB): Likewise.
18359 (bcd_add_sub): Likewise.
18360 (BCD_TEST): Likewise.
18361 (bcd<bcd_add_sub>): Likewise.
18362 (bcd<bcd_add_sub>_test): Likewise.
18363 (bcd<bcd_add_sub>_test2): Likewise.
18364 (bcd<bcd_add_sub>_<code>): Likewise.
18365 (peephole2 for combined bcd ops): Likewise.
18366
18367 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18368 decimal floating point builtin functions.
18369 (UNSPEC_DENBCD): Likewise.
18370 (UNSPEC_DXEX): Likewise.
18371 (UNSPEC_DIEX): Likewise.
18372 (UNSPEC_DSCLI): Likewise.
18373 (UNSPEC_DSCRI): Likewise.
18374 (D64_D128): Likewise.
18375 (dfp_suffix): Likewise.
18376 (dfp_ddedpd_<mode>): Likewise.
18377 (dfp_denbcd_<mode>): Likewise.
18378 (dfp_dxex_<mode>): Likewise.
18379 (dfp_diex_<mode>): Likewise.
18380 (dfp_dscli_<mode>): Likewise.
18381 (dfp_dscri_<mode>): Likewise.
18382
18383 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18384 builtin functions.
18385 (UNSPEC_CDTBCD): Likewise.
18386 (UNSPEC_CBCDTD): Likewise.
18387 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18388 (UNSPEC_DIVEO): Likewise.
18389 (UNSPEC_DIVEU): Likewise.
18390 (UNSPEC_DIVEUO): Likewise.
18391 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18392 pack/unpack 128-bit types.
18393 (UNSPEC_PACK_128BIT): Likewise.
18394 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18395 (udiv<mode>3): Use idiv_ldiv mode attribute.
18396 (div<mode>3): Likewise.
18397 (addg6s): Add new BCD builtin functions.
18398 (cdtbcd): Likewise.
18399 (cbcdtd): Likewise.
18400 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18401 (div_extend): Likewise.
18402 (div<div_extend>_<mode>"): Likewise.
18403 (FP128_64): Add support for new builtin functions to pack/unpack
18404 128-bit types.
18405 (unpack<mode>): Likewise.
18406 (unpacktf_0): Likewise.
18407 (unpacktf_1): Likewise.
18408 (unpack<mode>_dm): Likewise.
18409 (unpack<mode>_nodm): Likewise.
18410 (pack<mode>): Likewise.
18411 (unpackv1ti): Likewise.
18412 (packv1ti): Likewise.
18413
18414 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18415
18416 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18417 is disabled.
18418
18419 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18420
18421 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18422 * gimplify.c (omp_is_private): Change last argument's type to int.
18423 Only diagnose lastprivate if the simd argument is 1, only diagnose
18424 linear if the simd argument is 2.
18425 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18426 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18427 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18428 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18429 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18430 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18431 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18432 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18433 * tree-nested.c (convert_nonlocal_omp_clauses,
18434 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18435
18436 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18437
18438 PR target/60822
18439 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18440 operand 1.
18441
18442 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18443
18444 * flag-types.h (enum ivar_visibility): Add.
18445
18446 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18447
18448 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18449 function * argument.
18450
18451 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18452
18453 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18454
18455 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18456 Tom de Vries <tom@codesourcery.com>
18457
18458 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18459 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18460 reg-note.
18461 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18462 * emit-rtl.c (try_split): Same.
18463
18464 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18465 Tom de Vries <tom@codesourcery.com>
18466
18467 * common.opt (fuse-caller-save): New option.
18468
18469 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18470
18471 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18472 elements for big-endian.
18473
18474 2014-04-24 Richard Biener <rguenther@suse.de>
18475
18476 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18477 during TER and instead use the sepops interface for expanding
18478 non-GIMPLE_SINGLE_RHS.
18479
18480 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18481
18482 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18483 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18484
18485 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18486
18487 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18488 assembler 64-bit option.
18489 * configure: Regenerate.
18490
18491 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18492
18493 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18494 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18495 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18496 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18497 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18498
18499 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18500
18501 * config/aarch64/aarch64-builtins.c
18502 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18503 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18504 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18505 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18506 builtins.
18507 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18508 (Vrevsuff): New mode attribute.
18509
18510 2014-04-24 Terry Guo <terry.guo@arm.com>
18511
18512 * config/arm/arm.h (machine_function): Define variable
18513 after_arm_reorg here.
18514 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18515 (arm_split_constant): Update the way to access variable
18516 after_arm_reorg.
18517 (arm_reorg): Ditto.
18518 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18519
18520 2014-04-23 Tom de Vries <tom@codesourcery.com>
18521
18522 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18523
18524 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18525
18526 * is-a.h: Update comments to reflect the following changes to the
18527 "pointerness" of the API, making the template parameter match the
18528 return type, allowing use of is-a.h with typedefs of pointers.
18529 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18530 that the return type matches the parameter to the is_a_helper.
18531 (as_a): Likewise.
18532 (dyn_cast): Likewise.
18533
18534 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18535 pointer from the is-a.h API.
18536
18537 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18538 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18539 is-a.h API.
18540 (is_a_helper <varpool_node>::test): Likewise, convert to...
18541 (is_a_helper <varpool_node *>::test): ...this.
18542
18543 (varpool_first_variable): Update for removal of implicit pointer
18544 from the is-a.h API.
18545 (varpool_next_variable): Likewise.
18546 (varpool_first_static_initializer): Likewise.
18547 (varpool_next_static_initializer): Likewise.
18548 (varpool_first_defined_variable): Likewise.
18549 (varpool_next_defined_variable): Likewise.
18550 (cgraph_first_defined_function): Likewise.
18551 (cgraph_next_defined_function): Likewise.
18552 (cgraph_first_function): Likewise.
18553 (cgraph_next_function): Likewise.
18554 (cgraph_first_function_with_gimple_body): Likewise.
18555 (cgraph_next_function_with_gimple_body): Likewise.
18556 (cgraph_alias_target): Likewise.
18557 (varpool_alias_target): Likewise.
18558 (cgraph_function_or_thunk_node): Likewise.
18559 (varpool_variable_node): Likewise.
18560 (symtab_real_symbol_p): Likewise.
18561 * cgraphunit.c (referred_to_p): Likewise.
18562 (analyze_functions): Likewise.
18563 (handle_alias_pairs): Likewise.
18564 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18565 * gimple-ssa.h (gimple_vuse_op): Likewise.
18566 (gimple_vdef_op): Likewise.
18567 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18568 * gimple.c (gimple_build_asm_1): Likewise.
18569 (gimple_build_try): Likewise.
18570 (gimple_build_resx): Likewise.
18571 (gimple_build_eh_dispatch): Likewise.
18572 (gimple_build_omp_for): Likewise.
18573 (gimple_omp_for_set_clauses): Likewise.
18574
18575 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18576 (is_a_helper <gimple_statement_asm *>::test): ...this.
18577 (is_a_helper <gimple_statement_bind>::test): Convert to...
18578 (is_a_helper <gimple_statement_bind *>::test): ...this.
18579 (is_a_helper <gimple_statement_call>::test): Convert to...
18580 (is_a_helper <gimple_statement_call *>::test): ...this.
18581 (is_a_helper <gimple_statement_catch>::test): Convert to...
18582 (is_a_helper <gimple_statement_catch *>::test): ...this.
18583 (is_a_helper <gimple_statement_resx>::test): Convert to...
18584 (is_a_helper <gimple_statement_resx *>::test): ...this.
18585 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18586 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18587 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18588 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18589 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18590 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18591 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18592 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18593 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18594 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18595 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18596 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18597 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18598 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18599 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18600 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18601 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18602 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18603 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18604 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18605 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18606 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18607 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18608 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18609 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18610 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18611 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18612 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18613 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18614 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18615 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18616 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18617 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18618 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18619 (is_a_helper <gimple_statement_phi>::test): Convert to...
18620 (is_a_helper <gimple_statement_phi *>::test): ...this.
18621 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18622 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18623 (is_a_helper <gimple_statement_try>::test): Convert to...
18624 (is_a_helper <gimple_statement_try *>::test): ...this.
18625 (is_a_helper <gimple_statement_wce>::test): Convert to...
18626 (is_a_helper <gimple_statement_wce *>::test): ...this.
18627 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18628 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18629 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18630 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18631 (is_a_helper <const gimple_statement_call>::test): Convert to...
18632 (is_a_helper <const gimple_statement_call *>::test): ...this.
18633 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18634 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18635 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18636 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18637 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18638 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18639 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18640 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18641 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18642 Convert to...
18643 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18644 ...this.
18645 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18646 Convert to...
18647 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18648 ...this.
18649 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18650 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18651 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18652 to...
18653 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18654 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18655 to...
18656 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18657 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18658 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18659 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18660 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18661 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18662 to...
18663 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18664 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18665 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18666 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18667 to...
18668 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18669 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18670 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18671 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18672 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18673 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18674 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18675 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18676 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18677 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18678 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18679 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18680 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18681 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18682 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18683 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18684 to...
18685 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18686 ...this.
18687 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18688 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18689
18690 (gimple_use_ops): Update for removal of implicit pointer from the
18691 is-a.h API.
18692 (gimple_set_use_ops): Likewise.
18693 (gimple_vuse): Likewise.
18694 (gimple_vdef): Likewise.
18695 (gimple_vuse_ptr): Likewise.
18696 (gimple_vdef_ptr): Likewise.
18697 (gimple_set_vuse): Likewise.
18698 (gimple_set_vdef): Likewise.
18699 (gimple_omp_return_set_lhs): Likewise.
18700 (gimple_omp_return_lhs): Likewise.
18701 (gimple_omp_return_lhs_ptr): Likewise.
18702 (gimple_call_fntype): Likewise.
18703 (gimple_call_set_fntype): Likewise.
18704 (gimple_call_set_internal_fn): Likewise.
18705 (gimple_call_use_set): Likewise.
18706 (gimple_call_clobber_set): Likewise.
18707 (gimple_bind_vars): Likewise.
18708 (gimple_bind_set_vars): Likewise.
18709 (gimple_bind_body_ptr): Likewise.
18710 (gimple_bind_set_body): Likewise.
18711 (gimple_bind_add_stmt): Likewise.
18712 (gimple_bind_block): Likewise.
18713 (gimple_bind_set_block): Likewise.
18714 (gimple_asm_ninputs): Likewise.
18715 (gimple_asm_noutputs): Likewise.
18716 (gimple_asm_nclobbers): Likewise.
18717 (gimple_asm_nlabels): Likewise.
18718 (gimple_asm_input_op): Likewise.
18719 (gimple_asm_input_op_ptr): Likewise.
18720 (gimple_asm_output_op): Likewise.
18721 (gimple_asm_output_op_ptr): Likewise.
18722 (gimple_asm_set_output_op): Likewise.
18723 (gimple_asm_clobber_op): Likewise.
18724 (gimple_asm_set_clobber_op): Likewise.
18725 (gimple_asm_label_op): Likewise.
18726 (gimple_asm_set_label_op): Likewise.
18727 (gimple_asm_string): Likewise.
18728 (gimple_catch_types): Likewise.
18729 (gimple_catch_types_ptr): Likewise.
18730 (gimple_catch_handler_ptr): Likewise.
18731 (gimple_catch_set_types): Likewise.
18732 (gimple_catch_set_handler): Likewise.
18733 (gimple_eh_filter_types): Likewise.
18734 (gimple_eh_filter_types_ptr): Likewise.
18735 (gimple_eh_filter_failure_ptr): Likewise.
18736 (gimple_eh_filter_set_types): Likewise.
18737 (gimple_eh_filter_set_failure): Likewise.
18738 (gimple_eh_must_not_throw_fndecl): Likewise.
18739 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18740 (gimple_eh_else_n_body_ptr): Likewise.
18741 (gimple_eh_else_e_body_ptr): Likewise.
18742 (gimple_eh_else_set_n_body): Likewise.
18743 (gimple_eh_else_set_e_body): Likewise.
18744 (gimple_try_eval_ptr): Likewise.
18745 (gimple_try_cleanup_ptr): Likewise.
18746 (gimple_try_set_eval): Likewise.
18747 (gimple_try_set_cleanup): Likewise.
18748 (gimple_wce_cleanup_ptr): Likewise.
18749 (gimple_wce_set_cleanup): Likewise.
18750 (gimple_phi_capacity): Likewise.
18751 (gimple_phi_num_args): Likewise.
18752 (gimple_phi_result): Likewise.
18753 (gimple_phi_result_ptr): Likewise.
18754 (gimple_phi_set_result): Likewise.
18755 (gimple_phi_arg): Likewise.
18756 (gimple_phi_set_arg): Likewise.
18757 (gimple_resx_region): Likewise.
18758 (gimple_resx_set_region): Likewise.
18759 (gimple_eh_dispatch_region): Likewise.
18760 (gimple_eh_dispatch_set_region): Likewise.
18761 (gimple_omp_critical_name): Likewise.
18762 (gimple_omp_critical_name_ptr): Likewise.
18763 (gimple_omp_critical_set_name): Likewise.
18764 (gimple_omp_for_clauses): Likewise.
18765 (gimple_omp_for_clauses_ptr): Likewise.
18766 (gimple_omp_for_set_clauses): Likewise.
18767 (gimple_omp_for_collapse): Likewise.
18768 (gimple_omp_for_index): Likewise.
18769 (gimple_omp_for_index_ptr): Likewise.
18770 (gimple_omp_for_set_index): Likewise.
18771 (gimple_omp_for_initial): Likewise.
18772 (gimple_omp_for_initial_ptr): Likewise.
18773 (gimple_omp_for_set_initial): Likewise.
18774 (gimple_omp_for_final): Likewise.
18775 (gimple_omp_for_final_ptr): Likewise.
18776 (gimple_omp_for_set_final): Likewise.
18777 (gimple_omp_for_incr): Likewise.
18778 (gimple_omp_for_incr_ptr): Likewise.
18779 (gimple_omp_for_set_incr): Likewise.
18780 (gimple_omp_for_pre_body_ptr): Likewise.
18781 (gimple_omp_for_set_pre_body): Likewise.
18782 (gimple_omp_parallel_clauses): Likewise.
18783 (gimple_omp_parallel_clauses_ptr): Likewise.
18784 (gimple_omp_parallel_set_clauses): Likewise.
18785 (gimple_omp_parallel_child_fn): Likewise.
18786 (gimple_omp_parallel_child_fn_ptr): Likewise.
18787 (gimple_omp_parallel_set_child_fn): Likewise.
18788 (gimple_omp_parallel_data_arg): Likewise.
18789 (gimple_omp_parallel_data_arg_ptr): Likewise.
18790 (gimple_omp_parallel_set_data_arg): Likewise.
18791 (gimple_omp_task_clauses): Likewise.
18792 (gimple_omp_task_clauses_ptr): Likewise.
18793 (gimple_omp_task_set_clauses): Likewise.
18794 (gimple_omp_task_child_fn): Likewise.
18795 (gimple_omp_task_child_fn_ptr): Likewise.
18796 (gimple_omp_task_set_child_fn): Likewise.
18797 (gimple_omp_task_data_arg): Likewise.
18798 (gimple_omp_task_data_arg_ptr): Likewise.
18799 (gimple_omp_task_set_data_arg): Likewise.
18800 (gimple_omp_taskreg_clauses): Likewise.
18801 (gimple_omp_taskreg_clauses_ptr): Likewise.
18802 (gimple_omp_taskreg_set_clauses): Likewise.
18803 (gimple_omp_taskreg_child_fn): Likewise.
18804 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18805 (gimple_omp_taskreg_set_child_fn): Likewise.
18806 (gimple_omp_taskreg_data_arg): Likewise.
18807 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18808 (gimple_omp_taskreg_set_data_arg): Likewise.
18809 (gimple_omp_task_copy_fn): Likewise.
18810 (gimple_omp_task_copy_fn_ptr): Likewise.
18811 (gimple_omp_task_set_copy_fn): Likewise.
18812 (gimple_omp_task_arg_size): Likewise.
18813 (gimple_omp_task_arg_size_ptr): Likewise.
18814 (gimple_omp_task_set_arg_size): Likewise.
18815 (gimple_omp_task_arg_align): Likewise.
18816 (gimple_omp_task_arg_align_ptr): Likewise.
18817 (gimple_omp_task_set_arg_align): Likewise.
18818 (gimple_omp_single_clauses): Likewise.
18819 (gimple_omp_single_clauses_ptr): Likewise.
18820 (gimple_omp_single_set_clauses): Likewise.
18821 (gimple_omp_target_clauses): Likewise.
18822 (gimple_omp_target_clauses_ptr): Likewise.
18823 (gimple_omp_target_set_clauses): Likewise.
18824 (gimple_omp_target_child_fn): Likewise.
18825 (gimple_omp_target_child_fn_ptr): Likewise.
18826 (gimple_omp_target_set_child_fn): Likewise.
18827 (gimple_omp_target_data_arg): Likewise.
18828 (gimple_omp_target_data_arg_ptr): Likewise.
18829 (gimple_omp_target_set_data_arg): Likewise.
18830 (gimple_omp_teams_clauses): Likewise.
18831 (gimple_omp_teams_clauses_ptr): Likewise.
18832 (gimple_omp_teams_set_clauses): Likewise.
18833 (gimple_omp_sections_clauses): Likewise.
18834 (gimple_omp_sections_clauses_ptr): Likewise.
18835 (gimple_omp_sections_set_clauses): Likewise.
18836 (gimple_omp_sections_control): Likewise.
18837 (gimple_omp_sections_control_ptr): Likewise.
18838 (gimple_omp_sections_set_control): Likewise.
18839 (gimple_omp_for_set_cond): Likewise.
18840 (gimple_omp_for_cond): Likewise.
18841 (gimple_omp_atomic_store_set_val): Likewise.
18842 (gimple_omp_atomic_store_val): Likewise.
18843 (gimple_omp_atomic_store_val_ptr): Likewise.
18844 (gimple_omp_atomic_load_set_lhs): Likewise.
18845 (gimple_omp_atomic_load_lhs): Likewise.
18846 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18847 (gimple_omp_atomic_load_set_rhs): Likewise.
18848 (gimple_omp_atomic_load_rhs): Likewise.
18849 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18850 (gimple_omp_continue_control_def): Likewise.
18851 (gimple_omp_continue_control_def_ptr): Likewise.
18852 (gimple_omp_continue_set_control_def): Likewise.
18853 (gimple_omp_continue_control_use): Likewise.
18854 (gimple_omp_continue_control_use_ptr): Likewise.
18855 (gimple_omp_continue_set_control_use): Likewise.
18856 (gimple_transaction_body_ptr): Likewise.
18857 (gimple_transaction_label): Likewise.
18858 (gimple_transaction_label_ptr): Likewise.
18859 (gimple_transaction_set_body): Likewise.
18860 (gimple_transaction_set_label): Likewise.
18861
18862 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18863 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18864 * ipa-ref.c (ipa_record_reference): Likewise.
18865 * ipa-reference.c (analyze_function): Likewise.
18866 (ipa_reference_write_optimization_summary): Likewise.
18867 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18868 (address_taken_from_non_vtable_p): Likewise.
18869 (comdat_can_be_unshared_p_1): Likewise.
18870 * lto-cgraph.c (lto_output_ref): Likewise.
18871 (add_references): Likewise.
18872 (compute_ltrans_boundary): Likewise.
18873 (output_symtab): Likewise.
18874 (input_ref): Likewise.
18875 (input_cgraph_1): Likewise.
18876 (output_cgraph_opt_summary): Likewise.
18877 * lto-streamer-out.c (lto_output): Likewise.
18878 (output_symbol_p): Likewise.
18879 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18880 (lsei_start_function_in_partition): Likewise.
18881 (lsei_next_variable_in_partition): Likewise.
18882 (lsei_start_variable_in_partition): Likewise.
18883 * symtab.c (insert_to_assembler_name_hash): Likewise.
18884 (unlink_from_assembler_name_hash): Likewise.
18885 (symtab_unregister_node): Likewise.
18886 (symtab_remove_node): Likewise.
18887 (dump_symtab_node): Likewise.
18888 (verify_symtab_base): Likewise.
18889 (verify_symtab_node): Likewise.
18890 (symtab_make_decl_local): Likewise.
18891 (symtab_alias_ultimate_target): Likewise.
18892 (symtab_resolve_alias): Likewise.
18893 (symtab_get_symbol_partitioning_class): Likewise.
18894 * tree-phinodes.c (allocate_phi_node): Likewise.
18895 (reserve_phi_args_for_new_edge): Likewise.
18896 (remove_phi_args): Likewise.
18897 * varpool.c (varpool_node_for_asm): Likewise.
18898 (varpool_remove_unreferenced_decls): Likewise.
18899
18900 2014-04-23 Jeff Law <law@redhat.com>
18901
18902 PR tree-optimization/60902
18903 * tree-ssa-threadedge.c
18904 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18905 invalidate outputs from statements that do not produce useful
18906 outputs for threading.
18907
18908 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18909
18910 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18911 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18912 machine descriptions for Stack Smashing Protector.
18913
18914 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
18915
18916 * aarch64.md (<optab>_rol<mode>3): New pattern.
18917 (<optab>_rolsi3_uxtw): Likewise.
18918 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18919
18920 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
18921
18922 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18923 (arm_cortex_a12_tune): Likewise.
18924
18925 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18926
18927 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18928
18929 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18930
18931 * config/arm/arm.md (arm_rev16si2): New pattern.
18932 (arm_rev16si2_alt): Likewise.
18933 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18934
18935 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18936
18937 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18938 (rev16<mode>2_alt): Likewise.
18939 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18940 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18941 (aarch_rev16_shleft_mask_imm_p): Likewise.
18942 (aarch_rev16_p_1): Likewise.
18943 (aarch_rev16_p): Likewise.
18944 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18945 (aarch_rev16_shright_mask_imm_p): Likewise.
18946 (aarch_rev16_shleft_mask_imm_p): Likewise.
18947
18948 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18949
18950 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18951 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18952 rev cost.
18953 (cortex_a53_extra_costs): Likewise.
18954 (cortex_a57_extra_costs): Likewise.
18955 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18956 (cortexa7_extra_costs): Likewise.
18957 (cortexa8_extra_costs): Likewise.
18958 (cortexa12_extra_costs): Likewise.
18959 (cortexa15_extra_costs): Likewise.
18960 (v7m_extra_costs): Likewise.
18961 (arm_new_rtx_costs): Handle BSWAP.
18962
18963 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18964
18965 * config/arm/arm.c (cortexa8_extra_costs): New table.
18966 (arm_cortex_a8_tune): New tuning struct.
18967 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18968
18969 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18970
18971 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18972
18973 2014-04-23 Richard Biener <rguenther@suse.de>
18974
18975 * Makefile.in (OBJS): Remove loop-unswitch.o.
18976 * tree-pass.h (make_pass_rtl_unswitch): Remove.
18977 * passes.def (pass_rtl_unswitch): Likewise.
18978 * loop-init.c (gate_rtl_unswitch): Likewise.
18979 (rtl_unswitch): Likewise.
18980 (pass_data_rtl_unswitch): Likewise.
18981 (pass_rtl_unswitch): Likewise.
18982 (make_pass_rtl_unswitch): Likewise.
18983 * rtl.h (reversed_condition): Likewise.
18984 (compare_and_jump_seq): Likewise.
18985 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
18986 and make static.
18987 * loop-unroll.c (compare_and_jump_seq): Likewise.
18988
18989 2014-04-23 Richard Biener <rguenther@suse.de>
18990
18991 PR tree-optimization/60903
18992 * tree-ssa-loop-im.c (analyze_memory_references): Remove
18993 commented code block.
18994 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
18995 loop flags to newly created BBs and edges.
18996
18997 2014-04-23 Nick Clifton <nickc@redhat.com>
18998
18999 * config/msp430/msp430.c (msp430_handle_option): Move function
19000 to msp430-common.c
19001 (msp430_option_override): Simplify mcu and mcpu option handling.
19002 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19003 support for -mhwmult command line option.
19004 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19005 -mhwmult command line option.
19006 (msp430_hwmult_enabled): Delete.
19007 (msp43o_output_labelref): Add support for -mhwmult command line option.
19008 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19009 (umulsidi3): Likewise.
19010 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19011 (mcpu, mlarge, msmall): Likewise.
19012 (mhwmult): New option.
19013 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19014 prototype.
19015 (msp430_is_f5_mcu): Remove prototype.
19016 (msp430_use_f5_series_hwmult): Add prototype.
19017 * config/msp430/msp430-opts.h: New file.
19018 * common/config/msp430: New directory.
19019 * common/config/msp430/msp430-common.c: New file.
19020 * config.gcc (msp430): Remove target_has_targetm_common.
19021 * doc/invoke.texi: Document -mhwmult command line option.
19022
19023 2014-04-23 Nick Clifton <nickc@redhat.com>
19024
19025 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19026 default-manifest.o if it can be found in the search path.
19027 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19028
19029 2014-04-23 Terry Guo <terry.guo@arm.com>
19030
19031 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19032
19033 2014-04-23 Richard Biener <rguenther@suse.de>
19034
19035 PR middle-end/60895
19036 * tree-inline.c (declare_return_variable): Use mark_addressable.
19037
19038 2014-04-23 Richard Biener <rguenther@suse.de>
19039
19040 PR middle-end/60891
19041 * loop-init.c (loop_optimizer_init): Make sure to apply
19042 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19043
19044 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19045
19046 PR sanitizer/60275
19047 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19048 New options.
19049 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19050 if flag_sanitize_undefined_trap_on_error.
19051 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19052 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19053 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19054 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19055 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19056 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19057 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19058 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19059 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19060 * ubsan.c (ubsan_instrument_unreachable): Return
19061 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19062 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19063 if flag_sanitize_undefined_trap_on_error and
19064 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19065 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19066 instrument_bool_enum_load): Emit __builtin_trap () if
19067 flag_sanitize_undefined_trap_on_error and
19068 __builtin_handle_*_abort () if !flag_sanitize_recover.
19069 * doc/invoke.texi (-fsanitize-recover,
19070 -fsanitize-undefined-trap-on-error): Document.
19071
19072 2014-04-22 Christian Bruel <christian.bruel@st.com>
19073
19074 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19075 Force immediates to SImode.
19076
19077 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19078
19079 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19080 (lroundsfsi2): New.
19081 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19082 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19083 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19084 (nios2_fpu_insn): Add entry for round.
19085 (N2FPU_NO_ERRNO_P): Define.
19086 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19087 flag_errno_math.
19088 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19089
19090 2014-04-22 Richard Henderson <rth@redhat.com>
19091
19092 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19093 (add<GPI>3_compare0): Remove leading * from name.
19094 (add<GPI>3_carryin): Likewise.
19095 (sub<GPI>3_compare0): Likewise.
19096 (sub<GPI>3_carryin): Likewise.
19097 (<su_optab>mulditi3): New expander.
19098 (multi3): New expander.
19099 (madd<GPI>): Remove leading * from name.
19100
19101 2014-04-22 Martin Jambor <mjambor@suse.cz>
19102
19103 * cgraphclones.c (cgraph_function_versioning): Copy
19104 ipa_transforms_to_apply instead of asserting it is empty.
19105
19106 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19107
19108 PR target/60868
19109 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19110 on count_exp to get mode.
19111
19112 2014-04-22 Andrew Pinski <apinski@cavium.com>
19113
19114 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19115 Handle TLS for ILP32.
19116 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19117 (tlsie_small_<mode>): this and handle PTR.
19118 (tlsie_small_sidi): New pattern.
19119 (tlsle_small): Change to an expand to handle ILP32.
19120 (tlsle_small_<mode>): New pattern.
19121 (tlsdesc_small): Rename to ...
19122 (tlsdesc_small_<mode>): this and handle PTR.
19123
19124 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19125
19126 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19127
19128 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19129
19130 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19131 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19132 (aarch64_types_signed_poly_qualifiers): Likewise.
19133 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19134 (aarch64_types_poly_signed_qualifiers): Likewise.
19135 (TYPES_REINTERP_SS): Type macro added.
19136 (TYPES_REINTERP_SU): Likewise.
19137 (TYPES_REINTERP_SP): Likewise.
19138 (TYPES_REINTERP_US): Likewise.
19139 (TYPES_REINTERP_PS): Likewise.
19140 (aarch64_fold_builtin): New expression folding added.
19141 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19142 Declarations removed.
19143 (REINTERP_SS): Declarations added.
19144 (REINTERP_US): Likewise.
19145 (REINTERP_PS): Likewise.
19146 (REINTERP_SU): Likewise.
19147 (REINTERP_SP): Likewise.
19148 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19149 (vreinterpretq_p8_f64): Likewise.
19150 (vreinterpret_p16_f64): Likewise.
19151 (vreinterpretq_p16_f64): Likewise.
19152 (vreinterpret_f32_f64): Likewise.
19153 (vreinterpretq_f32_f64): Likewise.
19154 (vreinterpret_f64_f32): Likewise.
19155 (vreinterpret_f64_p8): Likewise.
19156 (vreinterpret_f64_p16): Likewise.
19157 (vreinterpret_f64_s8): Likewise.
19158 (vreinterpret_f64_s16): Likewise.
19159 (vreinterpret_f64_s32): Likewise.
19160 (vreinterpret_f64_s64): Likewise.
19161 (vreinterpret_f64_u8): Likewise.
19162 (vreinterpret_f64_u16): Likewise.
19163 (vreinterpret_f64_u32): Likewise.
19164 (vreinterpret_f64_u64): Likewise.
19165 (vreinterpretq_f64_f32): Likewise.
19166 (vreinterpretq_f64_p8): Likewise.
19167 (vreinterpretq_f64_p16): Likewise.
19168 (vreinterpretq_f64_s8): Likewise.
19169 (vreinterpretq_f64_s16): Likewise.
19170 (vreinterpretq_f64_s32): Likewise.
19171 (vreinterpretq_f64_s64): Likewise.
19172 (vreinterpretq_f64_u8): Likewise.
19173 (vreinterpretq_f64_u16): Likewise.
19174 (vreinterpretq_f64_u32): Likewise.
19175 (vreinterpretq_f64_u64): Likewise.
19176 (vreinterpret_s64_f64): Likewise.
19177 (vreinterpretq_s64_f64): Likewise.
19178 (vreinterpret_u64_f64): Likewise.
19179 (vreinterpretq_u64_f64): Likewise.
19180 (vreinterpret_s8_f64): Likewise.
19181 (vreinterpretq_s8_f64): Likewise.
19182 (vreinterpret_s16_f64): Likewise.
19183 (vreinterpretq_s16_f64): Likewise.
19184 (vreinterpret_s32_f64): Likewise.
19185 (vreinterpretq_s32_f64): Likewise.
19186 (vreinterpret_u8_f64): Likewise.
19187 (vreinterpretq_u8_f64): Likewise.
19188 (vreinterpret_u16_f64): Likewise.
19189 (vreinterpretq_u16_f64): Likewise.
19190 (vreinterpret_u32_f64): Likewise.
19191 (vreinterpretq_u32_f64): Likewise.
19192
19193 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19194
19195 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19196 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19197 (vreinterpret_p8_s8): Likewise.
19198 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19199 (vreinterpret_p8_s16): Likewise.
19200 (vreinterpret_p8_s32): Likewise.
19201 (vreinterpret_p8_s64): Likewise.
19202 (vreinterpret_p8_f32): Likewise.
19203 (vreinterpret_p8_u8): Likewise.
19204 (vreinterpret_p8_u16): Likewise.
19205 (vreinterpret_p8_u32): Likewise.
19206 (vreinterpret_p8_u64): Likewise.
19207 (vreinterpret_p8_p16): Likewise.
19208 (vreinterpretq_p8_s8): Likewise.
19209 (vreinterpretq_p8_s16): Likewise.
19210 (vreinterpretq_p8_s32): Likewise.
19211 (vreinterpretq_p8_s64): Likewise.
19212 (vreinterpretq_p8_f32): Likewise.
19213 (vreinterpretq_p8_u8): Likewise.
19214 (vreinterpretq_p8_u16): Likewise.
19215 (vreinterpretq_p8_u32): Likewise.
19216 (vreinterpretq_p8_u64): Likewise.
19217 (vreinterpretq_p8_p16): Likewise.
19218 (vreinterpret_p16_s8): Likewise.
19219 (vreinterpret_p16_s16): Likewise.
19220 (vreinterpret_p16_s32): Likewise.
19221 (vreinterpret_p16_s64): Likewise.
19222 (vreinterpret_p16_f32): Likewise.
19223 (vreinterpret_p16_u8): Likewise.
19224 (vreinterpret_p16_u16): Likewise.
19225 (vreinterpret_p16_u32): Likewise.
19226 (vreinterpret_p16_u64): Likewise.
19227 (vreinterpret_p16_p8): Likewise.
19228 (vreinterpretq_p16_s8): Likewise.
19229 (vreinterpretq_p16_s16): Likewise.
19230 (vreinterpretq_p16_s32): Likewise.
19231 (vreinterpretq_p16_s64): Likewise.
19232 (vreinterpretq_p16_f32): Likewise.
19233 (vreinterpretq_p16_u8): Likewise.
19234 (vreinterpretq_p16_u16): Likewise.
19235 (vreinterpretq_p16_u32): Likewise.
19236 (vreinterpretq_p16_u64): Likewise.
19237 (vreinterpretq_p16_p8): Likewise.
19238 (vreinterpret_f32_s8): Likewise.
19239 (vreinterpret_f32_s16): Likewise.
19240 (vreinterpret_f32_s32): Likewise.
19241 (vreinterpret_f32_s64): Likewise.
19242 (vreinterpret_f32_u8): Likewise.
19243 (vreinterpret_f32_u16): Likewise.
19244 (vreinterpret_f32_u32): Likewise.
19245 (vreinterpret_f32_u64): Likewise.
19246 (vreinterpret_f32_p8): Likewise.
19247 (vreinterpret_f32_p16): Likewise.
19248 (vreinterpretq_f32_s8): Likewise.
19249 (vreinterpretq_f32_s16): Likewise.
19250 (vreinterpretq_f32_s32): Likewise.
19251 (vreinterpretq_f32_s64): Likewise.
19252 (vreinterpretq_f32_u8): Likewise.
19253 (vreinterpretq_f32_u16): Likewise.
19254 (vreinterpretq_f32_u32): Likewise.
19255 (vreinterpretq_f32_u64): Likewise.
19256 (vreinterpretq_f32_p8): Likewise.
19257 (vreinterpretq_f32_p16): Likewise.
19258 (vreinterpret_s64_s8): Likewise.
19259 (vreinterpret_s64_s16): Likewise.
19260 (vreinterpret_s64_s32): Likewise.
19261 (vreinterpret_s64_f32): Likewise.
19262 (vreinterpret_s64_u8): Likewise.
19263 (vreinterpret_s64_u16): Likewise.
19264 (vreinterpret_s64_u32): Likewise.
19265 (vreinterpret_s64_u64): Likewise.
19266 (vreinterpret_s64_p8): Likewise.
19267 (vreinterpret_s64_p16): Likewise.
19268 (vreinterpretq_s64_s8): Likewise.
19269 (vreinterpretq_s64_s16): Likewise.
19270 (vreinterpretq_s64_s32): Likewise.
19271 (vreinterpretq_s64_f32): Likewise.
19272 (vreinterpretq_s64_u8): Likewise.
19273 (vreinterpretq_s64_u16): Likewise.
19274 (vreinterpretq_s64_u32): Likewise.
19275 (vreinterpretq_s64_u64): Likewise.
19276 (vreinterpretq_s64_p8): Likewise.
19277 (vreinterpretq_s64_p16): Likewise.
19278 (vreinterpret_u64_s8): Likewise.
19279 (vreinterpret_u64_s16): Likewise.
19280 (vreinterpret_u64_s32): Likewise.
19281 (vreinterpret_u64_s64): Likewise.
19282 (vreinterpret_u64_f32): Likewise.
19283 (vreinterpret_u64_u8): Likewise.
19284 (vreinterpret_u64_u16): Likewise.
19285 (vreinterpret_u64_u32): Likewise.
19286 (vreinterpret_u64_p8): Likewise.
19287 (vreinterpret_u64_p16): Likewise.
19288 (vreinterpretq_u64_s8): Likewise.
19289 (vreinterpretq_u64_s16): Likewise.
19290 (vreinterpretq_u64_s32): Likewise.
19291 (vreinterpretq_u64_s64): Likewise.
19292 (vreinterpretq_u64_f32): Likewise.
19293 (vreinterpretq_u64_u8): Likewise.
19294 (vreinterpretq_u64_u16): Likewise.
19295 (vreinterpretq_u64_u32): Likewise.
19296 (vreinterpretq_u64_p8): Likewise.
19297 (vreinterpretq_u64_p16): Likewise.
19298 (vreinterpret_s8_s16): Likewise.
19299 (vreinterpret_s8_s32): Likewise.
19300 (vreinterpret_s8_s64): Likewise.
19301 (vreinterpret_s8_f32): Likewise.
19302 (vreinterpret_s8_u8): Likewise.
19303 (vreinterpret_s8_u16): Likewise.
19304 (vreinterpret_s8_u32): Likewise.
19305 (vreinterpret_s8_u64): Likewise.
19306 (vreinterpret_s8_p8): Likewise.
19307 (vreinterpret_s8_p16): Likewise.
19308 (vreinterpretq_s8_s16): Likewise.
19309 (vreinterpretq_s8_s32): Likewise.
19310 (vreinterpretq_s8_s64): Likewise.
19311 (vreinterpretq_s8_f32): Likewise.
19312 (vreinterpretq_s8_u8): Likewise.
19313 (vreinterpretq_s8_u16): Likewise.
19314 (vreinterpretq_s8_u32): Likewise.
19315 (vreinterpretq_s8_u64): Likewise.
19316 (vreinterpretq_s8_p8): Likewise.
19317 (vreinterpretq_s8_p16): Likewise.
19318 (vreinterpret_s16_s8): Likewise.
19319 (vreinterpret_s16_s32): Likewise.
19320 (vreinterpret_s16_s64): Likewise.
19321 (vreinterpret_s16_f32): Likewise.
19322 (vreinterpret_s16_u8): Likewise.
19323 (vreinterpret_s16_u16): Likewise.
19324 (vreinterpret_s16_u32): Likewise.
19325 (vreinterpret_s16_u64): Likewise.
19326 (vreinterpret_s16_p8): Likewise.
19327 (vreinterpret_s16_p16): Likewise.
19328 (vreinterpretq_s16_s8): Likewise.
19329 (vreinterpretq_s16_s32): Likewise.
19330 (vreinterpretq_s16_s64): Likewise.
19331 (vreinterpretq_s16_f32): Likewise.
19332 (vreinterpretq_s16_u8): Likewise.
19333 (vreinterpretq_s16_u16): Likewise.
19334 (vreinterpretq_s16_u32): Likewise.
19335 (vreinterpretq_s16_u64): Likewise.
19336 (vreinterpretq_s16_p8): Likewise.
19337 (vreinterpretq_s16_p16): Likewise.
19338 (vreinterpret_s32_s8): Likewise.
19339 (vreinterpret_s32_s16): Likewise.
19340 (vreinterpret_s32_s64): Likewise.
19341 (vreinterpret_s32_f32): Likewise.
19342 (vreinterpret_s32_u8): Likewise.
19343 (vreinterpret_s32_u16): Likewise.
19344 (vreinterpret_s32_u32): Likewise.
19345 (vreinterpret_s32_u64): Likewise.
19346 (vreinterpret_s32_p8): Likewise.
19347 (vreinterpret_s32_p16): Likewise.
19348 (vreinterpretq_s32_s8): Likewise.
19349 (vreinterpretq_s32_s16): Likewise.
19350 (vreinterpretq_s32_s64): Likewise.
19351 (vreinterpretq_s32_f32): Likewise.
19352 (vreinterpretq_s32_u8): Likewise.
19353 (vreinterpretq_s32_u16): Likewise.
19354 (vreinterpretq_s32_u32): Likewise.
19355 (vreinterpretq_s32_u64): Likewise.
19356 (vreinterpretq_s32_p8): Likewise.
19357 (vreinterpretq_s32_p16): Likewise.
19358 (vreinterpret_u8_s8): Likewise.
19359 (vreinterpret_u8_s16): Likewise.
19360 (vreinterpret_u8_s32): Likewise.
19361 (vreinterpret_u8_s64): Likewise.
19362 (vreinterpret_u8_f32): Likewise.
19363 (vreinterpret_u8_u16): Likewise.
19364 (vreinterpret_u8_u32): Likewise.
19365 (vreinterpret_u8_u64): Likewise.
19366 (vreinterpret_u8_p8): Likewise.
19367 (vreinterpret_u8_p16): Likewise.
19368 (vreinterpretq_u8_s8): Likewise.
19369 (vreinterpretq_u8_s16): Likewise.
19370 (vreinterpretq_u8_s32): Likewise.
19371 (vreinterpretq_u8_s64): Likewise.
19372 (vreinterpretq_u8_f32): Likewise.
19373 (vreinterpretq_u8_u16): Likewise.
19374 (vreinterpretq_u8_u32): Likewise.
19375 (vreinterpretq_u8_u64): Likewise.
19376 (vreinterpretq_u8_p8): Likewise.
19377 (vreinterpretq_u8_p16): Likewise.
19378 (vreinterpret_u16_s8): Likewise.
19379 (vreinterpret_u16_s16): Likewise.
19380 (vreinterpret_u16_s32): Likewise.
19381 (vreinterpret_u16_s64): Likewise.
19382 (vreinterpret_u16_f32): Likewise.
19383 (vreinterpret_u16_u8): Likewise.
19384 (vreinterpret_u16_u32): Likewise.
19385 (vreinterpret_u16_u64): Likewise.
19386 (vreinterpret_u16_p8): Likewise.
19387 (vreinterpret_u16_p16): Likewise.
19388 (vreinterpretq_u16_s8): Likewise.
19389 (vreinterpretq_u16_s16): Likewise.
19390 (vreinterpretq_u16_s32): Likewise.
19391 (vreinterpretq_u16_s64): Likewise.
19392 (vreinterpretq_u16_f32): Likewise.
19393 (vreinterpretq_u16_u8): Likewise.
19394 (vreinterpretq_u16_u32): Likewise.
19395 (vreinterpretq_u16_u64): Likewise.
19396 (vreinterpretq_u16_p8): Likewise.
19397 (vreinterpretq_u16_p16): Likewise.
19398 (vreinterpret_u32_s8): Likewise.
19399 (vreinterpret_u32_s16): Likewise.
19400 (vreinterpret_u32_s32): Likewise.
19401 (vreinterpret_u32_s64): Likewise.
19402 (vreinterpret_u32_f32): Likewise.
19403 (vreinterpret_u32_u8): Likewise.
19404 (vreinterpret_u32_u16): Likewise.
19405 (vreinterpret_u32_u64): Likewise.
19406 (vreinterpret_u32_p8): Likewise.
19407 (vreinterpret_u32_p16): Likewise.
19408 (vreinterpretq_u32_s8): Likewise.
19409 (vreinterpretq_u32_s16): Likewise.
19410 (vreinterpretq_u32_s32): Likewise.
19411 (vreinterpretq_u32_s64): Likewise.
19412 (vreinterpretq_u32_f32): Likewise.
19413 (vreinterpretq_u32_u8): Likewise.
19414 (vreinterpretq_u32_u16): Likewise.
19415 (vreinterpretq_u32_u64): Likewise.
19416 (vreinterpretq_u32_p8): Likewise.
19417 (vreinterpretq_u32_p16): Likewise.
19418
19419 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19420
19421 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19422 Pattern extended.
19423 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19424 (sqabs): Likewise.
19425 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19426 (vqnegd_s64): Likewise.
19427 (vqabs_s64): Likewise.
19428 (vqabsd_s64): Likewise.
19429
19430 2014-04-22 Richard Henderson <rth@redhat.com>
19431
19432 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19433 computation to the top of the loop.
19434
19435 2014-04-22 Renlin <renlin.li@arm.com>
19436 Jiong Wang <jiong.wang@arm.com>
19437
19438 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19439 * config/aarch64/aarch64.c (aarch64_layout_frame)
19440 (aarch64_initial_elimination_offset): Likewise.
19441
19442 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19443
19444 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19445 Fix indentation.
19446
19447 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19448
19449 * machmode.h (bitwise_mode_for_mode): Declare.
19450 * stor-layout.h (bitwise_type_for_mode): Likewise.
19451 * stor-layout.c (bitwise_mode_for_mode): New function.
19452 (bitwise_type_for_mode): Likewise.
19453 * builtins.c (fold_builtin_memory_op): Use it instead of
19454 int_mode_for_mode and build_nonstandard_integer_type.
19455
19456 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19457
19458 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19459 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19460 (*-*-solaris2*): Simplify.
19461 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19462 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19463 *-*-solaris2.9* handling.
19464
19465 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19466 as bug.
19467 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19468 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19469 handling, simplify.
19470 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19471 * configure: Regenerate.
19472
19473 * config/i386/sol2-9.h: Remove.
19474
19475 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19476 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19477 Remove Solaris 9 references.
19478
19479 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19480
19481 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19482 (floatuns<GPI:mode><GPF:mode>2): Remove.
19483 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19484 and floatuns conversions.
19485 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19486 and floatuns conversions.
19487 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19488 (w1,w2): New mode attributes for inequal width conversions.
19489
19490 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19491
19492 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19493 the output asm format.
19494
19495 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19496
19497 * config/aarch64/aarch64-simd.md
19498 (aarch64_cm<optab>di): Always split.
19499 (*aarch64_cm<optab>di): New.
19500 (aarch64_cmtstdi): Always split.
19501 (*aarch64_cmtstdi): New.
19502
19503 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19504
19505 PR tree-optimization/60823
19506 * omp-low.c (ipa_simd_modify_function_body): Go through
19507 all SSA_NAMEs and for those refering to vector arguments
19508 which are going to be replaced adjust SSA_NAME_VAR and,
19509 if it is a default definition, change it into a non-default
19510 definition assigned at the beginning of function from new_decl.
19511 (ipa_simd_modify_stmt_ops): Rewritten.
19512 * tree-dfa.c (set_ssa_default_def): When removing default def,
19513 check for NULL loc instead of NULL *loc.
19514
19515 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19516
19517 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19518 restrictions on core registers for DImode values in Thumb2.
19519
19520 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19521
19522 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19523 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19524
19525 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19526
19527 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19528 (*iordi_notzesidi_di): Likewise.
19529 (*iordi_notsesidi_di): Likewise.
19530
19531 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19532
19533 * config/arm/arm-protos.h (tune_params): New struct members.
19534 * config/arm/arm.c: Initialise tune_params per processor.
19535 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19536 for speed, based on new tune_params.
19537
19538 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19539
19540 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19541 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19542 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19543 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19544 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19545 (vrnda_f64): Likewise.
19546 (vrndi_f64): Likewise.
19547 (vrndm_f64): Likewise.
19548 (vrndn_f64): Likewise.
19549 (vrndp_f64): Likewise.
19550 (vrndx_f64): Likewise.
19551
19552 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19553
19554 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19555 GET_MODE_SIZE argument is enum machine_mode.
19556
19557 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19558
19559 PR target/60910
19560 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19561 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19562
19563 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19564
19565 PR middle-end/60281
19566 * asan.c (asan_emit_stack_protection): Force the base to align to
19567 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19568 appropriate bits if STRICT_ALIGNMENT.
19569 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19570 when asan is on.
19571 (expand_used_vars): Leave a space in the stack frame for alignment
19572 if STRICT_ALIGNMENT.
19573
19574 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19575
19576 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19577 than a gimple.
19578 (gimple_store_p): Likewise.
19579 (gimple_assign_load_p): Likewise.
19580 (gimple_assign_cast_p): Likewise.
19581 (gimple_clobber_p): Likewise.
19582
19583 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19584 rather than a gimple.
19585 (gimple_assign_cast_p): Likewise.
19586
19587 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19588
19589 PR target/60735
19590 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19591 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19592
19593 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19594 more debug information for E500 if -mdebug=reg.
19595
19596 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19597
19598 PR target/60909
19599 * config/i386/i386.c (ix86_expand_builtin)
19600 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19601 register for target RTX.
19602 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19603
19604 2014-04-18 Cong Hou <congh@google.com>
19605
19606 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19607 the widen-mult pattern by handling two operands with different sizes,
19608 and operands whose size is smaller than half of the result type.
19609
19610 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19611
19612 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19613 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19614 (do_estimate_edge_time): Compute it.
19615 * ipa-inline.c (want_inline_small_function_p): Bypass
19616 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19617
19618 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19619
19620 * ipa-inline.c (spec_rem): New static variable.
19621 (dump_overall_stats): New function.
19622 (dump_inline_stats): New function.
19623
19624 2014-04-18 Richard Henderson <rth@redhat.com>
19625
19626 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19627 to GET_MODE_SIZE, not a reg_class_t.
19628
19629 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19630
19631 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19632 (vsx_xxmrglw_<mode>): Likewise.
19633
19634 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19635
19636 PR target/60876
19637 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19638 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19639 (rs6000_init_hard_regno_mode_ok): Likewise.
19640
19641 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19642
19643 * ipa-inline.c (inline_small_functions): Account only non-cold
19644 functions.
19645 * doc/invoke.texi (inline-unit-growth): Update documentation.
19646
19647 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19648
19649 * config/rs6000/rs6000.md (addti3, subti3): New.
19650
19651 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19652
19653 PR target/60863
19654 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19655 comment. Check optimize_insn_for_size_p instead of
19656 optimize_insn_for_speed_p.
19657
19658 2014-04-17 Martin Jambor <mjambor@suse.cz>
19659
19660 * gimple-iterator.c (gsi_start_edge): New function.
19661 * gimple-iterator.h (gsi_start_edge): Declare.
19662 * tree-sra.c (single_non_eh_succ): New function.
19663 (disqualify_ops_if_throwing_stmt): Renamed to
19664 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19665 having one non-EH successor BB.
19666 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19667 generate loads into replacements.
19668 (sra_modify_assign): Likewise and and also use the simple path for
19669 such statements.
19670 (sra_modify_function_body): Commit statements on edges.
19671
19672 2014-04-17 Richard Biener <rguenther@suse.de>
19673
19674 PR middle-end/60849
19675 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19676 comparison results and add clarifying comment.
19677
19678 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19679
19680 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19681 (blank_mode): Initialize it.
19682 (emit_mode_size_inline, emit_mode_nunits_inline,
19683 emit_mode_inner_inline): New functions.
19684 (emit_insn_modes_h): Call them and surround their output with
19685 #if GCC_VERSION >= 4001 ... #endif.
19686 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19687 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19688 mode_* arrays if the argument is __builtin_constant_p.
19689 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19690 is enum machine_mode.
19691
19692 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19693
19694 * passes.c (opt_pass::execute): Adjust.
19695 (pass_manager::execute_pass_mode_switching): Likewise.
19696 (early_local_passes::execute): Likewise.
19697 (execute_one_pass): Pass cfun to the pass's execute method.
19698 * tree-pass.h (opt_pass::execute): Add function * argument.
19699 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19700 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19701 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19702 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19703 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19704 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19705 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19706 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19707 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19708 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19709 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19710 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19711 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19712 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19713 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19714 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19715 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19716 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19717 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19718 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19719 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19720 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19721 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19722 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19723 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19724 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19725 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19726 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19727 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19728 Adjust.
19729
19730 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19731
19732 * passes.c (opt_pass::gate): Take function * argument.
19733 (gate_all_early_local_passes): Merge into
19734 (early_local_passes::gate): this.
19735 (gate_all_early_optimizations): Merge into
19736 (all_early_optimizations::gate): this.
19737 (gate_all_optimizations): Mege into
19738 (all_optimizations::gate): this.
19739 (gate_all_optimizations_g): Merge into
19740 (all_optimizations_g::gate): this.
19741 (gate_rest_of_compilation): Mege into
19742 (rest_of_compilation::gate): this.
19743 (gate_postreload): Merge into
19744 (postreload::gate): this.
19745 (dump_one_pass): Pass cfun to the pass's gate method.
19746 (execute_ipa_summary_passes): Likewise.
19747 (execute_one_pass): Likewise.
19748 (ipa_write_summaries_2): Likewise.
19749 (ipa_write_optimization_summaries_1): Likewise.
19750 (ipa_read_summaries_1): Likewise.
19751 (ipa_read_optimization_summaries_1): Likewise.
19752 (execute_ipa_stmt_fixups): Likewise.
19753 * tree-pass.h (opt_pass::gate): Add function * argument.
19754 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19755 combine-stack-adj.c, combine.c, compare-elim.c,
19756 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19757 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19758 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19759 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19760 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19761 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19762 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19763 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19764 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19765 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19766 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19767 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19768 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19769 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19770 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19771 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19772 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19773 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19774 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19775 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19776 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19777 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19778 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19779 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19780 var-tracking.c, vtable-verify.c, web.c: Adjust.
19781
19782 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19783
19784 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19785 * configure: Regenerate.
19786
19787 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19788
19789 * passes.c (dump_one_pass): don't check pass->has_gate.
19790 (execute_ipa_summary_passes): Likewise.
19791 (execute_one_pass): Likewise.
19792 (ipa_write_summaries_2): Likewise.
19793 (ipa_write_optimization_summaries_1): Likewise.
19794 (ipa_read_optimization_summaries_1): Likewise.
19795 (execute_ipa_stmt_fixups): Likewise.
19796 * tree-pass.h (pass_data::has_gate): Remove.
19797 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19798 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19799 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19800 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19801 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19802 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19803 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19804 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19805 gimple-low.c, gimple-ssa-isolate-paths.c,
19806 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19807 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19808 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19809 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19810 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19811 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19812 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19813 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19814 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19815 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19816 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19817 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19818 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19819 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19820 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19821 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19822 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19823 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19824 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19825 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19826 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19827 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19828 Adjust.
19829
19830 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19831
19832 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19833 declaration.
19834 * passes.c (pass_manager::register_dump_files_1): Merge into
19835 (pass_manager::register_dump_files): this, and remove its handling of
19836 properties since the pass always has the properties anyway.
19837 (pass_manager::pass_manager): Adjust.
19838
19839 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19840
19841 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19842 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19843 dealing with properties.
19844 (pass_manager::register_dump_files): Adjust.
19845
19846 2014-03-20 Mark Wielaard <mjw@redhat.com>
19847
19848 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19849 then represent the bound as normal constant value.
19850
19851 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19852
19853 PR target/60847
19854 Forward port from 4.8 branch
19855 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19856
19857 * config/i386/bmiintrin.h (_blsi_u32): New.
19858 (_blsi_u64): Ditto.
19859 (_blsr_u32): Ditto.
19860 (_blsr_u64): Ditto.
19861 (_blsmsk_u32): Ditto.
19862 (_blsmsk_u64): Ditto.
19863 (_tzcnt_u32): Ditto.
19864 (_tzcnt_u64): Ditto.
19865
19866 2014-04-17 Kito Cheng <kito@0xlab.org>
19867
19868 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19869
19870 2014-04-17 Richard Biener <rguenther@suse.de>
19871
19872 PR middle-end/60849
19873 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19874 boolean results for comparisons.
19875
19876 2014-04-17 Richard Biener <rguenther@suse.de>
19877
19878 PR tree-optimization/60836
19879 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19880 initial PHI args to be gimple values.
19881
19882 2014-04-17 Richard Biener <rguenther@suse.de>
19883
19884 PR tree-optimization/60841
19885 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19886 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19887 of stmts to SLP build.
19888 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19889 (vect_analyze_slp): Likewise.
19890 (vect_analyze_slp_instance): Likewise.
19891 (vect_build_slp_tree): Limit overall SLP tree growth.
19892 * tree-vectorizer.h (vect_analyze_data_refs,
19893 vect_analyze_slp): Adjust prototypes.
19894
19895 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19896
19897 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19898 Silvermont.
19899
19900 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19901
19902 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19903 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19904 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19905 for TARGET_SLOW_PSHUFB
19906
19907 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19908
19909 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19910 * config/i386/i386.c (intel_cost): Ditto.
19911
19912 2014-04-17 Joey Ye <joey.ye@arm.com>
19913
19914 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19915
19916 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19917
19918 * opts.c (common_handle_option): Disable -fipa-reference coorectly
19919 with -fuse-profile.
19920
19921 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19922
19923 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19924 (type_all_derivations_known_p): New predicate.
19925 (type_all_ctors_visible_p): New predicate.
19926 (type_possibly_instantiated_p): New predicate.
19927 (get_odr_type): Compute all_derivations_known.
19928 (dump_odr_type): Dump the flag.
19929 (maybe_record_type): Cleanup.
19930 (record_target_from_binfo): Add bases_to_consider array;
19931 record bases for types w/o instances and skip CXX destructor.
19932 (possible_polymorphic_call_targets_1): Add bases_to_consider
19933 and consider_construction parameters; check if type may have instance.
19934 (get_polymorphic_call_info): Set maybe_in_construction to true
19935 when we know nothing.
19936 (record_targets_from_bases): Skip CXX destructors; they are
19937 never called for types in construction.
19938 (possible_polymorphic_call_targets): Do not record target when
19939 type may not have instance.
19940
19941 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19942
19943 PR ipa/60854
19944 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19945 external aliases alive, too.
19946
19947 2014-04-16 Andrew Pinski <apinski@cavium.com>
19948
19949 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19950 definition.
19951
19952 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19953
19954 * final.c (compute_alignments): Do not apply loop alignment to a block
19955 falling through to the exit.
19956
19957 2014-04-16 Catherine Moore <clm@codesourcery.com>
19958
19959 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19960 Adjust constraints for microMIPS store patterns.
19961
19962 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19963
19964 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19965
19966 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19967
19968 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19969 (append_use): Run at -O0.
19970 (append_vdef): Likewise.
19971 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19972 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19973
19974 2014-04-16 Jakub Jelinek <jakub@redhat.com>
19975
19976 PR tree-optimization/60844
19977 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19978 (propagate_op_to_single_use, remove_visited_stmt_chain,
19979 linearize_expr, repropagate_negates, reassociate_bb): Use it
19980 instead of gsi_remove.
19981
19982 2014-04-16 Martin Jambor <mjambor@suse.cz>
19983
19984 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
19985 ipa_transforms_to_apply.
19986 (cgraph_function_versioning): Assert that old_node has empty
19987 ipa_transforms_to_apply.
19988 * trans-mem.c (ipa_tm_create_version): Likewise.
19989 * tree-inline.c (tree_function_versioning): Do not duplicate
19990 ipa_transforms_to_apply.
19991
19992 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19993
19994 PR target/60817
19995 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
19996 x86_64-*-* cases.
19997 Pass necessary as flags on 64-bit Solaris/x86.
19998 Use lowercase relocs for x86_64-*-*.
19999 * configure: Regenerate.
20000
20001 2014-04-15 Jan Hubicka <jh@suse.cz>
20002
20003 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20004 (maybe_record_node, likely_target_p): Use it.
20005
20006 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20007
20008 PR target/60839
20009 Revert following patch
20010
20011 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20012
20013 PR target/60735
20014 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20015 software floating point or no floating point registers, do not
20016 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20017 in GPRs that occurs after we tested for GPRs that would never be
20018 true.
20019
20020 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20021 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20022 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20023 specifically allow DDmode, since that does not use the SPE SIMD
20024 instructions.
20025
20026 2014-03-21 Mark Wielaard <mjw@redhat.com>
20027
20028 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20029 as unsigned or int depending on type and value used.
20030
20031 2014-04-15 Richard Biener <rguenther@suse.de>
20032
20033 PR rtl-optimization/56965
20034 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20035 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20036 ... here.
20037 * alias.c (true_dependence_1): Do not call
20038 nonoverlapping_component_refs_p.
20039 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20040 nonoverlapping_component_refs_p.
20041 (indirect_refs_may_alias_p): Likewise.
20042
20043 2014-04-15 Teresa Johnson <tejohnson@google.com>
20044
20045 * cfg.c (dump_bb_info): Fix flags check.
20046 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20047
20048 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20049
20050 PR rtl-optimization/60663
20051 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20052 avoid 0 cost.
20053
20054 2014-04-15 Richard Biener <rguenther@suse.de>
20055
20056 * lto-streamer.h (LTO_major_version): Bump to 4.
20057
20058 2014-04-15 Richard Biener <rguenther@suse.de>
20059
20060 * common.opt (lto_partition_model): New enum.
20061 (flto-partition=): Merge separate options with a single with argument,
20062 add -flto-partition=one support.
20063 * flag-types.h (enum lto_partition_model): Declare.
20064 * opts.c (finish_options): Remove duplicate -flto-partition=
20065 option check.
20066 * lto-wrapper.c (run_gcc): Adjust.
20067
20068 2014-04-15 Richard Biener <rguenther@suse.de>
20069
20070 * alias.c (ncr_compar): New function.
20071 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20072
20073 2014-04-15 Richard Biener <rguenther@suse.de>
20074
20075 * alias.c (record_component_aliases): Do not walk BINFOs.
20076
20077 2014-04-15 Richard Biener <rguenther@suse.de>
20078
20079 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20080 Add struct function argument and adjust.
20081 (find_func_aliases_for_call): Likewise.
20082 (find_func_aliases): Likewise.
20083 (find_func_clobbers): Likewise.
20084 (intra_create_variable_infos): Likewise.
20085 (compute_points_to_sets): Likewise.
20086 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20087
20088 2014-04-15 Richard Biener <rguenther@suse.de>
20089
20090 * tree.c (iterative_hash_expr): Use enum tree_code_class
20091 to store TREE_CODE_CLASS.
20092 (tree_block): Likewise.
20093 (tree_set_block): Likewise.
20094 * tree.h (fold_build_pointer_plus_loc): Use
20095 convert_to_ptrofftype_loc.
20096
20097 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20098
20099 PR plugins/59335
20100 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20101 added in 4.9.
20102
20103 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20104
20105 * cfgloop.h (struct loop): Move force_vectorize down.
20106 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20107 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20108 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20109 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20110 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20111 * tree-core.h (enum annot_expr_kind): Add new kind values.
20112 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20113 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20114 kinds.
20115 * tree.def (ANNOTATE_EXPR): Tweak comment.
20116
20117 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20118
20119 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20120 cxa_pure_virtual).
20121
20122 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20123
20124 * tree.h (TYPE_IDENTIFIER): Declare.
20125 * tree.c (subrange_type_for_debug_p): Use it.
20126 * godump.c (go_format_type): Likewise.
20127 * dwarf2out.c (is_cxx_auto, modified_type_die,
20128 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20129 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20130
20131 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20132
20133 PR lto/60820
20134 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20135
20136 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20137
20138 * config/i386/i386.c (examine_argument): Return bool. Return true if
20139 parameter should be passed in memory.
20140 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20141 (construct_container): Update calls to examine_argument.
20142 (function_arg_advance_64): Ditto.
20143 (return_in_memory_32): Merge with ix86_return_in_memory.
20144 (return_in_memory_64): Ditto.
20145 (return_in_memory_ms_64): Ditto.
20146
20147 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20148
20149 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20150 * coverage.c (coverage_compute_profile_id): Handle externally visible
20151 symbols.
20152
20153 2014-04-14 Martin Jambor <mjambor@suse.cz>
20154
20155 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20156 DECL_DISREGARD_INLINE_LIMITS functions.
20157
20158 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20159
20160 PR target/60827
20161 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20162
20163 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20164
20165 PR target/60827
20166 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20167 optimize_insn_for_speed_p instead of
20168 optimize_function_for_speed_p.
20169
20170 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20171
20172 * doc/invoke.texi (free): Document AArch64.
20173
20174 2014-04-14 Richard Biener <rguenther@suse.de>
20175
20176 PR tree-optimization/60042
20177 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20178 (insert_into_preds_of_block): Do not prevent PHI insertion
20179 for REFERENCE exprs here ...
20180 (eliminate_dom_walker::before_dom_children): ... but prevent
20181 their use here under similar conditions when applied to the
20182 IL after PRE optimizations.
20183
20184 2014-04-14 Richard Biener <rguenther@suse.de>
20185
20186 * passes.def: Move early points-to after early SRA.
20187
20188 2014-04-14 Richard Biener <rguenther@suse.de>
20189
20190 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20191 check for which sign-changes we allow when forwarding
20192 a converted value into a switch.
20193
20194 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20195
20196 * stor-layout.c (place_field): Finalize non-constant offset for the
20197 field, if any.
20198
20199 2014-04-14 Richard Biener <rguenther@suse.de>
20200
20201 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20202 as argument.
20203 (expand_switch_using_bit_tests_p): Likewise.
20204 (process_switch): Compute and pass on speed_p based on the
20205 switch stmt.
20206 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20207 optimize_bb_for_speed_p.
20208
20209 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20210
20211 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20212 * function.h (struct function): Rename has_force_vect_loops into
20213 has_force_vectorize_loops.
20214 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20215 (input_struct_function_base): Likewise.
20216 * lto-streamer-out.c (output_cfg): Likewise.
20217 (output_struct_function_base): Likewise.
20218 * omp-low.c (expand_omp_simd): Likewise.
20219 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20220 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20221 (version_loop_for_if_conversion): Likewise.
20222 (tree_if_conversion): Likewise.
20223 (main_tree_if_conversion): Likewise.
20224 (gate_tree_if_conversion): Likewise.
20225 * tree-inline.c (copy_loops): Likewise.
20226 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20227 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20228 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20229 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20230 * tree-vectorizer.c (vectorize_loops): Likewise.
20231 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20232
20233 2014-04-14 Richard Biener <rguenther@suse.de>
20234
20235 PR lto/60720
20236 * lto-streamer-out.c (wrap_refs): New function.
20237 (lto_output): Wrap symbol references in global initializes in
20238 type-preserving MEM_REFs.
20239
20240 2014-04-14 Christian Bruel <christian.bruel@st.com>
20241
20242 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20243
20244 2014-04-14 Christian Bruel <christian.bruel@st.com>
20245
20246 * config/sh/sh.md (setmemqi): New expand pattern.
20247 * config/sh/sh.h (CLEAR_RATIO): Define.
20248 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20249 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20250
20251 2014-04-14 Richard Biener <rguenther@suse.de>
20252
20253 PR middle-end/55022
20254 * fold-const.c (negate_expr_p): Don't negate directional rounding
20255 division.
20256 (fold_negate_expr): Likewise.
20257
20258 2014-04-14 Richard Biener <rguenther@suse.de>
20259
20260 PR tree-optimization/59817
20261 PR tree-optimization/60453
20262 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20263 recursion to catch all CHRECs in the scalar evolution and restrict
20264 the predicate for the remains appropriately.
20265
20266 2014-04-12 Catherine Moore <clm@codesourcery.com>
20267
20268 * config/mips/constraints.md: Add new register constraint "kb".
20269 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20270 (*movhi_internal): Likewise.
20271 (*movqi_internal): Likewise.
20272 * config/mips/mips.h (M16_STORE_REGS): New register class.
20273 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20274 (REG_CLASS_CONTENTS): Likewise.
20275 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20276
20277 2014-04-11 Tobias Burnus <burnus@net-b.de>
20278
20279 PR c/60194
20280 * doc/invoke.texi (-Wformat-signedness): Document it.
20281 (Wformat=2): Mention that this enables -Wformat-signedness.
20282
20283 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20284
20285 * common/config/epiphany/epiphany-common.c
20286 (epiphany_option_optimization_table): Enable section anchors by
20287 default at -O1 or higher.
20288 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20289 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20290 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20291 carries no extra cost.
20292 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20293 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20294 * config/epiphany/predicates.md (memclob_operand): New predicate.
20295 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20296 Use memclob_operand predicate and X constraint for operand 3.
20297
20298 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20299
20300 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20301 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20302 its operands.
20303
20304 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20305
20306 PR rtl-optimization/60651
20307 * mode-switching.c (optimize_mode_switching): Make sure to emit
20308 sets of a lower numbered entity before sets of a higher numbered
20309 entity to a mode of the same or lower priority.
20310 When creating a seginfo for a basic block that starts with a code
20311 label, move the insertion point past the code label.
20312 (new_seginfo): Document and enforce requirement that
20313 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20314 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20315 * doc/tm.texi: Regenerate.
20316
20317 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20318
20319 PR target/60811
20320 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20321
20322 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20323
20324 * BASE-VER: Set to 4.10.0.
20325
20326 2014-04-11 Tobias Burnus <burnus@net-b.de>
20327
20328 PR other/59055
20329 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20330 * doc/gcc.texi (Service): Update description in the @menu
20331 * doc/invoke.texi (Option Summary): Remove misplaced and
20332 duplicated @menu.
20333
20334 2014-04-11 Steve Ellcey <sellcey@mips.com>
20335 Jakub Jelinek <jakub@redhat.com>
20336
20337 PR middle-end/60556
20338 * expr.c (convert_move): Use emit_store_flag_force instead of
20339 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20340 argument to it.
20341
20342 2014-04-11 Richard Biener <rguenther@suse.de>
20343
20344 PR middle-end/60797
20345 * varasm.c (assemble_alias): Avoid endless error reporting
20346 recursion by setting TREE_ASM_WRITTEN.
20347
20348 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20349
20350 * config/s390/s390.md: Add a splitter for NOT rtx.
20351
20352 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20353
20354 PR rtl-optimization/60663
20355 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20356
20357 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20358 Jakub Jelinek <jakub@redhat.com>
20359
20360 PR lto/60567
20361 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20362 flag from decl_node to node.
20363
20364 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20365
20366 PR debug/60655
20367 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20368 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20369 ameliorating the cases where it can be.
20370
20371 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20372
20373 Revert
20374 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20375
20376 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20377 (loadsync_<mode>): Change mode.
20378 (load_quadpti, store_quadpti): New.
20379 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20380 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20381 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20382
20383 2014-04-09 Cong Hou <congh@google.com>
20384
20385 PR testsuite/60773
20386 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20387 documentation.
20388
20389 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20390
20391 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20392 instead of vnor to exploit possible fusion opportunity in the
20393 future.
20394 (altivec_expand_vec_perm_const_le): Likewise.
20395
20396 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20397
20398 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20399 (loadsync_<mode>): Change mode.
20400 (load_quadpti, store_quadpti): New.
20401 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20402 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20403
20404 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20405
20406 PR target/60763
20407 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20408 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20409 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20410
20411 2014-04-08 Richard Biener <rguenther@suse.de>
20412
20413 PR middle-end/60706
20414 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20415 a 64bit widest int print double-int similar to on HWI64 hosts.
20416
20417 2014-04-08 Richard Biener <rguenther@suse.de>
20418
20419 PR tree-optimization/60785
20420 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20421 default defs properly.
20422
20423 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20424
20425 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20426 (Weffc++): Likewise.
20427
20428 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20429
20430 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20431 set completep to false rather than true.
20432
20433 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20434
20435 PR target/60504
20436 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20437 ARM_TARGET2_DWARF_FORMAT.
20438
20439 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20440
20441 PR target/60609
20442 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20443 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20444 ADDR_DIFF_VEC.
20445
20446 2014-04-07 Richard Biener <rguenther@suse.de>
20447
20448 PR tree-optimization/60766
20449 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20450 (may_eliminate_iv): Convert cand_value_at result to desired type.
20451
20452 2014-04-07 Jason Merrill <jason@redhat.com>
20453
20454 PR c++/60731
20455 * common.opt (-fno-gnu-unique): Add.
20456 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20457
20458 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20459
20460 * haifa-sched.c: Fix outdated function reference and minor
20461 grammar errors in introductory comment.
20462
20463 2014-04-07 Richard Biener <rguenther@suse.de>
20464
20465 PR middle-end/60750
20466 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20467 for noreturn calls.
20468 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20469
20470 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20471
20472 PR debug/55794
20473 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20474 size accounting for thunks.
20475 (pa_asm_output_mi_thunk): Use final_start_function() and
20476 final_end_function() to output function start and end directives.
20477
20478 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20479
20480 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20481 device specific ISA/ feature information. Remove short_sp and
20482 errata_skip ds. Add avr_device_specific_features enum to have device
20483 specific info.
20484 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20485 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20486 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20487 updated device specific info.
20488 * config/avr/avr-mcus.def: Merge device specific details to
20489 dev_attribute field.
20490 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20491 errata_skip.
20492 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20493 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20494 assembler if RMW isa supported by current device.
20495 * config/avr/genmultilib.awk: Update as device info structure changed.
20496 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20497
20498 2014-04-04 Cong Hou <congh@google.com>
20499
20500 PR tree-optimization/60656
20501 * tree-vect-stmts.c (supportable_widening_operation):
20502 Fix a bug that elements in a vector with vect_used_by_reduction
20503 property are incorrectly reordered when the operation on it is not
20504 consistant with the one in reduction operation.
20505
20506 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20507
20508 PR rtl-optimization/60155
20509 * gcse.c (record_set_data): New function.
20510 (single_set_gcse): New function.
20511 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20512 (hoist_code): Likewise.
20513 (get_pressure_class_and_nregs): Likewise.
20514
20515 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20516
20517 * explow.c (probe_stack_range): Emit a final optimization blockage.
20518
20519 2014-04-04 Anthony Green <green@moxielogic.com>
20520
20521 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20522 typos.
20523
20524 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20525
20526 PR ipa/59626
20527 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20528 flags are set only during streaming.
20529 * ipa.c (process_references, walk_polymorphic_call_targets,
20530 symtab_remove_unreachable_nodes): Drop bodies of always inline
20531 after early inlining.
20532 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20533
20534 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20535 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20536
20537 PR debug/60655
20538 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20539 containing a NOT.
20540
20541 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20542
20543 PR bootstrap/60743
20544 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20545 duration.
20546 (cortex_a53_fdivd): Likewise.
20547
20548 2014-04-04 Martin Jambor <mjambor@suse.cz>
20549
20550 PR ipa/60640
20551 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20552 Adjust all callers.
20553 * cgraph.c (clone_of_p): Also return true if thunks match.
20554 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20555 cgraph_function_or_thunk_node and an obsolete comment.
20556 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20557 file.
20558 (build_function_decl_skip_args): Likewise.
20559 (set_new_clone_decl_and_node_flags): New function.
20560 (duplicate_thunk_for_node): Likewise.
20561 (redirect_edge_duplicating_thunks): Likewise.
20562 (cgraph_clone_node): New parameter args_to_skip, pass it to
20563 redirect_edge_duplicating_thunks which is called instead of
20564 cgraph_redirect_edge_callee.
20565 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20566 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20567
20568 2014-04-04 Jeff Law <law@redhat.com>
20569
20570 PR target/60657
20571 * config/arm/predicates.md (const_int_I_operand): New predicate.
20572 (const_int_M_operand): Similarly.
20573 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20574 const_int_operand.
20575 (insv_t2, extv_reg, extzv_t2): Likewise.
20576 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20577 (pop_multiple_with_writeback_and_return): Likewise.
20578 (vfp_pop_multiple_with_writeback): Likewise
20579
20580 2014-04-04 Richard Biener <rguenther@suse.de>
20581
20582 PR ipa/60746
20583 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20584 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20585 non-GIMPLE_LABELs.
20586 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20587 * gimplify.c (gimple_add_tmp_var_fn): New function.
20588 * gimple-expr.h (create_tmp_reg_fn): Declare.
20589 * gimple-expr.c (create_tmp_reg_fn): New function.
20590 * gimple-low.c (record_vars_into): Don't change cfun.
20591 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20592 code generation without cfun.
20593
20594 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20595
20596 PR bootstrap/60719
20597 * Makefile.in (install-driver): Fix shell scripting.
20598
20599 2014-04-03 Cong Hou <congh@google.com>
20600
20601 PR tree-optimization/60505
20602 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20603 threshold of number of iterations below which no vectorization
20604 will be done.
20605 * tree-vect-loop.c (new_loop_vec_info):
20606 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20607 * tree-vect-loop.c (vect_analyze_loop_operations):
20608 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20609 * tree-vect-loop.c (vect_transform_loop):
20610 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20611 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20612 of iterations of the loop and see if we should build the epilogue.
20613
20614 2014-04-03 Richard Biener <rguenther@suse.de>
20615
20616 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20617 (streamer_tree_cache_create): Adjust.
20618 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20619 to allow optional nodes array.
20620 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20621 (streamer_tree_cache_append): Likewise.
20622 (streamer_tree_cache_create): Create nodes array optionally
20623 as specified by parameter.
20624 * lto-streamer-out.c (create_output_block): Avoid maintaining
20625 the node array in the writer cache.
20626 (DFS_write_tree): Remove assertion.
20627 (produce_asm_for_decls): Free the out decl state hash table early.
20628 * lto-streamer-in.c (lto_data_in_create): Adjust for
20629 streamer_tree_cache_create prototype change.
20630
20631 2014-04-03 Richard Biener <rguenther@suse.de>
20632
20633 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20634 set TREE_CHAIN to NULL_TREE.
20635
20636 2014-04-03 Richard Biener <rguenther@suse.de>
20637
20638 PR tree-optimization/60740
20639 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20640 over all GIMPLE_COND operands.
20641
20642 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20643
20644 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20645 (Weffc++): Remove Scott's numbering, merge lists and reference
20646 Wnon-virtual-dtor.
20647
20648 2014-04-03 Nick Clifton <nickc@redhat.com>
20649
20650 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20651 properly.
20652
20653 2014-04-03 Martin Jambor <mjambor@suse.cz>
20654
20655 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20656 mention gcc_unreachable before failing.
20657 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20658 removed symbols.
20659
20660 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20661
20662 PR ipa/60659
20663 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20664 inconsistent code and instead mark the context inconsistent.
20665 (possible_polymorphic_call_targets): For inconsistent contexts
20666 return empty complete list.
20667
20668 2014-04-02 Anthony Green <green@moxielogic.com>
20669
20670 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20671 (extendqisi2, extendhisi2): Define.
20672 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20673 (WCHAR_TYPE): Change to unsigned int.
20674
20675 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20676
20677 PR tree-optimization/60733
20678 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20679 insertion point for PHI candidates to be the end of the feeding
20680 block for the PHI argument.
20681
20682 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20683
20684 PR rtl-optimization/60650
20685 * lra-constraints.c (process_alt_operands): Decrease reject for
20686 earlyclobber matching.
20687
20688 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20689
20690 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20691
20692 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20693
20694 * config/spu/spu.c (pad_bb): Do not crash when the last
20695 insn is CODE_FOR_blockage.
20696
20697 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20698
20699 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20700 lies outside the target mode.
20701
20702 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20703
20704 PR target/60735
20705 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20706 software floating point or no floating point registers, do not
20707 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20708 in GPRs that occurs after we tested for GPRs that would never be
20709 true.
20710
20711 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20712 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20713 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20714 specifically allow DDmode, since that does not use the SPE SIMD
20715 instructions.
20716
20717 2014-04-02 Richard Biener <rguenther@suse.de>
20718
20719 PR middle-end/60729
20720 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20721 MODE_INTs. Properly use negv_optab.
20722 (expand_abs): Likewise.
20723
20724 2014-04-02 Richard Biener <rguenther@suse.de>
20725
20726 PR bootstrap/60719
20727 * Makefile.in (install-driver): Guard extra installs with special
20728 names properly.
20729
20730 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20731
20732 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20733 Document vec_vgbbd.
20734
20735 2014-04-01 Richard Henderson <rth@redhat.com>
20736
20737 PR target/60704
20738 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20739 alternative enabled before register allocation.
20740
20741 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20742
20743 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20744 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20745 typo.
20746 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20747 (nios2_got_address): Update nios2_large_got_address call site.
20748 (nios2_delegitimize_address): New function.
20749 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20750 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20751 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20752
20753 2014-04-01 Martin Husemann <martin@duskware.de>
20754
20755 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20756 for -mabi=32.
20757
20758 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20759
20760 PR rtl-optimization/60604
20761 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20762 check from register_operand.
20763 (register_operand): Redefine in terms of general_operand.
20764 (nonmemory_operand): Use register_operand for the non-constant cases.
20765
20766 2014-04-01 Richard Biener <rguenther@suse.de>
20767
20768 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20769
20770 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20771
20772 * doc/invoke.texi (mapp-regs): Clarify.
20773
20774 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20775
20776 * config/i386/avx512fintrin.h (__v32hi): Define type.
20777 (__v64qi): Likewise.
20778 (_mm512_set1_epi8): Define.
20779 (_mm512_set1_epi16): Define.
20780 (_mm512_set4_epi32): Define.
20781 (_mm512_set4_epi64): Define.
20782 (_mm512_set4_pd): Define.
20783 (_mm512_set4_ps): Define.
20784 (_mm512_setr4_epi64): Define.
20785 (_mm512_setr4_epi32): Define.
20786 (_mm512_setr4_pd): Define.
20787 (_mm512_setr4_ps): Define.
20788 (_mm512_setzero_epi32): Define.
20789
20790 2014-03-31 Martin Jambor <mjambor@suse.cz>
20791
20792 PR middle-end/60647
20793 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20794 callsite_arguments_match_p. Updated all callers. Also check types of
20795 corresponding formal parameters and actual arguments.
20796 (not_all_callers_have_enough_arguments_p) Renamed to
20797 some_callers_have_mismatched_arguments_p.
20798
20799 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20800
20801 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20802
20803 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20804
20805 PR target/60034
20806 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20807 section anchor.
20808
20809 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20810
20811 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20812 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20813 Split out
20814 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20815 Use FMAMODE_NOVF512 mode iterator.
20816 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20817 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20818 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20819 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20820 Split out
20821 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20822 Use VF_128_256 mode iterator.
20823 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20824 Ditto.
20825
20826 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20827
20828 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20829 static chain if needed.
20830
20831 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20832
20833 PR target/60697
20834 * lra-constraints.c (index_part_to_reg): New.
20835 (process_address): Use it.
20836
20837 2014-03-27 Jeff Law <law@redhat.com>
20838 Jakub Jelinek <jakub@redhat.com>
20839
20840 PR target/60648
20841 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20842 gen_rtx_{PLUS,MULT} to build up the address expression.
20843
20844 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20845 creating non-canonical RTL.
20846
20847 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20848
20849 PR ipa/60243
20850 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20851 functions; reorganize to make cheap checks first.
20852 (inline_small_functions): Do not estimate growth when dumping;
20853 it is expensive.
20854 * ipa-inline.h (inline_summary): Add min_size.
20855 (growth_likely_positive): New function.
20856 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20857 (set_cond_stmt_execution_predicate): Cleanup.
20858 (estimate_edge_size_and_time): Compute min_size.
20859 (estimate_calls_size_and_time): Likewise.
20860 (estimate_node_size_and_time): Likewise.
20861 (inline_update_overall_summary): Update min_size.
20862 (do_estimate_edge_time): Likewise.
20863 (do_estimate_edge_size): Update.
20864 (do_estimate_edge_hints): Update.
20865 (growth_likely_positive): New function.
20866
20867 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20868
20869 PR target/60693
20870 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20871 also if addr has VOIDmode.
20872
20873 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20874
20875 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20876 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20877 Declare extern.
20878 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20879 instructions as well as AdvancedSIMD loads.
20880
20881 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20882
20883 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20884 Use crypto_aese type.
20885 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20886 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20887 crypto_aese, crypto_aesmc. Move to types.md.
20888 * config/arm/types.md (crypto_aes): Split into crypto_aese,
20889 crypto_aesmc.
20890 * config/arm/iterators.md (crypto_type): Likewise.
20891
20892 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20893
20894 * cgraph.c: Include expr.h and tree-dfa.h.
20895 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20896 remove LHS.
20897
20898 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20899
20900 PR target/60675
20901 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20902 regs from checking multi-reg pseudos.
20903
20904 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20905
20906 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20907
20908 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20909
20910 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20911 if it would clobber the stack pointer, even temporarily.
20912
20913 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
20914
20915 * mode-switching.c: Make small adjustments to the top comment.
20916
20917 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
20918
20919 * config/rs6000/constraints.md (wD constraint): New constraint to
20920 match the constant integer to get the top DImode/DFmode out of a
20921 vector in a VSX register.
20922
20923 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20924 match the constant integer to get the top DImode/DFmode out of a
20925 vector in a VSX register.
20926
20927 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20928 for ISA 2.07.
20929
20930 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20931 vbpermq builtins.
20932
20933 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20934 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20935
20936 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20937 Optimize vec_extract of 64-bit values, where the value being
20938 extracted is in the top word, where we can use scalar
20939 instructions. Add direct move and store support. Combine the big
20940 endian/little endian vector select load support into a single insn.
20941 (vsx_extract_<mode>_internal1): Likewise.
20942 (vsx_extract_<mode>_internal2): Likewise.
20943 (vsx_extract_<mode>_load): Likewise.
20944 (vsx_extract_<mode>_store): Likewise.
20945 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20946 combined into vsx_extract_<mode>_load.
20947 (vsx_extract_<mode>_one_le): Likewise.
20948
20949 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20950 define the top 64-bit vector element.
20951
20952 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20953 constraint.
20954
20955 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20956 Document vec_vbpermq builtin.
20957
20958 PR target/60672
20959 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20960 enable use of xxsldwi and xxpermdi builtin functions.
20961 (vec_xxpermdi): Likewise.
20962
20963 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20964 Document use of vec_xxsldwi and vec_xxpermdi builtins.
20965
20966 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
20967
20968 PR rtl-optimization/60650
20969 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20970 first_p. Use it.
20971 (find_spills_for): New.
20972 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20973 Spill all pseudos on the second iteration.
20974
20975 2014-03-27 Marek Polacek <polacek@redhat.com>
20976
20977 PR c/50347
20978 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20979 types.
20980
20981 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20982
20983 * config/s390/s390.c (s390_can_use_return_insn): Check for
20984 call-saved FPRs on 31 bit.
20985
20986 2014-03-27 Jakub Jelinek <jakub@redhat.com>
20987
20988 PR middle-end/60682
20989 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
20990 if they need regimplification, just drop them instead of
20991 calling gimple_regimplify_operands on them.
20992
20993 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
20994
20995 PR target/60580
20996 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
20997 (aarch64_frame_pointer_required): Adjust logic.
20998 (aarch64_can_eliminate): Adjust logic.
20999 (aarch64_override_options_after_change): Adjust logic.
21000
21001 2014-03-27 Dehao Chen <dehao@google.com>
21002
21003 * ipa-inline.c (early_inliner): Update node's inline info.
21004
21005 2014-03-26 Dehao Chen <dehao@google.com>
21006
21007 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21008 compiler inserted conditional jumps for NAN float check.
21009
21010 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21011
21012 * ubsan.h (ubsan_create_data): Change second argument's type
21013 to const location_t *.
21014 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21015 _("<unknown>").
21016 (ubsan_create_data): Change second argument to const location_t *PLOC.
21017 Create Loc field whenever PLOC is non-NULL.
21018 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21019 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21020 callers.
21021
21022 PR other/59545
21023 * real.c (real_to_integer2): Change type of low to UHWI.
21024
21025 2014-03-26 Tobias Burnus <burnus@net-b.de>
21026
21027 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21028 (CILK_SELF_SPECS): New define.
21029 (driver_self_specs): Use it.
21030
21031 2014-03-26 Richard Biener <rguenther@suse.de>
21032
21033 * tree-pretty-print.c (percent_K_format): Implement special
21034 case for LTO and its stripped down BLOCK tree.
21035
21036 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21037
21038 PR sanitizer/60636
21039 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21040
21041 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21042 one range is range_int_cst_p, but not both, at least optimize
21043 addition/subtraction of 0 and multiplication by 0 or 1.
21044 * gimple-fold.c (gimple_fold_call): Fold
21045 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21046 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21047 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21048
21049 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21050
21051 PR rtl-optimization/60452
21052 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21053 <case REG>: Return 1 for invalid offsets from the frame pointer.
21054
21055 2014-03-26 Marek Polacek <polacek@redhat.com>
21056
21057 PR c/37428
21058 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21059 a structure/union.
21060
21061 2014-03-26 Marek Polacek <polacek@redhat.com>
21062
21063 PR c/39525
21064 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21065 field members.
21066
21067 2014-03-26 Marek Polacek <polacek@redhat.com>
21068
21069 PR other/59545
21070 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21071 multiplication in unsigned type.
21072
21073 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21074
21075 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21076
21077 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21078
21079 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21080
21081 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21082
21083 PR ipa/60315
21084 * cif-code.def (UNREACHABLE) New code.
21085 * ipa-inline.c (inline_small_functions): Skip edges to
21086 __builtlin_unreachable.
21087 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21088 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21089 predicate to __bulitin_unreachable.
21090 (set_cond_stmt_execution_predicate): Fix issue when
21091 invert_tree_comparison returns ERROR_MARK.
21092 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21093 propagate to inline clones.
21094 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21095 to unreachable.
21096 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21097 * cgraphclones.c (cgraph_clone_node): If call destination is already
21098 ureachable, do not redirect it back.
21099 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21100 unreachable.
21101
21102 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21103
21104 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21105 Do not modify inline clones.
21106
21107 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21108
21109 * config/i386/i386.md (general_sext_operand): New mode attr.
21110 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21111 don't generate (sign_extend (const_int)).
21112 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21113 operands[2]. Use We constraint instead of <i> and
21114 <general_sext_operand> predicate instead of <general_operand>.
21115 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21116 * config/i386/constraints.md (We): New constraint.
21117 * config/i386/predicates.md (x86_64_sext_operand,
21118 sext_operand): New predicates.
21119
21120 2014-03-25 Martin Jambor <mjambor@suse.cz>
21121
21122 PR ipa/60600
21123 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21124 inconsistent devirtualizations to __builtin_unreachable.
21125
21126 2014-03-25 Marek Polacek <polacek@redhat.com>
21127
21128 PR c/35449
21129 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21130
21131 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21132
21133 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21134 order of elements for big-endian.
21135
21136 2014-03-25 Richard Biener <rguenther@suse.de>
21137
21138 PR middle-end/60635
21139 * gimplify-me.c (gimple_regimplify_operands): Update the
21140 re-gimplifed stmt.
21141
21142 2014-03-25 Martin Jambor <mjambor@suse.cz>
21143
21144 PR ipa/59176
21145 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21146 (lto_output_varpool_node): Likewise.
21147 (input_overwrite_node): Likewise.
21148 (input_varpool_node): Likewise.
21149
21150 2014-03-25 Richard Biener <rguenther@suse.de>
21151
21152 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21153 (run_gcc): Likewise.
21154
21155 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21156
21157 * combine.c (simplify_compare_const): Add MODE argument.
21158 Handle mode_width 0 as very large mode_width.
21159 (try_combine, simplify_comparison): Adjust callers.
21160
21161 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21162 type to avoid signed integer overflow.
21163 * explow.c (plus_constant): Likewise.
21164
21165 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21166
21167 * doc/generic.texi: Correct typos.
21168
21169 2014-03-24 Tobias Burnus <burnus@net-b.de>
21170
21171 * doc/invoke.texi (-flto): Expand section about
21172 using static libraries with LTO.
21173
21174 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21175
21176 PR rtl-optimization/60501
21177 * optabs.def (addptr3_optab): New optab.
21178 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21179 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21180 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21181
21182 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21183
21184 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21185
21186 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21187
21188 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21189 _mm512_set1_pd.
21190
21191 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21192 (_mm256_undefined_ps): Define.
21193 (_mm256_undefined_pd): Define.
21194 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21195 (_mm_undefined_pd): Define.
21196 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21197 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21198 (_mm512_undefined_ps): Define.
21199 (_mm512_undefined_pd): Define.
21200 Use _mm*_undefined_*.
21201 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21202
21203 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21204
21205 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21206 (lshr_simd): DI mode added.
21207 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21208 (aarch64_ushr_simddi): Likewise.
21209 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21210 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21211 (vshrd_n_u64): Likewise.
21212
21213 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21214
21215 * Makefile.in (s-macro_list): Depend on cc1.
21216
21217 2014-03-23 Teresa Johnson <tejohnson@google.com>
21218
21219 * ipa-utils.c (ipa_print_order): Use specified dump file.
21220
21221 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21222
21223 PR rtl-optimization/60601
21224 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21225
21226 * gcc.c (eval_spec_function): Initialize save_growing_value.
21227
21228 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21229
21230 PR sanitizer/60613
21231 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21232 code == MINUS_EXPR, never swap op0 with op1.
21233
21234 * toplev.c (init_local_tick): Avoid signed integer multiplication
21235 overflow.
21236 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21237 shift by first operand's bitsize.
21238
21239 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21240
21241 PR target/60610
21242 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21243 redefine to 1 or 0.
21244 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21245 TARGET_ISA_64BIT_P(x).
21246
21247 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21248
21249 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21250 pattern for vector nor instead of subtract from splat(-1).
21251 (altivec_expand_vec_perm_const_le): Likewise.
21252
21253 2014-03-21 Richard Henderson <rth@twiddle.net>
21254
21255 PR target/60598
21256 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21257 related insns after epilogue_completed.
21258
21259 2014-03-21 Martin Jambor <mjambor@suse.cz>
21260
21261 PR ipa/59176
21262 * cgraph.h (symtab_node): New flag body_removed.
21263 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21264 when removing bodies.
21265 * symtab.c (dump_symtab_base): Dump body_removed flag.
21266 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21267 had their bodies removed.
21268
21269 2014-03-21 Martin Jambor <mjambor@suse.cz>
21270
21271 PR ipa/60419
21272 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21273 in the border.
21274
21275 2014-03-21 Richard Biener <rguenther@suse.de>
21276
21277 PR tree-optimization/60577
21278 * tree-core.h (struct tree_base): Document nothrow_flag use
21279 in DECL_NONALIASED.
21280 * tree.h (DECL_NONALIASED): New.
21281 (may_be_aliased): Adjust.
21282 * coverage.c (build_var): Set DECL_NONALIASED.
21283
21284 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21285
21286 * expr.c (expand_expr_real_1): Remove outdated comment.
21287
21288 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21289
21290 PR middle-end/60597
21291 * ira.c (adjust_cleared_regs): Call copy_rtx on
21292 *reg_equiv[REGNO (loc)].src_p before passing it to
21293 simplify_replace_fn_rtx.
21294
21295 PR target/60568
21296 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21297 into CONST, put pic register as first operand of PLUS. Use
21298 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21299
21300 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21301
21302 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21303
21304 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21305
21306 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21307 around for store forwarding issue in the FPU on the UT699.
21308 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21309 loads and operations if -mfix-ut699 is specified.
21310 (divtf3_hq): Tweak attribute.
21311 (sqrttf2_hq): Likewise.
21312
21313 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21314
21315 * calls.c (store_one_arg): Remove incorrect const qualification on the
21316 type of the temporary.
21317 * cfgexpand.c (expand_return): Likewise.
21318 * expr.c (expand_constructor): Likewise.
21319 (expand_expr_real_1): Likewise.
21320
21321 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21322
21323 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21324 of parts.
21325
21326 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21327
21328 PR target/60039
21329 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21330
21331 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21332
21333 * config/arm/aarch-common-protos.h
21334 (alu_cost_table): Fix spelling of "extend".
21335 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21336
21337 2014-03-19 Richard Biener <rguenther@suse.de>
21338
21339 PR middle-end/60553
21340 * tree-core.h (tree_type_common): Re-order pointer members
21341 to reduce recursion depth during GC walks.
21342
21343 2014-03-19 Marek Polacek <polacek@redhat.com>
21344
21345 PR sanitizer/60569
21346 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21347 before accessing it.
21348
21349 2014-03-19 Richard Biener <rguenther@suse.de>
21350
21351 PR lto/59543
21352 * lto-streamer-in.c (input_function): In WPA stage do not drop
21353 debug stmts.
21354
21355 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21356
21357 PR tree-optimization/60559
21358 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21359 with build_zero_cst assignment.
21360
21361 2014-03-18 Kai Tietz <ktietz@redhat.com>
21362
21363 PR rtl-optimization/56356
21364 * sdbout.c (sdbout_parms): Verify that parms'
21365 incoming argument is valid.
21366 (sdbout_reg_parms): Likewise.
21367
21368 2014-03-18 Richard Henderson <rth@redhat.com>
21369
21370 PR target/60562
21371 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21372 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21373 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21374
21375 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21376
21377 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21378 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21379 Italicize plugin event names in description. Explain that
21380 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21381 Remind that no GCC functions should be called after PLUGIN_FINISH.
21382 Explain what pragmas with expansion are.
21383
21384 2014-03-18 Martin Liska <mliska@suse.cz>
21385
21386 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21387 gimple call statement is update.
21388 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21389 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21390
21391 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21392
21393 PR sanitizer/60557
21394 * ubsan.c (ubsan_instrument_unreachable): Call
21395 initialize_sanitizer_builtins.
21396 (ubsan_pass): Likewise.
21397
21398 PR sanitizer/60535
21399 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21400 varpool_finalize_decl instead of rest_of_decl_compilation.
21401
21402 2014-03-18 Richard Biener <rguenther@suse.de>
21403
21404 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21405 by using bitmap_and_compl instead of bitmap_and_compl_into.
21406 (df_rd_transfer_function): Likewise.
21407
21408 2014-03-18 Richard Biener <rguenther@suse.de>
21409
21410 * doc/lto.texi (fresolution): Fix typo.
21411
21412 2014-03-18 Richard Biener <rguenther@suse.de>
21413
21414 * doc/invoke.texi (flto): Update for changes in 4.9.
21415
21416 2014-03-18 Richard Biener <rguenther@suse.de>
21417
21418 * doc/loop.texi: Remove section on the removed lambda framework.
21419 Update loop docs with recent changes in preserving loop structure.
21420
21421 2014-03-18 Richard Biener <rguenther@suse.de>
21422
21423 * doc/lto.texi (-fresolution): Document.
21424
21425 2014-03-18 Richard Biener <rguenther@suse.de>
21426
21427 * doc/contrib.texi: Adjust my name.
21428
21429 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21430
21431 PR ipa/58721
21432 * internal-fn.c: Include diagnostic-core.h.
21433 (expand_BUILTIN_EXPECT): New function.
21434 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21435 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21436 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21437 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21438 IFN_BUILTIN_EXPECT.
21439 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21440 Revert 3 argument __builtin_expect code.
21441 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21442 * gimple-fold.c (gimple_fold_call): Likewise.
21443 * tree.h (fold_builtin_expect): New prototype.
21444 * builtins.c (build_builtin_expect_predicate): Add predictor
21445 argument, if non-NULL, create 3 argument __builtin_expect.
21446 (fold_builtin_expect): No longer static. Add ARG2 argument,
21447 pass it through to build_builtin_expect_predicate.
21448 (fold_builtin_2): Adjust caller.
21449 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21450 * internal-fn.def (BUILTIN_EXPECT): New.
21451
21452 2014-03-18 Tobias Burnus <burnus@net-b.de>
21453
21454 PR ipa/58721
21455 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21456 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21457 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21458
21459 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21460
21461 PR ipa/58721
21462 * predict.c (combine_predictions_for_bb): Fix up formatting.
21463 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21464 fill what it points to if non-NULL.
21465 (tree_predict_by_opcode): Adjust caller, use the predictor.
21466 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21467
21468 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21469
21470 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21471 proper constant for the store mode.
21472
21473 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21474
21475 * symtab.c (change_decl_assembler_name): Fix transparent alias
21476 chain construction.
21477
21478 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21479
21480 * config/aarch64/aarch64.c: Correct the comments about the
21481 aarch64 stack layout.
21482
21483 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21484
21485 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21486 check for GF_OMP_FOR_KIND_FOR.
21487
21488 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21489
21490 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21491 ymm and zmm register names.
21492
21493 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21494
21495 PR target/60516
21496 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21497 note creation for the 2010-08-31 changes.
21498
21499 2014-03-17 Marek Polacek <polacek@redhat.com>
21500
21501 PR middle-end/60534
21502 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21503 as -fno-tree-loop-vectorize.
21504 (expand_omp_simd): Likewise.
21505
21506 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21507
21508 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21509 (eligible_for_call_delay): New prototype.
21510 * config/sparc/sparc.c (tls_call_delay): Rename into...
21511 (eligible_for_call_delay): ...this. Return false if the instruction
21512 cannot be put in the delay slot of a branch.
21513 (eligible_for_restore_insn): Simplify.
21514 (eligible_for_return_delay): Return false if the instruction cannot be
21515 put in the delay slot of a branch and simplify.
21516 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21517 put in the delay slot of a branch.
21518 * config/sparc/sparc.md (fix_ut699): New attribute.
21519 (tls_call_delay): Delete.
21520 (in_call_delay): Reimplement.
21521 (eligible_for_sibcall_delay): Rename into...
21522 (in_sibcall_delay): ...this.
21523 (eligible_for_return_delay): Rename into...
21524 (in_return_delay): ...this.
21525 (in_branch_delay): Reimplement.
21526 (in_uncond_branch_delay): Delete.
21527 (in_annul_branch_delay): Delete.
21528
21529 2014-03-14 Richard Henderson <rth@redhat.com>
21530
21531 PR target/60525
21532 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21533 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21534 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21535 (floathi splitters): Remove.
21536 (float<SWI48x>xf2): New pattern.
21537 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21538 code that tried to handle DImode for 32-bit, but which was excluded
21539 by the pattern's condition. Drop allocation of stack temporary.
21540 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21541 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21542 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21543 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21544 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21545 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21546 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21547 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21548 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21549 (*float<SWI48x><X87MODEF>2_i387): Remove.
21550 (all float _with_temp splitters): Remove.
21551 (*float<SWI48x><MODEF>2_i387): New pattern.
21552 (*float<SWI48><MODEF>2_sse): New pattern.
21553 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21554 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21555
21556 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21557 Marek Polacek <polacek@redhat.com>
21558
21559 PR middle-end/60484
21560 * common.opt (dump_base_name_prefixed): New Variable.
21561 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21562 if x_dump_base_name_prefixed is already set, set it at the end.
21563
21564 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21565
21566 PR rtl-optimization/60508
21567 * lra-constraints.c (get_reload_reg): Add new parameter
21568 in_subreg_p.
21569 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21570 Pass the new parameter values.
21571
21572 2014-03-14 Richard Biener <rguenther@suse.de>
21573
21574 * common.opt: Revert unintented changes from r205065.
21575 * opts.c: Likewise.
21576
21577 2014-03-14 Richard Biener <rguenther@suse.de>
21578
21579 PR middle-end/60518
21580 * cfghooks.c (split_block): Properly adjust all loops the
21581 block was a latch of.
21582
21583 2014-03-14 Martin Jambor <mjambor@suse.cz>
21584
21585 PR lto/60461
21586 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21587 and simplify it.
21588
21589 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21590
21591 PR target/59396
21592 * config/avr/avr.c (avr_set_current_function): Pass function name
21593 through default_strip_name_encoding before sanity checking instead
21594 of skipping the first char of the assembler name.
21595
21596 2014-03-13 Richard Henderson <rth@redhat.com>
21597
21598 PR debug/60438
21599 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21600 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21601 * config/i386/i386-protos.h: Likewise.
21602 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21603 in the expander instead of a splitter.
21604 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21605 any possibility of requiring a memory.
21606 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21607 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21608 (fp branch splitters): Update for ix86_split_fp_branch.
21609 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21610 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21611 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21612 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21613 (*fop_<MODEF>_3_i387): Likewise.
21614 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21615 (splitters for the fop_* register patterns): Remove.
21616 (fscalexf4_i387): Rename from *fscalexf4_i387.
21617 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21618
21619 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21620
21621 PR tree-optimization/59779
21622 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21623 type for bitsize and maxsize instead of HOST_WIDE_INT.
21624
21625 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21626
21627 PR rtl-optimization/57320
21628 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21629 the CFG after thread_prologue_and_epilogue_insns.
21630
21631 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21632
21633 PR rtl-optimization/57189
21634 * lra-constraints.c (process_alt_operands): Disfavor spilling
21635 vector pseudos.
21636
21637 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21638
21639 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21640
21641 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21642
21643 PR tree-optimization/59025
21644 PR middle-end/60418
21645 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21646 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21647
21648 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21649
21650 PR target/60486
21651 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21652 calls of avr_out_plus_1.
21653
21654 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21655
21656 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21657 BB's single pred and update the father loop's latch info later.
21658
21659 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21660
21661 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21662 (VEC_M): Likewise.
21663 (VEC_N): Likewise.
21664 (VEC_R): Likewise.
21665 (VEC_base): Likewise.
21666 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21667 registers, we need to swap double words in little endian mode.
21668
21669 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21670 to be a container mode for 128-bit integer operations added in ISA
21671 2.07. Unlike TImode and PTImode, the preferred register set is
21672 the Altivec/VMX registers for the 128-bit operations.
21673
21674 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21675 declarations.
21676 (rs6000_split_128bit_ok_p): Likewise.
21677
21678 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21679 macros for creating ISA 2.07 normal and overloaded builtin
21680 functions with 3 arguments.
21681 (BU_P8V_OVERLOAD_3): Likewise.
21682 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21683 for use as overloaded functions.
21684 (VPERM_1TI_UNS): Likewise.
21685 (VSEL_1TI): Likewise.
21686 (VSEL_1TI_UNS): Likewise.
21687 (ST_INTERNAL_1ti): Likewise.
21688 (LD_INTERNAL_1ti): Likewise.
21689 (XXSEL_1TI): Likewise.
21690 (XXSEL_1TI_UNS): Likewise.
21691 (VPERM_1TI): Likewise.
21692 (VPERM_1TI_UNS): Likewise.
21693 (XXPERMDI_1TI): Likewise.
21694 (SET_1TI): Likewise.
21695 (LXVD2X_V1TI): Likewise.
21696 (STXVD2X_V1TI): Likewise.
21697 (VEC_INIT_V1TI): Likewise.
21698 (VEC_SET_V1TI): Likewise.
21699 (VEC_EXT_V1TI): Likewise.
21700 (EQV_V1TI): Likewise.
21701 (NAND_V1TI): Likewise.
21702 (ORC_V1TI): Likewise.
21703 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21704 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21705 overloaded builtin.
21706 (VADDUQM): Likewise.
21707 (VSUBCUQ): Likewise.
21708 (VADDEUQM): Likewise.
21709 (VADDECUQ): Likewise.
21710 (VSUBEUQM): Likewise.
21711 (VSUBECUQ): Likewise.
21712
21713 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21714 __int128_t and __uint128_t types.
21715 (__uint128_type): Likewise.
21716 (altivec_categorize_keyword): Add support for vector __int128_t,
21717 vector __uint128_t, vector __int128, and vector unsigned __int128
21718 as a container type for TImode operations that need to be done in
21719 VSX/Altivec registers.
21720 (rs6000_macro_to_expand): Likewise.
21721 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21722 to support 128-bit integer instructions vaddcuq, vadduqm,
21723 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21724 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21725
21726 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21727 for V1TImode, and set up preferences to use VSX/Altivec registers.
21728 Setup VSX reload handlers.
21729 (rs6000_debug_reg_global): Likewise.
21730 (rs6000_init_hard_regno_mode_ok): Likewise.
21731 (rs6000_preferred_simd_mode): Likewise.
21732 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21733 (easy_altivec_constant): Likewise.
21734 (output_vec_const_move): Likewise.
21735 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21736 simple move.
21737 (rs6000_expand_vector_extract): Likewise.
21738 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21739 addressing.
21740 (rs6000_const_vec): Add support for V1TImode.
21741 (rs6000_emit_le_vsx_load): Swap double words when loading or
21742 storing TImode/V1TImode.
21743 (rs6000_emit_le_vsx_store): Likewise.
21744 (rs6000_emit_le_vsx_move): Likewise.
21745 (rs6000_emit_move): Add support for V1TImode.
21746 (altivec_expand_ld_builtin): Likewise.
21747 (altivec_expand_st_builtin): Likewise.
21748 (altivec_expand_vec_init_builtin): Likewise.
21749 (altivec_expand_builtin): Likewise.
21750 (rs6000_init_builtins): Add support for V1TImode type. Add
21751 support for ISA 2.07 128-bit integer builtins. Define type names
21752 for the VSX/Altivec vector types.
21753 (altivec_init_builtins): Add support for overloaded vector
21754 functions with V1TImode type.
21755 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21756 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21757 external function.
21758 (rs6000_split_128bit_ok_p): Likewise.
21759 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21760 __int128_t and vector __uint128_t.
21761
21762 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21763 and mode attributes.
21764 (VSX_M): Likewise.
21765 (VSX_M2): Likewise.
21766 (VSm): Likewise.
21767 (VSs): Likewise.
21768 (VSr): Likewise.
21769 (VSv): Likewise.
21770 (VS_scalar): Likewise.
21771 (VS_double): Likewise.
21772 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21773
21774 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21775 we support the ISA 2.07 128-bit integer arithmetic instructions.
21776 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21777 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21778 and TImode types for use with the builtin functions.
21779 (V1TI_type_node): Likewise.
21780 (unsigned_V1TI_type_node): Likewise.
21781 (intTI_type_internal_node): Likewise.
21782 (uintTI_type_internal_node): Likewise.
21783
21784 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21785 128-bit builtin functions.
21786 (UNSPEC_VADDEUQM): Likewise.
21787 (UNSPEC_VADDECUQ): Likewise.
21788 (UNSPEC_VSUBCUQ): Likewise.
21789 (UNSPEC_VSUBEUQM): Likewise.
21790 (UNSPEC_VSUBECUQ): Likewise.
21791 (VM): Add V1TImode to vector mode iterators.
21792 (VM2): Likewise.
21793 (VI_unit): Likewise.
21794 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21795 (altivec_vaddcuq): Likewise.
21796 (altivec_vsubuqm): Likewise.
21797 (altivec_vsubcuq): Likewise.
21798 (altivec_vaddeuqm): Likewise.
21799 (altivec_vaddecuq): Likewise.
21800 (altivec_vsubeuqm): Likewise.
21801 (altivec_vsubecuq): Likewise.
21802
21803 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21804 mode iterators.
21805 (BOOL_128): Likewise.
21806 (BOOL_REGS_OUTPUT): Likewise.
21807 (BOOL_REGS_OP1): Likewise.
21808 (BOOL_REGS_OP2): Likewise.
21809 (BOOL_REGS_UNARY): Likewise.
21810 (BOOL_REGS_AND_CR0): Likewise.
21811
21812 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21813 128-bit integer builtin support.
21814 (vec_vadduqm): Likewise.
21815 (vec_vaddecuq): Likewise.
21816 (vec_vaddeuqm): Likewise.
21817 (vec_vsubecuq): Likewise.
21818 (vec_vsubeuqm): Likewise.
21819 (vec_vsubcuq): Likewise.
21820 (vec_vsubuqm): Likewise.
21821
21822 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21823 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21824 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21825 128-bit integer add/subtract to ISA 2.07.
21826
21827 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21828
21829 * config/arc/arc.c (arc_predicate_delay_insns):
21830 Fix third argument passed to conditionalize_nonjump.
21831
21832 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21833
21834 * config/aarch64/aarch64-builtins.c
21835 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21836 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21837 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21838 instead of __builtin_lfloor.
21839 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21840
21841 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21842
21843 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21844 (tree_ssa_ifcombine_bb_1): New function.
21845 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21846 is an empty forwarder block to then_bb or vice versa and then_bb
21847 and else_bb are effectively swapped.
21848
21849 2014-03-12 Christian Bruel <christian.bruel@st.com>
21850
21851 PR target/60264
21852 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21853 REG_CFA_DEF_CFA note.
21854 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21855 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21856
21857 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21858
21859 PR tree-optimization/60454
21860 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21861
21862 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21863
21864 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21865 Do not define target_cpu_default2 to generic.
21866 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21867 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21868 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21869
21870 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21871 Marc Glisse <marc.glisse@inria.fr>
21872
21873 PR tree-optimization/60502
21874 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21875 instead of build_low_bits_mask.
21876
21877 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21878
21879 PR middle-end/60482
21880 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21881 if there are multiple uses, but op doesn't live on E edge.
21882 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21883 clobber stmts before __builtin_unreachable.
21884
21885 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
21886
21887 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21888 hard_frame_pointer_rtx.
21889 * cse.c (cse_insn): Remove volatile check.
21890 * cselib.c (cselib_process_insn): Likewise.
21891 * dse.c (scan_insn): Likewise.
21892
21893 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21894
21895 * config/arc/arc.c (conditionalize_nonjump): New function,
21896 broken out of ...
21897 (arc_ifcvt): ... this.
21898 (arc_predicate_delay_insns): Use it.
21899
21900 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21901
21902 * config/arc/predicates.md (extend_operand): During/after reload,
21903 allow const_int_operand.
21904 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21905 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
21906 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21907 to "i".
21908 (umulsi3_highpart_i): Likewise.
21909
21910 2014-03-11 Richard Biener <rguenther@suse.de>
21911
21912 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21913 Add asserts to guard possible wrong-code bugs.
21914
21915 2014-03-11 Richard Biener <rguenther@suse.de>
21916
21917 PR tree-optimization/60429
21918 PR tree-optimization/60485
21919 * tree-ssa-structalias.c (set_union_with_increment): Properly
21920 take into account all fields that overlap the shifted vars.
21921 (do_sd_constraint): Likewise.
21922 (do_ds_constraint): Likewise.
21923 (get_constraint_for_ptr_offset): Likewise.
21924
21925 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
21926
21927 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21928 (nios2_compute_frame_layout):
21929 Add calculation of cfun->machine->fp_save_offset.
21930 (nios2_expand_prologue): Correct setting of frame pointer register
21931 in prologue.
21932 (nios2_expand_epilogue): Update recovery of stack pointer from
21933 frame pointer accordingly.
21934 (nios2_initial_elimination_offset): Update calculation of offset
21935 for eliminating to HARD_FRAME_POINTER_REGNUM.
21936
21937 2014-03-10 Jakub Jelinek <jakub@redhat.com>
21938
21939 PR ipa/60457
21940 * ipa.c (symtab_remove_unreachable_nodes): Don't call
21941 cgraph_get_create_node on VAR_DECLs.
21942
21943 2014-03-10 Richard Biener <rguenther@suse.de>
21944
21945 PR middle-end/60474
21946 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21947
21948 2014-03-08 Douglas B Rupp <rupp@gnat.com>
21949
21950 * config/vms/vms.opt (vms_float_format): New variable.
21951
21952 2014-03-08 Tobias Burnus <burnus@net-b.de>
21953
21954 * doc/invoke.texi (-fcilkplus): Update implementation status.
21955
21956 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
21957 Richard Biener <rguenther@suse.de>
21958
21959 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21960 consistently accross all TUs.
21961 (run_gcc): Enable -fshort-double automatically at link at link-time
21962 and disallow override.
21963
21964 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
21965
21966 PR target/58271
21967 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21968 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21969 if they can't be used.
21970
21971 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21972
21973 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21974 for Solaris 11/x86 ld.
21975 * configure: Regenerate.
21976
21977 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21978
21979 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21980 (LIB_TLS_SPEC): Save as ld_tls_libs.
21981 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21982 (HAVE_AS_IX86_TLSLDM): New test.
21983 * configure, config.in: Regenerate.
21984 * config/i386/i386.c (legitimize_tls_address): Fall back to
21985 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
21986 cannot support TLS_MODEL_LOCAL_DYNAMIC.
21987 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
21988 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
21989
21990 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
21991
21992 * common.opt (fira-loop-pressure): Mark as optimization.
21993
21994 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
21995
21996 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
21997 an OpenMP mappable type.
21998
21999 2014-03-06 Matthias Klose <doko@ubuntu.com>
22000
22001 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22002 MULTILIB_OSDIRNAMES is not defined.
22003
22004 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22005 Meador Inge <meadori@codesourcery.com>
22006
22007 PR target/58595
22008 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22009 (arm_legitimize_address): Call legitimize_tls_address for any
22010 arm_tls_referenced_p expression, handle constant addend. Call it
22011 before testing for !TARGET_ARM.
22012 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22013
22014 2014-03-06 Richard Biener <rguenther@suse.de>
22015
22016 PR middle-end/60445
22017 PR lto/60424
22018 PR lto/60427
22019 Revert
22020 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22021
22022 * tree-streamer.c (record_common_node): Assert we don't record
22023 nodes with type double.
22024 (preload_common_node): Skip type double, complex double and double
22025 pointer since it is now frontend dependent due to fshort-double option.
22026
22027 2014-03-06 Richard Biener <rguenther@suse.de>
22028
22029 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22030 or -fno-lto is specified and the linker has full plugin support.
22031 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22032 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22033 * lto-wrapper.c (merge_and_complain): Merge compile-time
22034 optimization levels.
22035 (run_gcc): And pass it through to the link options.
22036
22037 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22038
22039 PR debug/60381
22040 Revert:
22041 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22042 PR debug/59992
22043 * cselib.c (remove_useless_values): Skip to avoid quadratic
22044 behavior if the condition moved from...
22045 (cselib_process_insn): ... here holds.
22046
22047 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22048
22049 PR plugins/59335
22050 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22051 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22052
22053 PR plugins/59335
22054 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22055 (TM_H): Add x86-tune.def.
22056
22057 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22058
22059 * config/aarch64/aarch64.c (generic_tunings):
22060 Use cortexa57_extra_costs.
22061
22062 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22063
22064 PR lto/60404
22065 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22066 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22067 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22068 cost for in_lto_p.
22069
22070 2014-03-04 Heiher <r@hev.cc>
22071
22072 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22073 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22074
22075 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22076
22077 * config/i386/predicates.md (const2356_operand): Change to ...
22078 (const2367_operand): ... this.
22079 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22080 const2367_operand.
22081 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22082 (*avx512pf_scatterpf<mode>sf): Ditto.
22083 (avx512pf_scatterpf<mode>df): Ditto.
22084 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22085 (*avx512pf_scatterpf<mode>df): Ditto.
22086 * config/i386/i386.c (ix86_expand_builtin): Update
22087 incorrect hint operand error message.
22088
22089 2014-03-04 Richard Biener <rguenther@suse.de>
22090
22091 * lto-section-in.c (lto_get_section_data): Fix const cast.
22092
22093 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22094
22095 * tree-streamer.c (record_common_node): Assert we don't record
22096 nodes with type double.
22097 (preload_common_node): Skip type double, complex double and double
22098 pointer since it is now frontend dependent due to fshort-double option.
22099
22100 2014-03-04 Richard Biener <rguenther@suse.de>
22101
22102 PR lto/60405
22103 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22104 (lto_input_toplevel_asms): Likewise.
22105 * lto-section-in.c (lto_get_section_data): Instead do it here
22106 for every section.
22107
22108 2014-03-04 Richard Biener <rguenther@suse.de>
22109
22110 PR tree-optimization/60382
22111 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22112 dead PHIs a reduction.
22113
22114 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22115
22116 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22117 hint value.
22118 (_mm_prefetch): Move out of GCC target("sse") pragma.
22119 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22120 GCC target("prfchw") pragma.
22121 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22122 for locality <= 2.
22123 * config/i386/i386.c (ix86_option_override_internal): Enable
22124 -mprfchw with -mprefetchwt1.
22125
22126 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22127
22128 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22129 Mark as varying.
22130
22131 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22132
22133 * opts.h (CL_PCH_IGNORE): Define.
22134 * targhooks.c (option_affects_pch_p):
22135 Return false for options that have CL_PCH_IGNORE set.
22136 * opt-functions.awk: Process PchIgnore.
22137 * doc/options.texi: Document PchIgnore.
22138
22139 * config/arc/arc.opt (misize): Add PchIgnore property.
22140
22141 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22142
22143 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22144 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22145 constraint on constants to permit them being loaded into
22146 GENERAL_REGS or BASE_REGS.
22147
22148 2014-03-03 Nick Clifton <nickc@redhat.com>
22149
22150 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22151 anti-cacnonical alternatives.
22152 (negandhi3_real): New pattern.
22153 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22154
22155 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22156
22157 * config/avr/avr-mcus.def: Remove atxmega16x1.
22158 * config/avr/avr-tables.opt: Regenerate.
22159 * config/avr/t-multilib: Regenerate.
22160 * doc/avr-mmcu.texi: Regenerate.
22161
22162 2014-03-03 Tobias Grosser <tobias@grosser.es>
22163 Mircea Namolaru <mircea.namolaru@inria.fr>
22164
22165 PR tree-optimization/58028
22166 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22167 scalar dimensions.
22168
22169 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22170
22171 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22172 not handled by recognizers.
22173
22174 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22175
22176 PR middle-end/60175
22177 * function.c (expand_function_end): Don't emit
22178 clobber_return_register sequence if clobber_after is a BARRIER.
22179 * cfgexpand.c (construct_exit_block): Append instructions before
22180 return_label to prev_bb.
22181
22182 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22183
22184 * config/rs6000/constraints.md: Document reserved use of "wc".
22185
22186 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22187
22188 PR ipa/60150
22189 * ipa.c (function_and_variable_visibility): When dissolving comdat
22190 group, also set all symbols to local.
22191
22192 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22193
22194 PR ipa/60306
22195
22196 Revert:
22197 2013-12-14 Jan Hubicka <jh@suse.cz>
22198 PR middle-end/58477
22199 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22200
22201 2014-03-02 Jon Beniston <jon@beniston.com>
22202
22203 PR bootstrap/48230
22204 PR bootstrap/50927
22205 PR bootstrap/52466
22206 PR target/46898
22207 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22208 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22209 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22210 (simple_return, *simple_return): New patterns
22211 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22212 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22213
22214 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22215
22216 * dwarf2out.c (gen_subprogram_die): Tidy.
22217
22218 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22219
22220 PR target/60071
22221 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22222 (*mov_t_msb_neg_negc): ... this new insn.
22223
22224 2014-02-28 Jason Merrill <jason@redhat.com>
22225
22226 PR c++/58678
22227 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22228 function.
22229
22230 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22231
22232 PR c++/60314
22233 * dwarf2out.c (decltype_auto_die): New static.
22234 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22235 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22236 (is_cxx_auto): Likewise.
22237
22238 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22239
22240 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22241 we are not using general regs only.
22242
22243 2014-02-28 Richard Biener <rguenther@suse.de>
22244
22245 PR target/60280
22246 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22247 previous fix and only allow to remove trivial pre-headers
22248 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22249 (remove_forwarder_block): Properly update the latch of a loop.
22250
22251 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22252
22253 PR debug/59992
22254 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22255 (cselib_preserved_hash_table): New.
22256 (preserve_constants_and_equivs): Move preserved vals to it.
22257 (cselib_find_slot): Look it up first.
22258 (cselib_init): Initialize it.
22259 (cselib_finish): Release it.
22260 (dump_cselib_table): Dump it.
22261
22262 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22263
22264 PR debug/59992
22265 * cselib.c (remove_useless_values): Skip to avoid quadratic
22266 behavior if the condition moved from...
22267 (cselib_process_insn): ... here holds.
22268
22269 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22270
22271 PR debug/57232
22272 * var-tracking.c (vt_initialize): Apply the same condition to
22273 preserve the CFA base value.
22274
22275 2014-02-28 Joey Ye <joey.ye@arm.com>
22276
22277 PR target/PR60169
22278 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22279 if reload in progress or completed.
22280
22281 2014-02-28 Tobias Burnus <burnus@net-b.de>
22282
22283 PR middle-end/60147
22284 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22285 NAMELIST_DECL.
22286
22287 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22288
22289 * doc/tm.texi.in (Condition Code Status): Update documention for
22290 relative locations of cc0-setter and cc0-user.
22291
22292 2014-02-27 Jeff Law <law@redhat.com>
22293
22294 PR rtl-optimization/52714
22295 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22296 into two independent simple sets, if I3 is a jump, ensure the
22297 pattern we place into I3 is a (set (pc) ...).
22298
22299 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22300 Jeff Law <law@redhat.com>
22301
22302 PR rtl-optimization/49847
22303 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22304 are in different blocks.
22305 * doc/tm.texi (Condition Code Status): Update documention for
22306 relative locations of cc0-setter and cc0-user.
22307
22308 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22309
22310 PR target/59222
22311 * lra.c (lra_emit_add): Check SUBREG too.
22312
22313 2014-02-27 Andreas Schwab <schwab@suse.de>
22314
22315 * config/m68k/m68k.c (m68k_option_override): Disable
22316 -flive-range-shrinkage for classic m68k.
22317 (m68k_override_options_after_change): Likewise.
22318
22319 2014-02-27 Marek Polacek <polacek@redhat.com>
22320
22321 PR middle-end/59223
22322 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22323 -Wmaybe-uninitialized.
22324
22325 2014-02-27 Alan Modra <amodra@gmail.com>
22326
22327 PR target/57936
22328 * reload1.c (emit_input_reload_insns): When reload_override_in,
22329 set old to rl->in_reg when rl->in_reg is a subreg.
22330
22331 2014-02-26 Richard Biener <rguenther@suse.de>
22332
22333 PR bootstrap/60343
22334 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22335
22336 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22337
22338 * common/config/i386/predicates.md (const1256_operand): Remove.
22339 (const2356_operand): New.
22340 (const_1_to_2_operand): Remove.
22341 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22342 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22343 (*avx512pf_gatherpf<mode>sf): Ditto.
22344 (avx512pf_gatherpf<mode>df): Ditto.
22345 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22346 (*avx512pf_gatherpf<mode>df): Ditto.
22347 (avx512pf_scatterpf<mode>sf): Ditto.
22348 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22349 (*avx512pf_scatterpf<mode>sf): Ditto.
22350 (avx512pf_scatterpf<mode>df): Ditto.
22351 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22352 (*avx512pf_scatterpf<mode>df): Ditto.
22353 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22354
22355 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22356
22357 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22358 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22359 (_mm512_mask_testn_epi64_mask): Move to ...
22360 * config/i386/avx512cdintrin.h: Here.
22361 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22362 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22363 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22364 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22365 TARGET_AVX512F from TARGET_AVX512CD.
22366
22367 2014-02-26 Richard Biener <rguenther@suse.de>
22368
22369 PR ipa/60327
22370 * ipa.c (walk_polymorphic_call_targets): Properly guard
22371 call to inline_update_overall_summary.
22372
22373 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22374
22375 PR target/60280
22376 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22377 and latches only if requested. Fix latch if it is removed.
22378 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22379 LOOPS_HAVE_PREHEADERS.
22380
22381 2014-02-25 Andrew Pinski <apinski@cavium.com>
22382
22383 * builtins.c (expand_builtin_thread_pointer): Create a new target
22384 when the target is NULL.
22385
22386 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22387
22388 PR rtl-optimization/60317
22389 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22390 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22391 * lra-assigns.c: Include params.h.
22392 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22393 other reload pseudos considerations.
22394
22395 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22396
22397 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22398 to use canonical form for nor<mode>3.
22399
22400 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22401
22402 PR target/55426
22403 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22404 conversions.
22405
22406 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22407
22408 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22409 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22410 (ix86_handle_option): Handle OPT_mprefetchwt1.
22411 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22412 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22413 PREFETCHWT1 CPUID.
22414 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22415 OPTION_MASK_ISA_PREFETCHWT1.
22416 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22417 (PTA_PREFETCHWT1): New.
22418 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22419 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22420 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22421 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22422 (*prefetch_avx512pf_<mode>_: Change into ...
22423 (*prefetch_prefetchwt1_<mode>: This.
22424 * config/i386/i386.opt (mprefetchwt1): New.
22425 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22426 (_mm_prefetch): Handle intent to write.
22427 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22428
22429 2014-02-25 Richard Biener <rguenther@suse.de>
22430
22431 PR middle-end/60291
22432 * emit-rtl.c (mem_attrs_htab): Remove.
22433 (mem_attrs_htab_hash): Likewise.
22434 (mem_attrs_htab_eq): Likewise.
22435 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22436 (init_emit_once): Do not allocate mem_attrs_htab.
22437
22438 2014-02-25 Richard Biener <rguenther@suse.de>
22439
22440 PR lto/60319
22441 * lto-opts.c (lto_write_options): Output non-explicit conservative
22442 -fwrapv, -fno-trapv and -fno-strict-overflow.
22443 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22444 (run_gcc): And pass them through.
22445
22446 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22447
22448 * sel-sched.c (calculate_new_fences): New parameter ptime.
22449 Calculate it as a maximum over all fence cycles.
22450 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22451 Print the final schedule timing when sched_verbose.
22452
22453 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22454
22455 PR rtl-optimization/60292
22456 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22457 bit fot the fence instruction.
22458
22459 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22460
22461 * calls.h: Fix typo in comment.
22462
22463 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22464
22465 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22466 adjusting offsetable addresses.
22467
22468 2014-02-24 Guozhi Wei <carrot@google.com>
22469
22470 * sparseset.h (sparseset_pop): Fix the wrong index.
22471
22472 2014-02-24 Walter Lee <walt@tilera.com>
22473
22474 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22475 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22476 triplet.
22477 * common/config/tilegx/tilegx-common.c
22478 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22479 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22480 (LINK_SPEC): Ditto.
22481 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22482 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22483 (tilegx_gimplify_va_arg_expr): Handle big endian.
22484 (tilegx_expand_unaligned_load): Ditto.
22485 (tilegx_expand_unaligned_store): Ditto.
22486 (TARGET_RETURN_IN_MSB): New.
22487 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22488 (TARGET_ENDIAN_DEFAULT): New.
22489 (TARGET_BIG_ENDIAN): Handle big endian.
22490 (BYTES_BIG_ENDIAN): Ditto.
22491 (WORDS_BIG_ENDIAN): Ditto.
22492 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22493 (ENDIAN_SPEC): New.
22494 (EXTRA_SPECS): New.
22495 * config/tilegx/tilegx.md (extv): Handle big endian.
22496 (extzv): Ditto.
22497 (insn_st<n>): Ditto.
22498 (insn_st<n>_add<bitsuffix>): Ditto.
22499 (insn_stnt<n>): Ditto.
22500 (insn_stnt<n>_add<bitsuffix>):Ditto.
22501 (vec_interleave_highv8qi): Handle big endian.
22502 (vec_interleave_highv8qi_be): New.
22503 (vec_interleave_highv8qi_le): New.
22504 (insn_v1int_h): Handle big endian.
22505 (vec_interleave_lowv8qi): Handle big endian.
22506 (vec_interleave_lowv8qi_be): New.
22507 (vec_interleave_lowv8qi_le): New.
22508 (insn_v1int_l): Handle big endian.
22509 (vec_interleave_highv4hi): Handle big endian.
22510 (vec_interleave_highv4hi_be): New.
22511 (vec_interleave_highv4hi_le): New.
22512 (insn_v2int_h): Handle big endian.
22513 (vec_interleave_lowv4hi): Handle big endian.
22514 (vec_interleave_lowv4hi_be): New.
22515 (vec_interleave_lowv4hi_le): New.
22516 (insn_v2int_l): Handle big endian.
22517 (vec_interleave_highv2si): Handle big endian.
22518 (vec_interleave_highv2si_be): New.
22519 (vec_interleave_highv2si_le): New.
22520 (insn_v4int_h): Handle big endian.
22521 (vec_interleave_lowv2si): Handle big endian.
22522 (vec_interleave_lowv2si_be): New.
22523 (vec_interleave_lowv2si_le): New.
22524 (insn_v4int_l): Handle big endian.
22525 * config/tilegx/tilegx.opt (mbig-endian): New option.
22526 (mlittle-endian): New option.
22527 * doc/install.texi: Document tilegxbe-linux.
22528 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22529
22530 2014-02-24 Martin Jambor <mjambor@suse.cz>
22531
22532 PR ipa/60266
22533 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22534 there are no parameter descriptors.
22535
22536 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22537
22538 PR rtl-optimization/60268
22539 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22540 initialization to ...
22541 (sched_rgn_init): ... here.
22542 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22543
22544 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22545
22546 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22547 names.
22548
22549 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22550
22551 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22552 definition.
22553
22554 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22555
22556 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22557 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22558
22559 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22560
22561 * config/microblaze/predicates.md: Add cmp_op predicate.
22562 * config/microblaze/microblaze.md: Add branch_compare instruction
22563 which uses cmp_op predicate and emits cmp insn before branch.
22564 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22565 to microblaze_expand_conditional_branch and consolidate logic.
22566 (microblaze_expand_conditional_branch): emit branch_compare
22567 insn instead of handling cmp op separate from branch insn.
22568
22569 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22570
22571 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22572 to permit subregs.
22573
22574 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22575
22576 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22577 define_insn with define_expand and new define_insn
22578 *altivec_lve<VI_char>x_internal.
22579 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22580 and new define_insn *altivec_stve<VI_char>x_internal.
22581 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22582 prototype.
22583 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22584 lve*x built-ins.
22585 (altivec_expand_stvex_be): New function.
22586
22587 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22588
22589 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22590 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22591 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22592 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22593
22594 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22595
22596 PR target/60298
22597 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22598 instead of emit_move_insn.
22599
22600 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22601
22602 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22603 vspltw with vsldoi.
22604 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22605 gen_altivec_vsumsws.
22606
22607 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22608
22609 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22610 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22611 (altivec_lvxl_<mode>): New define_expand incorporating
22612 -maltivec=be semantics where needed.
22613 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22614 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22615 semantics where needed.
22616 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22617 (altivec_stvx_<mode>): New define_expand incorporating
22618 -maltivec=be semantics where needed.
22619 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22620 VM2 iterator instead of V4SI.
22621 (altivec_stvxl_<mode>): New define_expand incorporating
22622 -maltivec=be semantics where needed.
22623 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22624 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22625 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22626 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22627 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22628 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22629 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22630 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22631 ALTIVEC_BUILTIN_STVXL.
22632 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22633 (altivec_expand_stvx_be): Likewise.
22634 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22635 (altivec_expand_lvx_be): Likewise.
22636 (altivec_expand_stvx_be): Likewise.
22637 (altivec_expand_builtin): Add cases for
22638 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22639 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22640 (altivec_init_builtins): Add definitions for
22641 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22642 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22643
22644 2014-02-21 Catherine Moore <clm@codesourcery.com>
22645
22646 * doc/invoke.texi (mvirt, mno-virt): Document.
22647 * config/mips/mips.opt (mvirt): New option.
22648 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22649
22650 2014-02-21 Richard Biener <rguenther@suse.de>
22651
22652 PR tree-optimization/60276
22653 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22654 (STMT_VINFO_MIN_NEG_DIST): New macro.
22655 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22656 STMT_VINFO_MIN_NEG_DIST.
22657 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22658 made for negative dependence distances still hold.
22659
22660 2014-02-21 Richard Biener <rguenther@suse.de>
22661
22662 PR middle-end/60291
22663 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22664 DECL_INITIAL for globals not in the current function context.
22665
22666 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22667
22668 PR tree-optimization/56490
22669 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22670 * tree-ssa-uninit.c: Include params.h.
22671 (compute_control_dep_chain): Add num_calls argument, return false
22672 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22673 num_calls to recursive call.
22674 (find_predicates): Change dep_chain into normal array,
22675 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22676 variable and adjust compute_control_dep_chain caller.
22677 (find_def_preds): Likewise.
22678
22679 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22680
22681 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22682 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22683
22684 2014-02-21 Nick Clifton <nickc@redhat.com>
22685
22686 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22687 (pushhi1): Likewise.
22688 (popqi1): Add mode to pre_dec.
22689 (pophi1): Likewise.
22690
22691 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22692
22693 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22694 mode for mask of V8SFmode permutation.
22695
22696 2014-02-20 Richard Henderson <rth@redhat.com>
22697
22698 PR c++/60272
22699 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22700 a new pseudo for OLDVAL.
22701
22702 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22703
22704 PR target/57896
22705 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22706 gen_reg_rtx if d->testing_p.
22707 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22708 if d->testing_p and we will certainly return true.
22709 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22710 if d->testing_p.
22711
22712 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22713
22714 * emit-rtl.c (gen_reg_rtx): Assert that
22715 crtl->emit.regno_pointer_align_length is non-zero.
22716
22717 2014-02-20 Richard Henderson <rth@redhat.com>
22718
22719 PR c++/60272
22720 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22721 on failure the store back into EXPECT.
22722
22723 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22724 Sandra Loosemore <sandra@codesourcery.com>
22725
22726 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22727 * config/nios2/nios2.c (nios2_function_profiler): Add
22728 -fPIC (flag_pic == 2) support.
22729 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22730 (nios2_large_offset_p): New function.
22731 (nios2_unspec_reloc_p): Move up position, update to use
22732 nios2_large_offset_p.
22733 (nios2_unspec_address): Remove function.
22734 (nios2_unspec_offset): New function.
22735 (nios2_large_got_address): New function.
22736 (nios2_got_address): Add large offset support.
22737 (nios2_legitimize_tls_address): Update usage of removed and new
22738 functions.
22739 (nios2_symbol_binds_local_p): New function.
22740 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22741 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22742 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22743 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22744 processing for (const (unspec ...)).
22745 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22746
22747 2014-02-20 Richard Biener <rguenther@suse.de>
22748
22749 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22750 doing the substitution.
22751 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22752
22753 2014-02-20 Martin Jambor <mjambor@suse.cz>
22754
22755 PR ipa/55260
22756 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22757 info when checking whether lattices are bottom.
22758
22759 2014-02-20 Richard Biener <rguenther@suse.de>
22760
22761 PR middle-end/60221
22762 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22763 regions at -O0.
22764
22765 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22766
22767 PR ipa/58555
22768 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22769 parameter specifying the scaling.
22770 (inline_call): Update.
22771 (want_inline_recursively): Guard division by zero.
22772 (recursive_inlining): Update.
22773 * ipa-inline.h (clone_inlined_nodes): Update.
22774
22775 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22776
22777 PR target/60204
22778 * config/i386/i386.c (classify_argument): Pass structures of size
22779 64 bytes or less in register.
22780
22781 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22782 Kirill Yukhin <kirill.yukhin@intel.com>
22783
22784 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22785 (_mm_rcp28_round_ss): Ditto.
22786 (_mm_rsqrt28_round_sd): Ditto.
22787 (_mm_rsqrt28_round_ss): Ditto.
22788 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22789 (_mm_rcp14_round_ss): Ditto.
22790 (_mm_rsqrt14_round_sd): Ditto.
22791 (_mm_rsqrt14_round_ss): Ditto.
22792 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22793 the first input operand, get rid of match_dup.
22794 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22795 attribute to sse.
22796 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22797 Ditto.
22798 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22799 operand as the first input operand, set type attribute.
22800 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22801 Set type attribute.
22802 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22803 operand as the first input operand, set type attribute.
22804
22805 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22806
22807 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22808 bit of zero.
22809
22810 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22811
22812 PR target/60207
22813 * config/i386/i386.c (construct_container): Remove TFmode check
22814 for X86_64_INTEGER_CLASS.
22815
22816 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22817
22818 PR target/59794
22819 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22820 only when -Wpsabi is enabled.
22821
22822 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22823
22824 PR target/59799
22825 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22826 passing arrays in registers are the same as for structs, so remove the
22827 special case for them.
22828
22829 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22830
22831 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22832 destination type, extract only the valid bits if the source type is not
22833 integral and has a different mode.
22834
22835 2014-02-19 Richard Biener <rguenther@suse.de>
22836
22837 PR ipa/60243
22838 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22839 for all calls.
22840
22841 2014-02-19 Richard Biener <rguenther@suse.de>
22842
22843 PR ipa/60243
22844 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22845 (ipa_modify_call_arguments): Emit an argument load explicitely and
22846 preserve virtual SSA form there and for the replacement call.
22847 Do not update SSA form nor free dominance info.
22848
22849 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22850
22851 * ipa.c (function_and_variable_visibility): Also clear WEAK
22852 flag when disolving COMDAT_GROUP.
22853
22854 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22855
22856 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22857 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22858 not devirtualizing.
22859 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22860 do more sanity checks.
22861 (detect_type_change): Return true when giving up early.
22862 (compute_complex_assign_jump_func): Fix type parameter of
22863 ipa_set_ancestor_jf.
22864 (compute_complex_ancestor_jump_func): Likewise.
22865 (update_jump_functions_after_inlining): Fix updating of
22866 ancestor function.
22867 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22868
22869 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22870
22871 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22872 inline clones when edge disappears.
22873
22874 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22875
22876 PR target/60203
22877 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22878 Split 64-bit moves into 2 patterns. Do not allow the use of
22879 direct move for TDmode in little endian, since the decimal value
22880 has little endian bytes within a word, but the 64-bit pieces are
22881 ordered in a big endian fashion, and normal subreg's of TDmode are
22882 not allowed.
22883 (mov<mode>_64bit_dm): Likewise.
22884 (movtd_64bit_nodm): Likewise.
22885
22886 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22887
22888 PR tree-optimization/60174
22889 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22890 statement of an SSA_NAME that occurs in an abnormal PHI node.
22891
22892 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22893
22894 PR sanitizer/60142
22895 * final.c (SEEN_BB): Remove.
22896 (SEEN_NOTE, SEEN_EMITTED): Renumber.
22897 (final_scan_insn): Don't force_source_line on second
22898 NOTE_INSN_BASIC_BLOCK.
22899
22900 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
22901
22902 PR target/60205
22903 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22904 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22905 (type_natural_mode): Warn ABI change when %zmm register is not
22906 available for AVX512F vector value passing.
22907
22908 2014-02-18 Kai Tietz <ktietz@redhat.com>
22909
22910 PR target/60193
22911 * config/i386/i386.c (ix86_expand_prologue): Use value in
22912 rax register as displacement when restoring %r10 or %rax.
22913 Fix wrong offset when restoring both registers.
22914
22915 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22916
22917 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22918 assertion with conditional return.
22919
22920 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22921 Uros Bizjak <ubizjak@gmail.com>
22922
22923 PR driver/60233
22924 * config/i386/driver-i386.c (host_detect_local_cpu): If
22925 YMM state is not saved by the OS, also clear has_f16c. Move
22926 CPUID 0x80000001 handling before YMM state saving checking.
22927
22928 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
22929
22930 PR rtl-optimization/58960
22931 * haifa-sched.c (alloc_global_sched_pressure_data): New,
22932 factored out from ...
22933 (sched_init): ... here.
22934 (free_global_sched_pressure_data): New, factored out from ...
22935 (sched_finish): ... here.
22936 * sched-int.h (free_global_sched_pressure_data): Declare.
22937 * sched-rgn.c (nr_regions_initial): New static global.
22938 (haifa_find_rgns): Initialize it.
22939 (schedule_region): Disable sched-pressure for the newly
22940 generated regions.
22941
22942 2014-02-17 Richard Biener <rguenther@suse.de>
22943
22944 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22945 release SSA defs of pattern stmts.
22946
22947 2014-02-17 Richard Biener <rguenther@suse.de>
22948
22949 * tree-inline.c (expand_call_inline): Release the virtual
22950 operand defined by the call we are about to inline.
22951
22952 2014-02-17 Richard Biener <rguenther@suse.de>
22953
22954 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22955
22956 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
22957 Ilya Tocar <ilya.tocar@intel.com>
22958
22959 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22960 arguments order in builtin.
22961 (_mm512_permutexvar_epi64): Ditto.
22962 (_mm512_mask_permutexvar_epi64): Ditto
22963 (_mm512_maskz_permutexvar_epi32): Ditto
22964 (_mm512_permutexvar_epi32): Ditto
22965 (_mm512_mask_permutexvar_epi32): Ditto
22966
22967 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22968
22969 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22970 (p8_vmrgow): Likewise.
22971
22972 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22973
22974 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22975 endian targets.
22976
22977 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22978
22979 PR target/60203
22980 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22981 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22982 into 64-bit and 32-bit moves. On 64-bit moves, add support for
22983 using direct move instructions on ISA 2.07. Also adjust
22984 instruction length for 64-bit.
22985 (mov<mode>_64bit, TFmode/TDmode): Likewise.
22986 (mov<mode>_32bit, TFmode/TDmode): Likewise.
22987
22988 2014-02-15 Alan Modra <amodra@gmail.com>
22989
22990 PR target/58675
22991 PR target/57935
22992 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22993 find_replacement on parts of insn rtl that might be reloaded.
22994
22995 2014-02-15 Richard Biener <rguenther@suse.de>
22996
22997 PR tree-optimization/60183
22998 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
22999 (tree_ssa_phiprop): Calculate and free post-dominators.
23000
23001 2014-02-14 Jeff Law <law@redhat.com>
23002
23003 PR rtl-optimization/60131
23004 * ree.c (get_extended_src_reg): New function.
23005 (combine_reaching_defs): Use it rather than assuming location of REG.
23006 (find_and_remove_re): Verify first operand of extension is
23007 a REG before adding the insns to the copy list.
23008
23009 2014-02-14 Roland McGrath <mcgrathr@google.com>
23010
23011 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23012 * configure: Regenerated.
23013 * config.in: Regenerated.
23014 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23015 instead of ASM_SHORT.
23016
23017 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23018 Richard Earnshaw <rearnsha@arm.com>
23019
23020 PR rtl-optimization/59535
23021 * lra-constraints.c (process_alt_operands): Encourage alternative
23022 when unassigned pseudo class is superset of the alternative class.
23023 (inherit_reload_reg): Don't inherit when optimizing for code size.
23024 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23025 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23026 modes not less than 4 for Thumb1.
23027
23028 2014-02-14 Kyle McMartin <kyle@redhat.com>
23029
23030 PR pch/60010
23031 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23032
23033 2014-02-14 Richard Biener <rguenther@suse.de>
23034
23035 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23036 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23037 Do not strip INDIRECT_REFs.
23038
23039 2014-02-14 Richard Biener <rguenther@suse.de>
23040
23041 PR lto/60179
23042 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23043 DECL_FUNCTION_SPECIFIC_TARGET.
23044 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23045 * tree-streamer-out.c (pack_ts_target_option): Remove.
23046 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23047 (write_ts_function_decl_tree_pointers): Do not stream
23048 DECL_FUNCTION_SPECIFIC_TARGET.
23049 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23050 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23051 (lto_input_ts_function_decl_tree_pointers): Do not stream
23052 DECL_FUNCTION_SPECIFIC_TARGET.
23053
23054 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23055
23056 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23057 (get_initial_def_for_induction, vectorizable_induction): Ignore
23058 debug stmts when looking for exit_phi.
23059 (vectorizable_live_operation): Fix up condition.
23060
23061 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23062
23063 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23064 nreverse() because it changes the content of original tree list.
23065
23066 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23067
23068 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23069 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23070
23071 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23072
23073 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23074 GNU coding standards.
23075
23076 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23077
23078 PR debug/60152
23079 * dwarf2out.c (gen_subprogram_die): Don't call
23080 add_calling_convention_attribute if subr_die is old_die.
23081
23082 2014-02-13 Sharad Singhai <singhai@google.com>
23083
23084 * doc/optinfo.texi: Fix order of nodes.
23085
23086 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23087
23088 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23089 operands[2], not operands[3].
23090
23091 2014-02-13 Richard Biener <rguenther@suse.de>
23092
23093 PR bootstrap/59878
23094 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23095 mention the possibility of an in-tree build.
23096 (CLooG): Update recommended version to 0.18.1, mention the
23097 possibility of an in-tree build and clarify that the ISL
23098 bundled with CLooG does not work.
23099
23100 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23101
23102 PR target/43546
23103 * expr.c (compress_float_constant): If x is a hard register,
23104 extend into a pseudo and then move to x.
23105
23106 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23107
23108 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23109 caused by bad second argument to warning_at() with -mhotpatch and
23110 nested functions (e.g. with gfortran).
23111
23112 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23113
23114 * opts.c (option_name): Remove "enabled by default" rider.
23115
23116 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23117
23118 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23119
23120 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23121 Uros Bizjak <ubizjak@gmail.com>
23122
23123 PR target/60151
23124 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23125 * configure: Regenerated.
23126
23127 2014-02-12 Richard Biener <rguenther@suse.de>
23128
23129 * vec.c (vec_prefix::calculate_allocation): Move as
23130 inline variant to vec.h.
23131 (vec_prefix::calculate_allocation_1): New out-of-line version.
23132 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23133 (vec_prefix::m_has_auto_buf): Rename to ...
23134 (vec_prefix::m_using_auto_storage): ... this.
23135 (vec_prefix::calculate_allocation): Inline the easy cases
23136 and dispatch to calculate_allocation_1 which doesn't need the
23137 prefix address.
23138 (va_heap::reserve): Use gcc_checking_assert.
23139 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23140 m_using_auto_storage.
23141 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23142 member and adjust.
23143 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23144 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23145 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23146
23147 2014-02-12 Richard Biener <rguenther@suse.de>
23148
23149 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23150 when we found a dependence.
23151
23152 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23153
23154 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23155 common code...
23156 (maybe_fold_stmt): ... into this new function.
23157 * omp-low.c (lower_omp): Update comment.
23158
23159 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23160 last use.
23161
23162 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23163 dereference.
23164
23165 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23166
23167 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23168 identifiers in comments.
23169 (cortexa53_extra_costs): Likewise.
23170 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23171 (cortexa7_extra_costs): Likewise.
23172 (cortexa12_extra_costs): Likewise.
23173 (cortexa15_extra_costs): Likewise.
23174 (v7m_extra_costs): Likewise.
23175
23176 2014-02-12 Richard Biener <rguenther@suse.de>
23177
23178 PR middle-end/60092
23179 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23180 of posix_memalign being successful.
23181 (lower_stmt): Restrict lowering of posix_memalign to when
23182 -ftree-bit-ccp is enabled.
23183
23184 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23185
23186 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23187 arg_loc.
23188 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23189
23190 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23191
23192 PR rtl-optimization/60116
23193 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23194 other_insn once the combination has been validated.
23195
23196 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23197
23198 PR lto/59468
23199 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23200 and wrapper.
23201 * ipa-devirt.c: Include demangle.h
23202 (odr_violation_reported): New static variable.
23203 (add_type_duplicate): Update odr_violations.
23204 (maybe_record_node): Add completep parameter; update it.
23205 (record_target_from_binfo): Add COMPLETEP parameter;
23206 update it as needed.
23207 (possible_polymorphic_call_targets_1): Likewise.
23208 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23209 rename FINAL to COMPLETE.
23210 (record_targets_from_bases): Sanity check we found the binfo;
23211 fix COMPLETEP updating.
23212 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23213 parameter, fix computing of COMPLETEP.
23214 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23215 at LTO time do demangling.
23216 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23217 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23218 parameter.
23219 (gimple_get_virt_method_for_binfo): Likewise.
23220 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23221 gimple_get_virt_method_for_vtable): Update prototypes.
23222
23223 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23224
23225 PR target/49008
23226 * genautomata.c (add_presence_absence): Fix typo with
23227 {final_}presence_list.
23228
23229 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23230
23231 PR target/60137
23232 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23233 for VSX/Altivec vectors that land in GPR registers.
23234
23235 2014-02-11 Richard Henderson <rth@redhat.com>
23236 Jakub Jelinek <jakub@redhat.com>
23237
23238 PR debug/59776
23239 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23240 around drhs if type conversion to lacc->type is not useless.
23241
23242 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23243
23244 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23245 tuning struct.
23246 (cortex-a57.cortex-a53): Likewise.
23247 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23248
23249 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23250
23251 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23252 arm_restrict_it.
23253
23254 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23255
23256 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23257 add_options_for_arm_vfp3.
23258
23259 2014-02-11 Jeff Law <law@redhat.com>
23260
23261 PR middle-end/54041
23262 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23263 object with an undesirable mode.
23264
23265 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23266
23267 PR libgomp/60107
23268 * config/i386/sol2-9.h: New file.
23269 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23270 *-*-solaris2.9*): Use it.
23271
23272 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23273
23274 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23275 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23276
23277 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23278
23279 * config/microblaze/microblaze.c: Extend mcpu version format
23280
23281 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23282
23283 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23284
23285 2014-02-10 Richard Henderson <rth@redhat.com>
23286
23287 PR target/59927
23288 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23289 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23290 ms-abi vs -mno-accumulate-outgoing-args.
23291 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23292 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23293 respect to ms-abi.
23294
23295 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23296
23297 PR middle-end/60080
23298 * cfgexpand.c (expand_asm_operands): Attach source location to
23299 ASM_INPUT rtx objects.
23300 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23301
23302 2014-02-10 Nick Clifton <nickc@redhat.com>
23303
23304 * config/mn10300/mn10300.c (popcount): New function.
23305 (mn10300_expand_prologue): Include saved registers in stack usage
23306 count.
23307
23308 2014-02-10 Jeff Law <law@redhat.com>
23309
23310 PR middle-end/52306
23311 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23312 when changing the SET_DEST of a prior insn to avoid an input reload.
23313
23314 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23315
23316 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23317 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23318 -mcall-openbsd, or -mcall-linux.
23319 (CC1_ENDIAN_BIG_SPEC): Remove.
23320 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23321 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23322 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23323 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23324 and %cc1_endian_default.
23325 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23326
23327 2014-02-10 Richard Biener <rguenther@suse.de>
23328
23329 PR tree-optimization/60115
23330 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23331 MEM_REF handling. Properly verify that the accesses are not
23332 out of the objects bound.
23333
23334 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23335
23336 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23337 coretex to cortex.
23338
23339 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23340
23341 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23342 proper constants and fix formatting.
23343 (possible_polymorphic_call_targets): Fix formatting.
23344
23345 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23346 Ilya Tocar <ilya.tocar@intel.com>
23347
23348 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23349 (_mm512_loadu_epi32): Renamed into...
23350 (_mm512_loadu_si512): This.
23351 (_mm512_storeu_epi32): Renamed into...
23352 (_mm512_storeu_si512): This.
23353 (_mm512_maskz_ceil_ps): Removed.
23354 (_mm512_maskz_ceil_pd): Ditto.
23355 (_mm512_maskz_floor_ps): Ditto.
23356 (_mm512_maskz_floor_pd): Ditto.
23357 (_mm512_floor_round_ps): Ditto.
23358 (_mm512_floor_round_pd): Ditto.
23359 (_mm512_ceil_round_ps): Ditto.
23360 (_mm512_ceil_round_pd): Ditto.
23361 (_mm512_mask_floor_round_ps): Ditto.
23362 (_mm512_mask_floor_round_pd): Ditto.
23363 (_mm512_mask_ceil_round_ps): Ditto.
23364 (_mm512_mask_ceil_round_pd): Ditto.
23365 (_mm512_maskz_floor_round_ps): Ditto.
23366 (_mm512_maskz_floor_round_pd): Ditto.
23367 (_mm512_maskz_ceil_round_ps): Ditto.
23368 (_mm512_maskz_ceil_round_pd): Ditto.
23369 (_mm512_expand_pd): Ditto.
23370 (_mm512_expand_ps): Ditto.
23371 * config/i386/i386.c (ix86_builtins): Remove
23372 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23373 (bdesc_args): Ditto.
23374 * config/i386/predicates.md (const1256_operand): New.
23375 (const_1_to_2_operand): Ditto.
23376 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23377 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23378 (*avx512pf_gatherpf<mode>sf): Ditto.
23379 (avx512pf_gatherpf<mode>df): Ditto.
23380 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23381 (*avx512pf_gatherpf<mode>df): Ditto.
23382 (avx512pf_scatterpf<mode>sf): Ditto.
23383 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23384 (*avx512pf_scatterpf<mode>sf): Ditto.
23385 (avx512pf_scatterpf<mode>df): Ditto.
23386 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23387 (*avx512pf_scatterpf<mode>df): Ditto.
23388 (avx512f_expand<mode>): Removed.
23389 (<shift_insn><mode>3<mask_name>): Change predicate type.
23390
23391 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23392
23393 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23394 not at the end of datarefs vector use ordered_remove to avoid
23395 reordering datarefs vector.
23396
23397 PR c/59984
23398 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23399 mark local addressable non-static vars as GOVD_PRIVATE
23400 instead of GOVD_LOCAL.
23401 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23402 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23403 than copying them.
23404
23405 PR middle-end/60092
23406 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23407 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23408 assume_aligned or alloc_align attributes.
23409 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23410 arguments. Handle also assume_aligned and alloc_align attributes.
23411 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23412 calls to functions with assume_aligned or alloc_align attributes.
23413 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23414
23415 2014-02-08 Terry Guo <terry.guo@arm.com>
23416
23417 * doc/invoke.texi: Document ARM -march=armv7e-m.
23418
23419 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23420
23421 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23422 flag on __cilkrts_rethrow builtin.
23423
23424 PR ipa/60026
23425 * ipa-cp.c (determine_versionability): Fail at -O0
23426 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23427 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23428
23429 Revert:
23430 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23431
23432 PR ipa/60026
23433 * tree-inline.c (copy_forbidden): Fail for
23434 __attribute__((optimize (0))) functions.
23435
23436 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23437
23438 * varpool.c: Include pointer-set.h.
23439 (varpool_remove_unreferenced_decls): Variables in other partitions
23440 will not be output; be however careful to not lose information
23441 about partitioning.
23442
23443 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23444
23445 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23446 lookup in the vtable constructor.
23447
23448 2014-02-07 Jeff Law <law@redhat.com>
23449
23450 PR target/40977
23451 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23452 define_insn_and_split.
23453
23454 * ipa-inline.c (inline_small_functions): Fix typos.
23455
23456 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23457
23458 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23459 (s390_can_use_return_insn): Declare.
23460 * config/s390/s390.h (EPILOGUE_USES): Define.
23461 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23462 instructions.
23463 (s390_chunkify_start): Handle return JUMP_LABELs.
23464 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23465 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23466 (s390_can_use_return_insn): New functions.
23467 (s390_fix_long_loop_prediction): Handle conditional returns.
23468 (TARGET_SET_UP_BY_PROLOGUE): Define.
23469 * config/s390/s390.md (ANY_RETURN): New code iterator.
23470 (*creturn, *csimple_return, return, simple_return): New patterns.
23471
23472 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23473
23474 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23475 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23476 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23477 REG_CFA_RESTORE list when deciding not to restore a register.
23478
23479 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23480
23481 * config/s390/s390.c: Include tree-pass.h and context.h.
23482 (s390_early_mach): New function, split out from...
23483 (s390_emit_prologue): ...here.
23484 (pass_data_s390_early_mach): New pass structure.
23485 (pass_s390_early_mach): New class.
23486 (s390_option_override): Create and register early_mach pass.
23487 Move to end of file.
23488
23489 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23490
23491 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23492 to match for the exit block.
23493
23494 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23495
23496 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23497 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23498 Reject misaligned operands.
23499
23500 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23501
23502 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23503
23504 2014-02-07 Richard Biener <rguenther@suse.de>
23505
23506 PR middle-end/60092
23507 * gimple-low.c (lower_builtin_posix_memalign): New function.
23508 (lower_stmt): Call it to lower posix_memalign in a way
23509 to make alignment info accessible.
23510
23511 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23512
23513 PR c++/60082
23514 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23515 __builtin_setjmp_receiver.
23516
23517 2014-02-07 Richard Biener <rguenther@suse.de>
23518
23519 PR middle-end/60092
23520 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23521 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23522 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23523 Handle BUILT_IN_POSIX_MEMALIGN.
23524 (find_func_clobbers): Likewise.
23525 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23526 (call_may_clobber_ref_p_1): Likewise.
23527
23528 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23529
23530 PR ipa/59918
23531 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23532 sanity check.
23533
23534 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23535
23536 PR ipa/59469
23537 * lto-cgraph.c (lto_output_node): Use
23538 symtab_get_symbol_partitioning_class.
23539 (lto_output_varpool_node): likewise.
23540 (symtab_get_symbol_partitioning_class): Move here from
23541 lto/lto-partition.c
23542 * cgraph.h (symbol_partitioning_class): Likewise.
23543 (symtab_get_symbol_partitioning_class): Declare.
23544
23545 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23546
23547 * ggc.h (ggc_internal_cleared_alloc): New macro.
23548 * vec.h (vec_safe_copy): Handle memory stats.
23549 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23550 * target-globals.c (save_target_globals): Likewise.
23551
23552 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23553
23554 PR target/60077
23555 * expr.c (emit_move_resolve_push): Export; be bit more selective
23556 on when to clear alias set.
23557 * expr.h (emit_move_resolve_push): Declare.
23558 * function.h (struct function): Add tail_call_marked.
23559 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23560 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23561 * config/i386/i386.md (TImode move expander): De not call
23562 ix86_expand_push.
23563 (FP push expanders): Preserve memory attributes.
23564 * config/i386/sse.md (push<mode>1): Remove.
23565 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23566 (ix86_expand_push): Remove.
23567 * config/i386/mmx.md (push<mode>1): Remove.
23568
23569 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23570
23571 PR rtl-optimization/60030
23572 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23573 lopart with paradoxical subreg before shifting it up by hprec.
23574
23575 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23576
23577 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23578 Remove extra newline at end of file.
23579 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23580 (arm_issue_rate): Handle cortexa57.
23581 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23582 (cortex-a57.cortex-a53): Likewise.
23583
23584 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23585
23586 PR target/59575
23587 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23588 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23589 bitmask.
23590 (arm_expand_prologue): Adjust all callers.
23591 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23592 info, registers also at the lowest numbered registers side. Use
23593 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23594 XEXP.
23595
23596 PR debug/59992
23597 * var-tracking.c (adjust_mems): Before adding a SET to
23598 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23599
23600 2014-02-06 Alan Modra <amodra@gmail.com>
23601
23602 PR target/60032
23603 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23604 change SDmode to DDmode when lra_in_progress.
23605
23606 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23607
23608 PR middle-end/59150
23609 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23610 free_data_ref on the dr first, and before goto again also set dr
23611 to the next dr. For simd_lane_access, free old datarefs[i] before
23612 overwriting it. For get_vectype_for_scalar_type failure, don't
23613 free_data_ref if simd_lane_access.
23614
23615 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23616
23617 PR target/60062
23618 * tree.h (opts_for_fn): New inline function.
23619 (opt_for_fn): Define.
23620 * config/i386/i386.c (ix86_function_regparm): Use
23621 opt_for_fn (decl, optimize) instead of optimize.
23622
23623 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23624
23625 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23626 for SYMBOL_REF in large memory model.
23627
23628 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23629
23630 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23631 and crypto support.
23632 (cortex-a57): Likewise.
23633 (cortex-a57.cortex-a53): Likewise.
23634
23635 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23636 Kugan Vivekanandarajah <kuganv@linaro.org>
23637
23638 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23639 unaligned_access.
23640 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23641
23642 2014-02-06 Richard Biener <rguenther@suse.de>
23643
23644 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23645 set_loop_copy and initialize_original_copy_tables.
23646
23647 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23648
23649 * config/aarch64/aarch64-simd.md
23650 (aarch64_ashr_simddi): Change QI to SI.
23651
23652 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23653 Jakub Jelinek <jakub@redhat.com>
23654
23655 PR middle-end/60013
23656 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23657 of the dataflow.
23658
23659 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23660
23661 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23662 CODE_FOR_altivec_vpku[hw]um to
23663 CODE_FOR_altivec_vpku[hw]um_direct.
23664 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23665 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23666 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23667 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23668
23669 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23670
23671 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23672 generation for -maltivec=be.
23673 (altivec_vsumsws): Simplify redundant test.
23674
23675 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23676
23677 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23678 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23679 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23680 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23681 gen_altivec_vpkuwum.
23682 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23683 BYTES_BIG_ENDIAN.
23684 (altivec_vpks<VI_char>ss): Likewise.
23685 (altivec_vpks<VI_char>us): Likewise.
23686 (altivec_vpku<VI_char>us): Likewise.
23687 (altivec_vpku<VI_char>um): Likewise.
23688 (altivec_vpku<VI_char>um_direct): New (copy of
23689 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23690 internal use).
23691 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23692 target is little endian and -maltivec=be is not specified.
23693 (*altivec_vupkhs<VU_char>_direct): New (copy of
23694 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23695 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23696 target is little endian and -maltivec=be is not specified.
23697 (*altivec_vupkls<VU_char>_direct): New (copy of
23698 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23699 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23700 little endian and -maltivec=be is not specified.
23701 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23702 little endian and -maltivec=be is not specified.
23703
23704 2014-02-05 Richard Henderson <rth@redhat.com>
23705
23706 PR debug/52727
23707 * combine-stack-adj.c: Revert r206943.
23708 * sched-int.h (struct deps_desc): Add last_args_size.
23709 * sched-deps.c (init_deps): Initialize it.
23710 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23711 contain REG_ARGS_SIZE notes.
23712
23713 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23714
23715 * lto-cgraph.c (asm_nodes_output): Make global.
23716 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23717 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23718 (driver_handle_option): Handle OPT_fwpa.
23719
23720 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23721
23722 PR ipa/59947
23723 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23724 a comment typo and formatting issue. If odr_hash hasn't been
23725 created, return vNULL and set *completep to false.
23726
23727 PR middle-end/57499
23728 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23729 bb with no successors.
23730
23731 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23732
23733 PR target/59718
23734 * doc/invoke.texi (-march): Clarify documentation for ARM.
23735 (-mtune): Likewise.
23736 (-mcpu): Likewise.
23737
23738 2014-02-05 Richard Biener <rguenther@suse.de>
23739
23740 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23741 when not vectorizing because of too many alias checks.
23742 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23743 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23744
23745 2014-02-05 Nick Clifton <nickc@redhat.com>
23746
23747 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23748 accept extended registers in any mode when compiling for the MN10300.
23749
23750 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23751
23752 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23753 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23754 sanitization attributes.
23755 (can_inline_edge_p): Likewise.
23756 (sanitize_attrs_match_for_inline_p): New function.
23757
23758 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23759
23760 * ipa-prop.c (detect_type_change): Shor circuit testing of
23761 type changes on THIS pointer.
23762
23763 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23764
23765 PR target/59777
23766 * config/pa/pa.c (legitimize_tls_address): Return original address
23767 if not passed a SYMBOL_REF rtx.
23768 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23769 addresses.
23770 (pa_emit_move_sequence): Simplify TLS source operands.
23771 (pa_legitimate_constant_p): Reject all TLS constants.
23772 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23773 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23774
23775 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23776
23777 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23778 groups when we know they are controlled by LTO.
23779 * varasm.c (default_binds_local_p_1): If object is in other partition,
23780 it will be resolved locally.
23781
23782 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23783
23784 * config/host-linux.c (linux_gt_pch_use_address): Don't
23785 use SSIZE_MAX because it is not always defined.
23786
23787 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23788
23789 PR bootstrap/59913
23790 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23791 threshold for pseudo splitting.
23792 (update_ebb_live_info): Process call argument hard registers and
23793 hard registers from insn definition too.
23794 (max_small_class_regs_num): New constant.
23795 (inherit_in_ebb): Update live hard regs through EBBs. Update
23796 reloads_num only for small register classes. Don't split for
23797 outputs of jumps.
23798
23799 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23800
23801 PR ipa/60058
23802 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23803 is non-null.
23804
23805 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23806
23807 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23808 visibility is safe.
23809
23810 2014-02-04 Marek Polacek <polacek@redhat.com>
23811
23812 * gdbinit.in (pel): Define.
23813
23814 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23815
23816 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23817 behavior.
23818
23819 2014-02-04 Richard Biener <rguenther@suse.de>
23820
23821 PR lto/59723
23822 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23823 in function context local.
23824 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23825 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23826 similar to LTO_imported_decl_ref.
23827
23828 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23829
23830 PR tree-optimization/60002
23831 * cgraphclones.c (build_function_decl_skip_args): Clear
23832 DECL_LANG_SPECIFIC.
23833
23834 PR tree-optimization/60023
23835 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23836 false to gsi_replace.
23837 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23838 has been in some EH region and vec_stmt could throw, add
23839 vec_stmt into the same EH region.
23840 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23841 has no lhs, ignore it.
23842 * internal-fn.c (expand_MASK_LOAD): Likewise.
23843
23844 PR ipa/60026
23845 * tree-inline.c (copy_forbidden): Fail for
23846 __attribute__((optimize (0))) functions.
23847
23848 PR other/58712
23849 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23850 is set, copy one less argument.
23851 (expand_simd_clones): Don't subtract clone_info->inbranch
23852 from simd_clone_struct_alloc argument.
23853
23854 PR rtl-optimization/57915
23855 * recog.c (simplify_while_replacing): If all unary/binary/relational
23856 operation arguments are constant, attempt to simplify those.
23857
23858 PR middle-end/59261
23859 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23860 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23861
23862 2014-02-04 Richard Biener <rguenther@suse.de>
23863
23864 PR tree-optimization/60012
23865 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23866 TBAA disambiguation to all DDRs.
23867
23868 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23869
23870 PR target/59788
23871 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23872 (LINK_SPEC): Use it for -shared, -shared-libgcc.
23873
23874 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23875
23876 PR ipa/59882
23877 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23878
23879 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23880
23881 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23882 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23883
23884 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23885
23886 PR ipa/59831
23887 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23888 to figure out targets of polymorphic calls with known decl.
23889 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23890 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23891 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23892 (get_polymorphic_call_info): ... here.
23893 (get_polymorphic_call_info_from_invariant): New function.
23894
23895 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23896
23897 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23898 lookup via vtable pointer; check for type consistency
23899 and turn inconsitent facts into UNREACHABLE.
23900 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23901 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23902 type inconsistent querries; return UNREACHABLE instead.
23903
23904 2014-02-03 Richard Henderson <rth@twiddle.net>
23905
23906 PR tree-opt/59924
23907 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23908 already processed this node.
23909 (normalize_one_pred_1): Pass along mark_set.
23910 (normalize_one_pred): Create and destroy a pointer_set_t.
23911 (normalize_one_pred_chain): Likewise.
23912
23913 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
23914
23915 PR gcov-profile/58602
23916 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23917
23918 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23919
23920 PR ipa/59831
23921 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23922 -fno-devirtualize; try to devirtualize by the knowledge of
23923 virtual table pointer given by aggregate propagation.
23924 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23925 (ipa_print_node_jump_functions): Dump also offset that
23926 is relevant for polymorphic calls.
23927 (determine_known_aggregate_parts): Add arg_type parameter; use it
23928 instead of determining the type from pointer type.
23929 (ipa_compute_jump_functions_for_edge): Update call of
23930 determine_known_aggregate_parts.
23931 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23932 (gimple_get_virt_method_for_binfo): ... here; simplify using
23933 vtable_pointer_value_to_vtable.
23934 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23935 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23936 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23937 (vtable_pointer_value_to_vtable): Break out from ...; handle also
23938 POINTER_PLUS_EXPR.
23939 (vtable_pointer_value_to_binfo): ... here.
23940 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23941
23942 2014-02-03 Teresa Johnson <tejohnson@google.com>
23943
23944 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23945 redef of outer loop index variable.
23946
23947 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
23948
23949 PR c++/53017
23950 PR c++/59211
23951 * doc/extend.texi (Function Attributes): Typo.
23952
23953 2014-02-03 Cong Hou <congh@google.com>
23954
23955 PR tree-optimization/60000
23956 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23957 if the vectorized statement is a store. A store statement can only
23958 appear at the end of pattern statements.
23959
23960 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23961
23962 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23963 (ix86_option_override_internal): Default long double to 64-bit for
23964 32-bit Bionic and to 128-bit for 64-bit Bionic.
23965
23966 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23967 TARGET_LONG_DOUBLE_128 is true.
23968 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23969
23970 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23971 (mlong-double-64): Negate -mlong-double-128.
23972 (mlong-double-128): New option.
23973
23974 * config/i386/i386-c.c (ix86_target_macros): Define
23975 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23976
23977 * doc/invoke.texi: Document -mlong-double-128.
23978
23979 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23980
23981 PR rtl-optimization/60024
23982 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
23983
23984 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
23985
23986 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
23987
23988 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23989
23990 PR rtl-optimization/57662
23991 * sel-sched.c (code_motion_path_driver): Do not mark already not
23992 existing blocks in the visiting bitmap.
23993
23994 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23995
23996 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
23997 on the insn being emitted.
23998
23999 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24000 Will Deacon <will.deacon@arm.com>
24001
24002 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24003
24004 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24005
24006 * config/arm/arm-tables.opt: Regenerate.
24007
24008 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24009
24010 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24011 for vector types other than V16QImode.
24012 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24013 define_expand, and call altivec_expand_vec_perm_le when producing
24014 code with little endian element order.
24015 (*altivec_vperm_<mode>_internal): New insn having previous
24016 behavior of altivec_vperm_<mode>.
24017 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24018 altivec_expand_vec_perm_le when producing code with little endian
24019 element order.
24020 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24021 behavior of altivec_vperm_<mode>_uns.
24022
24023 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24024
24025 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24026 (altivec_vsumsws): Add handling for -maltivec=be with a little
24027 endian target.
24028 (altivec_vsumsws_direct): New.
24029 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24030 gen_altivec_vsumsws.
24031
24032 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24033
24034 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24035 vtable_pointer_value_to_binfo): New functions.
24036 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24037 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24038
24039 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24040
24041 * config/nios2/nios2.md (load_got_register): Initialize GOT
24042 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24043 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24044
24045 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24046
24047 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24048 preserverd by passthrough, do not propagate the type.
24049
24050 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24051
24052 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24053 (mips_atomic_assign_expand_fenv): New function.
24054 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24055
24056 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24057
24058 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24059 (__builtin_mips_set_fcsr): Likewise.
24060 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24061 MIPS_USI_FTYPE_VOID.
24062 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24063 (mips16_expand_set_fcsr): Likewise.
24064 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24065 (mips16_set_fcsr_stub): Likewise.
24066 (mips16_get_fcsr_one_only_stub): New class.
24067 (mips16_set_fcsr_one_only_stub): Likewise.
24068 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24069 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24070 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24071 (hard_float): New availability predicate.
24072 (mips_builtins): Add get_fcsr and set_fcsr.
24073 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24074 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24075 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24076 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24077 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24078 patterns.
24079
24080 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24081
24082 * config/mips/mips.c (mips_one_only_stub): New class.
24083 (mips_need_mips16_rdhwr_p): Replace with...
24084 (mips16_rdhwr_stub): ...this new variable.
24085 (mips16_stub_call_address): New function.
24086 (mips16_rdhwr_one_only_stub): New class.
24087 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24088 (mips_output_mips16_rdhwr): Delete.
24089 (mips_finish_stub): New function.
24090 (mips_code_end): Use it to handle rdhwr stubs.
24091
24092 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24093
24094 PR target/60017
24095 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24096 when calculating size of integer atomic types.
24097
24098 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24099
24100 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24101
24102 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24103
24104 PR tree-optimization/60003
24105 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24106 * profile.c (branch_prob): Use gimple_call_builtin_p
24107 to check for BUILT_IN_SETJMP_RECEIVER.
24108 * tree-inline.c (copy_bb): Call notice_special_calls.
24109
24110 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24111
24112 PR bootstrap/59985
24113 * lra-constraints.c (process_alt_operands): Update reload_sum only
24114 on the first pass.
24115
24116 2014-01-31 Richard Henderson <rth@redhat.com>
24117
24118 PR middle-end/60004
24119 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24120 until after else_eh is processed.
24121
24122 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24123
24124 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24125 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24126 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24127 in smmintrin.h, remove them.
24128 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24129 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24130 * config/i386/i386.md (ROUND_SAE): Fix value.
24131 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24132 (const48_operand): New.
24133 * config/i386/subst.md (round), (round_expand): Use
24134 const_4_or_8_to_11_operand.
24135 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24136
24137 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24138
24139 * config/i386/constraints.md (Yk): Swap meaning with k.
24140 * config/i386/i386.md (movhi_internal): Change Yk to k.
24141 (movqi_internal): Ditto.
24142 (*k<logic><mode>): Ditto.
24143 (*andhi_1): Ditto.
24144 (*andqi_1): Ditto.
24145 (kandn<mode>): Ditto.
24146 (*<code>hi_1): Ditto.
24147 (*<code>qi_1): Ditto.
24148 (kxnor<mode>): Ditto.
24149 (kortestzhi): Ditto.
24150 (kortestchi): Ditto.
24151 (kunpckhi): Ditto.
24152 (*one_cmplhi2_1): Ditto.
24153 (*one_cmplqi2_1): Ditto.
24154 * config/i386/sse.md (): Change k to Yk.
24155 (avx512f_load<mode>_mask): Ditto.
24156 (avx512f_blendm<mode>): Ditto.
24157 (avx512f_store<mode>_mask): Ditto.
24158 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24159 (avx512f_storedqu<mode>_mask): Ditto.
24160 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24161 Ditto.
24162 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24163 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24164 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24165 (avx512f_maskcmp<mode>3): Ditto.
24166 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24167 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24168 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24169 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24170 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24171 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24172 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24173 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24174 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24175 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24176 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24177 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24178 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24179 (vec_extract_lo_<mode>_maskm): Ditto.
24180 (vec_extract_hi_<mode>_maskm): Ditto.
24181 (avx512f_vternlog<mode>_mask): Ditto.
24182 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24183 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24184 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24185 (avx512f_<code>v8div16qi2_mask): Ditto.
24186 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24187 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24188 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24189 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24190 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24191 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24192 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24193 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24194 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24195 (avx512cd_maskb_vec_dupv8di): Ditto.
24196 (avx512cd_maskw_vec_dupv16si): Ditto.
24197 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24198 (avx512f_vpermi2var<mode>3_mask): Ditto.
24199 (avx512f_vpermi2var<mode>3_mask): Ditto.
24200 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24201 (*avx512f_gathersi<mode>): Ditto.
24202 (*avx512f_gathersi<mode>_2): Ditto.
24203 (*avx512f_gatherdi<mode>): Ditto.
24204 (*avx512f_gatherdi<mode>_2): Ditto.
24205 (*avx512f_scattersi<mode>): Ditto.
24206 (*avx512f_scatterdi<mode>): Ditto.
24207 (avx512f_compress<mode>_mask): Ditto.
24208 (avx512f_compressstore<mode>_mask): Ditto.
24209 (avx512f_expand<mode>_mask): Ditto.
24210 * config/i386/subst.md (mask): Change k to Yk.
24211 (mask_scalar_merge): Ditto.
24212 (sd): Ditto.
24213
24214 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24215
24216 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24217
24218 2014-01-31 Richard Biener <rguenther@suse.de>
24219
24220 PR middle-end/59990
24221 * builtins.c (fold_builtin_memory_op): Make sure to not
24222 use a floating-point mode or a boolean or enumeral type for
24223 the copy operation.
24224
24225 2014-01-30 DJ Delorie <dj@redhat.com>
24226
24227 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24228 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24229 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24230 whenever main() has an epilogue.
24231
24232 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24233
24234 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24235 unused variable "field".
24236 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24237 (vsx_mergeh_<mode>): Likewise.
24238 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24239 (altivec_vmrghh): Likewise.
24240 (altivec_vmrghw): Likewise.
24241 (altivec_vmrglb): Likewise.
24242 (altivec_vmrglh): Likewise.
24243 (altivec_vmrglw): Likewise.
24244 (altivec_vspltb): Add missing uses.
24245 (altivec_vsplth): Likewise.
24246 (altivec_vspltw): Likewise.
24247 (altivec_vspltsf): Likewise.
24248
24249 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24250
24251 PR target/59923
24252 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24253 frame related instructions.
24254
24255 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24256
24257 PR rtl-optimization/59959
24258 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24259 any reload of register whose subreg is invalid.
24260
24261 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24262
24263 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24264 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24265 Add missing return type - void.
24266
24267 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24268
24269 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24270 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24271 remove element index adjustment for endian (now handled in vsx.md
24272 and altivec.md).
24273 (altivec_expand_vec_perm_const): Use
24274 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24275 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24276 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24277 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24278 define_expand and a new define_insn *altivec_vspltb_internal;
24279 adjust for -maltivec=be on a little endian target.
24280 (altivec_vspltb_direct): New.
24281 (altivec_vsplth): Divide into a define_expand and a new
24282 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24283 little endian target.
24284 (altivec_vsplth_direct): New.
24285 (altivec_vspltw): Divide into a define_expand and a new
24286 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24287 little endian target.
24288 (altivec_vspltw_direct): New.
24289 (altivec_vspltsf): Divide into a define_expand and a new
24290 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24291 a little endian target.
24292
24293 2014-01-30 Richard Biener <rguenther@suse.de>
24294
24295 PR tree-optimization/59993
24296 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24297 can propagate form the earlier stmt and avoid the transform
24298 when the intermediate result is needed.
24299
24300 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24301
24302 * README.Portability: Fix typo.
24303
24304 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24305
24306 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24307 comparison_operator with ordered_comparison_operator.
24308
24309 2014-01-30 Nick Clifton <nickc@redhat.com>
24310
24311 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24312 Rename to mn10300_store_multiple_regs.
24313 * config/mn10300/mn10300.c: Likewise.
24314 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24315 store_multiple_regs.
24316 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24317 Call mn10300_store_multiple_regs.
24318
24319 2014-01-30 Nick Clifton <nickc@redhat.com>
24320 DJ Delorie <dj@redhat.com>
24321
24322 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24323 %fp 2 to keep registers after it properly word-aligned.
24324 (rl78_alloc_physical_registers_umul): Handle the case where both
24325 input operands are the same.
24326
24327 2014-01-30 Richard Biener <rguenther@suse.de>
24328
24329 PR tree-optimization/59903
24330 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24331 check properly.
24332
24333 2014-01-30 Jason Merrill <jason@redhat.com>
24334
24335 PR c++/59633
24336 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24337
24338 PR c++/59645
24339 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24340
24341 2014-01-30 Richard Biener <rguenther@suse.de>
24342
24343 PR tree-optimization/59951
24344 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24345
24346 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24347
24348 PR target/59784
24349 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24350 SFmode to DFmode case.
24351
24352 2014-01-29 DJ Delorie <dj@redhat.com>
24353
24354 * config/msp430/msp430.opt (-minrt): New.
24355 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24356 if -minrt given.
24357 (ENDFILE_SPEC): Likewise.
24358
24359 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24360
24361 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24362 (estimate_function_body_sizes): Use it.
24363
24364 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24365
24366 PR c++/58561
24367 * dwarf2out.c (is_cxx_auto): New.
24368 (is_base_type): Use it.
24369 (gen_type_die_with_usage): Likewise.
24370
24371 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24372
24373 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24374 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24375 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24376 -maltivec=be with LE targets.
24377 (vsx_mergeh_<mode>): Likewise.
24378 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24379 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24380 (altivec_vmrghb): Replace with define_expand and new
24381 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24382 (altivec_vmrghb_direct): New define_insn.
24383 (altivec_vmrghh): Replace with define_expand and new
24384 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24385 (altivec_vmrghh_direct): New define_insn.
24386 (altivec_vmrghw): Replace with define_expand and new
24387 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24388 (altivec_vmrghw_direct): New define_insn.
24389 (*altivec_vmrghsf): Adjust for endianness.
24390 (altivec_vmrglb): Replace with define_expand and new
24391 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24392 (altivec_vmrglb_direct): New define_insn.
24393 (altivec_vmrglh): Replace with define_expand and new
24394 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24395 (altivec_vmrglh_direct): New define_insn.
24396 (altivec_vmrglw): Replace with define_expand and new
24397 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24398 (altivec_vmrglw_direct): New define_insn.
24399 (*altivec_vmrglsf): Adjust for endianness.
24400 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24401 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24402 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24403 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24404 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24405 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24406 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24407 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24408
24409 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24410
24411 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24412 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24413 whitespace.
24414
24415 2014-01-29 Richard Biener <rguenther@suse.de>
24416
24417 PR tree-optimization/58742
24418 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24419 associate_pointerplus_align.
24420 (associate_pointerplus_diff): New function.
24421 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24422 and associate_pointerplus_diff.
24423
24424 2014-01-29 Richard Biener <rguenther@suse.de>
24425
24426 * lto-streamer.h (LTO_major_version): Bump to 3.
24427 (LTO_minor_version): Reset to 0.
24428
24429 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24430
24431 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24432 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24433 (arm_file_start): Generate correct asm header for armv7ve.
24434 * config/arm/bpabi.h: Add multilib support for armv7ve.
24435 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24436 and cortex-a15 to armv7ve.
24437 * config/arm/t-aprofile: Add multilib support for armv7ve.
24438 * doc/invoke.texi: Document -march=armv7ve.
24439
24440 2014-01-29 Richard Biener <rguenther@suse.de>
24441
24442 PR tree-optimization/58742
24443 * tree-ssa-forwprop.c (associate_plusminus): Return true
24444 if we changed sth, defer EH cleanup to ...
24445 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24446 (simplify_mult): New function.
24447
24448 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24449
24450 PR middle-end/59917
24451 PR tree-optimization/59920
24452 * tree.c (build_common_builtin_nodes): Remove
24453 __builtin_setjmp_dispatcher initialization.
24454 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24455 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24456 instead of gsi_after_labels + manually skipping debug stmts.
24457 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24458 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24459 * tree-inline.c (copy_edges_for_bb): Remove
24460 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24461 argument. Ignore computed_goto_p stmts. Don't call
24462 make_abnormal_goto_edges. If a call might need abnormal edges
24463 for non-local gotos, see if it already has an edge to
24464 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24465 with true argument, don't do anything then, otherwise add
24466 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24467 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24468 caller.
24469 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24470 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24471 (lower_stmt): Don't set data->calls_builtin_setjmp.
24472 (lower_builtin_setjmp): Adjust comment.
24473 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24474 * tree-cfg.c (found_computed_goto): Remove.
24475 (factor_computed_gotos): Remove.
24476 (make_goto_expr_edges): Return bool, true for computed gotos.
24477 Don't call make_abnormal_goto_edges.
24478 (build_gimple_cfg): Don't set found_computed_goto, don't call
24479 factor_computed_gotos.
24480 (computed_goto_p): No longer static.
24481 (make_blocks): Don't set found_computed_goto.
24482 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24483 (make_edges): If make_goto_expr_edges returns true, push bb
24484 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24485 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24486 vector. Record mapping between bbs and OpenMP regions if there
24487 are any, adjust make_gimple_omp_edges caller. Call
24488 handle_abnormal_edges.
24489 (make_abnormal_goto_edges): Remove.
24490 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24491 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24492 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24493 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24494 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24495 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24496 filling *region also set *region_idx to (*region)->entry->index.
24497
24498 PR other/58712
24499 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24500 For REGs set ORIGINAL_REGNO.
24501
24502 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24503
24504 * doc/md.texi: Mention that a target shouldn't implement
24505 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24506 than hi/lo pair.
24507
24508 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24509
24510 PR tree-optimization/59594
24511 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24512 a copy of the datarefs vector rather than the vector itself.
24513
24514 2014-01-28 Jason Merrill <jason@redhat.com>
24515
24516 PR c++/53756
24517 * dwarf2out.c (auto_die): New static.
24518 (gen_type_die_with_usage): Handle C++1y 'auto'.
24519 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24520 on definition.
24521
24522 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24523
24524 PR target/59672
24525 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24526 (SPEC_X32): Likewise.
24527 (SPEC_64): Likewise.
24528 * config/i386/i386.c (ix86_option_override_internal): Turn off
24529 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24530 for TARGET_16BIT.
24531 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24532 * config/i386/i386.h (TARGET_16BIT): New macro.
24533 (TARGET_16BIT_P): Likewise.
24534 * config/i386/i386.opt: Add m16.
24535 * doc/invoke.texi: Document -m16.
24536
24537 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24538
24539 PR preprocessor/59935
24540 * input.c (location_get_source_line): Bail out on when line number
24541 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24542
24543 2014-01-28 Richard Biener <rguenther@suse.de>
24544
24545 PR tree-optimization/58742
24546 * tree-ssa-forwprop.c (associate_plusminus): Handle
24547 pointer subtraction of the form (T)(P + A) - (T)P.
24548
24549 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24550
24551 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24552 at const_int_cost.
24553
24554 2014-01-28 Richard Biener <rguenther@suse.de>
24555
24556 Revert
24557 2014-01-28 Richard Biener <rguenther@suse.de>
24558
24559 PR rtl-optimization/45364
24560 PR rtl-optimization/59890
24561 * var-tracking.c (local_get_addr_clear_given_value): Handle
24562 already cleared slot.
24563 (val_reset): Handle not allocated local_get_addr_cache.
24564 (vt_find_locations): Use post-order on the inverted CFG.
24565
24566 2014-01-28 Richard Biener <rguenther@suse.de>
24567
24568 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24569
24570 2014-01-28 Richard Biener <rguenther@suse.de>
24571
24572 PR rtl-optimization/45364
24573 PR rtl-optimization/59890
24574 * var-tracking.c (local_get_addr_clear_given_value): Handle
24575 already cleared slot.
24576 (val_reset): Handle not allocated local_get_addr_cache.
24577 (vt_find_locations): Use post-order on the inverted CFG.
24578
24579 2014-01-28 Alan Modra <amodra@gmail.com>
24580
24581 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24582 * configure.ac <recursive call for build != host>: Define
24583 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24584 and LD_FOR_BUILD too.
24585 * configure: Regenerate.
24586
24587 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24588
24589 * config/i386/i386.c (get_builtin_code_for_version): Separate
24590 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24591 Broadwell from Haswell.
24592
24593 2014-01-27 Steve Ellcey <sellcey@mips.com>
24594
24595 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24596 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24597 * config/mips/mips.c (mips_option_override): Change setting
24598 of TARGET_DSP.
24599 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24600 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24601 Change from Mask to Var.
24602
24603 2014-01-27 Jeff Law <law@redhat.com>
24604
24605 * ipa-inline.c (inline_small_functions): Fix typo.
24606
24607 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24608
24609 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24610 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24611 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24612 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24613 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24614 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24615 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24616 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24617 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24618 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24619 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24620 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24621 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24622 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24623 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24624 (_mm512_storeu_epi64): Ditto.
24625 (_mm512_cmpge_epi32_mask): Ditto.
24626 (_mm512_cmpge_epu32_mask): Ditto.
24627 (_mm512_cmpge_epi64_mask): Ditto.
24628 (_mm512_cmpge_epu64_mask): Ditto.
24629 (_mm512_cmple_epi32_mask): Ditto.
24630 (_mm512_cmple_epu32_mask): Ditto.
24631 (_mm512_cmple_epi64_mask): Ditto.
24632 (_mm512_cmple_epu64_mask): Ditto.
24633 (_mm512_cmplt_epi32_mask): Ditto.
24634 (_mm512_cmplt_epu32_mask): Ditto.
24635 (_mm512_cmplt_epi64_mask): Ditto.
24636 (_mm512_cmplt_epu64_mask): Ditto.
24637 (_mm512_cmpneq_epi32_mask): Ditto.
24638 (_mm512_cmpneq_epu32_mask): Ditto.
24639 (_mm512_cmpneq_epi64_mask): Ditto.
24640 (_mm512_cmpneq_epu64_mask): Ditto.
24641 (_mm512_expand_pd): Ditto.
24642 (_mm512_expand_ps): Ditto.
24643 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24644 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24645 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24646 * config/i386/i386.c (ix86_builtins): Add
24647 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24648 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24649 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24650 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24651 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24652 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24653 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24654 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24655 IX86_BUILTIN_PMOVUSQW512_MEM.
24656 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24657 __builtin_ia32_pmovsqd512mem_mask,
24658 __builtin_ia32_pmovqd512mem_mask,
24659 __builtin_ia32_pmovusqw512mem_mask,
24660 __builtin_ia32_pmovsqw512mem_mask,
24661 __builtin_ia32_pmovqw512mem_mask,
24662 __builtin_ia32_pmovusdw512mem_mask,
24663 __builtin_ia32_pmovsdw512mem_mask,
24664 __builtin_ia32_pmovdw512mem_mask,
24665 __builtin_ia32_pmovqb512mem_mask,
24666 __builtin_ia32_pmovusqb512mem_mask,
24667 __builtin_ia32_pmovsqb512mem_mask,
24668 __builtin_ia32_pmovusdb512mem_mask,
24669 __builtin_ia32_pmovsdb512mem_mask,
24670 __builtin_ia32_pmovdb512mem_mask.
24671 (bdesc_args): Add __builtin_ia32_expanddf512,
24672 __builtin_ia32_expandsf512.
24673 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24674 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24675 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24676 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24677 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24678 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24679 (avx512f_<code>v8div16qi2_mask_store): This.
24680 (avx512f_expand<mode>): New.
24681
24682 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24683
24684 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24685 New.
24686 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24687 (_mm512_prefetch_i32scatter_pd): Ditto.
24688 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24689 (_mm512_prefetch_i64scatter_pd): Ditto.
24690 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24691 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24692 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24693 (_mm512_prefetch_i32scatter_ps): Ditto.
24694 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24695 (_mm512_prefetch_i64scatter_ps): Ditto.
24696 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24697 * config/i386/i386-builtin-types.def: Define
24698 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24699 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24700 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24701 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24702 IX86_BUILTIN_SCATTERPFQPD.
24703 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24704 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24705 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24706 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24707 __builtin_ia32_scatterpfqps.
24708 (ix86_expand_builtin): Expand new built-ins.
24709 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24710 fix memory access data type.
24711 (*avx512pf_gatherpf<mode>_mask): Ditto.
24712 (*avx512pf_gatherpf<mode>): Ditto.
24713 (avx512pf_scatterpf<mode>): Ditto.
24714 (*avx512pf_scatterpf<mode>_mask): Ditto.
24715 (*avx512pf_scatterpf<mode>): Ditto.
24716 (GATHER_SCATTER_SF_MEM_MODE): New.
24717 (avx512pf_gatherpf<mode>df): Ditto.
24718 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24719 (*avx512pf_scatterpf<mode>df): Ditto.
24720
24721 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24722
24723 PR bootstrap/59934
24724 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24725 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24726 reached.
24727
24728 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24729
24730 * common/config/arm/arm-common.c
24731 (arm_rewrite_mcpu): Handle multiple names.
24732 * config/arm/arm.h
24733 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24734
24735 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24736
24737 * gimple-builder.h (create_gimple_tmp): Delete.
24738
24739 2014-01-27 Christian Bruel <christian.bruel@st.com>
24740
24741 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24742 words comparisons.
24743
24744 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24745
24746 * config/pa/pa.md (call): Generate indirect long calls to non-local
24747 functions when outputing 32-bit code.
24748 (call_value): Likewise except for special call to buggy powf function.
24749
24750 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24751 portable runtime and PIC indirect calls.
24752 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24753 and PIC call sequences. Use ldo instead of blr to set return register
24754 in PIC call sequence.
24755
24756 2014-01-25 Walter Lee <walt@tilera.com>
24757
24758 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24759 avoid clobbering a live register.
24760
24761 2014-01-25 Walter Lee <walt@tilera.com>
24762
24763 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24764 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24765 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24766 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24767
24768 2014-01-25 Walter Lee <walt@tilera.com>
24769
24770 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24771 arguments on even registers.
24772 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24773 STACK_BOUNDARY.
24774 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24775 (BIGGEST_ALIGNMENT): Ditto.
24776 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24777
24778 2014-01-25 Walter Lee <walt@tilera.com>
24779
24780 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24781 insns before bundling.
24782 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24783
24784 2014-01-25 Walter Lee <walt@tilera.com>
24785
24786 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24787 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24788 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24789
24790 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24791
24792 * config/mips/constraints.md (kl): Delete.
24793 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24794 define expands, using...
24795 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24796 instructions for MIPS16.
24797 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24798 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24799
24800 2014-01-25 Walter Lee <walt@tilera.com>
24801
24802 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24803 (clzdi2): Ditto.
24804 (ffsdi2): Ditto.
24805
24806 2014-01-25 Walter Lee <walt@tilera.com>
24807
24808 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24809 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24810
24811 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24812
24813 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24814 Handle XOR.
24815
24816 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24817
24818 * print-rtl.c (in_call_function_usage): New var.
24819 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24820 EXPR_LIST mode as mode and not as reg note name.
24821
24822 PR middle-end/59561
24823 * cfgloopmanip.c (copy_loop_info): If
24824 loop->warned_aggressive_loop_optimizations, make sure
24825 the flag is set in target loop too.
24826
24827 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24828
24829 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24830 flag_cilkplus.
24831 * builtins.def: Likewise.
24832 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24833 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24834 * ira.c (ira_setup_eliminable_regset): Likewise.
24835 * omp-low.c (gate_expand_omp): Likewise.
24836 (execute_lower_omp): Likewise.
24837 (diagnose_sb_0): Likewise.
24838 (gate_diagnose_omp_blocks): Likewise.
24839 (simd_clone_clauses_extract): Likewise.
24840 (gate): Likewise.
24841
24842 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24843
24844 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24845 correction for little endian...
24846 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24847 here.
24848
24849 2014-01-24 Jeff Law <law@redhat.com>
24850
24851 PR tree-optimization/59919
24852 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24853 for non-returning calls.
24854
24855 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24856
24857 * common/config/aarch64/aarch64-common.c
24858 (aarch64_rewrite_mcpu): Handle multiple names.
24859 * config/aarch64/aarch64.h
24860 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24861
24862 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24863
24864 * input.c (add_file_to_cache_tab): Handle the case where fopen
24865 returns NULL.
24866
24867 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24868
24869 PR target/59929
24870 * config/i386/i386.md (pushsf splitter): Get stack adjustment
24871 from push operand if code of push isn't PRE_DEC.
24872
24873 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24874
24875 PR target/59909
24876 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24877 -mquad-memory-atomic. Update -mquad-memory documentation to say
24878 it is only used for non-atomic loads/stores.
24879
24880 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24881 -mquad-memory or -mquad-memory-atomic switches.
24882
24883 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24884 -mquad-memory-atomic to ISA 2.07 support.
24885
24886 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24887 to separate support of normal quad word memory operations (ldq, stq)
24888 from the atomic quad word memory operations.
24889
24890 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24891 support to separate non-atomic quad word operations from atomic
24892 quad word operations. Disable non-atomic quad word operations in
24893 little endian mode so that we don't have to swap words after the
24894 load and before the store.
24895 (quad_load_store_p): Add comment about atomic quad word support.
24896 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24897 options printed with -mdebug=reg.
24898
24899 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24900 -mquad-memory-atomic as the test for whether we have quad word
24901 atomic instructions.
24902 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24903 or -mp8-vector are used, allow byte/half-word atomic operations.
24904
24905 * config/rs6000/sync.md (load_lockedti): Insure that the address
24906 is a proper indexed or indirect address for the lqarx instruction.
24907 On little endian systems, swap the hi/lo registers after the lqarx
24908 instruction.
24909 (load_lockedpti): Use indexed_or_indirect_operand predicate to
24910 insure the address is valid for the lqarx instruction.
24911 (store_conditionalti): Insure that the address is a proper indexed
24912 or indirect address for the stqcrx. instruction. On little endian
24913 systems, swap the hi/lo registers before doing the stqcrx.
24914 instruction.
24915 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24916 insure the address is valid for the stqcrx. instruction.
24917
24918 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24919 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24920 type of quad memory support is available.
24921
24922 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
24923
24924 PR regression/59915
24925 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24926 there is a danger of looping.
24927
24928 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
24929
24930 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24931 force flag_ira_loop_pressure if set via command line.
24932
24933 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24934
24935 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24936 (ashr_simd): New builtin handling DI mode.
24937 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24938 (aarch64_sshr_simddi): New match pattern.
24939 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24940 (vshrd_n_s64): Likewise.
24941 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24942
24943 2014-01-23 Nick Clifton <nickc@redhat.com>
24944
24945 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24946 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24947 favour of mcu specific scripts.
24948 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24949 430x multilibs.
24950
24951 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24952 Alex Velenko <Alex.Velenko@arm.com>
24953
24954 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24955 (vaddv_s16): Likewise.
24956 (vaddv_s32): Likewise.
24957 (vaddv_u8): Likewise.
24958 (vaddv_u16): Likewise.
24959 (vaddv_u32): Likewise.
24960 (vaddvq_s8): Likewise.
24961 (vaddvq_s16): Likewise.
24962 (vaddvq_s32): Likewise.
24963 (vaddvq_s64): Likewise.
24964 (vaddvq_u8): Likewise.
24965 (vaddvq_u16): Likewise.
24966 (vaddvq_u32): Likewise.
24967 (vaddvq_u64): Likewise.
24968 (vaddv_f32): Likewise.
24969 (vaddvq_f32): Likewise.
24970 (vaddvq_f64): Likewise.
24971 (vmaxv_f32): Likewise.
24972 (vmaxv_s8): Likewise.
24973 (vmaxv_s16): Likewise.
24974 (vmaxv_s32): Likewise.
24975 (vmaxv_u8): Likewise.
24976 (vmaxv_u16): Likewise.
24977 (vmaxv_u32): Likewise.
24978 (vmaxvq_f32): Likewise.
24979 (vmaxvq_f64): Likewise.
24980 (vmaxvq_s8): Likewise.
24981 (vmaxvq_s16): Likewise.
24982 (vmaxvq_s32): Likewise.
24983 (vmaxvq_u8): Likewise.
24984 (vmaxvq_u16): Likewise.
24985 (vmaxvq_u32): Likewise.
24986 (vmaxnmv_f32): Likewise.
24987 (vmaxnmvq_f32): Likewise.
24988 (vmaxnmvq_f64): Likewise.
24989 (vminv_f32): Likewise.
24990 (vminv_s8): Likewise.
24991 (vminv_s16): Likewise.
24992 (vminv_s32): Likewise.
24993 (vminv_u8): Likewise.
24994 (vminv_u16): Likewise.
24995 (vminv_u32): Likewise.
24996 (vminvq_f32): Likewise.
24997 (vminvq_f64): Likewise.
24998 (vminvq_s8): Likewise.
24999 (vminvq_s16): Likewise.
25000 (vminvq_s32): Likewise.
25001 (vminvq_u8): Likewise.
25002 (vminvq_u16): Likewise.
25003 (vminvq_u32): Likewise.
25004 (vminnmv_f32): Likewise.
25005 (vminnmvq_f32): Likewise.
25006 (vminnmvq_f64): Likewise.
25007
25008 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25009
25010 * config/aarch64/aarch64-simd.md
25011 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25012 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25013 (*aarch64_mul3_elt<mode>): Likewise.
25014 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25015 (*aarch64_mul3_elt_to_64v2df): Likewise.
25016 (*aarch64_mla_elt<mode>): Likewise.
25017 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25018 (*aarch64_mls_elt<mode>): Likewise.
25019 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25020 (*aarch64_fma4_elt<mode>): Likewise.
25021 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25022 (*aarch64_fma4_elt_to_64v2df): Likewise.
25023 (*aarch64_fnma4_elt<mode>): Likewise.
25024 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25025 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25026 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25027 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25028 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25029 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25030 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25031 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25032 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25033
25034 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25035
25036 * config/aarch64/aarch64-simd.md
25037 (aarch64_be_checked_get_lane<mode>): New define_expand.
25038 * config/aarch64/aarch64-simd-builtins.def
25039 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25040 New builtin definition.
25041 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25042 Use new safe be builtin.
25043
25044 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25045
25046 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25047 New define_insn.
25048 (aarch64_be_st1<mode>): Likewise.
25049 (aarch_ld1<VALL:mode>): Define_expand modified.
25050 (aarch_st1<VALL:mode>): Likewise.
25051 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25052 (UNSPEC_ST1): Likewise.
25053
25054 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25055
25056 * config/microblaze/microblaze.md: Add trap insn and attribute
25057
25058 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25059
25060 PR preprocessor/58580
25061 * input.h (location_get_source_line): Take an additional line_size
25062 parameter.
25063 (void diagnostics_file_cache_fini): Declare new function.
25064 * input.c (struct fcache): New type.
25065 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25066 New static constants.
25067 (diagnostic_file_cache_init, total_lines_num)
25068 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25069 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25070 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25071 (get_next_line, read_next_line, goto_next_line, read_line_num):
25072 New static function definitions.
25073 (diagnostic_file_cache_fini): New function.
25074 (location_get_source_line): Take an additional output line_len
25075 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25076 read_line_num.
25077 * diagnostic.c (diagnostic_finish): Call
25078 diagnostic_file_cache_fini.
25079 (adjust_line): Take an additional input parameter for the length
25080 of the line, rather than calculating it with strlen.
25081 (diagnostic_show_locus): Adjust the use of
25082 location_get_source_line and adjust_line with respect to their new
25083 signature. While displaying a line now, do not stop at the first
25084 null byte. Rather, display the zero byte as a space and keep
25085 going until we reach the size of the line.
25086 * Makefile.in: Add vec.o to OBJS-libcommon
25087
25088 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25089 Ilya Tocar <ilya.tocar@intel.com>
25090
25091 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25092 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25093 (__builtin_ia32_kmov16): Ditto.
25094 * config/i386/i386.md (UNSPEC_KMOV): New.
25095 (kmovw): Ditto.
25096
25097 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25098
25099 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25100 (_mm512_storeu_si512): Ditto.
25101
25102 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25103
25104 PR target/52125
25105 * rtl.h (get_referenced_operands): Declare.
25106 * recog.c (get_referenced_operands): New function.
25107 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25108 operands have been referenced when recording LO_SUM references.
25109
25110 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25111
25112 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25113
25114 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25115
25116 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25117 Enable for generic and recent AMD targets.
25118
25119 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25120
25121 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25122 ARG_SIZE note when adjustment was eliminated.
25123
25124 2014-01-22 Jeff Law <law@redhat.com>
25125
25126 PR tree-optimization/59597
25127 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25128 in file. Accept new argument REGISTERING and use it to modify
25129 dump output appropriately.
25130 (register_jump_thread): Corresponding changes.
25131 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25132 thread paths involving joiner blocks. Add code to dump cancelled
25133 jump threading paths.
25134
25135 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25136
25137 PR rtl-optimization/59477
25138 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25139 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25140
25141 2014-01-22 Tom Tromey <tromey@redhat.com>
25142
25143 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25144 PARAMS.
25145 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25146
25147 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25148
25149 PR rtl-optimization/59896
25150 * lra-constraints.c (process_alt_operands): Check unused note for
25151 matched operands of insn with no output reloads.
25152
25153 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25154
25155 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25156 (mips_move_from_gpr_cost): Likewise.
25157
25158 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25159
25160 PR rtl-optimization/59858
25161 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25162 ira_class_hard_regs_num.
25163 (process_alt_operands): Increase reject for dying matched operand.
25164
25165 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25166
25167 PR target/59003
25168 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25169 smaller than size, perform several stores or loads and stores
25170 at dst + count - size to store or copy all of size bytes, rather
25171 than just last modesize bytes.
25172
25173 2014-01-20 DJ Delorie <dj@redhat.com>
25174
25175 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25176 that CLOBBERs are REGs before propogating their values.
25177
25178 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25179
25180 PR middle-end/59789
25181 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25182 (cgraph_inline_failed_type): New function.
25183 * cgraph.h (DEFCIFCODE): Add type.
25184 (cgraph_inline_failed_type_t): New enum.
25185 (cgraph_inline_failed_type): New prototype.
25186 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25187 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25188 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25189 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25190 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25191 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25192 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25193 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25194 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25195 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25196 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25197 OPTIMIZATION_MISMATCH.
25198 * tree-inline.c (expand_call_inline): Emit errors during
25199 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25200
25201 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25202
25203 PR target/59685
25204 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25205 mode attribute in insn output.
25206
25207 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25208
25209 * output.h (output_constant): Delete.
25210 * varasm.c (output_constant): Make private.
25211
25212 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25213
25214 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25215
25216 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25217
25218 PR middle-end/59860
25219 * tree.h (fold_builtin_strcat): New prototype.
25220 * builtins.c (fold_builtin_strcat): No longer static. Add len
25221 argument, if non-NULL, don't call c_strlen. Optimize
25222 directly into __builtin_memcpy instead of __builtin_strcpy.
25223 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25224 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25225
25226 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25227
25228 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25229 for SImode_address_operand operands, having only a REG argument.
25230
25231 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25232
25233 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25234 loader name using mbig-endian.
25235 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25236
25237 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25238
25239 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25240 (-mtune): Likewise.
25241 (-mcpu): Likewise.
25242
25243 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25244
25245 * config/aarch64/aarch64-protos.h
25246 (aarch64_cannot_change_mode_class_ptr): Declare.
25247 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25248 aarch64_cannot_change_mode_class_ptr): New.
25249 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25250 backend hook aarch64_cannot_change_mode_class.
25251
25252 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25253
25254 * common/config/aarch64/aarch64-common.c
25255 (aarch64_handle_option): Don't handle any option order logic here.
25256 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25257 selected_cpu, warn on architecture version mismatch.
25258 (aarch64_override_options): Fix parsing order for option strings.
25259
25260 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25261 Iain Sandoe <iain@codesourcery.com>
25262
25263 PR bootstrap/59496
25264 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25265 warning. Amend comment to reflect current functionality.
25266
25267 2014-01-20 Richard Biener <rguenther@suse.de>
25268
25269 PR middle-end/59860
25270 * builtins.c (fold_builtin_strcat): Remove case better handled
25271 by tree-ssa-strlen.c.
25272
25273 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25274
25275 * config/aarch64/aarch64.opt
25276 (mcpu, march, mtune): Make case-insensitive.
25277
25278 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25279
25280 PR target/59880
25281 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25282 if operands[1] is a REG or ZERO_EXTEND of a REG.
25283
25284 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25285
25286 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25287
25288 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25289
25290 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25291 long non-pic millicode calls.
25292
25293 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25294
25295 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25296
25297 2014-01-19 Kito Cheng <kito@0xlab.org>
25298
25299 * builtins.c (expand_movstr): Check movstr expand done or fail.
25300
25301 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25302 H.J. Lu <hongjiu.lu@intel.com>
25303
25304 PR target/59379
25305 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25306 to DImode for zero-extended addresses.
25307
25308 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25309
25310 PR rtl-optimization/57763
25311 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25312 on the new indirect jump_insn and increment LABEL_NUSES (label).
25313
25314 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25315
25316 PR bootstrap/59580
25317 PR bootstrap/59583
25318 * config.gcc (x86_archs): New variable.
25319 (x86_64_archs): Likewise.
25320 (x86_cpus): Likewise.
25321 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25322 --with-arch/--with-cpu= options.
25323 Support --with-arch=/--with-cpu={nehalem,westmere,
25324 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25325
25326 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25327
25328 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25329 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25330
25331 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25332
25333 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25334
25335 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25336
25337 PR target/58944
25338 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25339 clear cpp_get_options (parse_in)->warn_unused_macros for
25340 ix86_target_macros_internal with cpp_define.
25341
25342 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25343
25344 * jump.c (delete_related_insns): Keep (use (insn))s.
25345 * reorg.c (redundant_insn): Check for barriers too.
25346
25347 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25348
25349 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25350
25351 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25352
25353 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25354 call to $$dyncall when TARGET_LONG_CALLS is true.
25355
25356 2014-01-17 Jeff Law <law@redhat.com>
25357
25358 * ree.c (combine_set_extension): Temporarily disable test for
25359 changing number of hard registers.
25360
25361 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25362
25363 PR middle-end/58125
25364 * ipa-inline-analysis.c (inline_free_summary):
25365 Do not free summary of aliases.
25366
25367 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25368
25369 PR middle-end/59706
25370 * gimplify.c (gimplify_expr): Use create_tmp_var
25371 instead of create_tmp_var_raw. If cond doesn't have
25372 integral type, don't add the IFN_ANNOTATE builtin at all.
25373
25374 2014-01-17 Martin Jambor <mjambor@suse.cz>
25375
25376 PR ipa/59736
25377 * ipa-cp.c (prev_edge_clone): New variable.
25378 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25379 Also resize prev_edge_clone vector.
25380 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25381 (ipcp_edge_removal_hook): New function.
25382 (ipcp_driver): Register ipcp_edge_removal_hook.
25383
25384 2014-01-17 Andrew Pinski <apinski@cavium.com>
25385 Steve Ellcey <sellcey@mips.com>
25386
25387 PR target/59462
25388 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25389 of operator mode.
25390
25391 2014-01-17 Jeff Law <law@redhat.com>
25392
25393 PR middle-end/57904
25394 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25395 so that pass_ccp runs first.
25396
25397 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25398
25399 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25400 (ix86_adjust_cost): Use !TARGET_XXX.
25401 (do_reorder_for_imul): Likewise.
25402 (swap_top_of_ready_list): Likewise.
25403 (ix86_sched_reorder): Likewise.
25404
25405 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25406
25407 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25408 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25409 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25410 (intel_memset): New. Duplicate slm_memset.
25411 (intel_cost): New. Duplicate slm_cost.
25412 (m_INTEL): New macro.
25413 (processor_target_table): Add "intel".
25414 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25415 with PROCESSOR_INTEL for "intel".
25416 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25417 PROCESSOR_SILVERMONT.
25418 (ix86_issue_rate): Likewise.
25419 (ix86_adjust_cost): Likewise.
25420 (ia32_multipass_dfa_lookahead): Likewise.
25421 (swap_top_of_ready_list): Likewise.
25422 (ix86_sched_reorder): Likewise.
25423 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25424 instead of TARGET_OPT_AGU.
25425 * config/i386/i386.h (TARGET_INTEL): New.
25426 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25427 (processor_type): Add PROCESSOR_INTEL.
25428 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25429 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25430
25431 2014-01-17 Marek Polacek <polacek@redhat.com>
25432
25433 PR c/58346
25434 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25435 size is zero.
25436
25437 2014-01-17 Richard Biener <rguenther@suse.de>
25438
25439 PR tree-optimization/46590
25440 * opts.c (default_options_table): Add entries for
25441 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25442 all enabled at -O1 but not for -Og.
25443 * common.opt (fbranch-count-reg): Remove Init(1).
25444 (fmove-loop-invariants): Likewise.
25445 (ftree-pta): Likewise.
25446
25447 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25448
25449 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25450 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25451 decls to at least the GCC 4.8 used alignments.
25452
25453 PR fortran/59440
25454 * tree-nested.c (convert_nonlocal_reference_stmt,
25455 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25456 of GIMPLE_BIND stmts, adjust associated decls.
25457
25458 2014-01-17 Richard Biener <rguenther@suse.de>
25459
25460 PR tree-optimization/46590
25461 * vec.h (vec<>::bseach): New member function implementing
25462 binary search according to C89 bsearch.
25463 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25464 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25465 bitmap pointer again. Make accesses_in_loop a flat array.
25466 (mem_ref_obstack): New global.
25467 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25468 (mark_ref_stored): Likewise.
25469 (ref_indep_loop_p_2): Likewise.
25470 (set_ref_stored_in_loop): New helper function.
25471 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25472 (memref_free): Adjust.
25473 (record_mem_ref_loc): Simplify.
25474 (gather_mem_refs_stmt): Adjust.
25475 (sort_locs_in_loop_postorder_cmp): New function.
25476 (analyze_memory_references): Sort accesses_in_loop after
25477 loop postorder number.
25478 (find_ref_loc_in_loop_cmp): New function.
25479 (for_all_locs_in_loop): Find relevant cluster of locs in
25480 accesses_in_loop and iterate without recursion.
25481 (execute_sm): Avoid uninit warning.
25482 (struct ref_always_accessed): Simplify.
25483 (ref_always_accessed::operator ()): Likewise.
25484 (ref_always_accessed_p): Likewise.
25485 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25486 loop postorder numbers here.
25487 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25488 numbers.
25489
25490 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25491
25492 PR c++/57945
25493 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25494 on decls for which assemble_alias has been called.
25495
25496 2014-01-17 Nick Clifton <nickc@redhat.com>
25497
25498 * config/msp430/msp430.opt: (mcpu): New option.
25499 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25500 (msp430_option_override): Parse target_cpu. If the MCU name
25501 matches a generic string, clear target_mcu.
25502 (msp430_attr): Allow numeric interrupt values up to 63.
25503 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25504 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25505 option.
25506 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25507 Add mcpu matches.
25508 * config/msp430/msp430.md (popm): Use %J rather than %I.
25509 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25510 (addhi_cy_i): Use immediate_operand for operand 2.
25511 * doc/invoke.texi: Document -mcpu option.
25512
25513 2014-01-17 Richard Biener <rguenther@suse.de>
25514
25515 PR rtl-optimization/38518
25516 * df.h (df_analyze_loop): Declare.
25517 * df-core.c: Include cfgloop.h.
25518 (df_analyze_1): Split out main part of df_analyze.
25519 (df_analyze): Adjust.
25520 (loop_inverted_post_order_compute): New function.
25521 (loop_post_order_compute): Likewise.
25522 (df_analyze_loop): New function avoiding whole-function
25523 postorder computes.
25524 * loop-invariant.c (find_defs): Use df_analyze_loop.
25525 (find_invariants): Adjust.
25526 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25527
25528 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25529
25530 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25531 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25532
25533 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25534
25535 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25536 traversal when removing references.
25537
25538 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25539
25540 PR ipa/59775
25541 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25542
25543 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25544
25545 PR middle-end/56791
25546 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25547 pushing a reload for an autoinc when we had previously reloaded an
25548 inner part of the address.
25549
25550 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25551
25552 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25553 field.
25554 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25555 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25556 when not giving up or versioning for alias only because of
25557 loop->safelen.
25558 (vect_analyze_data_ref_dependences): Set to true.
25559 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25560 is a GIMPLE_PHI.
25561 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25562 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25563 to the condition.
25564
25565 PR middle-end/58344
25566 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25567
25568 PR target/59839
25569 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25570 operand 0 predicate for gathers, use a new pseudo as subtarget.
25571
25572 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25573
25574 PR middle-end/59609
25575 * lra-constraints.c (process_alt_operands): Add printing debug info.
25576 Check absence of input/output reloads for matched operands too.
25577
25578 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25579
25580 PR rtl-optimization/59835
25581 * ira.c (ira_init_register_move_cost): Increase cost for
25582 impossible modes.
25583
25584 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25585
25586 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25587
25588 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25589
25590 PR target/59780
25591 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25592 non-register objects. Use gen_(high/low)part more consistently.
25593 Fix assertions.
25594
25595 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25596
25597 PR target/59844
25598 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25599 endian support, remove tests for WORDS_BIG_ENDIAN.
25600 (p8_mfvsrd_3_<mode>): Likewise.
25601 (reload_gpr_from_vsx<mode>): Likewise.
25602 (reload_gpr_from_vsxsf): Likewise.
25603 (p8_mfvsrd_4_disf): Likewise.
25604
25605 2014-01-16 Richard Biener <rguenther@suse.de>
25606
25607 PR rtl-optimization/46590
25608 * lcm.c (compute_antinout_edge): Use postorder iteration.
25609 (compute_laterin): Use inverted postorder iteration.
25610
25611 2014-01-16 Nick Clifton <nickc@redhat.com>
25612
25613 PR middle-end/28865
25614 * varasm.c (output_constant): Return the number of bytes actually
25615 emitted.
25616 (output_constructor_array_range): Update the field size with the
25617 number of bytes emitted by output_constant.
25618 (output_constructor_regular_field): Likewise. Also do not
25619 complain if the total number of bytes emitted is now greater
25620 than the expected fieldpos.
25621 * output.h (output_constant): Update prototype and descriptive comment.
25622
25623 2014-01-16 Marek Polacek <polacek@redhat.com>
25624
25625 PR middle-end/59827
25626 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25627 it is error_mark_node.
25628
25629 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25630
25631 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25632 VALID_AVX256_REG_OR_OI_MODE.
25633
25634 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25635
25636 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25637 current procedure should be profiled.
25638
25639 2014-01-15 Andrew Pinski <apinski@cavium.com>
25640
25641 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25642 of moving from/to the STACK_REG register class.
25643
25644 2014-01-15 Richard Henderson <rth@redhat.com>
25645
25646 PR debug/54694
25647 * reginfo.c (global_regs_decl): Globalize.
25648 * rtl.h (global_regs_decl): Declare.
25649 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25650 reserved via global_regs.
25651
25652 2014-01-15 Teresa Johnson <tejohnson@google.com>
25653
25654 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25655
25656 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25657
25658 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25659 and vmulosh rather than call gen_vec_widen_smult_*.
25660 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25661 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25662 (vec_widen_smult_even_v16qi): Likewise.
25663 (vec_widen_umult_even_v8hi): Likewise.
25664 (vec_widen_smult_even_v8hi): Likewise.
25665 (vec_widen_umult_odd_v16qi): Likewise.
25666 (vec_widen_smult_odd_v16qi): Likewise.
25667 (vec_widen_umult_odd_v8hi): Likewise.
25668 (vec_widen_smult_odd_v8hi): Likewise.
25669 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25670 vmuloub rather than call gen_vec_widen_umult_*.
25671 (vec_widen_umult_lo_v16qi): Likewise.
25672 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25673 vmulosb rather than call gen_vec_widen_smult_*.
25674 (vec_widen_smult_lo_v16qi): Likewise.
25675 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25676 rather than call gen_vec_widen_umult_*.
25677 (vec_widen_umult_lo_v8hi): Likewise.
25678 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25679 rather than call gen_vec_widen_smult_*.
25680 (vec_widen_smult_lo_v8hi): Likewise.
25681
25682 2014-01-15 Jeff Law <law@redhat.com>
25683
25684 PR tree-optimization/59747
25685 * ree.c (find_and_remove_re): Properly handle case where a second
25686 eliminated extension requires widening a copy created for elimination
25687 of a prior extension.
25688 (combine_set_extension): Ensure that the number of hard regs needed
25689 for a destination register does not change when we widen it.
25690
25691 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25692
25693 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25694 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25695 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25696 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25697 (avr-*-rtems*): Likewise.
25698 (bfin*-rtems*): Likewise.
25699 (moxie-*-rtems*): Likewise.
25700 (h8300-*-rtems*): Likewise.
25701 (i[34567]86-*-rtems*): Likewise.
25702 (lm32-*-rtems*): Likewise.
25703 (m32r-*-rtems*): Likewise.
25704 (m68k-*-rtems*): Likewise.
25705 (microblaze*-*-rtems*): Likewise.
25706 (mips*-*-rtems*): Likewise.
25707 (powerpc-*-rtems*): Likewise.
25708 (sh-*-rtems*): Likewise.
25709 (sparc-*-rtems*): Likewise.
25710 (sparc64-*-rtems*): Likewise.
25711 (v850-*-rtems*): Likewise.
25712 (m32c-*-rtems*): Likewise.
25713
25714 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25715
25716 PR rtl-optimization/59511
25717 * ira.c (ira_init_register_move_cost): Use memory costs for some
25718 cases of register move cost calculations.
25719 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25720 instead of BB frequency.
25721 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25722 * lra-assigns.c (find_hard_regno_for): Ditto.
25723
25724 2014-01-15 Richard Biener <rguenther@suse.de>
25725
25726 PR tree-optimization/59822
25727 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25728 (vectorizable_load): Use it to hoist defs of uses of invariant
25729 loads out of the loop.
25730
25731 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25732 Kugan Vivekanandarajah <kuganv@linaro.org>
25733
25734 PR target/59695
25735 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25736 truncation.
25737
25738 2014-01-15 Richard Biener <rguenther@suse.de>
25739
25740 PR rtl-optimization/59802
25741 * lcm.c (compute_available): Use inverted postorder to seed
25742 the initial worklist.
25743
25744 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25745
25746 PR target/59803
25747 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25748 ADDR_REGS for invalid symrefs in non-PIC code.
25749
25750 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25751
25752 PR other/58712
25753 * builtins.c (determine_block_size): Initialize *probable_max_size
25754 even if len_rtx is CONST_INT.
25755
25756 2014-01-14 Andrew Pinski <apinski@cavium.com>
25757
25758 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25759 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25760 (cortexa53_tunings): Likewise.
25761 (aarch64_sched_issue_rate): New function.
25762 (TARGET_SCHED_ISSUE_RATE): Define.
25763
25764 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25765
25766 * ira-costs.c (find_costs_and_classes): Add missed
25767 ira_init_register_move_cost_if_necessary.
25768
25769 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25770
25771 PR target/59787
25772 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25773
25774 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25775
25776 PR target/59794
25777 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25778 to indicate if type is used for function return value. Warn ABI
25779 change if the vector mode isn't available for function return value.
25780 (ix86_function_arg_advance): Pass false to type_natural_mode.
25781 (ix86_function_arg): Likewise.
25782 (ix86_gimplify_va_arg): Likewise.
25783 (function_arg_32): Don't warn ABI change.
25784 (ix86_function_value): Pass true to type_natural_mode.
25785 (ix86_return_in_memory): Likewise.
25786 (ix86_struct_value_rtx): Removed.
25787 (TARGET_STRUCT_VALUE_RTX): Likewise.
25788
25789 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25790
25791 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25792 converting a conditional jump into a conditional return.
25793
25794 2014-01-14 Richard Biener <rguenther@suse.de>
25795
25796 PR tree-optimization/58921
25797 PR tree-optimization/59006
25798 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25799 hoisting invariant stmts.
25800 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25801 invariant loads on the preheader edge if possible.
25802
25803 2014-01-14 Joey Ye <joey.ye@arm.com>
25804
25805 * doc/plugin.texi (Building GCC plugins): Update to C++.
25806
25807 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25808
25809 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25810 (_mm_rcp28_round_ss): Ditto.
25811 (_mm_rsqrt28_round_sd): Ditto.
25812 (_mm_rsqrt28_round_ss): Ditto.
25813 (_mm_rcp28_sd): Ditto.
25814 (_mm_rcp28_ss): Ditto.
25815 (_mm_rsqrt28_sd): Ditto.
25816 (_mm_rsqrt28_ss): Ditto.
25817 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25818 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25819 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25820 (IX86_BUILTIN_RCP28SD): Ditto.
25821 (IX86_BUILTIN_RCP28SS): Ditto.
25822 (IX86_BUILTIN_RSQRT28SD): Ditto.
25823 (IX86_BUILTIN_RSQRT28SS): Ditto.
25824 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25825 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25826 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25827 (ix86_expand_special_args_builtin): Expand new FTYPE.
25828 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25829 (srcp14<mode>): Make insn unary.
25830 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25831 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25832 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25833 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25834 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25835 Fix rounding: make it SAE only.
25836 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25837 Ditto.
25838 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25839 Ditto.
25840 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25841 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25842 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25843 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25844 (round_saeonly_mask_scalar_operand4): Ditto.
25845 (round_saeonly_mask_scalar_op3): Ditto.
25846 (round_saeonly_mask_scalar_op4): Ditto.
25847
25848 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25849
25850 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25851 Implement -maltivec=be for vec_insert and vec_extract.
25852
25853 2014-01-10 DJ Delorie <dj@redhat.com>
25854
25855 * config/msp430/msp430.md (call_internal): Don't allow memory
25856 references with SP as the base register.
25857 (call_value_internal): Likewise.
25858 * config/msp430/constraints.md (Yc): New. For memory references
25859 that don't use SP as a base register.
25860
25861 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25862 "an integer without a # prefix"
25863 * config/msp430/msp430.md (epilogue_helper): Use it.
25864
25865 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25866
25867 PR target/59617
25868 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25869 AVX512F gather builtins.
25870 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25871 on gather decls with INTEGER_TYPE masktype.
25872 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25873 directly into the builtin rather than hoisting it before loop.
25874
25875 PR tree-optimization/59387
25876 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25877 (scev_const_prop): If folded_casts and type has undefined overflow,
25878 use force_gimple_operand instead of force_gimple_operand_gsi and
25879 for each added stmt if it is assign with
25880 arith_code_with_undefined_signed_overflow, call
25881 rewrite_to_defined_overflow.
25882 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25883 gimple-fold.h instead.
25884 (arith_code_with_undefined_signed_overflow,
25885 rewrite_to_defined_overflow): Moved to ...
25886 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25887 rewrite_to_defined_overflow): ... here. No longer static.
25888 Include gimplify-me.h.
25889 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25890 rewrite_to_defined_overflow): New prototypes.
25891
25892 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25893
25894 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25895
25896 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
25897
25898 * builtins.c (get_object_alignment_2): Minor tweak.
25899 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25900
25901 2014-01-13 Christian Bruel <christian.bruel@st.com>
25902
25903 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25904 optimized non constant lengths.
25905
25906 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25907
25908 PR libgomp/59194
25909 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25910 load as __atomic_load_N if possible.
25911
25912 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25913
25914 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25915 target parameter.
25916 (rs6000_expand_builtin): Adjust call.
25917
25918 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25919
25920 PR target/58115
25921 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25922 * config/rs6000/rs6000.c: Include target-globals.h.
25923 (rs6000_set_current_function): Instead of doing target_reinit
25924 unconditionally, use save_target_globals_default_opts and
25925 restore_target_globals.
25926
25927 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25928 FPSCR.
25929 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25930 (rs6000_expand_builtin): Handle mffs and mtfsf.
25931 (rs6000_init_builtins): Define mffs and mtfsf.
25932 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25933 (rs6000_mffs): New pattern.
25934 (rs6000_mtfsf): New pattern.
25935
25936 2014-01-11 Bin Cheng <bin.cheng@arm.com>
25937
25938 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25939 Start narrowing with START. Apply candidate-use pair
25940 and check overall cost in narrowing.
25941 (iv_ca_prune): Pass new argument.
25942
25943 2014-01-10 Jeff Law <law@redhat.com>
25944
25945 PR middle-end/59743
25946 * ree.c (combine_reaching_defs): Ensure the defining statement
25947 occurs before the extension when optimizing extensions with
25948 different source and destination hard registers.
25949
25950 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25951
25952 PR ipa/58585
25953 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25954 vtables into the type inheritance graph.
25955
25956 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25957
25958 PR rtl-optimization/59754
25959 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25960 modes in the REGNO != REGNO case.
25961
25962 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25963
25964 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25965
25966 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25967
25968 PR tree-optimization/59745
25969 * tree-predcom.c (tree_predictive_commoning_loop): Call
25970 free_affine_expand_cache if giving up because components is NULL.
25971
25972 * target-globals.c (save_target_globals): Allocate < 4KB structs using
25973 GC in payload of target_globals struct instead of allocating them on
25974 the heap and the larger structs separately using GC.
25975 * target-globals.h (struct target_globals): Make regs, hard_regs,
25976 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25977 of GTY((skip)) and change type to void *.
25978 (reset_target_globals): Cast loads from those fields to corresponding
25979 types.
25980
25981 2014-01-10 Steve Ellcey <sellcey@mips.com>
25982
25983 PR plugins/59335
25984 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
25985 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
25986 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
25987
25988 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
25989
25990 PR target/59744
25991 * aarch64-modes.def (CC_Zmode): New flags mode.
25992 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
25993 represents an equality.
25994 (aarch64_get_condition_code): Handle CC_Zmode.
25995 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
25996
25997 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25998
25999 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26000 extraction in good case.
26001
26002 2014-01-10 Richard Biener <rguenther@suse.de>
26003
26004 PR tree-optimization/59374
26005 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26006 checking after SLP discovery. Mark stmts not participating
26007 in any SLP instance properly.
26008
26009 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26010
26011 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26012 when handling a SET rtx.
26013
26014 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26015
26016 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26017 (cortex-a57): Likewise.
26018 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26019
26020 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26021
26022 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26023 non-iwmmxt builtins.
26024
26025 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26026
26027 PR ipa/58252
26028 PR ipa/59226
26029 * ipa-devirt.c record_target_from_binfo): Take as argument
26030 stack of binfos and lookup matching one for virtual inheritance.
26031 (possible_polymorphic_call_targets_1): Update.
26032
26033 2014-01-10 Huacai Chen <chenhc@lemote.com>
26034
26035 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26036 kernel strings for Loongson-2E/2F/3A.
26037
26038 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26039
26040 PR middle-end/59670
26041 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26042 is_gimple_call before calling gimple_call_internal_p.
26043
26044 2014-01-09 Steve Ellcey <sellcey@mips.com>
26045
26046 * Makefile.in (TREE_FLOW_H): Remove.
26047 (TREE_SSA_H): Add file names from tree-flow.h.
26048 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26049 * tree.h: Remove tree-flow.h reference.
26050 * hash-table.h: Remove tree-flow.h reference.
26051 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26052 reference with tree-ssa-loop.h.
26053
26054 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26055
26056 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26057 default element-order behavior for -maltivec.
26058 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26059 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26060 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26061 when targeting big endian, at least for now.
26062 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26063
26064 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26065
26066 PR middle-end/47735
26067 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26068 var satisfies use_register_for_decl, just take into account type
26069 alignment, rather than decl alignment.
26070
26071 PR tree-optimization/59622
26072 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26073 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26074 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26075 Don't devirtualize for inplace at all. For targets.length () == 1,
26076 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26077
26078 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26079
26080 * config/i386/i386.md (cpu): Remove the unused btver1.
26081
26082 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26083
26084 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26085
26086 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26087
26088 PR target/58115
26089 * tree-core.h (struct target_globals): New forward declaration.
26090 (struct tree_target_option): Add globals field.
26091 * tree.h (TREE_TARGET_GLOBALS): Define.
26092 (prepare_target_option_nodes_for_pch): New prototype.
26093 * target-globals.h (struct target_globals): Define even if
26094 !SWITCHABLE_TARGET.
26095 * tree.c (prepare_target_option_node_for_pch,
26096 prepare_target_option_nodes_for_pch): New functions.
26097 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26098 * config/i386/i386.c: Include target-globals.h.
26099 (ix86_set_current_function): Instead of doing target_reinit
26100 unconditionally, use save_target_globals_default_opts and
26101 restore_target_globals.
26102
26103 2014-01-09 Richard Biener <rguenther@suse.de>
26104
26105 PR tree-optimization/59715
26106 * tree-cfg.h (split_critical_edges): Declare.
26107 * tree-cfg.c (split_critical_edges): Export.
26108 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26109
26110 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26111
26112 * cfgexpand.c (expand_stack_vars): Optionally disable
26113 asan stack protection.
26114 (expand_used_vars): Likewise.
26115 (partition_stack_vars): Likewise.
26116 * asan.c (asan_emit_stack_protection): Optionally disable
26117 after return stack usage.
26118 (instrument_derefs): Optionally disable memory access instrumentation.
26119 (instrument_builtin_call): Likewise.
26120 (instrument_strlen_call): Likewise.
26121 (asan_protect_global): Optionally disable global variables protection.
26122 * doc/invoke.texi: Added doc for new options.
26123 * params.def: Added new options.
26124 * params.h: Likewise.
26125
26126 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26127
26128 PR rtl-optimization/59724
26129 * ifcvt.c (cond_exec_process_if_block): Don't call
26130 flow_find_head_matching_sequence with 0 longest_match.
26131 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26132 non-active insns if !stop_after.
26133 (try_head_merge_bb): Revert 2014-01-07 changes.
26134
26135 2014-01-08 Jeff Law <law@redhat.com>
26136
26137 * ree.c (get_sub_rtx): New function, extracted from...
26138 (merge_def_and_ext): Here.
26139 (combine_reaching_defs): Use get_sub_rtx.
26140
26141 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26142
26143 * cgraph.h (varpool_variable_node): Do not choke on null node.
26144
26145 2014-01-08 Catherine Moore <clm@codesourcery.com>
26146
26147 * config/mips/mips.md (simple_return): Attempt to use JRC
26148 for microMIPS.
26149 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26150
26151 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26152
26153 PR rtl-optimization/59137
26154 * reorg.c (steal_delay_list_from_target): Call update_block for
26155 elided insns.
26156 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26157
26158 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26159
26160 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26161 two duplicate entries.
26162
26163 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26164
26165 Revert:
26166 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26167
26168 * config/mips/mips.c (mips_truncated_op_cost): New function.
26169 (mips_rtx_costs): Adjust test for BADDU.
26170 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26171
26172 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26173
26174 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26175 (*baddu_si): ...this new pattern.
26176
26177 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26178
26179 PR ipa/59722
26180 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26181
26182 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26183
26184 PR middle-end/57748
26185 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26186 inner_reference_p.
26187 (expand_expr, expand_normal): Adjust.
26188 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26189 inner_reference_p. Use inner_reference_p to expand inner references.
26190 (store_expr): Adjust.
26191 * cfgexpand.c (expand_call_stmt): Adjust.
26192
26193 2014-01-08 Rong Xu <xur@google.com>
26194
26195 * gcov-io.c (gcov_var): Move from gcov-io.h.
26196 (gcov_position): Ditto.
26197 (gcov_is_error): Ditto.
26198 (gcov_rewrite): Ditto.
26199 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26200 only part to libgcc/libgcov.h.
26201
26202 2014-01-08 Marek Polacek <polacek@redhat.com>
26203
26204 PR middle-end/59669
26205 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26206
26207 2014-01-08 Marek Polacek <polacek@redhat.com>
26208
26209 PR sanitizer/59667
26210 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26211
26212 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26213
26214 PR rtl-optimization/59649
26215 * stor-layout.c (get_mode_bounds): For BImode return
26216 0 and STORE_FLAG_VALUE.
26217
26218 2014-01-08 Richard Biener <rguenther@suse.de>
26219
26220 PR middle-end/59630
26221 * gimple.h (is_gimple_builtin_call): Remove.
26222 (gimple_builtin_call_types_compatible_p): New.
26223 (gimple_call_builtin_p): New overload.
26224 * gimple.c (is_gimple_builtin_call): Remove.
26225 (validate_call): Rename to ...
26226 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26227 check return types.
26228 (validate_type): New static function.
26229 (gimple_call_builtin_p): New overload and adjust.
26230 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26231 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26232 (gimple_fold_stmt_to_constant_1): Likewise.
26233 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26234
26235 2014-01-08 Richard Biener <rguenther@suse.de>
26236
26237 PR middle-end/59471
26238 * gimplify.c (gimplify_expr): Gimplify register-register type
26239 VIEW_CONVERT_EXPRs to separate stmts.
26240
26241 2014-01-07 Jeff Law <law@redhat.com>
26242
26243 PR middle-end/53623
26244 * ree.c (combine_set_extension): Handle case where source
26245 and destination registers in an extension insn are different.
26246 (combine_reaching_defs): Allow source and destination registers
26247 in extension to be different under limited circumstances.
26248 (add_removable_extension): Remove restriction that the
26249 source and destination registers in the extension are the same.
26250 (find_and_remove_re): Emit a copy from the extension's
26251 destination to its source after the defining insn if
26252 the source and destination registers are different.
26253
26254 PR middle-end/59285
26255 * ifcvt.c (merge_if_block): If we are merging a block with more than
26256 one successor with a block with no successors, remove any BARRIER
26257 after the second block.
26258
26259 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26260
26261 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26262
26263 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26264
26265 PR target/59652
26266 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26267 for 14-bit register offsets when INT14_OK_STRICT is false.
26268
26269 2014-01-07 Roland Stigge <stigge@antcom.de>
26270 Michael Meissner <meissner@linux.vnet.ibm.com>
26271
26272 PR 57386/target
26273 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26274 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26275
26276 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26277
26278 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26279 -mcpu.
26280
26281 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26282
26283 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26284 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26285 rtx is const0_rtx or not.
26286
26287 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26288
26289 PR target/58115
26290 * target-globals.c (save_target_globals): Remove this_fn_optab
26291 handling.
26292 * toplev.c: Include optabs.h.
26293 (target_reinit): Temporarily restore the global options if another
26294 set of options are in force.
26295
26296 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26297
26298 PR rtl-optimization/58668
26299 * cfgcleanup.c (flow_find_cross_jump): Don't count
26300 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26301 to determine what is counted.
26302 (flow_find_head_matching_sequence): Use active_insn_p to determine
26303 what is counted.
26304 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26305 counting change.
26306 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26307 determine what is counted.
26308
26309 PR tree-optimization/59643
26310 * tree-predcom.c (split_data_refs_to_components): If one dr is
26311 read and one write, determine_offset fails and the write isn't
26312 in the bad component, just put the read into the bad component.
26313
26314 2014-01-07 Mike Stump <mikestump@comcast.net>
26315 Jakub Jelinek <jakub@redhat.com>
26316
26317 PR pch/59436
26318 * tree-core.h (struct tree_optimization_option): Change optabs
26319 type from unsigned char * to void *.
26320 * optabs.c (init_tree_optimization_optabs): Adjust
26321 TREE_OPTIMIZATION_OPTABS initialization.
26322
26323 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26324
26325 PR target/59644
26326 * config/i386/i386.h (struct machine_function): Add
26327 no_drap_save_restore field.
26328 * config/i386/i386.c (ix86_save_reg): Use
26329 !cfun->machine->no_drap_save_restore instead of
26330 crtl->stack_realign_needed.
26331 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26332 this function clears frame_pointer_needed. Set
26333 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26334 and DRAP reg is needed.
26335
26336 2014-01-06 Marek Polacek <polacek@redhat.com>
26337
26338 PR c/57773
26339 * doc/implement-c.texi: Mention that other integer types are
26340 permitted as bit-field types in strictly conforming mode.
26341
26342 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26343
26344 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26345 is newly allocated.
26346
26347 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26348
26349 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26350
26351 2014-01-06 Martin Jambor <mjambor@suse.cz>
26352
26353 PR ipa/59008
26354 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26355 to int.
26356 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26357
26358 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26359
26360 PR debug/59350
26361 PR debug/59510
26362 * var-tracking.c (add_stores): Preserve the value of the source even if
26363 we don't record the store.
26364
26365 2014-01-06 Terry Guo <terry.guo@arm.com>
26366
26367 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26368
26369 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26370
26371 PR bootstrap/59541
26372 * config/darwin.c (darwin_function_section): Adjust return values to
26373 correspond to optimisation changes made in r206070.
26374
26375 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26376
26377 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26378 from prefetch_block tune setting.
26379 (nocona_cost): Correct size of prefetch block to 64.
26380
26381 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26382
26383 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26384 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26385 used to save the static chain register in the computation of the offset
26386 from which the FP registers need to be restored.
26387
26388 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26389
26390 PR tree-optimization/59519
26391 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26392 ICE if get_current_def (current_new_name) is already non-NULL, as long
26393 as it is a phi result of some other phi in *new_exit_bb that has
26394 the same argument.
26395
26396 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26397 or vmovdqu* for misaligned_operand.
26398 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26399 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26400 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26401 aligned_mem for AVX512F masked aligned load and store builtins and for
26402 non-temporal moves.
26403
26404 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26405
26406 PR tree-optimization/59651
26407 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26408 Address range for negative step should be added by TYPE_SIZE_UNIT.
26409
26410 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26411
26412 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26413 overlapping registers also for registers other than the stack pointer.
26414
26415 2014-01-03 Marek Polacek <polacek@redhat.com>
26416
26417 PR other/59661
26418 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26419 __builtin_FILE.
26420
26421 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26422
26423 PR target/59625
26424 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26425 asm goto as jump.
26426
26427 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26428 (push splitter): Use <P:MODE_SIZE> instead of
26429 GET_MODE_SIZE (<P:MODE>mode).
26430 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26431 (mov -1, reg peephole2): Likewise.
26432 * config/i386/sse.md (*mov<mode>_internal,
26433 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26434 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26435 *<code><mode>3, *andnot<mode>3<mask_name>,
26436 <mask_codefor><code><mode>3<mask_name>): Likewise.
26437 * config/i386/subst.md (mask_mode512bit_condition,
26438 sd_mask_mode512bit_condition): Likewise.
26439
26440 2014-01-02 Xinliang David Li <davidxl@google.com>
26441
26442 PR tree-optimization/59303
26443 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26444 (dump_predicates): Better output format.
26445 (pred_equal_p): New function.
26446 (is_neq_relop_p): Ditto.
26447 (is_neq_zero_form_p): Ditto.
26448 (pred_expr_equal_p): Ditto.
26449 (pred_neg_p): Ditto.
26450 (simplify_pred): Ditto.
26451 (simplify_preds_2): Ditto.
26452 (simplify_preds_3): Ditto.
26453 (simplify_preds_4): Ditto.
26454 (simplify_preds): Ditto.
26455 (push_pred): Ditto.
26456 (push_to_worklist): Ditto.
26457 (get_pred_info_from_cmp): Ditto.
26458 (is_degenerated_phi): Ditto.
26459 (normalize_one_pred_1): Ditto.
26460 (normalize_one_pred): Ditto.
26461 (normalize_one_pred_chain): Ditto.
26462 (normalize_preds): Ditto.
26463 (normalize_cond_1): Remove function.
26464 (normalize_cond): Ditto.
26465 (is_gcond_subset_of): Ditto.
26466 (is_subset_of_any): Ditto.
26467 (is_or_set_subset_of): Ditto.
26468 (is_and_set_subset_of): Ditto.
26469 (is_norm_cond_subset_of): Ditto.
26470 (pred_chain_length_cmp): Ditto.
26471 (convert_control_dep_chain_into_preds): Type change.
26472 (find_predicates): Ditto.
26473 (find_def_preds): Ditto.
26474 (destroy_predicates_vecs): Ditto.
26475 (find_matching_predicates_in_rest_chains): Ditto.
26476 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26477 (is_pred_expr_subset): Ditto.
26478 (is_pred_chain_subset_of): Ditto.
26479 (is_included_in): Ditto.
26480 (is_superset_of): Ditto.
26481
26482 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26483
26484 Update copyright years.
26485
26486 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26487
26488 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26489 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26490 config/arc/arc.md, config/arc/arc.opt,
26491 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26492 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26493 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26494 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26495 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26496 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26497 vtable-verify.c, vtable-verify.h: Use the standard form for the
26498 copyright notice.
26499
26500 2014-01-02 Tobias Burnus <burnus@net-b.de>
26501
26502 * gcc.c (process_command): Update copyright notice dates.
26503 * gcov-dump.c: Ditto.
26504 * gcov.c: Ditto.
26505 * doc/cpp.texi: Bump @copying's copyright year.
26506 * doc/cppinternals.texi: Ditto.
26507 * doc/gcc.texi: Ditto.
26508 * doc/gccint.texi: Ditto.
26509 * doc/gcov.texi: Ditto.
26510 * doc/install.texi: Ditto.
26511 * doc/invoke.texi: Ditto.
26512
26513 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26514
26515 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26516
26517 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26518
26519 * config/i386/sse.md (*mov<mode>_internal): Guard
26520 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26521
26522 PR rtl-optimization/59647
26523 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26524 new_rtx into UNSIGNED_FLOAT rtxes.
26525 \f
26526 Copyright (C) 2014 Free Software Foundation, Inc.
26527
26528 Copying and distribution of this file, with or without modification,
26529 are permitted in any medium without royalty provided the copyright
26530 notice and this notice are preserved.