mn10300: Fixes to PARALLEL handling within mn10300_adjust_sched_cost
[gcc.git] / gcc / ChangeLog
1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2
3 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4 (set_is_load_p): ...this, updating to work on a SET pattern rather
5 than an insn.
6 (is_store_insn): Rename to...
7 (set_is_store_p): ...this, updating to work on a SET pattern
8 rather than an insn.
9 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
10 top of function to where it is needed. Rewrite the bogus
11 condition that checks for "insn" and "dep" being PARALLEL to
12 instead use single_set, introducing locals "insn_set" and
13 "dep_set". Given that we only ever returned "cost" for a non-pair
14 of SETs, bail out early if we don't have a pair of SET.
15 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
16 use the new locals "insn_set" and "dep_set", and update calls to
17 is_load_insn and is_store_insn to be calls to set_is_load_p and
18 set_is_store_p.
19
20 2014-08-27 Guozhi Wei <carrot@google.com>
21
22 PR target/62262
23 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
24 amount before using it.
25
26 2014-08-27 Richard Biener <rguenther@suse.de>
27
28 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
29 get_maxval_strlen inside a more useful API.
30 (gimple_fold_builtin_with_strlen): Remove and fold into ...
31 (gimple_fold_builtin): ... caller.
32 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
33 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
34 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
35 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
36 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
37 gimple_fold_builtin_sprintf): Adjust to compute maxval
38 themselves.
39
40 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
41
42 PR other/62248
43 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
44
45 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
46 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
47 Anna Tikhonova <anna.tikhonova@intel.com>
48 Ilya Tocar <ilya.tocar@intel.com>
49 Andrey Turetskiy <andrey.turetskiy@intel.com>
50 Ilya Verbin <ilya.verbin@intel.com>
51 Kirill Yukhin <kirill.yukhin@intel.com>
52 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
53
54 * config/i386/sse.md
55 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
56 Use `concat_tg_mode' attribute to determine asm register size.
57
58 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
59 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
60 Anna Tikhonova <anna.tikhonova@intel.com>
61 Ilya Tocar <ilya.tocar@intel.com>
62 Andrey Turetskiy <andrey.turetskiy@intel.com>
63 Ilya Verbin <ilya.verbin@intel.com>
64 Kirill Yukhin <kirill.yukhin@intel.com>
65 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
66
67 * config/i386/sse.md
68 (define_mode_iterator VI48_AVX512VL): New.
69 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
70 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
71 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
72 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
73 with VI1): Change mode iterator.
74 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
75 with VI_ULOADSTORE_BW_AVX512VL): New.
76 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
77 with VI_ULOADSTORE_F_AVX512VL): Ditto.
78 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
79 with VI1): Change mode iterator.
80 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
81 with VI_ULOADSTORE_BW_AVX512VL): New.
82 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
83 with VI_ULOADSTORE_F_AVX512VL): Ditto.
84 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
85 with VI1): Change mode iterator.
86 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
87 with VI_ULOADSTORE_BW_AVX512VL): New.
88 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
89 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
90 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
91 (define_insn "<avx512>_storedqu<mode>_mask" with
92 VI48_AVX512VL): New.
93 (define_insn "<avx512>_storedqu<mode>_mask" with
94 VI12_AVX512VL): Ditto.
95
96 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
97 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
98 Anna Tikhonova <anna.tikhonova@intel.com>
99 Ilya Tocar <ilya.tocar@intel.com>
100 Andrey Turetskiy <andrey.turetskiy@intel.com>
101 Ilya Verbin <ilya.verbin@intel.com>
102 Kirill Yukhin <kirill.yukhin@intel.com>
103 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
104
105 * config/i386/sse.md
106 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
107 (define_mode_iterator VI48_AVX512BW): New.
108 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
109 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
110 with VI48_AVX2_48_AVX512F): New.
111 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
112 with VI2_AVX512VL): Ditto.
113
114 2014-08-27 Richard Biener <rguenther@suse.de>
115
116 PR middle-end/62239
117 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
118 (fold_builtin_3): Do not fold strcat_chk here.
119 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
120 from builtins.c.
121 (gimple_fold_builtin): Fold strcat_chk here.
122
123 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
124
125 * dwarf2out.h (dwarf2out_decl): Remove prototype.
126 * dwarf2out.c (dwarf2out_decl): Make static.
127
128 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
129
130 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
131
132 2014-08-26 David Malcolm <dmalcolm@redhat.com>
133
134 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
135 from rtx to rtx_insn *.
136 (cselib_lookup_from_insn): Likewise for final param.
137 (cselib_subst_to_values_from_insn): Likewise.
138 (cselib_add_permanent_equiv): Likewise.
139
140 * cselib.c (cselib_current_insn): Likewise for this variable.
141 (cselib_subst_to_values_from_insn): Likewise for param "insn".
142 (cselib_lookup_from_insn): Likewise.
143 (cselib_add_permanent_equiv): Likewise for param "insn" and local
144 "save_cselib_current_insn".
145 (cselib_process_insn): Replace use of NULL_RTX with NULL.
146
147 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
148 from rtx to rtx_insn *.
149
150 2014-08-26 David Malcolm <dmalcolm@redhat.com>
151
152 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
153 rtx_insn *.
154
155 2014-08-26 David Malcolm <dmalcolm@redhat.com>
156
157 * df.h (df_dump_insn_problem_function): Strengthen first param of
158 this callback from const_rtx to const rtx_insn *.
159 (struct df_insn_info): Strengthen field "insn" from rtx to
160 rtx_insn *.
161 (DF_REF_INSN): Eliminate this function, reinstating the older
162 macro definition.
163 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
164 (df_reg_defined): Likewise.
165 (df_find_use): Likewise.
166 (df_reg_used): Likewise.
167 (df_dump_insn_top): Strengthen param 1 from const_rtx to
168 const rtx_insn *.
169 (df_dump_insn_bottom): Likewise.
170 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
171 (df_insn_debug_regno): Likewise.
172 (debug_df_insn): Likewise.
173 (df_rd_simulate_one_insn): Likewise for param 2.
174 (df_word_lr_simulate_defs): Likewise for param 1.
175 (df_word_lr_simulate_uses): Likewise.
176 (df_md_simulate_one_insn): Likewise for param 2.
177 (df_simulate_find_noclobber_defs): Likewise for param 1.
178 (df_simulate_find_defs): Likewise.
179 (df_simulate_defs): Likewise.
180 (df_simulate_uses): Likewise.
181 (df_simulate_one_insn_backwards): Likewise for param 2.
182 (df_simulate_one_insn_forwards): Likewise.
183 (df_uses_create): Likewise for param 2.
184 (df_insn_create_insn_record): Likewise for param 1.
185 (df_insn_delete): Likewise.
186 (df_insn_rescan): Likewise.
187 (df_insn_rescan_debug_internal): Likewise.
188 (df_insn_change_bb): Likewise.
189 (df_notes_rescan): Likewise.
190 * rtl.h (remove_death): Likewise for param 2.
191 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
192 const rtx_insn *.
193 * sched-int.h (reemit_notes): Strengthen param from rtx to
194 rtx_insn *.
195 * valtrack.h (propagate_for_debug): Likewise for param 1.
196
197 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
198 local "tmp_rtx" from const_rtx to const rtx_insn *.
199 * combine.c (remove_death): Strengthen param "insn" from rtx to
200 rtx_insn *.
201 (move_deaths): Likewise for local "where_dead".
202 * cse.c (delete_trivially_dead_insns): Introduce local
203 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
204 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
205 rtx_insn *.
206 (df_reg_defined): Likewise.
207 (df_find_use): Likewise.
208 (df_reg_used): Likewise.
209 (df_dump_insn_problem_data): Strengthen param "insn" from
210 const_rtx to const rtx_insn *.
211 (df_dump_insn_top): Likewise.
212 (df_dump_insn_bottom): Likewise.
213 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
214 (df_insn_debug_regno): Likewise.
215 (debug_df_insn): Likewise.
216 (DF_REF_INSN): Delete.
217 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
218 from rtx to rtx_insn *.
219 (df_chain_insn_top_dump): Strengthen param "insn" from
220 const_rtx to const rtx_insn *.
221 (df_chain_insn_bottom_dump): Likewise.
222 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
223 rtx_insn *.
224 (df_word_lr_simulate_uses): Likewise.
225 (df_print_note): Likewise.
226 (df_remove_dead_and_unused_notes): Likewise.
227 (df_set_unused_notes_for_mw): Likewise.
228 (df_set_dead_notes_for_mw): Likewise.
229 (df_create_unused_note): Likewise.
230 (df_simulate_find_defs): Likewise.
231 (df_simulate_find_uses): Likewise.
232 (df_simulate_find_noclobber_defs): Likewise.
233 (df_simulate_defs): Likewise.
234 (df_simulate_uses): Likewise.
235 (df_simulate_one_insn_backwards): Likewise.
236 (df_simulate_one_insn_forwards): Likewise.
237 (df_md_simulate_one_insn): Likewise.
238 * df-scan.c (df_uses_create): Likewise.
239 (df_insn_create_insn_record): Likewise.
240 (df_insn_delete): Likewise.
241 (df_insn_rescan): Likewise.
242 (df_insn_rescan_debug_internal): Likewise.
243 (df_insn_change_bb): Likewise.
244 (df_notes_rescan): Likewise.
245 (df_refs_add_to_chains): Likewise.
246 (df_insn_refs_verify): Likewise.
247 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
248 when invoking df_insn_delete.
249 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
250 (set_unique_reg_note): Add checked cast.
251 * final.c (cleanup_subreg_operands): Likewise.
252 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
253 "insn" from rtx to rtx_insn *.
254 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
255 "last" from rtx to rtx_insn *.
256 * ira-emit.c (change_regs_in_insn): New function.
257 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
258 Invoke change_regs_in_insn rather than change_regs.
259 * ira.c (update_equiv_regs): Strengthen locals "insn",
260 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
261 for_each_rtx_in_insn rather than for_each_rtx.
262 * recog.c (confirm_change_group): Add checked casts.
263 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
264 Add checked cast.
265 (peep2_fill_buffer): Add checked cast.
266 * rtlanal.c (remove_note): Likewise.
267 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
268 locals "next" "end" from rtx to rtx_insn *.
269
270 2014-08-26 David Malcolm <dmalcolm@redhat.com>
271
272 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
273 to rtx_insn *.
274 (struct reg_use_data): Likewise for field "insn".
275 (insn_cost): Likewise for param.
276 (real_insn_for_shadow): Likewise for return type and param.
277 (increase_insn_priority): Likewise for param 1.
278 (debug_dependencies): Likewise for both params.
279
280 * haifa-sched.c (insn_delay): Likewise for param "insn".
281 (real_insn_for_shadow): Likewise for return type and param "insn".
282 (update_insn_after_change): Likewise for param "insn".
283 (recompute_todo_spec): Likewise for param "next" and locals "pro",
284 "other".
285 (insn_cost): Likewise for param "insn".
286 (increase_insn_priority): Likewise.
287 (calculate_reg_deaths): Likewise.
288 (setup_insn_reg_pressure_info): Likewise.
289 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
290 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
291 (model_recompute): Likewise.
292 (must_restore_pattern_p): Likewise for param "next".
293 (model_excess_cost): Likewise for param "insn".
294 (queue_remove): Likewise.
295 (adjust_priority): Likewise for param "prev".
296 (update_register_pressure): Likewise for param "insn".
297 (setup_insn_max_reg_pressure): Likewise for local "insn".
298 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
299 (model_add_to_schedule): Likewise.
300 (model_reset_queue_indices): Likewise for local "insn".
301 (unschedule_insns_until): Strengthen local "recompute_vec" from
302 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
303 "con" from rtx to rtx_insn *.
304 (restore_last_backtrack_point): Likewise for both locals "x". Add
305 checked casts.
306 (estimate_insn_tick): Likewise for param "insn".
307 (commit_schedule): Likewise for params "prev_head", "tail" and
308 local "x".
309 (verify_shadows): Likewise for locals "i1", "i2".
310 (dump_insn_stream): Likewise for params "head", "tail" and locals
311 "next_tail", "insn".
312 (schedule_block): Likewise for locals "insn", "x". Add a checked
313 cast.
314 (fix_inter_tick): Likewise for params "head", "tail".
315 (create_check_block_twin): Likewise for local "jump".
316 (haifa_change_pattern): Likewise for param "insn".
317 (haifa_speculate_insn): Likewise.
318 (dump_new_block_header): Likewise for params "head", "tail".
319 (fix_jump_move): Likewise for param "jump".
320 (move_block_after_check): Likewise.
321 (sched_init_insn_luid): Likewise for param "insn".
322 (sched_init_luids): Likewise for local "insn".
323 (insn_luid): Likewise for param "insn".
324 (init_h_i_d): Likewise.
325 (haifa_init_h_i_d): Likewise for local "insn".
326 (haifa_init_insn): Likewise for param "insn".
327 * sched-deps.c (add_dependence): Likewise for local "real_pro",
328 "other".
329 (create_insn_reg_use): Likewise for param "insn".
330 (setup_insn_reg_uses): Likewise. Add a checked cast.
331 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
332 "tail" from rtx to rtx_insn *.
333 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
334 "insn", "next_tail".
335
336 2014-08-26 David Malcolm <dmalcolm@redhat.com>
337
338 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
339 from rtx to rtx_insn *.
340 (model_add_to_schedule): Likewise for locals "start", "end",
341 "iter".
342
343 2014-08-26 David Malcolm <dmalcolm@redhat.com>
344
345 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
346 rtx_insn *.
347 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
348 "to" and locals "insn", "next", "copy". Remove now-redundant
349 checked cast.
350
351 2014-08-26 David Malcolm <dmalcolm@redhat.com>
352
353 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
354 rtx_insn * and param 4 from rtx * to rtx_insn **.
355 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
356 param 2 from rtx * to rtx_insn **.
357
358 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
359 rtx_insn * and final param from rtx * to rtx_insn **.
360
361 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
362 from rtx to rtx_insn *.
363 (try_head_merge_bb): Likewise for both locals named "move_upto".
364 * df-problems.c (can_move_insns_across): Likewise for params
365 "from", "to", "across_from", "across_to" and locals "insn",
366 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
367 rtx_insn **.
368 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
369 from rtx to rtx_insn *.
370 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
371 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
372 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
373 rtx_insn *.
374 (noce_try_abs): Likewise.
375 (noce_get_condition): Likewise for param "jump". Strengthen param
376 "earliest" from rtx * to rtx_insn **.
377 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
378 rtx_insn *.
379 (find_cond_trap): Likewise.
380 (dead_or_predicable): Likewise for local "earliest".
381 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
382 checked cast.
383 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
384 and local "prev". Strengthen param "earliest" from rtx * to
385 rtx_insn **.
386 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
387 Strengthen param "earliest" from rtx * to rtx_insn **.
388
389 2014-08-26 David Malcolm <dmalcolm@redhat.com>
390
391 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
392 "to" and local "insn" from rtx to rtx_insn *.
393
394 2014-08-26 David Malcolm <dmalcolm@redhat.com>
395
396 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
397 from rtx to rtx_insn *.
398 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
399 (code_motion_path_driver): Likewise for local "last_insn".
400 (simplify_changed_insns): Likewise for local "insn".
401
402 2014-08-26 David Malcolm <dmalcolm@redhat.com>
403
404 * rtl.h (push_to_sequence): Strengthen param from rtx to
405 rtx_insn *.
406 (push_to_sequence2): Likewise for both params.
407 (delete_insns_since): Likewise for param.
408 (reorder_insns_nobb): Likewise for all three params.
409 (set_new_first_and_last_insn): Likewise for both params.
410
411 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
412 rtx_insn *. Remove now-redundant cast.
413 (set_last_insn): Likewise.
414
415 * builtins.c (expand_builtin_return): Strengthen local
416 "call_fusage" from rtx to rtx_insn *.
417 * cfgrtl.c (create_basic_block_structure): Likewise for local
418 "after".
419 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
420 "first", "last" and local "insn".
421 (delete_insns_since): Likewise for param "from".
422 (reorder_insns_nobb): Likewise for params "from", "to", "after"
423 and local "x".
424 (push_to_sequence): Likewise for param "first" and local "last".
425 (push_to_sequence2): Likewise for params "first" and "last".
426 * lra.c (emit_add3_insn): Likewise for local "last".
427 (lra_emit_add): Likewise.
428 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
429 "last_insn".
430 (process_address_1): Likewise for locals "insn", last".
431 * modulo-sched.c (ps_first_note): Likewise for return type.
432 * optabs.c (expand_binop_directly): Likewise for param "last".
433
434 2014-08-26 David Malcolm <dmalcolm@redhat.com>
435
436 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
437 to rtx_insn*.
438 * emit-rtl.c (get_last_insn_anywhere): Likewise.
439
440 2014-08-26 David Malcolm <dmalcolm@redhat.com>
441
442 * function.h (struct sequence_stack): Strengthen fields "first"
443 and "last" from rtx to rtx_insn *.
444 (struct emit_status): Likewise for fields "x_first_insn" and
445 "x_last_insn".
446
447 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
448 (set_first_insn): Add checked cast.
449 (get_last_insn): Remove now-redundant checked cast.
450 (set_last_insn): Add checked cast.
451
452 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
453 "saved_first" and "saved_last" from rtx to rtx_insn *.
454
455 2014-08-26 David Malcolm <dmalcolm@redhat.com>
456
457 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
458 (unlink_insn_chain): Strengthen both params from rtx to
459 rtx_insn *.
460
461 * cfgrtl.c (cfg_layout_function_header): Likewise for this
462 variable.
463 (unlink_insn_chain): Likewise for params "first" and "last".
464 Remove now-redundant checked cast.
465 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
466 (fixup_reorder_chain): Strengthen local "insn" from rtx to
467 rtx_insn *.
468 * emit-rtl.c (link_insn_into_chain): Likewise for all three
469 params.
470 (add_insn): Likewise for param "insn" and local "prev".
471 (add_insn_after_nobb): Likewise for both params and local "next".
472 (add_insn_before_nobb): Likewise for both params and local "prev".
473 (add_insn_after): Rename param "after" to "uncast_after",
474 introducing local "after" with another checked cast.
475 (add_insn_before): Rename params "insn" and "before", giving them
476 "uncast_" prefixes, adding the old names back using checked casts.
477 (emit_note_after): Likewise for param "after".
478 (emit_note_before): Likewise for param "before".
479 (emit_label): Add a checked cast.
480
481 2014-08-26 David Malcolm <dmalcolm@redhat.com>
482
483 * cselib.h (cselib_record_sets_hook): Strengthen initial param
484 "insn" from rtx to rtx_insn *.
485
486 * cselib.c (cselib_record_sets_hook): Likewise.
487
488 * var-tracking.c (add_with_sets): Likewise, renaming back from
489 "uncast_insn" to "insn" and eliminating the checked cast from rtx
490 to rtx_insn *.
491
492 2014-08-26 David Malcolm <dmalcolm@redhat.com>
493
494 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
495 and "header_" from rtx to rtx_insn *.
496 (struct basic_block_d): Likewise for field "head_" within "x"
497 field of union basic_block_il_dependent.
498 (BB_HEAD): Drop function...
499 (SET_BB_HEAD): ...and this function in favor of...
500 (BB_HEAD): ...reinstate macro.
501 (BB_END): Drop function...
502 (SET_BB_END): ...and this function in favor of...
503 (BB_END): ...reinstate macro.
504 (BB_HEADER): Drop function...
505 (SET_BB_HEADER): ...and this function in favor of...
506 (BB_HEADER): ...reinstate macro.
507
508 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
509 (fix_crossing_unconditional_branches): Likewise.
510 * caller-save.c (save_call_clobbered_regs): Likewise.
511 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
512 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
513 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
514 (merge_blocks_move_successor_nojumps): Likewise.
515 (outgoing_edges_match): Update use of for_each_rtx to
516 for_each_rtx_in_insn.
517 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
518 (expand_gimple_cond): Likewise.
519 (expand_gimple_tailcall): Likewise.
520 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
521 SET_BB_END.
522 (construct_exit_block): Drop use of SET_BB_END.
523 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
524 rtx_insn *.
525 (delete_insn): Rename param "insn" to "uncast_insn", introducing
526 a new local "insn" with a checked cast to rtx_insn *. Drop use of
527 SET_BB_HEAD and SET_BB_END.
528 (create_basic_block_structure): Drop use of SET_BB_HEAD and
529 SET_BB_END.
530 (rtl_delete_block): Drop use of SET_BB_HEAD.
531 (rtl_split_block): Drop use of SET_BB_END.
532 (emit_nop_for_unique_locus_between): Likewise.
533 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
534 (block_label): Drop use of SET_BB_HEAD.
535 (fixup_abnormal_edges): Drop use of SET_BB_END.
536 (record_effective_endpoints): Drop use of SET_BB_HEADER.
537 (relink_block_chain): Likewise.
538 (fixup_reorder_chain): Drop use of SET_BB_END.
539 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
540 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
541 rtx_insn **. Drop use of SET_BB_HEADER.
542 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
543 SET_BB_HEAD.
544 (BB_HEAD): Delete this function.
545 (SET_BB_HEAD): Likewise.
546 (BB_END): Likewise.
547 (SET_BB_END): Likewise.
548 (BB_HEADER): Likewise.
549 (SET_BB_HEADER): Likewise.
550 * emit-rtl.c (add_insn_after): Rename param "insn" to
551 "uncast_insn", adding a new local "insn" and a checked cast to
552 rtx_insn *. Drop use of SET_BB_END.
553 (remove_insn): Strengthen locals "next" and "prev" from rtx to
554 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
555 (reorder_insns): Drop use of SET_BB_END.
556 (emit_insn_after_1): Strengthen param "first" and locals "last",
557 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
558 (emit_pattern_after_noloc): Add checked cast.
559 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
560 (restore_other_notes): Likewise.
561 (move_insn): Likewise.
562 (sched_extend_bb): Likewise.
563 (fix_jump_move): Likewise.
564 * ifcvt.c (noce_process_if_block): Likewise.
565 (dead_or_predicable): Likewise.
566 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
567 * reg-stack.c (change_stack): Drop use of SET_BB_END.
568 * sel-sched-ir.c (sel_move_insn): Likewise.
569 * sel-sched.c (move_nop_to_previous_block): Likewise.
570
571 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
572 SET_BB_END.
573 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
574
575 2014-08-26 David Malcolm <dmalcolm@redhat.com>
576
577 * basic-block.h (create_basic_block_structure): Strengthen params
578 1 "head" and 2 "end" from rtx to rtx_insn *.
579 * cfgrtl.c (create_basic_block_structure): Likewise.
580 (rtl_create_basic_block): Update casts from void * to rtx to
581 rtx_insn *, so that we can pass them as rtx_insn * to
582 create_basic_block_structure.
583 * sel-sched-ir.c (sel_create_basic_block): Likewise.
584
585 2014-08-26 David Malcolm <dmalcolm@redhat.com>
586
587 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
588 rtx_insn **.
589 (check_for_inc_dec): Strengthen param "insn" from rtx to
590 rtx_insn *.
591
592 * cselib.h (cselib_process_insn): Likewise.
593
594 * cselib.c (cselib_record_sets): Likewise.
595 (cselib_process_insn): Likewise.
596
597 * dse.c (struct insn_info): Likewise for field "insn".
598 (check_for_inc_dec_1): Likewise for local "insn".
599 (check_for_inc_dec): Likewise for param "insn".
600 (scan_insn): Likewise.
601 (dse_step1): Likewise for local "insn".
602
603 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
604 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
605
606 2014-08-26 David Malcolm <dmalcolm@redhat.com>
607
608 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
609 from rtx to rtx_insn *.
610 (DEP_PRO): Delete this function and...
611 (SET_DEP_PRO): ...this function in favor of...
612 (DEP_PRO): ...reinstate this macro.
613 (DEP_CON): Delete this function and...
614 (SET_DEP_CON): ...this function in favor of...
615 (DEP_CON): ...reinstate this old macro.
616 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
617 (init_dep): Likewise.
618 (set_priorities): Likewise for both params.
619 (sd_copy_back_deps): Likewise for params 1 and 2.
620
621 * haifa-sched.c (priority): Likewise for param "insn" and local
622 "next".
623 (set_priorities): Likewise for params "head" and "tail" and local
624 "insn".
625 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
626 local "consumer".
627 (add_to_speculative_block): Add a checked cast.
628 (create_check_block_twin): Drop use of SET_DEP_CON.
629 (add_jump_dependencies): Strengthen params "insn" and "jump" from
630 rtx to rtx_insn *.
631
632 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
633 Drop use of SET_DEP_PRO
634 (init_dep): Strengthen params "pro" and "con" from rtx to
635 rtx_insn *.
636 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
637 use of SET_DEP_CON.
638 (DEP_PRO): Delete.
639 (DEP_CON): Delete.
640 (SET_DEP_PRO): Delete.
641 (SET_DEP_CON): Delete.
642
643 2014-08-26 David Malcolm <dmalcolm@redhat.com>
644
645 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
646 from rtx to rtx_insn *.
647 (VINSN_INSN_RTX): Eliminate rvalue function and...
648 (SET_VINSN_INSN): ...lvalue function in favor of...
649 (VINSN_INSN_RTX): reinstate this old macro.
650
651 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
652 in favor of VINSN_INSN_RTX.
653 (VINSN_INSN_RTX): Delete this function.
654 (SET_VINSN_INSN_RTX): Likewise.
655
656 2014-08-26 David Malcolm <dmalcolm@redhat.com>
657
658 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
659 (BND_TO): Delete this function and...
660 (SET_BND_TO): ...this functions in favor of...
661 (BND_TO): ...reinstating this macro.
662 (struct _fence): Strengthen field "executing_insns" from
663 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
664 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
665 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
666 and param "insn" from rtx to insn_t.
667 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
668 rtx_insn *.
669
670 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
671 vec<rtx_insn *> .
672 (rtx_vec_t): Likewise.
673 (struct sched_deps_info_def): Strengthen param of "start_insn"
674 callback from rtx to rtx_insn *. Likewise for param "insn2" of
675 "note_mem_dep" callback and first param of "note_dep" callback.
676
677 * haifa-sched.c (add_to_speculative_block): Strengthen param
678 "insn" from rtx to rtx_insn *.
679 (clear_priorities): Likewise.
680 (calc_priorities): Likewise for local "insn".
681
682 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
683 Remove redundant checked cast.
684 (haifa_note_mem_dep): Likewise for param "pending_insn".
685 (haifa_note_dep): Likewise for param "elem".
686 (note_mem_dep): Likewise for param "e".
687 (sched_analyze_1): Add checked casts.
688 (sched_analyze_2): Likewise.
689
690 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
691 from rtx to rtx_insn *.
692 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
693 from vec<rtx> * to vec<rtx_insn *> *.
694
695 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
696 scaffolding.
697 (flist_add): Strengthen param "executing_insns" from
698 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
699 (advance_deps_context): Remove now-redundant checked cast.
700 (init_fences): Replace uses of NULL_RTX with NULL.
701 (merge_fences): Strengthen params "last_scheduled_insn" and
702 "sched_next" from rtx to rtx_insn * and "executing_insns" from
703 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
704 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
705 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
706 an instruction, rather than doing double-duty as a pattern.
707 (return_nop_to_pool): Update for change of insn_t.
708 (deps_init_id): Remove now-redundant checked cast.
709 (struct sched_scan_info_def): Strengthen param of "init_insn"
710 callback from rtx to insn_t.
711 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
712 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
713 NULL.
714 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
715 "end" from rtx to rtx_insn *.
716 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
717 (rtx insn_rtx, bool force_unique_p)
718 (BND_TO): Delete function.
719 (SET_BND_TO): Delete function.
720
721 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
722 rtx to rtx_insn *.
723 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
724 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
725 rtx to rtx_insn *.
726 (undo_transformations): Likewise for param "insn".
727 (update_liveness_on_insn): Likewise.
728 (compute_live_below_insn): Likewise for param "insn" and local
729 "succ".
730 (update_data_sets): Likewise for param "insn".
731 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
732 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
733 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
734 rtx_insn *.
735 (move_cond_jump): Likewise for param "insn".
736 (move_cond_jump): Drop use of SET_BND_TO.
737 (compute_av_set_on_boundaries): Likewise.
738 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
739 (update_and_record_unavailable_insns): Strengthen local "bb_end"
740 from rtx to rtx_insn *.
741 (maybe_emit_renaming_copy): Likewise for param "insn".
742 (maybe_emit_speculative_check): Likewise.
743 (handle_emitting_transformations): Likewise.
744 (remove_insn_from_stream): Likewise.
745 (code_motion_process_successors): Strengthen local "succ" from rtx
746 to insn_t.
747
748 2014-08-26 David Malcolm <dmalcolm@redhat.com>
749
750 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
751 ilist_t, not _xlist_t;
752 (ILIST_INSN): Define in terms of new union field "insn".
753 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
754 _XLIST_NEXT.
755 (struct _list_node): Add new field "insn" to the union, of type
756 insn_t.
757 (ilist_add): Replace macro with an inline function, requiring an
758 insn_t.
759 (ilist_remove): Define this macro directly in terms of
760 _list_remove, rather than indirectly via _xlist_remove.
761 (ilist_clear): Likewise, in terms of _list_clear rather than
762 _xlist_clear.
763 (ilist_is_in_p): Replace macro with an inline function, requiring
764 an insn_t.
765 (_list_iter_cond_insn): New function.
766 (ilist_iter_remove): Define this macro directly in terms of
767 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
768 (ilist_iterator): Define directly in terms of _list_iterator
769 rather than indirectly through _xlist_iterator.
770 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
771 than in terms of _FOR_EACH_X.
772 (FOR_EACH_INSN_1): Likewise.
773
774 2014-08-26 Joseph Myers <joseph@codesourcery.com>
775
776 PR target/60606
777 PR target/61330
778 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
779 DECL_HARD_REGISTER and return for invalid register specifications.
780 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
781 DECL_HARD_REGISTER, call expand_one_error_var.
782 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
783 CC_REGNUM with non-MODE_CC modes.
784 (arm_regno_class): Return NO_REGS for PC_REGNUM.
785
786 2014-08-26 Marek Polacek <polacek@redhat.com>
787
788 PR c/61271
789 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
790
791 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
792
793 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
794 qi cost; add di cost.
795 (cortexa57_addrcost_table): Likewise.
796
797 2014-08-26 Marek Polacek <polacek@redhat.com>
798
799 PR c/61271
800 * expr.c (is_aligning_offset): Remove logical not.
801
802 2014-08-26 Marek Polacek <polacek@redhat.com>
803
804 PR c/61271
805 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
806 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
807
808 2014-08-26 Richard Biener <rguenther@suse.de>
809
810 PR tree-optimization/62175
811 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
812 expand possibly trapping operations.
813
814 2014-08-26 David Malcolm <dmalcolm@redhat.com>
815
816 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
817 "insn" from rtx to rtx_insn *.
818 (permute_load): Likewise for param "insn".
819 (permute_store): Likewise.
820 (handle_special_swappables): Likewise for local "insn".
821 (replace_swap_with_copy): Likewise for locals "insn" and
822 "new_insn".
823 (rs6000_analyze_swaps): Likewise for local "insn".
824
825 2014-08-25 David Malcolm <dmalcolm@redhat.com>
826
827 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
828 to rtx_insn *.
829
830 2014-08-25 David Malcolm <dmalcolm@redhat.com>
831
832 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
833 "note_list" from rtx to rtx_insn *.
834 (BB_NOTE_LIST): Replace this function and...
835 (SET_BB_NOTE_LIST): ...this function with...
836 (BB_NOTE_LIST): ...the former macro implementation.
837
838 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
839 local "from_start" from rtx to rtx_insn *. Strengthen param
840 "to_endp" from rtx * to rtx_insn **.
841
842 * haifa-sched.c (concat_note_lists): Likewise.
843 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
844 BB_NOTE_LIST.
845 (sel_restore_notes): Likewise.
846 (move_bb_info): Likewise.
847 (BB_NOTE_LIST): Delete this function.
848 (SET_BB_NOTE_LIST): Delete this function.
849 * sel-sched.c (create_block_for_bookkeeping): Eliminate
850 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
851
852 2014-08-25 David Malcolm <dmalcolm@redhat.com>
853
854 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
855 from rtx * to rtx_insn **.
856 (reorder2): Likewise.
857 (dependencies_evaluation_hook): Strengthen params "head", "tail"
858 from rtx to rtx_insn *.
859
860 * doc/tm.texi: Update mechanically for above change to target.def.
861
862 * sched-int.h (note_list): Strengthen this variable from rtx to
863 rtx_insn *.
864 (remove_notes): Likewise for both params.
865 (restore_other_notes): Likewise for return type and first param.
866 (struct ready_list): Strengthen field "vec" from rtx * to
867 rtx_insn **.
868 (struct dep_replacement): Strenghten field "insn" from rtx to
869 rtx_insn *.
870 (struct deps_desc): Likewise for fields "last_debug_insn",
871 "last_args_size".
872 (struct haifa_sched_info): Likewise for callback field
873 "can_schedule_ready_p"'s param, for first param of "new_ready"
874 callback field, for both params of "rank" callback field, for
875 first field of "print_insn" callback field (with a const), for
876 both params of "contributes_to_priority" callback, for param
877 of "insn_finishes_block_p" callback, for fields "prev_head",
878 "next_tail", "head", "tail", for first param of "add_remove_insn"
879 callback, for first param of "begin_schedule_ready" callback, for
880 both params of "begin_move_insn" callback, and for second param
881 of "advance_target_bb" callback.
882 (add_dependence): Likewise for params 1 and 2.
883 (sched_analyze): Likewise for params 2 and 3.
884 (deps_analyze_insn): Likewise for param 2.
885 (ready_element): Likewise for return type.
886 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
887 (try_ready): Strenghten param from rtx to rtx_insn *.
888 (sched_emit_insn): Likewise for return type.
889 (record_delay_slot_pair): Likewise for params 1 and 2.
890 (add_delay_dependencies): Likewise for param.
891 (contributes_to_priority): Likewise for both params.
892 (find_modifiable_mems): Likewise.
893
894 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
895 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
896 "first_older_only_insn" from rtx to rtx_insn *.
897 (arm_sched_reorder): Strengthen param "ready" from rtx * to
898 rtx_insn **.
899
900 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
901 "last_scheduled_iter0" from rtx to rtx_insn *.
902 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
903 (c6x_sched_reorder_1): Strengthen param "ready" and locals
904 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
905 "insn" from rtx to rtx_insn *.
906 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
907 rtx_insn **.
908 (c6x_sched_reorder2): Strengthen param "ready" and locals
909 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
910 "insn" from rtx to rtx_insn *.
911 (c6x_variable_issue): Add a checked cast when assigning from insn
912 to ss.last_scheduled_iter0.
913 (split_delayed_branch): Strengthen param "insn" and local "i1"
914 from rtx to rtx_insn *.
915 (split_delayed_nonbranch): Likewise.
916 (undo_split_delayed_nonbranch): Likewise for local "insn".
917 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
918 "entry_after", "end_packet", "head_insn", "tail_insn",
919 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
920 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
921 to rtx_insn **. Remove now-redundant checked cast on last_insn,
922 but add a checked cast on loop->start_label. Consolidate calls to
923 avoid assigning result of gen_spkernel to "insn", now an
924 rtx_insn *.
925
926 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
927 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
928 rtx to rtx_insn *.
929 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
930 rtx_insn **. Strengthen locals "top", "next" from rtx to
931 rtx_insn *.
932 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
933 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
934 (add_parameter_dependencies): Strengthen params "call", "head" and
935 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
936 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
937 (add_dependee_for_func_arg): Likewise for param "arg" and local
938 "insn".
939 (ix86_dependencies_evaluation_hook): Likewise for params "head",
940 "tail" and locals "insn", "first_arg".
941
942 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
943 for params "head", "tail" and locals "insn", "next", "next_tail".
944 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
945 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
946 "insn", "lowest", "highest" from rtx to rtx_insn *.
947 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
948 rtx_insn **.
949 (ia64_sched_reorder2): Likewise.
950
951 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
952 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
953 from rtx * to rtx_insn **.
954 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
955 rtx_insn **.
956 (mep_print_sched_insn): Strengthen param "insn" from rtx to
957 rtx_insn *.
958 (mep_sched_reorder): Strengthen param "ready" from rtx * to
959 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
960 to rtx_insn *.
961
962 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
963 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
964 to rtx_insn *.
965 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
966 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
967 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
968 rtx_insn **.
969 (vr4130_reorder): Likewise.
970 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
971 rtx to rtx_insn *.
972 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
973 rtx_insn **.
974 (mips_sched_reorder): Likewise.
975 (mips_sched_reorder2): Likewise.
976
977 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
978
979 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
980 Strengthen local "tmp" from rtx to rtx_insn *.
981 (rs6000_sched_reorder2): Likewise.
982
983 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
984 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
985 (s390_sched_reorder): Strengthen param "ready" from rtx * to
986 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
987
988 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
989 "tmp2" from rtx to rtx_insn *.
990 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
991 Strengthen local "insn" from rtx to rtx_insn *.
992 (ready_reorder): Strengthen param "ready" from rtx * to
993 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
994 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
995 (sh_reorder2): Likewise.
996
997 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
998 local "insn" from rtx to rtx_insn *.
999
1000 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1001 rtx_insn *.
1002 (scheduled_insns): Strengthen this variable from vec<rtx> to
1003 vec<rtx_insn *>.
1004 (set_modulo_params): Likewise for locals "i1", "i2".
1005 (record_delay_slot_pair): Likewise for params "i1", "i2".
1006 (add_delay_dependencies): Likewise for param "insn".
1007 (cond_clobbered_p): Likewise.
1008 (recompute_todo_spec): Likewise for local "prev".
1009 (last_scheduled_insn): Likewise for this variable.
1010 (nonscheduled_insns_begin): Likewise.
1011 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1012 rtx_insn **.
1013 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1014 rtx_insn *.
1015 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1016 Strengthen local "insn" from rtx to rtx_insn *.
1017 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1018 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1019 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1020 (ready_remove_first): Likewise for return type and local "t".
1021 (ready_element): Likewise for return type.
1022 (ready_remove): Likewise for return type and local "t".
1023 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1024 (check_clobbered_conditions): Strengthen local "x" from rtx to
1025 rtx_insn *, adding a checked cast.
1026 (schedule_insn): Likewise for param "insn".
1027 (remove_notes): Likewise for params "head", "tail" and locals
1028 "next_tail", "insn", "next".
1029 (struct haifa_saved_data): Likewise for fields
1030 "last_scheduled_insn", "nonscheduled_insns_begin".
1031 (save_backtrack_point): Update for change to field "vec" of
1032 struct ready_list.
1033 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1034 rtx_insn **.
1035 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1036 from rtx to rtx_insn *
1037 (resolve_dependencies): Strengthen param "insn" from rtx to
1038 rtx_insn *
1039 (restore_other_notes): Likewise for return type, for param "head"
1040 and local "note_head".
1041 (undo_all_replacements): Likewise for local "insn".
1042 (first_nonscheduled_insn): Likewise for return type and local "insn".
1043 (queue_to_ready): Likewise for local "insn", adding checked casts.
1044 (early_queue_to_ready): Likewise for local "insn".
1045 (debug_ready_list_1): Strengthen local "p" from rtx * to
1046 rtx_insn **.
1047 (move_insn): Strengthen param "insn" and local "note" from rtx to
1048 rtx_insn *
1049 (insn_finishes_cycle_p): Likewise for param "insn".
1050 (max_issue): Likewise for local "insn".
1051 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1052 to rtx_insn **.
1053 (commit_schedule): Strengthen param "prev_head" and local "insn"
1054 from rtx to rtx_insn *
1055 (prune_ready_list): Likewise for local "insn".
1056 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1057 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1058 (set_priorities): Likewise for local "prev_head".
1059 (try_ready): Likewise for param "next".
1060 (fix_tick_ready): Likewise.
1061 (change_queue_index): Likewise.
1062 (sched_extend_ready_list): Update for change to field "vec" of
1063 struct ready_list.
1064 (generate_recovery_code): Strengthen param "insn" from rtx to
1065 rtx_insn *.
1066 (begin_speculative_block): Likewise.
1067 (create_check_block_twin): Likewise for param "insn" and locals
1068 "label", "check", "twin". Introduce local "check_pat" to avoid
1069 "check" being used as a plain rtx before being used as an insn.
1070 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1071 extracting elements from ready_list.
1072 (sched_remove_insn): Strengthen param "insn" from rtx to
1073 rtx_insn *.
1074 (sched_emit_insn): Likewise for return type.
1075 (ready_remove_first_dispatch): Likewise for return type and local
1076 "insn".
1077
1078 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1079
1080 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1081 const rtx_insn *.
1082
1083 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1084 from rtx to rtx_insn *.
1085 (add_dependence_list): Likewise for param "insn". Add a checked
1086 cast.
1087 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1088 to rtx_insn *. Strengthen param "list_p" from rtx * to
1089 rtx_insn **.
1090 (chain_to_prev_insn): Strengthen param "insn" and locals
1091 "prec_nonnote", "i" from rtx to rtx_insn *.
1092 (flush_pending_lists): Likewise for param "insn".
1093 (cur_insn): Likewise for this variable.
1094 (haifa_start_insn): Add a checked cast.
1095 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1096 (sched_analyze_reg): Likewise for param "insn".
1097 (sched_analyze_1): Likewise.
1098 (sched_analyze_2): Likewise. Add checked casts.
1099 (sched_analyze_insn): Likewise. Also for local "prev".
1100 (deps_analyze_insn): Likewise for param "insn".
1101 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1102 (add_dependence_1): Likewise for params "insn", "elem".
1103 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1104 (parse_add_or_inc): Likewise for param "insn".
1105 (find_inc): Likewise for local "inc_cand".
1106 (find_modifiable_mems): Likewise for params "head", "tail" and
1107 locals "insn", "next_tail".
1108
1109 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1110 (begin_schedule_ready): Likewise for param "insn".
1111 (begin_move_insn): Likewise for params "insn" and "last".
1112 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1113 const rtx_insn *.
1114 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1115 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1116 (ebb_add_remove_insn): Likewise for param "insn".
1117 (advance_target_bb): Likewise.
1118
1119 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1120 "insn".
1121 (check_live): Likewise for param "insn".
1122 (init_ready_list): Likewise for local "insn".
1123 (can_schedule_ready_p): Likewise for param "insn".
1124 (begin_schedule_ready): Likewise.
1125 (new_ready): Likewise for param "next".
1126 (rgn_print_insn): Likewise for param "insn".
1127 (rgn_rank): Likewise for params "insn1", "insn2".
1128 (contributes_to_priority): Likewise for params "next", "insn".
1129 (rgn_insn_finishes_block_p): Likewise for param "insn".
1130 (add_branch_dependences): Likewise for params "head", "tail" and
1131 locals "insn", "last".
1132 (rgn_add_remove_insn): Likewise for param "insn".
1133 (advance_target_bb): Likewise.
1134
1135 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1136 const_rtx to const rtx_insn *.
1137
1138 * sel-sched-dump.h (sel_print_insn): Likewise.
1139
1140 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1141 (deps_init_id): Likewise.
1142
1143 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1144 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1145 rtx_insn **.
1146
1147 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1148
1149 * output.h (final_start_function): Strengthen param 1 from rtx to
1150 rtx_insn *.
1151
1152 * final.c (final_start_function): Likewise, renaming back from
1153 "uncast_first" to "first", and dropping the checked cast from rtx
1154 to rtx_insn *.
1155
1156 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1157
1158 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1159 * final.c (final): Likewise. Rename param back from
1160 "uncast_first" to "first" and eliminate the checked cast from rtx
1161 to rtx_insn *.
1162
1163 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1164
1165 * output.h (shorten_branches): Strengthen param from rtx to
1166 rtx_insn *.
1167
1168 * final.c (shorten_branches): Likewise, renaming param back from
1169 "uncast_first" to "first", and dropping the checked cast from rtx
1170 to rtx_insn *.
1171
1172 * genattr.c (gen_attr): Likewise when writing out the prototype of
1173 shorten_branches.
1174
1175 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1176
1177 * sched-int.h (struct haifa_sched_info): Strengthen fields
1178 "prev_head" and "next_tail" from rtx to rtx_insn *.
1179
1180 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1181
1182 * rtl.h (rtx_jump_table_data::get_labels): New method.
1183 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1184 with use of the new rtx_jump_table_data::get_labels method.
1185 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1186 to rtx_jump_table_data *. Simplify by using get_labels method.
1187 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1188 a dyn_cast, introducing local "table", using it to replace
1189 label-lookup logic with a get_labels method call.
1190 (patch_jump_insn): Simplify using get_labels method.
1191 * dwarf2cfi.c (create_trace_edges): Likewise.
1192 * rtlanal.c (label_is_jump_target_p): Likewise.
1193
1194 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1195
1196 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1197 to rtx_insn *.
1198
1199 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1200 (unshare_all_rtl_again): Likewise, also for local "p".
1201
1202 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1203
1204 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1205 to rtx_insn *.
1206 * cfgrtl.c (delete_insn_and_edges): Likewise.
1207
1208 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1209
1210 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1211 from rtx to rtx_insn *.
1212
1213 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1214
1215 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1216
1217 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1218 locals "returnjump", "epilogue_end", "insn", "next".
1219
1220 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1221 "returnjump" from rtx * to rtx_insn **.
1222 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1223
1224 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1225
1226 * basic-block.h (struct edge_def). Strengthen "r" within
1227 union edge_def_insns from rtx to rtx_insn *.
1228
1229 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1230 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1231 rtx_insn *.
1232 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1233 from rtx to rtx_insn *.
1234 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1235 rtx_insn *.
1236 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1237 (reg_used_on_edge): Likewise.
1238 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1239 (gt_pch_nx): New overload for rtx_insn *&.
1240 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1241 from rtx to rtx_insn *.
1242
1243 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1244
1245 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1246 from rtx to rtx_insn *.
1247 (BB_FOOTER): Replace function with access macro.
1248 (SET_BB_FOOTER): Delete.
1249
1250 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1251 with BB_FOOTER.
1252 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1253 (emit_barrier_after_bb): Likewise.
1254 (record_effective_endpoints): Likewise.
1255 (relink_block_chain): Likewise.
1256 (fixup_fallthru_exit_predecessor): Likewise.
1257 (cfg_layout_duplicate_bb): Likewise.
1258 (cfg_layout_split_block): Likewise.
1259 (cfg_layout_delete_block): Likewise.
1260 (cfg_layout_merge_blocks): Likewise.
1261 (BB_FOOTER): Delete function.
1262 (SET_BB_FOOTER): Delete function.
1263 * combine.c (update_cfg_for_uncondjump): Replace uses of
1264 SET_BB_FOOTER with BB_FOOTER.
1265
1266 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1267
1268 * except.h (struct eh_landing_pad_d): Strengthen field
1269 "landing_pad" from rtx to rtx_code_label *.
1270
1271 * except.c (sjlj_emit_dispatch_table): Likewise for param
1272 "dispatch_label"
1273 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1274
1275 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1276
1277 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1278 first param from rtx to rtx_insn *.
1279 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1280 field "set_frame_ptr_insn".
1281 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1282 "csend" from rtx to rtx_code_label *.
1283 (xtensa_expand_atomic): Likewise for local "csloop".
1284 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1285 rtx_insn *.
1286 (xtensa_call_tls_desc): Likewise for return type and locals
1287 "call_insn", "insns".
1288 (xtensa_legitimize_tls_address): Likewise for local "insns".
1289 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1290
1291 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1292
1293 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1294 first param from rtx to rtx_insn *.
1295 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1296 "insn".
1297
1298 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1299
1300 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1301 Strengthen param 1 from rtx to rtx_insn *.
1302 (tilepro_output_cbranch): Likewise.
1303 (tilepro_adjust_insn_length): Likewise.
1304 (tilepro_final_prescan_insn): Likewise for sole param.
1305
1306 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1307 Likewise for local "last".
1308 (cbranch_predicted_p): Likewise for param "insn".
1309 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1310 (tilepro_output_cbranch_with_opcode): Likewise.
1311 (tilepro_output_cbranch): Likewise.
1312 (frame_emit_load): Likewise for return type and locals "seq",
1313 "insn".
1314 (emit_sp_adjust): Likewise for return type and local "insn".
1315 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1316 "insn".
1317 (tilepro_adjust_insn_length): Likewise for param "insn".
1318 (next_insn_to_bundle): Likewise for return type and params
1319 "r", "end".
1320 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1321 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1322 local "new_insns".
1323 (match_addli_pcrel): Likewise for param "insn".
1324 (replace_addli_pcrel): Likewise.
1325 (match_auli_pcrel): Likewise.
1326 (replace_auli_pcrel): Likewise.
1327 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1328 "next_insn".
1329 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1330 "queue", "next_queue", "prev".
1331 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1332 (tilepro_final_prescan_insn): Likewise for param "insn".
1333
1334 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1335
1336 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1337 Strengthen param 1 from rtx to rtx_insn *.
1338 (tilegx_output_cbranch): Likewise.
1339 (tilegx_adjust_insn_length): Likewise.
1340 (tilegx_final_prescan_insn): Likewise for sole param.
1341
1342 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1343 or local "last".
1344 (cbranch_predicted_p): Likewise for param "insn".
1345 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1346 (tilegx_output_cbranch_with_opcode): Likewise.
1347 (tilegx_output_cbranch): Likewise.
1348 (frame_emit_load): Likewise for return type.
1349 (set_frame_related_p): Likewise for locals "seq", "insn".
1350 (emit_sp_adjust): Likewise for return type, and for local "insn".
1351 Introduce local "pat" for use in place of "insn" where the latter
1352 isn't an instruction.
1353 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1354 from rtx to rtx_insn *.
1355 (tilegx_adjust_insn_length): Likewise for param "insn".
1356 (next_insn_to_bundle): Likewise for return type and params "r" and
1357 "end".
1358 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1359 "end".
1360 (replace_insns): Likewise for params "old_insn", "new_insns".
1361 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1362 "new_insns".
1363 (replace_mov_pcrel_step2): Likewise.
1364 (replace_mov_pcrel_step3): Likewise.
1365 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1366 "next_insn".
1367 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1368 "queue", "next_queue", "prev".
1369 (tilegx_output_mi_thunk): Likewise for local "insn".
1370 (tilegx_final_prescan_insn): Likewise for param "insn".
1371
1372 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1373
1374 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1375 rtx to rtx_insn *.
1376 (frame_emit_load): Likewise.
1377 (frame_emit_add_imm): Likewise, also for local "insn".
1378 (spu_expand_prologue): Likewise for local "insn".
1379 (struct spu_bb_info): Likewise for field "prop_jump".
1380 (emit_nop_for_insn): Likewise for param "insn" and local
1381 "new_insn".
1382 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1383 "hbr_insn".
1384 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1385 locals "hint", "insn".
1386 (get_branch_target): Likewise for param "branch".
1387 (insn_clobbers_hbr): Likewise for param "insn".
1388 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1389 locals "insn", "before_4", "before_16".
1390 (insert_hbrp): Likewise for local "insn".
1391 (spu_machine_dependent_reorg): Likewise for locals "branch",
1392 "insn", "next", "bbend".
1393 (uses_ls_unit): Likewise for param "insn".
1394 (get_pipe): Likewise.
1395 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1396 introducing a checked cast.
1397 (spu_sched_adjust_cost): Likewise for params "insn" and
1398 "dep_insn".
1399 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1400 (spu_sms_res_mii): Likewise.
1401
1402 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1403
1404 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1405 from rtx to rtx_insn *.
1406 (output_cbranch): Likewise for param 6.
1407 (output_return): Likewise for param 1.
1408 (output_sibcall): Likewise.
1409 (output_v8plus_shift): Likewise.
1410 (output_v8plus_mult): Likewise.
1411 (output_v9branch): Likewise for param 7.
1412 (output_cbcond): Likewise for param 3.
1413
1414 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1415 for local "insn".
1416 (sparc_legitimize_pic_address): Likewise.
1417 (sparc_emit_call_insn): Likewise.
1418 (emit_save_or_restore_regs): Likewise.
1419 (emit_window_save): Likewise for return type and local "insn".
1420 (sparc_expand_prologue): Likewise for local "insn".
1421 (sparc_flat_expand_prologue): Likewise.
1422 (output_return): Likewise for param "insn".
1423 (output_sibcall): Likewise for param "insn" and local "delay".
1424 (output_ubranch): Likewise for param "insn".
1425 (output_cbranch): Likewise.
1426 (output_cbcond): Likewise.
1427 (output_v9branch): Likewise.
1428 (output_v8plus_shift): Likewise.
1429 (sparc_output_mi_thunk): Likewise for local "insn".
1430 (get_some_local_dynamic_name): Likewise.
1431 (output_v8plus_mult): Likewise for param "insn".
1432
1433 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1434
1435 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1436 from rtx to rtx_insn *.
1437 (output_branchy_insn): Likewise for param 3.
1438 (output_far_jump): Likewise for param 1.
1439 (final_prescan_insn): Likewise.
1440 (sh_insn_length_adjustment): Likewise for sole param.
1441
1442 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1443 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1444 rtx_code_label *.
1445 (sh_emit_compare_and_set): Likewise for local "lab".
1446 (output_far_jump): Strengthen param "insn" and local "prev" from
1447 rtx to rtx_insn *.
1448 (output_branchy_insn): Likewise for param "insn" and local
1449 "next_insn".
1450 (output_ieee_ccmpeq): Likewise for param "insn".
1451 (struct label_ref_list_d): Strengthen field "label" from rtx to
1452 rtx_code_label *.
1453 (pool_node): Likewise.
1454 (pool_window_label): Likewise for this global.
1455 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1456 (dump_table): Strengthen params "start", "barrier" and local
1457 "scan" from rtx to rtx_insn *.
1458 (broken_move): Likewise for param "insn".
1459 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1460 Strengthen param "first_mova" from rtx * to rtx_insn **.
1461 (mova_p): Likewise for param "insn".
1462 (fixup_mova): Likewise for param "mova".
1463 (find_barrier): Likewise for return type, params "mova" and
1464 "from", and locals "barrier_before_mova", "found_barrier",
1465 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1466 "label" from rtx to rtx_code_label *.
1467 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1468 rtx to rtx_insn *.
1469 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1470 (split_branches): Likewise for param "first" and local "insn".
1471 (final_prescan_insn): Likewise for param "insn".
1472 (sequence_insn_p): Likewise for locals "prev", "next".
1473 (sh_insn_length_adjustment): Likewise for param "insn".
1474 (sh_can_redirect_branch): Likewise for local "insn".
1475 (find_r0_life_regions): Likewise for locals "end", "insn".
1476 (sh_output_mi_thunk): Likewise for local "insns".
1477
1478 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1479
1480 * config/score/score.c (score_output_mi_thunk): Strengthen local
1481 "insn" from rtx to rtx_insn *.
1482 (score_prologue): Likewise.
1483
1484 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1485
1486 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1487 1 from rtx to rtx_insn *.
1488 (s390_emit_jump): Likewise for return type.
1489 (s390_emit_call): Likewise.
1490 (s390_load_got): Likewise.
1491
1492 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1493 variable.
1494 (s390_match_ccmode): Likewise for param "insn".
1495 (s390_emit_jump): Likewise for return type.
1496 (s390_split_branches): Likewise for local "label".
1497 (struct constant): Strengthen field "label" from rtx to
1498 rtx_code_label *.
1499 (struct constant_pool): Likewise for field "label". Strengthen
1500 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1501 rtx_insn *.
1502 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1503 insns.
1504 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1505 (s390_end_pool): Likewise.
1506 (s390_dump_pool): Likewise for local "insn".
1507 (s390_mainpool_start): Likewise.
1508 (s390_chunkify_start): Likewise.
1509 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1510 with insns. Strengthen locals "label", "jump", "barrier", "next",
1511 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1512 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1513 rtx_insn *.
1514 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1515 "jump", "label", "next_insn".
1516 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1517 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1518 "tbegin_insn".
1519 (s390_load_got): Likewise for return type and local "insns".
1520 (s390_save_gprs_to_fprs): Likewise for local "insn".
1521 (s390_restore_gprs_from_fprs): Likewise.
1522 (pass_s390_early_mach::execute): Likewise.
1523 (s390_emit_prologue): Likewise for local "insns".
1524 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1525 rtx_code_label *.
1526 (s390_emit_call): Strengthen return type and local "insn" from
1527 rtx to rtx_insn *.
1528 (s390_emit_tpf_eh_return): Likewise for local "insn".
1529 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1530 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1531 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1532 local "cur_insn".
1533 (s390_non_addr_reg_read_p): Likewise for param "insn".
1534 (find_cond_jump): Likewise for return type and param "insn".
1535 (s390_swap_cmp): Likewise for param "insn".
1536 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1537 "prev_insn", "next_insn".
1538 (s390_reorg): Likewise for locals "insn", "target".
1539 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1540 (s390_sched_variable_issue): For now, rename param "insn" to
1541 "uncast_insn", introducing a checked cast.
1542 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1543 insn.
1544 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1545 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1546
1547 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1548
1549 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1550 param from rtx to rtx_insn *.
1551 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1552
1553 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1554
1555 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1556 4 from rtx to rtx_insn *.
1557 (rs6000_final_prescan_insn): Likewise for first param.
1558 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1559 local "insn".
1560 (rs6000_get_some_local_dynamic_name): Likewise.
1561 (output_cbranch): Likewise for param "insn".
1562 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1563 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1564 (rs6000_emit_allocate_stack): Likewise for local "insn".
1565 (load_cr_save): Likewise.
1566 (restore_saved_cr): Likewise.
1567 (restore_saved_lr): Likewise.
1568 (emit_cfa_restores): Likewise.
1569 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1570 "deleted_debug_label".
1571 (rs6000_output_mi_thunk): Likewise for local "insn".
1572 (rs6000_final_prescan_insn): Likewise for param "insn".
1573
1574 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1575
1576 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1577 Strengthen param "insn" from rtx to rtx_insn *.
1578 * config/picochip/picochip.c (picochip_current_prescan_insn):
1579 Likewise for this variable.
1580 (picochip_final_prescan_insn): Likewise for param "insn".
1581
1582 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1583
1584 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1585 from rtx to rtx_insn *.
1586 (pa_output_indirect_call): Likewise.
1587 (pa_adjust_insn_length): Likewise.
1588 (pa_attr_length_millicode_call): Likewise.
1589 (pa_attr_length_call): Likewise.
1590 (pa_attr_length_indirect_call): Likewise.
1591
1592 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1593 "insn".
1594 (pa_attr_length_millicode_call): Likewise.
1595 (pa_attr_length_call): Likewise.
1596 (pa_output_call): Likewise.
1597 (pa_attr_length_indirect_call): Likewise.
1598 (pa_output_indirect_call): Likewise.
1599
1600 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1601
1602 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1603 Strengthen first param from rtx to rtx_insn *.
1604 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1605 param "insn".
1606
1607 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1608
1609 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1610 type from rtx to rtx_insn *.
1611 (mips_expand_call): Likewise.
1612 (mips_adjust_insn_length): Likewise for first param.
1613 (mips_output_conditional_branch): Likewise.
1614 (mips_output_order_conditional_branch): Likewise.
1615 (mips_final_prescan_insn): Likewise.
1616
1617 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1618 rtx_insn * for the SEQUENCE case.
1619 (SEQ_END): Likewise.
1620 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1621 (mips_emit_call_insn): Likewise, also for local "insn".
1622 (mips16_gp_pseudo_reg): Likewise for local "scan".
1623 (mips16_build_call_stub): Likewise for return type and for local
1624 "insn". Introduce a new local "pattern" so that "insn" can indeed
1625 be an insn.
1626 (mips_expand_call): Strengthen return type and local "insn" from
1627 rtx to rtx_insn *.
1628 (mips_block_move_loop): Strengthen local "label" from rtx to
1629 rtx_code_label *.
1630 (mips_expand_synci_loop): Likewise for locals "label",
1631 "end_label".
1632 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1633 rtx_insn *.
1634 (mips16e_collect_argument_saves): Likewise for locals "insn",
1635 "next".
1636 (mips_find_gp_ref): Likewise for param of callback for "pred"
1637 param, and for local "insn".
1638 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1639 (mips_insn_has_flexible_gp_ref_p): Likewise.
1640 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1641 local "insn".
1642 (mips_epilogue_set_cfa): Likewise for local "insn".
1643 (mips_expand_epilogue): Likewise.
1644 (mips_adjust_insn_length): Likewise for param "insn".
1645 (mips_output_conditional_branch): Likewise.
1646 (mips_output_order_conditional_branch): Likewise.
1647 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1648 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1649 "falu2_turn_enabled_insn".
1650 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1651 "done_label" from rtx to rtx_code_label *.
1652 (struct mips16_constant): Likewise for field "label".
1653 (mips16_add_constant): Likewise for return type.
1654 (mips16_emit_constants_1): Strengthen return type and param "insn"
1655 from rtx to rtx_insn *.
1656 (mips16_emit_constants): Likewise for param "insn".
1657 (mips16_insn_length): Likewise.
1658 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1659 to rtx_code_label *.
1660 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1661 from rtx to rtx_insn *.
1662 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1663 "jump". Strengthen local "label" from rtx to rtx_code_label *.
1664 (r10k_simplify_address): Strengthen param "insn" and local
1665 "def_insn" from rtx to rtx_insn *.
1666 (r10k_safe_address_p): Strengthen param "insn" from rtx to
1667 rtx_insn *.
1668 (r10k_needs_protection_p_1): Update target type of cast of data
1669 from to rtx to rtx_insn *.
1670 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1671 rtx * to rtx_insn **.
1672 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1673 rtx_insn *.
1674 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1675 (mips_call_expr_from_insn): Likewise for param "insn".
1676 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1677 (mips_find_pic_call_symbol): Likewise for param "insn".
1678 (mips_annotate_pic_calls): Likewise for local "insn".
1679 (mips_sim_insn): Likewise for this variable.
1680 (struct mips_sim): Likewise for field "insn" within elements of
1681 last_set array.
1682 (mips_sim_wait_reg): Likewise for param "insn".
1683 (mips_sim_wait_regs): Likewise.
1684 (mips_sim_wait_units): Likewise.
1685 (mips_sim_wait_insn): Likewise.
1686 (mips_sim_issue_insn): Likewise.
1687 (mips_sim_finish_insn): Likewise.
1688 (mips_seq_time): Likewise for param "seq" and local "insn".
1689 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1690 locals "first", "second".
1691 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1692 "last", "last2", "next".
1693 (mips_avoid_hazard): Likewise for params "after", "insn".
1694 (mips_reorg_process_insns): Likewise for locals "insn",
1695 "last_insn", "subinsn", "next_insn".
1696 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1697 (mips16_split_long_branches): Likewise for locals "insn" "jump",
1698 "jump_sequence".
1699 (mips_output_mi_thunk): Likewise for local "insn".
1700 (mips_final_prescan_insn): Likewise for param "insn".
1701
1702 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1703
1704 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1705 Strengthen return type and local "insns" from rtx to rtx_insn *.
1706 (microblaze_legitimize_tls_address): Likewise for local "insns".
1707 (microblaze_block_move_loop): Strengthen local "label" from rtx
1708 to rtx_code_label *.
1709 (microblaze_expand_prologue): Strengthen two locals named "insn"
1710 from rtx to rtx_insn *.
1711 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1712 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1713 "insn". Strengthen locals "div_label", "div_end_label" from rtx
1714 to rtx_code_label *.
1715
1716 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1717
1718 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1719 param from rtx to rtx_insn *.
1720 (mep_reuse_lo): Likewise for third param.
1721 (mep_use_post_modify_p): Likewise for first param.
1722 (mep_core_address_length): Likewise.
1723 (mep_cop_address_length): Likewise.
1724 (mep_final_prescan_insn): Likewise.
1725 (mep_store_data_bypass_p): Likewise for both params.
1726 (mep_mul_hilo_bypass_p): Likewise.
1727 (mep_ipipe_ldc_p): Likewise for param.
1728
1729 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1730 (mep_rewrite_mult): Likewise.
1731 (mep_rewrite_mulsi3): Likewise.
1732 (mep_rewrite_maddsi3): Likewise.
1733 (mep_reuse_lo_p_1): Likewise.
1734 (mep_reuse_lo_p): Likewise.
1735 (mep_frame_expr): Likewise.
1736 (mep_make_parallel): Likewise for both params.
1737 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1738 local "insn".
1739 (mep_use_post_modify_p): Likewise for param "insn".
1740 (mep_core_address_length): Likewise.
1741 (mep_cop_address_length): Likewise.
1742 (mep_reg_set_in_function): Likewise for local "insn".
1743 (mep_asm_without_operands_p): Likewise.
1744 (F): Likewise for return type and param "x".
1745 (add_constant): Likewise for local "insn".
1746 (maybe_dead_move): Likewise for return type and local "insn".
1747 (mep_expand_prologue): Likewise for local "insn".
1748 (mep_final_prescan_insn): Likewise for param "insn".
1749 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1750 "next", "follow", "x".
1751 (mep_insert_repeat_label_last): Likewise for return type, param
1752 "last_insn", and locals "next", "prev". Strengthen param "label"
1753 from rtx to rtx_code_label *.
1754 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1755 rtx_insn *.
1756 (struct mep_doloop_end): Likewise for fields "insn" and
1757 "fallthrough".
1758 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1759 Strengthen local "repeat_label" from rtx to rtx_code_label *.
1760 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1761 rtx_insn *.
1762 (mep_invert_branch): Likewise for params "insn" and "after".
1763 (mep_reorg_erepeat): Likewise for param "insns" and locals
1764 "insn", "prev", "new_last", "barrier", "user". Strengthen local
1765 "l" from rtx to rtx_code_label *.
1766 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1767 from rtx to rtx_insn *.
1768 (mep_reorg_addcombine): Likewise for param "insns" and locals
1769 "i", "n".
1770 (add_sp_insn_p): Likewise for param "insn".
1771 (mep_reorg_noframe): Likewise for param "insns" and locals
1772 "start_frame_insn", "end_frame_insn", "next".
1773 (mep_reorg): Likewise for local "insns".
1774 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
1775 cast.
1776 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
1777 (mep_mul_hilo_bypass_p): Likewise.
1778 (mep_ipipe_ldc_p): Likewise for param "insn".
1779 (mep_make_bundle): Likewise for return type, param "cop" and local
1780 "insn", splitting out the latter into a new local "seq" for when it
1781 is a SEQUENCE rather than an insn.
1782 (core_insn_p): Likewise for param "insn".
1783 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
1784 "last", "first", "note", "prev", "core_insn".
1785
1786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1787
1788 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
1789 rtx to rtx_insn *.
1790 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
1791 (m68k_final_prescan_insn): Likewise for first param.
1792
1793 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
1794 (m68k_set_frame_related): Likewise for param "insn".
1795 (output_btst): Likewise for param "insn".
1796 (m68k_final_prescan_insn): Likewise.
1797 (m68k_move_to_reg): Likewise for local "insn".
1798 (m68k_call_tls_get_addr): Likewise for local "insns".
1799 (m68k_call_m68k_read_tp): Likewise.
1800 (strict_low_part_peephole_ok): Likewise for param "first_insn".
1801 (m68k_output_mi_thunk): Likewise for local "insn".
1802
1803 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1804
1805 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
1806 first param from rtx to rtx_insn *.
1807 (iq2000_adjust_insn_length): Likewise.
1808 (iq2000_output_conditional_branch): Likewise.
1809 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
1810 "insn" and local "nop_insn".
1811 (iq2000_annotate_frame_insn): Likewise for param "insn".
1812 (iq2000_expand_prologue): Likewise for both locals "insn".
1813 (iq2000_adjust_insn_length): Likewise for param "insn".
1814 (iq2000_output_conditional_branch): Likewise.
1815
1816 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1817
1818 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
1819 "insns" from rtx to rtx_insn *.
1820 (ia64_emit_cond_move): Likewise for locals "insn", "first".
1821 (struct spill_fill_data): Likewise for field "init_after" and for
1822 elements of array field "prev_insn".
1823 (spill_restore_mem): Likewise for locals "insn", "first".
1824 (do_spill): Likewise for local "insn".
1825 (do_restore): Likewise.
1826 (ia64_expand_prologue): Likewise.
1827 (ia64_expand_epilogue): Likewise.
1828 (emit_insn_group_barriers): Likewise for locals "insn",
1829 "last_label".
1830 (emit_all_insn_group_barriers): Likewise for locals "insn",
1831 "last".
1832 (dfa_stop_insn): Likewise for this global.
1833 (dfa_pre_cycle_insn): Likewise.
1834 (ia64_nop): Likewise.
1835 (final_emit_insn_group_barriers): Likewise for locals "insn",
1836 "last".
1837 (emit_predicate_relation_info): Likewise for locals "head", "n",
1838 "insn", "b", "a".
1839 (ia64_reorg): Likewise for local "insn".
1840 (ia64_output_mi_thunk): Likewise.
1841 (expand_vec_perm_interleave_2): Likewise for local "seq".
1842
1843 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1844
1845 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
1846 param 1 "insn" from rtx to rtx_insn *.
1847 (ix86_use_lea_for_mov): Likewise.
1848 (ix86_avoid_lea_for_addr): Likewise.
1849 (ix86_split_lea_for_addr): Likewise.
1850 (ix86_lea_for_add_ok): Likewise.
1851 (ix86_output_call_insn): Likewise.
1852
1853 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
1854 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
1855 (ix86_output_function_epilogue): Likewise for locals "insn",
1856 "deleted_debug_label".
1857 (legitimize_tls_address): Likewise for local "insn".
1858 (get_some_local_dynamic_name): Likewise.
1859 (increase_distance): Likewise for params "prev", "next".
1860 (distance_non_agu_define_in_bb): Likewise for params "insn",
1861 "start" and locals "prev", "next".
1862 (distance_non_agu_define): Likewise for param "insn".
1863 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
1864 locals "next", "prev".
1865 (distance_agu_use): Likewise for param "insn".
1866 (ix86_lea_outperforms): Likewise.
1867 (ix86_ok_to_clobber_flags): Likewise.
1868 (ix86_avoid_lea_for_add): Likewise.
1869 (ix86_use_lea_for_mov): Likewise.
1870 (ix86_avoid_lea_for_addr): Likewise.
1871 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
1872 (ix86_split_lea_for_addr): Likewise for param "insn".
1873 (ix86_lea_for_add_ok): Likewise for param "insn".
1874 (ix86_expand_carry_flag_compare): Likewise for local
1875 "compare_seq".
1876 (ix86_expand_int_movcc): Likewise.
1877 (ix86_output_call_insn): Likewise for param "insn".
1878 (ix86_output_call_insn): Likewise for local "i".
1879 (x86_output_mi_thunk): Introduce local "insn", using it in place
1880 of "tmp" when dealing with insns.
1881 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
1882 "start".
1883 (ix86_pad_returns): Likewise for locals "ret", "prev".
1884 (ix86_count_insn_bb): Likewise for local "insn".
1885 (ix86_pad_short_function): Likewise for locals "ret", "insn".
1886 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
1887 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
1888 (expand_vec_perm_interleave2): Likewise for local "seq".
1889 (expand_vec_perm_vperm2f128_vblend): Likewise.
1890 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
1891 call to for_each_rtx with for_each_rtx_in_insn.
1892
1893 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1894
1895 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
1896 "label" from rtx to rtx_code_label *.
1897 (ix86_expand_prologue): Likewise.
1898 (ix86_expand_split_stack_prologue): Likewise for locals "label",
1899 "varargs_label".
1900 (ix86_split_idivmod): Likewise for locals "end_label" and
1901 "qimode_label".
1902 (ix86_expand_branch): Likewise for local "label2".
1903 (ix86_expand_aligntest): Likewise for return type and local "label".
1904 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
1905 "top_label".
1906 (expand_movmem_epilogue): Likewise for the various locals named
1907 "label".
1908 (expand_setmem_epilogue): Likewise.
1909 (expand_small_movmem_or_setmem): Likewise for local "label".
1910 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1911 Strengthen param "done_label" from rtx * to rtx_code_label **.
1912 Strengthen locals "loop_label" and "label" from rtx to
1913 rtx_code_label *.
1914 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1915 Likewise for locals "loop_label", "label".
1916 (ix86_expand_set_or_movmem): Likewise for locals "label",
1917 "jump_around_label", "hot_label".
1918 (ix86_expand_strlensi_unroll_1): Likewise for locals
1919 "align_2_label", align_3_label", "align_4_label", "end_0_label",
1920 "end_2_label".
1921 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
1922 (void ix86_emit_i387_log1p): Likewise for locals "label1",
1923 "label2", "jump_label".
1924 (ix86_expand_sse_compare_and_jump): Likewise for return type and
1925 local "label".
1926 (ix86_expand_lfloorceil): Likewise for local "label".
1927 (ix86_expand_rint): Likewise.
1928 (ix86_expand_floorceildf_32): Likewise.
1929 (ix86_expand_floorceil): Likewise.
1930 (ix86_expand_rounddf_32): Likewise.
1931 (ix86_expand_trunc): Likewise.
1932 (ix86_expand_truncdf_32): Likewise.
1933 (ix86_expand_round): Likewise.
1934
1935 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1936
1937 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
1938 first param from rtx to rtx_insn *.
1939 (h8300_insn_length_from_table): Likewise.
1940 * config/h8300/h8300.c (F): Likewise for return type and param
1941 "x".
1942 (Fpa): Add a checked cast to rtx_insn *.
1943 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
1944 rtx_insn *.
1945 (final_prescan_insn): Likewise for param "insn".
1946 (h8300_binary_length): Likewise.
1947 (h8300_insn_length_from_table): Likewise.
1948
1949 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1950
1951 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
1952 Strengthen first param "insn" from rtx to rtx_insn *.
1953
1954 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
1955 Likewise.
1956 (frame_insn): Likewise for return type. Introduce local "insn"
1957 for use in place of local "x" for use as an rtx_insn *.
1958 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
1959 (epiphany_expand_prologue): Likewise for local "insn".
1960 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
1961 * config/epiphany/resolve-sw-modes.c
1962 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
1963 "seq".
1964
1965 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1966
1967 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
1968 param from rtx to rtx_insn *.
1969 (c6x_final_prescan_insn): Likewise for first param.
1970
1971 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
1972 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
1973 (c6x_expand_compare): Strengthen local "insns" from rtx to
1974 rtx_insn *.
1975 (c6x_get_unit_specifier): Likewise for param "insn".
1976 (c6x_print_unit_specifier_field): Likewise.
1977 (c6x_final_prescan_insn): Likewise.
1978 (emit_add_sp_const): Likewise for local "insn".
1979 (c6x_expand_prologue): Likewise.
1980
1981 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1982
1983 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
1984 param 1 from rtx to rtx_insn *.
1985 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
1986 the various locals named "insn".
1987 (expand_epilogue_reg_restore): Likewise.
1988 (frame_related_constant_load): Likewise.
1989 (add_to_reg): Likewise.
1990 (emit_link_insn): Likewise.
1991 (do_link): Likewise.
1992 (expand_interrupt_handler_prologue): Likewise.
1993 (branch_dest): Likewise for param "branch".
1994 (asm_conditional_branch): Likewise for param "insn".
1995 (gen_one_bundle): Likewise for elements of param "slot" and local
1996 "t".
1997 (bfin_gen_bundles): Likewise for locals "insn", "next" and
1998 elements of local "slot".
1999 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2000 "queue", "next_queue", "prev".
2001 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2002 (add_sched_insns_for_speculation): Likewise for local "insn".
2003
2004 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2005
2006 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2007 from rtx to rtx_insn *.
2008 (output_movhi): Likewise.
2009 (output_movsisf): Likewise.
2010 (avr_out_tstsi): Likewise.
2011 (avr_out_tsthi): Likewise.
2012 (avr_out_tstpsi): Likewise.
2013 (avr_out_compare): Likewise.
2014 (avr_out_compare64): Likewise.
2015 (avr_out_movpsi): Likewise.
2016 (ashlqi3_out): Likewise.
2017 (ashlhi3_out): Likewise.
2018 (ashlsi3_out): Likewise.
2019 (ashrqi3_out): Likewise.
2020 (ashrhi3_out): Likewise.
2021 (ashrsi3_out): Likewise.
2022 (lshrqi3_out): Likewise.
2023 (lshrhi3_out): Likewise.
2024 (lshrsi3_out): Likewise.
2025 (avr_out_ashlpsi3): Likewise.
2026 (avr_out_ashrpsi3): Likewise.
2027 (avr_out_lshrpsi3): Likewise.
2028 (avr_out_fract): Likewise.
2029 (avr_out_sbxx_branch): Likewise.
2030 (avr_out_round): Likewise.
2031 (avr_out_xload): Likewise.
2032 (avr_out_movmem): Likewise.
2033 (adjust_insn_length): Likewise.
2034 (avr_out_lpm): Likewise.
2035 (reg_unused_after): Likewise.
2036 (_reg_unused_after): Likewise.
2037 (avr_jump_mode): Likewise for second param.
2038 (jump_over_one_insn): Likewise for first param.
2039 (avr_final_prescan_insn): Likewise.
2040 (out_shift_with_cnt): Likewise for second param.
2041
2042 * config/avr/avr.c (get_sequence_length): Likewise for param
2043 "insns" and local "insn".
2044 (emit_push_byte): Likewise for local "insn".
2045 (emit_push_sfr): Likewise.
2046 (avr_prologue_setup_frame): Likewise for locals "insn",
2047 "fp_plus_insns", "sp_plus_insns".
2048 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2049 "sp_plus_insns".
2050 (avr_jump_mode): Likewise for param "insn".
2051 (avr_final_prescan_insn): Likewise.
2052 (avr_find_unused_d_reg): Likewise.
2053 (avr_out_lpm_no_lpmx): Likewise.
2054 (avr_out_lpm): Likewise.
2055 (avr_out_xload): Likewise.
2056 (output_movqi): Likewise.
2057 (output_movhi): Likewise.
2058 (out_movqi_r_mr): Likewise.
2059 (out_movhi_r_mr): Likewise.
2060 (out_movsi_r_mr): Likewise.
2061 (out_movsi_mr_r): Likewise.
2062 (output_movsisf): Likewise.
2063 (avr_out_load_psi): Likewise.
2064 (avr_out_store_psi): Likewise.
2065 (avr_out_movpsi): Likewise.
2066 (out_movqi_mr_r): Likewise.
2067 (avr_out_movhi_mr_r_xmega): Likewise.
2068 (out_movhi_mr_r): Likewise.
2069 (compare_condition): Likewise for param "insn" and local "next".
2070 (compare_sign_p): Likewise for param "insn".
2071 (compare_diff_p): Likewise.
2072 (compare_eq_p): Likewise.
2073 (avr_out_compare): Likewise.
2074 (avr_out_compare64): Likewise.
2075 (avr_out_tsthi): Likewise.
2076 (avr_out_tstpsi): Likewise.
2077 (avr_out_tstsi): Likewise.
2078 (out_shift_with_cnt): Likewise.
2079 (ashlqi3_out): Likewise.
2080 (ashlhi3_out): Likewise.
2081 (avr_out_ashlpsi3): Likewise.
2082 (ashlsi3_out): Likewise.
2083 (ashrqi3_out): Likewise.
2084 (ashrhi3_out): Likewise.
2085 (avr_out_ashrpsi3): Likewise.
2086 (ashrsi3_out): Likewise.
2087 (lshrqi3_out): Likewise.
2088 (lshrhi3_out): Likewise.
2089 (avr_out_lshrpsi3): Likewise.
2090 (lshrsi3_out): Likewise.
2091 (avr_out_fract): Likewise.
2092 (avr_out_round): Likewise.
2093 (avr_adjust_insn_length): Likewise.
2094 (reg_unused_after): Likewise.
2095 (_reg_unused_after): Likewise.
2096 (avr_compare_pattern): Likewise.
2097 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2098 and locals "branch1", "branch2", "insn2", "jump".
2099 (avr_reorg): Likewise for local "insn".
2100 (avr_2word_insn_p): Likewise for param "insn".
2101 (jump_over_one_insn_p): Likewise.
2102 (avr_out_sbxx_branch): Likewise.
2103 (avr_out_movmem): Likewise.
2104
2105 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2106
2107 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2108 param from rtx to rtx_insn *.
2109 (thumb1_final_prescan_insn): Likewise.
2110 (thumb2_final_prescan_insn): Likewise.
2111
2112 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2113 rtx to rtx_insn *.
2114 (struct minipool_node): Likewise for field "insn".
2115 (dump_minipool): Likewise for param "scan".
2116 (create_fix_barrier): Likewise for local "from". Strengthen local
2117 "label" from rtx to rtx_code_label *.
2118 (push_minipool_barrier): Strengthen param "insn" from rtx to
2119 rtx_insn *.
2120 (push_minipool_fix): Likewise.
2121 (note_invalid_constants): Likewise.
2122 (thumb2_reorg): Likewise for local "insn".
2123 (arm_reorg): Likewise.
2124 (thumb2_final_prescan_insn): Likewise for param
2125 "insn" and local "first_insn".
2126 (arm_final_prescan_insn): Likewise for param "insn" and locals
2127 "start_insn", "this_insn".
2128 (arm_debugger_arg_offset): Likewise for param "insn".
2129 (thumb1_emit_multi_reg_push): Likewise for return type and local
2130 "insn".
2131 (thumb1_final_prescan_insn): Likewise for param "insn".
2132 (thumb_far_jump_used_p): Likewise for local "insn".
2133 (thumb1_expand_prologue): Likewise.
2134 (arm_expand_epilogue_apcs_frame): Likewise.
2135 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2136 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2137 from rtx to rtx_code_label *.
2138 (arm_split_atomic_op): Likewise for local "label".
2139 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2140
2141 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2142
2143 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2144 first param from rtx to rtx_insn *.
2145 (arc_verify_short): Likewise.
2146 (arc_short_long): Likewise.
2147 (arc_need_delay): Likewise.
2148
2149 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2150 "target_insn".
2151 (arc_ccfsm_advance): Likewise for param "insn" and locals
2152 "start_insn", "this_insn".
2153 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2154 (arc_ccfsm_post_advance): Likewise for param "insn".
2155 (arc_next_active_insn): Likewise for return type and param "insn".
2156 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2157 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2158 (output_short_suffix): Likewise for local "insn".
2159 (arc_final_prescan_insn): Likewise for param "insn". Remove
2160 now-redundant checked cast.
2161 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2162 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2163 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2164 for use where lc_set became an insn.
2165 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2166 rtx to rtx_insn *.
2167 (arc_get_insn_variants): Likewise for local "prev".
2168 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2169 "next".
2170 (arc_predicate_delay_insns): Likewise for local "insn".
2171 (arc_pad_return): Likewise for local "prev". For now, add a
2172 checked cast when extracting the insn from "final_sequence".
2173 (arc_short_long): Likewise for param "insn".
2174 (arc_need_delay): Likewise for param "insn" and local "next".
2175 (arc_label_align): Likewise for locals "prev", "next".
2176
2177 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2178
2179 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2180 "insn" from rtx to rtx_insn *.
2181 (alpha_gp_save_rtx): Likewise for local "seq".
2182 (alpha_instantiate_decls): Likewise for local "top".
2183 (get_some_local_dynamic_name): Likewise for local "insn".
2184 (alpha_does_function_need_gp): Likewise.
2185 (set_frame_related_p): Likewise for return type and for locals
2186 "seq" and "insn".
2187 (emit_frame_store_1): Likewise for local "insn".
2188 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2189 (alpha_end_function): Likewise for local "insn".
2190 (alpha_output_mi_thunk_osf): Likewise.
2191 (alphaev4_insn_pipe): Likewise for param "insn".
2192 (alphaev5_insn_pipe): Likewise.
2193 (alphaev4_next_group): Likewise for return type and param 1
2194 "insn".
2195 (alphaev5_next_group): Likewise.
2196 (alpha_align_insns_1): Likewise for return type and param 1 of
2197 callback param "next_group", and for locals "i", "next", "prev",
2198 "where", "where2", "insn".
2199
2200 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2201
2202 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2203 rather than modifying the stmt.
2204
2205 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2206
2207 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2208 cgraph_state conversion.
2209
2210 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2211
2212 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2213 Strengthen local "insns" from rtx to rtx_insn *.
2214 (aarch64_set_frame_expr): Likewise for local "insn".
2215 (aarch64_save_or_restore_fprs): Likewise.
2216 (aarch64_save_or_restore_callee_save_registers): Likewise.
2217 (aarch64_expand_prologue): Likewise.
2218 (aarch64_expand_epilogue): Likewise.
2219 (aarch64_output_mi_thunk): Likewise.
2220 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2221 "label2" from rtx to rtx_code_label *.
2222 (aarch64_split_atomic_op): Likewise for local "label".
2223
2224 2014-08-25 Martin Liska <mliska@suse.cz>
2225
2226 * cgraph.h (symtab_node):
2227 (bool needed_p (void)): created from decide_is_symbol_needed
2228 (bool referred_to_p (void)): created from referred_to_p
2229 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2230 * cgraph.h (cgraph_node):
2231 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2232 (void expand (void)): created from expand_function
2233 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2234 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2235 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2236 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2237 * cgraph.h (varpool_node):
2238 (static void add (tree decl): created from varpool_add_new_variable
2239 * cgraph.h (cgraph_edge):
2240 void remove (void);
2241 (void remove_caller (void)): created from cgraph_edge_remove_caller
2242 (void remove_callee (void)): created from cgraph_edge_remove_callee
2243 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2244 created from cgraph_set_call_stmt
2245 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2246 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2247 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2248 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2249 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2250 created from cgraph_speculative_call_info
2251 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2252 int freq_scale, bool update_original)): created from cgraph_clone_edge
2253 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2254 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2255 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2256 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2257 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2258 (static void rebuild_references (void)): created from cgraph_rebuild_references
2259 * cgraph.h (symbol_table):
2260 (create_reference): renamed from add_reference
2261 (maybe_create_reference): renamed from maybe_add_reference
2262 (void register_symbol (symtab_node *node)): new function
2263 (void clear_asm_symbols (void)): new function
2264 (void unregister (symtab_node *node)): new function
2265 (void release_symbol (cgraph_node *node, int uid)): new function
2266 (cgraph_node * allocate_cgraph_symbol (void)): new function
2267 (void initialize (void)): created from cgraph_init
2268 (symtab_node *first_symbol (void)):new function
2269 (asm_node *first_asm_symbol (void)):new function
2270 (symtab_node *first_defined_symbol (void)):new function
2271 (varpool_node *first_variable (void)):new function
2272 (varpool_node *next_variable (varpool_node *node)):new function
2273 (varpool_node *first_static_initializer (void)):new function
2274 (varpool_node *next_static_initializer (varpool_node *node)):new function
2275 (varpool_node *first_defined_variable (void)):new function
2276 (varpool_node *next_defined_variable (varpool_node *node)):new function
2277 (cgraph_node *first_defined_function (void)):new function
2278 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2279 (cgraph_node *first_function (void)):new function
2280 (cgraph_node *next_function (cgraph_node *node)):new function
2281 (cgraph_node *first_function_with_gimple_body (void)):new function
2282 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2283 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2284 created from symtab_remove_unreachable_nodes
2285 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2286 (void process_new_functions (void)): created from cgraph_process_new_functions
2287 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2288 (bool output_variables (void)): created from varpool_node::output_variables
2289 (void output_asm_statements (void)): created from output_asm_statements
2290 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2291 (void compile (void)): created from compile
2292 (void output_weakrefs (void)): created from output_weakrefs
2293 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2294 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2295 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2296 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2297 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2298 created from cgraph_next_function_with_gimple_body
2299 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2300 created from cgraph_remove_edge_removal_hook
2301 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2302 created from cgraph_add_node_removal_hook
2303 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2304 created from cgraph_remove_node_removal_hook
2305 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2306 created from varpool_add_node_removal_hook
2307 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2308 created from varpool_remove_node_removal_hook
2309 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2310 created from cgraph_add_function_insertion_hook
2311 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2312 created from cgraph_remove_function_insertion_hook
2313 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2314 created from varpool_add_variable_insertion_hook
2315 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2316 created from varpool_remove_variable_insertion_hook
2317 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2318 created from cgraph_add_edge_duplication_hook
2319 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2320 created from cgraph_remove_edge_duplication_hook
2321 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2322 created from cgraph_add_node_duplication_hook
2323 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2324 created from cgraph_remove_node_duplication_hook
2325 (void call_edge_removal_hooks (cgraph_edge *e)):
2326 created from cgraph_call_edge_removal_hooks
2327 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2328 created from call_function_insertion_hooks
2329 (void call_cgraph_removal_hooks (cgraph_node *node)):
2330 created from cgraph_call_node_removal_hooks
2331 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2332 created from cgraph_node::call_duplication_hooks
2333 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2334 created from cgraph_call_edge_duplication_hooks
2335 (void call_varpool_removal_hooks (varpool_node *node)):
2336 created from varpool_call_node_removal_hooks
2337 (void call_varpool_insertion_hooks (varpool_node *node)):
2338 created from varpool_call_variable_insertion_hooks
2339 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2340 created from insert_to_assembler_name_hash
2341 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2342 created from unlink_from_assembler_name_hash
2343 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2344 created from symtab_prevail_in_asm_name_hash
2345 (void symtab_initialize_asm_name_hash (void)):
2346 created from symtab_initialize_asm_name_hash
2347 (void change_decl_assembler_name (tree decl, tree name)):
2348 created from change_decl_assembler_name
2349 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2350 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2351 created from decl_assembler_name_hash
2352 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2353 created from decl_assembler_name_equal
2354 (static hashval_t hash_node_by_assembler_name (const void *p)):
2355 created from hash_node_by_assembler_name
2356 (static int eq_assembler_name (const void *p1, const void *p2)):
2357 created from eq_assembler_name
2358
2359 2014-08-25 Marek Polacek <polacek@redhat.com>
2360
2361 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2362
2363 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2364
2365 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2366 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2367 SWI1248_AVX512BW mode iterator.
2368
2369 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2370
2371 PR target/62111
2372 * config/sh/predicates.md (general_extend_operand): Disable
2373 TRUNCATE before reload completes.
2374
2375 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2376
2377 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2378
2379 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2380
2381 PR target/61996
2382 * config/sh/sh.opt (musermode): Allow negative form.
2383 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2384 targets that don't support it.
2385 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2386 Document -mno-usermode option.
2387
2388 2014-08-24 Kito Cheng <kito@0xlab.org>
2389
2390 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2391 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2392 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2393 * doc/tm.texi: Regenerate.
2394
2395 2014-08-24 Kito Cheng <kito@0xlab.org>
2396
2397 * ira.c: Fix typo in comment.
2398
2399 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2400
2401 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2402 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2403
2404 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2405
2406 PR target/62038
2407 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2408 last_address when the current function is a thunk.
2409 (pa_asm_output_mi_thunk): When we don't have named sections or they
2410 are not being used, check that thunk can reach the stub table with a
2411 short branch.
2412
2413 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2414
2415 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2416 rtx_insn *.
2417 (pass_web::execute): Likewise for local "insn".
2418
2419 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2420
2421 * var-tracking.c (struct micro_operation_def): Strengthen field
2422 "insn" from rtx to rtx_insn *.
2423 (struct emit_note_data_def): Likewise.
2424 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2425 (vt_stack_adjustments): Likewise for local "insn".
2426 (adjust_insn): Likewise for param "insn".
2427 (val_store): Likewise.
2428 (val_resolve): Likewise.
2429 (struct count_use_info): Likewise for field "insn".
2430 (log_op_type): Likewise for param "insn".
2431 (reverse_op): Likewise.
2432 (prepare_call_arguments): Likewise.
2433 (add_with_sets): The initial param takes an insn, but we can't
2434 yet strengthen it from rtx to rtx_insn * since it's used as a
2435 cselib_record_sets_hook callback. For now rename initial param
2436 from "insn" to "uncast_insn", and introduce a local "insn" of
2437 the stronger rtx_insn * type, with a checked cast.
2438 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2439 rtx_insn *.
2440 (emit_note_insn_var_location): Likewise.
2441 (emit_notes_for_changes): Likewise.
2442 (emit_notes_for_differences): Likewise.
2443 (next_non_note_insn_var_location): Likewise for return type and
2444 for param "insn".
2445 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2446 (vt_initialize): Likewise for local "insn".
2447 (delete_debug_insns): Likewise for locals "insn" and "next".
2448
2449 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2450
2451 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2452 rtx_insn *.
2453 (mark_constant_pool): Likewise for local "insn".
2454
2455 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2456
2457 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2458 rtx to rtx_insn *.
2459 (dead_debug_promote_uses): Likewise.
2460 (dead_debug_insert_temp): Likewise.
2461
2462 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2463
2464 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2465 from const_rtx to const rtx_insn *.
2466 (store_killed_after): Likewise. Strengthen locals "last", "act"
2467 from rtx to rtx_insn *.
2468 (store_killed_before): Strengthen param "insn" from const_rtx to
2469 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2470 (find_moveable_store): Strengthen param "insn" from rtx to
2471 rtx_insn *.
2472 (compute_store_table): Likewise for local "insn".
2473 (insert_insn_start_basic_block): Likewise for param "insn" and
2474 locals "prev", "before", "insn".
2475 (insert_store): For now, add a checked cast to rtx_insn * on the
2476 result of gen_move_insn.
2477 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2478 to rtx_insn *.
2479 (replace_store_insn): Likewise. For now, add a checked cast to
2480 rtx_insn * on the result of gen_move_insn.
2481
2482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2483
2484 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2485 rtx_insn *.
2486 (expand_sjlj_dispatch_table): Likewise.
2487
2488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2489
2490 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2491 "insn" from rtx to rtx_insn *.
2492
2493 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2494
2495 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2496 "insn" from rtx to rtx_insn *.
2497 (dup_block_and_redirect): Likewise for param 3 "before".
2498
2499 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2500 from rtx to rtx_insn *.
2501 (move_insn_for_shrink_wrap): Likewise.
2502 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2503 (dup_block_and_redirect): Likewise for param "before" and local
2504 "insn".
2505 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2506 "end".
2507 (convert_to_simple_return): Likewise for local "start".
2508
2509 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2510 Strengthen local "insn" from rtx to rtx_insn *, for use when
2511 invoking requires_stack_frame_p.
2512
2513 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2514
2515 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2516 rtx_insn *.
2517 (speculate_expr): Likewise for locals "orig_insn_rtx",
2518 "spec_insn_rtx".
2519 (eq_transformed_insns): Likewise for locals "i1", "i2".
2520 (check_for_new_jump): Likewise for return type and local "end".
2521 (find_new_jump): Likewise for return type and local "jump".
2522 (sel_split_edge): Likewise for local "jump".
2523 (sel_create_recovery_block): Likewise.
2524 (sel_redirect_edge_and_branch_force): Likewise.
2525 (sel_redirect_edge_and_branch): Likewise.
2526
2527 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2528
2529 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2530 "new_insn" from rtx to rtx_insn *.
2531 (create_insn_rtx_with_rhs): Likewise for return type and for local
2532 "insn_rtx".
2533 (create_insn_rtx_with_lhs): Likewise.
2534 (create_speculation_check): Likewise for local "insn_rtx".
2535 (implicit_clobber_conflict_p): Likewise for local "insn".
2536 (get_expr_cost): Likewise.
2537 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2538 (move_cond_jump): Likewise for locals "next", "prev", "link",
2539 "head", "from", "to".
2540
2541 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2542
2543 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2544 "next" from rtx to rtx_insn *.
2545 (find_conditional_protection): Likewise for local "next".
2546 (is_conditionally_protected): Likewise for local "insn1".
2547 (is_pfree): Likewise for locals "insn1", "insn2".
2548
2549 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2550
2551 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2552 from rtx to rtx_insn *.
2553
2554 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2555 locals "insn1", "insn2" from rtx to rtx_insn *.
2556 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2557 locals "insn", "prev", "last_jump", "next_tail".
2558 (schedule_ebb): Likewise for params "head", "tail".
2559 (schedule_ebbs): Likewise for locals "tail", "head".
2560
2561 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2562 to rtx_insn on "last_insn" in one of the invocations of
2563 schedule_ebb.
2564
2565 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2566
2567 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2568 "elem", "insn" from rtx to rtx_insn *.
2569 (change_spec_dep_to_hard): Likewise.
2570 (get_back_and_forw_lists): Likewise for local "con".
2571 (sd_add_dep): Likewise for locals "elem", "insn".
2572 (sd_resolve_dep): Likewise for locals "pro", "con".
2573 (sd_unresolve_dep): Likewise.
2574 (sd_delete_dep): Likewise.
2575 (chain_to_prev_insn): Likewise for local "pro".
2576 (find_inc): Likewise for locals "pro", "con".
2577
2578 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2579
2580 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2581 to rtx_insn *.
2582 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2583 const rtx_insn *.
2584 (modified_between_p): Strengthen local "insn" from rtx to
2585 rtx_insn *.
2586 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2587 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2588 const rtx_insn *.
2589
2590 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2591
2592 * resource.c (next_insn_no_annul): Strengthen local "next" from
2593 rtx to rtx_insn *.
2594 (mark_referenced_resources): Likewise for local "insn".
2595
2596 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2597
2598 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2599 to rtx_insn *.
2600 (find_reloads): Likewise for param 1.
2601 (subst_reloads): Likewise for sole param.
2602 (find_equiv_reg): Likwise for param 2.
2603 (regno_clobbered_p): Likwise for param 2.
2604 (reload): Likewise for param 1.
2605
2606 * caller-save.c (save_call_clobbered_regs): Strengthen local
2607 "insn" from rtx to rtx_insn *.
2608 (insert_one_insn): Likewise for local "insn".
2609
2610 * reload.c (this_insn): Likewise for this global.
2611 (find_reloads): Likewise for param "insn".
2612 (find_reloads_toplev): Likewise.
2613 (find_reloads_address): Likewise.
2614 (subst_reg_equivs): Likewise.
2615 (update_auto_inc_notes): Likewise.
2616 (find_reloads_address_1): Likewise.
2617 (find_reloads_subreg_address): Likewise.
2618 (subst_reloads): Likewise.
2619 (find_equiv_reg): Likewise, also for local "p".
2620 (regno_clobbered_p): Likewise for param "insn".
2621
2622 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2623 array.
2624 (spill_reg_store): Likewise for the elements of this array.
2625 (remove_init_insns): Likewise for local "equiv_insn".
2626 (will_delete_init_insn_p): Likewise for param "insn".
2627 (reload): Likewise for param ""first" and local "insn".
2628 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2629 rtx_insn *.
2630 (calculate_elim_costs_all_insns): Likewise.
2631 (delete_caller_save_insns): Likewise.
2632 (spill_failure): Likewise for param "insn".
2633 (delete_dead_insn): Likewise.
2634 (set_label_offsets): Likewise.
2635 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2636 "prev_insn".
2637 (elimination_costs_in_insn): Likewise for param "insn".
2638 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2639 when referring to an insn.
2640 (set_initial_label_offsets): Likewise.
2641 (set_offsets_for_label): Strengthen param "insn" from rtx to
2642 rtx_insn *.
2643 (init_eliminable_invariants): Likewise for param "first" and local
2644 "insn".
2645 (fixup_eh_region_note): Likewise for param "insn".
2646 (reload_as_needed): Likewise for locals "prev", "insn",
2647 "old_next", "old_prev", "next".
2648 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2649 "last".
2650 (reload_inheritance_insn): Strengthen elements of this array from
2651 rtx to rtx_insn *.
2652 (failed_reload): Likewise for param "insn".
2653 (choose_reload_regs): Likewise for local "insn". Replace use of
2654 NULL_RTX with NULL when referring to an insn.
2655 (input_reload_insns): Strengthen elements of this array from rtx
2656 to rtx_insn *.
2657 (other_input_address_reload_insns): Likewise for this global.
2658 (other_input_reload_insns): Likewise for this global.
2659 (input_address_reload_insns): Likwise for the elements of this
2660 array.
2661 (inpaddr_address_reload_insns): Likwise for the elements of this
2662 array.
2663 (output_reload_insns): Likewise for the elements of this array.
2664 (output_address_reload_insns): Likewise for the elements of this
2665 array.
2666 (outaddr_address_reload_insns): Likewise for the elements of this
2667 array.
2668 (operand_reload_insns): Likewise for this global.
2669 (other_operand_reload_insns): Likewise for this global.
2670 (other_output_reload_insns): Likewise for the elements of this
2671 array.
2672 (new_spill_reg_store): Likewise for the elements of this
2673 array.
2674 (emit_input_reload_insns): Likewise for locals "insn", "temp".
2675 Strengthen local "where" from rtx * to rtx_insn **.
2676 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2677 from rtx to rtx_insn *.
2678 (do_input_reload): Likewise for local "insn".
2679 (do_output_reload): Likewise for local "insn".
2680 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2681 (emit_insn_if_valid_for_reload): Likewise for return type and local
2682 "last". Add checked cast to rtx_insn when returning "insn" since
2683 this has been through emit_insn.
2684 (gen_reload): Strengthen return type and locals "last", "insn", "set"
2685 from rtx to rtx_insn *. Add checked cast to rtx_insn when
2686 returning "insn" since it's been through
2687 emit_insn_if_valid_for_reload at this point.
2688 (delete_output_reload): Strengthen param "insn" and locals
2689 "output_reload_insn", "i2" from rtx to rtx_insn *.
2690 (delete_address_reloads): Likewise for params "dead_insn",
2691 "current_insn" and locals "prev", "next".
2692 (delete_address_reloads_1): Likewise for params "dead_insn",
2693 "current_insn" and locals "prev", "i2".
2694 (inc_for_reload): Likewise for locals "last", "add_insn".
2695 (add_auto_inc_notes): Strengthen param "insn" from rtx to
2696 rtx_insn *.
2697
2698 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2699 param of this duplicate of the prototype from reload.h
2700
2701 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2702
2703 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2704 rtx to rtx_insn *.
2705 (regstat_bb_compute_calls_crossed): Likewise.
2706
2707 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2708
2709 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2710 to rtx_insn *.
2711 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2712 with an insn.
2713 (regrename_analyze): Strengthen local "insn" from rtx to
2714 rtx_insn *.
2715 (scan_rtx_reg): Likewise for param "insn".
2716 (scan_rtx_address): Likewise.
2717 (scan_rtx): Likewise.
2718 (restore_operands): Likewise.
2719 (record_out_operands): Likewise.
2720 (build_def_use): Likewise for local "insn". Replace use of
2721 NULL_RTX with NULL when dealing with an insn.
2722
2723 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2724
2725 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2726 * reginfo.c (reg_scan): Likewise, also for local "insn".
2727 (reg_scan_mark_refs): Likewise for param "insn".
2728 (init_subregs_of_mode): Likewise for local "insn".
2729
2730 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2731
2732 * regcprop.c (struct queued_debug_insn_change): Strengthen field
2733 "insn" from rtx to rtx_insn *.
2734 (replace_oldest_value_reg): Likewise for param "insn".
2735 (replace_oldest_value_addr): Likewise.
2736 (replace_oldest_value_mem): Likewise.
2737 (apply_debug_insn_changes): Likewise for local "last_insn".
2738 (copyprop_hardreg_forward_1): Likewise for local "insn".
2739
2740 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2741
2742 * reg-stack.c (next_flags_user): Strengthen return type and param
2743 "insn" from rtx to rtx_insn *.
2744 (straighten_stack): Likewise for param "insn".
2745 (check_asm_stack_operands): Likewise.
2746 (remove_regno_note): Likewise.
2747 (emit_pop_insn): Likewise for return type, param "insn", local
2748 "pop_insn".
2749 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
2750 "limit" from rtx to rtx_insn *.
2751 (swap_to_top): Likewise for param "insn".
2752 (move_for_stack_reg): Likewise.
2753 (move_nan_for_stack_reg): Likewise.
2754 (swap_rtx_condition): Likewise.
2755 (compare_for_stack_reg): Likewise.
2756 (subst_all_stack_regs_in_debug_insn): Likewise.
2757 (subst_stack_regs_pat): Likewise, and local "insn2".
2758 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2759 rtx_insn *.
2760 (subst_stack_regs): Likewise.
2761 (change_stack): Likewise.
2762 (convert_regs_1): Likewise for locals "insn", "next".
2763
2764 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2765
2766 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2767 rtx_insn *.
2768 (combine_set_extension): Likewise for param "curr_insn".
2769 (transform_ifelse): Likewise for param "def_insn".
2770 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
2771 from vec<rtx> * to vec<rtx_insn *> *.
2772 (is_cond_copy_insn): Likewise for param "insn".
2773 (struct ext_state): Strengthen the four vec fields from vec<rtx>
2774 to vec<rtx_insn *>.
2775 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
2776 local "def_insn" from rtx to rtx_insn *.
2777 (get_sub_rtx): Likewise for param "def_insn".
2778 (merge_def_and_ext): Likewise.
2779 (combine_reaching_defs): Likewise.
2780 (add_removable_extension): Likewise for param "insn".
2781 (find_removable_extensions): Likewise for local "insn".
2782 (find_and_remove_re): Likewise for locals "curr_insn" and
2783 "def_insn". Strengthen locals "reinsn_del_list" and
2784 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
2785
2786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2787
2788 * recog.c (split_insn): Strengthen param "insn" and locals
2789 "first", "last" from rtx to rtx_insn *.
2790 (split_all_insns): Likewise for locals "insn", "next".
2791 (split_all_insns_noflow): Likewise.
2792
2793 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2794
2795 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
2796 const rtx_insn *.
2797 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2798 (debug_rtx_find): Likewise for param 1 "x".
2799
2800 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
2801 const_rtx to const rtx_insn *. Likewise for local "insn".
2802 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2803 (debug_rtx_find): Likewise for param 1 "x".
2804 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
2805 from const_rtx to const rtx_insn * within the appropriate cases of
2806 the switch statement.
2807
2808 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
2809 Strengthen local "insns" from rtx to rtx_insn * since this is
2810 passed to a call to debug_rtx_list.
2811
2812 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2813
2814 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
2815 to rtx_insn *.
2816
2817 * function.c (stack_protect_epilogue): Add checked cast to
2818 rtx_insn for now when invoking predict_insn_def.
2819
2820 * predict.c (predict_insn): Strengthen param "insn" from rtx to
2821 rtx_insn *.
2822 (predict_insn_def): Likewise.
2823 (rtl_predict_edge): Likewise for local "last_insn".
2824 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
2825 const rtx_insn *.
2826 (combine_predictions_for_insn): Strengthen param "insn" from rtx
2827 to rtx_insn *.
2828 (bb_estimate_probability_locally): Likewise for local "last_insn".
2829 (expensive_function_p): Likewise for local "insn".
2830
2831 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
2832 local "jmp", since this is used when invoking predict_insn_def.
2833
2834 2014-08-22 Marek Polacek <polacek@redhat.com>
2835
2836 PR c++/62199
2837 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
2838
2839 2014-08-22 Marek Polacek <polacek@redhat.com>
2840
2841 PR c/61271
2842 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
2843 a comparison in parens.
2844 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
2845 in parens.
2846
2847 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2848
2849 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
2850 rtx_insn *.
2851
2852 * cprop.c (fis_get_condition): Likewise.
2853
2854 * postreload.c (reload_cse_regs): Likewise for param "first".
2855 (reload_cse_simplify): Likewise for param "insn".
2856 (reload_cse_regs_1): Likewise for local "insn".
2857 (reload_cse_simplify_set): Likewise for param "insn".
2858 (reload_cse_simplify_operands): Likewise.
2859 (struct reg_use): Likewise for field "insn".
2860 (reload_combine_purge_insn_uses): Likewise for param "insn".
2861 (fixup_debug_insns): Likewise for params "from", "to" and local
2862 "insn".
2863 (try_replace_in_use): Likewise for local "use_insn".
2864 (reload_combine_recognize_const_pattern): Likewise for param
2865 "insn" and locals "add_moved_after_insn", "use_insn".
2866 (reload_combine_recognize_pattern): Likewise for param "insn" and
2867 local "prev".
2868 (reload_combine): Likewise for locals "insn", "prev".
2869 (reload_combine_note_use): Likewise for param "insn".
2870 (move2add_use_add2_insn): Likewise.
2871 (move2add_use_add3_insn): Likewise.
2872 (reload_cse_move2add): Likewise, also for local "next".
2873 (move2add_note_store): Likewise for local "insn".
2874
2875 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2876
2877 * postreload-gcse.c (struct occr): Strengthen field "insn" from
2878 rtx to rtx_insn *.
2879 (struct unoccr): Likewise.
2880 (struct modifies_mem): Likewise.
2881 (alloc_mem): Likewise for local "insn".
2882 (insert_expr_in_table): Likewise for param "insn".
2883 (dump_expr_hash_table_entry): Likewise for local "insn".
2884 (oprs_unchanged_p): Likewise for param "insn".
2885 (load_killed_in_block_p): Likewise for local "setter".
2886 (record_last_reg_set_info): Likewise for param "insn".
2887 (record_last_reg_set_info_regno): Likewise.
2888 (record_last_mem_set_info): Likewise.
2889 (record_last_set_info): Likewise for local "last_set_insn".
2890 (record_opr_changes): Likewise for param "insn".
2891 (hash_scan_set): Likewise.
2892 (compute_hash_table): Likewise for local "insn".
2893 (get_avail_load_store_reg): Likewise for param "insn".
2894 (eliminate_partially_redundant_load): Likewise, also for locals
2895 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
2896 RTX for insns.
2897 (eliminate_partially_redundant_loads): Likewise for local "insn".
2898
2899 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2900
2901 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
2902 rtx to rtx_insn *.
2903 (expand_binop): Likewise for locals "entry_last", "last", "insns"
2904 (expand_twoval_unop): Likewise for locals entry_last", "last".
2905 (expand_twoval_binop): Likewise.
2906 (expand_twoval_binop_libfunc): Likewise for local "insns".
2907 (widen_leading): Likewise for local "last".
2908 (expand_doubleword_clz): Likewise for local "seq". Strengthen
2909 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
2910 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
2911 (expand_parity): Likewise for locals "last" and "seq".
2912 (expand_ffs): Likewise for local "seq". Strengthen local
2913 "nonzero_label" from rtx to rtx_code_label *.
2914 (expand_absneg_bit): Strengthen local "insns" from rtx to
2915 rtx_insn *.
2916 (expand_unop_direct): Likewise for local "last".
2917 (expand_unop): Likewise for locals "last", "insns".
2918 (expand_abs_nojump): Likewise for local "last".
2919 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
2920 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
2921 rtx_insn *.
2922 (expand_copysign_absneg): Strengthen local "label" from rtx to
2923 rtx_code_label *.
2924 (expand_copysign_bit): Strengthen local "insns" from rtx to
2925 rtx_insn *.
2926 (struct no_conflict_data): Likewise for fields "first", "insn".
2927 (emit_libcall_block_1): Likewise for param "insns" and locals
2928 "next", "last", "insn".
2929 (emit_libcall_block): For now, add a checked cast to rtx_insn *
2930 on "insns" when invoking emit_libcall_block_1. Ultimately we
2931 want to strengthen insns itself.
2932 (prepare_cmp_insn): Strengthen local "last" from rtx to
2933 rtx_insn *.
2934 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
2935 (prepare_float_lib_cmp): Likewise for local "insns".
2936 (emit_conditional_move): Likewise for local "last".
2937 (emit_conditional_add): Likewise.
2938 (have_sub2_insn): Likewise for local "seq".
2939 (expand_float): Likewise for local "insns". Strengthen locals
2940 "label", "neglabel" from rtx to rtx_code_label *.
2941 (expand_fix): Likewise for locals "last", "insn", "insns" (to
2942 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
2943 (expand_fixed_convert): Likewise for local "insns" (to
2944 rtx_insn *).
2945 (expand_sfix_optab): Likewise for local "last".
2946 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
2947 to rtx_code_label *.
2948 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
2949 from rtx to rtx_insn *.
2950 (expand_atomic_fetch_op): Likewise for local "insn".
2951 (maybe_legitimize_operand_same_code): Likewise for local "last".
2952 (maybe_legitimize_operands): Likewise.
2953
2954 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2955
2956 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
2957 "insn" from rtx to rtx_insn *.
2958 (ps_rtl_insn): Likewise for return type.
2959 (doloop_register_get): Likewise for params "head", "tail" and
2960 locals "insn", "first_insn_not_to_check".
2961 (schedule_reg_move): Likewise for local "this_insn".
2962 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
2963 of gen_move_insn for now.
2964 (reset_sched_times): Strengthen local "insn" from rtx to
2965 rtx_insn *.
2966 (permute_partial_schedule): Likewise.
2967 (duplicate_insns_of_cycles): Likewise for local "u_insn".
2968 (dump_insn_location): Likewise for param "insn".
2969 (loop_canon_p): Likewise for local "insn".
2970 (sms_schedule): Likewise.
2971 (print_partial_schedule): Likewise.
2972 (ps_has_conflicts): Likewise.
2973
2974 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2975
2976 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
2977 "tailp" from rtx * to rtx_insn **.
2978
2979 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
2980 from rtx to rtx_insn *.
2981 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
2982 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
2983 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
2984 rtx to rtx_insn *.
2985 * modulo-sched.c (const_iteration_count): Strengthen return type
2986 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
2987 use of NULL_RTX with NULL when working with insns.
2988 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
2989 to rtx_insn *.
2990 (sms_schedule): Likewise.
2991 * sched-rgn.c (init_ready_list): Likewise, also for locals
2992 "src_head" and "src_next_tail".
2993 (compute_block_dependences): Likewise.
2994 (free_block_dependencies): Likewise.
2995 (debug_rgn_dependencies): Likewise.
2996 (free_rgn_deps): Likewise.
2997 (compute_priorities): Likewise.
2998 (schedule_region): Likewise.
2999 * sel-sched.c (find_ebb_boundaries): Likewise.
3000
3001 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3002 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3003
3004 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3005
3006 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3007 from rtx to rtx_insn *.
3008 (new_seginfo): Likewise for param "insn".
3009 (create_pre_exit): Likewise for locals "last_insn",
3010 "before_return_copy", "return_copy".
3011 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3012 "mode_set".
3013
3014 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3015
3016 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3017 from rtx to rtx_insn *.
3018 (lra_push_insn): Likewise for 1st param.
3019 (lra_push_insn_and_update_insn_regno_info): Likewise.
3020 (lra_pop_insn): Likewise for return type.
3021 (lra_invalidate_insn_data): Likewise for 1st param.
3022 (lra_set_insn_deleted): Likewise.
3023 (lra_delete_dead_insn): Likewise.
3024 (lra_process_new_insns): Likewise for first 3 params.
3025 (lra_set_insn_recog_data): Likewise for 1st param.
3026 (lra_update_insn_recog_data): Likewise.
3027 (lra_set_used_insn_alternative): Likewise.
3028 (lra_invalidate_insn_regno_info): Likewise.
3029 (lra_update_insn_regno_info): Likewise.
3030 (lra_former_scratch_operand_p): Likewise.
3031 (lra_eliminate_regs_1): Likewise.
3032 (lra_get_insn_recog_data): Likewise.
3033
3034 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3035 rtx to rtx_insn *.
3036
3037 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3038 "mv1" and "mv2".
3039 (substitute_within_insn): New.
3040 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3041 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3042 Replace call to "substitute" with call to substitute_within_insn.
3043
3044 * lra-constraints.c (curr_insn): Strengthen from rtx to
3045 rtx_insn *.
3046 (get_equiv_with_elimination): Likewise for param "insn".
3047 (match_reload): Strengthen params "before" and "after" from rtx *
3048 to rtx_insn **.
3049 (emit_spill_move): Likewise for return type. Add a checked cast
3050 to rtx_insn * on result of gen_move_insn for now.
3051 (check_and_process_move): Likewise for local "before". Replace
3052 NULL_RTX with NULL when referring to insns.
3053 (process_addr_reg): Strengthen params "before" and "after" from
3054 rtx * to rtx_insn **.
3055 (insert_move_for_subreg): Likewise.
3056 (simplify_operand_subreg): Strengthen locals "before" and "after"
3057 from rtx to rtx_insn *.
3058 (process_address_1): Strengthen params "before" and "after" from
3059 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3060 rtx to rtx_insn *.
3061 (process_address): Strengthen params "before" and "after" from
3062 rtx * to rtx_insn **.
3063 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3064 (curr_insn_transform): Strengthen locals "before" and "after"
3065 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3066 to insns.
3067 (loc_equivalence_callback): Update cast of "data", changing
3068 resulting type from rtx to rtx_insn *.
3069 (substitute_pseudo_within_insn): New.
3070 (inherit_reload_reg): Strengthen param "insn" from rtx to
3071 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3072 NULL when referring to insns. Add a checked cast to rtx_insn *
3073 when using usage_insn to invoke lra_update_insn_regno_info.
3074 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3075 likewise for locals "restore", "save". Add checked casts to
3076 rtx_insn * when using usage_insn to invoke
3077 lra_update_insn_regno_info and lra_process_new_insns. Replace
3078 NULL_RTX with NULL when referring to insns.
3079 (split_if_necessary): Strengthen param "insn" from rtx to
3080 rtx_insn *.
3081 (update_ebb_live_info): Likewise for params "head", "tail" and local
3082 "prev_insn".
3083 (get_last_insertion_point): Likewise for return type and local "insn".
3084 (get_live_on_other_edges): Likewise for local "last".
3085 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3086 "prev_insn", "next_insn", "restore".
3087 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3088 (undo_optional_reloads): Likewise for local "insn".
3089
3090 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3091 "insn".
3092 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3093 insns.
3094 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3095 rtx_insn *.
3096 (spill_pseudos): Likewise for local "insn".
3097 (init_elimination): Likewise.
3098 (process_insn_for_elimination): Likewise for param "insn".
3099
3100 * lra-lives.c (curr_insn): Likewise.;
3101
3102 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3103 (remove_pseudos): Likewise for param "insn".
3104 (spill_pseudos): Likewise for local "insn".
3105 (lra_final_code_change): Likewise for locals "insn", "curr".
3106
3107 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3108 (lra_set_insn_deleted): Likewise.
3109 (lra_delete_dead_insn): Likewise, and for local "prev".
3110 (new_insn_reg): Likewise for param "insn".
3111 (lra_set_insn_recog_data): Likewise.
3112 (lra_update_insn_recog_data): Likewise.
3113 (lra_set_used_insn_alternative): Likewise.
3114 (get_insn_freq): Likewise.
3115 (invalidate_insn_data_regno_info): Likewise.
3116 (lra_invalidate_insn_regno_info): Likewise.
3117 (lra_update_insn_regno_info): Likewise.
3118 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3119 vec<rtx_insn *>.
3120 (lra_push_insn_1): Strengthen param "insn" from rtx to
3121 rtx_insn *.
3122 (lra_push_insn): Likewise.
3123 (lra_push_insn_and_update_insn_regno_info): Likewise.
3124 (lra_pop_insn): Likewise for return type and local "insn".
3125 (push_insns): Likewise for params "from", "to", and local "insn".
3126 (setup_sp_offset): Likewise for params "from", "last" and locals
3127 "before", "insn".
3128 (lra_process_new_insns): Likewise for params "insn", "before",
3129 "after" and local "last".
3130 (struct sloc): Likewise for field "insn".
3131 (lra_former_scratch_operand_p): Likewise for param "insn".
3132 (remove_scratches): Likewise for locals "insn", "last".
3133 (check_rtl): Likewise for local "insn".
3134 (add_auto_inc_notes): Likewise for param "insn".
3135 (update_inc_notes): Likewise for local "insn".
3136 (lra): Replace NULL_RTX with NULL when referring to insn.
3137
3138 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3139
3140 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3141 to rtx_insn *.
3142 (resolve_reg_notes): Likewise.
3143 (resolve_simple_move): Likewise for return type, param "insn", and
3144 locals "insns", "minsn".
3145 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3146 (resolve_use): Likewise.
3147 (resolve_debug): Likewise.
3148 (find_decomposable_shift_zext): Likewise.
3149 (resolve_shift_zext): Likewise for return type, param "insn", and
3150 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3151 (decompose_multiword_subregs): Likewise for local "insn",
3152 "orig_insn", "decomposed_shift", "end".
3153
3154 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3155
3156 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3157 param "insns" from rtx to rtx_insn *.
3158
3159 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3160 rtx to rtx_insn *.
3161 (struct iv_to_split): Likewise.
3162 (loop_exit_at_end_p): Likewise for local "insn".
3163 (split_edge_and_insert): Likewise for param "insns".
3164 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3165 and locals "seq", "jump".
3166 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3167 "branch_code"; update invocations of compare_and_jump_seq to
3168 eliminate NULL_RTX in favor of NULL.
3169 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3170 rtx to rtx_insn *.
3171 (reset_debug_uses_in_loop): Likewise.
3172 (analyze_insn_to_expand_var): Likewise for param "insn".
3173 (analyze_iv_to_split_insn): Likewise.
3174 (analyze_insns_in_loop): Likewise for local "insn".
3175 (insert_base_initialization): Likewise for param
3176 "insn" and local "seq".
3177 (split_iv): Likewise for param "insn" and local "seq".
3178 (expand_var_during_unrolling): Likewise for param "insn".
3179 (insert_var_expansion_initialization): Likewise for local "seq".
3180 (combine_var_copies_in_loop_exit): Likewise.
3181 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3182 "insn".
3183 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3184 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3185 "next".
3186
3187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3188
3189 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3190 rtx_insn *.
3191 (iv_analyze_result): Likewise.
3192 (iv_analyze_expr): Likewise.
3193 (biv_p): Likewise.
3194
3195 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3196 local "def_insn" from rtx to rtx_insn *.
3197 (get_biv_step_1): Likewise for local "insn".
3198 (iv_analyze_expr): Likewise for param "insn".
3199 (iv_analyze_def): Likewise for local "insn".
3200 (iv_analyze_op): Likewise for param "insn".
3201 (iv_analyze): Likewise.
3202 (iv_analyze_result): Likewise.
3203 (biv_p): Likewise.
3204 (suitable_set_for_replacement): Likewise.
3205 (simplify_using_initial_values): Likewise for local "insn".
3206 (iv_number_of_iterations): Likewise for param "insn".
3207 (check_simple_exit): Add checked cast to rtx_insn when invoking
3208 iv_number_of_iterations for now (until get_condition is
3209 strengthened).
3210
3211 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3212 "insn" from rtx to rtx_insn *.
3213 (analyze_insns_in_loop): Likewise for local "insn".
3214
3215 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3216
3217 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3218 to rtx_insn *.
3219 (struct invariant): Likewise.
3220 (hash_invariant_expr_1): Likewise for param "insn".
3221 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3222 (find_exits): Likewise for local "insn".
3223 (create_new_invariant): Likewise for param "insn".
3224 (check_dependencies): Likewise.
3225 (find_invariant_insn): Likewise.
3226 (record_uses): Likewise.
3227 (find_invariants_insn): Likewise.
3228 (find_invariants_bb): Likewise for local "insn".
3229 (get_pressure_class_and_nregs): Likewise for param "insn".
3230 (calculate_loop_reg_pressure): Likewise for local "insn".
3231
3232 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3233
3234 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3235 to rtx_insn *.
3236 (add_test): Likewise for locals "seq", "jump".
3237 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3238
3239 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3240
3241 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3242 rtx_insn *.
3243 (rebuild_jump_labels_chain): Likewise for param "chain".
3244
3245 * cfgexpand.c (pass_expand::execute): Add checked cast to
3246 rtx_insn * when calling rebuild_jump_labels_chain in region where
3247 we know e->insns.r is non-NULL.
3248
3249 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3250 rtx_insn *.
3251 (rebuild_jump_labels): Likewise.
3252 (rebuild_jump_labels_chain): Likewise for param "chain".
3253 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3254 (init_label_info): Likewise for param "f".
3255 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3256 "prev_nonjump_insn".
3257 (mark_all_labels): Likewise for param "f" and locals "insn",
3258 "prev_nonjump_insn".
3259
3260 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3261
3262 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3263 from rtx to rtx_insn *insn.
3264 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3265 (ira_add_allocno_copy): Likewise.
3266 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3267 rtx to rtx_insn *.
3268 (ira_create_copy): Likewise.
3269 (ira_add_allocno_copy): Likewise.
3270 (create_bb_allocnos): Likewise for local "insn".
3271 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3272 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3273 process_regs_for_copy for rtx_insn * param.
3274 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3275 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3276 process_regs_for_copy for rtx_insn * param.
3277 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3278 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3279 (record_operand_costs): Likewise.
3280 (scan_one_insn): Likewise for return type, and for param "insn".
3281 (process_bb_for_costs): Likewise for local "insn".
3282 (process_bb_node_for_hard_reg_moves): Likewise.
3283 * ira-emit.c (struct move): Likewise for field "insn".
3284 (create_move): Eliminate use of NULL_RTX when dealing with an
3285 rtx_insn *.
3286 (emit_move_list): Strengthen return type and locals "result",
3287 "insn" from rtx to rtx_insn *insn.
3288 (emit_moves): Likewise for locals "insns", "tmp".
3289 (ira_emit): Likewise for local "insn".
3290 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3291 "insn".
3292 (find_call_crossed_cheap_reg): Likewise.
3293 (process_bb_node_lives): Likewise for local "insn".
3294 * ira.c (decrease_live_ranges_number): Likewise.
3295 (compute_regs_asm_clobbered): Likewise.
3296 (build_insn_chain): Likewise.
3297 (find_moveable_pseudos): Likewise, also locals "def_insn",
3298 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3299 to rtx_insn **. Add a checked cast when assigning from
3300 "closest_use" into closest_uses array in a region where we know
3301 it's a non-NULL insn.
3302 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3303 to rtx_insn *.
3304 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3305 "last_interesting_insn", "uin".
3306 (move_unallocated_pseudos): Likewise for locals "def_insn",
3307 "move_insn", "newinsn".
3308
3309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3310
3311 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3312 Strengthen locals "done_label", "do_error" from rtx to
3313 rtx_code_label *.
3314 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3315 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3316 rtx_code_label *.
3317 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3318 "done_label", "do_error" to rtx_code_label * and local "last" to
3319 rtx_insn *.
3320 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3321 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3322 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3323 "after_lopart_neg", "do_overflow", "hipart_different" to
3324 rtx_code_label * and local "last" to rtx_insn *.
3325
3326 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3327
3328 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3329 "insn" and "move_insn" from rtx to rtx_insn *.
3330
3331 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3332
3333 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3334 rtx_insn *.
3335 (cheap_bb_rtx_cost_p): Likewise.
3336 (first_active_insn): Likewise for return type and local "insn".
3337 (last_active_insn): Likewise for return type and locals "insn",
3338 "head".
3339 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3340 "insn_b".
3341 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3342 "seq".
3343 (noce_try_move): Likewise for local "seq".
3344 (noce_try_store_flag): Likewise.
3345 (noce_try_store_flag_constants): Likewise.
3346 (noce_try_addcc): Likewise.
3347 (noce_try_store_flag_mask): Likewise.
3348 (noce_try_cmove): Likewise.
3349 (noce_try_minmax): Likewise.
3350 (noce_try_abs): Likewise.
3351 (noce_try_sign_mask): Likewise.
3352 (noce_try_bitop): Likewise.
3353 (noce_can_store_speculate_p): Likewise for local "insn".
3354 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3355 seq".
3356 (check_cond_move_block): Likewise for local "insn".
3357 (cond_move_convert_if_block): Likewise.
3358 (cond_move_process_if_block): Likewise for locals "seq",
3359 "loc_insn".
3360 (noce_find_if_block): Likewise for local "jump".
3361 (merge_if_block): Likewise for local "last".
3362 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3363 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3364 (block_has_only_trap): Likewise for return type and local "trap".
3365 (find_if_case_1): Likewise for local "jump".
3366 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3367 "insn".
3368
3369 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3370
3371 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3372 "last_insn", "loop_end" from rtx to rtx_insn *.
3373
3374 * hw-doloop.c (scan_loop): Likewise for local "insn".
3375 (discover_loop): Likewise for param "tail_insn".
3376 (discover_loops): Likewise for local "tail".
3377
3378 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3379 cast to rtx_insn * when assigning from an rtx local to a
3380 hwloop_info's "last_insn" field.
3381
3382 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3383
3384 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3385 (add_delay_dependencies): Strengthen local "pro" from rtx to
3386 rtx_insn *.
3387 (recompute_todo_spec): Likewise.
3388 (dep_cost_1): Likewise for locals "insn", "used".
3389 (schedule_insn): Likewise for local "dbg".
3390 (schedule_insn): Likewise for locals "pro", "next".
3391 (unschedule_insns_until): Likewise for local "con".
3392 (restore_pattern): Likewise for local "next".
3393 (estimate_insn_tick): Likewise for local "pro".
3394 (resolve_dependencies): Likewise for local "next".
3395 (fix_inter_tick): Likewise.
3396 (fix_tick_ready): Likewise for local "pro".
3397 (add_to_speculative_block): Likewise for locals "check", "twin",
3398 "pro".
3399 (sched_extend_bb): Likewise for locals "end", "insn".
3400 (init_before_recovery): Likewise for local "x".
3401 (sched_create_recovery_block): Likewise for local "barrier".
3402 (create_check_block_twin): Likewise for local "pro".
3403 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3404 "consumer".
3405 (unlink_bb_notes): Update for change to type of bb_header.
3406 Strengthen locals "prev", "label", "note", "next" from rtx to
3407 rtx_insn *.
3408 (clear_priorities): Likewise for local "pro".
3409
3410 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3411
3412 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3413 rtx_insn *.
3414 (test_insn): Likewise for this global.
3415 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3416 const rtx_insn *.
3417 (oprs_anticipatable_p): Likewise.
3418 (oprs_available_p): Likewise.
3419 (insert_expr_in_table): Strengthen param "insn" from rtx to
3420 rtx_insn *.
3421 (hash_scan_set): Likewise.
3422 (hash_scan_clobber): Likewise.
3423 (hash_scan_call): Likewise.
3424 (hash_scan_insn): Likewise.
3425 (compute_hash_table_work): Likewise for local "insn".
3426 (process_insert_insn): Likewise for return type and local "pat".
3427 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3428 "pat", "pat_end", "maybe_cc0_setter".
3429 (pre_edge_insert): Likewise for local "insn".
3430 (pre_insert_copy_insn): Likewise for param "insn".
3431 (pre_insert_copies): Likewise for local "insn".
3432 (struct set_data): Likewise for field "insn".
3433 (single_set_gcse): Likewise for param "insn".
3434 (gcse_emit_move_after): Likewise.
3435 (pre_delete): Likewise for local "insn".
3436 (update_bb_reg_pressure): Likewise for param "from" and local
3437 "insn".
3438 (should_hoist_expr_to_dom): Likewise for param "from".
3439 (hoist_code): Likewise for local "insn".
3440 (get_pressure_class_and_nregs): Likewise for param "insn".
3441 (calculate_bb_reg_pressure): Likewise for local "insn".
3442 (compute_ld_motion_mems): Likewise.
3443
3444 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3445
3446 * genpeep.c (main): Rename param back from "uncast_ins1" to
3447 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3448 checked cast.
3449
3450 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3451
3452 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3453
3454 PR target/62195
3455 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3456 documentation to state it is only for VSX operations.
3457
3458 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3459 constraint only active if VSX.
3460
3461 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3462 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3463 (lfiwzx): Likewise.
3464
3465 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3466
3467 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3468 Strengthen local "insn" from rtx to rtx_insn *.
3469 (use_killed_between): Likewise for param "target_insn".
3470 (all_uses_available_at): Likewise for param "target_insn" and
3471 local "next".
3472 (update_df_init): Likewise for params "def_insn", "insn".
3473 (update_df): Likewise for param "insn".
3474 (try_fwprop_subst): Likewise for param "def_insn" and local
3475 "insn".
3476 (free_load_extend): Likewise for param "insn".
3477 (forward_propagate_subreg): Likewise for param "def_insn" and
3478 local "use_insn".
3479 (forward_propagate_asm): Likewise for param "def_insn" and local
3480 "use_insn".
3481 (forward_propagate_and_simplify): Likewise for param "def_insn"
3482 and local "use_insn".
3483 (forward_propagate_into): Likewise for locals "def_insn" and
3484 "use_insn".
3485
3486 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3487
3488 * function.c (emit_initial_value_sets): Strengthen local "seq"
3489 from rtx to rtx_insn *.
3490 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3491 local "seq".
3492 (instantiate_virtual_regs): Likewise for local "insn".
3493 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3494 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3495 (expand_function_end): Likewise for locals "insn" and "seq".
3496 (epilogue_done): Likewise for local "insn".
3497 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3498 "last", "trial".
3499 (reposition_prologue_and_epilogue_notes): Likewise for locals
3500 "insn", "last", "note", "first".
3501 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3502 (pass_match_asm_constraints::execute): Likewise for local "insn".
3503
3504 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3505
3506 * output.h (final_scan_insn): Strengthen return type from rtx to
3507 rtx_insn *.
3508 (final_forward_branch_p): Likewise for param.
3509 (current_output_insn): Likewise for this global.
3510
3511 * final.c (rtx debug_insn): Likewise for this variable.
3512 (current_output_insn): Likewise.
3513 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3514 adding "insn" back in as an rtx_insn * with a checked cast, so
3515 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3516 first param.
3517 (compute_alignments): Strengthen local "label" from rtx to
3518 rtx_insn *.
3519 (shorten_branches): Rename param from "first" to "uncast_first",
3520 introducing a new local rtx_insn * "first" using a checked cast to
3521 effectively strengthen "first" from rtx to rtx_insn * without
3522 affecting the type signature. Strengthen locals "insn", "seq",
3523 "next", "label" from rtx to rtx_insn *.
3524 (change_scope): Strengthen param "orig_insn" and local "insn" from
3525 rtx to rtx_insn *.
3526 (final_start_function): Rename param from "first" to "uncast_first",
3527 introducing a new local rtx_insn * "first" using a checked cast to
3528 effectively strengthen "first" from rtx to rtx_insn * without
3529 affecting the type signature. Strengthen local "insn" from rtx to
3530 rtx_insn *.
3531 (dump_basic_block_info): Strengthen param "insn" from rtx to
3532 rtx_insn *.
3533 (final): Rename param from "first" to "uncast_first",
3534 introducing a new local rtx_insn * "first" using a checked cast to
3535 effectively strengthen "first" from rtx to rtx_insn * without
3536 affecting the type signature. Strengthen locals "insn", "next"
3537 from rtx to rtx_insn *.
3538 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3539 rtx_insn *.
3540 (call_from_call_insn): Strengthen param "insn" from rtx to
3541 rtx_call_insn *.
3542 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3543 introducing a new local rtx_insn * "insn" using a checked cast to
3544 effectively strengthen "insn" from rtx to rtx_insn * without
3545 affecting the type signature. Strengthen return type and locals
3546 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3547 now-redundant checked cast to rtx_insn * from both invocations of
3548 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3549 introducing a local "call_insn" for use when invoking
3550 call_from_call_insn.
3551 (notice_source_line): Strengthen param "insn" from rtx to
3552 rtx_insn *.
3553 (leaf_function_p): Likewise for local "insn".
3554 (final_forward_branch_p): Likewise.
3555 (leaf_renumber_regs): Likewise for param "first".
3556 (rest_of_clean_state): Likewise for locals "insn" and "next".
3557 (self_recursive_call_p): Likewise for param "insn".
3558 (collect_fn_hard_reg_usage): Likewise for local "insn".
3559 (get_call_fndecl): Likewise for param "insn".
3560 (get_call_cgraph_rtl_info): Likewise.
3561 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3562 introducing a new local rtx_insn * "insn" using a checked cast to
3563 effectively strengthen "insn" from rtx to rtx_insn * without
3564 affecting the type signature.
3565
3566 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3567 cast when assigning from param "insn" to current_output_insn.
3568 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3569 so that we can assign it back to current_output_insn.
3570
3571 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3572
3573 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3574 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3575 atmxt540s and atmxt540sreva devices.
3576 * config/avr/avr-tables.opt: Regenerate.
3577 * config/avr/t-multilib: Regenerate.
3578 * doc/avr-mmcu.texi: Regenerate.
3579
3580 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3581
3582 * expr.c (convert_move): Strengthen local "insns" from rtx to
3583 rtx_insn *.
3584 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3585 "top_label" from rtx to rtx_code_label *.
3586 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3587 rtx_insn *.
3588 (emit_single_push_insn): Likewise for locals "prev", "last".
3589 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3590 to rtx_code_label *.
3591 (store_constructor): Likewise for locals "loop_start", "loop_end".
3592 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3593 rtx_insn *.
3594 (expand_expr_real_2): Likewise.
3595 (expand_expr_real_1): Strengthen local "label" from rtx to
3596 rtx_code_label *.
3597
3598 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3599
3600 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3601 from rtx to rtx_insn *.
3602 (store_bit_field_1): Likewise.
3603 (extract_bit_field_1): Likewise.
3604 (expand_mult_const): Likewise for local "insns".
3605 (expmed_mult_highpart): Strengthen local "label" from rtx to
3606 rtx_code_label *.
3607 (expand_smod_pow2): Likewise.
3608 (expand_sdiv_pow2): Likewise.
3609 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3610 rtx_insn *. Strengthen locals "label", "label1", "label2",
3611 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3612 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3613 (emit_store_flag): Likewise.
3614 (emit_store_flag_force): Strengthen local "label" from rtx to
3615 rtx_code_label *.
3616 (do_cmp_and_jump): Likewise for param "label".
3617
3618 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3619
3620 * explow.c (force_reg): Strengthen local "insn" from rtx to
3621 rtx_insn *.
3622 (adjust_stack_1): Likewise.
3623 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3624 "final_label", "available_label", "space_available" from rtx to
3625 rtx_code_label *.
3626 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3627 (anti_adjust_stack_and_probe): Likewise.
3628
3629 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3630
3631 * except.h (sjlj_emit_function_exit_after): Strengthen param
3632 "after" from rtx to rtx_insn *. This is only called with
3633 result of get_last_insn (in function.c) so type-change should be
3634 self-contained.
3635
3636 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3637 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3638 to rtx_insn *. These fields are only used from except.c so this
3639 type-change should be self-contained to this patch.
3640
3641 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3642 local "last" from rtx to rtx_insn *.
3643 (dw2_build_landing_pads): Likewise for local "seq".
3644 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3645 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3646 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3647 rtx to rtx_insn *.
3648 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3649 to rtx_insn *.
3650 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3651 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3652 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3653 referring to an insn. Strengthen local "dispatch_label" from
3654 rtx to rtx_code_label *.
3655 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3656 rtx_insn *.
3657 (expand_eh_return): Strengthen local "around_label" from
3658 rtx to rtx_code_label *.
3659 (convert_to_eh_region_ranges): Strengthen locals "iter",
3660 "last_action_insn", "first_no_action_insn",
3661 "first_no_action_insn_before_switch",
3662 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3663
3664 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3665
3666 * dwarf2out.c (last_var_location_insn): Strengthen this variable
3667 from rtx to rtx_insn *.
3668 (cached_next_real_insn): Likewise.
3669 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3670 working with insns.
3671 (dwarf2out_var_location): Strengthen locals "next_real",
3672 "next_note", "expected_next_loc_note", "last_start", "insn" from
3673 rtx to rtx_insn *.
3674
3675 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3676
3677 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3678 from rtx to rtx_insn *.
3679 (create_pseudo_cfg): Likewise for local "insn".
3680
3681 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3682
3683 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3684 from rtx to rtx_insn *.
3685 (df_bb_regno_last_def_find): Likewise.
3686
3687 * df-problems.c (df_rd_bb_local_compute): Likewise.
3688 (df_lr_bb_local_compute): Likewise.
3689 (df_live_bb_local_compute): Likewise.
3690 (df_chain_remove_problem): Likewise.
3691 (df_chain_create_bb): Likewise.
3692 (df_word_lr_bb_local_compute): Likewise.
3693 (df_remove_dead_eq_notes): Likewise for param "insn".
3694 (df_note_bb_compute): Likewise for local "insn".
3695 (simulate_backwards_to_point): Likewise.
3696 (df_md_bb_local_compute): Likewise.
3697
3698 * df-scan.c (df_scan_free_bb_info): Likewise.
3699 (df_scan_start_dump): Likewise.
3700 (df_scan_start_block): Likewise.
3701 (df_install_ref_incremental): Likewise for local "insn".
3702 (df_insn_rescan_all): Likewise.
3703 (df_reorganize_refs_by_reg_by_insn): Likewise.
3704 (df_reorganize_refs_by_insn_bb): Likewise.
3705 (df_recompute_luids): Likewise.
3706 (df_bb_refs_record): Likewise.
3707 (df_update_entry_exit_and_calls): Likewise.
3708 (df_bb_verify): Likewise.
3709
3710 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3711
3712 * ddg.h (struct ddg_node): Strengthen fields "insn" and
3713 "first_note" from rtx to rtx_insn *.
3714 (get_node_of_insn): Likewise for param 2 "insn".
3715 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3716
3717 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3718 rtx_insn *.
3719 (mem_write_insn_p): Likewise.
3720 (mem_access_insn_p): Likewise.
3721 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3722 (def_has_ccmode_p): Likewise for param "insn".
3723 (add_cross_iteration_register_deps): Likewise for locals
3724 "def_insn" and "use_insn".
3725 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3726 (build_intra_loop_deps): Likewise for local "src_insn".
3727 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3728 to rtx_insn *.
3729 (get_node_of_insn): Likewise for param "insn".
3730
3731 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3732
3733 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3734 (deletable_insn_p): Strengthen param "insn" from rtx to
3735 rtx_insn *. Add checked cast to rtx_call_insn when invoking
3736 find_call_stack_args, since this is guarded by CALL_P (insn).
3737 (marked_insn_p): Strengthen param "insn" from rtx to
3738 rtx_insn *.
3739 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
3740 invoking find_call_stack_args, since this is guarded by
3741 CALL_P (insn).
3742 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3743 rtx_insn *; we know this is an insn since this was called by
3744 mark_nonreg_stores.
3745 (mark_nonreg_stores_2): Likewise.
3746 (mark_nonreg_stores): Strengthen param "insn" from rtx to
3747 rtx_insn *.
3748 (find_call_stack_args): Strengthen param "call_insn" from rtx to
3749 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3750 to rtx_insn *.
3751 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3752 from rtx to rtx_insn *.
3753 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3754 "next", "ref_insn".
3755 (delete_unmarked_insns): Likewise for locals "insn", "next".
3756 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3757 (mark_reg_dependencies): Likewise for param "insn".
3758 (rest_of_handle_ud_dce): Likewise for local "insn".
3759 (word_dce_process_block): Likewise.
3760 (dce_process_block): Likewise.
3761
3762 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3763
3764 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3765 from rtx to rtx_insn *.
3766 (struct change_cc_mode_args): Likewise for field "insn".
3767 (this_insn): Strengthen from rtx to rtx_insn *.
3768 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
3769 with insn.
3770 (validate_canon_reg): Strengthen param "insn" from rtx to
3771 rtx_insn *.
3772 (canon_reg): Likewise.
3773 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
3774 dealing with insn.
3775 (record_jump_equiv): Strengthen param "insn" from rtx to
3776 rtx_insn *.
3777 (try_back_substitute_reg): Likewise, also for locals "prev",
3778 "bb_head".
3779 (find_sets_in_insn): Likewise for param "insn".
3780 (canonicalize_insn): Likewise.
3781 (cse_insn): Likewise. Add a checked cast.
3782 (invalidate_from_clobbers): Likewise for param "insn".
3783 (invalidate_from_sets_and_clobbers): Likewise.
3784 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
3785 dealing with insn.
3786 (cse_prescan_path): Strengthen local "insn" from rtx to
3787 rtx_insn *.
3788 (cse_extended_basic_block): Likewise for locals "insn" and
3789 "prev_insn".
3790 (cse_main): Likewise for param "f".
3791 (check_for_label_ref): Likewise for local "insn".
3792 (set_live_p): Likewise for second param ("insn").
3793 (insn_live_p): Likewise for first param ("insn") and for local
3794 "next".
3795 (cse_change_cc_mode_insn): Likewise for first param "insn".
3796 (cse_change_cc_mode_insns): Likewise for first and second params
3797 "start" and "end".
3798 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
3799 and "end".
3800 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
3801 "cc_src_insn".
3802
3803 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3805 Anna Tikhonova <anna.tikhonova@intel.com>
3806 Ilya Tocar <ilya.tocar@intel.com>
3807 Andrey Turetskiy <andrey.turetskiy@intel.com>
3808 Ilya Verbin <ilya.verbin@intel.com>
3809 Kirill Yukhin <kirill.yukhin@intel.com>
3810 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3811
3812 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
3813 New.
3814 * config/i386/sse.md
3815 (define_mode_iterator VI248_AVX2): Delete.
3816 (define_mode_iterator VI2_AVX2_AVX512BW): New.
3817 (define_mode_iterator VI48_AVX2): Ditto.
3818 (define_insn <shift_insn><mode>3): Delete.
3819 (define_insn "<shift_insn><mode>3<mask_name>" with
3820 VI2_AVX2_AVX512BW): New.
3821 (define_insn "<shift_insn><mode>3<mask_name>" with
3822 VI48_AVX2): Ditto.
3823
3824 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3825 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3826 Anna Tikhonova <anna.tikhonova@intel.com>
3827 Ilya Tocar <ilya.tocar@intel.com>
3828 Andrey Turetskiy <andrey.turetskiy@intel.com>
3829 Ilya Verbin <ilya.verbin@intel.com>
3830 Kirill Yukhin <kirill.yukhin@intel.com>
3831 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3832
3833 * config/i386/sse.md
3834 (define_mode_iterator VI4F_BRCST32x2): New.
3835 (define_mode_attr 64x2_mode): Ditto.
3836 (define_mode_attr 32x2mode): Ditto.
3837 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
3838 with VI4F_BRCST32x2): Ditto.
3839 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
3840 with V16FI mode iterator): Ditto.
3841 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3842 with V16FI): Ditto.
3843 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3844 with VI8F_BRCST64x2): Ditto.
3845
3846 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3847 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3848 Anna Tikhonova <anna.tikhonova@intel.com>
3849 Ilya Tocar <ilya.tocar@intel.com>
3850 Andrey Turetskiy <andrey.turetskiy@intel.com>
3851 Ilya Verbin <ilya.verbin@intel.com>
3852 Kirill Yukhin <kirill.yukhin@intel.com>
3853 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3854
3855 * config/i386/sse.md
3856 (define_mode_iterator VI8_AVX512VL): New.
3857 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
3858
3859 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3860
3861 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
3862 (define_mode_iterator V48_AVX512VL): New.
3863 (define_mode_iterator V12_AVX512VL): Ditto.
3864 (define_insn <avx512>_load<mode>_mask): Split into two similar
3865 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
3866 Refactor output template.
3867 (define_insn "<avx512>_store<mode>_mask"): Ditto.
3868
3869 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3870
3871 * cprop.c (struct occr): Strengthen field "insn" from rtx to
3872 rtx_insn *.
3873 (reg_available_p): Likewise for param "insn".
3874 (insert_set_in_table): Likewise.
3875 (hash_scan_set): Likewise.
3876 (hash_scan_insn): Likewise.
3877 (make_set_regs_unavailable): Likewise.
3878 (compute_hash_table_work): Likewise for local "insn".
3879 (reg_not_set_p): Strengthen param "insn" from const_rtx to
3880 const rtx_insn *.
3881 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
3882 (try_replace_reg): Likewise.
3883 (find_avail_set): Likewise.
3884 (cprop_jump): Likewise for params "setcc", "jump".
3885 (constprop_register): Likewise for param "insn".
3886 (cprop_insn): Likewise.
3887 (do_local_cprop): Likewise.
3888 (local_cprop_pass): Likewise for local "insn".
3889 (bypass_block): Likewise for params "setcc" and "jump".
3890 (bypass_conditional_jumps): Likewise for locals "setcc" and
3891 "insn".
3892 (one_cprop_pass): Likewise for local "insn".
3893
3894 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3895
3896 * compare-elim.c (struct comparison_use): Strengthen field "insn"
3897 from rtx to rtx_insn *.
3898 (struct comparison): Likewise, also for field "prev_clobber".
3899 (conforming_compare): Likewise for param "insn".
3900 (arithmetic_flags_clobber_p): Likewise.
3901 (find_flags_uses_in_insn): Likewise.
3902 (find_comparison_dom_walker::before_dom_children): Likewise for
3903 locals "insn", "next", "last_clobber".
3904 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
3905
3906 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3907
3908 * combine-stack-adj.c (struct csa_reflist): Strengthen field
3909 "insn" from rtx to rtx_insn *.
3910 (single_set_for_csa): Likewise for param "insn".
3911 (record_one_stack_ref): Likewise.
3912 (try_apply_stack_adjustment): Likewise.
3913 (struct record_stack_refs_data): Likewise for field "insn".
3914 (maybe_move_args_size_note): Likewise for params "last" and "insn".
3915 (prev_active_insn_bb): Likewise for return type and param "insn".
3916 (next_active_insn_bb): Likewise.
3917 (force_move_args_size_note): Likewise for params "prev" and "last"
3918 and locals "test", "next_candidate", "prev_candidate".
3919 (combine_stack_adjustments_for_block): Strengthen locals
3920 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
3921 rtx_insn *.
3922
3923 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3924
3925 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
3926 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
3927 (subst_insn): Likewise for this variable.
3928 (added_links_insn): Likewise.
3929 (struct insn_link): Likewise for field "insn".
3930 (alloc_insn_link): Likewise for param "insn".
3931 (struct undobuf): Likewise for field "other_insn".
3932 (find_single_use): Likewise for param "insn" and local "next".
3933 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
3934 (delete_noop_moves): Likewise for locals "insn", "next".
3935 (create_log_links): Likewise for locals "insn", "use_insn".
3936 Strengthen local "next_use" from rtx * to rtx_insn **.
3937 (insn_a_feeds_b): Likewise for params "a", "b".
3938 (combine_instructions): Likewise for param "f" and locals "insn",
3939 "next", "prev", "first", "last_combined_insn", "link", "link1",
3940 "temp". Replace use of NULL_RTX with NULL when referring to
3941 insns.
3942 (setup_incoming_promotions): Likewise for param "first"
3943 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
3944 (can_combine_p): Likewise for params "insn", "i3", "pred",
3945 "pred2", "succ", "succ2" and for local "p".
3946 (combinable_i3pat): Likewise for param "i3".
3947 (cant_combine_insn_p): Likewise for param "insn".
3948 (likely_spilled_retval_p): Likewise.
3949 (adjust_for_new_dest): Likewise.
3950 (update_cfg_for_uncondjump): Likewise, also for local "insn".
3951 (try_combine): Likewise for return type and for params "i3", "i2",
3952 "i1", "i0", "last_combined_insn", and for locals "insn",
3953 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
3954 "i0_insn". Eliminate local "tem" in favor of new locals
3955 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
3956 checked cast for now to rtx_insn * on the return type of
3957 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
3958 insns.
3959 (find_split_point): Strengthen param "insn" from rtx to
3960 rtx_insn *.
3961 (simplify_set): Likewise for local "other_insn".
3962 (recog_for_combine): Likewise for param "insn".
3963 (record_value_for_reg): Likewise.
3964 (record_dead_and_set_regs_1): Likewise for local
3965 "record_dead_insn".
3966 (record_dead_and_set_regs): Likewise for param "insn".
3967 (record_promoted_value): Likewise.
3968 (check_promoted_subreg): Likewise.
3969 (get_last_value_validate): Likewise.
3970 (reg_dead_at_p): Likewise.
3971 (move_deaths): Likewise for param "to_insn".
3972 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
3973 and locals "place", "place2", "cc0_setter". Eliminate local "tem
3974 in favor of new locals "tem_note" and "tem_insn", the latter being
3975 an rtx_insn *.
3976 (distribute_links): Strengthen locals "place", "insn" from rtx to
3977 rtx_insn *.
3978
3979 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3980
3981 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
3982 than a const_rtx.
3983 (can_delete_label_p): Require a const rtx_code_label * rather than
3984 a const_rtx.
3985 (delete_insn): Add checked cast to rtx_code_label * when we know
3986 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
3987 rtx to rtx_insn *.
3988 (delete_insn_chain): Strengthen locals "prev" and "current" from
3989 rtx to rtx_insn *. Add a checked cast when assigning from
3990 "finish" (strengthening the params will come later). Add a
3991 checked cast to rtx_note * in region where we know
3992 NOTE_P (current).
3993 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
3994 rtx_insn *.
3995 (compute_bb_for_insn): Likewise.
3996 (free_bb_for_insn): Likewise for local "insn".
3997 (compute_bb_for_insn): Likewise.
3998 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
3999 local "insn" from rtx to rtx_insn *
4000 (flow_active_insn_p): Require a const rtx_insn * rather than a
4001 const_rtx.
4002 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4003 rtx_insn *.
4004 (can_fallthru): Likewise for locals "insn" and "insn2".
4005 (bb_note): Likewise for local "note".
4006 (first_insn_after_basic_block_note): Likewise for local "note" and
4007 for return type.
4008 (rtl_split_block): Likewise for locals "insn" and "next".
4009 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4010 "end".
4011 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4012 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4013 "prev", "tmp".
4014 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4015 them), "kill_from", "barrier", "new_insn".
4016 (patch_jump_insn): Likewise for params "insn", "old_label".
4017 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4018 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4019 "old_label", "new_label".
4020 (rtl_tidy_fallthru_edge): Likewise for local "q".
4021 (rtl_split_edge): Likewise for locals "before", "last".
4022 (commit_one_edge_insertion): Likewise for locals "before",
4023 "after", "insns", "tmp", "last", adding a checked cast where
4024 currently necessary.
4025 (commit_edge_insertions): Likewise.
4026 (rtl_dump_bb): Likewise for locals "insn", "last".
4027 (print_rtl_with_bb): Likewise for local "x".
4028 (rtl_verify_bb_insns): Likewise for local "x".
4029 (rtl_verify_bb_pointers): Likewise for local "insn".
4030 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4031 "head", "end".
4032 (rtl_verify_fallthru): Likewise for local "insn".
4033 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4034 (purge_dead_edges): Likewise for local "insn".
4035 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4036 (skip_insns_after_block): Likewise for return type and for locals
4037 "insn", "last_insn", "next_head", "prev".
4038 (record_effective_endpoints): Likewise for locals "next_insn",
4039 "insn", "end".
4040 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4041 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4042 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4043 (duplicate_insn_chain): For now, add checked cast from rtx to
4044 rtx_insn * when returning insn.
4045 (cfg_layout_duplicate_bb): Likewise for local "insn".
4046 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4047 "prev", "remaints".
4048 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4049 (rtl_block_empty_p): Likewise.
4050 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4051 "split_point", "last".
4052 (rtl_block_ends_with_call_p): Likewise for local "insn".
4053 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4054 const rtx_insn *.
4055 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4056 "split_at_insn" from rtx to rtx_insn *.
4057 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4058 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4059 to const rtx_insn *.
4060 (rtl_account_profile_record): Likewise.
4061
4062 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4063
4064 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4065 rtx to rtx_insn *.
4066 (average_num_loop_insns): Likewise.
4067 (init_set_costs): Likewise for local "seq".
4068 (seq_cost): Likewise for param "seq", from const_rtx to const
4069 rtx_insn *.
4070
4071 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4072
4073 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4074 rtx to rtx_insn *.
4075
4076 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4077
4078 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4079 "f1" and "f2" from rtx * to rtx_insn **.
4080 (flow_find_head_matching_sequence): Likewise.
4081
4082 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4083 "cbranch_insn" from rtx to rtx_insn *.
4084 (thread_jump): Likewise for local "insn".
4085 (try_forward_edges): Likewise for local "last".
4086 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4087 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4088 "real_b_end".
4089 (can_replace_by): Likewise for params "i1", "i2".
4090 (old_insns_match_p): Likewise.
4091 (merge_notes): Likewise.
4092 (walk_to_nondebug_insn): Likewise for param "i1".
4093 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4094 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4095 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4096 (flow_find_head_matching_sequence): Strengthen params "f1" and
4097 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4098 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4099 rtx_insn *.
4100 (outgoing_edges_match): Likewise for locals "last1", "last2".
4101 (try_crossjump_to_edge): Likewise for local "insn".
4102 Replace call to for_each_rtx with for_each_rtx_in_insn.
4103
4104 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4105 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4106 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4107 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4108 (try_optimize_cfg): Strengthen local "last" from rtx to
4109 rtx_insn *.
4110 (delete_dead_jumptables): Likewise for locals "insn", "next",
4111 "label".
4112
4113 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4114 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4115 "rtx else_first_tail", to reflect the basic-block.h changes above.
4116
4117 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4118
4119 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4120 rtx_insn *.
4121 (purge_dead_tablejump_edges): Likewise.
4122 (find_bb_boundaries): Likewise for locals "insn", "end",
4123 "flow_transfer_insn".
4124
4125 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4126
4127 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4128 "ins" and "prev" from rtx to rtx_insn *.
4129
4130 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4131
4132 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4133 rtx_insn *.
4134 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4135 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4136 "scan_start".
4137 (load_register_parameters): Likewise for local "before_arg".
4138 (check_sibcall_argument_overlap): Likewise for param "insn".
4139 (expand_call): Likewise for locals "normal_call_insns",
4140 "tail_call_insns", "insns", "before_call", "after_args",
4141 "before_arg", "last", "prev". Strengthen one of the "last" from
4142 rtx to rtx_call_insn *.
4143 (fixup_tail_calls): Strengthen local "insn" from rtx to
4144 rtx_insn *.
4145 (emit_library_call_value_1): Likewise for locals "before_call" and
4146 "last".
4147
4148 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4149
4150 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4151 and "last" from rtx to rtx_insn *.
4152 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4153 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4154 rtx_call_insn *.
4155 (expand_errno_check): Strengthen local "lab" from rtx to
4156 rtx_code_label *.
4157 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4158 rtx_insn *.
4159 (expand_builtin_mathfn_2): Likewise.
4160 (expand_builtin_mathfn_ternary): Likewise.
4161 (expand_builtin_mathfn_3): Likewise.
4162 (expand_builtin_interclass_mathfn): Likewise for local "last".
4163 (expand_builtin_int_roundingfn): Likewise for local "insns".
4164 (expand_builtin_int_roundingfn_2): Likewise.
4165 (expand_builtin_strlen): Likewise for local "before_strlen".
4166 (expand_builtin_strncmp): Likewise for local "seq".
4167 (expand_builtin_signbit): Likewise for local "last".
4168 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4169 from rtx to rtx_code_label *.
4170 (expand_stack_restore): Strengthen local "prev" from rtx to
4171 rtx_insn *.
4172
4173 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4174
4175 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4176 to rtx_insn *.
4177 (struct btr_def_s): Likewise.
4178 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4179 const rtx_insn *.
4180 (add_btr_def): Likewise.
4181 (new_btr_user): Likewise.
4182 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4183 rtx to rtx_insn *.
4184 (link_btr_uses): Likewise.
4185 (move_btr_def): Likewise for locals "insp", "old_insn",
4186 "new_insn". Add checked cast to rtx_insn * for now on result of
4187 gen_move_insn.
4188 (can_move_up): Strengthen param "insn" from const_rtx to
4189 const rtx_insn *.
4190
4191 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4192
4193 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4194 rtx_insn *.
4195 (get_uncond_jump_length): Likewise for locals "label", "jump".
4196 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4197 "jump", "insn".
4198 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4199 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4200 (find_jump_block): Likewise for local "insn".
4201 (fix_crossing_conditional_branches): Likewise for locals
4202 "old_jump", "new_jump".
4203 (fix_crossing_unconditional_branches): Likewise for locals
4204 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4205 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4206
4207 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4208
4209 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4210 rtx to rtx_insn *.
4211 (struct mem_insn): Likewise for field "insn".
4212 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4213 (reg_next_inc_use): Likewise.
4214 (reg_next_def): Likewise.
4215 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4216 from rtx to rtx_insn *.
4217 (move_insn_before): Likewise for param "next_insn" and local "insns".
4218 (attempt_change): Likewise for local "mov_insn".
4219 (try_merge): Likewise for param "last_insn".
4220 (get_next_ref): Likewise for return type and local "insn".
4221 Strengthen param "next_array" from rtx * to rtx_insn **.
4222 (parse_add_or_inc): Strengthen param "insn" from rtx to
4223 rtx_insn *.
4224 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4225 the latter).
4226 (merge_in_block): Likewise for locals "insn", "curr",
4227 "other_insn".
4228 (pass_inc_dec::execute): Update allocations of the arrays to
4229 reflect the stronger types.
4230
4231 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4232
4233 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4234 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4235 from rtx to rtx_code_label *.
4236
4237 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4238
4239 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4240 to rtx_insn *.
4241
4242 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4243
4244 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4245 generated a warning and prevented bootstrapping the compiler.
4246
4247 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4248
4249 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4250 rtx_insn *.
4251
4252 * jump.c (delete_related_insns): Likewise, also for locals "next"
4253 and "prev".
4254
4255 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4256
4257 * genautomata.c (output_internal_insn_latency_func): When writing
4258 the function "internal_insn_latency" to insn-automata.c,
4259 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4260 allowing the optional guard function of (define_bypass) clauses to
4261 expect a pair of rtx_insn *, rather than a pair of rtx.
4262 (output_insn_latency_func): When writing the function
4263 "insn_latency", add an "uncast_" prefix to params "insn" and
4264 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4265 using checked casts from the params, thus enabling the above
4266 change to the generated "internal_insn_latency" function.
4267
4268 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4269
4270 PR tree-optimization/62091
4271 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4272 handle correctly arrays.
4273 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4274 inheritance binfos.
4275 (record_known_type): Walk into inner type.
4276 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4277 condition on no type changes.
4278
4279 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4280
4281 * genattrtab.c (write_attr_get): Within the generated get_attr_
4282 functions, rename param "insn" to "uncast_insn" and reintroduce
4283 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4284 is an rtx_insn * within insn-attrtab.c
4285
4286 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4287
4288 * output.h (peephole): Strengthen return type from rtx to
4289 rtx_insn *.
4290 * rtl.h (delete_for_peephole): Likewise for both params.
4291 * genpeep.c (main): In generated "peephole" function, strengthen
4292 return type and local "insn" from rtx to rtx_insn *. For now,
4293 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4294 rtx_insn *, with a checked cast.
4295 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4296 locals "insn", "next", "prev" from rtx to rtx_insn *.
4297
4298 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4299
4300 PR tree-optimization/62112
4301 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4302 * gimple-iterator.h (gsi_replace): Return bool.
4303 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4304 moved from ref_may_alias_global_p.
4305 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4306 New overloads.
4307 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4308 (stmt_kills_ref_p_1): Rename...
4309 (stmt_kills_ref_p): ... to this.
4310 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4311 stmt_kills_ref_p): Declare.
4312 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4313 Move the self-assignment case...
4314 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4315
4316 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4317
4318 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4319
4320 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4321 "after". For now, don't strengthen param "trial", which requires
4322 adding checked casts when returning it.
4323
4324 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4325
4326 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4327 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4328 "var_location" hook from rtx to rtx_insn *.
4329 (debug_nothing_rtx): Delete in favor of...
4330 (debug_nothing_rtx_code_label): New prototype.
4331 (debug_nothing_rtx_rtx): Delete unused prototype.
4332 (debug_nothing_rtx_insn): New prototype.
4333
4334 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4335 invoking debug_hooks->var_location (in two places, one in a NOTE
4336 case of a switch statement, the other guarded by a CALL_P
4337 conditional. Add checked cast to rtx_code_label * when invoking
4338 debug_hooks->label (within CODE_LABEL case of switch statement).
4339
4340 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4341 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4342 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4343 (xcoff_debug_hooks): Likewise.
4344 * debug.c (do_nothing_debug_hooks): Likewise.
4345 (debug_nothing_rtx): Delete in favor of...
4346 (debug_nothing_rtx_insn): New function.
4347 (debug_nothing_rtx_rtx): Delete unused function.
4348 (debug_nothing_rtx_code_label): New function.
4349 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4350 debug_nothing_rtx to debug_nothing_rtx_code_label.
4351 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4352 to rtx_insn *.
4353 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4354 debug_nothing_rtx to debug_nothing_rtx_insn.
4355 (sdbout_label): Strengthen param "insn" from rtx to
4356 rtx_code_label *.
4357 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4358 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4359 "var_location" hook from debug_nothing_rtx to
4360 debug_nothing_rtx_insn.
4361
4362 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4363
4364 * recog.h (insn_output_fn): Update this function typedef to match
4365 the changes below to the generated output functions, strengthening
4366 the 2nd param from rtx to rtx_insn *.
4367
4368 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4369 insn when invoking an output function, to match the new signature
4370 of insn_output_fn with a stronger second param.
4371
4372 * genconditions.c (write_header): In the generated code for
4373 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4374 to match the other changes in this patch.
4375
4376 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4377 the generated "gen_" functions from rtx to rtx_insn * within their
4378 implementations.
4379
4380 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4381 the subfunctions within the generated "recog_", "split", "peephole2"
4382 function trees from rtx to rtx_insn *. For now, the top-level
4383 generated functions ("recog", "split", "peephole2") continue to
4384 take a plain rtx for "insn", to avoid introducing dependencies on
4385 other patches. Rename this 2nd param from "insn" to
4386 "uncast_insn", and reintroduce "insn" as a local variable of type
4387 rtx_insn *, initialized at the top of the generated function with
4388 a checked cast on "uncast_insn".
4389 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4390 the generated "gen_" functions from rtx to rtx_insn * within their
4391 prototypes.
4392
4393 * genoutput.c (process_template): Strengthen the 2nd param within
4394 the generated "output_" functions "insn" from rtx to rtx_insn *.
4395
4396 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4397
4398 * tree-profile.c (tree_profiling): Skip external functions
4399 when doing coverage instrumentation.
4400 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4401
4402 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4403
4404 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4405 (vec_mergee): Likewise.
4406 (vec_mergeo): Likewise.
4407 (vec_cntlz): Likewise.
4408 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4409 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4410 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4411 VMRGEW, and VMRGOW.
4412 * doc/extend.texi: Document various forms of vec_cpsgn,
4413 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4414 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4415 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4416 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4417 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4418
4419 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4420
4421 * config/rs6000/rs6000.c (context.h): New include.
4422 (tree-pass.h): Likewise.
4423 (make_pass_analyze_swaps): New decl.
4424 (rs6000_option_override): Register pass_analyze_swaps.
4425 (swap_web_entry): New subsclass of web_entry_base (df.h).
4426 (special_handling_values): New enum.
4427 (union_defs): New function.
4428 (union_uses): Likewise.
4429 (insn_is_load_p): Likewise.
4430 (insn_is_store_p): Likewise.
4431 (insn_is_swap_p): Likewise.
4432 (rtx_is_swappable_p): Likewise.
4433 (insn_is_swappable_p): Likewise.
4434 (chain_purpose): New enum.
4435 (chain_contains_only_swaps): New function.
4436 (mark_swaps_for_removal): Likewise.
4437 (swap_const_vector_halves): Likewise.
4438 (adjust_subreg_index): Likewise.
4439 (permute_load): Likewise.
4440 (permute_store): Likewise.
4441 (handle_special_swappables): Likewise.
4442 (replace_swap_with_copy): Likewise.
4443 (dump_swap_insn_table): Likewise.
4444 (rs6000_analyze_swaps): Likewise.
4445 (pass_data_analyze_swaps): New pass_data.
4446 (pass_analyze_swaps): New rtl_opt_pass.
4447 (make_pass_analyze_swaps): New function.
4448 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4449
4450 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4451
4452 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4453 type from rtx to rtx_insn *.
4454 (create_copy_of_insn_rtx): Likewise.
4455 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4456 (create_copy_of_insn_rtx): Likewise, also for local "res".
4457
4458 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4459
4460 * rtl.h (find_first_parameter_load): Strengthen return type from
4461 rtx to rtx_insn *.
4462 * rtlanal.c (find_first_parameter_load): Strengthen return type
4463 from rtx to rtx_insn *. Add checked cast for now, to postpone
4464 strengthening the params.
4465
4466 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4467
4468 PR fortran/44054
4469 * diagnostic.c: Set default caret.
4470 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4471 line is needed.
4472 * diagnostic.h (struct diagnostic_context):
4473
4474 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4475
4476 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4477 (sel_bb_head): Strengthen return type insn_t (currently just an
4478 rtx) to rtx_insn *.
4479 (sel_bb_end): Likewise.
4480
4481 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4482 (sel_bb_head): Strengthen return type and local "head" from
4483 insn_t (currently just an rtx) to rtx_insn *.
4484 (sel_bb_end): Likewise for return type.
4485 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4486 working with insn.
4487
4488 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4489
4490 * basic-block.h (get_last_bb_insn): Strengthen return type from
4491 rtx to rtx_insn *.
4492 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4493 end".
4494
4495 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4496
4497 PR fortran/44054
4498 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4499 to here ...
4500 (diagnostic_report_diagnostic): ... from here.
4501 * toplev.c (general_init): Move code to c-family.
4502
4503 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4504
4505 * df.h (web_entry_base): Replace existing struct web_entry with a
4506 new class web_entry_base with only the predecessor member.
4507 (unionfind_root): Remove declaration and move to class member.
4508 (unionfind_union): Remove declaration and move to friend
4509 function.
4510 (union_defs): Remove declaration.
4511 * web.c (web_entry_base::unionfind_root): Modify to be member
4512 function and adjust accessors.
4513 (unionfind_union): Modify to be friend function and adjust
4514 accessors.
4515 (web_entry): New subclass of web_entry_base containing the reg
4516 member.
4517 (union_match_dups): Modify for struct -> class changes.
4518 (union_defs): Likewise.
4519 (entry_register): Likewise.
4520 (pass_web::execute): Likewise.
4521
4522 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4523
4524 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4525 builtin define __VEC_ELEMENT_REG_ORDER__.
4526
4527 2014-08-20 Martin Jambor <mjambor@suse.cz>
4528 Wei Mi <wmi@google.com>
4529
4530 PR ipa/60449
4531 PR middle-end/61776
4532 * tree-ssa-operands.c (update_stmt_operands): Remove
4533 MODIFIED_NORETURN_CALLS.
4534 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4535 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4536 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4537 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4538 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4539 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4540 (gimple_call_set_ctrl_altering): New func.
4541 (gimple_call_ctrl_altering_p): Ditto.
4542 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4543 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4544 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4545 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4546 remove MODIFIED_NORETURN_CALLS.
4547
4548 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4549
4550 * coverage.c (coverage_compute_profile_id): Return non-0;
4551 also handle symbols with unique name.
4552 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4553
4554 2014-08-20 Steve Ellcey <sellcey@mips.com>
4555
4556 PR middle-end/49191
4557 * doc/sourcebuild.texi (non_strict_align): New.
4558
4559 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4560
4561 * cgraphunit.c (ipa_passes, compile): Reshedule
4562 symtab_remove_unreachable_nodes passes; update comments.
4563 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4564 TODO_remove_functions before the pass; the functions ought to be
4565 already removed.
4566 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4567 TODO_remove_functions.
4568 * passes.c (pass_data_early_local_passes): Do not schedule function
4569 removal.
4570 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4571
4572 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4573
4574 PR c/59304
4575 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4576 before setting the option.
4577 * diagnostic.c (diagnostic_classify_diagnostic): Record
4578 command-line status.
4579
4580 2014-08-20 Richard Biener <rguenther@suse.de>
4581
4582 PR lto/62190
4583 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4584 to build uint{16,32,64}_type_node.
4585
4586 2014-08-20 Terry Guo <terry.guo@arm.com>
4587
4588 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4589 with immediate_operand.
4590
4591 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4592
4593 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4594 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4595 NULL.
4596
4597 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4598
4599 PR preprocessor/51303
4600 * incpath.c (remove_duplicates): Use cpp_warning.
4601
4602 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4603
4604 PR c/60975
4605 PR c/53063
4606 * doc/options.texi (CPP): Document it.
4607 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4608 * optc-gen.awk: Handle CPP.
4609 * opth-gen.awk: Likewise.
4610
4611 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4612
4613 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4614 rtx_insn *.
4615 (duplicate_insn_chain): Likewise.
4616 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4617 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4618 checked cast for now (until we can strengthen the params in the
4619 same way).
4620 (duplicate_insn_chain): Likewise.
4621
4622 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4623
4624 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4625 rtx_insn *.
4626 (prev_cc0_setter): Likewise.
4627
4628 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4629 rtx_insn *, adding checked casts for now as necessary.
4630 (prev_cc0_setter): Likewise.
4631
4632 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4633
4634 * expr.h (emit_move_insn): Strengthen return type from rtx to
4635 rtx_insn *.
4636 (emit_move_insn_1): Likewise.
4637 (emit_move_complex_push): Likewise.
4638 (emit_move_complex_parts): Likewise.
4639
4640 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4641 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4642 with insns.
4643 (emit_move_complex_push): Strengthen return type from rtx to
4644 rtx_insn *.
4645 (emit_move_complex): Likewise, also for local "ret".
4646 (emit_move_ccmode): Likewise.
4647 (emit_move_multi_word): Likewise for return type and locals
4648 "last_insn", "seq".
4649 (emit_move_insn_1): Likewise for return type and locals "result",
4650 "ret".
4651 (emit_move_insn): Likewise for return type and local "last_insn".
4652 (compress_float_constant): Likewise.
4653
4654 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4655
4656 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4657 from rtx to rtx_insn *.
4658
4659 * rtl.h (emit_insn_before): Likewise.
4660 (emit_insn_before_noloc): Likewise.
4661 (emit_insn_before_setloc): Likewise.
4662 (emit_jump_insn_before): Likewise.
4663 (emit_jump_insn_before_noloc): Likewise.
4664 (emit_jump_insn_before_setloc): Likewise.
4665 (emit_call_insn_before): Likewise.
4666 (emit_call_insn_before_noloc): Likewise.
4667 (emit_call_insn_before_setloc): Likewise.
4668 (emit_debug_insn_before): Likewise.
4669 (emit_debug_insn_before_noloc): Likewise.
4670 (emit_debug_insn_before_setloc): Likewise.
4671 (emit_label_before): Likewise.
4672 (emit_insn_after): Likewise.
4673 (emit_insn_after_noloc): Likewise.
4674 (emit_insn_after_setloc): Likewise.
4675 (emit_jump_insn_after): Likewise.
4676 (emit_jump_insn_after_noloc): Likewise.
4677 (emit_jump_insn_after_setloc): Likewise.
4678 (emit_call_insn_after): Likewise.
4679 (emit_call_insn_after_noloc): Likewise.
4680 (emit_call_insn_after_setloc): Likewise.
4681 (emit_debug_insn_after): Likewise.
4682 (emit_debug_insn_after_noloc): Likewise.
4683 (emit_debug_insn_after_setloc): Likewise.
4684 (emit_label_after): Likewise.
4685 (emit_insn): Likewise.
4686 (emit_debug_insn): Likewise.
4687 (emit_jump_insn): Likewise.
4688 (emit_call_insn): Likewise.
4689 (emit_label): Likewise.
4690 (gen_clobber): Likewise.
4691 (emit_clobber): Likewise.
4692 (gen_use): Likewise.
4693 (emit_use): Likewise.
4694 (emit): Likewise.
4695
4696 (emit_barrier_before): Strengthen return type from rtx to
4697 rtx_barrier *.
4698 (emit_barrier_after): Likewise.
4699 (emit_barrier): Likewise.
4700
4701 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
4702 from rtx to rtx_insn *. Add checked casts for now when converting
4703 "last" from rtx to rtx_insn *.
4704 (emit_insn_before_noloc): Likewise for return type.
4705 (emit_jump_insn_before_noloc): Likewise.
4706 (emit_call_insn_before_noloc): Likewise.
4707 (emit_debug_insn_before_noloc): Likewise.
4708 (emit_barrier_before): Strengthen return type and local "insn"
4709 from rtx to rtx_barrier *.
4710 (emit_label_before): Strengthen return type from rtx to
4711 rtx_insn *. Add checked cast for now when returning param
4712 (emit_pattern_after_noloc): Strengthen return type from rtx to
4713 rtx_insn *. Add checked casts for now when converting "last" from
4714 rtx to rtx_insn *.
4715 (emit_insn_after_noloc): Strengthen return type from rtx to
4716 rtx_insn *.
4717 (emit_jump_insn_after_noloc): Likewise.
4718 (emit_call_insn_after_noloc): Likewise.
4719 (emit_debug_insn_after_noloc): Likewise.
4720 (emit_barrier_after): Strengthen return type from rtx to
4721 rtx_barrier *.
4722 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4723 Add checked cast for now when converting "label" from rtx to
4724 rtx_insn *.
4725 (emit_pattern_after_setloc): Strengthen return type from rtx to
4726 rtx_insn *. Add checked casts for now when converting "last" from
4727 rtx to rtx_insn *.
4728 (emit_pattern_after): Strengthen return type from rtx to
4729 rtx_insn *.
4730 (emit_insn_after_setloc): Likewise.
4731 (emit_insn_after): Likewise.
4732 (emit_jump_insn_after_setloc): Likewise.
4733 (emit_jump_insn_after): Likewise.
4734 (emit_call_insn_after_setloc): Likewise.
4735 (emit_call_insn_after): Likewise.
4736 (emit_debug_insn_after_setloc): Likewise.
4737 (emit_debug_insn_after): Likewise.
4738 (emit_pattern_before_setloc): Likewise. Add checked casts for now
4739 when converting "last" from rtx to rtx_insn *.
4740 (emit_pattern_before): Strengthen return type from rtx to
4741 rtx_insn *.
4742 (emit_insn_before_setloc): Likewise.
4743 (emit_insn_before): Likewise.
4744 (emit_jump_insn_before_setloc): Likewise.
4745 (emit_jump_insn_before): Likewise.
4746 (emit_call_insn_before_setloc): Likewise.
4747 (emit_call_insn_before): Likewise.
4748 (emit_debug_insn_before_setloc): Likewise.
4749 (emit_debug_insn_before): Likewise.
4750 (emit_insn): Strengthen return type and locals "last", "insn",
4751 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
4752 within cases where we know we have an insn.
4753 (emit_debug_insn): Likewise.
4754 (emit_jump_insn): Likewise.
4755 (emit_call_insn): Strengthen return type and local "insn" from rtx
4756 to rtx_insn *.
4757 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
4758 a checked cast to rtx_insn * for now on "label".
4759 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4760 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4761 (emit_use): Likewise.
4762 (gen_use): Likewise, also for local "seq".
4763 (emit): Likewise for return type and local "insn".
4764 (rtx_insn): Likewise for return type and local "new_rtx".
4765
4766 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4767 from rtx to rtx_barrier *.
4768
4769 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
4770 changed return type from rtx to rtx_insn *, we must update
4771 "emit_fn" type, and this in turn means updating...
4772 (frame_insn): ...this. Strengthen return type from rtx to
4773 rtx_insn *. Introduce a new local "insn" of the appropriate type.
4774
4775 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4776
4777 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
4778 rtx to rtx_jump_table_data *. Also for local.
4779 * rtl.h (emit_jump_table_data): Likewise.
4780
4781 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4782
4783 * basic-block.h (create_basic_block_structure): Strengthen third
4784 param "bb_note" from rtx to rtx_note *.
4785 * rtl.h (emit_note_before): Strengthen return type from rtx to
4786 rtx_note *.
4787 (emit_note_after): Likewise.
4788 (emit_note): Likewise.
4789 (emit_note_copy): Likewise. Also, strengthen param similarly.
4790 * function.h (struct rtl_data): Strengthen field
4791 "x_stack_check_probe_note" from rtx to rtx_note *.
4792
4793 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
4794 from rtx to rtx_note *.
4795 * cfgrtl.c (create_basic_block_structure): Strengthen third param
4796 "bb_note" from rtx to rtx_note *.
4797 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
4798 when calling emit_note_copy.
4799 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
4800 rtx_note *.
4801 (emit_note_after): Likewise.
4802 (emit_note_before): Likewise.
4803 (emit_note_copy): Likewise. Also, strengthen param similarly.
4804 (emit_note): Likewise.
4805 * except.c (emit_note_eh_region_end): Likewise for return type.
4806 Strengthen local "next" from rtx to rtx_insn *.
4807 (convert_to_eh_region_ranges): Strengthen local "note"
4808 from rtx to rtx_note *.
4809 * final.c (change_scope): Likewise.
4810 (reemit_insn_block_notes): Likewise, for both locals named "note".
4811 Also, strengthen local "insn" from rtx to rtx_insn *.
4812 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
4813 rtx to rtx_note *.
4814 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
4815 strengthen local "seq" from rtx to rtx_insn *.
4816 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
4817 to rtx_note *.
4818 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
4819 vec<rtx_note *>.
4820 (get_bb_note_from_pool): Strengthen return type from rtx to
4821 rtx_note *.
4822 (sel_create_basic_block): Strengthen local "new_bb_note" from
4823 insn_t to rtx_note *.
4824 * var-tracking.c (emit_note_insn_var_location): Strengthen local
4825 "note" from rtx to rtx_note *.
4826 (emit_notes_in_bb): Likewise.
4827
4828 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4829
4830 * function.h (struct rtl_data): Strengthen field
4831 "x_parm_birth_insn" from rtx to rtx_insn *.
4832 * function.c (struct assign_parm_data_all): Strengthen fields
4833 "first_conversion_insn" and "last_conversion_insn" from rtx to
4834 rtx_insn *.
4835
4836 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4837
4838 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
4839 to rtx_insn *; also for local "var_end_seq".
4840 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
4841 (maybe_cleanup_end_of_block): Likewise for param "last" and local
4842 "insn".
4843 (expand_gimple_cond): Likewise for locals "last2" and "last".
4844 (mark_transaction_restart_calls): Likewise for local "insn".
4845 (expand_gimple_stmt): Likewise for return type and locals "last"
4846 and "insn".
4847 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
4848 (avoid_complex_debug_insns): Likewise for param "insn".
4849 (expand_debug_locations): Likewise for locals "insn", "last",
4850 "prev_insn" and "insn2".
4851 (expand_gimple_basic_block): Likewise for local "last".
4852 (construct_exit_block): Likewise for locals "head", "end",
4853 "orig_end".
4854 (pass_expand::execute): Likewise for locals "var_seq",
4855 "var_ret_seq", "next".
4856
4857 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4858
4859 * asan.h (asan_emit_stack_protection): Strengthen return type from
4860 rtx to rtx_insn *.
4861 * asan.c (asan_emit_stack_protection): Likewise. Add local
4862 "insns" to hold the return value.
4863
4864 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4865
4866 * basic-block.h (bb_note): Strengthen return type from rtx to
4867 rtx_note *.
4868 * sched-int.h (bb_note): Likewise.
4869 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
4870
4871 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4872
4873 * rtl.h (make_insn_raw): Strengthen return type from rtx to
4874 rtx_insn *.
4875
4876 * emit-rtl.c (make_insn_raw): Strengthen return type and local
4877 "insn" from rtx to rtx_insn *.
4878 (make_debug_insn_raw): Strengthen return type from rtx to
4879 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
4880 (make_jump_insn_raw): Strengthen return type from rtx to
4881 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
4882 (make_call_insn_raw): Strengthen return type from rtx to
4883 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
4884 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
4885 callback from rtx to rtx_insn *; likewise for local "insn" and
4886 "next", adding a checked cast to rtx_insn in the relevant cases of
4887 the switch statement.
4888 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
4889 callback from rtx to rtx_insn *.
4890 (emit_pattern_after_setloc): Likewise.
4891 (emit_pattern_after): Likewise.
4892 (emit_pattern_before_setloc): Likewise.
4893 (emit_pattern_before): Likewise.
4894
4895 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4896
4897 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
4898 rtx_call_insn *.
4899 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
4900 accepting an rtx_insn *.
4901 (last_call_insn): Strengthen return type from rtx to
4902 rtx_call_insn *.
4903
4904 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4905
4906 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
4907 "insns" from rtx to rtx_insn *.
4908 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
4909 locals "insn" and "prev".
4910
4911 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4912
4913 * rtl.h (tablejump_p): Strengthen third param from rtx * to
4914 rtx_jump_table_data **.
4915
4916 * cfgbuild.c (make_edges): Introduce local "table", using it in
4917 place of "tmp" for jump table data.
4918 (find_bb_boundaries): Strengthen local "table" from rtx to
4919 rtx_jump_table_data *.
4920 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4921 (outgoing_edges_match): Likewise for locals "table1" and "table2".
4922 (try_crossjump_to_edge): Likewise.
4923 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
4924 "table".
4925 (patch_jump_insn): Introduce local "table", using it in place of
4926 "tmp" for jump table data.
4927 (force_nonfallthru_and_redirect): Introduce local "table", so that
4928 call to tablejump_p can receive an rtx_jump_table_data **. Update
4929 logic around the call to overwrite "note" appropriately if
4930 tablejump_p returns non-zero.
4931 (get_last_bb_insn): Introduce local "table", using it in place of
4932 "tmp" for jump table data.
4933 * dwarf2cfi.c (create_trace_edges): Likewise.
4934
4935 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
4936 from rtx to rtx_jump_table_data *.
4937 (create_fix_barrier): Strengthen local "tmp" from rtx to
4938 rtx_jump_table_data *.
4939 (arm_reorg): Likewise for local "table".
4940
4941 * config/s390/s390.c (s390_chunkify_start): Likewise.
4942
4943 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4944
4945 * jump.c (delete_related_insns): Strengthen local "lab_next" from
4946 rtx to rtx_jump_table_data *.
4947
4948 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
4949 rtx_jump_table_data **. Add a checked cast when writing through
4950 the pointer: we know there that local "table" is non-NULL and that
4951 JUMP_TABLE_DATA_P (table) holds.
4952 (label_is_jump_target_p): Introduce local "table", using it in
4953 place of "tmp" for jump table data.
4954
4955 2014-08-19 Marek Polacek <polacek@redhat.com>
4956
4957 PR c++/62153
4958 * doc/invoke.texi: Document -Wbool-compare.
4959
4960 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4961
4962 * rtl.h (entry_of_function): Strengthen return type from rtx to
4963 rtx_insn *.
4964 * cfgrtl.c (entry_of_function): Likewise.
4965
4966 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4967
4968 * emit-rtl.h (get_insns): Strengthen return type from rtx to
4969 rtx_insn *, adding a checked cast for now.
4970 (get_last_insn): Likewise.
4971
4972 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4973
4974 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
4975 rtx_code_label *.
4976
4977 * emit-rtl.c (gen_label_rtx): Likewise.
4978
4979 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4980
4981 * rtl.h (previous_insn): Strengthen return type from rtx to
4982 rtx_insn *.
4983 (next_insn): Likewise.
4984 (prev_nonnote_insn): Likewise.
4985 (prev_nonnote_insn_bb): Likewise.
4986 (next_nonnote_insn): Likewise.
4987 (next_nonnote_insn_bb): Likewise.
4988 (prev_nondebug_insn): Likewise.
4989 (next_nondebug_insn): Likewise.
4990 (prev_nonnote_nondebug_insn): Likewise.
4991 (next_nonnote_nondebug_insn): Likewise.
4992 (prev_real_insn): Likewise.
4993 (next_real_insn): Likewise.
4994 (prev_active_insn): Likewise.
4995 (next_active_insn): Likewise.
4996
4997 * emit-rtl.c (next_insn): Strengthen return type from rtx to
4998 rtx_insn *, adding a checked cast.
4999 (previous_insn): Likewise.
5000 (next_nonnote_insn): Likewise.
5001 (next_nonnote_insn_bb): Likewise.
5002 (prev_nonnote_insn): Likewise.
5003 (prev_nonnote_insn_bb): Likewise.
5004 (next_nondebug_insn): Likewise.
5005 (prev_nondebug_insn): Likewise.
5006 (next_nonnote_nondebug_insn): Likewise.
5007 (prev_nonnote_nondebug_insn): Likewise.
5008 (next_real_insn): Likewise.
5009 (prev_real_insn): Likewise.
5010 (next_active_insn): Likewise.
5011 (prev_active_insn): Likewise.
5012
5013 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5014 param "stepfunc" so that it returns an rtx_insn * rather than an
5015 rtx, to track the change to prev_nonnote_insn_bb, which is the
5016 only function this is called with.
5017 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5018
5019 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5020
5021 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5022 assert.
5023
5024 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5025
5026 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5027 (class rtx_nonjump_insn): Likewise.
5028 (class rtx_jump_insn): Likewise.
5029 (class rtx_call_insn): Likewise.
5030 (class rtx_jump_table_data): Likewise.
5031 (class rtx_barrier): Likewise.
5032 (class rtx_code_label): Likewise.
5033 (class rtx_note): Likewise.
5034
5035 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5036 adding the invariant DEBUG_INSN_P (X).
5037 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5038 the invariant NONJUMP_INSN_P (X).
5039 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5040 the invariant JUMP_P (X).
5041 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5042 the invariant CALL_P (X).
5043 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5044 invariant JUMP_TABLE_DATA_P (X).
5045 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5046 invariant BARRIER_P (X).
5047 (class rtx_code_label): New, a subclass of rtx_insn, adding
5048 the invariant LABEL_P (X).
5049 (class rtx_note): New, a subclass of rtx_insn, adding
5050 the invariant NOTE_P(X).
5051 (is_a_helper <rtx_debug_insn *>::test): New.
5052 (is_a_helper <rtx_nonjump_insn *>::test): New.
5053 (is_a_helper <rtx_jump_insn *>::test): New.
5054 (is_a_helper <rtx_call_insn *>::test): New.
5055 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5056 overloaded for both rtx and rtx_insn *.
5057 (is_a_helper <rtx_barrier *>::test): New.
5058 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5059 for both rtx and rtx_insn *.
5060 (is_a_helper <rtx_note *>::test): New.
5061
5062 2014-08-19 Marek Polacek <polacek@redhat.com>
5063
5064 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5065 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5066 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5067 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5068
5069 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5070
5071 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5072 rtx_insn *. To help with transition, for now, convert from an
5073 access macro into a pair of functions: BND_TO, returning an
5074 rtx_insn *, and...
5075 (SET_BND_TO): New function, for use where BND_TO is used as an
5076 lvalue.
5077
5078 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5079 SET_BND_TO.
5080 (BND_TO): New function, adding a checked cast.
5081 (SET_BND_TO): New function.
5082
5083 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5084 SET_BND_TO.
5085 (compute_av_set_on_boundaries): Likewise.
5086
5087 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5088
5089 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5090 destination if it is used in source.
5091 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5092 (*popcount<mode>2_falsedep_1): Likewise.
5093
5094 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5095
5096 PR other/62168
5097 * configure.ac: Set install_gold_as_default to no first.
5098 * configure: Regenerated.
5099
5100 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5101
5102 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5103 "note_list" field will eventually be an rtx_insn *. To help with
5104 transition, for now, convert from an access macro into a pair of
5105 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5106 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5107 used as an lvalue.
5108
5109 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5110 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5111
5112 * sel-sched-ir.c (init_bb): Likewise.
5113 (sel_restore_notes): Likewise.
5114 (move_bb_info): Likewise.
5115 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5116 (SET_BB_NOTE_LIST): New function.
5117
5118 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5119
5120 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5121 field will eventually be an rtx_insn *. To help with transition,
5122 for now, convert from an access macro into a pair of functions:
5123 VINSN_INSN_RTX, returning an rtx_insn *, and...
5124 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5125 is used as an lvalue.
5126
5127 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5128 SET_VINSN_INSN_RTX where it's used as an lvalue.
5129 (VINSN_INSN_RTX): New function.
5130 (SET_VINSN_INSN_RTX): New function.
5131
5132 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5133
5134 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5135 eventually be rtx_insn *, but to help with transition, for now,
5136 convert from an access macro into a pair of functions: DEP_PRO
5137 returning an rtx_insn * and...
5138 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5139 lvalue, returning an rtx&.
5140 (DEP_CON): Analogous changes to DEP_PRO above.
5141 (SET_DEP_CON): Likewise.
5142
5143 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5144 an lvalue to SET_DEP_CON.
5145 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5146 (sd_copy_back_deps): Likewise for DEP_CON.
5147 (DEP_PRO): New function, adding a checked cast for now.
5148 (DEP_CON): Likewise.
5149 (SET_DEP_PRO): New function.
5150 (SET_DEP_CON): Likewise.
5151
5152 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5153
5154 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5155 (extra_options): Add i386/cygwin.opt.
5156 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5157 (CPP_SPEC): Accept -pthread.
5158 (LINK_SPEC): Ditto.
5159 (GOMP_SELF_SPECS): Update comment.
5160 * config/i386/cygwin.opt: New file for -pthread flag.
5161
5162 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5163
5164 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5165 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5166 that we can return an rtx_insn *.
5167
5168 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5169
5170 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5171 when building executables, not DLLs. Add --large-address-aware
5172 under the same conditions.
5173 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5174 when building executables, not DLLs. Add --large-address-aware
5175 under the same conditions when using -m32.
5176
5177 * config/i386/cygwin-stdint.h: Throughout, make type
5178 definitions dependent on target architecture, not host.
5179
5180 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5181
5182 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5183 the return type from rtx to rtx_insn *, which will enable various
5184 conversions in followup patches. For now this is is done by a
5185 checked cast.
5186 (NEXT_INSN): Likewise.
5187 (SET_PREV_INSN): Convert to an inline function. This is intended
5188 for use as an lvalue, and so returns an rtx& to allow in-place
5189 modification.
5190 (SET_NEXT_INSN): Likewise.
5191
5192 2014-07-08 Mark Wielaard <mjw@redhat.com>
5193
5194 PR debug/59051
5195 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5196
5197 2014-08-19 Marek Polacek <polacek@redhat.com>
5198
5199 PR c/61271
5200 * cgraphunit.c (handle_alias_pairs): Fix condition.
5201
5202 2014-08-19 Richard Biener <rguenther@suse.de>
5203
5204 * gimple-fold.c (fold_gimple_assign): Properly build a
5205 null-pointer constant when devirtualizing addresses.
5206
5207 2014-07-07 Mark Wielaard <mjw@redhat.com>
5208
5209 * dwarf2out.c (decl_quals): New function.
5210 (modified_type_die): Take one cv_quals argument instead of two,
5211 one for const and one for volatile.
5212 (add_type_attribute): Likewise.
5213 (generic_parameter_die): Call add_type_attribute with one modifier
5214 argument.
5215 (base_type_for_mode): Likewise.
5216 (add_bounds_info): Likewise.
5217 (add_subscript_info): Likewise.
5218 (gen_array_type_die): Likewise.
5219 (gen_descr_array_type_die): Likewise.
5220 (gen_entry_point_die): Likewise.
5221 (gen_enumeration_type_die): Likewise.
5222 (gen_formal_parameter_die): Likewise.
5223 (gen_subprogram_die): Likewise.
5224 (gen_variable_die): Likewise.
5225 (gen_const_die): Likewise.
5226 (gen_field_die): Likewise.
5227 (gen_pointer_type_die): Likewise.
5228 (gen_reference_type_die): Likewise.
5229 (gen_ptr_to_mbr_type_die): Likewise.
5230 (gen_inheritance_die): Likewise.
5231 (gen_subroutine_type_die): Likewise.
5232 (gen_typedef_die): Likewise.
5233 (force_type_die): Likewise.
5234
5235 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5236
5237 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5238 if unset.
5239 * configure: Regenerate.
5240
5241 2014-08-19 Richard Biener <rguenther@suse.de>
5242
5243 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5244 DECL_EXTERNALs in BLOCKs as non-references.
5245 * tree-streamer-out.c (streamer_write_chain): Likewise.
5246
5247 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5248 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5249 Anna Tikhonova <anna.tikhonova@intel.com>
5250 Ilya Tocar <ilya.tocar@intel.com>
5251 Andrey Turetskiy <andrey.turetskiy@intel.com>
5252 Ilya Verbin <ilya.verbin@intel.com>
5253 Kirill Yukhin <kirill.yukhin@intel.com>
5254 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5255
5256 * config/i386/sse.md
5257 (define_mode_iterator VI48_AVX512F): Delete.
5258 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5259 (define_mode_iterator VI2_AVX512VL): Ditto.
5260 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5261 Delete.
5262 (define_insn
5263 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5264 New.
5265 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5266 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5267 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5268 with VI48_AVX512F_AVX512VL): New.
5269 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5270 with VI2_AVX512VL): Ditto.
5271
5272 2014-08-19 Marek Polacek <polacek@redhat.com>
5273
5274 * doc/invoke.texi: Document -Wc99-c11-compat.
5275
5276 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5277
5278 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5279 for rvalues, and...
5280 (SET_PREV_INSN): New macro, for use as an lvalue.
5281 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5282
5283 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5284 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5285 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5286 (fixup_abnormal_edges): Likewise.
5287 (unlink_insn_chain): Likewise.
5288 (fixup_reorder_chain): Likewise.
5289 (cfg_layout_delete_block): Likewise.
5290 (cfg_layout_merge_blocks): Likewise.
5291 * combine.c (update_cfg_for_uncondjump): Likewise.
5292 * emit-rtl.c (link_insn_into_chain): Likewise.
5293 (remove_insn): Likewise.
5294 (delete_insns_since): Likewise.
5295 (reorder_insns_nobb): Likewise.
5296 (emit_insn_after_1): Likewise.
5297 * final.c (rest_of_clean_state): Likewise.
5298 (final_scan_insn): Likewise.
5299 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5300 * haifa-sched.c (concat_note_lists): Likewise.
5301 (remove_notes): Likewise.
5302 (restore_other_notes): Likewise.
5303 (move_insn): Likewise.
5304 (unlink_bb_notes): Likewise.
5305 (restore_bb_notes): Likewise.
5306 * jump.c (delete_for_peephole): Likewise.
5307 * optabs.c (emit_libcall_block_1): Likewise.
5308 * reorg.c (emit_delay_sequence): Likewise.
5309 (fill_simple_delay_slots): Likewise.
5310 * sel-sched-ir.c (sel_move_insn): Likewise.
5311 (sel_remove_insn): Likewise.
5312 (get_bb_note_from_pool): Likewise.
5313 * sel-sched.c (move_nop_to_previous_block): Likewise.
5314
5315 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5316 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5317 (c6x_gen_bundles): Likewise.
5318 (hwloop_optimize): Likewise.
5319 * config/frv/frv.c (frv_function_prologue): Likewise.
5320 (frv_register_nop): Likewise.
5321 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5322 (ia64_reorg): Likewise.
5323 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5324 (mep_make_bundle): Likewise.
5325 (mep_bundle_insns): Likewise.
5326 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5327 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5328 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5329
5330 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5331
5332 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5333 return type from rtx to rtx_insn *.
5334 (BB_END): Likewise.
5335 (BB_HEADER): Likewise.
5336 (BB_FOOTER): Likewise.
5337 (SET_BB_HEAD): Convert to a function.
5338 (SET_BB_END): Likewise.
5339 (SET_BB_HEADER): Likewise.
5340 (SET_BB_FOOTER): Likewise.
5341
5342 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5343 Strengthen the return type from rtx to rtx_insn *. For now, this
5344 is done by adding a checked cast, but this will eventually
5345 become a field lookup.
5346 (BB_END): Likewise.
5347 (BB_HEADER): Likewise.
5348 (BB_FOOTER): Likewise.
5349 (SET_BB_HEAD): New function, from macro of same name. This is
5350 intended for use as an lvalue, and so returns an rtx& to allow
5351 in-place modification.
5352 (SET_BB_END): Likewise.
5353 (SET_BB_HEADER): Likewise.
5354 (SET_BB_FOOTER): Likewise.
5355
5356 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5357
5358 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5359 for rvalues, and...
5360 (SET_BB_HEAD): New macro, for use as a lvalue.
5361 (BB_END, SET_BB_END): Likewise.
5362 (BB_HEADER, SET_BB_HEADER): Likewise.
5363 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5364
5365 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5366 of BB_* macros into SET_BB_* macros.
5367 (fix_crossing_unconditional_branches): Likewise.
5368 * caller-save.c (save_call_clobbered_regs): Likewise.
5369 (insert_one_insn): Likewise.
5370 * cfgbuild.c (find_bb_boundaries): Likewise.
5371 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5372 (outgoing_edges_match): Likewise.
5373 (try_optimize_cfg): Likewise.
5374 * cfgexpand.c (expand_gimple_cond): Likewise.
5375 (expand_gimple_tailcall): Likewise.
5376 (expand_gimple_basic_block): Likewise.
5377 (construct_exit_block): Likewise.
5378 * cfgrtl.c (delete_insn): Likewise.
5379 (create_basic_block_structure): Likewise.
5380 (rtl_delete_block): Likewise.
5381 (rtl_split_block): Likewise.
5382 (emit_nop_for_unique_locus_between): Likewise.
5383 (rtl_merge_blocks): Likewise.
5384 (block_label): Likewise.
5385 (try_redirect_by_replacing_jump): Likewise.
5386 (emit_barrier_after_bb): Likewise.
5387 (fixup_abnormal_edges): Likewise.
5388 (record_effective_endpoints): Likewise.
5389 (relink_block_chain): Likewise.
5390 (fixup_reorder_chain): Likewise.
5391 (fixup_fallthru_exit_predecessor): Likewise.
5392 (cfg_layout_duplicate_bb): Likewise.
5393 (cfg_layout_split_block): Likewise.
5394 (cfg_layout_delete_block): Likewise.
5395 (cfg_layout_merge_blocks): Likewise.
5396 * combine.c (update_cfg_for_uncondjump): Likewise.
5397 * emit-rtl.c (add_insn_after): Likewise.
5398 (remove_insn): Likewise.
5399 (reorder_insns): Likewise.
5400 (emit_insn_after_1): Likewise.
5401 * haifa-sched.c (get_ebb_head_tail): Likewise.
5402 (restore_other_notes): Likewise.
5403 (move_insn): Likewise.
5404 (sched_extend_bb): Likewise.
5405 (fix_jump_move): Likewise.
5406 * ifcvt.c (noce_process_if_block): Likewise.
5407 (dead_or_predicable): Likewise.
5408 * ira.c (update_equiv_regs): Likewise.
5409 * reg-stack.c (change_stack): Likewise.
5410 * sel-sched-ir.c (sel_move_insn): Likewise.
5411 * sel-sched.c (move_nop_to_previous_block): Likewise.
5412
5413 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5414 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5415
5416 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5417
5418 * rtl.h (for_each_rtx_in_insn): New function.
5419 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5420
5421 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5422
5423 * coretypes.h (class rtx_insn): Add forward declaration.
5424
5425 * rtl.h: Include is-a.h.
5426 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5427 workaround to ensure gengtype knows inheritance is occurring,
5428 whilst continuing to use the pre-existing special-casing for
5429 rtx_def.
5430 (class rtx_insn): New subclass of rtx_def, adding the
5431 invariant that we're dealing with something we can sanely use
5432 INSN_UID, NEXT_INSN, PREV_INSN on.
5433 (is_a_helper <rtx_insn *>::test): New.
5434 (is_a_helper <const rtx_insn *>::test): New.
5435
5436 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5437
5438 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5439
5440 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5441
5442 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5443 comdats as extern.
5444
5445 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5446
5447 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5448 to BUILT_IN_UNREACHABLE.
5449
5450 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5451
5452 PR target/62011
5453 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5454 New tune flag.
5455 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5456 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5457 (ffs<mode>2): Do not expand with tzcnt for
5458 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5459 (ffssi2_no_cmove): Ditto.
5460 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5461 (ctz<mode>2): New expander.
5462 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5463 (*ctz<mode>2_falsedep): New insn.
5464 (*ctz<mode>2): Rename from ctz<mode>2.
5465 (clz<mode>2_lzcnt): New expander.
5466 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5467 (*clz<mode>2_lzcnt_falsedep): New insn.
5468 (*clz<mode>2): Rename from ctz<mode>2.
5469 (popcount<mode>2): New expander.
5470 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5471 (*popcount<mode>2_falsedep): New insn.
5472 (*popcount<mode>2): Rename from ctz<mode>2.
5473 (*popcount<mode>2_cmp): Remove.
5474 (*popcountsi2_cmp_zext): Ditto.
5475
5476 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5477
5478 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5479 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5480 * config/microblaze/microblaze.h
5481 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5482
5483 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5484
5485 PR other/62168
5486 * configure.ac: Set install_gold_as_default to no for
5487 --enable-gold=no.
5488 * configure: Regenerated.
5489
5490 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5491
5492 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5493 * config.in: Add undef of HAVE_isl.
5494 * configure: Regenerate.
5495 * configure.ac: Add definition of HAVE_isl.
5496 * graphite-blocking.c: Add checking of HAVE_isl.
5497 * graphite-dependences.c: Likewise.
5498 * graphite-interchange.c: Likewise.
5499 * graphite-isl-ast-to-gimple.c: Likewise.
5500 * graphite-optimize-isl.c: Likewise.
5501 * graphite-poly.c: Likewise.
5502 * graphite-scop-detection.c: Likewise.
5503 * graphite-sese-to-poly.c: Likewise.
5504 * graphite.c: Likewise.
5505 * toplev.c: Replace the checking of HAVE_cloog with the checking
5506 of HAVE_isl.
5507
5508 2014-08-18 Richard Biener <rguenther@suse.de>
5509
5510 PR tree-optimization/62090
5511 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5512 (fold_builtin_3): Do not fold snprintf.
5513 (fold_builtin_4): Likewise.
5514 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5515 moved from builtins.c.
5516 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5517 (gimple_fold_builtin): Do not fold sprintf here.
5518
5519 2014-08-18 Richard Biener <rguenther@suse.de>
5520
5521 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5522 code to ...
5523 (maybe_canonicalize_mem_ref_addr): ... this function.
5524 (fold_stmt_1): Apply it here before all simplification.
5525
5526 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5527
5528 PR ipa/61800
5529 * cgraph.h (cgraph_node::create_indirect_edge): Add
5530 compute_indirect_info param.
5531 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5532 indirect_info only when it is required.
5533 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5534 indirect_info fore cloned indirect edge.
5535
5536 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5538 Anna Tikhonova <anna.tikhonova@intel.com>
5539 Ilya Tocar <ilya.tocar@intel.com>
5540 Andrey Turetskiy <andrey.turetskiy@intel.com>
5541 Ilya Verbin <ilya.verbin@intel.com>
5542 Kirill Yukhin <kirill.yukhin@intel.com>
5543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5544
5545 * config/i386/sse.md
5546 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5547 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5548
5549 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5551 Anna Tikhonova <anna.tikhonova@intel.com>
5552 Ilya Tocar <ilya.tocar@intel.com>
5553 Andrey Turetskiy <andrey.turetskiy@intel.com>
5554 Ilya Verbin <ilya.verbin@intel.com>
5555 Kirill Yukhin <kirill.yukhin@intel.com>
5556 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5557
5558 * config/i386/sse.md
5559 (define_mode_iterator VF1_AVX512VL): New.
5560 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5561 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5562 New.
5563
5564 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5565 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5566 Anna Tikhonova <anna.tikhonova@intel.com>
5567 Ilya Tocar <ilya.tocar@intel.com>
5568 Andrey Turetskiy <andrey.turetskiy@intel.com>
5569 Ilya Verbin <ilya.verbin@intel.com>
5570 Kirill Yukhin <kirill.yukhin@intel.com>
5571 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5572
5573 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5574 * config/i386/i386.md
5575 (define_code_iterator any_float): New.
5576 (define_code_attr floatsuffix): New.
5577 * config/i386/sse.md
5578 (define_mode_iterator VF1_128_256VL): New.
5579 (define_mode_iterator VF2_512_256VL): New.
5580 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5581 TARGET check.
5582 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5583 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5584 New.
5585 (define_mode_attr qq2pssuff): New.
5586 (define_mode_attr sselongvecmode): New.
5587 (define_mode_attr sselongvecmodelower): New.
5588 (define_mode_attr sseintvecmode3): New.
5589 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5590 New.
5591 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5592 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5593 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5594 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5595
5596 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5597 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5598 Anna Tikhonova <anna.tikhonova@intel.com>
5599 Ilya Tocar <ilya.tocar@intel.com>
5600 Andrey Turetskiy <andrey.turetskiy@intel.com>
5601 Ilya Verbin <ilya.verbin@intel.com>
5602 Kirill Yukhin <kirill.yukhin@intel.com>
5603 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5604
5605 * config/i386/sse.md
5606 (define_mode_iterator VF2_AVX512VL): New.
5607 (define_mode_attr sseintvecmode2): New.
5608 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5609 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5610 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5611 (define_insn
5612 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5613 Ditto.
5614 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5615 Ditto.
5616 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5617 Ditto.
5618
5619 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5620 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5621 Anna Tikhonova <anna.tikhonova@intel.com>
5622 Ilya Tocar <ilya.tocar@intel.com>
5623 Andrey Turetskiy <andrey.turetskiy@intel.com>
5624 Ilya Verbin <ilya.verbin@intel.com>
5625 Kirill Yukhin <kirill.yukhin@intel.com>
5626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5627
5628 * config/i386/i386.md
5629 (define_insn "*movoi_internal_avx"): Add evex version.
5630 (define_insn "*movti_internal"): Ditto.
5631
5632 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5633 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5634 Anna Tikhonova <anna.tikhonova@intel.com>
5635 Ilya Tocar <ilya.tocar@intel.com>
5636 Andrey Turetskiy <andrey.turetskiy@intel.com>
5637 Ilya Verbin <ilya.verbin@intel.com>
5638 Kirill Yukhin <kirill.yukhin@intel.com>
5639 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5640
5641 * config/i386/i386.md
5642 (define_attr "isa"): Add avx512dq, noavx512dq.
5643 (define_attr "enabled"): Ditto.
5644 * config/i386/sse.md
5645 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5646
5647 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5648 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5649 Anna Tikhonova <anna.tikhonova@intel.com>
5650 Ilya Tocar <ilya.tocar@intel.com>
5651 Andrey Turetskiy <andrey.turetskiy@intel.com>
5652 Ilya Verbin <ilya.verbin@intel.com>
5653 Kirill Yukhin <kirill.yukhin@intel.com>
5654 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5655
5656 * config/i386/i386.c
5657 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5658 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5659 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5660 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5661 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5662 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5663 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5664 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5665 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5666 * config/i386/sse.md
5667 (define_mode_iterator VMOVE): Allow V4TI mode.
5668 (define_mode_iterator V_AVX512VL): New.
5669 (define_mode_iterator V): New handling for AVX512VL.
5670 (define_insn "avx512f_load<mode>_mask"): Delete.
5671 (define_insn "<avx512>_load<mode>_mask"): New.
5672 (define_insn "avx512f_store<mode>_mask"): Delete.
5673 (define_insn "<avx512>_store<mode>_mask"): New.
5674
5675
5676 2014-08-18 Yury Gribov <y.gribov@samsung.com>
5677
5678 PR sanitizer/62089
5679 * asan.c (instrument_derefs): Fix bitfield check.
5680
5681 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5682
5683 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5684 * config/rs6000/htm.md (ttest): Remove clobber.
5685 * config/rs6000/predicates.md (any_mask_operand): New predicate.
5686 (and_operand): Reformat.
5687 (and_2rld_operand): New predicate.
5688 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5689 parameter.
5690 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5691 parameter. Handle AND directly.
5692 (rs6000_split_logical_di): Remove last parameter.
5693 (rs6000_split_logical): Remove last parameter. Remove obsolete
5694 comment.
5695 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5696 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5697 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
5698 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5699 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5700 and 5 anonymous splitters): Delete.
5701 (and<mode>3): New expander.
5702 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5703 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5704 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5705 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5706 (floatdisf2_internal1): Remove clobbers.
5707 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5708 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5709 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5710 (and<mode>3 for BOOL_128): Remove clobber.
5711 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
5712 rs6000_split_logical.
5713 (*bool<mode>3_internal for BOOL_128): Adjust call of
5714 rs6000_split_logical.
5715 (*boolc<mode>3_internal1 for BOOL_128,
5716 *boolc<mode>3_internal2 for BOOL_128,
5717 *boolcc<mode>3_internal1 for BOOL_128,
5718 *boolcc<mode>3_internal2 for BOOL_128,
5719 *eqv<mode>3_internal1 for BOOL_128,
5720 *eqv<mode>3_internal2 for BOOL_128,
5721 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5722 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5723 clobber.
5724 (*vec_reload_and_reg_<mptrsize>): Delete.
5725
5726 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5727
5728 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5729 and split, *boolccsi3_internal3 and split): Delete.
5730 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5731 *boolccdi3_internal3 and split): Delete.
5732 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5733 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
5734
5735 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5736
5737 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5738 and split, *boolcsi3_internal3 and split): Delete.
5739 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5740 *boolcdi3_internal3 and split): Delete.
5741 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5742
5743 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5744
5745 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5746 <'u'>: Also support printing the low-order 16 bits.
5747 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5748 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5749 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5750 *booldi3_internal3 and split): Delete.
5751 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5752 *bool<mode>3_dot2): New.
5753 (two anonymous define_splits for non_logical_cint_operand): Merge.
5754
5755 2014-08-17 Marek Polacek <polacek@redhat.com>
5756 Manuel López-Ibáñez <manu@gcc.gnu.org>
5757
5758 PR c/62059
5759 * diagnostic.c (adjust_line): Add gcc_checking_assert.
5760 (diagnostic_show_locus): Don't print caret diagnostic
5761 if a column is larger than the line_width.
5762
5763 2014-08-17 Roman Gareev <gareevroman@gmail.com>
5764
5765 * common.opt: Make the ISL AST generator to be the main code generator
5766 of Graphite.
5767
5768 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
5769
5770 * wide-int.h (generic_wide_int): Declare as class instead of struct.
5771
5772 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
5773
5774 PR target/61641
5775 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
5776 Declare.
5777 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
5778 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
5779 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
5780 Define.
5781 * config/pa/pa.md (begin_brtab): Delete insn.
5782 (end_brtab): Likewise.
5783
5784 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5785
5786 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
5787
5788 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
5789
5790 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
5791 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
5792 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
5793 (get_dynamic_type): Remove.
5794 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
5795 (clear_speculation): Bring to ipa-deivrt.h
5796 (get_class_context): Rename to ...
5797 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
5798 (contains_type_p): Update.
5799 (get_dynamic_type): Rename to ...
5800 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
5801 (possible_polymorphic_call_targets): UPdate.
5802 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
5803 * ipa-prop.c (ipa_analyze_call_uses): Update.
5804
5805 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
5806
5807 * doc/invoke.texi (SH options): Document missing processor variant
5808 options. Remove references to Hitachi. Undocument deprecated mspace
5809 option.
5810
5811 2014-08-15 Jason Merrill <jason@redhat.com>
5812
5813 * tree.c (type_hash_canon): Uncomment assert.
5814
5815 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5816
5817 * input.h (in_system_header_at): Add comment.
5818
5819 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5820
5821 PR fortran/44054
5822 * diagnostic.c (build_message_string): Make it extern.
5823 * diagnostic.h (build_message_string): Make it extern.
5824
5825 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
5826
5827 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
5828 load/store from/to non-floating class pseudo.
5829
5830 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5831
5832 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
5833
5834 2014-08-15 Richard Biener <rguenther@suse.de>
5835
5836 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
5837 (get_constraint_for_ssa_var): Remove dead code.
5838 (get_constraint_for_1): Adjust.
5839 (find_what_var_points_to): Likewise.
5840 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
5841
5842 2014-08-15 Ilya Tocar <tocarip@gmail.com>
5843
5844 PR target/61878
5845 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
5846 (_mm512_mask_cmpge_epu32_mask): Ditto.
5847 (_mm512_cmpge_epu32_mask): Ditto.
5848 (_mm512_mask_cmpge_epi64_mask): Ditto.
5849 (_mm512_cmpge_epi64_mask): Ditto.
5850 (_mm512_mask_cmpge_epu64_mask): Ditto.
5851 (_mm512_cmpge_epu64_mask): Ditto.
5852 (_mm512_mask_cmple_epi32_mask): Ditto.
5853 (_mm512_cmple_epi32_mask): Ditto.
5854 (_mm512_mask_cmple_epu32_mask): Ditto.
5855 (_mm512_cmple_epu32_mask): Ditto.
5856 (_mm512_mask_cmple_epi64_mask): Ditto.
5857 (_mm512_cmple_epi64_mask): Ditto.
5858 (_mm512_mask_cmple_epu64_mask): Ditto.
5859 (_mm512_cmple_epu64_mask): Ditto.
5860 (_mm512_mask_cmplt_epi32_mask): Ditto.
5861 (_mm512_cmplt_epi32_mask): Ditto.
5862 (_mm512_mask_cmplt_epu32_mask): Ditto.
5863 (_mm512_cmplt_epu32_mask): Ditto.
5864 (_mm512_mask_cmplt_epi64_mask): Ditto.
5865 (_mm512_cmplt_epi64_mask): Ditto.
5866 (_mm512_mask_cmplt_epu64_mask): Ditto.
5867 (_mm512_cmplt_epu64_mask): Ditto.
5868 (_mm512_mask_cmpneq_epi32_mask): Ditto.
5869 (_mm512_mask_cmpneq_epu32_mask): Ditto.
5870 (_mm512_cmpneq_epu32_mask): Ditto.
5871 (_mm512_mask_cmpneq_epi64_mask): Ditto.
5872 (_mm512_cmpneq_epi64_mask): Ditto.
5873 (_mm512_mask_cmpneq_epu64_mask): Ditto.
5874 (_mm512_cmpneq_epu64_mask): Ditto.
5875 (_mm512_castpd_ps): Ditto.
5876 (_mm512_castpd_si512): Ditto.
5877 (_mm512_castps_pd): Ditto.
5878 (_mm512_castps_si512): Ditto.
5879 (_mm512_castsi512_ps): Ditto.
5880 (_mm512_castsi512_pd): Ditto.
5881 (_mm512_castpd512_pd128): Ditto.
5882 (_mm512_castps512_ps128): Ditto.
5883 (_mm512_castsi512_si128): Ditto.
5884 (_mm512_castpd512_pd256): Ditto.
5885 (_mm512_castps512_ps256): Ditto.
5886 (_mm512_castsi512_si256): Ditto.
5887 (_mm512_castpd128_pd512): Ditto.
5888 (_mm512_castps128_ps512): Ditto.
5889 (_mm512_castsi128_si512): Ditto.
5890 (_mm512_castpd256_pd512): Ditto.
5891 (_mm512_castps256_ps512): Ditto.
5892 (_mm512_castsi256_si512): Ditto.
5893 (_mm512_cmpeq_epu32_mask): Ditto.
5894 (_mm512_mask_cmpeq_epu32_mask): Ditto.
5895 (_mm512_mask_cmpeq_epu64_mask): Ditto.
5896 (_mm512_cmpeq_epu64_mask): Ditto.
5897 (_mm512_cmpgt_epu32_mask): Ditto.
5898 (_mm512_mask_cmpgt_epu32_mask): Ditto.
5899 (_mm512_mask_cmpgt_epu64_mask): Ditto.
5900 (_mm512_cmpgt_epu64_mask): Ditto.
5901 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
5902 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
5903 * config/i386/i386.c (enum ix86_builtins): Add
5904 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
5905 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
5906 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
5907 (bdesc_args): Add __builtin_ia32_si512_256si,
5908 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
5909 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
5910 __builtin_ia32_pd512_pd.
5911 (ix86_expand_args_builtin): Handle new FTYPEs.
5912 * config/i386/sse.md (castmode): Add 512-bit modes.
5913 (AVX512MODE2P): New.
5914 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
5915 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
5916
5917 2014-08-15 Richard Biener <rguenther@suse.de>
5918
5919 * fold-const.c (tree_swap_operands_p): Put all constants
5920 last, also strip sign-changing NOPs when considering further
5921 canonicalization. Canonicalize also when optimizing for size.
5922
5923 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5924
5925 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
5926 one_match > zero_match case to just before simple_sequence.
5927
5928 2014-08-15 Richard Biener <rguenther@suse.de>
5929
5930 * data-streamer.h (streamer_string_index, string_for_index):
5931 Remove.
5932 * data-streamer-out.c (streamer_string_index): Make static.
5933 * data-streamer-in.c (string_for_index): Likewise.
5934 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
5935 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
5936
5937 2014-08-15 Richard Biener <rguenther@suse.de>
5938
5939 PR tree-optimization/62031
5940 * tree-data-ref.c (dr_analyze_indices): Do not set
5941 DR_UNCONSTRAINED_BASE.
5942 (dr_may_alias_p): All indirect accesses have to go the
5943 formerly DR_UNCONSTRAINED_BASE path.
5944 * tree-data-ref.h (struct indices): Remove
5945 unconstrained_base member.
5946 (DR_UNCONSTRAINED_BASE): Remove.
5947
5948 2014-08-15 Jakub Jelinek <jakub@redhat.com>
5949
5950 PR middle-end/62092
5951 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
5952 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
5953 in OMP_CLAUSE_MAP in some outer target region.
5954
5955 2014-08-15 Bin Cheng <bin.cheng@arm.com>
5956
5957 * tree-ssa-loop-ivopts.c (ivopts_data): New field
5958 name_expansion_cache.
5959 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
5960 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
5961 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
5962 (difference_cannot_overflow_p): New parameter. Use affine
5963 expansion for equality check.
5964 (iv_elimination_compare_lt): Pass new argument.
5965
5966 2014-08-14 DJ Delorie <dj@redhat.com>
5967
5968 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
5969 variables to the accumulator.
5970
5971 * config/rl78/predicates.md (rl78_near_mem_operand): New.
5972 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
5973 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
5974 with far-far moves.
5975
5976 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
5977 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
5978 (umulqihi3_virt): Likewise.
5979 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
5980 (umulqihi3_real): Likewise.
5981
5982 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
5983
5984 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5985
5986 PR tree-optimization/62091
5987 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
5988 function_entry_reached.
5989 (walk_aliased_vdefs): Clear it here.
5990 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
5991
5992 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5993
5994 * ipa-utils.h (compare_virtual_tables): Declare.
5995 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
5996
5997 2014-08-14 Marek Polacek <polacek@redhat.com>
5998
5999 DR 458
6000 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6001 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6002
6003 2014-08-14 Tom de Vries <tom@codesourcery.com>
6004
6005 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6006
6007 2014-08-14 Tom de Vries <tom@codesourcery.com>
6008
6009 PR rtl-optimization/62004
6010 PR rtl-optimization/62030
6011 * ifcvt.c (rtx_interchangeable_p): New function.
6012 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6013 * emit-rtl.h (mem_attrs_eq_p): Declare.
6014
6015 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6016
6017 * graphite-scop-detection.c:
6018 Add inclusion of cp-tree.h.
6019 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6020 in case they are pointers to object types
6021
6022 2014-08-14 Richard Biener <rguenther@suse.de>
6023
6024 * BASE-VER: Change to 5.0.0
6025
6026 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6027 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6028 Anna Tikhonova <anna.tikhonova@intel.com>
6029 Ilya Tocar <ilya.tocar@intel.com>
6030 Andrey Turetskiy <andrey.turetskiy@intel.com>
6031 Ilya Verbin <ilya.verbin@intel.com>
6032 Kirill Yukhin <kirill.yukhin@intel.com>
6033 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6034
6035 * config/i386/sse.md (define_mode_attr avx512): New.
6036 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6037 V4DI modes.
6038 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6039 (define_mode_attr ssse3_avx2): Ditto.
6040 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6041 (define_mode_attr avx2_avx512bw): New.
6042 (define_mode_attr ssedoublemodelower): New.
6043 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6044 V32HI, V64QI modes.
6045 (define_mode_attr ssebytemode): Allow V8DI modes.
6046 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6047 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6048 (define_mode_attr ssePSmode2): New.
6049 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6050 V16HI, V32HI modes.
6051 (define_mode_attr dbpsadbwmode): New.
6052 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6053 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6054 (vi8_sse4_1_avx2_avx512): New.
6055 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6056 mode attribute.
6057 (define_mode_attr blendbits): Move before its immediate use.
6058
6059 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6060 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6061 Anna Tikhonova <anna.tikhonova@intel.com>
6062 Ilya Tocar <ilya.tocar@intel.com>
6063 Andrey Turetskiy <andrey.turetskiy@intel.com>
6064 Ilya Verbin <ilya.verbin@intel.com>
6065 Kirill Yukhin <kirill.yukhin@intel.com>
6066 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6067
6068 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6069 * config/i386/subst.md
6070 (define_mode_iterator SUBST_V): Update.
6071 (define_mode_iterator SUBST_A): Ditto.
6072 (define_subst_attr "mask_operand7"): New.
6073 (define_subst_attr "mask_operand10"): New.
6074 (define_subst_attr "mask_operand_arg34") : New.
6075 (define_subst_attr "mask_expand_op3"): New.
6076 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6077 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6078 (define_subst_attr "mask_avx512vl_condition"): New.
6079 (define_subst_attr "round_mask_operand4"): Ditto.
6080 (define_subst_attr "round_mask_scalar_op3"): Delete.
6081 (define_subst_attr "round_mask_op4"): New.
6082 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6083 V16SImode.
6084 (define_subst_attr "round_modev8sf_condition"): New.
6085 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6086 <MODE>mode.
6087 (define_subst_attr "round_saeonly_mask_operand4"): New.
6088 (define_subst_attr "round_saeonly_mask_op4"): New.
6089 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6090 V8DImode, V16SImode.
6091 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6092 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6093 (define_subst_attr "mask_expand4_args"): New.
6094 (define_subst "mask_expand4"): New.
6095
6096 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6097 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6098 Anna Tikhonova <anna.tikhonova@intel.com>
6099 Ilya Tocar <ilya.tocar@intel.com>
6100 Andrey Turetskiy <andrey.turetskiy@intel.com>
6101 Ilya Verbin <ilya.verbin@intel.com>
6102 Kirill Yukhin <kirill.yukhin@intel.com>
6103 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6104
6105 * config/i386/i386.md
6106 (define_attr "isa"): Add avx512bw,noavx512bw.
6107 (define_attr "enabled"): Ditto.
6108 (define_split): Add 32/64-bit mask logic.
6109 (define_insn "*k<logic>qi"): New.
6110 (define_insn "*k<logic>hi"): New.
6111 (define_insn "*anddi_1"): Add mask version.
6112 (define_insn "*andsi_1"): Ditto.
6113 (define_insn "*<code><mode>_1"): Ditto.
6114 (define_insn "*<code>hi_1"): Ditto.
6115 (define_insn "kxnor<mode>"): New.
6116 (define_insn "kunpcksi"): New.
6117 (define_insn "kunpckdi"): New.
6118 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6119 (define_insn "*one_cmplhi2_1"): Ditto.
6120
6121 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6122 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6123 Anna Tikhonova <anna.tikhonova@intel.com>
6124 Ilya Tocar <ilya.tocar@intel.com>
6125 Andrey Turetskiy <andrey.turetskiy@intel.com>
6126 Ilya Verbin <ilya.verbin@intel.com>
6127 Kirill Yukhin <kirill.yukhin@intel.com>
6128 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6129
6130 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6131 V32HImode.
6132
6133 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6134 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6135 Anna Tikhonova <anna.tikhonova@intel.com>
6136 Ilya Tocar <ilya.tocar@intel.com>
6137 Andrey Turetskiy <andrey.turetskiy@intel.com>
6138 Ilya Verbin <ilya.verbin@intel.com>
6139 Kirill Yukhin <kirill.yukhin@intel.com>
6140 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6141
6142 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6143 registers.
6144 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6145 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6146 xmm/ymm16+ when availble.
6147 * config/i386/i386.h
6148 (HARD_REGNO_NREGS): Add mask regs.
6149 (VALID_AVX512F_REG_MODE): Ditto.
6150 (VALID_AVX512F_REG_MODE) : Define.
6151 (VALID_MASK_AVX512BW_MODE): Ditto.
6152 (reg_class) (MASK_REG_P(X)): Define.
6153 * config/i386/i386.md: Do not split long moves with mask register,
6154 use kmovb if avx512bw is availible.
6155 (movdi_internal): Handle mask registers.
6156
6157 2014-08-14 Richard Biener <rguenther@suse.de>
6158
6159 PR tree-optimization/62081
6160 * tree-ssa-loop.c (pass_fix_loops): New pass.
6161 (pass_tree_loop::gate): Do not fixup loops here.
6162 * tree-pass.h (make_pass_fix_loops): Declare.
6163 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6164
6165 2014-08-14 Richard Biener <rguenther@suse.de>
6166
6167 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6168 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6169
6170 2014-08-14 Richard Biener <rguenther@suse.de>
6171
6172 PR tree-optimization/62090
6173 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6174 (fold_builtin_2): Do not fold sprintf.
6175 (fold_builtin_3): Likewise.
6176 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6177 moved from builtins.c.
6178 (gimple_fold_builtin): Fold sprintf.
6179
6180 2014-08-14 Richard Biener <rguenther@suse.de>
6181
6182 PR rtl-optimization/62079
6183 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6184 run cleanup_cfg.
6185
6186 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6187
6188 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6189 current_function_decl.
6190
6191 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6192
6193 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6194 cgraph_function_node to cgraph_node::function_symbol
6195 refactoring.
6196
6197 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6198
6199 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6200 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6201
6202 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6203
6204 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6205 warning.
6206
6207 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6208
6209 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6210 generator.
6211
6212 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6213
6214 PR target/62025
6215 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6216 any registers that are used in mem_insn.
6217
6218 2014-08-12 Steve Ellcey <sellcey@mips.com>
6219
6220 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6221
6222 2014-08-12 Steve Ellcey <sellcey@mips.com>
6223
6224 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6225 (MULTILIB_DIRNAMES): Ditto.
6226 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6227 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6228 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6229 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6230 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6231 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6232
6233 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6234
6235 PR target/61413
6236 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6237 of __ARM_SIZEOF_WCHAR_T.
6238
6239 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6240
6241 PR target/62098
6242 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6243 Remove unnecessary attributes.
6244
6245 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6246
6247 * internal-fn.c (init_internal_fns): Fix off-by-one.
6248
6249 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6250 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6251 Anna Tikhonova <anna.tikhonova@intel.com>
6252 Ilya Tocar <ilya.tocar@intel.com>
6253 Andrey Turetskiy <andrey.turetskiy@intel.com>
6254 Ilya Verbin <ilya.verbin@intel.com>
6255 Kirill Yukhin <kirill.yukhin@intel.com>
6256 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6257
6258 * config/i386/i386.c (standard_sse_constant_opcode): Use
6259 vpxord/vpternlog if avx512 is availible.
6260
6261 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6262
6263 PR middle-end/62103
6264 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6265 bitfields, that is when size doesn't match the size of type or the
6266 size of the constructor.
6267
6268 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6269
6270 * config/rs6000/constraints.md (wh constraint): New constraint,
6271 for FP registers if direct move is available.
6272 (wi constraint): New constraint, for VSX/FP registers that can
6273 handle 64-bit integers.
6274 (wj constraint): New constraint for VSX/FP registers that can
6275 handle 64-bit integers for direct moves.
6276 (wk constraint): New constraint for VSX/FP registers that can
6277 handle 64-bit doubles for direct moves.
6278 (wy constraint): Make documentation match implementation.
6279
6280 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6281 scalar_in_vmx_p field to simplify tests of whether SFmode or
6282 DFmode can go in the Altivec registers.
6283 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6284 (rs6000_setup_reg_addr_masks): Likewise.
6285 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6286 field, and wh/wi/wj/wk constraints.
6287 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6288 the wh/wi/wj/wk constraints.
6289 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6290 upper registers, prefer VSX registers unless the operation is a
6291 memory operation with REG+OFFSET addressing.
6292
6293 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6294 DImode. Change SFmode to use ww constraint instead of d to allow
6295 SF registers in the upper registers.
6296 (VSr2): Likewise.
6297 (VSr3): Likewise.
6298 (VSr5): Fix thinko in comment.
6299 (VSa): New mode attribute that is an alternative to wa, that
6300 returns the VSX register class that a mode can go in, but may not
6301 be the preferred register class.
6302 (VS_64dm): New mode attribute for appropriate register classes for
6303 referencing 64-bit elements of vectors for direct moves and normal
6304 moves.
6305 (VS_64reg): Likewise.
6306 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6307 register allocator to only registers the data type can handle.
6308 (vsx_le_perm_load_<mode>): Likewise.
6309 (vsx_le_perm_store_<mode>): Likewise.
6310 (vsx_xxpermdi2_le_<mode>): Likewise.
6311 (vsx_xxpermdi4_le_<mode>): Likewise.
6312 (vsx_lxvd2x2_le_<mode>): Likewise.
6313 (vsx_lxvd2x4_le_<mode>): Likewise.
6314 (vsx_stxvd2x2_le_<mode>): Likewise.
6315 (vsx_add<mode>3): Likewise.
6316 (vsx_sub<mode>3): Likewise.
6317 (vsx_mul<mode>3): Likewise.
6318 (vsx_div<mode>3): Likewise.
6319 (vsx_tdiv<mode>3_internal): Likewise.
6320 (vsx_fre<mode>2): Likewise.
6321 (vsx_neg<mode>2): Likewise.
6322 (vsx_abs<mode>2): Likewise.
6323 (vsx_nabs<mode>2): Likewise.
6324 (vsx_smax<mode>3): Likewise.
6325 (vsx_smin<mode>3): Likewise.
6326 (vsx_sqrt<mode>2): Likewise.
6327 (vsx_rsqrte<mode>2): Likewise.
6328 (vsx_tsqrt<mode>2_internal): Likewise.
6329 (vsx_fms<mode>4): Likewise.
6330 (vsx_nfma<mode>4): Likewise.
6331 (vsx_eq<mode>): Likewise.
6332 (vsx_gt<mode>): Likewise.
6333 (vsx_ge<mode>): Likewise.
6334 (vsx_eq<mode>_p): Likewise.
6335 (vsx_gt<mode>_p): Likewise.
6336 (vsx_ge<mode>_p): Likewise.
6337 (vsx_xxsel<mode>): Likewise.
6338 (vsx_xxsel<mode>_uns): Likewise.
6339 (vsx_copysign<mode>3): Likewise.
6340 (vsx_float<VSi><mode>2): Likewise.
6341 (vsx_floatuns<VSi><mode>2): Likewise.
6342 (vsx_fix_trunc<mode><VSi>2): Likewise.
6343 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6344 (vsx_x<VSv>r<VSs>i): Likewise.
6345 (vsx_x<VSv>r<VSs>ic): Likewise.
6346 (vsx_btrunc<mode>2): Likewise.
6347 (vsx_b2trunc<mode>2): Likewise.
6348 (vsx_floor<mode>2): Likewise.
6349 (vsx_ceil<mode>2): Likewise.
6350 (vsx_<VS_spdp_insn>): Likewise.
6351 (vsx_xscvspdp): Likewise.
6352 (vsx_xvcvspuxds): Likewise.
6353 (vsx_float_fix_<mode>2): Likewise.
6354 (vsx_set_<mode>): Likewise.
6355 (vsx_extract_<mode>_internal1): Likewise.
6356 (vsx_extract_<mode>_internal2): Likewise.
6357 (vsx_extract_<mode>_load): Likewise.
6358 (vsx_extract_<mode>_store): Likewise.
6359 (vsx_splat_<mode>): Likewise.
6360 (vsx_xxspltw_<mode>): Likewise.
6361 (vsx_xxspltw_<mode>_direct): Likewise.
6362 (vsx_xxmrghw_<mode>): Likewise.
6363 (vsx_xxmrglw_<mode>): Likewise.
6364 (vsx_xxsldwi_<mode>): Likewise.
6365 (vsx_xscvdpspn): Tighten constraints to only use register classes
6366 the types use.
6367 (vsx_xscvspdpn): Likewise.
6368 (vsx_xscvdpspn_scalar): Likewise.
6369
6370 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6371 wj, and wk constraints.
6372 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6373 general purpose registers.
6374
6375 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6376 direct moves.
6377 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6378 DImode instead of wm. Use wk constraint for direct move of DFmode
6379 instead of wm.
6380 (extendsidi2_lfiwax): Likewise.
6381 (lfiwax): Likewise.
6382 (lfiwzx): Likewise.
6383 (movdi_internal64): Likewise.
6384
6385 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6386 wk constraints. Make the wy constraint documentation match them
6387 implementation.
6388
6389 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6390
6391 Replacement of isl_int by isl_val
6392 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6393 (compute_bounds_for_param): use isl_val instead of isl_int
6394 (compute_bounds_for_loop): likewise
6395 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6396 (build_linearized_memory_access): use isl_val instead of isl_int
6397 (pdr_stride_in_loop): likewise
6398 * graphite-optimize-isl.c:
6399 (getPrevectorMap): use isl_val instead of isl_int
6400 * graphite-poly.c:
6401 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6402 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6403 (extern the_isl_ctx): declare
6404 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6405 (extract_affine_gmp): likewise
6406 (wrap): likewise
6407 (build_loop_iteration_domains): likewise
6408 (add_param_constraints): likewise
6409
6410 2014-08-11 Richard Biener <rguenther@suse.de>
6411
6412 PR tree-optimization/62075
6413 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6414 handle uses in patterns.
6415
6416 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6417 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6418 Anna Tikhonova <anna.tikhonova@intel.com>
6419 Ilya Tocar <ilya.tocar@intel.com>
6420 Andrey Turetskiy <andrey.turetskiy@intel.com>
6421 Ilya Verbin <ilya.verbin@intel.com>
6422 Kirill Yukhin <kirill.yukhin@intel.com>
6423 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6424
6425 * common/config/i386/i386-common.c
6426 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6427 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6428 (ix86_handle_option): Handle OPT_mavx512vl.
6429 * config/i386/cpuid.h (bit_AVX512VL): Define.
6430 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6431 set -mavx512vl accordingly.
6432 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6433 OPTION_MASK_ISA_AVX512VL.
6434 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6435 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6436 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6437 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6438 * config/i386/i386.h (TARGET_AVX512VL): Define.
6439 (TARGET_AVX512VL_P(x)): Ditto.
6440 * config/i386/i386.opt: Add mavx512vl.
6441
6442 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6443
6444 PR tree-optimization/62073
6445 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6446 a basic block.
6447
6448 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6449 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6450 Anna Tikhonova <anna.tikhonova@intel.com>
6451 Ilya Tocar <ilya.tocar@intel.com>
6452 Andrey Turetskiy <andrey.turetskiy@intel.com>
6453 Ilya Verbin <ilya.verbin@intel.com>
6454 Kirill Yukhin <kirill.yukhin@intel.com>
6455 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6456
6457 * common/config/i386/i386-common.c
6458 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6459 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6460 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6461 (ix86_handle_option): Handle OPT_mavx512bw.
6462 * config/i386/cpuid.h (bit_AVX512BW): Define.
6463 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6464 set -mavx512bw accordingly.
6465 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6466 OPTION_MASK_ISA_AVX512BW.
6467 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6468 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6469 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6470 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6471 * config/i386/i386.h (TARGET_AVX512BW): Define.
6472 (TARGET_AVX512BW_P(x)): Ditto.
6473 * config/i386/i386.opt: Add mavx512bw.
6474
6475 2014-08-11 Richard Biener <rguenther@suse.de>
6476
6477 PR tree-optimization/62070
6478 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6479 Remove SSA checking.
6480
6481 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6482
6483 * asan.c (asan_check_flags): New enum.
6484 (build_check_stmt_with_calls): Removed function.
6485 (build_check_stmt): Split inlining logic to
6486 asan_expand_check_ifn.
6487 (instrument_derefs): Rename parameter.
6488 (instrument_mem_region_access): Rename parameter.
6489 (instrument_strlen_call): Likewise.
6490 (asan_expand_check_ifn): New function.
6491 (asan_instrument): Remove old code.
6492 (pass_sanopt::execute): Change handling of
6493 asan-instrumentation-with-call-threshold.
6494 (asan_clear_shadow): Fix formatting.
6495 (asan_function_start): Likewise.
6496 (asan_emit_stack_protection): Likewise.
6497 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6498 Update description.
6499 * internal-fn.c (expand_ASAN_CHECK): New function.
6500 * internal-fn.def (ASAN_CHECK): New internal function.
6501 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6502 Update description.
6503 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6504 * tree.c: Small comment fix.
6505
6506 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6507
6508 * gimple.c (gimple_call_fnspec): Support internal functions.
6509 (gimple_call_return_flags): Use const.
6510 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6511 * internal-fn.def: Add fnspec information.
6512 * internal-fn.h (internal_fn_fnspec): New function.
6513 (init_internal_fns): Declare new function.
6514 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6515 (init_internal_fns): New function.
6516 * tree-core.h: Update macro call.
6517 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6518
6519 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6520
6521 * lto-streamer.h (struct output_block::symbol): Change from
6522 struct symtab_node to plain symtab_node.
6523 (referenced_from_this_partition_p): Change first parameter
6524 from struct symtab_node to plain symtab_node.
6525
6526 2014-08-10 Marek Polacek <polacek@redhat.com>
6527
6528 PR c/51849
6529 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6530
6531 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6532
6533 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6534 DECL correctly; do not give up on types in static storage.
6535
6536 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6537
6538 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6539
6540 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6541
6542 * graphite-isl-ast-to-gimple.c:
6543 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6544
6545 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6546
6547 2014-08-08 Guozhi Wei <carrot@google.com>
6548
6549 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6550
6551 2014-08-08 Cary Coutant <ccoutant@google.com>
6552
6553 * dwarf2out.c (get_skeleton_type_unit): Remove.
6554 (output_skeleton_debug_sections): Remove skeleton type units.
6555 (output_comdat_type_unit): Likewise.
6556 (dwarf2out_finish): Likewise.
6557
6558 2014-08-07 Yi Yang <ahyangyi@google.com>
6559
6560 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6561
6562 2014-08-08 Richard Biener <rguenther@suse.de>
6563
6564 * lto-streamer.h (struct lto_input_block): Make it a class
6565 with a constructor.
6566 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6567 (struct lto_function_header, struct lto_simple_header,
6568 struct lto_simple_header_with_strings,
6569 struct lto_decl_header, struct lto_function_header): Make
6570 a simple inheritance hieararchy. Remove unused fields.
6571 (struct lto_asm_header): Remove.
6572 * lto-streamer-out.c (produce_asm): Adjust.
6573 (lto_output_toplevel_asms): Likewise.
6574 (produce_asm_for_decls): Likewise.
6575 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6576 * data-streamer-in.c (string_for_index): Likewise.
6577 * ipa-inline-analysis.c (inline_read_section): Likewise.
6578 * ipa-prop.c (ipa_prop_read_section): Likewise.
6579 (read_replacements_section): Likewise.
6580 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6581 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6582 (lto_destroy_simple_input_block): Likewise.
6583 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6584 (lto_input_toplevel_asms): Likewise.
6585
6586 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6587 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6588 Anna Tikhonova <anna.tikhonova@intel.com>
6589 Ilya Tocar <ilya.tocar@intel.com>
6590 Andrey Turetskiy <andrey.turetskiy@intel.com>
6591 Ilya Verbin <ilya.verbin@intel.com>
6592 Kirill Yukhin <kirill.yukhin@intel.com>
6593 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6594
6595 * common/config/i386/i386-common.c
6596 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6597 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6598 (ix86_handle_option): Handle OPT_mavx512dq.
6599 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6600 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6601 set -mavx512dq accordingly.
6602 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6603 OPTION_MASK_ISA_AVX512DQ.
6604 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6605 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6606 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6607 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6608 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6609 (TARGET_AVX512DQ_P(x)): Ditto.
6610 * config/i386/i386.opt: Add mavx512dq.
6611
6612 2014-08-08 Richard Biener <rguenther@suse.de>
6613
6614 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6615 target_percent, target_percent_s): Export.
6616 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6617 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6618 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6619 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6620 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6621 Move to gimple-fold.c.
6622 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6623 strcat and strcpy.
6624 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6625 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6626 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6627 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6628 (rewrite_call_expr_array): Remove.
6629 (fold_builtin_sprintf_chk): Likewise.
6630 (fold_builtin_snprintf_chk): Likewise.
6631 (fold_builtin_varargs): Remove handling of sprintf_chk,
6632 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6633 (gimple_fold_builtin_sprintf_chk): Remove.
6634 (gimple_fold_builtin_snprintf_chk): Likewise.
6635 (gimple_fold_builtin_varargs): Likewise.
6636 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6637 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6638 * gimple.c (gimple_seq_add_seq_without_update): New function.
6639 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6640 * gimple-fold.c: Include output.h.
6641 (gsi_replace_with_seq_vops): New function, split out from ...
6642 (gimplify_and_update_call_from_tree): ... here.
6643 (replace_call_with_value): New function.
6644 (replace_call_with_call_and_fold): Likewise.
6645 (var_decl_component_p): Moved from builtins.c.
6646 (gimple_fold_builtin_memory_op): Moved from builtins.c
6647 fold_builtin_memory_op and rewritten to GIMPLE.
6648 (gimple_fold_builtin_memset): Likewise.
6649 (gimple_fold_builtin_strcpy): Likewise.
6650 (gimple_fold_builtin_strncpy): Likewise.
6651 (gimple_fold_builtin_strcat): Likewise.
6652 (gimple_fold_builtin_fputs): Likewise.
6653 (gimple_fold_builtin_memory_chk): Likewise.
6654 (gimple_fold_builtin_stxcpy_chk): Likewise.
6655 (gimple_fold_builtin_stxncpy_chk): Likewise.
6656 (gimple_fold_builtin_snprintf_chk): Likewise.
6657 (gimple_fold_builtin_sprintf_chk): Likewise.
6658 (gimple_fold_builtin_strlen): New function.
6659 (gimple_fold_builtin_with_strlen): New function split out from
6660 gimple_fold_builtin.
6661 (gimple_fold_builtin): Change signature and handle
6662 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6663 here. Call gimple_fold_builtin_with_strlen.
6664 (gimple_fold_call): Adjust.
6665
6666 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6667
6668 * calls.c (precompute_arguments): Check
6669 promoted_for_signed_and_unsigned_p and set the promoted mode.
6670 (promoted_for_signed_and_unsigned_p): New function.
6671 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6672 and set the promoted mode.
6673 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6674 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6675 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6676
6677
6678 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6679
6680 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6681 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6682 (expand_call): Likewise.
6683 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6684 to get promoted mode.
6685 * combine.c (record_promoted_value): Skip > 0 comparison with
6686 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6687 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6688 of SUBREG_PROMOTED_UNSIGNED_P.
6689 (convert_modes): Likewise.
6690 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6691 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6692 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6693 SUBREG_PROMOTED_UNSIGNED_SET.
6694 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6695 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6696 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6697 SUBREG_PROMOTED_SET.
6698 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6699 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6700 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6701 of SUBREG_PROMOTED_UNSIGNED_P.
6702 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6703 (SUBREG_PROMOTED_SET): New define.
6704 (SUBREG_PROMOTED_GET): Likewise.
6705 (SUBREG_PROMOTED_SIGN): Likewise.
6706 (SUBREG_PROMOTED_SIGNED_P): Likewise.
6707 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6708 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6709 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6710 instead of SUBREG_PROMOTED_UNSIGNED_GET.
6711 (nonzero_bits1): Skip > 0 comparison with the results as
6712 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6713 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6714 of !SUBREG_PROMOTED_UNSIGNED_P.
6715 * simplify-rtx.c (simplify_unary_operation_1): Use new
6716 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6717 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6718 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6719 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6720
6721 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
6722
6723 * ipa-devirt.c: Include gimple-pretty-print.h
6724 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6725 further tests.
6726 (decl_maybe_in_construction_p): Fix conditional on cdtor check
6727 (get_polymorphic_call_info): Fix return value
6728 (type_change_info): New sturcture based on ipa-prop
6729 variant.
6730 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6731 based on ipa-prop variant.
6732 (extr_type_from_vtbl_ptr_store): New function
6733 based on ipa-prop variant.
6734 (record_known_type): New function.
6735 (check_stmt_for_type_change): New function.
6736 (get_dynamic_type): New function.
6737 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6738 * tree-ssa-pre.c: ipa-utils.h
6739 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6740 machinery; sanity check with ipa-prop devirtualization.
6741 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6742 polymorphic flag.
6743
6744 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6745
6746 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6747 * alias.c, cfgexpand.c, cgraphbuild.c,
6748 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6749 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6750 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6751 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6752 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6753 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6754 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6755 dse.c, except.c, gengtype.c, gimple-expr.c,
6756 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6757 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6758 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6759 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6760 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6761 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6762 pointer-set.h.
6763 * pointer-set.c: Remove file.
6764 * pointer-set.h: Remove file.
6765
6766 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6767
6768 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6769 * config/arm/types.md (f_sels, f_seld): Delete.
6770
6771 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6772
6773 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
6774 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
6775 (aarch64_movdi_<mode>high): Likewise.
6776 (aarch64_mov<mode>high_di): Likewise.
6777 (aarch64_movdi_<mode>low): Likewise.
6778 (aarch64_mov<mode>low_di): Likewise.
6779 (aarch64_movtilow_tilow): Likewise.
6780 Add comment explaining usage of fp,simd attributes and of
6781 TARGET_FLOAT and TARGET_SIMD.
6782
6783 2014-08-07 Ian Bolton <ian.bolton@arm.com>
6784 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6785
6786 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
6787 Use MOVN when one of the half-words is 0xffff.
6788
6789 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6790
6791 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
6792
6793 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6794
6795 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
6796 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
6797 (rfs_str): String corresponding to RFS_* constants.
6798 (rank_for_schedule_stats_t): New typedef.
6799 (rank_for_schedule_stats): New static variable.
6800 (rfs_result): New static function.
6801 (rank_for_schedule): Track statistics for deciding heuristics.
6802 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
6803 static functions.
6804 (ready_sort): Use them for debug printouts.
6805 (schedule_block): Init statistics state. Print statistics on
6806 rank_for_schedule decisions.
6807
6808 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6809
6810 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
6811
6812 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
6813
6814 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
6815 constraint.
6816
6817 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6818
6819 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
6820 function to not conflict.
6821 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
6822 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
6823 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
6824 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
6825 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
6826 of pointer_map.
6827
6828 2014-08-07 Marek Polacek <polacek@redhat.com>
6829
6830 * fold-const.c (fold_binary_loc): Add folding of
6831 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
6832
6833 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
6834
6835 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
6836 instead of type size.
6837 (ASM_FINISH_DECLARE_OBJECT): Likewise.
6838
6839 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6840
6841 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
6842 (*thumb1_movqi_insn): Likewise.
6843 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
6844
6845 2014-08-07 Tom de Vries <tom@codesourcery.com>
6846
6847 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6848 (glibc_2_11_or_earlier): Remove effective-target keywords.
6849
6850 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6851
6852 * config/arm/arm.c (bdesc_2arg): Fix typo.
6853 (arm_atomic_assign_expand_fenv): Remove The default implementation.
6854
6855 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
6856
6857 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
6858
6859 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
6860
6861 PR debug/61923
6862 * haifa-sched.c (advance_one_cycle): Fix dump.
6863 (schedule_block): Don't advance cycle if we are already at the
6864 beginning of the cycle.
6865
6866 2014-08-06 Martin Jambor <mjambor@suse.cz>
6867
6868 PR ipa/61393
6869 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
6870
6871 2014-08-06 Richard Biener <rguenther@suse.de>
6872
6873 PR lto/62034
6874 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
6875 SCCs here.
6876 (lto_input_tree): Pop SCCs here.
6877
6878 2014-08-06 Richard Biener <rguenther@suse.de>
6879
6880 PR tree-optimization/61320
6881 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
6882 handle misaligned loads.
6883
6884 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
6885
6886 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
6887 (aarch64_expand_vec_perm_const): Check for dup before zip.
6888
6889 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6890
6891 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
6892 CONST_INT_P instead of GET_CODE and compare.
6893 (aarch64_select_cc_mode): Likewise.
6894 (aarch64_print_operand): Likewise.
6895 (aarch64_rtx_costs): Likewise.
6896 (aarch64_simd_valid_immediate): Likewise.
6897 (aarch64_simd_check_vect_par_cnst_half): Likewise.
6898 (aarch64_simd_emit_pair_result_insn): Likewise.
6899
6900 2014-08-05 David Malcolm <dmalcolm@redhat.com>
6901
6902 * gdbhooks.py (find_gcc_source_dir): New helper function.
6903 (class PassNames): New class, locating and parsing passes.def.
6904 (class BreakOnPass): New command "break-on-pass".
6905
6906 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
6907
6908 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
6909 getting olde.
6910
6911 2014-08-05 Richard Biener <rguenther@suse.de>
6912
6913 PR rtl-optimization/61672
6914 * emit-rtl.h (mem_attrs_eq_p): Declare.
6915 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
6916 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
6917 * cfgcleanup.c (merge_memattrs): Likewise.
6918 Include emit-rtl.h.
6919
6920 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6921
6922 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
6923 rather than singleton vectors.
6924 (vqdmlsls_lane_s32): Likewise.
6925
6926 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6927
6928 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
6929 Use VSDQ_HSI mode iterator.
6930 (aarch64_sqrdmulh_laneq<mode>): Likewise.
6931 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
6932 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
6933 Use BUILTIN_VDQHS macro.
6934 (sqrdmulh_laneq): Likewise.
6935 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
6936 (vqdmlals_laneq_s32): Likewise.
6937 (vqdmlslh_laneq_s16): Likewise.
6938 (vqdmlsls_laneq_s32): Likewise.
6939 (vqdmulhh_laneq_s16): Likewise.
6940 (vqdmulhs_laneq_s32): Likewise.
6941 (vqrdmulhh_laneq_s16): Likewise.
6942 (vqrdmulhs_laneq_s32): Likewise.
6943
6944 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6945
6946 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
6947 (vmuld_laneq_f64): Likewise.
6948 (vmuls_laneq_f32): Likewise.
6949 (vmul_n_f64): Likewise.
6950 (vmuld_lane_f64): Reimplement in C.
6951 (vmuls_lane_f32): Likewise.
6952
6953 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6954
6955 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
6956 to reservation.
6957 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
6958
6959 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6960
6961 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
6962 (rbitsi2): Likewise.
6963 (*arm_rev): Set predicable and predicable_short_it attributes.
6964
6965 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6966
6967 * convert.c (convert_to_integer): Guard transformation to lrint by
6968 -fno-math-errno.
6969
6970 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6971
6972 * config/aarch64/aarch64-builtins.c
6973 (aarch64_simd_builtin_type_mode): Delete.
6974 (v8qi_UP): Remap to V8QImode.
6975 (v4hi_UP): Remap to V4HImode.
6976 (v2si_UP): Remap to V2SImode.
6977 (v2sf_UP): Remap to V2SFmode.
6978 (v1df_UP): Remap to V1DFmode.
6979 (di_UP): Remap to DImode.
6980 (df_UP): Remap to DFmode.
6981 (v16qi_UP):V16QImode.
6982 (v8hi_UP): Remap to V8HImode.
6983 (v4si_UP): Remap to V4SImode.
6984 (v4sf_UP): Remap to V4SFmode.
6985 (v2di_UP): Remap to V2DImode.
6986 (v2df_UP): Remap to V2DFmode.
6987 (ti_UP): Remap to TImode.
6988 (ei_UP): Remap to EImode.
6989 (oi_UP): Remap to OImode.
6990 (ci_UP): Map to CImode.
6991 (xi_UP): Remap to XImode.
6992 (si_UP): Remap to SImode.
6993 (sf_UP): Remap to SFmode.
6994 (hi_UP): Remap to HImode.
6995 (qi_UP): Remap to QImode.
6996 (aarch64_simd_builtin_datum): Make mode a machine_mode.
6997 (VAR1): Build builtin name.
6998 (aarch64_init_simd_builtins): Remove dead code.
6999
7000 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7001
7002 * graphite-isl-ast-to-gimple.c:
7003 (set_options): New function.
7004 (scop_to_isl_ast): Add calling of set_options.
7005
7006 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7007
7008 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7009 (analyze_iv_to_split_insn): Don't initialize them.
7010 (get_ivts_expr): Removed.
7011 (allocate_basic_variable, insert_base_initialization): Use
7012 SET_SRC instead of *get_ivts_expr.
7013 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7014
7015 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7016
7017 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7018 (translate_isl_ast_for_loop): Add checking of the
7019 flag_loop_parallelize_all.
7020 (ast_build_before_for): New function.
7021 (scop_to_isl_ast): Add checking of the
7022 flag_loop_parallelize_all.
7023 * graphite-dependences.c: Move the defenition of the
7024 scop_get_dependences from graphite-optimize-isl.c to this file.
7025 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7026 (carries_deps): Add checking of the x's value.
7027 * graphite-optimize-isl.c: Move the defenition of the
7028 scop_get_dependences to graphite-dependences.c.
7029 * graphite-poly.h: Add declarations of scop_get_dependences
7030 and carries_deps.
7031
7032 2014-08-04 Rohit <rohitarulraj@freescale.com>
7033
7034 PR target/60102
7035 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7036 names.
7037 (alt_reg_names): Likewise.
7038 (rs6000_dwarf_register_span): For SPE high registers, replace
7039 dwarf register numbers with GCC hard register numbers.
7040 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7041 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7042 register number for the corresponding GCC hard register number.
7043 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7044 newly added GCC hard register numbers for SPE high registers.
7045 (DWARF_FRAME_REGISTERS): Likewise.
7046 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7047 (DWARF_FRAME_REGNUM): Likewise.
7048 (FIXED_REGISTERS): Likewise.
7049 (CALL_USED_REGISTERS): Likewise.
7050 (CALL_REALLY_USED_REGISTERS): Likewise.
7051 (REG_ALLOC_ORDER): Likewise.
7052 (enum reg_class): Likewise.
7053 (REG_CLASS_NAMES): Likewise.
7054 (REG_CLASS_CONTENTS): Likewise.
7055 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7056
7057 2014-08-04 Richard Biener <rguenther@suse.de>
7058
7059 * gimple-fold.h (gimple_fold_builtin): Remove.
7060 * gimple-fold.c (gimple_fold_builtin): Make static.
7061 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7062 fold_stmt, not gimple_fold_builtin.
7063
7064 2014-08-04 Martin Liska <mliska@suse.cz>
7065
7066 * cgraph.h (csi_end_p): Removed.
7067 (csi_next): Likewise.
7068 (csi_node): Likewise.
7069 (csi_start): Likewise.
7070 (cgraph_node_in_set_p): Likewise.
7071 (cgraph_node_set_size): Likewise.
7072 (vsi_end_p): Likewise.
7073 (vsi_next): Likewise.
7074 (vsi_node): Likewise.
7075 (vsi_start): Likewise.
7076 (varpool_node_set_size): Likewise.
7077 (cgraph_node_set_nonempty_p): Likewise.
7078 (varpool_node_set_nonempty_p): Likewise.
7079 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7080 cgraph_node_set.
7081 * ipa-inline-transform.c: Likewise.
7082 * ipa-utils.c (cgraph_node_set_new): Removed.
7083 (cgraph_node_set_add): Likewise.
7084 (cgraph_node_set_remove): Likewise.
7085 (cgraph_node_set_find): Likewise.
7086 (dump_cgraph_node_set): Likewise.
7087 (debug_cgraph_node_set): Likewise.
7088 (free_cgraph_node_set): Likewise.
7089 (varpool_node_set_new): Likewise.
7090 (varpool_node_set_add): Likewise.
7091 (varpool_node_set_remove): Likewise.
7092 (varpool_node_set_find): Likewise.
7093 (dump_varpool_node_set): Likewise.
7094 (free_varpool_node_set): Likewise.
7095 (debug_varpool_node_set): Likewise.
7096 * tree-emutls.c (struct tls_var_data):
7097 (emutls_index): Removed.
7098 (emutls_decl): Likewise.
7099 (gen_emutls_addr): Function implementation uses newly added
7100 hash_map<varpool_node *, tls_var_data>.
7101 (clear_access_vars): Likewise.
7102 (create_emultls_var): Likewise.
7103 (ipa_lower_emutls): Likewise.
7104 (reset_access): New function.
7105
7106 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7107
7108 * config/i386/i386.c (ix86_option_override_internal): Add
7109 PTA_RDRND and PTA_MOVBE for bdver4.
7110
7111 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7112 James Greenhalgh <james.greenhalgh@arm.com>
7113
7114 * doc/md.texi (clrsb): Document.
7115 (clz): Change reference to x into operand 1.
7116 (ctz): Likewise.
7117 (popcount): Likewise.
7118
7119 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7120
7121 PR target/61713
7122 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7123 move to subtarget in serial version if result is ignored.
7124
7125 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7126 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7127
7128 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7129 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7130 (sched_analyze_insn): Update use of try_group_insn to
7131 sched_macro_fuse_insns.
7132 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7133 arguments that are not conditional jumps.
7134
7135 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7136
7137 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7138 family information. Handle BTVER2 cpu with cpuid family value.
7139
7140 2014-08-04 Tom de Vries <tom@codesourcery.com>
7141
7142 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7143 (glibc_2_11_or_earlier): Document effective-target keywords.
7144
7145 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7146
7147 * ipa-devirt.c (odr_type_warn_count): Add type.
7148 (possible_polymorphic_call_targets): Set it.
7149 (ipa_devirt): Use it.
7150
7151 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7152
7153 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7154 Document.
7155 * ipa-devirt.c: Include hash-map.h
7156 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7157 (clear_speculation): Break out of ...
7158 (get_class_context): ... here; speed up handling obviously useless
7159 speculations.
7160 (odr_type_warn_count, decl_warn_count): New structures.
7161 (final_warning_record): New structure.
7162 (final_warning_records): New static variable.
7163 (possible_polymorphic_call_targets): Cleanup handling of
7164 speculative info; do not build speculation when user do not care;
7165 record info about warnings when asked for.
7166 (add_decl_warning): New function.
7167 (type_warning_cmp): New function.
7168 (decl_warning_cmp): New function.
7169 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7170 (gate): Enable pass when warnings are requested.
7171 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7172 options.
7173
7174 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7175
7176 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7177 Fix cast.
7178 (hash_map::remove): New method.
7179 (hash_map::traverse): New method.
7180 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7181 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7182 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7183 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7184 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7185 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7186 pointer_map.
7187
7188 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7189
7190 * hash-set.h: new File.
7191 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7192 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7193 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7194 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7195 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7196 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7197 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7198 varpool.c: Use hash_set instead of pointer_set.
7199
7200 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7201
7202 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7203
7204 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7205
7206 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7207 for frame access when strict_p is false.
7208
7209 2014-08-01 Renlin Li <renlin.li@arm.com>
7210 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7211
7212 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7213 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7214 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7215 Declaration.
7216 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7217 predicate.
7218 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7219 aarch64_mem_pair_offset.
7220
7221 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7222
7223 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7224 offset.
7225 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7226 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7227
7228 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7229
7230 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7231
7232 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7233
7234 PR regression/61510
7235 * cgraphunit.c (analyze_functions): Use get_create rather than get
7236 for decls which are clones of abstract functions.
7237
7238 2014-08-01 Martin Liska <mliska@suse.cz>
7239
7240 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7241 * ipa-prop.h (count_formal_params): Global function created from static.
7242 * ipa-prop.c (count_formal_params): Likewise.
7243 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7244 profiles for semantically equivalent functions.
7245 * passes.c (do_per_function): If we load body of a function
7246 during WPA, this condition should behave same.
7247 * varpool.c (ctor_for_folding): More tolerant assert for variable
7248 aliases created during WPA.
7249
7250 2014-08-01 Martin Liska <mliska@suse.cz>
7251
7252 * doc/invoke.texi (Options That Control Optimization): Documentation
7253 for -foptimize-strlen introduced. Optimization levels default options
7254 fixed.
7255
7256 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7257
7258 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7259 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7260 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7261 type to bool.
7262 * stor-layout.h (min_align_of_type): New prototype.
7263 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7264 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7265 check.
7266 * ubsan.c: Include builtins.h.
7267 (ubsan_expand_bounds_ifn): Change return type to bool,
7268 always return true.
7269 (ubsan_expand_null_ifn): Change return type to bool, change
7270 argument to gimple_stmt_iterator *. Handle both null and alignment
7271 sanitization, take type from ckind argument's type rather than
7272 first argument.
7273 (instrument_member_call): Removed.
7274 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7275 Handle both null and alignment sanitization, don't say whole
7276 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7277 call instead of 2 argument.
7278 (instrument_null): Adjust instrument_mem_ref caller. Don't
7279 instrument calls here.
7280 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7281 like SANITIZE_NULL.
7282 * stor-layout.c (min_align_of_type): New function.
7283 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7284 Or it into SANITIZE_UNDEFINED.
7285 * doc/invoke.texi (-fsanitize=alignment): Document.
7286
7287 2014-07-31 Andi Kleen <ak@linux.intel.com>
7288
7289 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7290
7291 2014-07-31 Andi Kleen <ak@linux.intel.com>
7292
7293 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7294 inchash.
7295 (vn_reference_compute_hash): Dito.
7296 (vn_nary_op_compute_hash): Dito.
7297 (vn_phi_compute_hash): Dito.
7298 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7299
7300 2014-07-31 Andi Kleen <ak@linux.intel.com>
7301
7302 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7303 Rename to inchash:add_expr_commutative. Convert to inchash.
7304 (iterative_hash_hashable_expr): Rename to
7305 inchash:add_hashable_expr. Convert to inchash.
7306 (avail_expr_hash): Dito.
7307
7308 2014-07-31 Andi Kleen <ak@linux.intel.com>
7309
7310 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7311 Convert to inchash.
7312
7313 2014-07-31 Andi Kleen <ak@linux.intel.com>
7314
7315 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7316
7317 2014-07-31 Andi Kleen <ak@linux.intel.com>
7318
7319 * Makefile.in (OBJS): Add rtlhash.o
7320 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7321 (loc_checksum): Dito.
7322 (loc_checksum_ordered): Dito.
7323 (hash_loc_operands): Dito.
7324 (hash_locs): Dito.
7325 (hash_loc_list): Dito.
7326 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7327 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7328 * rtlhash.c: New file.
7329 * rtlhash.h: New file.
7330
7331 2014-07-31 Andi Kleen <ak@linux.intel.com>
7332
7333 * inchash.h (inchash): Change inchash class to namespace.
7334 (class hash): ... Rename from inchash.
7335 (add_object): Move from macro to class template.
7336 * lto-streamer-out.c (hash_tree): Change inchash
7337 to inchash::hash.
7338 * tree.c (build_type_attribute_qual_variant): Dito.
7339 (type_hash_list): Dito.
7340 (attribute_hash_list): Dito.
7341 (iterative_hstate_expr): Rename to inchash::add_expr
7342 (build_range_type_1): Change inchash to inchash::hash
7343 and use hash::add_expr.
7344 (build_array_type_1): Dito.
7345 (build_function_type): Dito
7346 (build_method_type_directly): Dito.
7347 (build_offset_type): Dito.
7348 (build_complex_type): Dito.
7349 (make_vector_type): Dito.
7350 * tree.h (iterative_hash_expr): Dito.
7351
7352 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7353
7354 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7355
7356 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7357
7358 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7359 correct alphabetical position.
7360 (vpaddd_f64): Rewrite using builtins.
7361 (vpaddd_s64): Move to correct alphabetical position.
7362 (vpaddd_u64): New.
7363
7364 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7365
7366 PR target/61844
7367 * config/sh/sh.c (sh_legitimate_address_p,
7368 sh_legitimize_reload_address): Handle reg+reg address modes when
7369 ALLOW_INDEXED_ADDRESS is false.
7370 * config/sh/predicates.md (general_movsrc_operand,
7371 general_movdst_operand): Likewise.
7372
7373 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7374
7375 * config/aarch64/aarch64-builtins.c
7376 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7377 BYTES_BIG_ENDIAN.
7378
7379 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7380
7381 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7382 the generated mask based on BYTES_BIG_ENDIAN.
7383 (aarch64_simd_check_vect_par_cnst_half): New.
7384 * config/aarch64/aarch64-protos.h
7385 (aarch64_simd_check_vect_par_cnst_half): New.
7386 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7387 the check out to aarch64_simd_check_vect_par_cnst_half.
7388 (vect_par_cnst_lo_half): Likewise.
7389 * config/aarch64/aarch64-simd.md
7390 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7391 (move_hi_quad_<mode>): Always generate a low mask.
7392
7393 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7394
7395 * doc/invoke.texi (AVR Options): Add documentation about
7396 __AVR_DEVICE_NAME__ built-in macro.
7397
7398 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7399
7400 PR target/61948
7401 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7402 constraints are satisfied.
7403 (<shift>di3_neon): Likewise.
7404
7405 2014-07-31 Richard Biener <rguenther@suse.de>
7406
7407 PR tree-optimization/61964
7408 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7409 by structural equality.
7410
7411 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7412
7413 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7414 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7415 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7416 New enums.
7417 * gcc.c (sanitize_spec_function): Support new option.
7418 (SANITIZER_SPEC): Remove now redundant check.
7419 * opts.c (common_handle_option): Support new option.
7420 (finish_options): Check for incompatibilities.
7421 * toplev.c (process_options): Split userspace-specific checks.
7422
7423 2014-07-31 Richard Biener <rguenther@suse.de>
7424
7425 * lto-streamer.h (struct output_block): Remove global.
7426 (struct data_in): Remove labels, num_named_labels and
7427 num_unnamed_labels.
7428 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7429 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7430
7431 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7432
7433 PR c++/60517
7434 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7435 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7436 (isolate_path): New argument to avoid inserting a trap.
7437 (find_implicit_erroneous_behaviour): Handle returning the address
7438 of a local variable.
7439 (find_explicit_erroneous_behaviour): Likewise.
7440
7441 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7442
7443 PR lto/61868
7444 * toplev.c (init_random_seed): Move piece of code never called to
7445 set_random_seed.
7446 (set_random_seed): see above.
7447
7448 2014-07-31 Tom de Vries <tom@codesourcery.com>
7449
7450 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7451
7452 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7453
7454 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7455 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7456
7457 2014-07-31 Richard Biener <rguenther@suse.de>
7458
7459 * data-streamer.h (streamer_write_data_stream): Declare here,
7460 renamed from ...
7461 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7462 * lto-cgraph.c (lto_output_node): Adjust.
7463 (lto_output_varpool_node): Likewise.
7464 * data-streamer-out.c (streamer_string_index): Likewise.
7465 (streamer_write_data_stream, lto_append_block): Move from ...
7466 * lto-section-out.c (lto_output_data_stream,
7467 lto_append_block): ... here.
7468
7469 2014-07-30 Mike Stump <mikestump@comcast.net>
7470
7471 * configure.ac: Also check for popen.
7472 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7473 * configure: Regenerate.
7474 * config.in: Regenerate.
7475
7476 2014-07-30 Martin Jambor <mjambor@suse.cz>
7477
7478 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7479 parameter to gimple.
7480
7481 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7482
7483 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7484 address as second parameter to __tpf_eh_return routine.
7485
7486 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7487
7488 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7489 Thumb2.
7490
7491 2014-07-30 Tom Tromey <tromey@redhat.com>
7492
7493 PR c/59855
7494 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7495 * doc/extend.texi (Type Attributes): Document designated_init
7496 attribute.
7497
7498 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7499
7500 * graphite-isl-ast-to-gimple.c:
7501 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7502 (gcc_expression_from_isl_expression): Pass type to
7503 gcc_expression_from_isl_ast_expr_id.
7504
7505 2014-07-30 Richard Biener <rguenther@suse.de>
7506
7507 * lto-streamer.h (lto_write_data): New function.
7508 * langhooks.c (lhd_append_data): Do not free block.
7509 * lto-section-out.c (lto_write_data): New function writing
7510 raw data to the current section.
7511 (lto_write_stream): Adjust for langhook semantic change.
7512 (lto_destroy_simple_output_block): Write header directly.
7513 * lto-opts.c (lto_write_options): Write options directly.
7514 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7515 (lto_output_toplevel_asms): Likewise.
7516 (copy_function_or_variable): Copy data directly.
7517 (write_global_references): Output index table directly.
7518 (lto_output_decl_state_refs): Likewise.
7519 (write_symbol): Write data directly.
7520 (produce_symtab): Adjust.
7521 (produce_asm_for_decls): Output header and refs directly.
7522
7523 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7524
7525 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7526 to speculative_targets
7527 (get_class_context): Fix handling of contextes without outer type;
7528 avoid matching non-polymorphic types in LTO.
7529 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7530 parameter to speculative_targetsp; handle speculation.
7531 (dump_possible_polymorphic_call_targets): Update dumping.
7532
7533 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7534
7535 * common.opt (Wodr): Enable by default.
7536
7537 2014-07-29 Olivier Hainque <hainque@adacore.com>
7538
7539 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7540
7541 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7542
7543 PR bootstrap/61914
7544 * gengtype.c (strtoken): New function.
7545 (create_user_defined_type): Replace strtok with strtoken.
7546
7547 2014-07-29 Nathan Sidwell <nathan@acm.org>
7548
7549 * gcov-io.c (gcov_var): Make hidden.
7550 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7551 (gcov_do_dump): Declare.
7552 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7553
7554 2014-07-29 Martin Jambor <mjambor@suse.cz>
7555
7556 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7557 parameter to gimple.
7558 (sra_modify_assign): Likewise.
7559
7560 2014-07-29 Richard Biener <rguenther@suse.de>
7561
7562 PR middle-end/52478
7563 * expr.c (expand_expr_real_2): Revert last change.
7564
7565 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7566
7567 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7568 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7569 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7570 call.
7571 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7572 (contains_type_p): Forward declare.
7573 (polymorphic_call_target_hasher::hash): Hash speculative info.
7574 (polymorphic_call_target_hasher::equal): Compare speculative info.
7575 (get_class_context): Handle speuclation.
7576 (contains_type_p): Update.
7577 (get_polymorphic_call_info_for_decl): Update.
7578 (walk_ssa_copies): Break out from ...
7579 (get_polymorphic_call_info): ... here; set speculative context
7580 before giving up.
7581 * ipa-prop.c (ipa_write_indirect_edge_info,
7582 ipa_read_indirect_edge_info): Stream speculative context.
7583 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7584 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7585 SPECULATIVE_MAYBE_DERIVED_TYPE).
7586 (possible_polymorphic_call_targets overriders): Update.
7587 (dump_possible_polymorphic_call_targets overriders): Update.
7588 (dump_possible_polymorphic_call_target_p overriders): Update.
7589
7590 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7591
7592 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7593 ipa-devirt path; fix thinko there.
7594
7595 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7596
7597 * config/i386/i386.c (ix86_return_in_memory): Replace one
7598 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7599
7600 2014-07-28 Marek Polacek <polacek@redhat.com>
7601
7602 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7603
7604 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7605
7606 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7607 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7608 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7609 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7610 (USE_LD_AS_NEEDED): Likewise.
7611 (ASM_APP_ON): Likewise.
7612 (ASM_APP_OFF): Likewise.
7613 (TARGET_POSIX_IO): Likewise.
7614 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7615 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7616 (USE_LD_AS_NEEDED): Likewise.
7617 (ASM_APP_ON): Likewise.
7618 (ASM_APP_OFF): Likewise.
7619 (TARGET_POSIX_IO): Likewise.
7620
7621 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7622
7623 PR middle-end/61734
7624 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7625 operators other than the equality operators.
7626
7627 2014-07-28 Richard Biener <rguenther@suse.de>
7628
7629 PR middle-end/52478
7630 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7631 sure to register SImode ones, not only >= word_mode ones.
7632 * expr.c (expand_expr_real_2): When expanding -ftrapv
7633 binops do not use OPTAB_LIB_WIDEN.
7634
7635 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7636
7637 PR middle-end/61919
7638 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7639 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7640 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7641 inserting them in the insn stream.
7642
7643 2014-07-28 Marek Polacek <polacek@redhat.com>
7644
7645 PR middle-end/61913
7646 * common.opt (Wodr): Add Var.
7647
7648 2014-07-28 Richard Biener <rguenther@suse.de>
7649
7650 PR tree-optimization/61921
7651 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7652 if there is a varpool node before dereferencing it.
7653
7654 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7655
7656 * graphite-sese-to-poly.c:
7657 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7658 id of the pbb), which contains pointer to the pbb1.
7659
7660 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7661
7662 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7663
7664 * graphite-isl-ast-to-gimple.c:
7665 (graphite_create_new_guard): New function.
7666 (translate_isl_ast_node_if): New function.
7667 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7668
7669 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7670
7671 2014-07-27 Anthony Green <green@moxielogic.com>
7672
7673 * config.gcc: Add moxie-*-moxiebox* configuration.
7674 * config/moxie/moxiebox.h: New file.
7675
7676 2014-07-26 Andrew Pinski <apinski@cavium.com>
7677
7678 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7679 from the read only register.
7680
7681 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7682
7683 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7684 as the allocation class if it isn't likely to be spilled.
7685
7686 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7687
7688 * rtl.h (tls_referenced_p): Declare.
7689 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7690 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7691 (mips_cannot_force_const_mem): Use tls_referenced_p.
7692 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7693 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7694 instead of pa_tls_referenced_p.
7695 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7696 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7697 (pa_legitimate_constant_p): Likewise.
7698 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7699 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7700 (rs6000_cannot_force_const_mem, rs6000_emit_move)
7701 (rs6000_address_for_altivec): Use tls_referenced_p instead of
7702 rs6000_tls_referenced_p.
7703 (rs6000_tls_symbol_ref_1): Delete.
7704
7705 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
7706
7707 PR target/44551
7708 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7709 Optimize inverse of a VEC_CONCAT.
7710
7711 2014-07-25 Xinliang David Li <davidxl@google.com>
7712
7713 * params.def: New parameter.
7714 * coverage.c (get_coverage_counts): Check new flag.
7715 (coverage_compute_profile_id): Check new flag.
7716 (coverage_begin_function): Check new flag.
7717 (coverage_end_function): Check new flag.
7718 * value-prof.c (coverage_node_map_initialized_p): New function.
7719 (init_node_map): Populate map with all functions.
7720 * doc/invoke.texi: Document new parameter.
7721
7722 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
7723 Richard Biener <rguenther@suse.de>
7724
7725 * lto-streamer-out.c (struct sccs): Turn to ...
7726 (class DFS): ... this one; refactor the DFS walk so it can
7727 be re-done on per-SCC basis.
7728 (DFS::DFS): New constructor.
7729 (DFS::~DFS): New destructor.
7730 (hash_tree): Add new MAP argument holding in-SCC hash values;
7731 remove POINTER_TYPE hashing hack.
7732 (scc_entry_compare): Rename to ...
7733 (DFS::scc_entry_compare): ... this one.
7734 (hash_scc): Rename to ...
7735 (DFS::hash_scc): ... this one; pass output_block instead
7736 of streamer_cache; work harder to get unique and stable SCC
7737 hashes.
7738 (DFS_write_tree): Rename to ...
7739 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7740 (lto_output_tree): Update.
7741
7742 2014-07-25 Andi Kleen <ak@linux.intel.com>
7743
7744 * lto-streamer-out.c (hash_tree): Convert to inchash.
7745
7746 2014-07-25 Andi Kleen <ak@linux.intel.com>
7747
7748 * tree.c (build_type_attribute_qual_variant): Use inchash.
7749 (type_hash_list): Dito.
7750 (attribute_hash_list): Dito
7751 (iterative_hstate_expr): Dito.
7752 (iterative_hash_expr): Dito.
7753 (build_range_type_1): Dito.
7754 (build_array_type_1): Dito.
7755 (build_function_type): Dito.
7756 (build_method_type_directly): Dito.
7757 (build_offset_type): Dito.
7758 (build_complex_type): Dito.
7759 (make_vector_type): Dito.
7760 * tree.h (iterative_hash_expr): Add compat wrapper.
7761 (iterative_hstate_expr): Add.
7762
7763 2014-07-25 Andi Kleen <ak@linux.intel.com>
7764
7765 * Makefile.in (OBJS): Add inchash.o.
7766 (PLUGIN_HEADERS): Add inchash.h.
7767 * ipa-devirt.c: Include inchash.h.
7768 * lto-streamer-out.c: Dito.
7769 * tree-ssa-dom.c: Dito.
7770 * tree-ssa-pre.c: Dito.
7771 * tree-ssa-sccvn.c: Dito.
7772 * tree-ssa-tail-merge.c: Dito.
7773 * asan.c: Dito.
7774 * tree.c (iterative_hash_hashval_t): Move to ...
7775 (iterative_hash_host_wide_int): Move to ...
7776 * inchash.c: Here. New file.
7777 * tree.h (iterative_hash_hashval_t): Move to ...
7778 (iterative_hash_host_wide_int): Move to ...
7779 * inchash.h: Here. New file.
7780
7781 2014-07-25 Richard Biener <rguenther@suse.de>
7782
7783 PR middle-end/61762
7784 PR middle-end/61894
7785 * fold-const.c (native_encode_int): Add and handle offset
7786 parameter to do partial encodings of expr.
7787 (native_encode_fixed): Likewise.
7788 (native_encode_real): Likewise.
7789 (native_encode_complex): Likewise.
7790 (native_encode_vector): Likewise.
7791 (native_encode_string): Likewise.
7792 (native_encode_expr): Likewise.
7793 * fold-const.c (native_encode_expr): Add offset parameter
7794 defaulting to -1.
7795 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
7796 (fold_ctor_reference): Handle all reads from tcc_constant
7797 ctors.
7798
7799 2014-07-25 Richard Biener <rguenther@suse.de>
7800
7801 * tree-inline.c (estimate_move_cost): Mark speed_p argument
7802 as possibly unused.
7803
7804 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7805
7806 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
7807
7808 2014-07-24 Kyle McMartin <kyle@redhat.com>
7809
7810 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
7811
7812 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7813
7814 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
7815 Add prototype.
7816 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
7817 function.
7818 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
7819 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7820 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
7821
7822 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7823
7824 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
7825 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
7826 aggregate types. Instead, *all* aggregate types, except for single-
7827 element or homogeneous float/vector aggregates, are quadword-aligned
7828 if required by their type alignment. Issue -Wpsabi note when a type
7829 is now treated differently than before.
7830
7831 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7832
7833 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
7834 does not fit fully into floating-point registers, and there is still
7835 space in the register parameter area, use GPRs to pass those parts
7836 of the argument. Issue -Wpsabi note if any parameter is now treated
7837 differently than before.
7838 (rs6000_arg_partial_bytes): Update.
7839
7840 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
7841
7842 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
7843
7844 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7845
7846 * rtl.h (target_rtl): Remove lang_dependent_initialized.
7847 * toplev.c (initialize_rtl): Don't use it. Move previously
7848 "language-dependent" calls to...
7849 (backend_init): ...here.
7850 (lang_dependent_init_target): Don't set lang_dependent_initialized.
7851 Assert that RTL initialization hasn't happend yet.
7852
7853 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7854
7855 PR rtl-optimization/61629
7856 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
7857 they have already been initialized.
7858
7859 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7860
7861 PR middle-end/61268
7862 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
7863 DECL_INCOMING_RTL and entry_parm.
7864 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
7865 * calls.c (load_register_parameters): Likewise argument values.
7866 (emit_library_call_value_1, store_one_arg): Likewise argument
7867 save areas.
7868 * config/i386/i386.c (assign_386_stack_local): Likewise the local
7869 stack slot.
7870 * explow.c (validize_mem): Modify the argument in-place.
7871
7872 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7873
7874 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
7875 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
7876
7877 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7878
7879 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
7880 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
7881
7882 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7883
7884 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
7885 (aarch64_save_callee_saves): New parameter "skip_wb".
7886 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
7887
7888 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7889
7890 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
7891 "wb_candidate2".
7892 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
7893
7894 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7895
7896 * graphite-isl-ast-to-gimple.c:
7897 (graphite_create_new_loop): Add calling of isl_id_free to properly
7898 decrement reference counts.
7899
7900 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
7901
7902 2014-07-24 Martin Liska <mliska@suse.cz>
7903 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
7904 function used.
7905 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
7906 (rs6000_code_end): Likewise.
7907
7908 2014-07-24 Martin Liska <mliska@suse.cz>
7909
7910 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
7911 symtab_node funtion used.
7912 (rs6000_xcoff_declare_object_name): Likewise.
7913
7914 2014-07-24 Martin Liska <mliska@suse.cz>
7915
7916 * cgraphunit.c (compile): Correct function used.
7917
7918 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7919
7920 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
7921 as non-indexable.
7922
7923 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7924
7925 PR lto/61802
7926 * varasm.c (bss_initializer_p): Handle offlined ctors.
7927 (align_variable, get_variable_align): Likewise.
7928 (make_decl_one_only): Likewise.
7929 (default_binds_local_p_1): Likewise.
7930 (decl_binds_to_current_def_p): Likewise.
7931 (get_variable_section): Get constructor if it is offlined.
7932 (assemble_variable_contents): Sanity check that the caller
7933 streamed in the ctor in LTO.
7934
7935 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7936
7937 * graphite-isl-ast-to-gimple.c:
7938 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
7939 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
7940 isl_ast_op_pdiv_r to the different case.
7941
7942 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
7943
7944 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7945
7946 PR middle-end/61876
7947 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
7948 when flag_errno_math is on.
7949
7950 2014-07-24 Martin Liska <mliska@suse.cz>
7951
7952 * cgraph.h (varpool_node):
7953 (availability get_availability (void)):
7954 created from cgraph_variable_initializer_availability
7955 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
7956 created from: cgraph_variable_initializer_availability
7957 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
7958 (void finalize_named_section_flags (void)):
7959 created from varpool_finalize_named_section_flags
7960 (bool assemble_decl (void)): created from varpool_assemble_decl
7961 (void analyze (void)): created from varpool_analyze_node
7962 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
7963 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
7964 (void remove_initializer (void)): created from varpool_remove_initializer
7965 (tree get_constructor (void)): created from varpool_get_constructor
7966 (bool externally_visible_p (void)): created from varpool_externally_visible_p
7967 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
7968 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
7969 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
7970 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
7971 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
7972 (static bool output_variables (void)): created from varpool_output_variables
7973 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
7974 created from varpool_extra_name_alias
7975 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
7976 (static void dump_varpool (FILE *f)): created from dump_varpool
7977 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
7978 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
7979 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
7980 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
7981 (void assemble_aliases (void)): created from assemble_aliases
7982
7983 2014-07-24 Martin Liska <mliska@suse.cz>
7984
7985 * cgraph.h (symtab_node):
7986 (void register_symbol (void)): created from symtab_register_node
7987 (void remove (void)): created from symtab_remove_node
7988 (void dump (FILE *f)): created from dump_symtab_node
7989 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
7990 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
7991 (struct ipa_ref *add_reference (symtab_node *referred_node,
7992 enum ipa_ref_use use_type)): created from add_reference
7993 (struct ipa_ref *add_reference (symtab_node *referred_node,
7994 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
7995 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
7996 gimple stmt)): created from maybe_add_reference
7997 (bool semantically_equivalent_p (symtab_node *target)): created from
7998 symtab_semantically_equivalent_p
7999 (void remove_from_same_comdat_group (void)): created from
8000 remove_from_same_comdat_group
8001 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8002 symtab_add_to_same_comdat_group
8003 (void dissolve_same_comdat_group_list (void)): created from
8004 symtab_dissolve_same_comdat_group_list
8005 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8006 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8007 created from symtab_alias_ultimate_target
8008 (inline symtab_node *next_defined_symbol (void)): created from
8009 symtab_next_defined_symbol
8010 (bool resolve_alias (symtab_node *target)): created from
8011 symtab_resolve_alias
8012 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8013 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8014 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8015 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8016 (void set_section (const char *section)): created from set_section_1
8017 (enum availability get_availability (void)): created from symtab_node_availability
8018 (void make_decl_local (void)): created from symtab_make_decl_local
8019 (bool real_symbol_p (void)): created from symtab_read_node
8020 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8021 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8022 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8023 symtab_in_same_comdat_p;
8024 (bool address_taken_from_non_vtable_p (void)): created from
8025 address_taken_from_non_vtable_p
8026 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8027 (static void dump_table (FILE *)): created from dump_symtab
8028 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8029 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8030 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8031 symtab_used_from_object_file_p
8032 (void dump_base (FILE *)): created from dump_symtab_base
8033 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8034 (void unregister (void)): created from symtab_unregister_node
8035 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8036 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8037 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8038 symtab_nonoverwritable_alias_1
8039 * cgraph.h (cgraph_node):
8040 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8041 created from cgraph_remove_node_and_inline_clones
8042 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8043 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8044 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8045 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8046 created from cgraph_function_node
8047 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8048 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8049 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8050 created from cgraph_create_clone
8051 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8052 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8053 created from cgraph_create_virtual_clone
8054 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8055 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8056 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8057 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8058 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8059 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8060 created from cgraph_function_version_info
8061 (struct cgraph_function_version_info *insert_new_function_version (void)):
8062 created from insert_new_cgraph_node_version
8063 (struct cgraph_function_version_info *function_version (void)): created from
8064 get_cgraph_node_version
8065 (void analyze (void)): created from analyze_function
8066 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8067 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8068 tree real_alias) cgraph_add_thunk
8069 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8070 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8071 created from cgraph_function_or_thunk_node
8072 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8073 created from expand_thunk
8074 (void reset (void)): created from cgraph_reset_node
8075 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8076 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8077 (void remove (void)): created from cgraph_remove_node
8078 (void dump (FILE *f)): created from dump_cgraph_node
8079 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8080 (bool get_body (void)): created from cgraph_get_body
8081 (void release_body (void)): created from cgraph_release_function_body
8082 (void unnest (void)): created from cgraph_unnest_node
8083 (void make_local (void)): created from cgraph_make_node_local
8084 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8085 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8086 gcov_type count, int freq)): created from cgraph_create_edge
8087 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8088 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8089 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8090 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8091 created from cgraph_create_edge_including_clones
8092 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8093 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8094 (void remove_callers (void)): created from cgraph_node_remove_callers
8095 (void remove_callees (void)): created from cgraph_node_remove_callees
8096 (enum availability get_availability (void)): created from cgraph_function_body_availability
8097 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8098 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8099 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8100 (void call_duplication_hooks (cgraph_node *node2)): created from
8101 cgraph_call_node_duplication_hooks
8102 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8103 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8104 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8105 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8106 (void call_function_insertion_hooks (void)):
8107 created from cgraph_call_function_insertion_hooks
8108 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8109 (bool local_p (void)): created from cgraph_local_node
8110 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8111 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8112 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8113 (inline bool only_called_directly_or_aliased_p (void)):
8114 created from cgraph_only_called_directly_or_aliased_p
8115 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8116 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8117 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8118 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8119 (bool can_remove_if_no_direct_calls_p (void)):
8120 created from cgraph_can_remove_if_no_direct_calls_p
8121 (inline bool has_gimple_body_p (void)):
8122 created from cgraph_function_with_gimple_body_p
8123 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8124 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8125 (static inline void debug_cgraph (void)): created from debug_cgraph
8126 (static void record_function_versions (tree decl1, tree decl2)):
8127 created from record_function_versions
8128 (static void delete_function_version (tree decl)):
8129 created from delete_function_version
8130 (static void add_new_function (tree fndecl, bool lowered)):
8131 created from cgraph_add_new_function
8132 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8133 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8134 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8135 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8136 (static cgraph_node *get_for_asmname (tree asmname)):
8137 created from cgraph_node_for_asm
8138 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8139 created from cgraph_same_body_alias
8140 (static bool used_from_object_file_p_worker (cgraph_node *node,
8141 void *): new function
8142 (static bool non_local_p (cgraph_node *node, void *)):
8143 created from cgraph_non_local_node_p_1
8144 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8145 created from verify_cgraph
8146 (static bool make_local (cgraph_node *node, void *)):
8147 created from cgraph_make_node_local
8148 (static cgraph_node *create_alias (tree alias, tree target)):
8149 created from cgraph_create_function_alias
8150 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8151 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8152 created from cgraph_create_edge_1
8153 * cgraph.h (varpool_node):
8154 (void remove (void)): created from varpool_remove_node
8155 (void dump (FILE *f)): created from dump_varpool_node
8156
8157 2014-07-24 Richard Biener <rguenther@suse.de>
8158
8159 PR ipa/61823
8160 * tree-ssa-structalias.c (create_variable_info_for_1):
8161 Use varpool_get_constructor.
8162 (create_variable_info_for): Likewise.
8163
8164 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8165
8166 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8167 subtract outgoing area size when restoring stack_pointer_rtx.
8168
8169 2014-07-24 Nick Clifton <nickc@redhat.com>
8170
8171 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8172 that operations are taking place in parallel.
8173 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8174
8175 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8176
8177 * omp-low.c (extract_omp_for_data): Add missing break statement.
8178
8179 2014-07-24 Richard Biener <rguenther@suse.de>
8180
8181 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8182 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8183 and adjust MOVE_RATIO query accordingly.
8184 (estimate_num_insns): Adjust callers.
8185 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8186 * ipa-cp.c (gather_context_independent_values,
8187 estimate_local_effects): Likewise.
8188 * ipa-split.c (consider_split): Likewise.
8189
8190 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8191
8192 * config/i386/driver-i386.c: Remove names of unused arguments and
8193 unnecessary unused attributes.
8194 * config/i386/host-mingw32.c: Likewise.
8195 * config/i386/i386.c: Likewise.
8196 * config/i386/winnt-stubs.c: Likewise.
8197 * config/i386/winnt.c: Likewise.
8198
8199 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8200
8201 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8202 (aarch64_gen_loadwb_pair): New helper function.
8203 (aarch64_expand_epilogue): Simplify code using new helper functions.
8204 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8205
8206 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8207
8208 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8209 (aarch64_gen_storewb_pair): New helper function.
8210 (aarch64_expand_prologue): Simplify code using new helper functions.
8211 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8212
8213 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8214
8215 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8216 Rename to aarch64_save_callee_saves, remove restore code.
8217 (aarch64_restore_callee_saves): New function.
8218
8219 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8220
8221 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8222 (aarch64_save_callee_saves): New function to handle reg save
8223 for both core and vectore regs.
8224
8225 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8226
8227 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8228 (aarch64_gen_store_pair): New helper function.
8229 (aarch64_save_or_restore_callee_save_registers)
8230 (aarch64_save_or_restore_fprs): Use new helper functions.
8231
8232 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8233
8234 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8235 (aarch64_save_or_restore_callee_save_registers)
8236 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8237
8238 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8239
8240 * config/aarch64/aarch64.c
8241 (aarch64_save_or_restore_callee_save_registers)
8242 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8243
8244 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8245
8246 * config/aarch64/aarch64.c
8247 (aarch64_save_or_restore_callee_save_registers)
8248 (aarch64_save_or_restore_fprs): Remove 'increment'.
8249
8250 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8251
8252 * config/aarch64/aarch64.c
8253 (aarch64_save_or_restore_callee_save_registers)
8254 (aarch64_save_or_restore_fprs): Use register offset in
8255 cfun->machine->frame.reg_offset.
8256
8257 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8258
8259 * config/aarch64/aarch64.c
8260 (aarch64_save_or_restore_callee_save_registers)
8261 (aarch64_save_or_restore_fprs): Remove base_rtx.
8262
8263 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8264
8265 * config/aarch64/aarch64.c
8266 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8267 to 'start_offset'. Remove local variable 'start_offset'.
8268
8269 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8270
8271 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8272 type to HOST_WIDE_INT.
8273
8274 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8275
8276 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8277 (aarch64_save_or_restore_fprs)
8278 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8279
8280 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8281
8282 * config/arm/t-rtems-eabi: Add
8283 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8284 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8285 mbig-endian/mthumb/march=armv7-r, and
8286 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8287 multilibs.
8288
8289 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8290 Chris Johns <chrisj@rtems.org>
8291 Joel Sherrill <joel.sherrill@oarcorp.com>
8292
8293 * config.gcc: Add nios2-*-rtems*.
8294 * config/nios2/rtems.h: New file.
8295 * gcc/config/nios2/t-rtems: New file.
8296
8297 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8298
8299 PR target/61396
8300 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8301 constant numbers, not general constants.
8302 (rs6000_expand_vector_init): Ditto.
8303
8304 2014-07-23 Nathan Sidwell <nathan@acm.org>
8305
8306 * gcov-tool.c (gcov_list): Declare here.
8307 (set_gcov_list): Remove.
8308 (gcov_output_files): Set gcov_list directly.
8309
8310 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8311
8312 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8313
8314 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8315
8316 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8317 callee-saved registers are available for padding purpose
8318 and r3 is not mandatory, then prefer use those callee-saved
8319 instead of r3.
8320
8321 2014-07-23 Richard Biener <rguenther@suse.de>
8322
8323 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8324 * combine.c: Include statistics.h and params.h.
8325 (combine_instructions): Guard three and four insn combines
8326 with max-combine-insns value. Record statistics for combines
8327 performed.
8328 * doc/invoke.texi (max-combine-insns): Document new param.
8329
8330 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8331
8332 * graphite-isl-ast-to-gimple.c:
8333 (translate_isl_ast_node_block): New function.
8334 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8335
8336 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8337 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8338
8339 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8340
8341 * graphite-isl-ast-to-gimple.c:
8342 (get_max_schedule_dimensions): New function.
8343 (extend_schedule): Likewise.
8344 (generate_isl_schedule): Add calling of extend_schedule and
8345 get_max_schedule_dimensions.
8346
8347 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8348
8349 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8350 (case UNSPEC): Handle UNSPEC_RBIT.
8351
8352 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8353
8354 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8355 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8356
8357 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8358
8359 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8360
8361 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8362
8363 * graphite-isl-ast-to-gimple.c:
8364 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8365 (ivs_params_clear):
8366 (build_iv_mapping): New function.
8367 (translate_isl_ast_node_user): Likewise.
8368 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8369
8370 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8371 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8372 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8373
8374 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8375
8376 PR target/55701
8377 * config/arm/arm.md (setmem): New pattern.
8378 * config/arm/arm-protos.h (struct tune_params): New fields.
8379 (arm_gen_setmem): New prototype.
8380 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8381 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8382 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8383 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8384 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8385 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8386 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8387 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8388 (arm_const_inline_cost): New function.
8389 (arm_block_set_max_insns): New function.
8390 (arm_block_set_non_vect_profit_p): New function.
8391 (arm_block_set_vect_profit_p): New function.
8392 (arm_block_set_unaligned_vect): New function.
8393 (arm_block_set_aligned_vect): New function.
8394 (arm_block_set_unaligned_non_vect): New function.
8395 (arm_block_set_aligned_non_vect): New function.
8396 (arm_block_set_vect, arm_gen_setmem): New functions.
8397
8398 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8399
8400 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8401
8402 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8403
8404 PR target/61855
8405 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8406 out of #ifdef __OPTIMIZE__.
8407
8408 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8409
8410 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8411 different trapping status if -fnon-call-exceptions is enabled.
8412
8413 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8414
8415 * expr.c (store_field): Handle VOIDmode for calls that return values
8416 in multiple locations.
8417
8418 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8419
8420 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8421 (altivec_vsldoi_<mode>): Likewise.
8422
8423 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8424
8425 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8426 to the number of characters in the line.
8427
8428 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8429
8430 * graphite-isl-ast-to-gimple.c: Add using of
8431 build_nonstandard_integer_type instead of int128_integer_type_node.
8432
8433 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8434
8435 * toplev.c (output_stack_usage): Adjust the location of the warning.
8436
8437 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8438
8439 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8440 (*membar_storeload): Disable for LEON3.
8441
8442 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8443
8444 PR rtl-optimization/61461
8445 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8446
8447 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8448
8449 PR target/61794
8450 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8451 Fix instruction constraint.
8452 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8453
8454 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8455
8456 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8457
8458 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8459
8460 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8461 GNU coding standards.
8462 (nds32_register_move_cost): Likewise.
8463 (nds32_memory_move_cost): Likewise.
8464 (nds32_address_cost): Likewise.
8465
8466 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8467
8468 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8469
8470 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8471
8472 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8473 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8474 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8475 (HAVE_sync_compare_and_swapqi): Define.
8476 (HAVE_sync_compare_and_swaphi): Likewise.
8477 (HAVE_sync_compare_and_swapsi): Likewise.
8478
8479 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8480
8481 * config/mips/p5600.md: Add missing cpu tests.
8482
8483 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8484
8485 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8486 (vmla_f64): Likewise.
8487 (vfms_f64): Likewise.
8488 (vmls_f64): Likewise.
8489
8490 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8491
8492 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8493 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8494
8495 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8496
8497 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8498 (vmlal_high_lane_s32): Likewise.
8499 (vmlal_high_lane_u16): Likewise.
8500 (vmlal_high_lane_u32): Likewise.
8501 (vmlsl_high_lane_s16): Likewise.
8502 (vmlsl_high_lane_s32): Likewise.
8503 (vmlsl_high_lane_u16): Likewise.
8504 (vmlsl_high_lane_u32): Likewise.
8505
8506 2014-07-17 Terry Guo <terry.guo@arm.com>
8507
8508 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8509 (alus_reg): Renamed to alus_sreg.
8510 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8511 from alu_reg to alu_sreg. Change type of dsp instructions from
8512 alu_reg to alu_dsp_reg.
8513 * config/arm/thumb1.md: Likewise.
8514 * config/arm/thumb2.md: Likewise.
8515 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8516 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8517 with alu_sreg and alus_sreg.
8518 * config/arm/arm1026ejs.md (alu_op): Likewise.
8519 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8520 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8521 * config/arm/fa526.md (526_alu_op): Likewise.
8522 * config/arm/fa606te.md (606te_alu_op): Likewise.
8523 * config/arm/fa626te.md (626te_alu_op): Likewise.
8524 * config/arm/fa726te.md (726te_alu_op): Likewise.
8525 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8526 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8527 alu_sreg, alu_dsp_reg and alus_sreg.
8528 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8529 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8530 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8531 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8532 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8533 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8534 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8535 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8536 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8537 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8538 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8539 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8540 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8541 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8542 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8543 alus_reg to alus_sreg.
8544
8545 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8546
8547 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8548 infinity format.
8549
8550 2014-07-17 Richard Biener <rguenther@suse.de>
8551
8552 PR rtl-optimization/61801
8553 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8554 don't set reg_pending_barrier if it appears in a debug-insn.
8555
8556 2014-07-16 DJ Delorie <dj@redhat.com>
8557
8558 * config/rx/rx.c (rx_option_override): Fix alignment values.
8559 (rx_align_for_label): Likewise.
8560
8561 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8562
8563 PR target/61737.
8564 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8565 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8566 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8567 functions.
8568 (cris_print_index, cris_print_operand, cris_constant_index_p)
8569 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8570 (cris_address_cost): Ditto last CONSTANT_P.
8571 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8572 callers changed. Yield cris_offsettable_symbol for non-PIC
8573 constant symbolic expressions including labels. Yield cris_unspec
8574 for all unspecs.
8575 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8576 target to pic_offset_table_rtx for calls that will likely go
8577 through PLT, const0_rtx when they can't. All callers changed.
8578 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8579 symbolic expressions to be PICified. Remove second, redundant,
8580 assert on can_create_pseudo_p returning non-zero. Use
8581 replace_equiv_address_nv, not replace_equiv_address, for final
8582 operand update.
8583 * config/cris/cris.md ("movsi"): Move variable t to pattern
8584 toplevel. Adjust assert for new cris_symbol_type member. Use
8585 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8586 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8587 for lapc stricter.
8588 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8589 ("call", "call_value"): Use second incoming operand as a marker
8590 for pic-offset-table-register being used.
8591 ("*expanded_call_non_v32", "*expanded_call_v32")
8592 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8593 second incoming operand to CALL, match cris_call_type_marker.
8594 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8595 ("*expanded_call_side"): Ditto. Fix typo in comment.
8596 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8597 CONSTANT_P.
8598 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8599 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8600 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8601 users changed. Add members cris_offsettable_symbol and cris_unspec.
8602 (cris_symbol_type): Rename from cris_pic_symbol_type.
8603 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8604 just CONSTANT_P.
8605 * config/cris/cris-protos.h (cris_symbol_type_of,
8606 cris_expand_pic_call_address): Adjust prototypes.
8607 (cris_legitimate_constant_p): New prototype.
8608
8609 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8610 an existing tmake_file. Don't add t-slibgcc and t-linux.
8611
8612 2014-07-17 Jason Merrill <jason@redhat.com>
8613
8614 PR c++/61623
8615 * symtab.c (symtab_remove_from_same_comdat_group): Also
8616 set_comdat_group to NULL_TREE.
8617 (verify_symtab): Fix diagnostic.
8618
8619 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8620
8621 PR target/61662
8622 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8623
8624 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8625
8626 Support location tracking for built-in macro tokens
8627 * input.h (is_location_from_builtin_token): New function declaration.
8628 * input.c (is_location_from_builtin_token): New function definition.
8629 * toplev.c (general_init): Tell libcpp what the pre-defined
8630 spelling location for built-in tokens is.
8631
8632 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8633
8634 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8635 on the FUNCTION_DECL.
8636
8637 2014-07-16 Richard Biener <rguenther@suse.de>
8638
8639 PR other/61782
8640 * doc/extend.texi (always_inline): Clarify.
8641
8642 2014-07-15 Eric Christopher <echristo@gmail.com>
8643
8644 * doc/invoke.texi (Link Options): Document -z option.
8645
8646 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8647
8648 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8649 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8650
8651 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8652
8653 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8654
8655 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
8656
8657 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8658 varpool_assemble_decl.
8659 * varpool.c (varpool_assemble_decl): Assert that node->definition is
8660 true.
8661
8662 2014-07-15 Michael Matz <matz@suse.de>
8663
8664 PR rtl-optimization/61772
8665 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8666
8667 2014-07-15 Richard Biener <rguenther@suse.de>
8668
8669 * opts.c (default_options_table): Disable bit-ccp at -Og.
8670
8671 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8672
8673 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8674
8675 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8676
8677 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8678 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8679 call langhook for unknown declaration.
8680 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8681 * tree.h (DECL_ARGUMENTS): Update.
8682 * print-tree.c (print_node): Update.
8683 * tree-core.h (tree_decl_non_common): Remove arguments.
8684 (tree_function_decl): Add arguments.
8685
8686 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
8687
8688 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8689
8690 2014-07-14 Richard Biener <rguenther@suse.de>
8691
8692 PR tree-optimization/61779
8693 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8694 simplifying a condition.
8695
8696 2014-07-14 Richard Biener <rguenther@suse.de>
8697
8698 * builtins.c (c_strlen): Make only_value == 2 really only
8699 affect warning generation.
8700
8701 2014-07-14 Richard Biener <rguenther@suse.de>
8702
8703 PR tree-optimization/61757
8704 PR tree-optimization/61783
8705 PR tree-optimization/61787
8706 * tree-ssa-dom.c (record_equality): Revert canonicalization
8707 change and add comment.
8708 (propagate_rhs_into_lhs): Revert previous fix, removing
8709 loop depth restriction again.
8710
8711 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8712
8713 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8714 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8715 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8716 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8717 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8718 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8719 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8720
8721 2014-07-14 Richard Biener <rguenther@suse.de>
8722
8723 * cgraph.h (decl_in_symtab_p): Make inline.
8724
8725 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8726
8727 PR middle-end/61294
8728 * doc/invoke.texi (-Wmemset-transposed-args): Document.
8729
8730 PR target/61656
8731 * config/i386/i386.c (classify_argument): Don't merge classes above
8732 number of words.
8733
8734 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
8735
8736 * cgraph.h (symtab_node): Add nonzero_address.
8737 (decl_in_symtab_p): Break out from ...
8738 (symtab_get_node): ... here.
8739 * fold-const.c: Include cgraph.h
8740 (tree_single_nonzero_warnv_p): Use symtab to determine
8741 if symbol is non-zero.
8742 * symtab.c (symtab_node::nonzero_address): New method.
8743
8744 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8745
8746 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8747 forgotten in previous commit.
8748
8749 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8750
8751 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8752 on builtin types.
8753 * ipa-devirt.c: Include stor-layout.h and intl.h
8754 (odr_subtypes_equivalent_p): New function.
8755 (warn_odr): New function.
8756 (warn_type_mismatch): New function.
8757 (odr_types_equivalent_p): New function.
8758 (add_type_duplicate): Use it.
8759 * common.opt (Wodr): New flag.
8760 * doc/invoke.texi (Wodr): Document new warning.
8761
8762 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8763
8764 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8765 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8766 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8767 (varpool_get_constructor): Push CTORS_IN timevar.
8768 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
8769
8770 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
8771
8772 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
8773 Remove VOID_FTYPE_PUSHORT.
8774 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
8775 Change code to USHORT_FTYPE_VOID.
8776 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
8777 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
8778 (ix86_atomic_assign_expand_fenv): Update for
8779 __builtin_ia32_fnstsw changes.
8780 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
8781 (fnstsw): Change operand 0 to nonimmediate operand.
8782
8783 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8784
8785 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
8786 (varpool_get_constructor): New function.
8787 (varpool_ctor_useable_for_folding_p): Break out from ...
8788 (ctor_for_folding): ... here; use varpool_get_constructor.
8789 (varpool_assemble_decl): Likewise.
8790 * lto-streamer.h (struct output_block): Turn cgraph_node
8791 to symbol filed.
8792 (lto_input_variable_constructor): Declare.
8793 * ipa-visibility.c (function_and_variable_visibility): Use
8794 varpool_get_constructor.
8795 * cgraph.h (varpool_get_constructor): Declare.
8796 (varpool_ctor_useable_for_folding_p): New function.
8797 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
8798 parameter; return error_mark_node for non-trivial constructors.
8799 (lto_write_tree_1, DFS_write_tree): Update use of
8800 get_symbol_initial_value.
8801 (output_function): Update initialization of symbol.
8802 (output_constructor): New function.
8803 (copy_function): Rename to ..
8804 (copy_function_or_variable): ... this one; handle vars too.
8805 (lto_output): Output variable sections.
8806 * lto-streamer-in.c (input_constructor): New function.
8807 (lto_read_body): Rename from ...
8808 (lto_read_body_or_constructor): ... this one; handle vars too.
8809 (lto_input_variable_constructor): New function.
8810 * ipa-prop.c (ipa_prop_write_jump_functions,
8811 ipa_prop_write_all_agg_replacement): Update.
8812 * lto-cgraph.c (compute_ltrans_boundary): Use it.
8813 (output_cgraph_opt_summary): Set symbol to NULL.
8814
8815 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8816
8817 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
8818 non-polymorphic types.
8819 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
8820 * ipa-devirt.c (types_same_for_odr): Do not explode when one
8821 of types is not polymorphic.
8822
8823 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
8824
8825 * lra-constraints.c (remove_inheritance_pseudos): Process
8826 destination pseudo too.
8827
8828 2014-07-11 Rong Xu <xur@google.com>
8829
8830 * gcov-tool.c (gcov_output_files): Fix build error introduced in
8831 commit r212448.
8832
8833 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8834
8835 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
8836 * config/avr/avr-devices.c (AVR_MCU): Same.
8837 (avr_mcu_types): add text start value to end of device list.
8838 * config/avr/avr-mcus.def: Add text section start for all devices.
8839 (ata5782): Add new avr5 device.
8840 (ata5831): Same.
8841 * config/avr/avr-tables.opt: Regenerate.
8842 * config/avr/avr.h: Add declaration for text section start handler.
8843 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
8844 SPEC functions.
8845 (LINK_SPEC): Include text section start handler to linker spec.
8846 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
8847 pass -Ttext option to linker if the text section start for the device
8848 is not zero.
8849 * config/avr/t-multilib: Regenerate.
8850 * doc/avr-mmcu.texi: Regenerate.
8851
8852 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
8853
8854 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
8855 * config/rs6000/aix52.h (LINK_SPEC): Same.
8856 * config/rs6000/aix53.h (LINK_SPEC): Same.
8857 * config/rs6000/aix61.h (LINK_SPEC): Same.
8858 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
8859
8860 2014-07-11 Roman Gareev <gareevroman@gmail.com>
8861
8862 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
8863 (graphite_verify): New function.
8864 (ivs_params_clear): New function.
8865 (gcc_expression_from_isl_ast_expr_id): New function.
8866 (gcc_expression_from_isl_expr_int): New function.
8867 (binary_op_to_tree): New function.
8868 (ternary_op_to_tree): New function.
8869 (unary_op_to_tree): New function.
8870 (nary_op_to_tree): New function.
8871 (gcc_expression_from_isl_expr_op): New function.
8872 (gcc_expression_from_isl_expression): New function.
8873 (graphite_create_new_loop): New function.
8874 (translate_isl_ast_for_loop): New function.
8875 (get_upper_bound): New function.
8876 (graphite_create_new_loop_guard): New function.
8877 (translate_isl_ast_node_for): New function.
8878 (translate_isl_ast): New function.
8879 (add_parameters_to_ivs_params): New function.
8880 (scop_to_isl_ast): New parameter ip.
8881 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
8882
8883 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8884
8885 * config/xtensa/predicates.md (call expander): Update for
8886 DECL_SECTION_NAME being string.
8887
8888 2014-07-11 Richard Biener <rguenther@suse.de>
8889
8890 PR middle-end/61473
8891 * builtins.c (fold_builtin_memory_op): Inline memory moves that
8892 can be implemented with a single load followed by a single store.
8893 (c_strlen): Only warn when only_value is not 2.
8894
8895 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
8896
8897 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
8898
8899 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
8900
8901 PR target/61561
8902 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
8903 (*movhi_bytes): Likewise.
8904 (*arm_movqi_insn): Likewise.
8905
8906 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
8907
8908 PR target/56858
8909 * config/alpha/alpha.c: Include tree-pass.h, context.h
8910 and pass_manager.h.
8911 (pass_data_handle_trap_shadows): New pass.
8912 (pass_handle_trap_shadows::gate): New pass gate function.
8913 (make_pass_handle_trap_shadows): New function.
8914 (rest_of_handle_trap_shadows): Ditto.
8915
8916 (alpha_align_insns_1): Rename from alpha_align_insns.
8917 (pass_data_align_insns): New pass.
8918 (pass_align_insns::gate): New pass gate function.
8919 (make_pass_aling_insns): New function.
8920 (rest_of_align_insns): Ditto.
8921 (alpha_align_insns): Ditto.
8922
8923 (alpha_option_override): Declare handle_trap_shadows info
8924 and align_insns_info. Register handle_trap_shadows and align_insns
8925 passes here.
8926 (alpha_reorg): Do not call alpha_trap_shadows and
8927 alpha_align_insn from here.
8928
8929 (alpha_pad_function_end): Do not skip BARRIERs.
8930
8931 2014-07-10 Rong Xu <xur@google.com>
8932
8933 Add gcov-tool: an offline gcda profile processing tool support.
8934 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
8935 (gcov_is_error): Ditto.
8936 (gcov_read_string): Ditto.
8937 (gcov_read_sync): Ditto.
8938 * gcov-io.h: Move counter defines to gcov-counter.def.
8939 * gcov-dump.c (tag_counters): Use gcov-counter.def.
8940 * coverage.c: Ditto.
8941 * gcov-tool.c: Offline gcda profile processing tool.
8942 (unlink_gcda_file): Remove one gcda file.
8943 (unlink_profile_dir): Remove gcda files from the profile path.
8944 (gcov_output_files): Output gcda files to an output dir.
8945 (profile_merge): Merge two profiles in directory.
8946 (print_merge_usage_message): Print merge usage.
8947 (merge_usage): Print merge usage and exit.
8948 (do_merge): Driver for profile merge sub-command.
8949 (profile_rewrite): Rewrite profile.
8950 (print_rewrite_usage_message): Print rewrite usage.
8951 (rewrite_usage): Print rewrite usage and exit.
8952 (do_rewrite): Driver for profile rewrite sub-command.
8953 (print_usage): Print gcov-info usage and exit.
8954 (print_version): Print gcov-info version.
8955 (process_args): Process arguments.
8956 (main): Main routine for gcov-tool.
8957 * Makefile.in: Build and install gcov-tool.
8958 * gcov-counter.def: New file split from gcov-io.h.
8959 * doc/gcc.texi: Include gcov-tool.texi.
8960 * doc/gcov-tool.texi: Document for gcov-tool.
8961
8962 2014-07-10 Richard Biener <rguenther@suse.de>
8963
8964 PR tree-optimization/61757
8965 * tree-ssa-dom.c (loop_depth_of_name): Restore.
8966 (propagate_rhs_into_lhs): Revert part of last change.
8967
8968 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
8969
8970 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
8971 FUNCTION_DECLs.
8972
8973 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
8974
8975 PR middle-end/53590
8976 * function.c (allocate_struct_function): Revert r188667 change.
8977
8978 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
8979
8980 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
8981
8982 * doc/install.texi: Remove links to defunct package providers for
8983 Solaris.
8984
8985 2014-07-09 Tom de Vries <tom@codesourcery.com>
8986
8987 * final.c (get_call_fndecl): Declare.
8988 (self_recursive_call_p): New function.
8989 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
8990
8991 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8992
8993 * ipa-devirt.c (record_node): Walk through aliases.
8994
8995 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8996
8997 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
8998
8999 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9000
9001 Revert:
9002 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9003
9004 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9005
9006 * ipa-visibility.c (function_and_variable_visibility): Remove
9007 temporary hack disabling local aliases on AIX.
9008
9009 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9010
9011 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9012 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9013
9014 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9015
9016 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9017 * rs6000/rs6000.c: Inline output of .set instruction.
9018 (declare_alias_data): New struct.
9019 (rs6000_declare_alias): New function.
9020 (rs6000_xcoff_declare_function_name): Use it.
9021 (rs6000_xcoff_declare_object_name): New function.
9022 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9023 (ASM_OUTPUT_DEF): Turn to empty definition.
9024
9025 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9026
9027 PR bootstrap/61679
9028 * hash-table.h: use hash_table::value_type instead of
9029 Descriptor::value_type in the return types of several methods.
9030
9031 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9032
9033 * tree-pass.h (pass_data): Remove has_execute member.
9034 * passes.c (execute_one_pass): Don't check pass->has_execute.
9035 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9036 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9037 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9038 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9039 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9040 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9041 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9042 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9043 gimple-low.c, gimple-ssa-isolate-paths.c,
9044 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9045 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9046 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9047 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9048 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9049 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9050 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9051 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9052 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9053 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9054 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9055 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9056 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9057 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9058 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9059 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9060 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9061 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9062 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9063 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9064 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9065 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9066 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9067 web.c: Remove initializer for pass_data::has_execute.
9068
9069 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9070
9071 * graphite-htab.h: Use hash_map instead of hash_table.
9072 * graphite-clast-to-gimple.c: Adjust.
9073 * passes.c: Use hash_map instead of hash_table.
9074 * sese.c: Likewise.
9075 * sese.h: Remove now unused code.
9076
9077 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9078
9079 PR target/61599
9080 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9081 than zero.
9082
9083 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9084
9085 PR rtl-optimization/61673
9086 * combine.c (simplify_comparison): Test just mode's sign bit
9087 in tmode rather than the sign bit and any bits above it.
9088
9089 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9090
9091 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9092 Add __isl_give to the declaration.
9093 (generate_isl_schedule): Likewise.
9094 (scop_to_isl_ast): Likewise.
9095
9096 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9097
9098 * config/arm/arm.c (cortexa5_extra_costs): New table.
9099 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9100
9101 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9102
9103 PR tree-optimization/61725
9104 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9105 range, use range_includes_zerop_p instead of integer_zerop on
9106 vr0->min, only use log2 of max if min is not negative.
9107
9108 2014-07-08 Richard Biener <rguenther@suse.de>
9109
9110 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9111 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9112 restriction on loop depth difference.
9113 (record_equality): Likewise.
9114 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9115 (loop_depth_of_name): Remove.
9116 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9117 restriction on loop depth difference.
9118 (init_copy_prop): Likewise.
9119
9120 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9121
9122 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9123 parameter.
9124 (walk_aliased_vdefs): Likewise.
9125 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9126 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9127 (detect_type_change_from_memory_writes): Check if entry was reached.
9128
9129 2014-07-08 Richard Biener <rguenther@suse.de>
9130
9131 PR tree-optimization/61681
9132 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9133 NONLOCAL inside ESCAPED.
9134
9135 2014-07-08 Richard Biener <rguenther@suse.de>
9136
9137 PR tree-optimization/61680
9138 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9139 Handle properly all read-write dependences with group accesses.
9140
9141 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9142
9143 PR tree-optimization/61576
9144 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9145 block containing reduction statement is predecessor of phi basi block.
9146
9147 2014-07-08 Marek Polacek <polacek@redhat.com>
9148
9149 PR c/60226
9150 * fold-const.c (round_up_loc): Change the parameter type.
9151 Remove assert.
9152 * fold-const.h (round_up_loc): Adjust declaration.
9153 * stor-layout.c (finalize_record_size): Check for too large types.
9154
9155 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9156
9157 * symtab.c: Include calls.h.
9158 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9159
9160 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9161
9162 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9163 little-endian code generation.
9164 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9165 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9166 (spe_evmergehilo): Rename to...
9167 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9168 (spe_evmergelo): Rename to...
9169 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9170 (spe_evmergelohi): Rename to...
9171 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9172 (spe_evmergehi, spe_evmergehilo): New expanders.
9173 (spe_evmergelo, spe_evmergelohi): Likewise.
9174 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9175 (*frob_tf_ti): Likewise.
9176 (*frob_<mode>_di_2): Likewise.
9177 (*frob_tf_di_8_2): Likewise.
9178 (*frob_di_<mode>): Likewise.
9179 (*frob_ti_tf): Likewise.
9180 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9181 (*frob_ti_<mode>_8_2): Likewise.
9182 (*frob_ti_tf_2): Likewise.
9183 (mov_si<mode>_e500_subreg0): Rename to...
9184 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9185 endianness only.
9186 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9187 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9188 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9189 the big endianness only.
9190 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9191 (*mov_si<mode>_e500_subreg0_2): Rename to...
9192 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9193 big big endianness only.
9194 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9195 (*mov_si<mode>_e500_subreg4): Rename to...
9196 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9197 endianness only.
9198 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9199 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9200 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9201 the big endianness only.
9202 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9203 pattern.
9204 (*mov_si<mode>_e500_subreg4_2): Rename to...
9205 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9206 endianness only.
9207 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9208 (*mov_sitf_e500_subreg8): Rename to...
9209 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9210 endianness only.
9211 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9212 (*mov_sitf_e500_subreg8_2): Rename to...
9213 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9214 endianness only.
9215 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9216 (*mov_sitf_e500_subreg12): Rename to...
9217 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9218 endianness only.
9219 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9220 (*mov_sitf_e500_subreg12_2): Rename to...
9221 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9222 endianness only.
9223 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9224
9225 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9226
9227 * asan.c (instrument_strlen_call): Do not instrument first byte
9228 in strlen if already instrumented.
9229
9230 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9231
9232 * config/arm/arm.opt (mwords-little-endian): Delete.
9233 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9234 of TARGET_LITTLE_WORDS.
9235 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9236 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9237 warning.
9238 * doc/invoke.texi: Remove references to -mwords-little-endian.
9239
9240 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9241
9242 * expmed.c (struct init_expmed_rtl): Change all fields but
9243 pow2 and cint from struct rtx_def to rtx.
9244 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9245 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9246 at the end again.
9247
9248 2014-07-06 Marek Polacek <polacek@redhat.com>
9249
9250 PR c/6940
9251 * doc/invoke.texi: Document -Wsizeof-array-argument.
9252
9253 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9254
9255 * wide-int.h (wide_int_storage): Change declaration from struct
9256 to class.
9257
9258 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9259
9260 * cgraph.c (cgraph_create_indirect_edge): Update call of
9261 get_polymorphic_call_info.
9262 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9263 (possible_polymorphic_call_targets): Add parameter call.
9264 (decl_maybe_in_construction_p): New predicate.
9265 (get_polymorphic_call_info): Add parameter call;
9266 use decl_maybe_in_construction_p.
9267 * gimple-fold.c (fold_gimple_assign): Update use of
9268 possible_polymorphic_call_targets.
9269 (gimple_fold_call): Likewise.
9270 * ipa-prop.c: Inlcude calls.h
9271 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9272 (param_type_may_change_p): New predicate.
9273 (detect_type_change_from_memory_writes): Break out from ...
9274 (detect_type_change): ... this one; use param_type_may_change_p.
9275 (detect_type_change_ssa): Use param_type_may_change_p.
9276 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9277
9278 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9279
9280 PR target/49423
9281 * config/arm/arm-protos.h (arm_legitimate_address_p,
9282 arm_is_constant_pool_ref): Add prototypes.
9283 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9284 (arm_is_constant_pool_ref) New function.
9285 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9286 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9287 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9288 operand. Remove pool_range and neg_pool_range attributes.
9289 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9290 pool_range and neg_pool_range attributes.
9291 * config/arm/constraints.md (Uh): New constraint.
9292 (Uq): Don't allow constant pool references.
9293
9294 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9295
9296 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9297 (move_lo_quad_internal_be_<mode>): Likewise.
9298 (move_lo_quad_<mode>): Convert to define_expand.
9299 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9300 (aarch64_simd_move_hi_quad_be_<mode>): New.
9301 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9302 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9303 (aarch64_combinez_be<mode>): New.
9304 (aarch64_combine<mode>): Convert to define_expand.
9305 (aarch64_combine_internal<mode>): New.
9306 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9307
9308 2014-07-04 Tom de Vries <tom@codesourcery.com>
9309
9310 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9311 combination of earlyclobber and read/write modifiers.
9312
9313 2014-07-04 Tom de Vries <tom@codesourcery.com>
9314
9315 * config/aarch64/aarch64-simd.md
9316 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9317
9318 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9319
9320 PR target/61714
9321 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9322
9323 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9324
9325 PR middle-end/61654
9326 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9327
9328 PR tree-optimization/61684
9329 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9330 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9331
9332 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9333 Kito Cheng <kito@0xlab.org>
9334 Monk Chiang <sh.chiang04@gmail.com>
9335
9336 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9337 (nds32_symbol_load_store_p): Move to ...
9338 (nds32_fp_as_gp_check_available): Move to ...
9339 * config/nds32/nds32-fp-as-gp.c: ... here.
9340 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9341 extern declaration.
9342
9343 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9344 Kito Cheng <kito@0xlab.org>
9345 Monk Chiang <sh.chiang04@gmail.com>
9346
9347 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9348 (nds32_expand_store_multiple): Move to ...
9349 (nds32_expand_movmemqi): Move to ...
9350 * config/nds32/nds32-memory-manipulation.c: ... here.
9351
9352 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9353 Kito Cheng <kito@0xlab.org>
9354 Monk Chiang <sh.chiang04@gmail.com>
9355
9356 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9357 (nds32_output_casesi_pc_relative): Move to ...
9358 (nds32_output_casesi): Move to ...
9359 (nds32_mem_format): Move to ...
9360 (nds32_output_16bit_store): Move to ...
9361 (nds32_output_16bit_load): Move to ...
9362 (nds32_output_32bit_store): Move to ...
9363 (nds32_output_32bit_load): Move to ...
9364 (nds32_output_32bit_load_s): Move to ...
9365 (nds32_output_stack_push): Move to ...
9366 (nds32_output_stack_pop): Move to ...
9367 * config/nds32/nds32-md-auxiliary.c: ... here.
9368
9369 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9370 Ling-Hua Tseng <uranus@tinlans.org>
9371
9372 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9373 the purpose of this file.
9374
9375 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9376 Kito Cheng <kito@0xlab.org>
9377 Monk Chiang <sh.chiang04@gmail.com>
9378
9379 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9380 (nds32_address_cost): Move implementation to ...
9381 * config/nds32/nds32-cost.c: ... here.
9382 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9383 (nds32_address_cost_impl): Declare.
9384
9385 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9386 Kito Cheng <kito@0xlab.org>
9387 Monk Chiang <sh.chiang04@gmail.com>
9388
9389 * config/nds32/nds32.c
9390 (nds32_consecutive_registers_load_store_p): Move to ...
9391 (nds32_valid_multiple_load_store): Move to ...
9392 (nds32_valid_stack_push_pop): Move to ...
9393 (nds32_can_use_bclr_p): Move to ...
9394 (nds32_can_use_bset_p): Move to ...
9395 (nds32_can_use_btgl_p): Move to ...
9396 (nds32_can_use_bitci_p): Move to ...
9397 * config/nds32/nds32-predicates.c: ... here.
9398
9399 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9400 Kito Cheng <kito@0xlab.org>
9401 Monk Chiang <sh.chiang04@gmail.com>
9402
9403 * config/nds32/nds32.c
9404 (nds32_expand_builtin_null_ftype_reg): Move to ...
9405 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9406 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9407 (nds32_init_builtins): Move implementation to ...
9408 (nds32_expand_builtin): Move implementation to ...
9409 * config/nds32/nds32-intrinsic.c: ... here.
9410 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9411 (nds32_expand_builtin_impl): Declare.
9412
9413 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9414 Kito Cheng <kito@0xlab.org>
9415 Monk Chiang <sh.chiang04@gmail.com>
9416
9417 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9418 (nds32_emit_section_tail_template): Move to ...
9419 (nds32_emit_isr_jmptbl_section): Move to ...
9420 (nds32_emit_isr_vector_section): Move to ...
9421 (nds32_emit_isr_reset_conten): Move to ...
9422 (nds32_check_isr_attrs_conflict): Move to ...
9423 (nds32_construct_isr_vectors_information): Move to ...
9424 (nds32_asm_file_start): Move implementation to ...
9425 (nds32_asm_file_end): Move implementation to ...
9426 * config/nds32/nds32-isr.c: ... here.
9427 * config/nds32/nds32-protos.h
9428 (nds32_check_isr_attrs_conflict): Declare.
9429 (nds32_construct_isr_vectors_information): Declare.
9430 (nds32_asm_file_start_for_isr): Declare.
9431 (nds32_asm_file_end_for_isr): Declare.
9432
9433 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9434 Kito Cheng <kito@0xlab.org>
9435 Monk Chiang <sh.chiang04@gmail.com>
9436
9437 * config.gcc (nds32*): Add new modules to extra_objs.
9438 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9439 (nds32be-*-*): Likewise.
9440 * config/nds32/nds32-cost.c: New file.
9441 * config/nds32/nds32-fp-as-gp.c: New file.
9442 * config/nds32/nds32-intrinsic.c: New file.
9443 * config/nds32/nds32-isr.c: New file.
9444 * config/nds32/nds32-md-auxiliary.c: New file.
9445 * config/nds32/nds32-memory-manipulation.c: New file.
9446 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9447 * config/nds32/nds32-predicates.c: New file.
9448 * config/nds32/t-nds32: New file.
9449
9450 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9451
9452 PR tree-optimization/61682
9453 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9454 using cases and when one of the operands is equal to 1.
9455
9456 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9457
9458 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9459 ashr<mode>3): Correct mode of operands[2].
9460 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9461 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9462 Correct mode of operands[2]. Fix split condition.
9463
9464 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9465
9466 * arm.md (arch): Add armv6_or_vfpv3.
9467 (arch_enabled): Add test for the above.
9468 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9469 on VFP9.
9470 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9471
9472 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9473
9474 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9475 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9476 HWI 1 and negate the unsigned value.
9477 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9478 use AND instead of shift.
9479 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9480
9481 2014-07-03 Marek Polacek <polacek@redhat.com>
9482
9483 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9484 (-fsanitize=float-divide-by-zero): Move to the table with
9485 -fsanitize=undefined suboptions.
9486 (-fsanitize=float-cast-overflow): Likewise.
9487
9488 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9489
9490 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9491 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9492 endianness.
9493
9494 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9495
9496 * loop-invariant.c (struct invariant): Add a new member: eqno;
9497 (find_identical_invariants): Update eqno;
9498 (create_new_invariant): Init eqno;
9499 (get_inv_cost): Compute comp_cost with eqno;
9500
9501 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9502
9503 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9504 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9505 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9506 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9507 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9508
9509 2014-07-02 Christian Bruel <christian.bruel@st.com>
9510
9511 PR target/29349
9512 PR target/53513
9513 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9514 (make_preds_opaque): Delete.
9515 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9516 (commit_mode_sets): New function.
9517 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9518 Process all modes at once.
9519 * basic-block.h (pre_edge_lcm_avs): Declare.
9520 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9521 Call clear_aux_for_edges. Fix comments.
9522 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9523 (pre_edge_rev_lcm): Idem.
9524 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9525 parameter.
9526 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9527 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9528 Idem.
9529 * config/i386/i386.c (x96_emit_mode_set): Idem.
9530 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9531 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9532 (fpscr_toggle) Disallow from delay slot.
9533 * target.def (emit_mode_set): Add prev_mode parameter.
9534 * doc/tm.texi: Regenerate.
9535
9536 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9537
9538 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9539 variable i.
9540
9541 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9542
9543 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9544 vtable_pointer_value_to_vtable): Constify.
9545 (contains_polymorphic_type_p): Declare.
9546 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9547 vtable_pointer_value_to_vtable): Constify.
9548 (contains_polymorphic_type_p): New predicate.
9549 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9550 polymorphic types.
9551 (ipa_set_ancestor_jf): Likewise.
9552 (detect_type_change): Return false in easy cases.
9553 (compute_complex_assign_jump_func): Require type to contain
9554 polymorphic type.
9555 (compute_known_type_jump_func): Likewise.
9556
9557 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9558
9559 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9560 Remove.
9561 (type_in_anonymous_namespace_p): Constify argument.
9562 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9563 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9564 (main_odr_variant): New function.
9565 (hash_type_name): Make static; update assert; do not ICE on
9566 non-records.
9567 (types_same_for_odr): Bring here from tree.c; simplify and remove
9568 old structural comparing code that doesn't work for templates.
9569 (odr_hasher::equal): Update assert.
9570 (add_type_duplicate): Return true when bases should be computed;
9571 replace incomplete loader by complete; do not output duplicated
9572 warnings; do not ICE on non-records; set odr_violated flag.
9573 (get_odr_type): Be ready to replace incomplete type by complete
9574 one; work on ODR variants instead of main variants; reorder item
9575 in array so bases have still smaller indexes.
9576 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9577 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9578
9579 2014-07-01 Cary Coutant <ccoutant@google.com>
9580
9581 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9582 lookup.
9583 (resolve_addr_in_expr): When replacing the rtx in a location list
9584 entry, get a new address table entry.
9585 (dwarf2out_finish): Call index_location_lists even if there are no
9586 addr_index_table entries yet.
9587
9588 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9589
9590 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9591 change for not being obvious.
9592
9593 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9594
9595 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9596 unused argument.
9597
9598 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9599
9600 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9601 (vcagt_f64): Likewise.
9602 (vcale_f64): Likewise.
9603 (vcaled_f64): Likewise.
9604 (vcales_f32): Likewise.
9605 (vcalt_f64): Likewise.
9606 (vcaltd_f64): Likewise.
9607 (vcalts_f32): Likewise.
9608
9609 2014-07-01 Marek Polacek <polacek@redhat.com>
9610
9611 * doc/invoke.texi: Document -Wint-conversion.
9612
9613 2014-07-01 Marek Polacek <polacek@redhat.com>
9614
9615 PR c/58286
9616 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9617
9618 2014-07-01 Martin Liska <mliska@suse.cz>
9619
9620 IPA REF alias refactoring
9621 * cgraph.h (iterate_direct_aliases): New function.
9622 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9623 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9624 FOR_EACH_ALIAS added.
9625 (cgraph_for_node_and_aliases): Likewise.
9626 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9627 * ipa-inline.c (reset_edge_caches): Likewise.
9628 (update_caller_keys): Likewise.
9629 * trans-mem.c (ipa_tm_execute): Likewise.
9630 *varpool.c (varpool_analyze_node): Likewise.
9631 (varpool_for_node_and_aliases): Likewise.
9632 * ipa-ref.h (first_alias): New function.
9633 (last_alias): Likewise.
9634 (has_aliases_p): Likewise.
9635 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9636 is sensitive to IPA_REF_ALIASes.
9637 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9638 are put at the beginning of the list.
9639 (symtab_node::iterate_direct_aliases): New function.
9640
9641 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9642
9643 Revert:
9644 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9645 type is complete.
9646 (write_ts_type_common_tree_pointers): Do not stream fields not set
9647 for incomplete types; do not stream duplicated fields for variants;
9648 sanity check that variant and type match.
9649 (write_ts_type_non_common_tree_pointers): Likewise.
9650 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9651 TYPE_SIZE whether type is complete.
9652 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9653 write_ts_type_common_tree_pointers
9654 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9655
9656 2014-06-30 Joseph Myers <joseph@codesourcery.com>
9657
9658 * var-tracking.c (add_stores): Return instead of asserting if old
9659 and new values for conditional store are the same.
9660
9661 2014-06-30 Richard Henderson <rth@redhat.com>
9662
9663 PR rtl-opt/61608
9664 PR target/39284
9665 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9666 the cfg if there were any changes.
9667 * passes.def: Revert move of peephole2 after reorder_blocks;
9668 move duplicate_computed_gotos before peephole2.
9669
9670 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
9671
9672 * except.c (emit_note_eh_region_end): New helper function.
9673 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9674 emit EH_REGION_END note.
9675 * jump.c (cleanup_barriers): Do not split a call and its
9676 corresponding CALL_ARG_LOCATION note.
9677
9678 2014-06-30 Jeff Law <law@redhat.com>
9679
9680 PR tree-optimization/61607
9681 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9682 deeper into the SSA_NAME_VALUE chain.
9683
9684 2014-06-30 Marek Polacek <polacek@redhat.com>
9685
9686 * convert.c (convert_to_integer): Don't instrument conversions if the
9687 function has no_sanitize_undefined attribute.
9688 * ubsan.c: Don't run the ubsan pass if the function has
9689 no_sanitize_undefined attribute.
9690
9691 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9692
9693 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9694 -fsanitize=undefined suboptions.
9695
9696 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
9697
9698 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9699 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9700 against bigendian and adjust indices.
9701
9702 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9703
9704 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
9705
9706 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
9707
9708 PR target/61633
9709 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9710 Add alternative; make early clobber. Adjust both split patterns
9711 to use operand 0 as the working register.
9712
9713 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9714
9715 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9716 as ira_object_id_map might be NULL, or 1.
9717
9718 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9719
9720 * loop-invariant.c (get_inv_cost): Handle register class.
9721 (gain_for_invariant): Check the register pressure of the inv
9722 and its overlapped register class, other than all.
9723
9724 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9725
9726 * doc/invoke.texi (Optimize Options): Fix descriptions of
9727 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9728
9729 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
9730
9731 * doc/extend.texi (Function Attributes): Update 'naked' attribute
9732 documentation.
9733
9734 2014-06-29 Tobias Grosser <tobias@grosser.es>
9735
9736 PR bootstrap/61650
9737 * graphite-isl-ast-to-gimple.c: Add missing guards.
9738
9739 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9740
9741 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9742 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9743 * flag-types.h: Add new enum fgraphite_generator.
9744 * graphite-isl-ast-to-gimple.c: New.
9745 * graphite-isl-ast-to-gimple.h: New.
9746 * graphite.c (graphite_transform_loops): Add choice of Graphite
9747 code generator, which depends on flag_graphite_code_gen.
9748
9749 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9750
9751 * graphite-dependences.c (subtract_commutative_associative_deps):
9752 Add NULL checking of the following variables: must_raw_no_source,
9753 may_raw_no_source, must_war_no_source, may_war_no_source,
9754 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9755 must_war, may_war, must_waw, may_waw.
9756
9757 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9758
9759 * graphite-clast-to-gimple.c: gloog is renamed to
9760 graphite_regenerate_ast_cloog. gloog_error is renamed to
9761 graphite_regenerate_error.
9762 * graphite-clast-to-gimple.h: The definition of the struct
9763 bb_pbb_def is moved to graphite-htab.h.
9764 Add inclusion of the hash-table.h.
9765 * graphite-htab.h: The declaration of the function gloog is moved
9766 to graphite-clast-to-gimple.h and renamed to
9767 graphite_regenerate_ast_cloog.
9768 * graphite.c (graphite_transform_loops): gloog is renamed
9769 to graphite_regenerate_ast_cloog.
9770
9771 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9772
9773 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9774 type is complete.
9775 (write_ts_type_common_tree_pointers): Do not stream fields not set
9776 for incomplete types; do not stream duplicated fields for variants;
9777 sanity check that variant and type match.
9778 (write_ts_type_non_common_tree_pointers): Likewise.
9779 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9780 TYPE_SIZE whether type is complete.
9781 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9782 write_ts_type_common_tree_pointers
9783 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9784
9785 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9786
9787 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
9788
9789 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9790
9791 * tree-inline.c (remap_type_1): Do not duplicate fields
9792 that are shared in between type and its main variant.
9793
9794 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9795
9796 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
9797 of the type.
9798 (ipa_set_ancestor_jf) Likewise.
9799 (check_stmt_for_type_change): Check that we work on main variant.
9800 (detect_type_change): Look into main variant.
9801 (compute_known_type_jump_func): Check that main variant has BINFO.
9802
9803 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9804
9805 * ipa-devirt.c (set_type_binfo): New function.
9806 (add_type_duplicate): Use it.
9807 (get_odr_type): Sanity check that binfos points to main variants.
9808 (get_class_context): Be sure the context's outer_type is main variant.
9809 (contains_type_p): Walk main variant.
9810 (get_polymorphic_call_info_for_decl): Set outer_type to be
9811 main variant.
9812 (get_polymorphic_call_info): Likewise.
9813 (possible_polymorphic_call_targets): Sanity check that we operate
9814 on main variant.
9815
9816 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9817
9818 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9819
9820 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9821
9822 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
9823 accidental change due to wide-int branch merge.
9824
9825 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9826
9827 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
9828 compressed debug support.
9829 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
9830 * configure: Regenerate.
9831 * config.in: Regenerate.
9832 * common.opt (compressed_debug_sections): New enum.
9833 (gz, gz=): New options.
9834 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
9835 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
9836 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
9837 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
9838 LINK_COMPRESS_DEBUG_SPEC.
9839 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
9840 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
9841 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
9842 (Debugging Options): Document -gz[=type].
9843
9844 2014-06-27 Martin Jambor <mjambor@suse.cz>
9845
9846 PR ipa/61160
9847 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
9848 args_to_skip, use those from node instead. Copy args_to_skip and
9849 combined_args_to_skip from node to the new thunk.
9850 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
9851 (cgraph_create_virtual_clone): Moved computation of
9852 combined_args_to_skip...
9853 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
9854
9855 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
9856
9857 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
9858 redundant diagnostic machinary.
9859
9860 2014-06-27 Richard Biener <rguenther@suse.de>
9861
9862 * tree-ssa-math-opts.c (bswap_replace): Fix
9863 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
9864
9865 2014-06-27 Martin Liska <mliska@suse.cz>
9866
9867 * gimple.h (gimple_location_safe): New function introduced.
9868 * cgraphunit.c (walk_polymorphic_call_targets): Usage
9869 of gimple_location_safe replaces gimple_location.
9870 (gimple_fold_call): Likewise.
9871 * ipa-devirt.c (ipa_devirt): Likewise.
9872 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9873 * ipa.c (walk_polymorphic_call_targets): Likewise.
9874 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9875
9876 2014-06-27 Jakub Jelinek <jakub@redhat.com>
9877
9878 PR tree-optimization/57233
9879 PR tree-optimization/61299
9880 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
9881 functions.
9882 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
9883 would be lowered to scalar shifts, check if corresponding
9884 shifts and vector BIT_IOR_EXPR are supported and don't lower
9885 or lower just to narrower vector type in that case.
9886 * expmed.c (expand_shift_1): Fix up handling of vector
9887 shifts and rotates.
9888
9889 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
9890
9891 PR target/61586
9892 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
9893
9894 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
9895
9896 * doc/invoke.texi (-fsemantic-interposition): Document.
9897 * common.opt (fsemantic-interposition): New flag.
9898 * varasm.c (decl_replaceable_p): Use it.
9899
9900 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9901
9902 PR target/61542
9903 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
9904 extraction other than index 3.
9905
9906 2014-06-26 Teresa Johnson <tejohnson@google.com>
9907
9908 * doc/invoke.texi: Fix typo.
9909 * dumpfile.c: Add support for documented -fdump-* options
9910 optimized/missed/note/optall.
9911
9912 2014-06-26 Martin Jambor <mjambor@suse.cz>
9913
9914 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
9915 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
9916 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
9917 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
9918 * opts.c (default_options_optimization): Set
9919 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
9920 * doc/invoke.texi (allow-load-data-races)
9921 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
9922 (allow-store-data-races): Document the new default.
9923
9924 2014-06-26 Martin Jambor <mjambor@suse.cz>
9925
9926 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
9927 renamed to ipa_impossible_devirt_target. Fix typo.
9928 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
9929 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
9930 ipa_impossible_devirt_target.
9931
9932 2014-06-26 Richard Biener <rguenther@suse.de>
9933
9934 PR tree-optimization/61607
9935 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
9936 explaining why we restrict copies on loop depth.
9937 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9938 on loop depth.
9939 (record_equivalences_from_phis): Instead add it here.
9940
9941 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
9942
9943 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
9944 (LTO_WRAPPER_OBJS): New variable.
9945 (lto-wrapper$(exeext)): Use it.
9946 * collect2.c: Include "collect-utils.h".
9947 (verbose, debug): Remove variables.
9948 (at_file_supplied): No longer static.
9949 (tool_name): New variable.
9950 (do_wait, fork_execute, maybe_unlink): Don't declare.
9951 (tool_cleanup): No longer static.
9952 (notice): Remove function.
9953 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
9954 fork_execute calls.
9955 (collect_wait, do_wait, collect_execute): Remove functions.
9956 (maybe_unlink): No longer static.
9957 * collect2.h (verbose, debug): Don't declare.
9958 (at_file_supplied): Declare.
9959 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
9960 changed.
9961 (collect_execute): Replace with implementation from collect2, plus a
9962 new arg use_atfile. All callers changed.
9963 (collect_wait): Replace with implementation from collect2.
9964 (maybe_unlink_file): Remove function.
9965 (fork_execute): Replace with implementation from collect2, plus a
9966 new arg use_atfile. All callers changed.
9967 (do_wait): Add call to utils_cleanup to the error path.
9968 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
9969 (tool_cleanup): Adjust declarations.
9970 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
9971 * tlink.c: Include "collect-utils.h".
9972 (tlink_execute): New arg use_atfile. All callers changed.
9973 (tlink_init, tlink_execute): Remove declarations.
9974
9975 * collect-utils.c (save_temps): New variable.
9976 (do_wait): Use it instead of debug. Use fatal_error.
9977 * collect-utils.h (save_temps): Declare.
9978 * collect2.c (verbose): Rename from vflag. All uses changed.
9979 (tool_cleanup): New function, copied from collect_atexit.
9980 (collect_atexit, handler): Just call it.
9981 * collect2.h (verbose): Declaration renamed from vflag.
9982 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
9983 debug.
9984
9985 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
9986 (lto-wrapper$(exeext)): Link with collect-utils.o.
9987 * collect-utils.c: New file.
9988 * collect-utils.h: New file.
9989 * lto-wrapper.c: Include "collect-utils.h".
9990 (args_name): Delete variable.
9991 (tool_name): New variable.
9992 (tool_cleanup): New function.
9993 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
9994 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
9995 (fork_execute): Remove functions.
9996
9997 2014-06-26 Nick Clifton <nickc@redhat.com>
9998
9999 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10000
10001 * doc/extend.texi (Function Attributes): Fix typo in description
10002 of RX vector attribute.
10003
10004 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10005
10006 * config.gcc (supported_defaults): Error when passing either
10007 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10008
10009 2014-06-26 Richard Biener <rguenther@suse.de>
10010
10011 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10012 propagating volatile pointers.
10013
10014 2014-06-26 Richard Biener <rguenther@suse.de>
10015
10016 PR tree-optimization/61607
10017 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10018 loop if we redirected its latch edge.
10019 (thread_block_1): Do not cancel loops prematurely.
10020
10021 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10022
10023 * toplev.c (backend_init_target): Move init_emit_regs and
10024 init_regs to...
10025 (backend_init) ... here; skip ira_init_once and backend_init_target.
10026 (target_reinit) ... and here; clear
10027 this_target_rtl->lang_dependent_initialized.
10028 (lang_dependent_init_target): Clear
10029 this_target_rtl->lang_dependent_initialized;
10030 break out rtl initialization to ...
10031 (initialize_rtl): ... here; call also backend_init_target
10032 and ira_init_once.
10033 * toplev.h (initialize_rtl): New function.
10034 * function.c: Include toplev.h
10035 (init_function_start): Call initialize_rtl.
10036 * rtl.h (target_rtl): Add target_specific_initialized,
10037 lang_dependent_initialized.
10038
10039 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10040 Jakub Jelinek <jakub@redhat.com>
10041
10042 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10043
10044 2014-06-25 Tom de Vries <tom@codesourcery.com>
10045
10046 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10047
10048 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10049
10050 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10051 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10052 Issue a strict overflow warning if appropriate.
10053
10054 2014-06-25 Martin Liska <mliska@suse.cz>
10055
10056 IPA REF refactoring
10057 * Makefile.in: Removed header file (ipa-ref-inline.h).
10058 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10059 called.
10060 (cgraph_speculative_call_info): Likewise.
10061 (cgraph_for_node_thunks_and_aliases): Likewise.
10062 (cgraph_for_node_and_aliases): Likewise.
10063 (verify_cgraph_node): Likewise.
10064 * cgraph.h: Batch of IPA REF functions become member functions of
10065 symtab_node: add_reference, maybe_add_reference, clone_references,
10066 clone_referring, clone_reference, find_reference,
10067 remove_stmt_references, remove_all_references,
10068 remove_all_referring, dump_references, dump_referring,
10069 has_alias_p, iterate_reference, iterate_referring.
10070 * cgraphbuild.c (record_reference): New IPA REF function used.
10071 (record_type_list): Likewise.
10072 (record_eh_tables): Likewise.
10073 (mark_address): Likewise.
10074 (mark_load): Likewise.
10075 (mark_store): Likewise.
10076 (pass_build_cgraph_edges): Likewise.
10077 (rebuild_cgraph_edge): Likewise.
10078 (cgraph_rebuild_references): Likewise.
10079 (pass_remove_cgraph_callee_edges): Likewise.
10080 * cgraphclones.c (cgraph_clone_node): Likewise.
10081 (cgraph_create_virtual_clone): Likewise.
10082 (cgraph_materialize_clone): Likewise.
10083 (cgraph_materialize_all_clones): Likewise.
10084 * cgraphunit.c (cgraph_reset_node): Likewise.
10085 (cgraph_reset_node): Likewise.
10086 (analyze_function): Likewise.
10087 (assemble_thunks_and_aliases): Likewise.
10088 (expand_function): Likewise.
10089 * ipa-comdats.c (propagate_comdat_group): Likewise.
10090 (enqueue_references): Likewise.
10091 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10092 (create_specialized_node): Likewise.
10093 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10094 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10095 * ipa-inline.c (reset_edge_caches): Likewise.
10096 (update_caller_keys): Likewise.
10097 (execute): Likewise.
10098 * ipa-prop.c (remove_described_reference): Likewise.
10099 (propagate_controlled_uses): Likewise.
10100 (ipa_edge_duplication_hook): Likewise.
10101 (ipa_modify_call_arguments): Likewise.
10102 * ipa-pure-const.c (propagate_pure_const): Likewise.
10103 * ipa-ref-inline.h: Header file removed, functions moved
10104 to symtab_node class.
10105 * ipa-ref.c (remove_reference): New class member function.
10106 (cannot_lead_to_return): New class member function.
10107 (referring_ref_list): Likewise.
10108 (referred_ref_list): Likewise.
10109 Rest of functions moved to symtab_node class.
10110 * ipa-ref.h: New member functions remove_reference,
10111 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10112 to ipa_ref class.
10113 ipa_ref_list class has new member functions: first_reference,
10114 first_referring, clear, nreferences.
10115 * ipa-reference.c (analyze_function): New IPA REF function used.
10116 (write_node_summary_p): Likewise.
10117 (ipa_reference_write_optimization_summary): Likewise.
10118 * ipa-split.c (split_function): Likewise.
10119 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10120 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10121 (function_and_variable_visibility): Likewise.
10122 * ipa.c (has_addr_references_p): Likewise.
10123 (process_references): Argument type changed.
10124 (symtab_remove_unreachable_nodes): New IPA REF function used.
10125 (process_references): Likewise.
10126 (set_writeonly_bit): Likewise.
10127 * lto-cgraph.c: Implementation of new symtab_node member functions
10128 that uses new IPA REF functions.
10129 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10130 function used.
10131 * lto-streamer-out.c (output_symbol_p): Likewise.
10132 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10133 changed.
10134 * symtab.c: Implementation of new IPA REF API.
10135 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10136 (ipa_tm_create_version): Likewise.
10137 (ipa_tm_execute): Likewise.
10138 * tree-emutls.c (gen_emutls_addr): Likewise.
10139 * tree-inline.c (copy_bb): Likewise.
10140 (delete_unreachable_blocks_update_callgraph): Likewise.
10141 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10142 (varpool_for_node_and_aliases): Likewise.
10143
10144 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10145
10146 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10147
10148 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10149
10150 PR bootstrap/61598
10151 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10152 tree_node * instead of tree_node *.
10153 (fold): Adjust.
10154 (print_fold_checksum): Likewise.
10155 (fold_check_failed): Likewise.
10156 (debug_fold_checksum): Likewise.
10157 (fold_build1_stat_loc): Likewise.
10158 (fold_build2_stat_loc): Likewise.
10159 (fold_build3_stat_loc): Likewise.
10160 (fold_build_call_array_loc): Likewise.
10161
10162 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10163
10164 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10165 implementation with call to...
10166 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10167 function.
10168 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10169 Declare.
10170
10171 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10172
10173 PR tree-optimization/57742
10174 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10175 after replacing the statement.
10176
10177 2014-06-25 Nick Clifton <nickc@redhat.com>
10178
10179 * config/v850/v850.c (GHS_default_section_names): Change to const
10180 char * type.
10181 (GHS_current_section_names): Likewise.
10182 (v850_insert_attributes): Do not build strings, just assign the
10183 names directly. Change the type of 'chosen_section' to const
10184 char*.
10185 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10186 directly to the array entry.
10187 * config/v850/v850.h (GHS_default_section_names): Change to const
10188 char * type.
10189 (GHS_current_section_names): Likewise.
10190
10191 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10192
10193 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10194 (LANG_HOOKS_DECLS): Add it.
10195 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10196 has correct type.
10197 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10198 * langhooks.h (struct lang_hooks_for_decls): Add
10199 omp_clause_linear_ctor hook.
10200 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10201 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10202 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10203 combined simd loop use omp_clause_linear_ctor hook.
10204
10205 2014-06-24 Cong Hou <congh@google.com>
10206
10207 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10208 pattern recognition.
10209 (type_conversion_p): PROMOTION is true if it's a type promotion
10210 conversion, and false otherwise. Return true if the given expression
10211 is a type conversion one.
10212 * tree-vectorizer.h: Adjust the number of patterns.
10213 * tree.def: Add SAD_EXPR.
10214 * optabs.def: Add sad_optab.
10215 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10216 * expr.c (expand_expr_real_2): Likewise.
10217 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10218 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10219 * optabs.c (optab_for_tree_code): Likewise.
10220 * tree-cfg.c (estimate_operator_cost): Likewise.
10221 * tree-ssa-operands.c (get_expr_operands): Likewise.
10222 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10223 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10224 * doc/generic.texi: Add document for SAD_EXPR.
10225 * doc/md.texi: Add document for ssad and usad.
10226
10227 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10228
10229 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10230 qualification in cast.
10231
10232 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10233
10234 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10235 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10236 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10237 (tree_function_decl): ... here.
10238 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10239 streaming of vindex to ...
10240 (write_ts_function_decl_tree_pointers): ... here.
10241 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10242 Do not stream DECL_VINDEX.
10243 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10244
10245 2014-06-24 Catherine Moore <clm@codesourcery.com>
10246 Sandra Loosemore <sandra@codesourcery.com>
10247
10248 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10249 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10250 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10251
10252 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10253
10254 * doc/invoke.texi (Warning Options): Remove duplicated
10255 -Wmaybe-uninitialized.
10256
10257 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10258
10259 PR tree-optimization/57742
10260 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10261 (handle_builtin_malloc, handle_builtin_memset): New functions.
10262 (strlen_optimize_stmt): Call them.
10263 * passes.def: Move strlen after loop+dom but before vrp.
10264
10265 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10266
10267 PR target/61570
10268 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10269 model family 6 CPU with has_longmode never use a CPU without
10270 64-bit support.
10271
10272 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10273
10274 PR target/61570
10275 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10276 the last change.
10277
10278 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10279
10280 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10281 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10282 pointer_map.
10283 * hash-map.h: New file.
10284 * ipa-comdats.c: Use hash_map instead of pointer_map.
10285 * ipa.c: Likewise.
10286 * lto-section-out.c: Adjust.
10287 * lto-streamer.h: Replace pointer_map with hash_map.
10288 * symtab.c (verify_symtab): Likewise.
10289 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10290 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10291 * tree-streamer.h: Likewise.
10292 * tree-streamer.c: Adjust.
10293 * pointer-set.h: Remove pointer_map.
10294
10295 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10296
10297 * hash-table.h: Add a template arg to choose between storing values
10298 and storing pointers to values, and then provide partial
10299 specializations for both.
10300 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10301 should store, not the type values should point to.
10302 * tree-into-ssa.c (var_info_hasher): Likewise.
10303 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10304 * tree-complex.c: Adjust.
10305 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10306 table instead of int_tree_map *.
10307 * tree-parloops.c: Adjust.
10308 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10309 type is being stored.
10310 * tree-vectorizer.c: Adjust.
10311
10312 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10313
10314 * hash-table.h: Remove a layer of indirection from hash_table so that
10315 it contains the hash table's data instead of a pointer to the data.
10316 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10317 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10318 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10319 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10320 fold-const.c, gcse.c, ggc-common.c,
10321 gimple-ssa-strength-reduction.c, gimplify.c,
10322 graphite-clast-to-gimple.c, graphite-dependences.c,
10323 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10324 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10325 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10326 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10327 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10328 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10329 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10330 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10331 tree-ssa-live.c, tree-ssa-loop-im.c,
10332 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10333 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10334 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10335 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10336 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10337 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10338 vtable-verify.c, vtable-verify.h: Adjust.
10339
10340 2014-06-24 Richard Biener <rguenther@suse.de>
10341
10342 PR tree-optimization/61572
10343 * tree-ssa-sink.c (statement_sink_location): Do not sink
10344 loads from hard registers.
10345
10346 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10347
10348 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10349 not mentioned in clauses use private clause if the iterator is
10350 declared in #pragma omp for simd, and when adding lastprivate
10351 instead, add it to the outer #pragma omp for too. Diagnose
10352 if the variable is private in outer context. For simd collapse > 1
10353 loops, replace all iterators with temporaries.
10354 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10355 same even in collapse > 1 loops.
10356
10357 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10358 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10359 non-NULL.
10360 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10361 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10362 non-NULL.
10363 (gimplify_adjust_omp_clauses): Likewise.
10364 * omp-low.c (lower_rec_simd_input_clauses,
10365 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10366 safelen the same as safelen(1).
10367 * tree-nested.c (convert_nonlocal_omp_clauses,
10368 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10369 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10370 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10371 Fixup handling of GIMPLE_OMP_TARGET.
10372 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10373 GIMPLE_OMP_TARGET.
10374
10375 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10376
10377 PR tree-optimization/61554
10378 * tree-ssa-propagate.c: Include "bitmap.h".
10379 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10380 properly update constructor/destructor.
10381 (substitute_and_fold_dom_walker::before_dom_children):
10382 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10383 need_eh_cleaup instead.
10384 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10385 need_eh_cleanup.
10386
10387 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10388
10389 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10390 * tree-pass.h (make_pass_ipa_single_use): New pass.
10391 * cgraph.h (used_by_single_function): New flag.
10392 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10393 Stream it.
10394 * passes.def (pass_ipa_single_use): Scedule.
10395 * ipa.c (BOTTOM): New macro.
10396 (meet): New function
10397 (propagate_single_user): New function.
10398 (ipa_single_use): New function.
10399 (pass_data_ipa_single_use): New pass.
10400 (pass_ipa_single_use): New pass.
10401 (pass_ipa_single_use::gate): New gate.
10402 (make_pass_ipa_single_use): New function.
10403
10404 2014-06-23 Kai Tietz <ktietz@redhat.com>
10405
10406 PR target/39284
10407 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10408 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10409
10410 2014-06-23 Richard Biener <rguenther@suse.de>
10411
10412 * tree-ssa-loop.c (gate_loop): New function.
10413 (pass_tree_loop::gate): Call it.
10414 (pass_data_tree_no_loop, pass_tree_no_loop,
10415 make_pass_tree_no_loop): New.
10416 * tree-vectorizer.c: Include tree-scalar-evolution.c
10417 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10418 required.
10419 (pass_slp_vectorize::clone): New method.
10420 * timevar.def (TV_TREE_NOLOOP): New.
10421 * tree-pass.h (make_pass_tree_no_loop): Declare.
10422 * passes.def (pass_tree_no_loop): New pass group with
10423 SLP vectorizer.
10424
10425 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10426
10427 PR target/61570
10428 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10429 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10430
10431 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10432
10433 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10434 "yes" where needed.
10435
10436 2014-06-23 Alan Modra <amodra@gmail.com>
10437
10438 PR bootstrap/61583
10439 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10440 to zero on debug statements.
10441
10442 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10443
10444 PR target/60825
10445 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10446 Ignore third operand if present by marking qualifier_internal.
10447
10448 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10449
10450 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10451 vector extension.
10452 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10453 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10454 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10455 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10456 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10457 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10458 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10459 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10460 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10461 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10462 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10463 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10464 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10465 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10466 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10467 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10468 logic in GCC vector extensions
10469
10470 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10471 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10472 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10473 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10474 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10475 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10476 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10477 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10478 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10479 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10480
10481 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10482
10483 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10484 extensions.
10485
10486 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10487 (vget_low_s64): Use __GET_LOW macro.
10488 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10489 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10490 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10491 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10492 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10493
10494 (vcombine_s64): Use GCC vector extensions; remove cast.
10495 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10496 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10497 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10498 Fix type signature; remove cast.
10499
10500 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10501
10502 PR target/60825
10503 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10504 V1DFmode.
10505 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10506 add V1DFmode
10507 (BUILTIN_VD1): New.
10508 (BUILTIN_VD_RE): Remove.
10509 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10510 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10511 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10512 variant but not df.
10513 (vreinterpretv1df*, vreinterpret*v1df): New.
10514 (vreinterpretdf*, vreinterpret*df): Remove.
10515 * config/aarch64/aarch64-simd.md (aarch64_create,
10516 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10517 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10518 (VD1): New.
10519 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10520 (vcreate_f64): Remove cast, use v1df builtin.
10521 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10522 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10523 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10524 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10525 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10526 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10527 add range check using __builtin_aarch64_im_lane_boundsi.
10528 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10529 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10530 type signature, use gcc vector extensions.
10531 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10532 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10533 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10534 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10535 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10536 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10537 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10538 vreinterpret_u64_f64): Use v1df builtin not df.
10539
10540 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10541
10542 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10543 vector registers.
10544
10545 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10546
10547 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10548 priority directly.
10549
10550 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10551
10552 * loop-invariant.c (pre_check_invariant_p): New function.
10553 (find_invariant_insn): Call pre_check_invariant_p.
10554
10555 2014-06-22 Richard Henderson <rth@redhat.com>
10556
10557 PR target/61565
10558 * compare-elim.c (struct comparison): Add eh_note.
10559 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10560 a redundant comparison in a different EH region. Purge EH edges if
10561 necessary.
10562
10563 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10564
10565 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10566 (var_shift): Use it.
10567 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10568 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10569 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10570 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10571 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10572 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10573 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10574 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10575 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10576 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10577 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10578 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10579 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10580 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10581 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10582 *rotldi3_internal15be): Use the new attribute. Merge register and
10583 integer alternatives.
10584
10585 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10586
10587 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10588 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10589 split, *ashrdi3_internal3 and split): Delete, merge into...
10590 (ashr<mode>3): New expander.
10591 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10592 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10593
10594 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10595
10596 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10597 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10598 *rotldi3_internal3 and split): Delete, merge into...
10599 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10600 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10601 Use "rotlw" extended mnemonic.
10602
10603 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10604
10605 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10606 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10607 and split, *ashldi3_internal3 and split): Delete, merge into...
10608 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10609 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10610
10611 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10612
10613 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10614 (lshrsi3, two anonymous define_insns and define_splits,
10615 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10616 *lshrdi3_internal3 and split): Delete, merge into...
10617 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10618 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10619
10620 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10621
10622 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10623 Remove "O" alternative.
10624
10625 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10626
10627 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10628 (mips_move_from_gpr_cost): Likewise.
10629 (mips_register_move_cost): Update accordingly.
10630 (mips_secondary_reload_class): Remove name of in_p.
10631
10632 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10633
10634 PR target/61503
10635 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10636 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10637
10638 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10639
10640 * config/nios2/nios2.c: Include "builtins.h".
10641
10642 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10643
10644 * cgraph.h (tls_model_names): New variable.
10645 * print-tree.c (print_node): Simplify.
10646 * varpool.c (tls_model_names): New variable.
10647 (dump_varpool_node): Output tls model.
10648
10649 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10650
10651 * ipa-visibility.c (function_and_variable_visibility): Disable
10652 temporarily local aliases for some targets.
10653
10654 2014-06-20 Marek Polacek <polacek@redhat.com>
10655
10656 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10657 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10658 into SANITIZE_UNDEFINED.
10659 * doc/invoke.texi: Describe -fsanitize=bounds.
10660 * gimplify.c (gimplify_call_expr): Add gimplification of internal
10661 functions created in the FEs.
10662 * internal-fn.c: Move "internal-fn.h" after "tree.h".
10663 (expand_UBSAN_BOUNDS): New function.
10664 * internal-fn.def (UBSAN_BOUNDS): New internal function.
10665 * internal-fn.h: Don't define internal functions here.
10666 * opts.c (common_handle_option): Add -fsanitize=bounds.
10667 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10668 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10669 * tree-core.h: Define internal functions here.
10670 (struct tree_base): Add ifn field.
10671 * tree-pretty-print.c: Include "internal-fn.h".
10672 (dump_generic_node): Handle functions without CALL_EXPR_FN.
10673 * tree.c (get_callee_fndecl): Likewise.
10674 (build_call_expr_internal_loc): New function.
10675 * tree.def (CALL_EXPR): Update description.
10676 * tree.h (CALL_EXPR_IFN): Define.
10677 (build_call_expr_internal_loc): Declare.
10678 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10679 types.
10680 (ubsan_type_descriptor): Change bool parameter to enum
10681 ubsan_print_style. Adjust the code. Add handling of
10682 UBSAN_PRINT_ARRAY.
10683 (ubsan_expand_bounds_ifn): New function.
10684 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10685 (ubsan_build_overflow_builtin): Likewise.
10686 (instrument_bool_enum_load): Likewise.
10687 (ubsan_instrument_float_cast): Likewise.
10688 * ubsan.h (enum ubsan_print_style): New enum.
10689 (ubsan_expand_bounds_ifn): Declare.
10690 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
10691
10692 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
10693
10694 * config/rs6000/rs6000.md: Append `DONE' to preparation
10695 statements of `bswap' pattern splitters.
10696
10697 2014-06-20 Tom de Vries <tom@codesourcery.com>
10698
10699 * target.def (call_fusage_contains_non_callee_clobbers): Update
10700 definition.
10701 * doc/tm.texi: Regenerate.
10702
10703 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10704 Max Ostapenko <m.ostapenko@partner.samsung.com>
10705
10706 PR sanitizer/61547
10707 * asan.c (instrument_strlen_call): Fixed instrumentation of
10708 trailing byte.
10709
10710 2014-06-20 Martin Jambor <mjambor@suse.cz>
10711
10712 PR ipa/61540
10713 * ipa-prop.c (impossible_devirt_target): New function.
10714 (try_make_edge_direct_virtual_call): Use it, also instead of
10715 asserting.
10716
10717 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10718 Max Ostapenko <m.ostapenko@partner.samsung.com>
10719
10720 PR sanitizer/61530
10721 * asan.c (build_check_stmt): Add condition.
10722
10723 2014-06-20 Martin Jambor <mjambor@suse.cz>
10724
10725 PR ipa/61211
10726 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10727 expanded clones.
10728
10729 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10730
10731 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10732 Update comments.
10733 (VCONQ): Make comment more helpful.
10734 (VCON): Delete.
10735 * config/aarch64/aarch64-simd.md
10736 (aarch64_sqdmulh_lane<mode>):
10737 Use VCOND for operands 2. Update lane checking and flipping logic.
10738 (aarch64_sqrdmulh_lane<mode>): Likewise.
10739 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10740 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10741 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10742 attribute of operand 3 to VCOND.
10743 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10744 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10745 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10746 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10747 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10748 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10749 define_insn.
10750 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10751 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10752 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10753 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10754 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10755 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10756 operand to VCOND. Update lane flipping and bounds checking logic.
10757 (aarch64_sqdmlal2_lane<mode>): Likewise.
10758 (aarch64_sqdmlsl_lane<mode>): Likewise.
10759 (aarch64_sqdmull_lane<mode>): Likewise.
10760 (aarch64_sqdmull2_lane<mode>): Likewise.
10761 (aarch64_sqdmlal_laneq<mode>):
10762 Replace VCON usage with VCONQ.
10763 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10764 (aarch64_sqdmlal2_laneq<mode>): Emit
10765 aarch64_sqdmlal2_laneq<mode>_internal insn.
10766 Replace VCON with VCONQ.
10767 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10768 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10769 (aarch64_sqdmull_laneq<mode>): Emit
10770 aarch64_sqdmull_laneq<mode>_internal insn.
10771 Replace VCON with VCONQ.
10772 (aarch64_sqdmull2_laneq<mode>): Emit
10773 aarch64_sqdmull2_laneq<mode>_internal insn.
10774 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
10775 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
10776 of 3rd argument to int16x4_t.
10777 (vqdmlalh_lane_s16): Likewise.
10778 (vqdmlslh_lane_s16): Likewise.
10779 (vqdmull_high_lane_s16): Likewise.
10780 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
10781 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
10782 (vqdmlsl_lane_s16): Likewise.
10783 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
10784 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
10785 (vqdmlals_lane_s32): Likewise.
10786 (vqdmlsls_lane_s32): Likewise.
10787 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
10788 (vqdmulls_lane_s32): Likewise.
10789 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
10790 (vqdmlsl_lane_s32): Likewise.
10791 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
10792 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
10793 (vqrdmulhh_lane_s16): Likewise.
10794 (vqdmlsl_high_lane_s16): Likewise.
10795 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
10796 (vqdmlsl_high_lane_s32): Likewise.
10797 (vqrdmulhs_lane_s32): Likewise.
10798
10799 2014-06-20 Tom de Vries <tom@codesourcery.com>
10800
10801 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
10802 get_call_reg_set_usage.
10803
10804 2014-06-20 Tom de Vries <tom@codesourcery.com>
10805
10806 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
10807 it contains all call_used_regs.
10808
10809 2014-06-20 Tom de Vries <tom@codesourcery.com>
10810
10811 * final.c (collect_fn_hard_reg_usage): Add and use variable
10812 function_used_regs.
10813
10814 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10815
10816 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
10817 (set_init_priority, get_init_priority, set_fini_priority,
10818 get_fini_priority): New methods.
10819 * tree.c (init_priority_for_decl): Remove.
10820 (init_ttree): Do not initialize init priority.
10821 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
10822 (decl_priority_info): Remove.
10823 (decl_init_priority_insert): Rewrite.
10824 (decl_fini_priority_insert): Rewrite.
10825 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
10826 tree_priority_map_marked_p): Remove.
10827 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
10828 * lto-streamer-out.c (hash_tree): Do not hash priorities.
10829 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
10830 not output priorities.
10831 (pack_ts_function_decl_value_fields): Likewise.
10832 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10833 not input priorities.
10834 (unpack_ts_function_decl_value_fields): Likewise.
10835 * symtab.c (symbol_priority_map): Declare.
10836 (init_priority_hash): Declare.
10837 (symtab_unregister_node): Unregister from priority hash, too.
10838 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
10839 New methods.
10840 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
10841 (symbol_priority_info): New function.
10842 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
10843 New methods.
10844 * tree-core.h (tree_priority_map): Remove.
10845
10846 2014-06-20 Jakub Jelinek <jakub@redhat.com>
10847
10848 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
10849 0xff to uint64_t before shifting it up.
10850
10851 2014-06-20 Julian Brown <julian@codesourcery.com>
10852 Chung-Lin Tang <cltang@codesourcery.com>
10853
10854 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
10855 TARGET_THUMB1_ONLY. Add comments.
10856
10857 2014-06-19 Tom de Vries <tom@codesourcery.com>
10858
10859 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
10860 return type to void.
10861 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
10862
10863 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10864
10865 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
10866 as "move", from depends_on.
10867
10868 2014-06-19 Terry Guo <terry.guo@arm.com>
10869
10870 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
10871 stage.
10872
10873 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
10874
10875 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
10876 Remove cr5.
10877 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
10878
10879 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
10880
10881 PR target/61550
10882 * config/sh/sh.c (prepare_move_operands): Don't process TLS
10883 addresses here if reload in progress or completed.
10884
10885 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10886
10887 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
10888 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
10889 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
10890 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
10891 (mips_register_priority): New function that implements the target
10892 hook TARGET_REGISTER_PRIORITY.
10893 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
10894 (mips_lra_p): Likewise for TARGET_LRA_P.
10895 (TARGET_REGISTER_PRIORITY): Define macro.
10896 (TARGET_SPILL_CLASS): Likewise.
10897 (TARGET_LRA_P): Likewise.
10898 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
10899 classes.
10900 (REG_CLASS_NAMES): Likewise.
10901 (REG_CLASS_CONTENTS): Likewise.
10902 (BASE_REG_CLASS): Use M16_SP_REGS.
10903 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
10904 New set attribute to enable alternatives depending on the register
10905 allocator used.
10906 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
10907 (*lea64): Disable pattern for MIPS16.
10908 * config/mips/mips.opt (mlra): New option.
10909
10910 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10911
10912 * lra-constraints.c (base_to_reg): New function.
10913 (process_address): Use new function.
10914
10915 2014-06-18 Tom de Vries <tom@codesourcery.com>
10916
10917 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
10918 * config/aarch64/aarch64.c
10919 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
10920 (aarch64_emit_call_insn): New function.
10921 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
10922 of emit_call_insn.
10923 * config/aarch64/aarch64.md (define_expand "call_internal")
10924 (define_expand "call_value_internal", define_expand "sibcall_internal")
10925 (define_expand "sibcall_value_internal"): New.
10926 (define_expand "call", define_expand "call_value")
10927 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
10928 expand variant and aarch64_emit_call_insn.
10929
10930 2014-06-18 Radovan Obradovic <robradovic@mips.com>
10931 Tom de Vries <tom@codesourcery.com>
10932
10933 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
10934 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10935 Redefine to true.
10936 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
10937 clobbers to CALL_INSN_FUNCTION_USAGE.
10938 (define_expand "sibcall_internal")
10939 (define_expand "sibcall_value_internal"): New.
10940 (define_expand "call", define_expand "call_value"): Add argument to
10941 arm_emit_call_insn.
10942 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
10943 (define_expand "sibcall_value"): Use sibcall_value_internal and
10944 arm_emit_call_insn.
10945
10946 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10947
10948 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
10949
10950 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10951
10952 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
10953 __udivmoddi4.
10954
10955 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10956
10957 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
10958 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
10959 annotations. Fix DWARF information.
10960
10961 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10962
10963 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
10964 __udivmoddi4, and fixups for negative operands.
10965
10966 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10967
10968 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
10969
10970 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10971
10972 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
10973 to __udivmoddi4.
10974
10975 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10976
10977 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
10978 manipulation.
10979
10980 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10981
10982 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
10983 describing register usage on function entry and exit.
10984
10985 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10986
10987 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
10988 (__aeabi_ldivmod): Fix whitespace.
10989
10990 2014-06-18 Andreas Schwab <schwab@suse.de>
10991
10992 * doc/md.texi (Standard Names): Use @itemx for grouped items.
10993 Remove blank line after @item.
10994
10995 2014-06-18 Richard Henderson <rth@redhat.com>
10996
10997 PR target/61545
10998 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
10999
11000 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11001
11002 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11003 POST_MODIFY for neon loads and stores.
11004 (arm_print_operand): Output post-index register for neon loads and
11005 stores.
11006
11007 2014-06-18 Richard Biener <rguenther@suse.de>
11008
11009 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11010
11011 2014-06-18 Richard Biener <rguenther@suse.de>
11012
11013 * tree-pass.h (make_pass_dce_loop): Remove.
11014 * passes.def: Replace pass_dce_loop with pass_dce.
11015 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11016 changed free niter estimates and reset the scev cache.
11017 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11018 make_pass_dce_loop): Remove.
11019 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11020 (fini_copy_prop): Return whether something changed. Always
11021 let substitute_and_fold perform DCE and free niter estimates
11022 and reset the scev cache if so.
11023 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11024 (pass_data_copy_prop): Do not unconditionally schedule
11025 cleanup-cfg or update-ssa.
11026
11027 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11028
11029 PR tree-optimization/61518
11030 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11031 reduction var is used in reduction stmt or phi-function only.
11032
11033 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11034
11035 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11036
11037 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11038
11039 PR tree-optimization/61517
11040 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11041 whose rhs's first tree is the source expression instead of the
11042 expression itself.
11043 (find_bswap_or_nop): Likewise.
11044 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11045 gimple stmt whose rhs's first tree is the source. In the memory source
11046 case, move the stmt to be replaced close to one of the original load to
11047 avoid the problem of a store between the load and the stmt's original
11048 location.
11049 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11050 signature.
11051
11052 2014-06-18 Andreas Schwab <schwab@suse.de>
11053
11054 PR rtl-optimization/54555
11055 * postreload.c (move2add_use_add2_insn): Substitute
11056 STRICT_LOW_PART only if it is cheaper.
11057
11058 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11059
11060 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11061 Do not use unspec as call operand. Use memory_operand instead of
11062 memory_nox32_operand and add "m" operand constraint. Disable
11063 pattern for TARGET_X32.
11064 (*sibcall_pop_memory): Ditto.
11065 (*sibcall_value_memory): Ditto.
11066 (*sibcall_value_pop_memory): Ditto.
11067 (sibcall peepholes): Merge SImode and DImode patterns using
11068 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11069 Disable pattern for TARGET_X32. Check if eliminated register is
11070 really dead after call insn. Generate call RTX without unspec operand.
11071 (sibcall_value peepholes): Ditto.
11072 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11073 instead of memory_nox32_operand. Check if eliminated register is
11074 really dead after call insn. Generate call RTX without unspec operand.
11075 (sibcall_value_pop peepholes): Ditto.
11076 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11077
11078 2014-06-18 Terry Guo <terry.guo@arm.com>
11079
11080 PR target/61544
11081 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11082 reach the head.
11083
11084 2014-06-18 Olivier Hainque <hainque@adacore.com>
11085
11086 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11087 memorization of the end of block source location.
11088 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11089 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11090 end source location info we have on the block entry/exit code we
11091 generate.
11092
11093 2014-06-18 Richard Biener <rguenther@suse.de>
11094
11095 * common.opt (fssa-phiopt): New option.
11096 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11097 but not with -Og.
11098 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11099 * doc/invoke.texi (-fssa-phiopt): Document.
11100
11101 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11102
11103 * genattrtab.c (n_bypassed): New variable.
11104 (process_bypasses): Initialise n_bypassed.
11105 Count number of bypassed reservations.
11106 (make_automaton_attrs): Allocate space for bypassed reservations
11107 rather than number of bypasses.
11108
11109 2014-06-18 Richard Biener <rguenther@suse.de>
11110
11111 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11112 we propagated anything.
11113 (substitute_and_fold_dom_walker::before_dom_children): Something
11114 changed if we propagated into PHI arguments.
11115 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11116 we removed a stmt.
11117
11118 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11119
11120 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11121 vector case.
11122 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11123 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11124 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11125 Introduces alternative way of loads group permutaions.
11126 (vect_transform_grouped_load): Try alternative way of permutations.
11127
11128 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11129
11130 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11131 changed in ORT_TARGET region, don't jump to do_outer.
11132 (struct gimplify_adjust_omp_clauses_data): New type.
11133 (gimplify_adjust_omp_clauses_1): Adjust for data being
11134 a struct gimplify_adjust_omp_clauses_data pointer instead
11135 of tree *. Pass pre_p as a new argument to
11136 lang_hooks.decls.omp_finish_clause hook.
11137 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11138 splay_tree_foreach to pass both list_p and pre_p.
11139 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11140 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11141 gimplify_adjust_omp_clauses callers.
11142 * langhooks.c (lhd_omp_finish_clause): New function.
11143 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11144 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11145 * langhooks.h (struct lang_hooks_for_decls): Add a new
11146 gimple_seq * argument to omp_finish_clause hook.
11147 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11148 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11149 (scan_omp_parallel, lower_omp_for): When adding
11150 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11151 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11152 * tree-nested.c (convert_nonlocal_omp_clauses,
11153 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11154 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11155
11156 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11157
11158 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11159 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11160
11161 2014-06-17 Xinliang David Li <davidxl@google.com>
11162
11163 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11164 * passes.c (pass_init_dump_file): Do not set initialize
11165 flag to false unconditionally.
11166
11167 2014-06-17 Richard Biener <rguenther@suse.de>
11168
11169 * genopinit.c (main): Use vec<>::qsort method.
11170 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11171 Likewise.
11172 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11173
11174 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11175
11176 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11177 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11178 (mips_move_to_gpr_cost): Remove ST_REGS case.
11179 (mips_move_from_gpr_cost): Likewise.
11180 (mips_register_move_cost): Likewise.
11181 (mips_secondary_reload_class): Likewise.
11182
11183 2014-06-17 Richard Biener <rguenther@suse.de>
11184
11185 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11186 (pass_all_optimizations): Move 3rd copy-prop pass from after
11187 fre to before ifcombine/phiopt.
11188
11189 2014-06-17 Richard Biener <rguenther@suse.de>
11190
11191 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11192 and allow all blocks to be forwarders.
11193
11194 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11195
11196 PR target/61483
11197 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11198 variable 'size'; calculate 'size' right in the front; use
11199 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11200 pcum->aapcs_stack_words.
11201
11202 2014-06-17 Nick Clifton <nickc@redhat.com>
11203
11204 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11205 (umulhi3, mulsidi3, umulsidi3): Likewise.
11206
11207 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11208
11209 PR middle-end/61508
11210 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11211 check for section name.
11212
11213 2014-06-17 Richard Biener <rguenther@suse.de>
11214
11215 * tree-ssa-propagate.c: Include domwalk.h.
11216 (substitute_and_fold): Outline main worker into a domwalker ...
11217 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11218 Schedule stmts we can fully propagate for removal. Remove
11219 poor-mans DCE.
11220 (substitute_and_fold): Apply a dominator walk to perform
11221 substitution. Process stmts scheduled for removal here.
11222
11223 2014-06-17 Richard Biener <rguenther@suse.de>
11224
11225 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11226 of PHI node moving.
11227
11228 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11229
11230 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11231 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11232 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11233 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11234 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11235 TARGET_HARD_FLOAT.
11236 (get_fpscr) : Likewise.
11237
11238 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11239
11240 PR rtl-optimization/61325
11241 * lra-constraints.c (valid_address_p): Add forward declaration.
11242 (simplify_operand_subreg): Check address validity before and after
11243 alter_reg of memory subreg.
11244
11245 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11246
11247 * config/i386/i386.c (decide_alg): Correctly handle
11248 maximum size of stringop algorithm.
11249
11250 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11251
11252 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11253
11254 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11255
11256 PR rtl-optimization/61522
11257 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11258
11259 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11260
11261 Revert:
11262 * symtab.c (symtab_node::reset_section): New method.
11263 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11264 for localization.
11265 * cgraph.h (reset_section): Declare.
11266 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11267 do not consider comdat locals.
11268 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11269 for new symbol.
11270 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11271 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11272 reset sections of symbols dragged out of the comdats.
11273 (function_and_variable_visibility): Reset sections of
11274 localized symbols.
11275
11276 2014-06-16 Richard Biener <rguenther@suse.de>
11277
11278 PR tree-optimization/61482
11279 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11280 [-INF(OVF), +INF(OVF)] range.
11281
11282 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11283
11284 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11285 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11286 handling 32-bit multiplication.
11287
11288 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11289
11290 PR middle-end/61430
11291 * lra-lives.c (process_bb_lives): Skip creating copy during
11292 insn scan when src/dest has constrained to same regno.
11293
11294 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11295
11296 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11297 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11298
11299 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11300
11301 * asan.c (check_func): New function.
11302 (maybe_create_ssa_name): Likewise.
11303 (build_check_stmt_with_calls): Likewise.
11304 (use_calls_p): Likewise.
11305 (report_error_func): Change interface.
11306 (build_check_stmt): Allow non-integer lengths; add support
11307 for new parameter.
11308 (asan_instrument): Likewise.
11309 (instrument_mem_region_access): Moved code to build_check_stmt.
11310 (instrument_derefs): Likewise.
11311 (instrument_strlen_call): Likewise.
11312 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11313 * doc/invoke.texi: Describe new parameter.
11314 * params.def: Define new parameter.
11315 * params.h: Likewise.
11316 * sanitizer.def: Describe new builtins.
11317
11318 2014-06-16 Richard Biener <rguenther@suse.de>
11319
11320 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11321 Make all defs available at the end.
11322 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11323
11324 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11325
11326 PR plugins/45078
11327 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11328
11329 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11330
11331 PR bootstrap/61516
11332 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11333 initialization. Replace remaining use of uid.
11334
11335 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11336
11337 * c-family/c-common.c (handle_tls_model_attribute): Use
11338 set_decl_tls_model.
11339 * c-family/c-common.c (handle_tls_model_attribute): Use
11340 set_decl_tls_model.
11341 * cgraph.h (struct varpool_node): Add tls_model.
11342 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11343 * tree.h (DECL_TLS_MODEL): Update.
11344 (DECL_THREAD_LOCAL_P): Check that variable is static.
11345 (decl_tls_model): Declare.
11346 (set_decl_tls_model): Declare.
11347 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11348 set symbol prorperties.
11349 (get_emutls_init_templ_addr): Cleanup.
11350 (new_emutls_decl): Update.
11351 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11352 (lto_input_varpool_node): Likewise.
11353 * lto-streamer-out.c (hash_tree): Likewise.
11354 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11355 not stream DECL_TLS_MODEL.
11356 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11357 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11358
11359 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11360
11361 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11362
11363 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11364
11365 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11366 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11367 lists.
11368 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11369 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11370 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11371 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11372 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11373 (df_get_artificial_defs, df_get_artificial_uses)
11374 (df_single_def, df_single_use): Update accordingly.
11375 (df_refs_chain_dump): Take the first element in a linked list as
11376 parameter, rather than a pointer to an array of pointers.
11377 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11378 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11379 (df_chain_create_bb_process_use): Likewise.
11380 (df_md_bb_local_compute_process_def): Likewise.
11381 * fwprop.c (process_defs, process_uses): Likewise.
11382 (register_active_defs, update_uses): Likewise.
11383 (forward_propagate_asm): Update for new df_ref linking.
11384 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11385 (df_null_ref_rec, df_null_mw_rec): Likewise.
11386 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11387 explicitly.
11388 (df_scan_free_bb_info): Remove check for null artificial_defs.
11389 (df_install_ref_incremental): Adjust for new df_ref linking.
11390 Use a single-element insertion rather than a full sort.
11391 (df_ref_chain_delete_du_chain): Take the first element
11392 in a linked list as parameter, rather than a pointer to an array of
11393 pointers.
11394 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11395 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11396 (df_insn_info_delete): Remove check for null defs and call to
11397 df_scan_free_mws_vec.
11398 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11399 null rather than df_null_*_rec.
11400 (df_insn_rescan_debug_internal): Likewise, and update null
11401 checks in the same way. Remove check for null defs.
11402 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11403 Move a single element rather doing a full sort.
11404 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11405 linking.
11406 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11407 Initialize df_ref and df_mw_hardreg lists to null rather than
11408 df_null_*_rec.
11409 (df_ref_compare): Take df_refs as parameter, transferring the
11410 old interface to...
11411 (df_ref_ptr_compare): ...this new function.
11412 (df_sort_and_compress_refs): Update accordingly.
11413 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11414 old interface to...
11415 (df_mw_ptr_compare): ...this new function.
11416 (df_sort_and_compress_mws): Update accordingly.
11417 (df_install_refs, df_install_mws): Return a linked list rather than
11418 an array of pointers.
11419 (df_refs_add_to_chains): Assert that old lists are empty rather
11420 than freeing them.
11421 (df_insn_refs_verify): Don't handle null defs speciailly.
11422 * web.c (union_match_dups): Update for new df_ref linking.
11423
11424 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11425
11426 * df.h (df_ref_create, df_ref_remove): Delete.
11427 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11428 (df_ref_remove): Likewise.
11429
11430 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11431
11432 * df.h (df_single_def, df_single_use): New functions.
11433 * ira.c (find_moveable_pseudos): Use them.
11434
11435 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11436
11437 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11438 * df-problems.c (df_note_bb_compute): Use it.
11439 * regstat.c (regstat_bb_compute_ri): Likewise.
11440
11441 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11442
11443 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11444 * cse.c (cse_extended_basic_block): Use them.
11445 * dce.c (mark_artificial_use): Likewise.
11446 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11447 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11448 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11449 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11450 (df_simulate_initialize_backwards): Likewise.
11451 (df_simulate_finalize_backwards): Likewise.
11452 (df_simulate_initialize_forwards): Likewise.
11453 (df_md_simulate_artificial_defs_at_top): Likewise.
11454 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11455 * regrename.c (init_rename_info): Likewise.
11456 * regstat.c (regstat_bb_compute_ri): Likewise.
11457 (regstat_bb_compute_calls_crossed): Likewise.
11458
11459 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11460
11461 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11462 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11463 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11464 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11465 * combine.c (create_log_links): Likewise.
11466 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11467 (try_eliminate_compare): Likewise.
11468 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11469 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11470 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11471 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11472 (word_dce_process_block, dce_process_block): Likewise.
11473 * ddg.c (def_has_ccmode_p): Likewise.
11474 * df-core.c (df_bb_regno_first_def_find): Likewise.
11475 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11476 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11477 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11478 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11479 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11480 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11481 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11482 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11483 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11484 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11485 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11486 * fwprop.c (local_ref_killed_between_p): Likewise.
11487 (all_uses_available_at, free_load_extend): Likewise.
11488 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11489 * hw-doloop.c (scan_loop): Likewise.
11490 * ifcvt.c (dead_or_predicable): Likewise.
11491 * init-regs.c (initialize_uninitialized_regs): Likewise.
11492 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11493 (process_bb_node_lives): Likewise.
11494 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11495 (find_moveable_pseudos): Likewise.
11496 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11497 * recog.c (peep2_find_free_register): Likewise.
11498 * ree.c (get_defs): Likewise.
11499 * regstat.c (regstat_bb_compute_ri): Likewise.
11500 (regstat_bb_compute_calls_crossed): Likewise.
11501 * sched-deps.c (find_inc, find_mem): Likewise.
11502 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11503 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11504 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11505 (prepare_shrink_wrap): Likewise.
11506 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11507 * web.c (union_defs, pass_web::execute): Likewise.
11508 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11509 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11510
11511 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11512
11513 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11514 to inheritance pseudos.
11515 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11516
11517 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11518
11519 PR target/61415
11520 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11521 (BU_MISC_2): Rename to ...
11522 (BU_LDBL128_2): ... this.
11523 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11524 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11525 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11526 RS6000_BTM_LDBL128.
11527 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11528 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11529 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11530 (unpacktf_1): Likewise.
11531 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11532 (__builtin_longdouble_dw1): Likewise.
11533 * doc/sourcebuild.texi (longdouble128): Document.
11534
11535 2014-06-13 Jeff Law <law@redhat.com>
11536
11537 PR rtl-optimization/61094
11538 PR rtl-optimization/61446
11539 * ree.c (combine_reaching_defs): Get the mode for the copy from
11540 the extension insn rather than the defining insn.
11541
11542 2014-06-13 Dehao Chen <dehao@google.com>
11543
11544 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11545
11546 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11547
11548 * doc/install.texi (--enable-linker-plugin-configure-flags)
11549 (--enable-linker-plugin-flags): Document new flags.
11550
11551 2014-06-13 Martin Jambor <mjambor@suse.cz>
11552
11553 PR ipa/61186
11554 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11555 cache_token if returning early.
11556
11557 2014-06-13 Nick Clifton <nickc@redhat.com>
11558
11559 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11560 requested alignment is active.
11561 (LABEL_ALIGN): Likewise.
11562 (LOOP_ALIGN): Likewise.
11563
11564 2014-06-13 Richard Biener <rguenther@suse.de>
11565
11566 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11567 Rewrite to propagate the VN result into all uses where
11568 possible and to remove stmts becoming dead because of that.
11569 (eliminate): Generalize stmt removal handling, remove in
11570 reverse dominator order to support proper debug stmt
11571 generation. Update stmts before removing stmts.
11572 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11573
11574 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11575
11576 PR tree-optimization/61375
11577 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11578 symbolic number cannot be represented in an uint64_t.
11579 (find_bswap_or_nop_1): Likewise.
11580
11581 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11582
11583 * symtab.c (symtab_node::reset_section): New method.
11584 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11585 for localization.
11586 * cgraph.h (reset_section): Declare.
11587 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11588 do not consider comdat locals.
11589 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11590 for new symbol.
11591 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11592 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11593 reset sections of symbols dragged out of the comdats.
11594 (function_and_variable_visibility): Reset sections of
11595 localized symbols.
11596
11597 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11598
11599 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11600 to use symtab and decl_binds_to_current_def_p
11601 * tree-vectorizer.c (increase_alignment): Increase alignment
11602 of alias target, too.
11603
11604 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11605
11606 PR middle-end/61486
11607 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11608 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11609 if outer combined construct is distribute.
11610 (gimplify_omp_for): For OMP_DISTRIBUTE set
11611 gimplify_omp_ctxp->distribute.
11612 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11613 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11614 mapping into decl map.
11615
11616 2014-06-12 Jason Merrill <jason@redhat.com>
11617
11618 * common.opt (fabi-version): Change default to 0.
11619
11620 2014-06-12 Jason Merrill <jason@redhat.com>
11621
11622 * toplev.c (process_options): Reject -fabi-version=1.
11623
11624 2014-06-12 Jeff Law <law@redhat.com>
11625
11626 PR tree-optimization/61009
11627 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11628 value when we stop processing a block due to problematic PHIs.
11629
11630 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11631
11632 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11633 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11634 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11635 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11636 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11637 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11638 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11639 are not in the spec.
11640
11641 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11642
11643 PR target/59843
11644 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11645 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11646 Support V1DFmode.
11647
11648 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11649
11650 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11651
11652 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11653
11654 PR target/61443
11655 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11656 loading from address spaces.
11657
11658 2014-06-12 Martin Liska <mliska@suse.cz>
11659
11660 PR ipa/61462
11661 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11662 statement is reachable.
11663
11664 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11665
11666 * symtab.c (section_hash): New hash.
11667 (symtab_unregister_node): Clear section before freeing.
11668 (hash_section_hash_entry): New haser.
11669 (eq_sections): New function.
11670 (symtab_node::set_section_for_node): New method.
11671 (set_section_1): Update.
11672 (symtab_node::set_section): Take string instead of tree as parameter.
11673 (symtab_resolve_alias): Update.
11674 * cgraph.h (section_hash_entry_d): New structure.
11675 (section_hash_entry): New typedef.
11676 (cgraph_node): Change comdat_group_ to x_comdat_group,
11677 change section_ to x_section and turn into section_hash_entry;
11678 update accestors; put set_section_for_node offline.
11679 * tree.c (decl_section_name): Turn into string.
11680 (set_decl_section_name): Change parameter to be string.
11681 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11682 * sdbout.c (sdbout_one_type): Update.
11683 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11684 * varasm.c (IN_NAMED_SECTION, get_named_section,
11685 resolve_unique_section, hot_function_section, get_named_text_section,
11686 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11687 make_decl_rtl, default_unique_section): Update.
11688 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11689 (c6x_elf_unique_section): Update.
11690 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11691 * config/pa/pa.c (pa_function_section): Update.
11692 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11693 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11694 * config/arc/arc.c (arc_in_small_data_p): Update.
11695 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11696 * config/mcore/mcore.c (mcore_unique_section): Update.
11697 * config/mips/mips.c (mips16_build_function_stub): Update.
11698 (mips16_build_call_stub): Update.
11699 (mips_function_rodata_section): Update.
11700 (mips_in_small_data_p): Update.
11701 * config/score/score.c (score_in_small_data_p): Update.
11702 * config/rx/rx.c (rx_in_small_data): Update.
11703 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11704 (rs6000_xcoff_asm_named_section): Update.
11705 (rs6000_xcoff_unique_section): Update.
11706 * config/frv/frv.c (frv_string_begins_with): Update.
11707 (frv_in_small_data_p): Update.
11708 * config/v850/v850.c (v850_encode_data_area): Update.
11709 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11710 (bfin_handle_l1_data_attribute): Update.
11711 (bfin_handle_l2_attribute): Update.
11712 * config/mep/mep.c (mep_unique_section): Update.
11713 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11714 Update.
11715 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11716 (h8300_handle_tiny_data_attribute): Update.
11717 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11718 (m32r_in_small_data_p): Update.
11719 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11720 * config/i386/i386.c (ix86_in_large_data_p): Update.
11721 * config/i386/winnt.c (i386_pe_unique_section): Update.
11722 * config/darwin.c (darwin_function_section): Update.
11723 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11724 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11725 (new_emutls_decl): Update.
11726 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11727 input_varpool_node): Update.
11728 (ead_string_cst): Turn to ...
11729 (read_string): ... this one.
11730 * dwarf2out.c (secname_for_decl): Update.
11731 * asan.c (asan_protect_global): Update.
11732
11733 2014-06-11 DJ Delorie <dj@redhat.com>
11734
11735 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11736 cache lines.
11737 * config/rx/rx.c (rx_option_override): Likewise.
11738 (rx_align_for_label): Likewise.
11739
11740 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11741
11742 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
11743
11744 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11745 prototype.
11746
11747 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11748
11749 * common.md: New file.
11750 * doc/md.texi: Update description of generic, machine-independent
11751 constraints.
11752 * config/s390/constraints.md (e): Delete.
11753 * Makefile.in (md_file): Include common.md.
11754 * config/m32c/t-m32c (md_file): Likewise.
11755 * genpreds.c (general_mem): New array.
11756 (generic_constraint_letters): Remove constraints now defined by
11757 common.md.
11758 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11759 Allow the first character to be '<' or '>' as well.
11760 * genoutput.c (general_mem): New array.
11761 (indep_constraints): Remove constraints now defined by common.md.
11762 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11763 Remove special handling of 'm'.
11764 * ira-costs.c (record_reg_classes): Remove special handling of
11765 constraints now defined by common.md.
11766 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11767 * ira-lives.c (single_reg_class): Likewise.
11768 (ira_implicitly_set_insn_hard_regs): Likewise.
11769 * lra-constraints.c (reg_class_from_constraints): Likewise.
11770 (process_alt_operands, process_address, curr_insn_transform): Likewise.
11771 * postreload.c (reload_cse_simplify_operands): Likewise.
11772 * reload.c (push_secondary_reload, scratch_reload_class)
11773 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11774 * reload1.c (maybe_fix_stack_asms): Likewise.
11775 * targhooks.c (default_secondary_reload): Likewise.
11776 * stmt.c (parse_output_constraint): Likewise.
11777 * recog.c (preprocess_constraints): Likewise.
11778 (constrain_operands, peep2_find_free_register): Likewise.
11779 (asm_operand_ok): Likewise, but add a comment saying why 'o'
11780 must be handled specially.
11781
11782 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11783
11784 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
11785 * genpreds.c (have_const_dbl_constraints): Delete.
11786 (add_constraint): Don't set it.
11787 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
11788 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
11789 constraints using the lookup_constraint logic.
11790 * ira-lives.c (single_reg_class): Likewise.
11791 * ira.c (ira_setup_alts): Likewise.
11792 * lra-constraints.c (process_alt_operands): Likewise.
11793 * recog.c (asm_operand_ok, constrain_operands): Likewise.
11794 * reload.c (find_reloads): Likewise.
11795
11796 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11797
11798 * genpreds.c (const_int_start, const_int_end): New variables.
11799 (choose_enum_order): Output CONST_INT constraints before memory
11800 constraints.
11801 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
11802 Add CT_CONST_INT.
11803 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
11804 * ira.c (ira_setup_alts): Likewise.
11805 * lra-constraints.c (process_alt_operands): Likewise.
11806 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11807 * reload.c (find_reloads): Likewise.
11808
11809 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11810
11811 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
11812 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
11813 * recog.c (preprocess_constraints): Update accordingly.
11814
11815 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11816
11817 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
11818 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
11819 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
11820 * genpreds.c (print_type_tree): New function.
11821 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
11822 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
11823 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
11824 Write out enum constraint_type and get_constraint_type.
11825 * lra-constraints.c (satisfies_memory_constraint_p): Take a
11826 constraint_num rather than a constraint string.
11827 (satisfies_address_constraint_p): Likewise.
11828 (reg_class_from_constraints): Avoid old constraint macros.
11829 (process_alt_operands, process_address_1): Likewise.
11830 (curr_insn_transform): Likewise.
11831 * ira-costs.c (record_reg_classes): Likewise.
11832 (record_operand_costs): Likewise.
11833 * ira-lives.c (single_reg_class): Likewise.
11834 (ira_implicitly_set_insn_hard_regs): Likewise.
11835 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11836 * postreload.c (reload_cse_simplify_operands): Likewise.
11837 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11838 (constrain_operands, peep2_find_free_register): Likewise.
11839 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
11840 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11841 * reload1.c (maybe_fix_stack_asms): Likewise.
11842 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11843 * targhooks.c (default_secondary_reload): Likewise.
11844 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
11845 to EXTRA_CONSTRAINT_STR.
11846 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
11847
11848 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11849
11850 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
11851 (write_constraint_satisfied_p_array): ...this new function.
11852 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
11853 an array.
11854 (write_insn_preds_c): Update accordingly.
11855
11856 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11857
11858 * genpreds.c (write_lookup_constraint): Rename to...
11859 (write_lookup_constraint_1): ...this.
11860 (write_lookup_constraint_array): New function.
11861 (write_tm_preds_h): Define lookup_constraint as an inline function
11862 that uses write_lookup_constraint_array where possible.
11863 (write_insn_preds_c): Update for the changes above.
11864
11865 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11866
11867 * doc/md.texi (regclass_for_constraint): Rename to...
11868 (reg_class_for_constraint): ...this.
11869 * genpreds.c (num_constraints, enum_order, register_start)
11870 (register_end, satisfied_start, memory_start, memory_end)
11871 (address_start, address_end): New variables.
11872 (add_constraint): Count the number of constraints.
11873 (choose_enum_order): New function.
11874 (write_enum_constraint_num): Iterate over enum_order.
11875 (write_regclass_for_constraint): Rename to...
11876 (write_reg_class_for_constraint_1): ...this and update output
11877 accordingly.
11878 (write_constraint_satisfied_p): Rename to...
11879 (write_constraint_satisfied_p_1): ...this and update output
11880 accordingly. Do nothing if all extra constraints are register
11881 constraints.
11882 (write_insn_extra_memory_constraint): Delete.
11883 (write_insn_extra_address_constraint): Delete.
11884 (write_range_function): New function.
11885 (write_tm_preds_h): Define constraint_satisfied_p and
11886 reg_class_for_constraint as inline functions that do a range check
11887 before calling the out-of-line function. Use write_range_function
11888 to implement insn_extra_{register,memory,address}_constraint,
11889 the first of which is new.
11890 (write_insn_preds_c): Update after above changes to write_* functions.
11891 (main): Call choose_enum_order.
11892
11893 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11894
11895 PR tree-optimization/61306
11896 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
11897 expression instead of its size.
11898 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
11899 false to prevent optimization when the result is unpredictable due to
11900 arithmetic right shift of signed type with highest byte is set.
11901 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
11902 (init_symbolic_number): Likewise.
11903 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
11904 when the result is unpredictable due to sign extension.
11905
11906 2014-06-11 Terry Guo <terry.guo@arm.com>
11907
11908 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
11909 (*thumb1_addsi3): Ditto.
11910 (*thumb_subdi3): Ditto.
11911 (thumb1_subsi3_insn): Ditto.
11912 (*thumb_mulsi3): Ditto.
11913 (*thumb_mulsi3_v6): Ditto.
11914 (*thumb1_andsi3_insn): Ditto.
11915 (thumb1_bicsi3): Ditto.
11916 (*thumb1_iorsi3_insn): Ditto.
11917 (*thumb1_xorsi3_insn): Ditto.
11918 (*thumb1_ashlsi3): Ditto.
11919 (*thumb1_ashrsi3): Ditto.
11920 (*thumb1_lshrsi3): Ditto.
11921 (*thumb1_rotrsi3): Ditto.
11922 (*thumb1_negdi2): Ditto.
11923 (*thumb1_negsi2): Ditto.
11924 (*thumb1_abssi2): Ditto.
11925 (*thumb1_neg_abssi2): Ditto.
11926 (*thumb1_one_cmplsi2): Ditto.
11927 (*thumb1_zero_extendhisi2): Ditto.
11928 (*thumb1_zero_extendqisi2): Ditto.
11929 (*thumb1_zero_extendqisi2_v6): Ditto.
11930 (thumb1_extendhisi2): Ditto.
11931 (thumb1_extendqisi2): Ditto.
11932 (*thumb1_movdi_insn): Ditto.
11933 (*thumb1_movsi_insn): Ditto.
11934 (*thumb1_movhi_insn): Ditto.
11935 (thumb_movhi_clobber): Ditto.
11936 (*thumb1_movqi_insn): Ditto.
11937 (*thumb1_movhf): Ditto.
11938 (*thumb1_movsf_insn): Ditto.
11939 (*thumb_movdf_insn): Ditto.
11940 (movmem12b): Ditto.
11941 (movmem8b): Ditto.
11942 (cbranchqi4): Ditto.
11943 (cbranchsi4_insn): Ditto.
11944 (cbranchsi4_scratch): Ditto.
11945 (*negated_cbranchsi4): Ditto.
11946 (*tbit_cbranch): Ditto.
11947 (*tlobits_cbranch): Ditto.
11948 (*tstsi3_cbranch): Ditto.
11949 (*cbranchne_decr1): Ditto.
11950 (*addsi3_cbranch): Ditto.
11951 (*addsi3_cbranch_scratch): Ditto.
11952 (*thumb_cmpdi_zero): Ditto.
11953 (cstoresi_eq0_thumb1): Ditto.
11954 (cstoresi_ne0_thumb1): Ditto.
11955 (*cstoresi_eq0_thumb1_insn): Ditto.
11956 (*cstoresi_ne0_thumb1_insn): Ditto.
11957 (cstoresi_nltu_thumb1): Ditto.
11958 (cstoresi_ltu_thumb1): Ditto.
11959 (thumb1_addsi3_addgeu): Ditto.
11960 (*thumb_jump): Ditto.
11961 (*call_reg_thumb1_v5): Ditto.
11962 (*call_reg_thumb1): Ditto.
11963 (*call_value_reg_thumb1_v5): Ditto.
11964 (*call_value_reg_thumb1): Ditto.
11965 (*call_insn): Ditto.
11966 (*call_value_insn): Ditto.
11967 (thumb1_casesi_internal_pic): Ditto.
11968 (thumb1_casesi_dispatch): Ditto.
11969 (*thumb1_indirect_jump): Ditto.
11970 (prologue_thumb1_interwork): Ditto.
11971 (*epilogue_insns): Ditto.
11972 (consttable_1): Ditto.
11973 (consttable_2): Ditto.
11974 (tablejump): Ditto.
11975 (*thumb1_tablejump): Ditto.
11976 (thumb_eh_return): Ditto.
11977 (define_peephole2): Two of them are thumb1 only and got moved into
11978 new file thumb1.md.
11979 (define_split): Six of them are thumb1 only and got moved into new
11980 file thumb1.md.
11981 * config/arm/thumb1.md: New file comprised of above thumb1 only
11982 patterns.
11983
11984 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11985
11986 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
11987 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
11988 dependencies.
11989 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
11990 (aarch64_crc_builtin_datum): New struct.
11991 (aarch64_crc_builtin_data): New.
11992 (aarch64_init_crc32_builtins): New function.
11993 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
11994 (aarch64_crc32_expand_builtin): New.
11995 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
11996 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11997 __ARM_FEATURE_CRC32 when appropriate.
11998 (TARGET_CRC32): Define.
11999 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12000 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12001 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12002 (aarch64_<crc_variant>): New pattern.
12003 * config/aarch64/arm_acle.h: New file.
12004 * config/aarch64/iterators.md (CRC): New int iterator.
12005 (crc_variant, crc_mode): New int attributes.
12006 * doc/aarch64-acle-intrinsics.texi: New file.
12007 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12008 Include aarch64-acle-intrinsics.texi.
12009
12010 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12011
12012 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12013 check for stores group of length 3.
12014 (vect_permute_store_chain): New permutations for stores group of
12015 length 3.
12016 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12017 of vec_perm_shuffle for the new permutations.
12018
12019 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12020
12021 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12022 table rewriting temporarily on targets not supporting ONE_ONLY.
12023
12024 2014-06-11 Richard Biener <rguenther@suse.de>
12025
12026 PR middle-end/61437
12027 Revert
12028 2014-06-04 Richard Biener <rguenther@suse.de>
12029
12030 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12031 TREE_PUBLIC and DECL_EXTERNAL decls.
12032
12033 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12034
12035 * varasm.c (set_implicit_section): New function.
12036 (resolve_unique_section): Use it to set implicit section
12037 for aliases, too.
12038 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12039 (default_function_section): Likewise.
12040 (decl_binds_to_current_def_p): Constify argument.
12041 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12042 * asan.c (asan_protect_global): Use
12043 symtab_get_node (decl)->implicit_section.
12044 * symtab.c (dump_symtab_base): Dump implicit sections.
12045 (verify_symtab_base): Verify sanity of sectoins and comdats.
12046 (symtab_resolve_alias): Alias share the section of its target.
12047 (set_section_1): New function.
12048 (symtab_node::set_section): Move here, recurse to aliases.
12049 (verify_symtab): Check for duplicated symtab lists.
12050 * tree-core.h (implicit_section_name_p): Remove.
12051 * tree-vect-data-refs.c: Include varasm.h.
12052 (vect_can_force_dr_alignment_p): Fix conditional on when
12053 decl bints to current definition; use
12054 symtab_get_node (decl)->implicit_section.
12055 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12056 * cgraph.h (struct symtab_node): Add implicit_section.
12057 (set_section): Rename to ...
12058 (set_section_for_node): ... this one.
12059 (set_section): Declare.
12060 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12061 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12062 input_overwrite_node, input_varpool_node): Stream implicit_section.
12063 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12064 removal; it will fail in LTO.
12065
12066 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12067
12068 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12069 Change second alternative type to f_mcr.
12070 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12071 and 12th alternatives' types to f_mcr and f_mrc.
12072 (*movdi_aarch64): Same for 12th and 13th alternatives.
12073 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12074 (aarch64_movtilow_tilow): Change type to fmov.
12075
12076 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12077
12078 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12079 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12080
12081 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12082
12083 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12084 New expander.
12085 (aarch64_sqrdmulh_lane<mode>): Likewise.
12086 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12087 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12088 (aarch64_sqdmulh_laneq<mode>): New expander.
12089 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12090 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12091 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12092 (aarch64_sqdmulh_lane<mode>): New expander.
12093 (aarch64_sqrdmulh_lane<mode>): Likewise.
12094 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12095 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12096 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12097 (aarch64_sqdmlal_laneq<mode>): Likewise.
12098 (aarch64_sqdmlsl_lane<mode>): Likewise.
12099 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12100 (aarch64_sqdmlal2_lane<mode>): Likewise.
12101 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12102 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12103 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12104 (aarch64_sqdmull_lane<mode>): Likewise.
12105 (aarch64_sqdmull_laneq<mode>): Likewise.
12106 (aarch64_sqdmull2_lane<mode>): Likewise.
12107 (aarch64_sqdmull2_laneq<mode>): Likewise.
12108
12109 2014-06-10 Richard Biener <rguenther@suse.de>
12110
12111 PR tree-optimization/61438
12112 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12113 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12114 insertion of IVs if running PRE.
12115 (eliminate): Adjust.
12116 (pass_pre::execute): Likewise.
12117 (pass_fre::execute): Likewise.
12118
12119 2014-06-10 Richard Biener <rguenther@suse.de>
12120
12121 PR middle-end/61456
12122 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12123 Do not use the main variant for the type comparison.
12124 (ncr_compar): Likewise.
12125 (nonoverlapping_component_refs_p): Likewise.
12126
12127 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12128
12129 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12130 REG_CFA_RESTORE mode.
12131
12132 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12133
12134 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12135 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12136 expand_vec_perm_pblendv.
12137
12138 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12139
12140 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12141 available.
12142 Simplify description of __crc32d and __crc32cd intrinsics.
12143 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12144 availability.
12145
12146 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12147
12148 PR lto/61334
12149 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12150 * config.in: Regenerate.
12151 * configure: Likewise.
12152
12153 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12154
12155 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12156 and public vars.
12157 (intersect_static_var_sets): Remove.
12158 (propagate): Do not prune local statics.
12159
12160 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12161
12162 PR fortran/60928
12163 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12164 Set lastprivate_firstprivate even if omp_private_outer_ref
12165 langhook returns true.
12166 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12167 langhook, call unshare_expr on new_var and call
12168 build_outer_var_ref to get the last argument.
12169
12170 2014-06-10 Marek Polacek <polacek@redhat.com>
12171
12172 PR c/60988
12173 * doc/extend.texi: Add cindex for transparent_union.
12174
12175 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12176
12177 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12178 init_symbolic_number ().
12179
12180 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12181
12182 PR middle-end/61141
12183 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12184 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12185 (verify_rtl_sharing): Likewise.
12186
12187 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12188
12189 PR c++/54442
12190 * tree.c (build_qualified_type): Use a canonical type for
12191 TYPE_CANONICAL.
12192
12193 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12194
12195 * config/arm/arm-modes.def: Remove XFmode.
12196
12197 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12198
12199 PR target/61062
12200 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12201 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12202 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12203 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12204 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12205 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12206 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12207 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12208 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12209
12210 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12211
12212 * tree-core.h (tree_decl_with_vis): Remove section_name.
12213
12214 2014-06-09 Kito Cheng <kito@0xlab.org>
12215
12216 * ira.c (ira): Don't call init_caller_save if LRA enabled
12217 since LRA use its own infrastructure to handle that.
12218
12219 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12220
12221 * symtab.c (dump_symtab_base): Update dumping.
12222 (symtab_make_decl_local): Clear only DECL_COMDAT.
12223 * tree-vect-data-refs.c (Check that variable is static before
12224 tampering with sections.
12225 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12226 (cgraph_create_virtual_clone): Likewise.
12227 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12228 (decl_section_name, set_decl_section_name): New accessors.
12229 (find_decls_types_r): Do not walk section name
12230 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12231 (decl_comdat_group, decl_comdat_group_id): Constify.
12232 (decl_section_name, set_decl_section_name): Update.
12233 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12234 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12235 (cgraph_make_node_local_1): Clear section and comdat group.
12236 * cgraph.h (set_comdat_group): Sanity check.
12237 (get_section, set_section): New.
12238 * ipa-comdats.c (ipa_comdats): Use get_section.
12239 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12240 * lto-streamer-out.c: Do not follow section names.
12241 * c-family/c-common.c (handle_section_attribute): Update.
12242 * lto-cgraph.c (lto_output_node): Output section.
12243 (lto_output_varpool_node): Likewise.
12244 (read_comdat_group): Rename to ...
12245 (read_identifier): ... this one.
12246 (read_string_cst): New function.
12247 (input_node, input_varpool_node): Input section names.
12248 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12249 (new_emutls_decl): Update.
12250 (secname_for_decl): Check section names only of static vars.
12251 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12252 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12253 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12254 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12255 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12256 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12257 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12258 * config/v850/v850.c (v850_insert_attributes): Likewise.
12259 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12260 Likewise.
12261 (h8300_handle_tiny_data_attribute): Likewise.
12262 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12263 (bfin_handle_l2_attribute): Likewise.
12264
12265 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12266
12267 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12268 remove static initializer.
12269
12270 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12271
12272 * varasm.c (use_blocks_for_decl_p): Check symbol table
12273 instead of alias attribute.
12274 (place_block_symbol): Recurse on aliases.
12275
12276 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12277
12278 * ipa-visibility.c: Include varasm.h
12279 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12280
12281 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12282
12283 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12284 outputting aliases.
12285
12286 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12287
12288 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12289 from test_insn into GGC space escape via SET_SRC.
12290
12291 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12292
12293 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12294 call statement, if any.
12295 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12296 statements, if any. Tidy up.
12297
12298 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12299
12300 PR target/61431
12301 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12302 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12303 handles swapping the two 64-bit double words on little endian
12304 systems. Include V1TImode and optionally TImode in VSX_LE so that
12305 these types are properly swapped. Change all of the insns and
12306 splits that do the 64-bit swaps to use VSX_LE.
12307 (vsx_le_perm_load_<mode>): Likewise.
12308 (vsx_le_perm_store_<mode>): Likewise.
12309 (splitters for little endian memory operations): Likewise.
12310 (vsx_xxpermdi2_le_<mode>): Likewise.
12311 (vsx_lxvd2x2_le_<mode>): Likewise.
12312 (vsx_stxvd2x2_le_<mode>): Likewise.
12313
12314 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12315
12316 PR target/61423
12317 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12318 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12319 and corresponding splitters. Zero extend general register
12320 or memory input operand to XMM temporary. Enable for
12321 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12322 (floatunssi<mode>2): Update expander predicate.
12323
12324 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12325
12326 PR rtl-optimization/61325
12327 * lra-constraints.c (process_address_1): Check scale equal to one
12328 to prevent transformation: base + scale * index => base + new_reg.
12329
12330 2014-06-06 Richard Biener <rguenther@suse.de>
12331
12332 PR tree-optimization/59299
12333 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12334 a def operand.
12335 (nearest_common_dominator_of_uses): Likewise.
12336 (statement_sink_location): Adjust. Support sinking loads.
12337
12338 2014-06-06 Martin Jambor <mjambor@suse.cz>
12339
12340 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12341 (build_agg_jump_func_from_list): Likewise.
12342 (determine_known_aggregate_parts): Renamed to
12343 determine_locally_known_aggregate_parts. Moved some functionality
12344 to the two functions above, removed bound checks.
12345
12346 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12347
12348 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12349 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12350 (aarch64_progress_pointer): Likewise.
12351 (aarch64_copy_one_part_and_move_pointers): Likewise.
12352 (aarch64_expand_movmen): Likewise.
12353 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12354 * config/aarch64/aarch64.md (movmem<mode>): New.
12355
12356 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12357
12358 * targhooks.c (default_add_stmt_cost): Call target specific
12359 hook instead of default one.
12360
12361 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12362
12363 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12364 endianness instead of host endianness.
12365 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12366 comments.
12367
12368 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12369
12370 PR debug/53927
12371 * function.c (instantiate_decls): Process the saved static chain.
12372 (expand_function_start): If not optimizing, save the static chain
12373 onto the stack.
12374 * tree-nested.c (convert_all_function_calls): Always create the static
12375 chain for nested functions if not optimizing.
12376
12377 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12378
12379 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12380
12381 2014-06-06 Richard Biener <rguenther@suse.de>
12382
12383 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12384 (construct_init_block): Likewise.
12385 (construct_exit_block): Likewise.
12386 (pass_expand::execute): Likewise.
12387 * graphite.c (graphite_transforms): Replace check for current_loops
12388 with a check for > 1 loops.
12389 (pass_graphite_transforms::execute): Adjust.
12390 * ipa-split.c (split_function): Remove check for current_loops.
12391 * omp-low.c (expand_parallel_call): Likewise.
12392 (expand_omp_for_init_counts): Likewise.
12393 (extract_omp_for_update_vars): Likewise.
12394 (expand_omp_for_generic): Likewise.
12395 (expand_omp_sections): Likewise.
12396 (expand_omp_target): Likewise.
12397 * tracer.c (tail_duplicate): Likewise.
12398 (pass_tracer::execute): Likewise.
12399 * trans-mem.c (expand_transaction): Likewise.
12400 * tree-complex.c (expand_complex_div_wide): Likewise.
12401 * tree-eh.c (lower_resx): Likewise.
12402 (cleanup_empty_eh_merge_phis): Likewise.
12403 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12404 current_loops with a check for > 1 loops.
12405 (pass_predcom::execute): Adjust.
12406 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12407 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12408 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12409 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12410 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12411 * tree-switch-conversion.c (process_switch): Likewise.
12412 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12413 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12414 (execute_vrp): Likewise.
12415 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12416
12417 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12418
12419 * rtl.h (insn_location): Declare.
12420 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12421 with UNKNOWN_LOCATION.
12422 * emit-rtl.c (insn_location): New function.
12423 * final.c (notice_source_line): Check that the instruction has a
12424 location before retrieving it and use insn_location.
12425 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12426 * print-rtl.c (print_rtx): Likewise.
12427
12428 2014-06-06 Richard Biener <rguenther@suse.de>
12429
12430 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12431
12432 2014-06-06 Christian Bruel <christian.bruel@st.com>
12433
12434 PR tree-optimization/43934
12435 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12436 cost.
12437
12438 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12439
12440 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12441 return NO_REGS for extra address and memory constraints. Handle
12442 operands that match (or are equivalent to something that matches)
12443 extra constant constraints. Ignore other non-register operands.
12444
12445 2014-06-06 Alan Modra <amodra@gmail.com>
12446
12447 PR target/61300
12448 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12449 * doc/tm.texi: Regenerate.
12450 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12451 Use throughout in place of REG_PARM_STACK_SPACE.
12452 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12453 "incoming" param. Pass to rs6000_function_parms_need_stack.
12454 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12455 prototype_p when incoming. Use function decl when incoming
12456 to handle K&R style functions.
12457 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12458 (INCOMING_REG_PARM_STACK_SPACE): Define.
12459
12460 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12461
12462 PR target/52472
12463 * cfgexpand.c (expand_debug_expr): Use address space of nested
12464 TREE_TYPE for ADDR_EXPR and MEM_REF.
12465
12466 2014-06-05 Jeff Law <law@redhat.com>
12467
12468 PR tree-optimization/61289
12469 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12470 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12471 looking for those which match LHS. All callers changed.
12472 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12473 parameters and code which manipulated them. All callers changed.
12474 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12475 and DST_MAP parameters. Simplify invalidation code by just calling
12476 invalidate_equivalences. All callers changed.
12477 (thread_across_edge): Simplify now that we don't need to maintain
12478 the map of equivalences to invalidate.
12479
12480 2014-06-05 Kai Tietz <ktietz@redhat.com>
12481 Richard Henderson <rth@redhat.com>
12482
12483 PR target/46219
12484 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12485 checking for !TARGET_X32.
12486 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12487 (sibcall_intern): New define_insn, plus required peepholes.
12488 (sibcall_pop_intern): Likewise.
12489 (sibcall_value_intern): Likewise.
12490 (sibcall_value_pop_intern): Likewise.
12491
12492 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12493
12494 * tree-inline.c (tree_function_versioning): Check DF info existence
12495 before accessing it.
12496
12497 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12498
12499 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12500 frame_size.
12501 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12502 aarch64_frame hard_fp_offset and frame_size.
12503 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12504 frame_size; remove original_frame_size.
12505 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12506 (aarch64_initial_elimination_offset): Remove frame_size and
12507 offset. Use aarch64_frame frame_size.
12508
12509 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12510 Jiong Wang <jiong.wang@arm.com>
12511 Renlin <renlin.li@arm.com>
12512
12513 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12514 initialization of R30 offset. Update offset. Iterate core
12515 regisers upto X30. Remove X29, X30 specific code.
12516
12517 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12518 Jiong Wang <jiong.wang@arm.com>
12519
12520 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12521 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12522 (aarch64_register_saved_on_entry): Adjust test.
12523
12524 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12525
12526 * config/aarch64/aarch64.h (machine_function): Move
12527 saved_varargs_size from here...
12528 (aarch64_frame): ... to here.
12529
12530 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12531 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12532 (aarch64_initial_elimination_offset)
12533 (aarch64_setup_incoming_varargs): Adjust location of
12534 saved_varargs_size.
12535
12536 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12537
12538 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12539 layout comment.
12540
12541 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12542 Prachi Godbole <Prachi.Godbole@imgtec.com>
12543
12544 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12545 mips32r5 entry to use PROCESSOR_P5600.
12546 * config/mips/mips-tables.opt: Regenerate.
12547 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12548 * config/mips/mips.c (mips_fmadd_bypass): New function.
12549 (mips_rtx_cost_data): Add costs for p5600.
12550 (mips_issue_rate): Add support for p5600.
12551 (mips_multipass_dfa_lookahead): Likewise.
12552 * config/mips/mips.h (TUNE_P5600): New define.
12553 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12554 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12555 * config/mips/mips.md: Include p5600.md.
12556 (processor): Add p5600.
12557 * config/mips/p5600.md: New file.
12558
12559 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12560
12561 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12562 * config/i386/predicates.md (palignr_operand): New.
12563 Indicates if permutation is suitable for palignr instruction.
12564
12565 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12566
12567 PR tree-optimization/61319
12568 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12569 stmt belongs to loop.
12570
12571 2014-06-05 Richard Biener <rguenther@suse.de>
12572
12573 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12574 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12575 (lookup_tmp_var): Adjust.
12576 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12577
12578 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12579
12580 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12581
12582 2014-06-05 Marek Polacek <polacek@redhat.com>
12583
12584 PR c/49706
12585 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12586
12587 2014-06-04 Tom de Vries <tom@codesourcery.com>
12588
12589 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12590 CONST_INT.
12591
12592 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12593
12594 PR tree-optimization/61385
12595 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12596
12597 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12598
12599 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12600 changed to use fatal_error.
12601 (main): Ensure lto_wrapper_cleanup is run atexit.
12602
12603 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12604
12605 * lra-constraints.c (valid_address_p): Move earlier in file.
12606 (address_eliminator): New structure.
12607 (satisfies_memory_constraint_p): New function.
12608 (satisfies_address_constraint_p): Likewise.
12609 (process_alt_operands, process_address, curr_insn_transform): Use them.
12610
12611 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12612
12613 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12614 const pointer.
12615 (target_lra_int, default_target_lra_int, this_target_lra_int)
12616 (op_alt_data): Delete.
12617 * lra.h (lra_init): Delete.
12618 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12619 (init_insn_code_data_once): Remove op_alt_data handling.
12620 (finish_insn_code_data_once): Likewise.
12621 (init_op_alt_data): Delete.
12622 (get_static_insn_data): Initialize operand_alternative to null.
12623 (free_insn_recog_data): Cast operand_alternative before freeing it.
12624 (setup_operand_alternative): Take the operand_alternative as
12625 parameter and assume it isn't already cached in the static
12626 insn data.
12627 (lra_set_insn_recog_data): Update accordingly.
12628 (lra_init): Delete.
12629 * ira.c (ira_init): Don't call lra_init.
12630 * target-globals.h (this_target_lra_int): Declare.
12631 (target_globals): Remove lra_int.
12632 (restore_target_globals): Update accordingly.
12633 * target-globals.c: Don't include lra-int.h.
12634 (default_target_globals, save_target_globals): Remove lra_int.
12635
12636 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12637
12638 * recog.h (operand_alternative): Convert reg_class, reject,
12639 matched and matches into bitfields.
12640 (preprocess_constraints): New overload.
12641 (preprocess_insn_constraints): New function.
12642 (preprocess_constraints): Take the insn as parameter.
12643 (recog_op_alt): Change into a pointer.
12644 (target_recog): Add x_op_alt.
12645 * recog.c (asm_op_alt): New variable.
12646 (recog_op_alt): Change into a pointer.
12647 (preprocess_constraints): New overload, replacing the old function
12648 definition with one that doesn't use global state.
12649 (preprocess_insn_constraints): New function.
12650 (preprocess_constraints): Use them. Take the insn as parameter.
12651 Use asm_op_alt for asms.
12652 (recog_init): Free existing x_op_alt entries.
12653 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12654 pointer const.
12655 (make_early_clobber_and_input_conflicts): Likewise.
12656 (process_bb_node_lives): Pass the insn to process_constraints.
12657 * reg-stack.c (check_asm_stack_operands): Likewise.
12658 (subst_asm_stack_regs): Likewise.
12659 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12660 * regrename.c (build_def_use): Likewise.
12661 * sched-deps.c (sched_analyze_insn): Likewise.
12662 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12663 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12664 (note_invalid_constants): Likewise.
12665 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12666 (ix86_legitimate_combined_insn): Make operand_alternative pointer
12667 const.
12668
12669 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12670
12671 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12672 * ira-lives.c (check_and_make_def_conflict): Check for disabled
12673 alternatives.
12674 (make_early_clobber_and_input_conflicts): Likewise.
12675 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12676
12677 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12678
12679 * recog.h (alternative_class): New function.
12680 (which_op_alt): Return a const recog_op_alt.
12681 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12682 (subst_asm_stack_regs): Likewise.
12683 * config/arm/arm.c (note_invalid_constants): Likewise.
12684 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
12685 the operand_alternative; use alternative class instead.
12686 * sel-sched.c (get_reg_class): Likewise.
12687 * regrename.c (build_def_use): Likewise.
12688 (hide_operands, restore_operands, record_out_operands): Update type
12689 accordingly.
12690
12691 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12692
12693 * recog.h (recog_op_alt): Convert to a flat array.
12694 (which_op_alt): New function.
12695 * recog.c (recog_op_alt): Convert to a flat array.
12696 (preprocess_constraints): Update accordingly, grouping all
12697 operands of the same alternative together, rather than the
12698 other way around.
12699 * ira-lives.c (check_and_make_def_conflict): Likewise.
12700 (make_early_clobber_and_input_conflicts): Likewise.
12701 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12702 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12703 (subst_asm_stack_regs): Likewise.
12704 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12705 * regrename.c (hide_operands, record_out_operands): Likewise.
12706 (build_def_use): Likewise.
12707 * sel-sched.c (get_reg_class): Likewise.
12708 * config/arm/arm.c (note_invalid_constants): Likewise.
12709
12710 2014-06-04 Jason Merrill <jason@redhat.com>
12711
12712 PR c++/51253
12713 PR c++/61382
12714 * gimplify.c (gimplify_arg): Non-static.
12715 * gimplify.h: Declare it.
12716
12717 2014-06-04 Richard Biener <rguenther@suse.de>
12718
12719 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12720 TREE_PUBLIC and DECL_EXTERNAL decls.
12721
12722 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
12723
12724 * regcprop.c (copyprop_hardreg_forward_1): Account for
12725 HARD_REGNO_CALL_PART_CLOBBERED.
12726
12727 2014-06-04 Richard Biener <rguenther@suse.de>
12728
12729 * configure.ac: Check whether the underlying type of int64_t
12730 is long or long long.
12731 * configure: Regenerate.
12732 * config.in: Likewise.
12733 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12734 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12735
12736 2014-06-04 Richard Biener <rguenther@suse.de>
12737
12738 PR tree-optimization/60098
12739 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12740 we hit a kill.
12741 (dse_optimize_stmt): Simplify, now that we found a kill
12742 earlier.
12743
12744 2014-06-04 Richard Biener <rguenther@suse.de>
12745
12746 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12747 of accesses with non-invariant address.
12748
12749 2014-06-04 Martin Liska <mliska@suse.cz>
12750
12751 * cgraph.h (cgraph_make_wrapper): New function introduced.
12752 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12753 * ipa-inline.h (inline_analyze_function): The function is global.
12754 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12755
12756 2014-06-04 Martin Liska <mliska@suse.cz>
12757
12758 * tree.h (private_lookup_attribute_starting): New function.
12759 (lookup_attribute_starting): Likewise.
12760 * tree.c (private_lookup_attribute_starting): Likewise.
12761
12762 2014-06-04 Martin Liska <mliska@suse.cz>
12763
12764 * cgraph.h (expand_thunk): New argument added.
12765 (address_taken_from_non_vtable_p): New global function.
12766 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12767 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12768 * cgraphunit.c (analyze_function): Likewise.
12769 (assemble_thunks_and_aliases): Argument added to call.
12770 (expand_thunk): New argument forces to produce GIMPLE thunk.
12771
12772 2014-06-04 Martin Liska <mliska@suse.cz>
12773
12774 * coverage.h (coverage_compute_cfg_checksum): Argument added.
12775 * coverage.c (coverage_compute_cfg_checksum): Likewise.
12776 * profile.c (branch_prob): Likewise.
12777
12778 2014-06-04 Martin Jambor <mjambor@suse.cz>
12779
12780 PR ipa/61340
12781 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
12782 handler for switch on an ipa_ref_use enum.
12783 * ipa-reference.c (analyze_function): Likewise.
12784
12785 2014-06-04 Kai Tietz <ktietz@redhat.com>
12786
12787 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
12788 from old call-instruction.
12789
12790 2014-06-04 Bin Cheng <bin.cheng@arm.com>
12791
12792 * config/aarch64/aarch64.c (aarch64_classify_address)
12793 (aarch64_legitimize_reload_address): Support full addressing modes
12794 for vector modes.
12795 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
12796 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
12797
12798 2014-06-03 Andrew Pinski <apinski@cavium.com>
12799
12800 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
12801 for OP0.
12802
12803 2014-06-03 Andrew Pinski <apinski@cavium.com>
12804
12805 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
12806 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
12807
12808 2014-06-03 Kai Tietz <ktietz@redhat.com>
12809
12810 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
12811 for 64-bit ms-abi.
12812
12813 2014-06-03 Dehao Chen <dehao@google.com>
12814
12815 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
12816 the same loop.
12817
12818 2014-06-03 Marek Polacek <polacek@redhat.com>
12819
12820 PR c/60439
12821 * doc/invoke.texi: Document -Wswitch-bool.
12822 * function.c (stack_protect_epilogue): Cast controlling expression of
12823 the switch to int.
12824 * gengtype.c (walk_type): Generate switch expression with its
12825 controlling expression cast to int.
12826
12827 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
12828
12829 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
12830 and attiny841.
12831 * config/avr/avr-tables.opt: Regenerate.
12832 * config/avr/t-multilib: Regenerate.
12833 * doc/avr-mmcu.texi: Regenerate.
12834
12835 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
12836 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12837
12838 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
12839 (ata6617c, ata664251): Add new avr35 devices.
12840 (ata6612c): Add new avr4 device.
12841 (ata6613c, ata6614q): Add new avr5 devices.
12842 * config/avr/avr-tables.opt: Regenerate.
12843 * config/avr/t-multilib: Regenerate.
12844 * doc/avr-mmcu.texi: Regenerate.
12845
12846 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12847
12848 * gcc/config/aarch64/aarch64-builtins.c
12849 (aarch64_types_binop_ssu_qualifiers): New static data.
12850 (TYPES_BINOP_SSU): Define.
12851 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
12852 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
12853 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
12854 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
12855 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
12856 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
12857 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
12858 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
12859 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
12860 suffix to builtin function name, remove cast.
12861 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
12862 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
12863 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
12864
12865 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12866
12867 * gcc/config/aarch64/aarch64-builtins.c
12868 (aarch64_types_binop_uus_qualifiers,
12869 aarch64_types_shift_to_unsigned_qualifiers,
12870 aarch64_types_unsigned_shiftacc_qualifiers): Define.
12871 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
12872 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
12873 sqshlu_n, uqshl_n): Update qualifiers.
12874 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
12875 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
12876 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
12877 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
12878 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
12879 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
12880 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
12881 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
12882 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
12883 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
12884 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
12885 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
12886 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
12887 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
12888 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
12889 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
12890 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
12891 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
12892 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
12893 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
12894 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
12895 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
12896 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
12897 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
12898 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
12899 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
12900 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
12901
12902 2014-06-03 Teresa Johnson <tejohnson@google.com>
12903
12904 * tree-sra.c (modify_function): Record caller nodes after rebuild.
12905
12906 2014-06-02 Jason Merrill <jason@redhat.com>
12907
12908 PR c++/61020
12909 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
12910
12911 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12912
12913 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
12914 location == 0.
12915
12916 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12917
12918 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
12919 New pattern.
12920 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
12921 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
12922 * config/aarch64/iterators.md (REVERSE): New iterator.
12923 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
12924 (rev_op): New int_attribute.
12925 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
12926 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
12927 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
12928 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
12929 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
12930 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
12931 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
12932 Replace temporary __asm__ with __builtin_shuffle.
12933
12934 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12935
12936 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
12937 mips64r5.
12938 * config/mips/mips-tables.opt: Regenerate.
12939 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
12940 to use mips_isa_rev rather than ISA_MIPS32R2.
12941 * config/mips/mips.h (ISA_MIPS32R3): New define.
12942 (ISA_MIPS32R5): New define.
12943 (ISA_MIPS64R3): New define.
12944 (ISA_MIPS64R5): New define.
12945 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
12946 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
12947 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
12948 and mips64r5.
12949 (MIPS_ISA_SYNCI_SPEC): Likewise.
12950 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
12951 (LINK_SPEC): Added mips32r3 and mips32r5.
12952 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
12953 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
12954 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
12955 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
12956 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
12957 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
12958 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
12959
12960 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12961
12962 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
12963 options.
12964 * config/mips/mips.opt (mxpa): New option.
12965 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
12966 assembler.
12967
12968 2014-06-03 Martin Jambor <mjambor@suse.cz>
12969
12970 PR ipa/61160
12971 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
12972 thunks.
12973
12974 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
12975
12976 PR tree-optimization/61328
12977 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
12978 initialization from find_bswap_or_nop_1.
12979 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
12980 in source_expr2 before using the size value the function sets. Also
12981 make use of init_symbolic_number () in both the old place and
12982 find_bswap_or_nop_load () to avoid reading uninitialized memory when
12983 doing recursion in the GIMPLE_BINARY_RHS case.
12984
12985 2014-06-03 Richard Biener <rguenther@suse.de>
12986
12987 PR tree-optimization/61383
12988 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
12989 stmts can't trap.
12990
12991 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12992
12993 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
12994 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
12995 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
12996 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
12997 in this file.
12998 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
12999 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13000 * system.h: ...here and make it unconditional.
13001 * target.def (conditional_register_usage): Mention
13002 define_register_constraint instead of old-style constraint macros.
13003 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13004 * doc/tm.texi: Regenerate.
13005 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13006 protected by !USE_MD_CONSTRAINTS.
13007 * config/frv/frv.md: Remove quote from old version of documentation.
13008 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13009 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13010 CONST_DOUBLE_OK_FOR_LETTER.
13011 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13012
13013 2014-06-02 Andrew Pinski <apinski@cavium.com>
13014
13015 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13016 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13017 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13018 file whose name depends on -mabi= and -mbig-endian.
13019 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13020 Handle LP64 better and handle ilp32 too.
13021 (MULTILIB_OPTIONS): Delete.
13022 (MULTILIB_DIRNAMES): Delete.
13023
13024 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13025
13026 * expr.h: Remove prototypes of functions defined in builtins.c.
13027 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13028 Remove prototypes of functions defined in builtins.c.
13029 * builtins.h: Update prototype list to include all exported functions.
13030 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13031 no_c99_libc_has_function): Move to targhooks.c
13032 (build_string_literal, build_call_expr_loc_array,
13033 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13034 to tree.c.
13035 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13036 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13037 no_c99_libc_has_function): Relocate from builtins.c.
13038 * tree.c: Include builtins.h.
13039 (build_call_expr_loc_array, build_call_expr_loc_vec,
13040 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13041 from builtins.c.
13042 * fold-const.h (fold_fma): Move prototype to builtins.h.
13043 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13044 * asan.c: Include builtins.h.
13045 * cfgexpand.c: Likewise.
13046 * convert.c: Likewise.
13047 * emit-rtl.c: Likewise.
13048 * except.c: Likewise.
13049 * expr.c: Likewise.
13050 * fold-const.c: Likewise.
13051 * gimple-fold.c: Likewise.
13052 * gimple-ssa-strength-reduction.c: Likewise.
13053 * gimplify.c: Likewise.
13054 * ipa-inline.c: Likewise.
13055 * ipa-prop.c: Likewise.
13056 * lto-streamer-out.c: Likewise.
13057 * stmt.c: Likewise.
13058 * tree-inline.c: Likewise.
13059 * tree-object-size.c: Likewise.
13060 * tree-sra.c: Likewise.
13061 * tree-ssa-ccp.c: Likewise.
13062 * tree-ssa-forwprop.c: Likewise.
13063 * tree-ssa-loop-ivcanon.c: Likewise.
13064 * tree-ssa-loop-ivopts.c: Likewise.
13065 * tree-ssa-math-opts.c: Likewise.
13066 * tree-ssa-reassoc.c: Likewise.
13067 * tree-ssa-threadedge.c: Likewise.
13068 * tree-streamer-in.c: Likewise.
13069 * tree-vect-data-refs.c: Likewise.
13070 * tree-vect-patterns.c: Likewise.
13071 * tree-vect-stmts.c: Likewise.
13072 * config/aarch64/aarch64.c: Likewise.
13073 * config/alpha/alpha.c: Likewise.
13074 * config/arc/arc.c: Likewise.
13075 * config/arm/arm.c: Likewise.
13076 * config/avr/avr.c: Likewise.
13077 * config/bfin/bfin.c: Likewise.
13078 * config/c6x/c6x.c: Likewise.
13079 * config/cr16/cr16.c: Likewise.
13080 * config/cris/cris.c: Likewise.
13081 * config/epiphany/epiphany.c: Likewise.
13082 * config/fr30/fr30.c: Likewise.
13083 * config/frv/frv.c: Likewise.
13084 * config/h8300/h8300.c: Likewise.
13085 * config/i386/i386.c: Likewise.
13086 * config/i386/winnt.c: Likewise.
13087 * config/ia64/ia64.c: Likewise.
13088 * config/iq2000/iq2000.c: Likewise.
13089 * config/lm32/lm32.c: Likewise.
13090 * config/m32c/m32c.c: Likewise.
13091 * config/m32r/m32r.c: Likewise.
13092 * config/m68k/m68k.c: Likewise.
13093 * config/mcore/mcore.c: Likewise.
13094 * config/mep/mep.c: Likewise.
13095 * config/microblaze/microblaze.c: Likewise.
13096 * config/mips/mips.c: Likewise.
13097 * config/mmix/mmix.c: Likewise.
13098 * config/mn10300/mn10300.c: Likewise.
13099 * config/moxie/moxie.c: Likewise.
13100 * config/msp430/msp430.c: Likewise.
13101 * config/nds32/nds32.c: Likewise.
13102 * config/pa/pa.c: Likewise.
13103 * config/pdp11/pdp11.c: Likewise.
13104 * config/picochip/picochip.c: Likewise.
13105 * config/rl78/rl78.c: Likewise.
13106 * config/rs6000/rs6000.c: Likewise.
13107 * config/rx/rx.c: Likewise.
13108 * config/s390/s390.c: Likewise.
13109 * config/score/score.c: Likewise.
13110 * config/sh/sh.c: Likewise.
13111 * config/sparc/sparc.c: Likewise.
13112 * config/spu/spu.c: Likewise.
13113 * config/stormy16/stormy16.c: Likewise.
13114 * config/tilegx/tilegx.c: Likewise.
13115 * config/tilepro/tilepro.c: Likewise.
13116 * config/v850/v850.c: Likewise.
13117 * config/vax/vax.c: Likewise.
13118 * config/xtensa/xtensa.c: Likewise.
13119
13120 2014-06-02 Jeff Law <law@redhat.com>
13121
13122 PR rtl-optimization/61094
13123 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13124 was marked as do_no_reextend. If a copy is needed to eliminate
13125 an extension, then mark it as do_not_reextend.
13126
13127 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13128
13129 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13130
13131 2014-06-02 Richard Henderson <rth@redhat.com>
13132
13133 PR target/61336
13134 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13135 addresses inside asms. Use output_operand_lossage instead of
13136 gcc_unreachable.
13137
13138 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13139
13140 PR target/61239
13141 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13142 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13143
13144 2014-06-02 Tom de Vries <tom@codesourcery.com>
13145
13146 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13147 case that x has VOIDmode.
13148
13149 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13150
13151 * varasm.c (copy_constant): Delete function.
13152 (build_constant_desc): Don't call it.
13153
13154 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13155
13156 PR target/61154
13157 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13158 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13159 with immediate_operand.
13160
13161 2014-06-02 Andreas Schwab <schwab@suse.de>
13162
13163 * config/ia64/ia64.c
13164 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13165 pending_data_specs first.
13166
13167 2014-06-02 Richard Biener <rguenther@suse.de>
13168
13169 PR tree-optimization/61378
13170 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13171 valueized_anything.
13172
13173 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13174
13175 * config/i386/constraints.md (Bw): Rename from 'w'.
13176 (Bz): Rename from 'z'.
13177 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13178
13179 2014-06-01 Kai Tietz <ktietz@redhat.com>
13180
13181 PR target/61377
13182 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13183 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13184 instead of m constraint.
13185
13186 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13187
13188 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13189 a separate alternative where the scratch operand 2 is marked as
13190 early clobber.
13191
13192 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13193
13194 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13195 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13196 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13197 and __builtins_arm_get_fpscr.
13198 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13199 __builtins_arm_get_fpscr.
13200 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13201 __builtins_arm_ldfpscr.
13202 (arm_atomic_assign_expand_fenv): New function.
13203 * config/arm/vfp.md (set_fpscr): New pattern.
13204 (get_fpscr) : Likewise.
13205 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13206 VUNSPEC_SET_FPSCR.
13207 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13208 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13209
13210 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13211
13212 * asan.c (report_error_func): Add SLOW_P argument, use
13213 BUILT_IN_ASAN_*_N if set.
13214 (build_check_stmt): Likewise.
13215 (instrument_derefs): If T has insufficient alignment,
13216 force same handling as for odd sizes.
13217
13218 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13219 BUILT_IN_ASAN_REPORT_STORE_N): New.
13220 * asan.c (struct asan_mem_ref): Change access_size type to
13221 HOST_WIDE_INT.
13222 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13223 update_mem_ref_hash_table): Likewise.
13224 (asan_mem_ref_hasher::hash): Hash in a HWI.
13225 (report_error_func): Change size_in_bytes argument to HWI.
13226 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13227 two.
13228 (build_shadow_mem_access): New function.
13229 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13230 Handle size_in_bytes not power of two or larger than 16.
13231 (instrument_derefs): Don't give up if size_in_bytes is not
13232 power of two or is larger than 16.
13233
13234 2014-05-30 Kai Tietz <ktietz@redhat.com>
13235
13236 PR target/60104
13237 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13238 for sibling-tail-calls.
13239 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13240 to its use.
13241 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13242 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13243
13244 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13245
13246 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13247 * config/avr/avr-tables.opt: Regenerate.
13248 * config/avr/t-multilib: Regenerate.
13249 * doc/avr-mmcu.texi: Regenerate.
13250
13251 2014-05-30 Ian Lance Taylor <iant@google.com>
13252
13253 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13254 target("sse").
13255
13256 2014-05-30 Tom de Vries <tom@codesourcery.com>
13257
13258 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13259 Redefine as true.
13260
13261 2014-05-30 Tom de Vries <tom@codesourcery.com>
13262
13263 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13264 * lra.c (initialize_lra_reg_info_element): Add init of
13265 actual_call_used_reg_set field.
13266 (lra): Call lra_create_live_ranges before lra_inheritance for
13267 -fuse-caller-save.
13268 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13269 -fuse-caller-save.
13270 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13271 instead of call_used_reg_set for -fuse-caller-save.
13272 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13273
13274 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13275
13276 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13277 to mov_imm.
13278 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13279
13280 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13281
13282 * ira.c (ira_get_dup_out_num): Check for output operands at
13283 the start of the loop. Handle cases where an included alternative
13284 follows an excluded one.
13285
13286 2014-05-29 Mike Stump <mikestump@comcast.net>
13287
13288 PR debug/61352
13289 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13290 post ld passes when lto is used.
13291
13292 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13293
13294 PR rtl-optimization/61325
13295 * lra-constraints.c (process_address): Rename to process_address_1.
13296 (process_address): New function.
13297
13298 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13299
13300 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13301 TYPES_BINOPV): New static data.
13302 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13303 New builtin.
13304 * config/aarch64/aarch64-simd.md (aarch64_ext,
13305 aarch64_im_lane_boundsi): New patterns.
13306 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13307 patterns for EXT.
13308 (aarch64_evpc_ext): New function.
13309
13310 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13311
13312 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13313 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13314 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13315 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13316 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13317
13318 2014-05-29 Tom de Vries <tom@codesourcery.com>
13319
13320 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13321
13322 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13323 Richard Sandiford <rdsandiford@googlemail.com>
13324
13325 * arm/iterators.md (shiftable_ops): New code iterator.
13326 (t2_binop0, arith_shift_insn): New code attributes.
13327 * arm/predicates.md (shift_nomul_operator): New predicate.
13328 * arm/arm.md (insn_enabled): Delete.
13329 (enabled): Remove insn_enabled test.
13330 (*arith_shiftsi): Delete. Replace with ...
13331 (*<arith_shift_insn>_multsi): ... new pattern.
13332 (*<arith_shift_insn>_shiftsi): ... new pattern.
13333 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13334
13335 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13336 Tom de Vries <tom@codesourcery.com>
13337
13338 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13339 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13340 clobber.
13341 (mips_split_call): Use POST_CALL_TMP_REG.
13342 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13343
13344 2014-05-29 Tom de Vries <tom@codesourcery.com>
13345
13346 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13347 with #ifdef STACK_REGS.
13348
13349 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13350
13351 * varasm.c (get_variable_section): Walk aliases.
13352 (place_block_symbol): Walk aliases.
13353
13354 2014-05-28 Tom de Vries <tom@codesourcery.com>
13355
13356 Revert:
13357 2014-05-28 Tom de Vries <tom@codesourcery.com>
13358
13359 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13360 * lra.c (initialize_lra_reg_info_element): Add init of
13361 actual_call_used_reg_set field.
13362 (lra): Call lra_create_live_ranges before lra_inheritance for
13363 -fuse-caller-save.
13364 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13365 -fuse-caller-save.
13366 * lra-constraints.c (need_for_call_save_p): Use
13367 actual_call_used_reg_set instead of call_used_reg_set for
13368 -fuse-caller-save.
13369 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13370
13371 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13372
13373 * doc/md.texi: Document that the % constraint character must
13374 be at the beginning of the string.
13375 * genoutput.c (validate_insn_alternatives): Check that '=',
13376 '+' and '%' only appear at the beginning of a constraint.
13377 * ira.c (commutative_constraint_p): Delete.
13378 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13379 at the start of the string.
13380 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13381 duplicate '='s.
13382 * config/arm/neon.md (bicdi3_neon): Likewise.
13383 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13384 (slt_si, sltu_si): Likewise.
13385 * config/vax/vax.md (sbcdi3): Likewise.
13386 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13387 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13388 (mul64): Move '%' to beginning of constraint.
13389 * config/arm/arm.md (*xordi3_insn): Likewise.
13390 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13391 (xorsi3): Likewise.
13392
13393 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13394
13395 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13396
13397 2014-05-28 Jason Merrill <jason@redhat.com>
13398
13399 PR c++/47202
13400 * cgraph.h (symtab_node::get_comdat_group_id): New.
13401 * cgraphunit.c (analyze_functions): Call it.
13402 * symtab.c (dump_symtab_node): Likewise.
13403 * tree.c (decl_comdat_group_id): New.
13404 * tree.h: Declare it.
13405 * lto-streamer-out.c (write_symbol): Use it.
13406 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13407
13408 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13409
13410 PR bootstrap/PR61146
13411 * wide-int.cc: Do not include longlong.h when compiling with clang.
13412
13413 2014-05-28 Richard Biener <rguenther@suse.de>
13414
13415 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13416 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13417 (vrp_visit_assignment_or_call): Print less vertical space.
13418 (vrp_visit_stmt): Likewise.
13419 (vrp_visit_phi_node): Likewise. For a PHI argument with
13420 VR_VARYING range consider recording it as copy.
13421
13422 2014-05-28 Richard Biener <rguenther@suse.de>
13423
13424 Revert
13425 2014-05-28 Richard Biener <rguenther@suse.de>
13426
13427 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13428
13429 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13430
13431 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13432 sufficiently aligned and an offset is used at the same time.
13433 (expand_expr_real_1): Likewise.
13434
13435 2014-05-28 Richard Biener <rguenther@suse.de>
13436
13437 PR middle-end/61045
13438 * fold-const.c (fold_comparison): When folding
13439 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13440 the sign of the remaining constant operand stays the same.
13441
13442 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13443
13444 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13445 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13446 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13447 to the assembler.
13448 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13449 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13450 (m32bit-doubles) Likewise.
13451 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13452 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13453 option for RL78.
13454
13455 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13456
13457 * configure.ac ($gcc_cv_ld_clearcap): New test.
13458 * configure: Regenerate.
13459 * config.in: Regenerate.
13460 * config/sol2.opt (mclear-hwcap): New option.
13461 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13462 * config/sol2-clearcap.map: Moved here from
13463 testsuite/gcc.target/i386/clearcap.map.
13464 * config/sol2-clearcapv2.map: Move here from
13465 gcc.target/i386/clearcapv2.map.
13466 * config/t-sol2 (install): Depend on install-clearcap-map.
13467 (install-clearcap-map): New target.
13468 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13469 -mclear-hwcap.
13470
13471 2014-05-28 Richard Biener <rguenther@suse.de>
13472
13473 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13474 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13475 ... here and remove the rest.
13476 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13477
13478 2014-05-28 Richard Biener <rguenther@suse.de>
13479
13480 PR tree-optimization/61335
13481 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13482 new range fails, drop to varying.
13483
13484 2014-05-28 Olivier Hainque <hainque@adacore.com>
13485
13486 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13487 (CPP_SPEC): Add entry for -mcpu=8548.
13488 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13489 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13490
13491 2014-05-28 Tom de Vries <tom@codesourcery.com>
13492
13493 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13494 * lra.c (initialize_lra_reg_info_element): Add init of
13495 actual_call_used_reg_set field.
13496 (lra): Call lra_create_live_ranges before lra_inheritance for
13497 -fuse-caller-save.
13498 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13499 -fuse-caller-save.
13500 * lra-constraints.c (need_for_call_save_p): Use
13501 actual_call_used_reg_set instead of call_used_reg_set for
13502 -fuse-caller-save.
13503 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13504
13505 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13506 Tom de Vries <tom@codesourcery.com>
13507
13508 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13509 to gccoptlist.
13510 (@item -fuse-caller-save): New item.
13511
13512 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13513 Tom de Vries <tom@codesourcery.com>
13514
13515 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13516 OPT_fuse_caller_save.
13517
13518 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13519 Tom de Vries <tom@codesourcery.com>
13520
13521 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13522 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13523 get_call_reg_set_usage.
13524 * resource.c (mark_set_resources, mark_target_live_regs): Use
13525 get_call_reg_set_usage.
13526 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13527 field.
13528 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13529 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13530 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13531 * ira-build.c (ira_create_allocno): Init
13532 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13533 (create_cap_allocno, propagate_allocno_info)
13534 (propagate_some_info_from_allocno)
13535 (copy_info_to_removed_store_destinations): Handle
13536 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13537 * ira-costs.c (ira_tune_allocno_costs): Use
13538 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13539
13540 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13541 Tom de Vries <tom@codesourcery.com>
13542
13543 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13544 and function_used_regs_valid fields.
13545 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13546 find_all_hard_reg_sets.
13547 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13548 (get_call_reg_set_usage): New function.
13549 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13550 * regs.h (get_call_reg_set_usage): Declare.
13551
13552 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13553
13554 PR libgcc/61152
13555 * config/dbx.h (License): Add Runtime Library Exception.
13556 * config/newlib-stdint.h (License): Same.
13557 * config/rtems.h (License): Same
13558 * config/initfini-array.h (License): Same
13559 * config/v850/v850.h (License): Same.
13560 * config/v850/v850-opts.h (License): Same
13561 * config/v850/rtems.h (License): Same.
13562
13563 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13564
13565 PR target/61044
13566 * doc/extend.texi (Local Labels): Note that label differences are
13567 not supported for AVR.
13568
13569 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13570 Olivier Hainque <hainque@adacore.com>
13571
13572 * rtl.h (set_for_reg_notes): Declare.
13573 * emit-rtl.c (set_for_reg_notes): New function.
13574 (set_unique_reg_note): Use it.
13575 * optabs.c (add_equal_note): Likewise
13576
13577 2014-05-27 Andrew Pinski <apinski@cavium.com>
13578
13579 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13580 Use <w> for the register in assembly template.
13581 (stack_protect_test): Use the mode of operands[0] for the result.
13582 (stack_protect_test_<mode>): Use <w> for the register
13583 in assembly template.
13584
13585 2014-05-27 DJ Delorie <dj@redhat.com>
13586
13587 * config/rx/rx.c (add_vector_labels): New.
13588 (rx_output_function_prologue): Call it.
13589 (rx_handle_func_attribute): Don't require empty arguments.
13590 (rx_handle_vector_attribute): New.
13591 (rx_attribute_table): Add "vector" attribute.
13592 * doc/extend.texi (interrupt, vector): Document new/changed
13593 RX-specific attributes.
13594
13595 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13596
13597 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13598
13599 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13600 predicate to detect a negative quotient.
13601
13602 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13603
13604 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13605 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13606 Add X - Y CMP 0 to X CMP Y transformation.
13607 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13608
13609 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13610
13611 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13612 before printing.
13613
13614 2014-05-27 Steve Ellcey <sellcey@mips.com>
13615
13616 * config/mips/mips.c: Add include of cgraph.h.
13617
13618 2014-05-27 Richard Biener <rguenther@suse.de>
13619
13620 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13621
13622 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13623
13624 PR libgcc/61152
13625 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13626 * config/arm/arm-cores.def (License): Same.
13627 * config/arm/arm-opts.h (License): Same.
13628 * config/arm/aout.h (License): Same.
13629 * config/arm/bpabi.h (License): Same.
13630 * config/arm/elf.h (License): Same.
13631 * config/arm/linux-elf.h (License): Same.
13632 * config/arm/linux-gas.h (License): Same.
13633 * config/arm/netbsd-elf.h (License): Same.
13634 * config/arm/uclinux-eabi.h (License): Same.
13635 * config/arm/uclinux-elf.h (License): Same.
13636 * config/arm/vxworks.h (License): Same.
13637
13638 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13639
13640 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13641 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13642 (arm_init_neon_builtins): Handle NEON_BSWAP.
13643 Define required type nodes.
13644 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13645 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13646 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13647 * config/arm/iterators.md (VDQHSD): New mode iterator.
13648
13649 2014-05-27 Richard Biener <rguenther@suse.de>
13650
13651 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13652 Try using literal operands when comparing value-ranges failed.
13653
13654 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13655
13656 * ira.c (commutative_operand): Adjust for change to recog_data.
13657 [Missing from previous commit.]
13658
13659 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13660
13661 * system.h (TEST_BIT): New macro.
13662 * recog.h (alternative_mask): New type.
13663 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13664 (recog_data_d): Replace alternative_enabled_p array with
13665 enabled_alternatives.
13666 (target_recog): New structure.
13667 (default_target_recog, this_target_recog): Declare.
13668 (get_enabled_alternatives, recog_init): Likewise.
13669 * recog.c (default_target_recog, this_target_recog): New variables.
13670 (get_enabled_alternatives): New function.
13671 (extract_insn): Use it.
13672 (recog_init): New function.
13673 (preprocess_constraints, constrain_operands): Adjust for change to
13674 recog_data.
13675 * postreload.c (reload_cse_simplify_operands): Likewise.
13676 * reload.c (find_reloads): Likewise.
13677 * ira-costs.c (record_reg_classes): Likewise.
13678 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
13679 all alternatives after a disabled one would be skipped.
13680 (ira_implicitly_set_insn_hard_regs): Likewise.
13681 * ira.c (ira_setup_alts): Adjust for change to recog_data.
13682 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13683 with enabled_alternatives.
13684 * lra.c (free_insn_recog_data): Update accordingly.
13685 (lra_update_insn_recog_data): Likewise.
13686 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
13687 * lra-constraints.c (process_alt_operands): Likewise. Handle
13688 only_alternative as part of the enabled mask.
13689 * target-globals.h (this_target_recog): Declare.
13690 (target_globals): Add a recog field.
13691 (restore_target_globals): Restore this_target_recog.
13692 * target-globals.c: Include recog.h.
13693 (default_target_globals): Initialize recog field.
13694 (save_target_globals): Likewise.
13695 * reginfo.c (reinit_regs): Call recog_init.
13696 * toplev.c (backend_init_target): Likewise.
13697
13698 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13699
13700 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13701 rather than any named insn's code.
13702
13703 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13704
13705 PR libgcc/61152
13706 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13707 * config/arm/arm-cores.def (License): Same.
13708
13709 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
13710
13711 * tree.h (decl_comdat_group): Declare.
13712 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13713 * tree.c (decl_comdat_group): Here.
13714
13715 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
13716
13717 PR rtl-optimization/61222
13718 * combine.c (simplify_shift_const_1): When moving a PLUS outside
13719 the shift, truncate the PLUS operand to the result mode.
13720
13721 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
13722
13723 PR target/61271
13724 * config/i386/i386.c (ix86_rtx_costs)
13725 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13726 Fix condition.
13727
13728 2014-05-26 Martin Jambor <mjambor@suse.cz>
13729
13730 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13731 subreg uses.
13732
13733 2014-05-26 Richard Biener <rguenther@suse.de>
13734
13735 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13736 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13737 Provide specializations.
13738 (wi::int_traits <HOST_WIDE_INT>,
13739 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13740
13741 2014-05-26 Alan Modra <amodra@gmail.com>
13742
13743 PR target/61098
13744 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13745 params and return a bool. Remove dead code. Update comment.
13746 Assert we have a const_int source. Remove bogus code from
13747 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
13748 handling of constants > 2G and reg_equal note, from..
13749 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
13750 return value. Update comment. If we can, use a new pseudo
13751 for intermediate calculations.
13752 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13753 prototype.
13754 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13755 call to rs6000_emit_set_const in splitter.
13756 (movdi_internal64+2, +3): Likewise.
13757
13758 2014-05-26 Richard Biener <rguenther@suse.de>
13759
13760 * system.h: Define __STDC_FORMAT_MACROS before
13761 including inttypes.h.
13762 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13763 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13764 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13765 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13766 HOST_WIDEST_INT_C): Remove.
13767 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13768 if C99 inttypes.h is not available.
13769 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
13770 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
13771 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
13772 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
13773 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
13774 (struct output_info): Likewise.
13775 (print_statistics): Adjust.
13776 (dump_bitmap_statistics): Likewise.
13777 * bt-load.c (migrate_btr_defs): Print with PRId64.
13778 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
13779 (MAX_SAFE_MULTIPLIER): Adjust.
13780 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
13781 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
13782 dump_cgraph_node): Likewise.
13783 * final.c (dump_basic_block_info): Likewise.
13784 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
13785 * gcov.c (format_gcov): Likewise.
13786 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
13787 for calculation.
13788 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
13789 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
13790 (inline_small_functions, dump_overall_stats, dump_inline_stats):
13791 Use PRId64 for dumping.
13792 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
13793 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
13794 (add_allocno_hard_regs): Adjust.
13795 * loop-doloop.c (doloop_modify): Print using PRId64.
13796 * loop-iv.c (inverse): Compute in uint64_t.
13797 (determine_max_iter, iv_number_of_iterations): Likewise.
13798 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
13799 Print using PRId64.
13800 * lto-streamer-out.c (write_symbol): Use uint64_t.
13801 * mcf.c (CAP_INFINITY): Use int64_t maximum.
13802 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
13803 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
13804 * modulo-sched.c (const_iteration_count): Use int64_t.
13805 (sms_schedule): Dump using PRId64.
13806 * predict.c (dump_prediction): Likewise.
13807 * pretty-print.h (pp_widest_integer): Remove.
13808 * profile.c (get_working_sets, is_edge_inconsistent,
13809 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
13810 * tree-pretty-print.c (pp_double_int): Remove case handling
13811 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
13812 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
13813 and adjust users.
13814 (pass_optimize_bswap::execute): Remove restriction on hosts.
13815 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
13816 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
13817 * tree.c (widest_int_cst_value): Remove.
13818 * tree.h (widest_int_cst_value): Likewise.
13819 * value-prof.c (dump_histogram_value): Print using PRId64.
13820 * gengtype.c (main): Also inject int64_t.
13821 * ggc-page.c (struct max_alignment): Use int64_t.
13822 * alloc-pool.c (struct allocation_object_def): Likewise.
13823 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
13824 for computation.
13825 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
13826 * doc/tm.texi: Regenerated.
13827 * gengtype-lex.l (IWORD): Handle [u]int64_t.
13828 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
13829 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
13830 mmix_output_register_setting): Use [u]int64_t in prototypes.
13831 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
13832 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
13833 mmix_output_octa, mmix_output_shifted_value): Adjust.
13834 (mmix_intval): Adjust. Remove unreachable case.
13835 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
13836
13837 2014-05-26 Richard Biener <rguenther@suse.de>
13838
13839 * configure.ac: Drop __int64 type check. Insist that we
13840 found uint64_t and int64_t.
13841 * hwint.h (HOST_BITS_PER___INT64): Remove.
13842 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
13843 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
13844 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
13845 (HOST_WIDEST_FAST_INT): Remove __int64 case.
13846 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
13847 for dst_q_src_df_rms_cdt.
13848 * configure: Regenerate.
13849 * config.in: Likewise.
13850
13851 2014-05-26 Michael Tautschnig <mt@debian.org>
13852
13853 PR target/61249
13854 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
13855 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
13856
13857 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13858
13859 PR rtl-optimization/61278
13860 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
13861
13862 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13863
13864 PR rtl-optimization/61220
13865 Part of PR rtl-optimization/61225
13866 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
13867 insn; skip split_edge for a block with only one successor.
13868
13869 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13870
13871 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
13872 for variables.
13873
13874 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13875
13876 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
13877 (update_vtable_references): New function.
13878 (function_and_variable_visibility): Rewrite also vtable initializers.
13879 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
13880
13881 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13882
13883 * ggc.h (ggc_grow): New function.
13884 * ggc-none.c (ggc_grow): New function.
13885 * ggc-page.c (ggc_grow): Likewise.
13886
13887 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13888
13889 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
13890 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
13891 comdat_can_be_unshared_p, cgraph_externally_visible_p,
13892 varpool_externally_visible_p, can_replace_by_local_alias,
13893 update_visibility_by_resolution_info, function_and_variable_visibility,
13894 pass_data_ipa_function_and_variable_visibility,
13895 make_pass_ipa_function_and_variable_visibility,
13896 whole_program_function_and_variable_visibility,
13897 pass_data_ipa_whole_program_visibility,
13898 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
13899 * cgraph.h (cgraph_local_node_p): Declare.
13900 * ipa-visibility.c: New file.
13901 * Makefile.in (OBJS): Add ipa-visiblity.o
13902
13903 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13904
13905 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
13906 that var decl is available.
13907
13908 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13909
13910 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
13911 symtab_node pointer.
13912 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
13913 (find_decls_types_r): Do not walk COMDAT_GROUP.
13914 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
13915 * varasm.c (make_decl_one_only): Use set_comdat_group;
13916 create node if needed.
13917 * ipa-inline-transform.c (save_inline_function_body): Update
13918 way we decl->symtab mapping.
13919 * symtab.c (symtab_hash, hash_node, eq_node
13920 symtab_insert_node_to_hashtable): Remove.
13921 (symtab_register_node): Update.
13922 (symtab_unregister_node): Update.
13923 (symtab_get_node): Reimplement as inline function.
13924 (symtab_add_to_same_comdat_group): Update.
13925 (symtab_dissolve_same_comdat_group_list): Update.
13926 (dump_symtab_base): Update.
13927 (verify_symtab_base): Update.
13928 (symtab_make_decl_local): Update.
13929 (fixup_same_cpp_alias_visibility): Update.
13930 (symtab_nonoverwritable_alias): Update.
13931 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
13932 * ipa.c (update_visibility_by_resolution_info): UPdate.
13933 * bb-reorder.c: Include cgraph.h
13934 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
13935 with comdat groups.
13936 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
13937 * cgraph.c (cgraph_get_create_node): Update.
13938 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
13939 and comdat_group_.
13940 (symtab_get_node): Make inline.
13941 (symtab_insert_node_to_hashtable): Remove.
13942 (symtab_can_be_discarded): Update.
13943 (decl_comdat_group): New function.
13944 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
13945 Update.
13946 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
13947 comdat group name.
13948 (read_comdat_group): New function.
13949 (input_node, input_varpool_node): Use it.
13950 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
13951 comdat groups.
13952 * mips.c (mips_start_unique_function): Likewise.
13953 (ix86_code_end): Likewise.
13954 (rs6000_code_end): Likweise.
13955 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
13956
13957 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13958
13959 * gengtype-state.c (fatal_reading_state): Bring offline.
13960 * optabs.c (widening_optab_handler): Bring offline.
13961 * optabs.h (widening_optab_handler): Likewise.
13962 * final.c (get_attr_length_1): Likewise.
13963
13964 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13965
13966 * sched-int.h (sd_iterator_cond): Manually tail recurse.
13967
13968 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13969
13970 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
13971 (ppc440-compare): Include shift with dot.
13972 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
13973 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
13974 without dot.
13975 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
13976 without dot.
13977 (e6500_sfx2): Include it.
13978 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
13979 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
13980 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
13981 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
13982 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
13983 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
13984 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
13985 *lshiftrt_internal1le, *lshiftrt_internal1be,
13986 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
13987 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
13988 *rotldi3_internal10le, *rotldi3_internal10be,
13989 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
13990 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
13991 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
13992 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
13993 define_insns): Use type "shift" in the appropriate alternatives.
13994
13995 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13996
13997 * config/rs6000/rs6000.md (type): Add "logical". Delete
13998 "fast_compare".
13999 (dot): Adjust comment.
14000 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14001 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14002 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14003 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14004 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14005 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14006 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14007 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14008
14009 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14010 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14011 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14012 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14013 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14014 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14015 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14016 * config/rs6000/8540.md (ppc8540_su): Adjust.
14017 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14018 cell-cmp-microcoded): Adjust.
14019 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14020 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14021 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14022 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14023 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14024 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14025 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14026 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14027 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14028 Adjust.
14029 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14030 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14031 Adjust. Adjust comment.
14032 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14033 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14034
14035 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14036
14037 * config/rs6000/rs6000.md (type): Add "add".
14038 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14039 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14040 define_insns): Use it.
14041 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14042
14043 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14044 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14045 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14046 * config/rs6000/601.md (ppc601-integer): Adjust.
14047 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14048 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14049 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14050 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14051 * config/rs6000/8540.md (ppc8540_su): Adjust.
14052 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14053 cell-cmp-microcoded): Adjust.
14054 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14055 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14056 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14057 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14058 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14059 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14060 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14061 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14062 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14063 Adjust.
14064 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14065 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14066 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14067 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14068
14069 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14070
14071 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14072 "delayed_compare", "var_delayed_compare".
14073 (var_shift): New attribute.
14074 (cell_micro): Adjust.
14075 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14076 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14077 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14078 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14079 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14080 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14081 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14082 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14083 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14084 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14085 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14086 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14087 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14088 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14089 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14090 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14091 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14092 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14093 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14094 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14095 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14096 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14097 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14098 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14099 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14100
14101 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14102 * config/rs6000/440.md (ppc440-integer): Adjust.
14103 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14104 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14105 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14106 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14107 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14108 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14109 * config/rs6000/8540.md (ppc8540_su): Adjust.
14110 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14111 cell-cmp-microcoded): Adjust.
14112 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14113 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14114 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14115 e500mc64_delayed): Adjust.
14116 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14117 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14118 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14119 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14120 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14121 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14122 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14123 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14124 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14125 Adjust comment.
14126 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14127 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14128
14129 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14130
14131 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14132 (bits): New mode_attr.
14133 (idiv_ldiv): Delete mode_attr.
14134 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14135 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14136 rs6000_adjust_priority, is_nonpipeline_insn,
14137 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14138
14139 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14140 * config/rs6000/440.md (ppc440-idiv): Adjust.
14141 * config/rs6000/476.md (ppc476-idiv): Adjust.
14142 * config/rs6000/601.md (ppc601-idiv): Adjust.
14143 * config/rs6000/603.md (ppc603-idiv): Adjust.
14144 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14145 ppc620-ldiv): Adjust.
14146 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14147 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14148 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14149 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14150 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14151 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14152 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14153 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14154 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14155 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14156 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14157 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14158 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14159 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14160 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14161 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14162 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14163 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14164
14165 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14166
14167 * config/rs6000/rs6000.md (type): Delete "insert_word",
14168 "insert_dword". Add "insert".
14169 (size): Update comment.
14170 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14171 insn_must_be_first_in_group): Adjust.
14172 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14173 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14174 *insvsi_internal6, insvdi_internal): Adjust.
14175
14176 * config/rs6000/40x.md (ppc403-integer): Adjust.
14177 * config/rs6000/440.md (ppc440-integer): Adjust.
14178 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14179 * config/rs6000/601.md (ppc601-integer): Adjust.
14180 * config/rs6000/603.md (ppc603-integer): Adjust.
14181 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14182 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14183 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14184 * config/rs6000/8540.md (ppc8540_su): Adjust.
14185 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14186 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14187 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14188 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14189 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14190 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14191 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14192 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14193 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14194 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14195 * config/rs6000/power7.md (power7-integer): Adjust.
14196 * config/rs6000/power8.md (power8-1cyc): Adjust.
14197 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14198 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14199
14200 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14201
14202 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14203 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14204 (size): New attribute.
14205 (dot): New attribute.
14206 (cell_micro): Adjust.
14207 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14208 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14209 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14210 umuldi3_highpart): Adjust.
14211 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14212 rs6000_adjust_priority, is_nonpipeline_insn,
14213 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14214
14215 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14216 ppc405-imul3): Adjust.
14217 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14218 * config/rs6000/476.md (ppc476-imul): Adjust.
14219 * config/rs6000/601.md (ppc601-imul): Adjust.
14220 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14221 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14222 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14223 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14224 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14225 Adjust.
14226 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14227 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14228 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14229 cell-imul): Adjust.
14230 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14231 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14232 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14233 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14234 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14235 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14236 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14237 power4-lmul, power4-imul, power4-imul3): Adjust.
14238 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14239 power5-lmul, power5-imul, power5-imul3): Adjust.
14240 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14241 power6-lmul, power6-imul, power6-imul3): Adjust.
14242 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14243 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14244
14245 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14246 rs64a-lmul): Adjust.
14247 * config/rs6000/titan.md (titan_imul): Adjust.
14248
14249 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14250
14251 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14252 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14253 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14254 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14255 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14256 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14257 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14258 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14259 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14260 * config/rs6000/titan.md: Delete nonsensical comment.
14261 (titan_imul): Add type imul3.
14262 (titan_mulhw): Remove type imul3; add type halfmul.
14263
14264 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14265
14266 * config/rs6000/rs6000.md (type): Reorder, reformat.
14267
14268 2014-05-23 Martin Jambor <mjambor@suse.cz>
14269
14270 PR tree-optimization/53787
14271 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14272 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14273 analysis_done, update all uses.
14274 * ipa-prop.c: Include domwalk.h
14275 (param_analysis_info): Removed.
14276 (param_aa_status): New type.
14277 (ipa_bb_info): Likewise.
14278 (func_body_info): Likewise.
14279 (ipa_get_bb_info): New function.
14280 (aa_overwalked): Likewise.
14281 (find_dominating_aa_status): Likewise.
14282 (parm_bb_aa_status_for_bb): Likewise.
14283 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14284 (load_from_unmodified_param): Accept func_body_info as a parameter
14285 instead of parms_ainfo.
14286 (parm_ref_data_preserved_p): Changed to use new param AA info.
14287 (parm_ref_data_pass_through_p): Likewise.
14288 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14289 (compute_complex_assign_jump_func): Changed to use new param AA info.
14290 (compute_complex_ancestor_jump_func): Likewise.
14291 (ipa_compute_jump_functions_for_edge): Likewise.
14292 (ipa_compute_jump_functions): Removed.
14293 (ipa_compute_jump_functions_for_bb): New function.
14294 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14295 declarations down.
14296 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14297 and info, moved variable declarations down.
14298 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14299 node and info.
14300 (ipa_analyze_stmt_uses): Likewise.
14301 (ipa_analyze_params_uses): Removed.
14302 (ipa_analyze_params_uses_in_bb): New function.
14303 (ipa_analyze_controlled_uses): Likewise.
14304 (free_ipa_bb_info): Likewise.
14305 (analysis_dom_walker): New class.
14306 (ipa_analyze_node): Handle node-specific forbidden analysis,
14307 initialize and free func_body_info, use dominator walker.
14308 (ipcp_modif_dom_walker): New class.
14309 (ipcp_transform_function): Create and free func_body_info, use
14310 ipcp_modif_dom_walker, moved a lot of functionality there.
14311
14312 2014-05-23 Marek Polacek <polacek@redhat.com>
14313 Jakub Jelinek <jakub@redhat.com>
14314
14315 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14316 * gcc.c (sanitize_spec_function): Likewise.
14317 * convert.c (convert_to_integer): Include "ubsan.h". Add
14318 floating-point to integer instrumentation.
14319 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14320 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14321 SANITIZE_NONDEFAULT.
14322 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14323 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14324 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14325 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14326 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14327 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14328 float/double/long double.
14329 (ubsan_instrument_float_cast): New function.
14330 * ubsan.h (ubsan_instrument_float_cast): Declare.
14331
14332 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14333
14334 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14335 predicate.
14336 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14337 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14338 Adjust for tailcalling through registers.
14339 * config/aarch64/aarch64.h (enum reg_class): New caller save
14340 register class.
14341 (REG_CLASS_NAMES): Likewise.
14342 (REG_CLASS_CONTENTS): Likewise.
14343 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14344 Allow tailcalling without decls.
14345
14346 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14347
14348 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14349 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14350
14351 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14352 gsi, and variables v_* to v*.
14353
14354 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14355
14356 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14357
14358 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14359
14360 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14361 * omp-low.c: Update accordingly.
14362
14363 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14364 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14365 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14366 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14367 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14368 GF_OMP_TARGET_KIND_UPDATE.
14369
14370 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14371 Explicitly enumerate the expected region types.
14372
14373 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14374
14375 PR other/56955
14376 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14377 documentation; the old documentation didn't clearly state the
14378 constraints on the contents of the pointed-to storage.
14379
14380 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14381
14382 Fix bootstrap error on ia64
14383 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14384 Return default value.
14385
14386 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14387
14388 PR tree-optimization/54733
14389 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14390 (CMPNOP): Define.
14391 (find_bswap_or_nop_load): New.
14392 (find_bswap_1): Renamed to ...
14393 (find_bswap_or_nop_1): This. Also add support for memory source.
14394 (find_bswap): Renamed to ...
14395 (find_bswap_or_nop): This. Also add support for memory source and
14396 detection of bitwise operations equivalent to load in target
14397 endianness.
14398 (execute_optimize_bswap): Likewise. Also move its leading comment back
14399 in place and split statement transformation into ...
14400 (bswap_replace): This.
14401
14402 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14403
14404 PR rtl-optimization/61215
14405 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14406 simplify_gen_subreg until final substitution.
14407
14408 2014-05-23 Alan Modra <amodra@gmail.com>
14409
14410 PR target/61231
14411 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14412 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14413 Use "Y" constraint rather than "m".
14414
14415 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14416
14417 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14418 define.
14419 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14420 New function declaration.
14421 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14422 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14423 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14424 (aarch64_init_builtins) : Initialize builtins
14425 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14426 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14427 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14428 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14429 and __builtins_aarch64_set_fpsr.
14430 (aarch64_atomic_assign_expand_fenv): New function.
14431 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14432 (get_fpcr) : Likewise.
14433 (set_fpsr) : Likewise.
14434 (get_fpsr) : Likewise.
14435 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14436 and UNSPECV_SET_FPSR.
14437 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14438 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14439 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14440
14441 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14442
14443 PR rtl-optimization/60969
14444 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14445 constraints. Set up mem cost for NO_REGS case.
14446
14447 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14448
14449 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14450
14451 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14452
14453 * config/darwin.c: Include "lto-section-names.h".
14454 (LTO_SEGMENT_NAME): Don't define.
14455 * config/i386/winnt.c: Include "lto-section-names.h".
14456 * lto-streamer.c: Include "lto-section-names.h".
14457 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14458 * lto-wrapper.c: Include "lto-section-names.h".
14459 (LTO_SECTION_NAME_PREFIX): Don't define.
14460 * lto-section-names.h: New file.
14461 * cgraphunit.c: Include "lto-section-names.h".
14462
14463 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14464
14465 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14466
14467 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14468
14469 PR target/61208
14470 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14471
14472 2014-05-22 Nick Clifton <nickc@redhat.com>
14473
14474 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14475
14476 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14477
14478 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14479 -> (T)A transformation to integer types.
14480
14481 2014-05-22 Teresa Johnson <tejohnson@google.com>
14482
14483 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14484 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14485 (gcov_rewrite): Use gcov_nonruntime_assert.
14486 (gcov_open): Ditto.
14487 (gcov_write_words): Ditto.
14488 (gcov_write_length): Ditto.
14489 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14490 gcc_assert from IN_LIBGCOV code.
14491 (gcov_read_summary): Use gcov_error to flag profile corruption.
14492 (gcov_sync): Use gcov_nonruntime_assert.
14493 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14494 (gcov_histo_index): Use gcov_nonruntime_assert.
14495 (static void gcov_histogram_merge): Ditto.
14496 (compute_working_sets): Ditto.
14497 * gcov-io.h (gcov_nonruntime_assert): Define.
14498 (gcov_error): Define for !IN_LIBGCOV
14499
14500 2014-05-22 Richard Biener <rguenther@suse.de>
14501
14502 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14503 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14504 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14505 and deallocation site.
14506 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14507 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14508 passing through the incoming points-to set.
14509 (handle_lhs_call): Use flags argument instead of recomputing it.
14510 (find_func_aliases_for_call): Call handle_lhs_call with proper
14511 call return flags.
14512
14513 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14514
14515 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14516 all padding bits in REAL_VALUE_TYPE are cleared.
14517
14518 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14519
14520 Cleanup and improve multipass_dfa_lookahead_guard
14521 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14522 (core2i7_first_cycle_multipass_begin,)
14523 (core2i7_first_cycle_multipass_issue,)
14524 (core2i7_first_cycle_multipass_backtrack): Update signature.
14525 * config/ia64/ia64.c
14526 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14527 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14528 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14529 hook definition.
14530 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14531 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14532 values.
14533 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14534 return values.
14535 * doc/tm.texi: Regenerate.
14536 * doc/tm.texi.in
14537 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14538 * haifa-sched.c (ready_try): Make signed to allow negative values.
14539 (rebug_ready_list_1): Update.
14540 (choose_ready): Simplify.
14541 (sched_extend_ready_list): Update.
14542
14543 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14544
14545 Remove IA64 speculation tweaking flags
14546 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14547 speculation tuning flags.
14548 (msched-prefer-non-data-spec-insns,)
14549 (msched-prefer-non-control-spec-insns): Obsolete options.
14550 * haifa-sched.c (choose_ready): Remove handling of
14551 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14552 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14553 and PREFER_NON_DATA_SPEC.
14554 * sel-sched.c (process_spec_exprs): Remove handling of
14555 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14556
14557 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14558
14559 Improve scheduling debug output
14560 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14561 (advance_one_cycle): Update.
14562 (schedule_insn, queue_to_ready): Add debug printouts.
14563 (debug_ready_list_1): New static function.
14564 (debug_ready_list): Update.
14565 (max_issue): Add debug printouts.
14566 (dump_insn_stream): New static function.
14567 (schedule_block): Use it. Also better indent printouts.
14568
14569 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14570
14571 Fix sched_insn debug counter
14572 * haifa-sched.c (schedule_insn): Update.
14573 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14574 (save_backtrack_point, restore_backtrack_point): Update.
14575 (first_nonscheduled_insn): New static function.
14576 (queue_to_ready, choose_ready): Use it.
14577 (schedule_block): Init nonscheduled_insns_begin.
14578 (sched_emit_insn): Update.
14579
14580
14581 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14582
14583 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14584 to GENERAL_REGS.
14585 (aarch64_secondary_reload) : LikeWise.
14586 (aarch64_class_max_nregs) : Remove CORE_REGS.
14587 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14588 (REG_CLASS_NAMES) : Likewise.
14589 (REG_CLASS_CONTENTS) : LikeWise.
14590 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14591
14592 2014-05-21 Guozhi Wei <carrot@google.com>
14593
14594 PR target/61202
14595 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14596 constraint.
14597 (vqdmulhq_n_s16): Likewise.
14598
14599 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14600
14601 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14602
14603 2014-05-21 Marek Polacek <polacek@redhat.com>
14604
14605 PR sanitizer/61272
14606 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14607
14608 2014-05-21 Martin Jambor <mjambor@suse.cz>
14609
14610 * doc/invoke.texi (Optimize Options): Document parameters
14611 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14612 ipa-cp-array-index-hint-bonus.
14613
14614 2014-05-21 Mark Wielaard <mjw@redhat.com>
14615
14616 PR debug/16063
14617 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14618 version >= 3 or not strict DWARF.
14619 * langhooks.h (struct lang_hooks_for_types): Add
14620 enum_underlying_base_type.
14621 * langhooks.c (lhd_enum_underlying_base_type): New function.
14622 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14623 enum_underlying_base_type.
14624 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14625 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14626 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14627
14628 2014-05-21 Richard Biener <rguenther@suse.de>
14629
14630 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14631
14632 2014-05-21 John Marino <gnugcc@marino.st>
14633
14634 * config.gcc (*-*-dragonfly*): New target.
14635 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14636 * configure: Regenerate.
14637 * config/dragonfly-stdint.h: New.
14638 * config/dragonfly.h: New.
14639 * config/dragonfly.opt: New.
14640 * config/i386/dragonfly.h: New.
14641 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14642
14643 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14644
14645 * tree.def (VOID_CST): New.
14646 * tree-core.h (TI_VOID): New.
14647 * tree.h (void_node): New.
14648 * tree.c (tree_node_structure_for_code, tree_code_size)
14649 (iterative_hash_expr): Handle VOID_CST.
14650 (build_common_tree_nodes): Initialize void_node.
14651
14652 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14653
14654 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14655 functions.
14656 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14657
14658 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14659 more places.
14660
14661 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14662 flag_reorder_blocks_and_partition.
14663 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14664
14665 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14666
14667 PR target/54236
14668 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
14669 constraints.
14670 (*addc_r_t): Add new insn_and_split.
14671
14672 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14673
14674 PR middle-end/61252
14675 * omp-low.c (handle_simd_reference): New function.
14676 (lower_rec_input_clauses): Use it. Defer adding reference
14677 initialization even for reduction without placeholder if in simd,
14678 handle it properly later on.
14679
14680 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14681
14682 PR tree-optimization/60899
14683 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14684 assume all static symbols will have definition wile parsing and
14685 check the do have definition later in compilation; check that
14686 variable referring symbol will be output before concluding that
14687 reference is safe; be conservative for referring local statics;
14688 be more precise about when comdat is output in other partition.
14689
14690 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14691
14692 PR bootstrap/60984
14693 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14694 parameter.
14695 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14696 (ipa_inline): Loop inline_to_all_callers until no more aliases
14697 are removed.
14698
14699 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14700
14701 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14702 set writeonly flag only for vars actually written to.
14703
14704 2014-05-20 Dehao Chen <dehao@google.com>
14705
14706 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14707 and callee count to get clone count.
14708 * tree-inline.c (expand_call_inline): Use callee count instead of bb
14709 count in copy_body.
14710
14711 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14712
14713 PR rtl-optimization/61243
14714 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14715
14716 2014-05-20 Xinliang David Li <davidxl@google.com>
14717
14718 * cgraphunit.c (walk_polymorphic_call_targets): Add
14719 dbgcnt and fopt-info support.
14720 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14721 * ipa-devirt.c (ipa_devirt): Ditto.
14722 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14723 * ipa.c (walk_polymorphic_call_targets): Ditto.
14724 * gimple-fold.c (fold_gimple_assign): Ditto.
14725 (gimple_fold_call): Ditto.
14726 * dbgcnt.def: New counter.
14727
14728 2014-05-20 DJ Delorie <dj@redhat.com>
14729
14730 * config/msp430/msp430.md (split): Don't allow subregs when
14731 splitting SImode adds.
14732 (andneghi): Fix subtraction logic.
14733 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14734
14735 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14736
14737 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14738 symbols.
14739 * except.c (switch_to_exception_section, resolve_unique_section,
14740 get_named_text_section, default_function_rodata_section,
14741 align_variable, get_block_for_decl, default_section_type_flags):
14742 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14743 * symtab.c (symtab_add_to_same_comdat_group,
14744 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14745 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14746 Likewise.
14747 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14748 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14749 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14750 (c6x_function_in_section_p): Likewise.
14751 * config/darwin.c (machopic_select_section): Likewise.
14752 * config/arm/arm.c (arm_function_in_section_p): Likewise.
14753 * config/mips/mips.c (mips_function_rodata_section): Likewise.
14754 * config/mep/mep.c (mep_select_section): LIkewise.
14755 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14756
14757 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
14758
14759 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14760 EH region of calls to pure functions that can throw an exception.
14761 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14762 (copy_reference_ops_from_call): Also copy the EH region of the call if
14763 it can throw an exception.
14764
14765 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14766
14767 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14768 nested VEC_SELECTs that are inverses of each other.
14769
14770 2014-05-20 Richard Biener <rguenther@suse.de>
14771
14772 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
14773 (extract_and_process_scc_for_name): not here.
14774 (cond_dom_walker::before_dom_children): Only process
14775 stmts that end the BB in interesting ways.
14776 (run_scc_vn): Mark param uses as visited.
14777
14778 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14779
14780 * config/arm/arm.md (arith_shiftsi): Do not predicate for
14781 arm_restrict_it.
14782
14783 2014-05-20 Nick Clifton <nickc@redhat.com>
14784
14785 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14786 (msp430_gimplify_va_arg_expr): New function.
14787 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
14788
14789 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
14790 operand 0 in order to prevent confusion about the number of
14791 registers involved.
14792
14793 2014-05-20 Richard Biener <rguenther@suse.de>
14794
14795 PR tree-optimization/61221
14796 * tree-ssa-pre.c (el_to_update): Remove.
14797 (eliminate_dom_walker::before_dom_children): Handle released
14798 VDEFs by value-numbering them to the associated VUSE. Update
14799 stmt immediately for substituted call address.
14800 (eliminate): Remove delayed stmt updating code.
14801 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
14802 possibly late re-numbered vuses.
14803 (vn_reference_lookup_2): Adjust.
14804 (vn_reference_lookup_pieces): Likewise.
14805 (vn_reference_lookup): Likewise.
14806
14807 2014-05-20 Richard Biener <rguenther@suse.de>
14808
14809 * config.gcc: Remove need_64bit_hwint.
14810 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
14811 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
14812 it to be true.
14813 * config.in: Regenerate.
14814 * configure: Likewise.
14815
14816 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
14817
14818 * doc/extend.texi: Create Label Attributes section,
14819 move all label attributes into it and reference it.
14820
14821 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
14822
14823 * arm.c (thumb1_reorg): When scanning backwards skip anything
14824 that's not a proper insn.
14825
14826 2014-05-19 Richard Biener <rguenther@suse.de>
14827
14828 PR tree-optimization/61221
14829 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14830 Do nothing for unreachable blocks.
14831 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
14832 Improve unreachability detection.
14833
14834 2014-05-19 Richard Biener <rguenther@suse.de>
14835
14836 PR tree-optimization/61209
14837 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
14838
14839 2014-05-19 Nick Clifton <nickc@redhat.com>
14840
14841 * except.c (init_eh): Fix computation of builtin setjmp buffer
14842 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
14843
14844 2014-05-19 Richard Biener <rguenther@suse.de>
14845
14846 PR tree-optimization/61184
14847 * tree-vrp.c (is_negative_overflow_infinity): Use
14848 TREE_OVERFLOW_P and do that check first.
14849 (is_positive_overflow_infinity): Likewise.
14850 (is_overflow_infinity): Likewise.
14851 (vrp_operand_equal_p): Properly treat operands with
14852 differing overflow as not equal.
14853
14854 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
14855
14856 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
14857 shift simplification where it was intended.
14858
14859 2014-05-19 Christian Bruel <christian.bruel@st.com>
14860
14861 PR target/61195
14862 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
14863
14864 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
14865
14866 PR target/61084
14867 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
14868 than wide_int.
14869
14870 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14871
14872 * reg-notes.def (CROSSING_JUMP): Likewise.
14873 * rtl.h (rtx_def): Update comment for jump flag.
14874 (CROSSING_JUMP_P): Define.
14875 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
14876 of a REG_CROSSING_JUMP note.
14877 * cfghooks.c (tidy_fallthru_edges): Likewise.
14878 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
14879 * emit-rtl.c (try_split): Likewise.
14880 * haifa-sched.c (sched_create_recovery_edges): Likewise.
14881 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
14882 * jump.c (redirect_jump_2): Likewise.
14883 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
14884 (relax_delay_slots): Likewise.
14885 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
14886 (bbit_di): Likewise.
14887 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
14888 * config/sh/sh.md (jump_compact): Likewise.
14889 * bb-reorder.c (rotate_loop): Likewise.
14890 (pass_duplicate_computed_gotos::execute): Likewise.
14891 (add_reg_crossing_jump_notes): Rename to...
14892 (update_crossing_jump_flags): ...this.
14893 (pass_partition_blocks::execute): Update accordingly.
14894
14895 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14896
14897 * tree.h: Remove extraneous template <>.
14898
14899 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14900
14901 * ipa.c (symtab_remove_unreachable_nodes): Remove
14902 symbol from comdat group if its body was eliminated.
14903 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
14904 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
14905 (symtab_unregister_node): ... this one.
14906 (verify_symtab_base): More strict checking of comdats.
14907 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
14908
14909 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14910
14911 * tree-pass.h (make_pass_ipa_comdats): New pass.
14912 * timevar.def (TV_IPA_COMDATS): New timevar.
14913 * passes.def (pass_ipa_comdats): Add.
14914 * Makefile.in (OBJS): Add ipa-comdats.o
14915 * ipa-comdats.c: New file.
14916
14917 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14918
14919 * ipa.c (update_visibility_by_resolution_info): New function.
14920 (function_and_variable_visibility): Use it.
14921
14922 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14923
14924 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
14925 New functions.
14926 (FOR_EACH_DEFINED_SYMBOL): New macro.
14927 (varpool_first_static_initializer, varpool_next_static_initializer,
14928 varpool_first_defined_variable, varpool_next_defined_variable):
14929 Fix comments.
14930 (symtab_in_same_comdat_p): Correctly deal with inline functions.
14931
14932 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14933
14934 * ggc-page.c (ggc_handle_finalizers): Add comment.
14935
14936 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14937
14938 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
14939 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
14940 (ggc_internal_cleared_alloc): Likewise.
14941 * ggc-page.c (finalizer): New class.
14942 (vec_finalizer): Likewise.
14943 (globals::finalizers): New member.
14944 (globals::vec_finalizers): Likewise.
14945 (ggc_internal_alloc): Record the finalizer if any for the block being
14946 allocated.
14947 (ggc_handle_finalizers): New function.
14948 (ggc_collect): Call ggc_handle_finalizers.
14949 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
14950 finalizer.
14951 (ggc_internal_cleared_alloc): Likewise.
14952 (finalize): New function.
14953 (need_finalization_p): Likewise.
14954 (ggc_alloc): Install the type's destructor as the finalizer if it
14955 might do something.
14956 (ggc_cleared_alloc): Likewise.
14957 (ggc_vec_alloc): Likewise.
14958 (ggc_cleared_vec_alloc): Likewise.
14959
14960 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14961
14962 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
14963
14964 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14965
14966 * alias.c (record_alias_subset): Adjust.
14967 * bitmap.c (bitmap_element_allocate): Likewise.
14968 (bitmap_gc_alloc_stat): Likewise.
14969 * cfg.c (init_flow): Likewise.
14970 (alloc_block): Likewise.
14971 (unchecked_make_edge): Likewise.
14972 * cfgloop.c (alloc_loop): Likewise.
14973 (flow_loops_find): Likewise.
14974 (rescan_loop_exit): Likewise.
14975 * cfgrtl.c (init_rtl_bb_info): Likewise.
14976 * cgraph.c (insert_new_cgraph_node_version): Likewise.
14977 (cgraph_allocate_node): Likewise.
14978 (cgraph_create_edge_1): Likewise.
14979 (cgraph_allocate_init_indirect_info): Likewise.
14980 * cgraphclones.c (cgraph_clone_edge): Likewise.
14981 * cgraphunit.c (add_asm_node): Likewise.
14982 (init_lowered_empty_function): Likewise.
14983 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
14984 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
14985 (alpha_use_linkage): Likewise.
14986 * config/arc/arc.c (arc_init_machine_status): Likewise.
14987 * config/arm/arm.c (arm_init_machine_status): Likewise.
14988 * config/avr/avr.c (avr_init_machine_status): Likewise.
14989 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
14990 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
14991 * config/cris/cris.c (cris_init_machine_status): Likewise.
14992 * config/darwin.c (machopic_indirection_name): Likewise.
14993 (darwin_build_constant_cfstring): Likewise.
14994 (darwin_enter_string_into_cfstring_table): Likewise.
14995 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
14996 * config/frv/frv.c (frv_init_machine_status): Likewise.
14997 * config/i386/i386.c (get_dllimport_decl): Likewise.
14998 (ix86_init_machine_status): Likewise.
14999 (assign_386_stack_local): Likewise.
15000 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15001 (i386_pe_maybe_record_exported_symbol): Likewise.
15002 (i386_pe_record_stub): Likewise.
15003 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15004 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15005 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15006 (m32c_note_pragma_address): Likewise.
15007 * config/mep/mep.c (mep_init_machine_status): Likewise.
15008 (mep_note_pragma_flag): Likewise.
15009 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15010 (mips16_local_alias): Likewise.
15011 (mips_init_machine_status): Likewise.
15012 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15013 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15014 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15015 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15016 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15017 * config/pa/pa.c (pa_init_machine_status): Likewise.
15018 (pa_get_deferred_plabel): Likewise.
15019 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15020 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15021 (rs6000_init_machine_status): Likewise.
15022 (output_toc): Likewise.
15023 * config/s390/s390.c (s390_init_machine_status): Likewise.
15024 * config/score/score.c (score_output_external): Likewise.
15025 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15026 * config/spu/spu.c (spu_init_machine_status): Likewise.
15027 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15028 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15029 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15030 * coverage.c (coverage_end_function): Likewise.
15031 * dbxout.c (dbxout_init): Likewise.
15032 * doc/gty.texi: Don't mention variable_size attribute.
15033 * dwarf2cfi.c (new_cfi): Adjust.
15034 (new_cfi_row): Likewise.
15035 (copy_cfi_row): Likewise.
15036 (create_cie_data): Likewise.
15037 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15038 (new_loc_descr): Likewise.
15039 (find_AT_string_in_table): Likewise.
15040 (add_addr_table_entry): Likewise.
15041 (new_die): Likewise.
15042 (add_var_loc_to_decl): Likewise.
15043 (clone_die): Likewise.
15044 (clone_as_declaration): Likewise.
15045 (break_out_comdat_types): Likewise.
15046 (new_loc_list): Likewise.
15047 (add_loc_descr_to_each): Likewise.
15048 (add_location_or_const_value_attribute): Likewise.
15049 (add_linkage_name): Likewise.
15050 (lookup_filename): Likewise.
15051 (dwarf2out_var_location): Likewise.
15052 (new_line_info_table): Likewise.
15053 (dwarf2out_init): Likewise.
15054 (mem_loc_descriptor): Likewise.
15055 (loc_descriptor): Likewise.
15056 (add_const_value_attribute): Likewise.
15057 (tree_add_const_value_attribute): Likewise.
15058 (comp_dir_string): Likewise.
15059 (dwarf2out_vms_debug_main_pointer): Likewise.
15060 (string_cst_pool_decl): Likewise.
15061 * emit-rtl.c (set_mem_attrs): Likewise.
15062 (get_reg_attrs): Likewise.
15063 (start_sequence): Likewise.
15064 (init_emit): Likewise.
15065 (init_emit_regs): Likewise.
15066 * except.c (init_eh_for_function): Likewise.
15067 (gen_eh_region): Likewise.
15068 (gen_eh_region_catch): Likewise.
15069 (gen_eh_landing_pad): Likewise.
15070 (add_call_site): Likewise.
15071 * function.c (add_frame_space): Likewise.
15072 (insert_temp_slot_address): Likewise.
15073 (assign_stack_temp_for_type): Likewise.
15074 (get_hard_reg_initial_val): Likewise.
15075 (allocate_struct_function): Likewise.
15076 (prepare_function_start): Likewise.
15077 (types_used_by_var_decl_insert): Likewise.
15078 * gengtype.c (variable_size_p): Remove function.
15079 (enum alloc_quantity): Remove enum.
15080 (write_typed_alloc_def): Remove function.
15081 (write_typed_struct_alloc_def): Likewise.
15082 (write_typed_typedef_alloc_def): Likewise.
15083 (write_typed_alloc_defns): Likewise.
15084 (main): Adjust.
15085 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15086 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15087 * ggc.h (ggc_alloc): new function.
15088 (ggc_cleared_alloc): Likewise.
15089 (ggc_vec_alloc): Template on type of vector element, and remove
15090 element size argument.
15091 (ggc_cleared_vec_alloc): Likewise.
15092 * gimple.c (gimple_build_omp_for): Adjust.
15093 (gimple_copy): Likewise.
15094 * ipa-cp.c (get_replacement_map): Likewise.
15095 (find_aggregate_values_for_callers_subset): Likewise.
15096 (known_aggs_to_agg_replacement_list): Likewise.
15097 * ipa-devirt.c (get_odr_type): Likewise.
15098 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15099 (read_agg_replacement_chain): Likewise.
15100 * loop-iv.c (get_simple_loop_desc): Likewise.
15101 * lto-cgraph.c (input_node_opt_summary): Likewise.
15102 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15103 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15104 (input_eh_region): Likewise.
15105 (input_eh_lp): Likewise.
15106 (input_cfg): Likewise.
15107 * optabs.c (set_optab_libfunc): Likewise.
15108 (init_tree_optimization_optabs): Likewise.
15109 (set_conv_libfunc): Likewise.
15110 * passes.c (do_per_function_toporder): Likewise.
15111 * rtl.h: Don't use variable_size gty attribute.
15112 * sese.c (if_region_set_false_region): Adjust.
15113 * stringpool.c (gt_pch_save_stringpool): Likewise.
15114 * target-globals.c (save_target_globals): Likewise.
15115 * toplev.c (general_init): Likewise.
15116 * trans-mem.c (record_tm_replacement): Likewise.
15117 (split_bb_make_tm_edge): Likewise.
15118 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15119 * tree-data-ref.h (lambda_vector_new): Likewise.
15120 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15121 * tree-iterator.c (tsi_link_before): Likewise.
15122 (tsi_link_after): Likewise.
15123 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15124 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15125 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15126 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15127 * tree-ssa.c (init_tree_ssa): Adjust.
15128 * tree-ssanames.c (set_range_info): Likewise.
15129 (get_ptr_info): Likewise.
15130 (duplicate_ssa_name_ptr_info): Likewise.
15131 (duplicate_ssa_name_range_info): Likewise.
15132 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15133 (unpack_ts_fixed_cst_value_fields): Likewise.
15134 * tree.c (build_fixed): Likewise.
15135 (build_real): Likewise.
15136 (build_string): Likewise.
15137 (decl_priority_info): Likewise.
15138 (decl_debug_expr_insert): Likewise.
15139 (decl_value_expr_insert): Likewise.
15140 (decl_debug_args_insert): Likewise.
15141 (type_hash_add): Likewise.
15142 (build_omp_clause): Likewise.
15143 * ubsan.c (decl_for_type_insert): Likewise.
15144 * varasm.c (get_unnamed_section): Likewise.
15145 (get_noswitch_section): Likewise.
15146 (get_section): Likewise.
15147 (get_block_for_section): Likewise.
15148 (create_block_symbol): Likewise.
15149 (build_constant_desc): Likewise.
15150 (create_constant_pool): Likewise.
15151 (force_const_mem): Likewise.
15152 (record_tm_clone_pair): Likewise.
15153 * varpool.c (varpool_create_empty_node): Likewise.
15154
15155 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15156
15157 * dwarf2out.c (tree_add_const_value_attribute): Call
15158 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15159 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15160 instead of ggc_internal_<x>alloc_stat.
15161 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15162 (ggc_realloc): Likewise.
15163 * ggc-none.c (ggc_internal_alloc): Likewise.
15164 (ggc_internal_cleared_alloc): Likewise.
15165 * ggc-page.c: Likewise.
15166 * ggc.h (ggc_internal_alloc_stat): Likewise.
15167 (ggc_internal_alloc): Remove macro.
15168 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15169 (ggc_internal_cleared_alloc): Remove macro.
15170 (GGC_RESIZEVEC): Adjust.
15171 (ggc_resizevar): Remove macro.
15172 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15173 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15174 (ggc_internal_vec_cleared_alloc): Remove macro.
15175 (ggc_alloc_atomic_stat): Drop _stat suffix.
15176 (ggc_alloc_atomic): Remove macro.
15177 (ggc_alloc_cleared_atomic): Remove macro.
15178 (ggc_alloc_string_stat): Drop _stat suffix.
15179 (ggc_alloc_string): Remove macro.
15180 (ggc_alloc_rtx_def_stat): Adjust.
15181 (ggc_alloc_tree_node_stat): Likewise.
15182 (ggc_alloc_cleared_tree_node_stat): Likewise.
15183 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15184 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15185 * gimple.c (gimple_build_omp_for): Likewise.
15186 (gimple_copy): Likewise.
15187 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15188 * toplev.c (realloc_for_line_map): Adjust.
15189 * tree-data-ref.h (lambda_vector_new): Likewise.
15190 * tree-phinodes.c (allocate_phi_node): Likewise.
15191 * tree.c (grow_tree_vec_stat): Likewise.
15192 * vec.h (va_gc::reserve): Adjust.
15193
15194 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15195
15196 * config/microblaze/microblaze.c (break_handler): New Declaration.
15197 (microblaze_break_function_p,microblaze_is_break_handler): New.
15198 (compute_frame_size): Use microblaze_break_function_p.
15199 Add the test of break_handler.
15200 (microblaze_function_prologue) : Add the test of variable
15201 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15202 (microblaze_function_epilogue) : Add the test of break_handler.
15203 (microblaze_globalize_label) : Add the test of break_handler.
15204 Check the name by BREAK_HANDLER_NAME.
15205
15206 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15207
15208 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15209 microblaze_is_break_handler test.
15210 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15211 Use SYMBOL_REF_DECL.
15212
15213 * config/microblaze/microblaze-protos.h
15214 (microblaze_break_function_p,microblaze_is_break_handler):
15215 New Declaration.
15216
15217 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15218 new MicroBlaze break_handler functions.
15219
15220 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15221
15222 * doc/extend.texi (Size of an asm): Move node text according
15223 to its @menu entry position.
15224
15225 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15226
15227 PR tree-optimization/61140
15228 PR tree-optimization/61150
15229 PR tree-optimization/61197
15230 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15231
15232 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15233
15234 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15235
15236 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15237
15238 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15239 __SIZEOF_INT128__ is defined.
15240
15241 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15242
15243 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15244 (rs6000_delegitimize_address): Use it.
15245
15246 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15247
15248 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15249 inplace argument. Store the new address in the original MEM when true.
15250 * emit-rtl.c (change_address_1): Likewise.
15251 (adjust_address_1, adjust_automodify_address_1, offset_address):
15252 Update accordingly.
15253 * rtl.h (plus_constant): Add an inplace argument.
15254 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15255 when true. Avoid generating (plus X (const_int 0)).
15256 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15257 in-place. Pass true to plus_constant.
15258 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15259
15260 2014-05-16 Dehao Chen <dehao@google.com>
15261
15262 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15263
15264 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15265
15266 PR target/54089
15267 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15268 patterns.
15269 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15270
15271 2014-05-16 Dehao Chen <dehao@google.com>
15272
15273 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15274 optimize_function_for_size_p.
15275 * regs.h (REG_FREQ_FROM_BB): Likewise.
15276
15277 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15278
15279 PR target/51244
15280 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15281 negt_reg_operand cases.
15282 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15283 predicate.
15284 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15285
15286 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15287
15288 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15289 target variants.
15290
15291 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15292
15293 Revert:
15294 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15295
15296 * tree-cfg.c (dump_function_to_file): Dump the return type of
15297 functions, in a line to itself before the function body, mimicking
15298 the layout of a C function.
15299
15300 2014-05-16 Dehao Chen <dehao@google.com>
15301
15302 * cfghooks.c (make_forwarder_block): Use direct computation to
15303 get fall-through edge's count and frequency.
15304
15305 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15306
15307 * config/arc/arc.c (arc_init): Fix typo in error message.
15308 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15309 (split_stack_prologue_scratch_regno): Likewise.
15310 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15311 word from error message.
15312
15313 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15314
15315 * ira-costs.c: Fix typo in comment.
15316
15317 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15318
15319 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15320
15321 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15322
15323 * varpool.c (dump_varpool_node): Dump write-only flag.
15324 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15325 write-only flag.
15326 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15327 write-only variables.
15328 * ipa.c (process_references): New function.
15329 (set_readonly_bit): New function.
15330 (set_writeonly_bit): New function.
15331 (clear_addressable_bit): New function.
15332 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15333 fix handling of aliases.
15334 * cgraph.h (struct varpool_node): Add writeonly flag.
15335
15336 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15337
15338 PR rtl-optimization/60969
15339 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15340 Calculate costs for this case.
15341
15342 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15343
15344 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15345 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15346
15347 2014-05-16 Richard Biener <rguenther@suse.de>
15348
15349 PR tree-optimization/61194
15350 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15351 bool patterns ending in a COND_EXPR.
15352
15353 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15354
15355 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15356
15357 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15358
15359 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15360 where we were unable to cost an RTX.
15361
15362 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15363
15364 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15365 HIGH, LO_SUM.
15366
15367 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15368 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15369
15370 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15371
15372 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15373 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15374
15375 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15376 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15377
15378 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15379 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15380
15381 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15382 operators.
15383
15384 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15385 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15386
15387 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15388 DIV/MOD.
15389
15390 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15391 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15392
15393 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15394 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15395
15396 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15397 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15398
15399 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15400 rotates and shifts.
15401
15402 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15403 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15404
15405 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15406 ZERO_EXTEND and SIGN_EXTEND better.
15407
15408 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15409 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15410
15411 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15412 logical operations.
15413
15414 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15415 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15416
15417 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15418 costs when costing loads and stores to memory.
15419
15420 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15421 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15422
15423 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15424 for SET RTX.
15425
15426 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15427
15428 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15429
15430 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15431 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15432
15433 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15434 to...
15435 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15436 well formed.
15437 (aarch64_rtx_mult_cost): New.
15438 (aarch64_rtx_costs): Use it, refactor as appropriate.
15439
15440 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15441 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15442
15443 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15444 emit instructions, return number of instructions which would
15445 be emitted.
15446 (aarch64_add_constant): Update call to aarch64_build_constant.
15447 (aarch64_output_mi_thunk): Likewise.
15448 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15449 a CONST_DOUBLE.
15450
15451 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15452
15453 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15454 (TARGET_RTX_COSTS): Call it.
15455
15456 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15457
15458 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15459 (cortexa57_vector_cost): Likewise.
15460 (cortexa57_tunings): Use them.
15461
15462 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15463
15464 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15465 (cpu_addrcost_table): Use it.
15466 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15467 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15468 move it.
15469
15470 2014-05-16 Richard Biener <rguenther@suse.de>
15471
15472 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15473 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15474 (visit_phi): Ignore edges marked as not executable.
15475 (class cond_dom_walker): New.
15476 (cond_dom_walker::before_dom_children): Value-number
15477 control statements and mark successor edges as not
15478 executable if possible.
15479 (run_scc_vn): First walk all control statements in
15480 dominator order, marking edges as not executable.
15481 * tree-inline.c (copy_edges_for_bb): Be not confused
15482 about random edge flags.
15483
15484 2014-05-16 Richard Biener <rguenther@suse.de>
15485
15486 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15487
15488 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15489
15490 PR target/61193
15491 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15492 (__TM_simple_begin): Use it.
15493 (__TM_begin): Likewise.
15494
15495 2014-05-15 Martin Jambor <mjambor@suse.cz>
15496
15497 PR ipa/61085
15498 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15499 type_preserved flag when the indirect edge is polymorphic.
15500
15501 2014-05-15 Martin Jambor <mjambor@suse.cz>
15502
15503 PR tree-optimization/61090
15504 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15505 build_ref_for_model.
15506
15507 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15508
15509 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15510 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15511
15512 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15513
15514 PR tree-optimization/61158
15515 * fold-const.c (fold_binary_loc): If X is zero-extended and
15516 shiftc >= prec, make sure zerobits is all ones instead of
15517 invoking undefined behavior.
15518
15519 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15520
15521 * regcprop.h: New file.
15522 * regcprop.c (skip_debug_insn_p): New decl.
15523 (replace_oldest_value_reg): Check skip_debug_insn_p.
15524 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15525 * shrink-wrap.c: Include regcprop.h.
15526 (prepare_shrink_wrap): Call
15527 copyprop_hardreg_forward_bb_without_debug_insn.
15528
15529 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15530
15531 * shrink-wrap.h: Update comment.
15532 * shrink-wrap.c: Update comment.
15533 (next_block_for_reg): Rename to live_edge_for_reg.
15534 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15535 (move_insn_for_shrink_wrap): Split live_edge.
15536 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15537
15538 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15539
15540 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15541 Delete.
15542 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15543 * config/sparc/sparc.md (fptype_ut699): New attribute.
15544 (in_branch_delay): Return false if -mfix-ut699 is specified and
15545 fptype_ut699 is set to single.
15546 (truncdfsf2): Add fptype_ut699 attribute.
15547 (fix_truncdfsi2): Likewise.
15548 (floatsisf2): Change fptype attribute.
15549 (fix_truncsfsi2): Likewise.
15550 (negtf2_notv9): Delete.
15551 (negtf2_v9): Likewise.
15552 (negtf2_hq): New instruction.
15553 (negtf2): New instruction and splitter.
15554 (negdf2_notv9): Rewrite.
15555 (abstf2_notv9): Delete.
15556 (abstf2_hq_v9): Likewise.
15557 (abstf2_v9): Likewise.
15558 (abstf2_hq): New instruction.
15559 (abstf2): New instruction and splitter.
15560 (absdf2_notv9): Rewrite.
15561
15562 2014-05-14 Cary Coutant <ccoutant@google.com>
15563
15564 PR debug/61013
15565 * opts.c (common_handle_option): Don't special-case "-g".
15566 (set_debug_level): Default to at least level 2 with "-g".
15567
15568 2014-05-14 DJ Delorie <dj@redhat.com>
15569
15570 * config/msp430/msp430.c (msp430_builtin): Add
15571 MSP430_BUILTIN_DELAY_CYCLES.
15572 (msp430_init_builtins): Register void __delay_cycles(long long).
15573 (msp430_builtin_decl): Add it.
15574 (cg_magic_constant): New.
15575 (msp430_expand_delay_cycles): New.
15576 (msp430_expand_builtin): Call it.
15577 (msp430_print_operand_raw): Change integer printing from "int" to
15578 HOST_WIDE_INT.
15579 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15580 (delay_cycles_start): New.
15581 (delay_cycles_end): New.
15582 (delay_cycles_32): New.
15583 (delay_cycles_32x): New.
15584 (delay_cycles_16): New.
15585 (delay_cycles_16x): New.
15586 (delay_cycles_2): New.
15587 (delay_cycles_1): New.
15588 * doc/extend.texi: Document __delay_cycles().
15589
15590 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15591
15592 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15593 length attribute computation.
15594
15595 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15596
15597 PR debug/61188
15598 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15599
15600 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15601
15602 PR target/61084
15603 * config/sparc/sparc.md: Fix types of low and high in DI constant
15604 splitter. Use gen_int_mode in some other splitters.
15605
15606 2014-05-14 Martin Jambor <mjambor@suse.cz>
15607
15608 PR ipa/60897
15609 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15610
15611 2014-05-14 James Norris <jnorris@codesourcery.com>
15612
15613 * omp-low.c (expand_parallel_call): Remove shadow variable.
15614 (expand_omp_taskreg): Likewise.
15615
15616 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15617
15618 * common/config/i386/i386-common.c
15619 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15620 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15621 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15622 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15623 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15624 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15625 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15626 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15627 xsavecintrin.h, xsavesintrin.h.
15628 (x86_64-*-*): Ditto.
15629 * config/i386/clflushoptintrin.h: New.
15630 * config/i386/xsavecintrin.h: Ditto.
15631 * config/i386/xsavesintrin.h: Ditto.
15632 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15633 (bit_XSAVES): Ditto.
15634 (bit_XSAVES): Ditto.
15635 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15636 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15637 -mno-clflushopt.
15638 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15639 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15640 OPTION_MASK_ISA_XSAVES.
15641 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15642 -mxsavec, -mxsaves.
15643 (PTA_CLFLUSHOPT) Define.
15644 (PTA_XSAVEC): Ditto.
15645 (PTA_XSAVES): Ditto.
15646 (ix86_option_override_internal): Handle new options.
15647 (ix86_valid_target_attribute_inner_p): Ditto.
15648 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15649 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15650 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15651 (bdesc_special_args): Add __builtin_ia32_xsaves,
15652 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15653 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15654 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15655 (ix86_expand_builtin): Handle new builtins.
15656 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15657 (TARGET_CLFLUSHOPT_P): Ditto.
15658 (TARGET_XSAVEC): Ditto.
15659 (TARGET_XSAVEC_P): Ditto.
15660 (TARGET_XSAVES): Ditto.
15661 (TARGET_XSAVES_P): Ditto.
15662 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15663 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15664 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15665 (ANY_XRSTOR): New.
15666 (ANY_XRSTOR64): Ditto.
15667 (xrstor): Ditto.
15668 (xrstor): Change into <xrstor>.
15669 (xrstor_rex64): Change into <xrstor>_rex64.
15670 (xrstor64): Change into <xrstor>64
15671 (clflushopt): New.
15672 * config/i386/i386.opt (mclflushopt): New.
15673 (mxsavec): Ditto.
15674 (mxsaves): Ditto.
15675 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15676 xsavecintrin.h.
15677 * doc/invoke.texi: Document new options.
15678
15679 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15680
15681 PR rtl-optimization/60866
15682 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15683 Default it to -1. Pass it down to init_simplejump_data.
15684 (init_simplejump_data): New parameter old_seqno. Pass it down
15685 to get_seqno_for_a_jump.
15686 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
15687 initializing new jump seqno as a last resort. Add comment.
15688 (sel_redirect_edge_and_branch): Save old seqno of the conditional
15689 jump and pass it down to sel_init_new_insn.
15690 (sel_redirect_edge_and_branch_force): Likewise.
15691
15692 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
15693
15694 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15695 shifted values to avoid build warning.
15696
15697 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15698
15699 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15700 * cfgrtl.c (rtl_merge_blocks): Fix comment.
15701 (cfg_layout_merge_blocks): Likewise.
15702 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15703
15704 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15705
15706 PR rtl-optimization/60901
15707 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15708 bb predecessor belongs to the same scheduling region. Adjust comment.
15709
15710 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
15711
15712 * doc/sourcebuild.texi: (dfp_hw): Document.
15713 (p8vector_hw): Likewise.
15714 (powerpc_eabi_ok): Likewise.
15715 (powerpc_elfv2): Likewise.
15716 (powerpc_htm_ok): Likewise.
15717 (ppc_recip_hw): Likewise.
15718 (vsx_hw): Likewise.
15719
15720 2014-05-13 Cary Coutant <ccoutant@google.com>
15721
15722 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15723
15724 2014-05-13 David Malcolm <dmalcolm@redhat.com>
15725
15726 * gengtype-parse.c (require3): Eliminate in favor of...
15727 (require4): New.
15728 (require_template_declaration): Update to support optional single *
15729 on a type.
15730
15731 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15732 (create_user_defined_type): Handle a single level of explicit
15733 pointerness within template arguments.
15734 (struct write_types_data): Add field "kind".
15735 (filter_type_name): Handle "*" character.
15736 (write_user_func_for_structure_ptr): Require a write_types_data
15737 rather than just a prefix string, so that we can look up the kind
15738 of the wtd and use it as an index into wrote_user_func_for_ptr,
15739 ensuring that such functions are written at most once. Support
15740 subclasses by invoking the marking function of the ultimate base class.
15741 (write_user_func_for_structure_body): Require a write_types_data
15742 rather than just a prefix string, so that we can pass this to
15743 write_user_func_for_structure_ptr.
15744 (write_func_for_structure): Likewise.
15745 (ggc_wtd): Add initializer of new "kind" field.
15746 (pch_wtd): Likewise.
15747
15748 * gengtype.h (enum write_types_kinds): New.
15749 (struct type): Add field wrote_user_func_for_ptr to the "s"
15750 union member.
15751
15752 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15753
15754 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15755 instead of const_binop.
15756 (fold_binary_loc): Likewise.
15757
15758 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15759
15760 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15761 calculation to match get_ref_base_and_extent.
15762
15763 2014-05-13 Catherine Moore <clm@codesourcery.com>
15764 Sandra Loosemore <sandra@codesourcery.com>
15765
15766 * configure.ac: Fix assembly for explicit JALR relocation check.
15767 * configure: Regenerate.
15768
15769 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15770
15771 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
15772 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
15773 Remove associated type declarations and initialisations.
15774 (arm_expand_neon_builtin): Likewise.
15775 (neon_emit_pair_result_insn): Delete.
15776 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
15777 * config/arm/neon.md (neon_vtrn<mode>): Delete.
15778 (neon_vzip<mode>): Likewise.
15779 (neon_vuzp<mode>): Likewise.
15780
15781 2014-05-13 Richard Biener <rguenther@suse.de>
15782
15783 PR ipa/60973
15784 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
15785 it needs revisiting whether the call still may be tail-called.
15786
15787 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15788
15789 * rtl.def (SYMBOL_REF): Remove middle "0" field.
15790 * rtl.h (block_symbol): Reduce number of fields to 2.
15791 (rtx_def): Add u2.symbol_ref_flags.
15792 (SYMBOL_REF_FLAGS): Use it.
15793 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
15794 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
15795 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
15796 Lower index of SYMBOL_REF_DATA.
15797 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
15798 Print SYMBOL_REF_FLAGS at the same time.
15799 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
15800
15801 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15802
15803 * rtl.def (VAR_LOCATION): Remove "i" field.
15804 * rtl.h (rtx_def): Add u2.var_location_status.
15805 (PAT_VAR_LOCATION_STATUS): Use it.
15806 (gen_rtx_VAR_LOCATION): Declare.
15807 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
15808 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
15809 * var-tracking.c (emit_note_insn_var_location): Remove casts.
15810
15811 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15812
15813 * rtl.def (scratch): Fix outdated comment and remove "0" field.
15814 * gengtype.c (adjust_field_rtx_def): Update accordingly.
15815
15816 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15817
15818 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
15819 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
15820 * rtl.h (rtx_def): Add insn_uid to u2 field.
15821 (RTX_FLAG_CHECK8): Delete in favor of...
15822 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
15823 (INSN_DELETED_P): Update accordingly.
15824 (INSN_UID): Use u2.insn_uid.
15825 (INSN_CHAIN_CODE_P): Define.
15826 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
15827 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
15828 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
15829 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
15830 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
15831 indices accordingly.
15832 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
15833 Update indices for insn-chain rtxes.
15834 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
15835 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
15836 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
15837 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
15838 * combine.c (try_combine): Likewise.
15839 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15840
15841 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15842
15843 * rtl.def (REG): Remove middle field.
15844 * rtl.h (rtx_def): Add orignal_regno to u2.
15845 (ORIGINAL_REGNO): Use it instead of field 1.
15846 (REG_ATTRS): Lower field index accordingly.
15847 * gengtype.c (adjust_field_rtx_def): Remove handling of
15848 ORIGINAL_REGNO. Move REG_ATTRS index down.
15849 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
15850 code that prints the REGNO.
15851
15852 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15853
15854 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
15855 GENERATOR_FILE.
15856
15857 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15858
15859 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
15860
15861 2014-05-13 Bin Cheng <bin.cheng@arm.com>
15862
15863 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
15864 (alloc_iv): Lower base expressions containing ADDR_EXPR.
15865
15866 2014-05-13 Ian Bolton <ian.bolton@arm.com>
15867
15868 * config/aarch64/aarch64-protos.h
15869 (aarch64_hard_regno_caller_save_mode): New prototype.
15870 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
15871 New function.
15872 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
15873
15874 2014-05-13 Christian Bruel <christian.bruel@st.com>
15875
15876 * target.def (mode_switching): New hook vector.
15877 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
15878 (mode_exit, modepriority_to_mode): Likewise.
15879 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
15880 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15881 * target.h: Include tm.h and hard-reg-set.h.
15882 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
15883 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
15884 * doc/tm.texi Regenerate.
15885 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15886 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15887 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
15888 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
15889 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15890 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15891 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
15892 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
15893 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
15894 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
15895 (ix86_emit_mode_set): Hookify.
15896 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
15897 Delete.
15898 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15899 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
15900 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
15901 (epiphany_mode_priority_to_mode): Remove declaration.
15902 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
15903 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
15904 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
15905 Likewise.
15906 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
15907 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
15908 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
15909
15910 2014-05-13 Jakub Jelinek <jakub@redhat.com>
15911
15912 PR target/61060
15913 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
15914 is const0_rtx, return immediately. Don't test count == 0 when
15915 it is always true.
15916
15917 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15918
15919 * Makefile.in: add shrink-wrap.o.
15920 * config/i386/i386.c: include "shrink-wrap.h"
15921 * function.c: Likewise.
15922 (requires_stack_frame_p, next_block_for_reg,
15923 move_insn_for_shrink_wrap, prepare_shrink_wrap,
15924 dup_block_and_redirect): Move to shrink-wrap.c
15925 (thread_prologue_and_epilogue_insns): Extract three code segments
15926 as functions in shrink-wrap.c
15927 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
15928 shrink-wrap.h
15929 * shrink-wrap.c: New file.
15930 * shrink-wrap.h: New file.
15931
15932 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15933
15934 * doc/extend.texi: Reflect current numbers of pragmas. Remove
15935 reference to Solaris.
15936
15937 2014-05-12 Mike Stump <mikestump@comcast.net>
15938
15939 PR other/31778
15940 * genattrtab.c (filename): Add.
15941 (convert_set_attr_alternative): Improve error message.
15942 (check_defs): Restore read_md_filename for error messages.
15943 (gen_insn): Save filename.
15944
15945 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
15946
15947 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
15948 -fno-local-ivars and -fivar-visibility.
15949 * c-family/c.opt: Make -Wshadow also implicitly enable
15950 -Wshadow-ivar.
15951
15952 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15953
15954 * doc/tm.texi: Remove reference to deleted macro.
15955 * doc/tm.texi.in: Likewise.
15956
15957 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15958
15959 PR target/60991
15960 * config/avr/avr.c (avr_out_store_psi): Use correct constant
15961 to restore Y.
15962
15963 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
15964
15965 PR libgcc/61152
15966 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
15967 * config/arm/aout.h (License): Same.
15968 * config/arm/bpabi.h (License): Same.
15969 * config/arm/elf.h (License): Same.
15970 * config/arm/linux-elf.h (License): Same.
15971 * config/arm/linux-gas.h (License): Same.
15972 * config/arm/netbsd-elf.h (License): Same.
15973 * config/arm/uclinux-eabi.h (License): Same.
15974 * config/arm/uclinux-elf.h (License): Same.
15975 * config/arm/vxworks.h (License): Same.
15976
15977 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15978
15979 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
15980 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
15981 number of operands to 3.
15982 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
15983 * tree-nested.c (convert_nonlocal_omp_clauses,
15984 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
15985 * gimplify.c (gimplify_scan_omp_clauses): Handle
15986 OMP_CLAUSE_LINEAR_STMT.
15987 * omp-low.c (lower_rec_input_clauses): Fix typo.
15988 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
15989 cast between Fortran boolean_type_node and C _Bool if
15990 needed.
15991
15992 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
15993
15994 PR tree-optimization/61136
15995 * wide-int.h (multiple_of_p): Define a version that doesn't return
15996 the quotient.
15997 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
15998 integer_zerop/const_binop pair.
15999 (multiple_of_p): Likewise, converting both operands to widest_int
16000 precision.
16001
16002 2014-05-09 Teresa Johnson <tejohnson@google.com>
16003
16004 * cgraphunit.c (analyze_functions): Use correct dump file.
16005
16006 2014-05-09 Florian Weimer <fweimer@redhat.com>
16007
16008 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16009 expand_used_vars.
16010 (stack_protect_return_slot_p): New function.
16011 (expand_used_vars): Call stack_protect_decl_p and
16012 stack_protect_return_slot_p for -fstack-protector-strong.
16013
16014 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16015 Andrew Haley <aph@redhat.com>
16016 Richard Sandiford <rdsandiford@googlemail.com>
16017
16018 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16019 pages.
16020
16021 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16022
16023 PR middle-end/61111
16024 * fold-const.c (fold_binary_loc): Changed width of mask.
16025
16026 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16027
16028 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16029 unsigned int initializers for regno_in, regno_out.
16030
16031 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16032
16033 PR target/61055
16034 * config/avr/avr.md (cc): Add new attribute set_vzn.
16035 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16036 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16037 with INC, DEC or NEG.
16038 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16039 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16040 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16041
16042 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16043
16044 Revert:
16045 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16046
16047 * wide-int.cc (UTItype): Define.
16048 (UDWtype): Define for appropriate W_TYPE_SIZE.
16049
16050 2014-05-09 Richard Biener <rguenther@suse.de>
16051
16052 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16053 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16054 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16055 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16056 ssa_propagate): Adjust.
16057
16058 2014-05-08 Jeff Law <law@redhat.com>
16059
16060 PR tree-optimization/61009
16061 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16062 tri-state rather than a boolean. When a block is too big to
16063 thread through, inform caller via negative return value.
16064 (thread_across_edge): If a block was too big for normal threading,
16065 then it's too big for a joiner too, so remove temporary equivalences
16066 and return immediately.
16067
16068 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16069 Matthias Klose <doko@ubuntu.com>
16070
16071 PR driver/61106
16072 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16073
16074 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16075
16076 PR target/59952
16077 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16078
16079 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16080
16081 PR target/61092
16082 * config/alpha/alpha.c: Include gimple-iterator.h.
16083 (alpha_gimple_fold_builtin): New function. Move
16084 ALPHA_BUILTIN_UMULH folding from ...
16085 (alpha_fold_builtin): ... here.
16086 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16087
16088 2014-05-08 Wei Mi <wmi@google.com>
16089
16090 PR target/58066
16091 * config/i386/i386.c (ix86_compute_frame_layout): Update
16092 preferred_stack_boundary for call, expanded from tls descriptor.
16093 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16094 to depend on SP register.
16095 (*tls_local_dynamic_base_32_gnu): Ditto.
16096 (*tls_local_dynamic_32_once): Ditto.
16097 (tls_global_dynamic_64_<mode>): Set
16098 ix86_tls_descriptor_calls_expanded_in_cfun.
16099 (tls_local_dynamic_base_64_<mode>): Ditto.
16100 (tls_global_dynamic_32): Set
16101 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16102 to depend on SP register.
16103 (tls_local_dynamic_base_32): Ditto.
16104
16105 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16106
16107 * config/arm/arm_neon.h: Update comment.
16108 * config/arm/neon-docgen.ml: Delete.
16109 * config/arm/neon-gen.ml: Delete.
16110 * doc/arm-neon-intrinsics.texi: Update comment.
16111
16112 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16113
16114 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16115 and v4sf versions.
16116 (vand, vorr, veor, vorn, vbic): Remove.
16117 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16118 iterator.
16119 (neon_vsub_unspec): Likewise.
16120 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16121
16122 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16123
16124 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16125 (vadd_s16): Likewise.
16126 (vadd_s32): Likewise.
16127 (vadd_f32): Likewise.
16128 (vadd_u8): Likewise.
16129 (vadd_u16): Likewise.
16130 (vadd_u32): Likewise.
16131 (vadd_s64): Likewise.
16132 (vadd_u64): Likewise.
16133 (vaddq_s8): Likewise.
16134 (vaddq_s16): Likewise.
16135 (vaddq_s32): Likewise.
16136 (vaddq_s64): Likewise.
16137 (vaddq_f32): Likewise.
16138 (vaddq_u8): Likewise.
16139 (vaddq_u16): Likewise.
16140 (vaddq_u32): Likewise.
16141 (vaddq_u64): Likewise.
16142 (vmul_s8): Likewise.
16143 (vmul_s16): Likewise.
16144 (vmul_s32): Likewise.
16145 (vmul_f32): Likewise.
16146 (vmul_u8): Likewise.
16147 (vmul_u16): Likewise.
16148 (vmul_u32): Likewise.
16149 (vmul_p8): Likewise.
16150 (vmulq_s8): Likewise.
16151 (vmulq_s16): Likewise.
16152 (vmulq_s32): Likewise.
16153 (vmulq_f32): Likewise.
16154 (vmulq_u8): Likewise.
16155 (vmulq_u16): Likewise.
16156 (vmulq_u32): Likewise.
16157 (vsub_s8): Likewise.
16158 (vsub_s16): Likewise.
16159 (vsub_s32): Likewise.
16160 (vsub_f32): Likewise.
16161 (vsub_u8): Likewise.
16162 (vsub_u16): Likewise.
16163 (vsub_u32): Likewise.
16164 (vsub_s64): Likewise.
16165 (vsub_u64): Likewise.
16166 (vsubq_s8): Likewise.
16167 (vsubq_s16): Likewise.
16168 (vsubq_s32): Likewise.
16169 (vsubq_s64): Likewise.
16170 (vsubq_f32): Likewise.
16171 (vsubq_u8): Likewise.
16172 (vsubq_u16): Likewise.
16173 (vsubq_u32): Likewise.
16174 (vsubq_u64): Likewise.
16175 (vand_s8): Likewise.
16176 (vand_s16): Likewise.
16177 (vand_s32): Likewise.
16178 (vand_u8): Likewise.
16179 (vand_u16): Likewise.
16180 (vand_u32): Likewise.
16181 (vand_s64): Likewise.
16182 (vand_u64): Likewise.
16183 (vandq_s8): Likewise.
16184 (vandq_s16): Likewise.
16185 (vandq_s32): Likewise.
16186 (vandq_s64): Likewise.
16187 (vandq_u8): Likewise.
16188 (vandq_u16): Likewise.
16189 (vandq_u32): Likewise.
16190 (vandq_u64): Likewise.
16191 (vorr_s8): Likewise.
16192 (vorr_s16): Likewise.
16193 (vorr_s32): Likewise.
16194 (vorr_u8): Likewise.
16195 (vorr_u16): Likewise.
16196 (vorr_u32): Likewise.
16197 (vorr_s64): Likewise.
16198 (vorr_u64): Likewise.
16199 (vorrq_s8): Likewise.
16200 (vorrq_s16): Likewise.
16201 (vorrq_s32): Likewise.
16202 (vorrq_s64): Likewise.
16203 (vorrq_u8): Likewise.
16204 (vorrq_u16): Likewise.
16205 (vorrq_u32): Likewise.
16206 (vorrq_u64): Likewise.
16207 (veor_s8): Likewise.
16208 (veor_s16): Likewise.
16209 (veor_s32): Likewise.
16210 (veor_u8): Likewise.
16211 (veor_u16): Likewise.
16212 (veor_u32): Likewise.
16213 (veor_s64): Likewise.
16214 (veor_u64): Likewise.
16215 (veorq_s8): Likewise.
16216 (veorq_s16): Likewise.
16217 (veorq_s32): Likewise.
16218 (veorq_s64): Likewise.
16219 (veorq_u8): Likewise.
16220 (veorq_u16): Likewise.
16221 (veorq_u32): Likewise.
16222 (veorq_u64): Likewise.
16223 (vbic_s8): Likewise.
16224 (vbic_s16): Likewise.
16225 (vbic_s32): Likewise.
16226 (vbic_u8): Likewise.
16227 (vbic_u16): Likewise.
16228 (vbic_u32): Likewise.
16229 (vbic_s64): Likewise.
16230 (vbic_u64): Likewise.
16231 (vbicq_s8): Likewise.
16232 (vbicq_s16): Likewise.
16233 (vbicq_s32): Likewise.
16234 (vbicq_s64): Likewise.
16235 (vbicq_u8): Likewise.
16236 (vbicq_u16): Likewise.
16237 (vbicq_u32): Likewise.
16238 (vbicq_u64): Likewise.
16239 (vorn_s8): Likewise.
16240 (vorn_s16): Likewise.
16241 (vorn_s32): Likewise.
16242 (vorn_u8): Likewise.
16243 (vorn_u16): Likewise.
16244 (vorn_u32): Likewise.
16245 (vorn_s64): Likewise.
16246 (vorn_u64): Likewise.
16247 (vornq_s8): Likewise.
16248 (vornq_s16): Likewise.
16249 (vornq_s32): Likewise.
16250 (vornq_s64): Likewise.
16251 (vornq_u8): Likewise.
16252 (vornq_u16): Likewise.
16253 (vornq_u32): Likewise.
16254 (vornq_u64): Likewise.
16255
16256 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16257
16258 * wide-int.cc (UTItype): Define.
16259 (UDWtype): Define for appropriate W_TYPE_SIZE.
16260
16261 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16262
16263 PR tree-optimization/59100
16264 * tree-ssa-phiopt.c: Include tree-inline.h.
16265 (neutral_element_p, absorbing_element_p): New functions.
16266 (value_replacement): Handle conditional binary operations with a
16267 neutral or absorbing element.
16268
16269 2014-05-08 Richard Biener <rguenther@suse.de>
16270
16271 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16272 folding the expression.
16273 (valueize_expr): Remove.
16274 (visit_reference_op_load): Do not valueize the result of
16275 vn_get_expr_for.
16276 (simplify_binary_expression): Likewise.
16277 (simplify_unary_expression): Likewise.
16278
16279 2014-05-08 Richard Biener <rguenther@suse.de>
16280
16281 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16282 looking at TYPE_ARG_TYPES.
16283
16284 2014-05-08 Richard Biener <rguenther@suse.de>
16285
16286 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16287 pointer propagation special-case.
16288
16289 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16290
16291 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16292 core part of address expressions.
16293
16294 2014-05-08 Alan Modra <amodra@gmail.com>
16295
16296 PR target/60737
16297 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16298 loads and stores when -mno-strict-align at any alignment.
16299 (expand_block_clear): Similarly. Also correct calculation of
16300 instruction count.
16301
16302 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16303
16304 PR middle-end/39246
16305 * tree-complex.c (expand_complex_move): Keep line info when expanding
16306 complex move.
16307 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16308 of complex expression. Use new argument to display correct location
16309 for values coming from phi statement.
16310 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16311 (warn_uninitialized_phi): Pass location of phi argument to
16312 warn_uninit.
16313 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16314 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16315
16316 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16317
16318 * config/rs6000/predicates.md (indexed_address_mem): New.
16319 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16320 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16321 fpstore_ux, fpstore_u.
16322 (sign_extend, indexed, update): New.
16323 (cell_micro): Adjust.
16324 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16325 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16326 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16327 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16328 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16329 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16330 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16331 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16332 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16333 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16334 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16335 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16336 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16337 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16338 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16339
16340 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16341 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16342 *vsx_extract_<mode>_store): Adjust.
16343 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16344 is_cracked_insn, insn_must_be_first_in_group,
16345 insn_must_be_last_in_group): Adjust.
16346
16347 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16348 Adjust.
16349 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16350 ppc440-fpstore): Adjust.
16351 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16352 ppc476-fpstore): Adjust.
16353 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16354 ppc601-fpstore): Adjust.
16355 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16356 Adjust.
16357 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16358 Adjust.
16359 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16360 ppc7450-fpstore): Adjust.
16361 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16362 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16363 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16364 Adjust.
16365 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16366 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16367 cell-fpstore, cell-fpstore-update): Adjust.
16368 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16369 ppce300c3_store, ppce300c3_fpstore): Adjust.
16370 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16371 e500mc_fpstore): Adjust.
16372 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16373 e500mc64_store, e500mc64_fpstore): Adjust.
16374 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16375 e5500_fpstore): Adjust.
16376 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16377 e6500_fpstore): Adjust.
16378 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16379 Adjust.
16380 * config/rs6000/power4.md (power4-load, power4-load-ext,
16381 power4-load-ext-update, power4-load-ext-update-indexed,
16382 power4-load-update-indexed, power4-load-update, power4-fpload,
16383 power4-fpload-update, power4-store, power4-store-update,
16384 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16385 Adjust.
16386 * config/rs6000/power5.md (power5-load, power5-load-ext,
16387 power5-load-ext-update, power5-load-ext-update-indexed,
16388 power5-load-update-indexed, power5-load-update, power5-fpload,
16389 power5-fpload-update, power5-store, power5-store-update,
16390 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16391 Adjust.
16392 * config/rs6000/power6.md (power6-load, power6-load-ext,
16393 power6-load-update, power6-load-update-indexed,
16394 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16395 power6-fpload-update, power6-store, power6-store-update,
16396 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16397 Adjust.
16398 * config/rs6000/power7.md (power7-load, power7-load-ext,
16399 power7-load-update, power7-load-update-indexed,
16400 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16401 power7-fpload-update, power7-store, power7-store-update,
16402 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16403 Adjust.
16404 * config/rs6000/power8.md (power8-load, power8-load-update,
16405 power8-load-ext, power8-load-ext-update, power8-fpload,
16406 power8-fpload-update, power8-store, power8-store-update-indexed,
16407 power8-fpstore, power8-fpstore-update): Adjust.
16408 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16409 Adjust.
16410 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16411 titan_lsu_store, titan_lsu_fpstore): Adjust.
16412 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16413
16414 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16415
16416 PR target/60884
16417 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16418 unrolled byte insns. Emit address increments after move insns.
16419
16420 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16421
16422 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16423 const_gimple, rather than a gimple.
16424 (gimple_call_builtin_p): Likewise, for the three variants.
16425
16426 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16427 (gimple_call_builtin_p): Likewise, for the three variants.
16428
16429 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16430
16431 PR tree-optimization/61095
16432 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16433
16434 2014-05-07 Richard Biener <rguenther@suse.de>
16435
16436 PR tree-optimization/61034
16437 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16438 (maybe_skip_until): Use translate to take into account
16439 lattices when trying to do disambiguations.
16440 (get_continuation_for_phi_1): Likewise.
16441 (get_continuation_for_phi): Adjust for added translate arguments.
16442 (walk_non_aliased_vuses): Likewise.
16443 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16444 (walk_non_aliased_vuses): Likewise.
16445 (call_may_clobber_ref_p_1): Declare.
16446 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16447 calls. Stop early if we are only supposed to disambiguate.
16448 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16449
16450 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16451
16452 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16453 Emit an error when the function has arguments.
16454
16455 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16456
16457 * cfgloop.h (unswitch_loops): Remove.
16458 * doc/passes.texi: Remove references to loop-unswitch.c
16459 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16460
16461 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16462
16463 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16464 check for loads group of length 3.
16465 (vect_permute_load_chain): New permutations for loads group of
16466 length 3.
16467 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16468 of vec_perm_shuffle for the new permutations.
16469
16470 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16471
16472 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16473 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16474 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16475 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16476 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16477 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16478 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16479 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16480
16481 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16482
16483 * loop-unswitch.c: Delete.
16484
16485 2014-05-07 Richard Biener <rguenther@suse.de>
16486
16487 * config.gcc: Always set need_64bit_hwint to yes.
16488
16489 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16490
16491 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16492 of using optimize_size.
16493
16494 2014-05-06 Mike Stump <mikestump@comcast.net>
16495
16496 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16497
16498 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16499
16500 * config/i386/sse.md (*mov<mode>_internal)
16501 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16502 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16503 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16504 (*<code><mode>3, *andnot<mode>3<mask_name>)
16505 (<mask_codefor><code><mode>3<mask_name>): Only consider
16506 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16507
16508 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16509
16510 Revert:
16511 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16512
16513 * lra-constraints.c (valid_address_p): Move earlier in file.
16514 Add a constraint argument to the address_info version.
16515 (satisfies_memory_constraint_p): New function.
16516 (satisfies_address_constraint_p): Likewise.
16517 (process_alt_operands, curr_insn_transform): Use them.
16518 (process_address): Pass the constraint to valid_address_p when
16519 checking address operands.
16520
16521 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16522
16523 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16524 to their respective blocks. Fix inadvertent use of "node".
16525
16526 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16527
16528 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16529 out from...
16530 (init_emit_once): ...here.
16531 * rtl.h (init_derived_machine_modes): Declare.
16532 * toplev.c (do_compile): Call it even if no_backend.
16533
16534 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16535 Mike Stump <mikestump@comcast.net>
16536 Richard Sandiford <rdsandiford@googlemail.com>
16537 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16538
16539 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16540 (rtx_equal_for_memref_p): Update comment.
16541 (adjust_offset_for_component_ref): Use wide-int interfaces.
16542 * builtins.c (get_object_alignment_2): Likewise.
16543 (c_readstr): Likewise.
16544 (target_char_cast): Add comment.
16545 (determine_block_size): Use wide-int interfaces.
16546 (expand_builtin_signbit): Likewise.
16547 (fold_builtin_int_roundingfn): Likewise.
16548 (fold_builtin_bitop): Likewise.
16549 (fold_builtin_bswap): Likewise.
16550 (fold_builtin_logarithm): Use signop.
16551 (fold_builtin_pow): Likewise.
16552 (fold_builtin_memory_op): Use wide-int interfaces.
16553 (fold_builtin_object_size): Likewise.
16554 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16555 nb_iterations_estimate.
16556 (record_niter_bound): Use wide-int interfaces.
16557 (get_estimated_loop_iterations_int): Likewise.
16558 (get_estimated_loop_iterations): Likewise.
16559 (get_max_loop_iterations): Likewise.
16560 * cfgloop.h: Include wide-int.h.
16561 (struct nb_iter_bound): Change bound to widest_int.
16562 (struct loop): Change nb_iterations_upper_bound and
16563 nb_iterations_estimate to widest_int.
16564 (record_niter_bound): Switch to use widest_int.
16565 (get_estimated_loop_iterations): Likewise.
16566 (get_max_loop_iterations): Likewise.
16567 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16568 update for wide-int.
16569 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16570 * combine.c (try_combine): Likewise.
16571 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16572 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16573 interfaces.
16574 (aarch64_float_const_representable_p): Likewise.
16575 * config/arc/arc.c: Include wide-int.h.
16576 (arc_can_use_doloop_p): Use wide-int interfaces.
16577 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16578 (vfp3_const_double_index): Likewise.
16579 * config/avr/avr.c (avr_out_round): Likewise.
16580 (avr_fold_builtin): Likewise.
16581 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16582 (bfin_can_use_doloop_p): Likewise.
16583 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16584 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16585 * config/i386/i386.c: Include wide-int.h.
16586 (ix86_data_alignment): Use wide-int interfaces.
16587 (ix86_local_alignment): Likewise.
16588 (ix86_emit_swsqrtsf): Update real_from_integer.
16589 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16590 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16591 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16592 (zero_constant): Likewise.
16593 (input_operand): Likewise.
16594 (splat_input_operand): Likewise.
16595 (non_logical_cint_operand): Change const_double to const_wide_int.
16596 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16597 (easy_altivec_constant): Remove comment.
16598 (paired_expand_vector_init): Use CONSTANT_P.
16599 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16600 (rs6000_emit_move): Update checks.
16601 (rs6000_aggregate_candidate): Use wide-int interfaces.
16602 (rs6000_expand_ternop_builtin): Likewise.
16603 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16604 (rs6000_assemble_integer): Likewise.
16605 (rs6000_hash_constant): Likewise.
16606 (output_toc): Likewise.
16607 (rs6000_rtx_costs): Likewise.
16608 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16609 * config/rs6000/rs6000-c.c: Include wide-int.h.
16610 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16611 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16612 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16613 Handle CONST_WIDE_INT.
16614 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16615 Use tree_fits_uhwi_p.
16616 * config/sparc/sparc.c: Include wide-int.h.
16617 (sparc_fold_builtin): Use wide-int interfaces.
16618 * config/vax/vax.c: Include wide-int.h.
16619 (vax_float_literal): Use real_from_integer.
16620 * coretypes.h (struct hwivec_def): New.
16621 (hwivec): New.
16622 (const_hwivec): New.
16623 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16624 (equiv_constant): Handle CONST_WIDE_INT.
16625 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16626 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16627 * dbxout.c (stabstr_U): Use wide-int interfaces.
16628 (dbxout_type): Update to use cst_fits_shwi_p.
16629 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16630 (TARGET_SUPPORTS_WIDE_INT): Add default.
16631 * dfp.c: Include wide-int.h.
16632 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16633 decimal_real_to_integer.
16634 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16635 decimal_real_to_integer.
16636 * doc/generic.texi (Constant expressions): Update for wide_int.
16637 * doc/rtl.texi (const_double): Likewise.
16638 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16639 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16640 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16641 (REAL_VALUE_FROM_INT): Remove.
16642 (TARGET_SUPPORTS_WIDE_INT): New.
16643 * doc/tm.texi: Regenerate.
16644 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16645 * double-int.h: Include wide-int.h.
16646 (struct wi::int_traits): New.
16647 * dwarf2out.c (get_full_len): New.
16648 (dw_val_equal_p): Add case dw_val_class_wide_int.
16649 (size_of_loc_descr): Likewise.
16650 (output_loc_operands): Likewise.
16651 (insert_double): Remove.
16652 (insert_wide_int): New.
16653 (add_AT_wide): New.
16654 (print_die): Add case dw_val_class_wide_int.
16655 (attr_checksum): Likewise.
16656 (attr_checksum_ordered): Likewise.
16657 (same_dw_val_p): Likewise.
16658 (size_of_die): Likewise.
16659 (value_format): Likewise.
16660 (output_die): Likewise.
16661 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16662 Use wide-int.
16663 (clz_loc_descriptor): Use wide-int interfaces.
16664 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
16665 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
16666 (round_up_to_align): Use wide-int interfaces.
16667 (field_byte_offset): Likewise.
16668 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
16669 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
16670 CONST_DOUBLE handling. Use wide-int interfaces.
16671 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
16672 (gen_enumeration_type_die): Use add_AT_wide.
16673 (hash_loc_operands): Add case dw_val_class_wide_int.
16674 (compare_loc_operands): Likewise.
16675 * dwarf2out.h: Include wide-int.h.
16676 (wide_int_ptr): New.
16677 (enum dw_val_class): Add dw_val_class_wide_int.
16678 (struct dw_val_struct): Add val_wide.
16679 * emit-rtl.c (const_wide_int_htab): New.
16680 (const_wide_int_htab_hash): New.
16681 (const_wide_int_htab_eq): New.
16682 (lookup_const_wide_int): New.
16683 (const_double_htab_hash): Use wide-int interfaces.
16684 (const_double_htab_eq): Likewise.
16685 (rtx_to_double_int): Conditionally compile for wide-int.
16686 (immed_double_int_const): Rename to immed_wide_int_const and
16687 update for wide-int.
16688 (immed_double_const): Conditionally compile for wide-int.
16689 (init_emit_once): Use wide-int interfaces.
16690 * explow.c (plus_constant): Likewise.
16691 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
16692 (lshift_value): Use wide-int interfaces.
16693 (expand_mult): Likewise.
16694 (choose_multiplier): Likewise.
16695 (expand_smod_pow2): Likewise.
16696 (make_tree): Likewise.
16697 * expr.c (convert_modes): Consolidate handling of constants.
16698 Use wide-int interfaces.
16699 (emit_group_load_1): Add note.
16700 (store_expr): Update comment.
16701 (get_inner_reference): Use wide-int interfaces.
16702 (expand_constructor): Update comment.
16703 (expand_expr_real_2): Use wide-int interfaces.
16704 (expand_expr_real_1): Likewise.
16705 (reduce_to_bit_field_precision): Likewise.
16706 (const_vector_from_tree): Likewise.
16707 * final.c: Include wide-int-print.h.
16708 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
16709 * fixed-value.c: Include wide-int.h.
16710 (fixed_from_string): Use wide-int interfaces.
16711 (fixed_to_decimal): Likewise.
16712 (fixed_convert_from_real): Likewise.
16713 (real_convert_from_fixed): Likewise.
16714 * fold-const.h (mem_ref_offset): Return an offset_int.
16715 (div_if_zero_remainder): Remove code parameter.
16716 * fold-const.c (div_if_zero_remainder): Remove code parameter.
16717 Use wide-int interfaces.
16718 (may_negate_without_overflow_p): Use wide-int interfaces.
16719 (negate_expr_p): Likewise.
16720 (fold_negate_expr): Likewise.
16721 (int_const_binop_1): Likewise.
16722 (const_binop): Likewise.
16723 (fold_convert_const_int_from_int): Likewise.
16724 (fold_convert_const_int_from_real): Likewise.
16725 (fold_convert_const_int_from_fixed): Likewise.
16726 (fold_convert_const_fixed_from_int): Likewise.
16727 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
16728 (sign_bit_p): Use wide-int interfaces.
16729 (make_range_step): Likewise.
16730 (build_range_check): Likewise. Pass an integer of the correct type
16731 instead of using integer_one_node.
16732 (range_predecessor): Pass an integer of the correct type instead
16733 of using integer_one_node.
16734 (range_successor): Likewise.
16735 (merge_ranges): Likewise.
16736 (unextend): Use wide-int interfaces.
16737 (extract_muldiv_1): Likewise.
16738 (fold_div_compare): Likewise.
16739 (fold_single_bit_test): Likewise.
16740 (fold_sign_changed_comparison): Likewise.
16741 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16742 (fold_plusminus_mult_expr): Use wide-int interfaces.
16743 (native_encode_int): Likewise.
16744 (native_interpret_int): Likewise.
16745 (fold_unary_loc): Likewise.
16746 (pointer_may_wrap_p): Likewise.
16747 (size_low_cst): Likewise.
16748 (mask_with_tz): Likewise.
16749 (fold_binary_loc): Likewise.
16750 (fold_ternary_loc): Likewise.
16751 (multiple_of_p): Likewise.
16752 (tree_call_nonnegative_warnv_p): Update calls to
16753 tree_int_cst_min_precision and real_from_integer.
16754 (fold_negate_const): Use wide-int interfaces.
16755 (fold_abs_const): Likewise.
16756 (fold_relational_const): Use tree_int_cst_lt.
16757 (round_up_loc): Use wide-int interfaces.
16758 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16759 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16760 * gengtype.c: Remove include of double-int.h.
16761 (do_typedef): Use wide-int interfaces.
16762 (open_base_files): Add wide-int.h.
16763 (main): Add offset_int and widest_int typedefs.
16764 * gengtype-lex.l: Handle "^".
16765 (CXX_KEYWORD): Add "static".
16766 * gengtype-parse.c (require3): New.
16767 (require_template_declaration): Handle constant template arguments
16768 and nested templates.
16769 * gengtype-state.c: Don't include "double-int.h".
16770 * genpreds.c (write_one_predicate_function): Update comment.
16771 (write_tm_constrs_h): Add check for hval and lval use in
16772 CONST_WIDE_INT.
16773 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
16774 (add_to_sequence): Likewise.
16775 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
16776 and const_double_operand.
16777 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
16778 interfaces.
16779 * gimple-fold.c (get_base_constructor): Likewise.
16780 (fold_array_ctor_reference): Likewise.
16781 (fold_nonarray_ctor_reference): Likewise.
16782 (fold_const_aggregate_ref_1): Likewise.
16783 (gimple_val_nonnegative_real_p): Likewise.
16784 (gimple_fold_indirect_ref): Likewise.
16785 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
16786 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
16787 (struct slsr_cand_d): Change index to be widest_int.
16788 (struct incr_info_d): Change incr to be widest_int.
16789 (alloc_cand_and_find_basis): Use wide-int interfaces.
16790 (slsr_process_phi): Likewise.
16791 (backtrace_base_for_ref): Likewise. Return a widest_int.
16792 (restructure_reference): Take a widest_int instead of a double_int.
16793 (slsr_process_ref): Use wide-int interfaces.
16794 (create_mul_ssa_cand): Likewise.
16795 (create_mul_imm_cand): Likewise.
16796 (create_add_ssa_cand): Likewise.
16797 (create_add_imm_cand): Take a widest_int instead of a double_int.
16798 (slsr_process_add): Use wide-int interfaces.
16799 (slsr_process_cast): Likewise.
16800 (slsr_process_copy): Likewise.
16801 (dump_candidate): Likewise.
16802 (dump_incr_vec): Likewise.
16803 (replace_ref): Likewise.
16804 (cand_increment): Likewise. Return a widest_int.
16805 (cand_abs_increment): Likewise.
16806 (replace_mult_candidate): Take a widest_int instead of a double_int.
16807 (replace_unconditional_candidate): Use wide-int interfaces.
16808 (incr_vec_index): Take a widest_int instead of a double_int.
16809 (create_add_on_incoming_edge): Likewise.
16810 (create_phi_basis): Use wide-int interfaces.
16811 (replace_conditional_candidate): Likewise.
16812 (record_increment): Take a widest_int instead of a double_int.
16813 (record_phi_increments): Use wide-int interfaces.
16814 (phi_incr_cost): Take a widest_int instead of a double_int.
16815 (lowest_cost_path): Likewise.
16816 (total_savings): Likewise.
16817 (analyze_increments): Use wide-int interfaces.
16818 (ncd_with_phi): Take a widest_int instead of a double_int.
16819 (ncd_of_cand_and_phis): Likewise.
16820 (nearest_common_dominator_for_cands): Likewise.
16821 (insert_initializers): Use wide-int interfaces.
16822 (all_phi_incrs_profitable): Likewise.
16823 (replace_one_candidate): Likewise.
16824 (replace_profitable_candidates): Likewise.
16825 * godump.c: Include wide-int-print.h.
16826 (go_output_typedef): Use wide-int interfaces.
16827 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
16828 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
16829 (build_loop_iteration_domains): Likewise.
16830 * hooks.h: Include wide-int.h rather than double-int.h.
16831 (hook_bool_dint_dint_uint_bool_true): Delete.
16832 (hook_bool_wint_wint_uint_bool_true): Declare.
16833 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
16834 (hook_bool_wint_wint_uint_bool_true): New.
16835 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
16836 interfaces.
16837 (ubsan_expand_si_overflow_mul_check): Likewise.
16838 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
16839 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
16840 (get_ancestor_addr_info): Likewise.
16841 (ipa_modify_call_arguments): Likewise.
16842 * loop-doloop.c (doloop_modify): Likewise.
16843 (doloop_optimize): Likewise.
16844 * loop-iv.c (iv_number_of_iterations): Likewise.
16845 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
16846 (unroll_loop_constant_iterations): Likewise.
16847 (decide_unroll_runtime_iterations): Likewise.
16848 (unroll_loop_runtime_iterations): Likewise.
16849 (decide_peel_simple): Likewise.
16850 (decide_unroll_stupid): Likewise.
16851 * lto-streamer-in.c (streamer_read_wi): Add.
16852 (input_cfg): Use wide-int interfaces.
16853 (lto_input_tree_1): Likewise.
16854 * lto-streamer-out.c (streamer_write_wi): Add.
16855 (hash_tree): Use wide-int interfaces.
16856 (output_cfg): Likewise.
16857 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
16858 (GTFILES): Add wide-int.h and signop.h.
16859 (TAGS): Look for .cc files too.
16860 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
16861 * optabs.c (expand_subword_shift): Likewise.
16862 (expand_doubleword_shift): Likewise.
16863 (expand_absneg_bit): Likewise.
16864 (expand_copysign_absneg): Likewise.
16865 (expand_copysign_bit): Likewise.
16866 * postreload.c (reload_cse_simplify_set): Likewise.
16867 * predict.c (predict_iv_comparison): Likewise.
16868 * pretty-print.h: Include wide-int-print.h.
16869 (pp_wide_int) New.
16870 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
16871 * print-tree.c: Include wide-int-print.h.
16872 (print_node_brief): Use wide-int interfaces.
16873 (print_node): Likewise.
16874 * read-rtl.c (validate_const_wide_int): New.
16875 (read_rtx_code): Add CONST_WIDE_INT case.
16876 * real.c: Include wide-int.h.
16877 (real_to_integer2): Delete.
16878 (real_to_integer): New function, returning a wide_int.
16879 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16880 (ten_to_ptwo): Update call to real_from_integer.
16881 (real_digit): Likewise.
16882 * real.h: Include signop.h, wide-int.h and insn-modes.h.
16883 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
16884 (REAL_VALUE_TO_INT): Delete.
16885 (real_to_integer): Declare a wide-int form.
16886 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16887 * recog.c (const_int_operand): Improve comment.
16888 (const_scalar_int_operand): New.
16889 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
16890 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
16891 (split_double): Likewise.
16892 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
16893 (rtx_size): Likewise.
16894 (rtx_alloc_stat_v): New.
16895 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
16896 (cwi_output_hex): New.
16897 (iterative_hash_rtx): Handle CONST_WIDE_INT.
16898 (cwi_check_failed_bounds): New.
16899 * rtl.def (CONST_WIDE_INT): New.
16900 * rtl.h: Include <utility> and wide-int.h.
16901 (struct hwivec_def): New.
16902 (CWI_GET_NUM_ELEM): New.
16903 (CWI_PUT_NUM_ELEM): New.
16904 (struct rtx_def): Add num_elem and hwiv.
16905 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
16906 (CASE_CONST_UNIQUE): Likewise.
16907 (CASE_CONST_ANY): Likewise.
16908 (CONST_SCALAR_INT_P): Likewise.
16909 (CONST_WIDE_INT_P): New.
16910 (CWI_ELT): New.
16911 (HWIVEC_CHECK): New.
16912 (cwi_check_failed_bounds): New.
16913 (CWI_ELT): New.
16914 (HWIVEC_CHECK): New.
16915 (CONST_WIDE_INT_VEC) New.
16916 (CONST_WIDE_INT_NUNITS) New.
16917 (CONST_WIDE_INT_ELT) New.
16918 (rtx_mode_t): New type.
16919 (wi::int_traits <rtx_mode_t>): New.
16920 (wi::shwi): New.
16921 (wi::min_value): New.
16922 (wi::max_value): New.
16923 (rtx_alloc_v) New.
16924 (const_wide_int_alloc): New.
16925 (immed_wide_int_const): New.
16926 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
16927 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
16928 * signop.h: New file.
16929 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
16930 (simplify_const_unary_operation): Use wide-int interfaces.
16931 (simplify_binary_operation_1): Likewise.
16932 (simplify_const_binary_operation): Likewise.
16933 (simplify_const_relational_operation): Likewise.
16934 (simplify_immed_subreg): Likewise.
16935 * stmt.c (expand_case): Likewise.
16936 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
16937 signop rather than a bool.
16938 * stor-layout.c (layout_type): Use wide-int interfaces.
16939 (initialize_sizetypes): Update calls to
16940 set_min_and_max_values_for_integral_type.
16941 (set_min_and_max_values_for_integral_type): Take a signop rather
16942 than a bool. Use wide-int interfaces.
16943 (fixup_signed_type): Update accordingly. Remove
16944 HOST_BITS_PER_DOUBLE_INT limit.
16945 (fixup_unsigned_type): Likewise.
16946 * system.h (STATIC_CONSTANT_P): New.
16947 (STATIC_ASSERT): New.
16948 * target.def (can_use_doloop_p): Take widest_ints rather than
16949 double_ints.
16950 * target.h: Include wide-int.h rather than double-int.h.
16951 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
16952 than double_ints.
16953 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
16954 rather than INT_CST_LT_UNSIGNED.
16955 (can_use_doloop_if_innermost): Take widest_ints rather than
16956 double_ints.
16957 * tree-affine.c: Include wide-int-print.h.
16958 (double_int_ext_for_comb): Delete.
16959 (wide_int_ext_for_comb): New.
16960 (aff_combination_zero): Use wide-int interfaces.
16961 (aff_combination_const): Take a widest_int instead of a double_int.
16962 (aff_combination_elt): Use wide-int interfaces.
16963 (aff_combination_scale): Take a widest_int instead of a double_int.
16964 (aff_combination_add_elt): Likewise.
16965 (aff_combination_add_cst): Likewise.
16966 (aff_combination_add): Use wide-int interfaces.
16967 (aff_combination_convert): Likewise.
16968 (tree_to_aff_combination): Likewise.
16969 (add_elt_to_tree): Take a widest_int instead of a double_int.
16970 (aff_combination_to_tree): Use wide-int interfaces.
16971 (aff_combination_remove_elt): Likewise.
16972 (aff_combination_add_product): Take a widest_int instead of
16973 a double_int.
16974 (aff_combination_mult): Use wide-int interfaces.
16975 (aff_combination_expand): Likewise.
16976 (double_int_constant_multiple_p): Delete.
16977 (wide_int_constant_multiple_p): New.
16978 (aff_combination_constant_multiple_p): Take a widest_int pointer
16979 instead of a double_int pointer.
16980 (print_aff): Use wide-int interfaces.
16981 (get_inner_reference_aff): Take a widest_int pointer
16982 instead of a double_int pointer.
16983 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
16984 * tree-affine.h: Include wide-int.h.
16985 (struct aff_comb_elt): Change type of coef to widest_int.
16986 (struct affine_tree_combination): Change type of offset to widest_int.
16987 (double_int_ext_for_comb): Delete.
16988 (wide_int_ext_for_comb): New.
16989 (aff_combination_const): Use widest_int instead of double_int.
16990 (aff_combination_scale): Likewise.
16991 (aff_combination_add_elt): Likewise.
16992 (aff_combination_constant_multiple_p): Likewise.
16993 (get_inner_reference_aff): Likewise.
16994 (aff_comb_cannot_overlap_p): Likewise.
16995 (aff_combination_zero_p): Use wide-int interfaces.
16996 * tree.c: Include tree.h.
16997 (init_ttree): Use make_int_cst.
16998 (tree_code_size): Removed code for INTEGER_CST case.
16999 (tree_size): Add INTEGER_CST case.
17000 (make_node_stat): Update comment.
17001 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17002 (build_int_cst_type): Use wide-int interfaces.
17003 (double_int_to_tree): Likewise.
17004 (double_int_fits_to_tree_p): Delete.
17005 (force_fit_type_double): Delete.
17006 (force_fit_type): New.
17007 (int_cst_hash_hash): Use wide-int interfaces.
17008 (int_cst_hash_eq): Likewise.
17009 (build_int_cst_wide): Delete.
17010 (wide_int_to_tree): New.
17011 (cache_integer_cst): Use wide-int interfaces.
17012 (build_low_bits_mask): Likewise.
17013 (cst_and_fits_in_hwi): Likewise.
17014 (real_value_from_int_cst): Likewise.
17015 (make_int_cst_stat): New.
17016 (integer_zerop): Use wide_int interfaces.
17017 (integer_onep): Likewise.
17018 (integer_all_onesp): Likewise.
17019 (integer_pow2p): Likewise.
17020 (integer_nonzerop): Likewise.
17021 (tree_log2): Likewise.
17022 (tree_floor_log2): Likewise.
17023 (tree_ctz): Likewise.
17024 (int_size_in_bytes): Likewise.
17025 (mem_ref_offset): Return an offset_int rather than a double_int.
17026 (build_type_attribute_qual_variant): Use wide_int interfaces.
17027 (type_hash_eq): Likewise
17028 (tree_int_cst_equal): Likewise.
17029 (tree_int_cst_lt): Delete.
17030 (tree_int_cst_compare): Likewise.
17031 (tree_fits_shwi_p): Use wide_int interfaces.
17032 (tree_fits_uhwi_p): Likewise.
17033 (tree_int_cst_sign_bit): Likewise.
17034 (tree_int_cst_sgn): Likewise.
17035 (tree_int_cst_min_precision): Take a signop rather than a bool.
17036 (simple_cst_equal): Use wide_int interfaces.
17037 (compare_tree_int): Likewise.
17038 (iterative_hash_expr): Likewise.
17039 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17040 INT_CST_LT.
17041 (get_type_static_bounds): Use wide_int interfaces.
17042 (tree_int_cst_elt_check_failed): New.
17043 (build_common_tree_nodes): Reordered to set prec before filling in
17044 value.
17045 (int_cst_value): Check cst_and_fits_in_hwi.
17046 (widest_int_cst_value): Use wide_int interfaces.
17047 (upper_bound_in_type): Likewise.
17048 (lower_bound_in_type): Likewise.
17049 (num_ending_zeros): Likewise.
17050 (drop_tree_overflow): Likewise.
17051 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17052 (gen_conditions_for_pow_cst_base): Likewise.
17053 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17054 (group_case_labels_stmt): Use wide-int interfaces.
17055 (verify_gimple_assign_binary): Likewise.
17056 (print_loop): Likewise.
17057 * tree-chrec.c (tree_fold_binomial): Likewise.
17058 * tree-core.h (struct tree_base): Add int_length.
17059 (struct tree_int_cst): Change rep of value.
17060 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17061 (dr_may_alias_p): Likewise.
17062 (max_stmt_executions_tree): Likewise.
17063 * tree.def (INTEGER_CST): Update comment.
17064 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17065 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17066 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17067 (dequeue_and_dump): Use wide-int interfaces.
17068 * tree.h: Include wide-int.h.
17069 (NULL_TREE): Moved to earlier loc in file.
17070 (TREE_INT_CST_ELT_CHECK): New.
17071 (tree_int_cst_elt_check_failed): New.
17072 (TYPE_SIGN): New.
17073 (TREE_INT_CST): Delete.
17074 (TREE_INT_CST_LOW): Use wide-int interfaces.
17075 (TREE_INT_CST_HIGH): Delete.
17076 (TREE_INT_CST_NUNITS): New.
17077 (TREE_INT_CST_EXT_NUNITS): Likewise.
17078 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17079 (TREE_INT_CST_ELT): Likewise.
17080 (INT_CST_LT): Delete.
17081 (tree_int_cst_elt_check): New (two forms).
17082 (type_code_size): Update comment.
17083 (make_int_cst_stat, make_int_cst): New.
17084 (tree_to_double_int): Delete.
17085 (double_int_fits_to_tree_p): Delete.
17086 (force_fit_type_double): Delete.
17087 (build_int_cstu): Replace with out-of-line function.
17088 (build_int_cst_wide): Delete.
17089 (tree_int_cst_lt): Define inline.
17090 (tree_int_cst_le): New.
17091 (tree_int_cst_compare): Define inline.
17092 (tree_int_cst_min_precision): Take a signop rather than a bool.
17093 (wi::int_traits <const_tree>): New.
17094 (wi::int_traits <tree>): New.
17095 (wi::extended_tree): New.
17096 (wi::int_traits <wi::extended_tree>): New.
17097 (wi::to_widest): New.
17098 (wi::to_offset): New.
17099 (wi::fits_to_tree_p): New.
17100 (wi::min_value): New.
17101 (wi::max_value): New.
17102 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17103 (copy_tree_body_r): Likewise.
17104 * tree-object-size.c (compute_object_offset): Likewise.
17105 (addr_object_size): Likewise.
17106 * tree-predcom.c: Include wide-int-print.h.
17107 (struct dref_d): Change type of offset to widest_int.
17108 (dump_dref): Call wide-int printer.
17109 (aff_combination_dr_offset): Use wide-int interfaces.
17110 (determine_offset): Take a widest_int pointer rather than a
17111 double_int pointer.
17112 (split_data_refs_to_components): Use wide-int interfaces.
17113 (suitable_component_p): Likewise.
17114 (order_drefs): Likewise.
17115 (add_ref_to_chain): Likewise.
17116 (valid_initializer_p): Likewise.
17117 (determine_roots_comp): Likewise.
17118 * tree-pretty-print.c: Include wide-int-print.h.
17119 (dump_generic_node): Use wide-int interfaces.
17120 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17121 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17122 (move_fixed_address_to_symbol): Likewise.
17123 (move_hint_to_base): Likewise.
17124 (move_pointer_to_base): Likewise.
17125 (move_variant_to_index): Likewise.
17126 (most_expensive_mult_to_index): Likewise.
17127 (addr_to_parts): Likewise.
17128 (copy_ref_info): Likewise.
17129 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17130 (indirect_refs_may_alias_p): Likewise.
17131 (stmt_kills_ref_p_1): Likewise.
17132 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17133 * tree-ssa-ccp.c: Update comment at top of file. Include
17134 wide-int-print.h.
17135 (struct prop_value_d): Change type of mask to widest_int.
17136 (extend_mask): New function.
17137 (dump_lattice_value): Use wide-int interfaces.
17138 (get_default_value): Likewise.
17139 (set_constant_value): Likewise.
17140 (set_value_varying): Likewise.
17141 (valid_lattice_transition): Likewise.
17142 (set_lattice_value): Likewise.
17143 (value_to_double_int): Delete.
17144 (value_to_wide_int): New.
17145 (get_value_from_alignment): Use wide-int interfaces.
17146 (get_value_for_expr): Likewise.
17147 (do_dbg_cnt): Likewise.
17148 (ccp_finalize): Likewise.
17149 (ccp_lattice_meet): Likewise.
17150 (bit_value_unop_1): Use widest_ints rather than double_ints.
17151 (bit_value_binop_1): Likewise.
17152 (bit_value_unop): Use wide-int interfaces.
17153 (bit_value_binop): Likewise.
17154 (bit_value_assume_aligned): Likewise.
17155 (evaluate_stmt): Likewise.
17156 (ccp_fold_stmt): Likewise.
17157 (visit_cond_stmt): Likewise.
17158 (ccp_visit_stmt): Likewise.
17159 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17160 (constant_pointer_difference): Likewise.
17161 (associate_pointerplus): Likewise.
17162 (combine_conversions): Likewise.
17163 * tree-ssa-loop.h: Include wide-int.h.
17164 (struct tree_niter_desc): Change type of max to widest_int.
17165 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17166 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17167 (remove_redundant_iv_tests): Likewise.
17168 (canonicalize_loop_induction_variables): Likewise.
17169 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17170 (constant_multiple_of): Take a widest_int pointer instead of
17171 a double_int pointer.
17172 (get_computation_aff): Use wide-int interfaces.
17173 (ptr_difference_cost): Likewise.
17174 (difference_cost): Likewise.
17175 (get_loop_invariant_expr_id): Likewise.
17176 (get_computation_cost_at): Likewise.
17177 (iv_elimination_compare_lt): Likewise.
17178 (may_eliminate_iv): Likewise.
17179 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17180 instead of double_int.
17181 (max_loop_iterations): Likewise.
17182 (max_stmt_executions): Likewise.
17183 (estimated_stmt_executions): Likewise.
17184 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17185 (split_to_var_and_offset): Use wide-int interfaces.
17186 (determine_value_range): Likewise.
17187 (bound_difference_of_offsetted_base): Likewise.
17188 (bounds_add): Take a widest_int instead of a double_int.
17189 (number_of_iterations_ne_max): Use wide-int interfaces.
17190 (number_of_iterations_ne): Likewise.
17191 (number_of_iterations_lt_to_ne): Likewise.
17192 (assert_loop_rolls_lt): Likewise.
17193 (number_of_iterations_lt): Likewise.
17194 (number_of_iterations_le): Likewise.
17195 (number_of_iterations_cond): Likewise.
17196 (number_of_iterations_exit): Likewise.
17197 (finite_loop_p): Likewise.
17198 (derive_constant_upper_bound_assign): Likewise.
17199 (derive_constant_upper_bound): Return a widest_int.
17200 (derive_constant_upper_bound_ops): Likewise.
17201 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17202 (record_estimate): Take a widest_int rather than a double_int.
17203 (record_nonwrapping_iv): Use wide-int interfaces.
17204 (double_int_cmp): Delete.
17205 (wide_int_cmp): New.
17206 (bound_index): Take a widest_int rather than a double_int.
17207 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17208 (maybe_lower_iteration_bound): Likewise.
17209 (estimate_numbers_of_iterations_loop): Likewise.
17210 (estimated_loop_iterations): Take a widest_int pointer than than
17211 a double_int pointer.
17212 (estimated_loop_iterations_int): Use wide-int interfaces.
17213 (max_loop_iterations): Take a widest_int pointer than than
17214 a double_int pointer.
17215 (max_loop_iterations_int): Use wide-int interfaces.
17216 (max_stmt_executions): Take a widest_int pointer than than
17217 a double_int pointer.
17218 (estimated_stmt_executions): Likewise.
17219 (n_of_executions_at_most): Use wide-int interfaces.
17220 (scev_probably_wraps_p): Likewise.
17221 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17222 to real_to_integer.
17223 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17224 interfaces.
17225 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17226 double_ints. Adjust for trailing_wide_ints <3> representation.
17227 (set_nonzero_bits): Likewise.
17228 (get_range_info): Return wide_ints rather than double_ints.
17229 Adjust for trailing_wide_ints <3> representation.
17230 (get_nonzero_bits): Likewise.
17231 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17232 representation.
17233 * tree-ssanames.h (struct range_info_def): Replace min, max and
17234 nonzero_bits with a trailing_wide_ints <3>.
17235 (set_range_info): Use wide_int_refs rather than double_ints.
17236 (set_nonzero_bits): Likewise.
17237 (get_range_info): Return wide_ints rather than double_ints.
17238 (get_nonzero_bits): Likewise.
17239 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17240 * tree-ssa-pre.c (phi_translate_1): Likewise.
17241 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17242 (acceptable_pow_call): Likewise.
17243 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17244 interfaces.
17245 (vn_reference_fold_indirect): Likewise.
17246 (vn_reference_maybe_forwprop_address): Likewise.
17247 (valueize_refs_1): Likewise.
17248 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17249 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17250 tree_int_cst_lt and tree_int_cst_le.
17251 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17252 interfaces.
17253 (streamer_alloc_tree): Likewise.
17254 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17255 (streamer_write_tree_header): Likewise.
17256 (streamer_write_integer_cst): Likewise.
17257 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17258 (build_constructors): Likewise.
17259 (array_value_type): Likewise.
17260 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17261 (vect_check_gather): Likewise.
17262 * tree-vect-generic.c (build_replicated_const): Likewise.
17263 (expand_vector_divmod): Likewise.
17264 * tree-vect-loop.c (vect_transform_loop): Likewise.
17265 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17266 (vect_do_peeling_for_alignment): Likewise.
17267 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17268 * tree-vrp.c: Include wide-int.h.
17269 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17270 (extract_range_from_assert): Use wide-int interfaces.
17271 (vrp_int_const_binop): Likewise.
17272 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17273 double_int pointers.
17274 (ranges_from_anti_range): Use wide-int interfaces.
17275 (quad_int_cmp): Delete.
17276 (quad_int_pair_sort): Likewise.
17277 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17278 (extract_range_from_unary_expr_1): Likewise.
17279 (adjust_range_with_scev): Likewise.
17280 (masked_increment): Take and return wide_ints rather than double_ints.
17281 (register_edge_assert_for_2): Use wide-int interfaces.
17282 (check_array_ref): Likewise.
17283 (search_for_addr_array): Likewise.
17284 (maybe_set_nonzero_bits): Likewise.
17285 (union_ranges): Pass an integer of the correct type instead of
17286 using integer_one_node.
17287 (intersect_ranges): Likewise.
17288 (simplify_truth_ops_using_ranges): Likewise.
17289 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17290 (range_fits_type_p): Likewise.
17291 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17292 a bool.
17293 (simplify_conversion_using_ranges): Use wide-int interfaces.
17294 (simplify_float_conversion_using_ranges): Likewise.
17295 (vrp_finalize): Likewise.
17296 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17297 (gimple_stringops_transform): Likewise.
17298 * varasm.c (decode_addr_const): Likewise.
17299 (const_hash_1): Likewise.
17300 (const_rtx_hash_1): Likewise
17301 (output_constant): Likewise.
17302 (array_size_for_constructor): Likewise.
17303 (output_constructor_regular_field): Likewise.
17304 (output_constructor_bitfield): Likewise.
17305 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17306 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17307 GENERATOR_FILEs.
17308 * gencheck.c: Define BITS_PER_UNIT.
17309 * wide-int.cc: New.
17310 * wide-int.h: New.
17311 * wide-int-print.cc: New.
17312 * wide-int-print.h: New.
17313
17314 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17315
17316 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17317
17318 2014-05-06 Richard Biener <rguenther@suse.de>
17319
17320 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17321 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17322 (TODO_verify_all): Adjust.
17323 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17324 TODO_verify_stmts and TODO_verify_rtl_sharing.
17325 * bb-reorder.c: Likewise.
17326 * cfgexpand.c: Likewise.
17327 * cprop.c: Likewise.
17328 * cse.c: Likewise.
17329 * function.c: Likewise.
17330 * fwprop.c: Likewise.
17331 * gcse.c: Likewise.
17332 * gimple-ssa-isolate-paths.c: Likewise.
17333 * gimple-ssa-strength-reduction.c: Likewise.
17334 * ipa-split.c: Likewise.
17335 * loop-init.c: Likewise.
17336 * loop-unroll.c: Likewise.
17337 * lower-subreg.c: Likewise.
17338 * modulo-sched.c: Likewise.
17339 * postreload-gcse.c: Likewise.
17340 * predict.c: Likewise.
17341 * recog.c: Likewise.
17342 * sched-rgn.c: Likewise.
17343 * store-motion.c: Likewise.
17344 * tracer.c: Likewise.
17345 * trans-mem.c: Likewise.
17346 * tree-call-cdce.c: Likewise.
17347 * tree-cfg.c: Likewise.
17348 * tree-cfgcleanup.c: Likewise.
17349 * tree-complex.c: Likewise.
17350 * tree-eh.c: Likewise.
17351 * tree-emutls.c: Likewise.
17352 * tree-if-conv.c: Likewise.
17353 * tree-into-ssa.c: Likewise.
17354 * tree-loop-distribution.c: Likewise.
17355 * tree-object-size.c: Likewise.
17356 * tree-parloops.c: Likewise.
17357 * tree-pass.h: Likewise.
17358 * tree-sra.c: Likewise.
17359 * tree-ssa-ccp.c: Likewise.
17360 * tree-ssa-copy.c: Likewise.
17361 * tree-ssa-copyrename.c: Likewise.
17362 * tree-ssa-dce.c: Likewise.
17363 * tree-ssa-dom.c: Likewise.
17364 * tree-ssa-dse.c: Likewise.
17365 * tree-ssa-forwprop.c: Likewise.
17366 * tree-ssa-ifcombine.c: Likewise.
17367 * tree-ssa-loop-ch.c: Likewise.
17368 * tree-ssa-loop-ivcanon.c: Likewise.
17369 * tree-ssa-loop.c: Likewise.
17370 * tree-ssa-math-opts.c: Likewise.
17371 * tree-ssa-phiopt.c: Likewise.
17372 * tree-ssa-phiprop.c: Likewise.
17373 * tree-ssa-pre.c: Likewise.
17374 * tree-ssa-reassoc.c: Likewise.
17375 * tree-ssa-sink.c: Likewise.
17376 * tree-ssa-strlen.c: Likewise.
17377 * tree-ssa-tail-merge.c: Likewise.
17378 * tree-ssa-uncprop.c: Likewise.
17379 * tree-switch-conversion.c: Likewise.
17380 * tree-tailcall.c: Likewise.
17381 * tree-vect-generic.c: Likewise.
17382 * tree-vectorizer.c: Likewise.
17383 * tree-vrp.c: Likewise.
17384 * tsan.c: Likewise.
17385 * var-tracking.c: Likewise.
17386 * bt-load.c: Likewise.
17387 * cfgcleanup.c: Likewise.
17388 * combine-stack-adj.c: Likewise.
17389 * combine.c: Likewise.
17390 * compare-elim.c: Likewise.
17391 * config/epiphany/resolve-sw-modes.c: Likewise.
17392 * config/i386/i386.c: Likewise.
17393 * config/mips/mips.c: Likewise.
17394 * config/s390/s390.c: Likewise.
17395 * config/sh/sh_treg_combine.cc: Likewise.
17396 * config/sparc/sparc.c: Likewise.
17397 * dce.c: Likewise.
17398 * dse.c: Likewise.
17399 * final.c: Likewise.
17400 * ifcvt.c: Likewise.
17401 * mode-switching.c: Likewise.
17402 * passes.c: Likewise.
17403 * postreload.c: Likewise.
17404 * ree.c: Likewise.
17405 * reg-stack.c: Likewise.
17406 * regcprop.c: Likewise.
17407 * regrename.c: Likewise.
17408 * web.c: Likewise.
17409
17410 2014-05-06 Richard Biener <rguenther@suse.de>
17411
17412 PR middle-end/61070
17413 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17414 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17415
17416 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17417
17418 PR ipa/60965
17419 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17420
17421 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17422 Tom de Vries <tom@codesourcery.com>
17423
17424 * target.def (call_fusage_contains_non_callee_clobbers): New
17425 DEFHOOKPOD.
17426 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17427 Hooks to @menu.
17428 (@node Miscellaneous Register Hooks): New node.
17429 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17430 * doc/tm.texi: Regenerate.
17431
17432 2014-05-05 Marek Polacek <polacek@redhat.com>
17433
17434 PR driver/61065
17435 * opts.c (common_handle_option): Call error_at instead of warning_at.
17436
17437 2014-05-05 Richard Biener <rguenther@suse.de>
17438
17439 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17440 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17441 under the TODO_verify_il umbrella.
17442
17443 2014-05-05 Richard Biener <rguenther@suse.de>
17444
17445 * passes.c (execute_function_todo): Move TODO_verify_flow under
17446 the TODO_verify_ul umbrella.
17447
17448 2014-05-05 Richard Biener <rguenther@suse.de>
17449
17450 PR middle-end/61010
17451 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17452 X & CST away from a CST that is the mask of a mode.
17453
17454 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17455
17456 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17457 int argument to enum machine_mode.
17458 (picochip_class_max_nregs): Ditto.
17459 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17460 (picochip_class_max_nregs): Ditto.
17461
17462 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17463
17464 * target.def: Add new target hook.
17465 * doc/tm.texi: Regenerate.
17466 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17467 * targhooks.c (default_keep_leaf_when_profiled): New function.
17468
17469 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17470 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17471
17472 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17473
17474 PR tree-optimization/60363
17475 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17476 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17477 (update_destination_phis): New parameter.
17478 (create_edge_and_update_destination_phis): Ditto.
17479 (ssa_fix_duplicate_block_edges): Pass new arguments.
17480 (thread_single_edge): Ditto.
17481
17482 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17483
17484 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17485 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17486 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17487 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17488 Use RS6000_BTM_HARD_FLOAT.
17489 (BU_MISC_2): Likewise.
17490 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17491 RS6000_BTM_HARD_FLOAT.
17492 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17493 is explicitly used.
17494 (rs6000_invalid_builtin): Add hard floating builtin support.
17495 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17496 hard float builtins.
17497 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17498
17499 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17500
17501 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17502 Add missing function* argument.
17503
17504 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17505
17506 * lra-constraints.c (valid_address_p): Move earlier in file.
17507 Add a constraint argument to the address_info version.
17508 (satisfies_memory_constraint_p): New function.
17509 (satisfies_address_constraint_p): Likewise.
17510 (process_alt_operands, curr_insn_transform): Use them.
17511 (process_address): Pass the constraint to valid_address_p when
17512 checking address operands.
17513
17514 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17515
17516 * config/mips/mips.c (mips_isa_rev): New variable.
17517 (mips_set_architecture): Set it.
17518 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17519 from mips_isa_rev.
17520 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17521 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17522 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17523 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17524 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17525 conditions in terms of mips_isa_rev.
17526 (mips_isa_rev): Declare.
17527
17528 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17529
17530 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17531 (prob_unlikely, prob_likely): Make variables const.
17532
17533 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17534
17535 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17536
17537 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17538
17539 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17540
17541 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17542
17543 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17544 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17545 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17546 functions.
17547 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17548 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17549 sh_pass_in_reg_p.
17550 Replace usage of ROUND_REG with sh_round_reg.
17551 Use CEIL instead of ROUND_ADVANCE.
17552
17553 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17554
17555 PR target/61026
17556 * config/sh/sh.c: Include stdlib headers before everything else.
17557
17558 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17559
17560 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17561 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17562 (gimplify_adjust_omp_clauses): Simd region is never
17563 directly nested in combined parallel. Instead, for linear
17564 with copyin/copyout, if in combined for simd loop, make decl
17565 firstprivate/lastprivate on OMP_FOR.
17566 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17567 expand_omp_for_static_chunk): When setting endvar, also set
17568 fd->loop.v to the same value.
17569
17570 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17571
17572 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17573
17574 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17575
17576 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17577 expression.
17578
17579 2014-05-02 Marek Polacek <polacek@redhat.com>
17580
17581 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17582
17583 2014-05-02 Kito Cheng <kito@0xlab.org>
17584
17585 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17586 to a C expression marco.
17587 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17588 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17589 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17590 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17591 HONOR_REG_ALLOC_ORDER.
17592 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17593
17594 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17595
17596 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17597
17598 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17599
17600 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17601
17602 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17603
17604 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17605 (convert_scalar_cond_reduction): Likewise.
17606 (predicate_scalar_phi): Add recognition and transformation
17607 of simple conditioanl reduction to be vectorizable.
17608
17609 2014-05-01 Marek Polacek <polacek@redhat.com>
17610
17611 PR c/43245
17612 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17613
17614 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17615
17616 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17617 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17618 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17619 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17620 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17621 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17622 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17623 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17624
17625 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17626
17627 * config/arc/arc.opt (mlra): Move comment above option name
17628 to avoid mis-parsing as language options.
17629
17630 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17631
17632 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17633 * config/sol2.h: ... here.
17634 * config/sol2-10.h: Remove.
17635
17636 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17637 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17638 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17639 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17640 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17641 * config/sol2.h: ... here.
17642 (SECTION_NAME_FORMAT): Don't redefine.
17643 (STARTFILE_ARCH32_SPEC): Rename to ...
17644 (STARTFILE_ARCH_SPEC): ... this.
17645 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17646 * config/sparc/sol2.h: ... here.
17647 (SECTION_NAME_FORMAT): Don't undef.
17648 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17649 (SUBTARGET_EXTRA_SPECS): Remove.
17650 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17651
17652 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17653 (MD_STARTFILE_PREFIX): Remove.
17654 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17655 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17656 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17657 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17658 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17659 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17660 * config/i386/sol2.h: ... here.
17661 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17662 * config/i386/sol2-bi.h: Remove.
17663 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17664 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17665
17666 * config/i386/t-sol2-64: Rename to ...
17667 * config/i386/t-sol2: ... this.
17668 * config/sparc/t-sol2-64: Rename to ...
17669 * config/sparc/t-sol2: ... this.
17670
17671 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17672 sol2_tm_file_head, sol2_tm_file_tail.
17673 Include ${cpu_type}/sol2.h before sol2.h.
17674 Remove sol2-10.h.
17675 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17676 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17677 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17678 Reflect i386/t-sol2-64 renaming.
17679 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17680 Reflect sparc/t-sol2-64 renaming.
17681
17682 2014-04-30 Richard Biener <rguenther@suse.de>
17683
17684 * passes.c (execute_function_todo): Move TODO_verify_stmts
17685 and TODO_verify_ssa under the TODO_verify_il umbrella.
17686 * tree-ssa.h (verify_ssa): Adjust prototype.
17687 * tree-ssa.c (verify_ssa): Add parameter to tell whether
17688 we should verify SSA operands.
17689 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17690 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17691 whether we should verify whether not throwing stmts have EH info.
17692 * graphite-scop-detection.c (create_sese_edges): Adjust.
17693 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17694 * tree-eh.c (lower_try_finally_switch): Do not add the
17695 default case label twice.
17696
17697 2014-04-30 Marek Polacek <polacek@redhat.com>
17698
17699 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17700 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17701 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17702 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17703
17704 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
17705
17706 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17707 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17708 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17709 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17710 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17711 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17712 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17713 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17714
17715 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17716
17717 * tree-cfg.c (dump_function_to_file): Dump the return type of
17718 functions, in a line to itself before the function body, mimicking
17719 the layout of a C function.
17720
17721 2014-04-29 Jakub Jelinek <jakub@redhat.com>
17722
17723 PR tree-optimization/60971
17724 * tree-tailcall.c (process_assignment): Reject conversions which
17725 reduce precision.
17726
17727 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
17728
17729 * calls.c (initialize_argument_information): Always treat
17730 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17731 (expand_call): Likewise.
17732 (emit_library_call_calue_1): Likewise.
17733 * expr.c (PUSH_ARGS_REVERSED): Do not define.
17734 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17735 code accordingly.
17736
17737 2014-04-29 Nick Clifton <nickc@redhat.com>
17738
17739 * config/msp430/msp430.md (umulsidi): Fix typo.
17740 (mulhisi3): Enable even inside interrupt handlers.
17741 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17742 bigger return address pushed in large mode.
17743
17744 2014-04-29 Nick Clifton <nickc@redhat.com>
17745
17746 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17747 (arc_init_reg_tables): Use a machine_mode enum to iterate over
17748 available modes.
17749 * config/m32r/m32r.c (init_reg_tables): Likewise.
17750 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17751 enum to hold the modes.
17752
17753 2014-04-29 Richard Biener <rguenther@suse.de>
17754
17755 * dominance.c (free_dominance_info): Add overload with
17756 function parameter.
17757 (dom_info_state): Likewise.
17758 (dom_info_available_p): Likewise.
17759 * basic-block.h (free_dominance_info, dom_info_state,
17760 dom_info_available_p): Declare overloads.
17761 * passes.c (execute_function_todo): Verify that verifiers
17762 don't change dominator info state. Drop dominator info
17763 for IPA pass invocations.
17764 * cgraph.c (release_function_body): Restore asserts that
17765 dominator information is released.
17766
17767 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
17768
17769 * doc/invoke.texi: Fix typo.
17770 * tree-vrp.c: Fix typos.
17771 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
17772
17773 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17774
17775 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
17776
17777 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17778
17779 * config/aarch64/aarch64-builtins.c
17780 (aarch64_types_storestruct_lane_qualifiers): New.
17781 (TYPES_STORESTRUCT_LANE): Likewise.
17782 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
17783 (st3_lane): Likewise.
17784 (st4_lane): Likewise.
17785 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
17786 (vec_store_lanesci_lane<mode>): Likewise.
17787 (vec_store_lanesxi_lane<mode>): Likewise.
17788 (aarch64_st2_lane<VQ:mode>): Likewise.
17789 (aarch64_st3_lane<VQ:mode>): Likewise.
17790 (aarch64_st4_lane<VQ:mode>): Likewise.
17791 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
17792 * config/aarch64/arm_neon.h
17793 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
17794 use new macro arguments.
17795 (__ST3_LANE_FUNC): Likewise.
17796 (__ST4_LANE_FUNC): Likewise.
17797 * config/aarch64/iterators.md (V_TWO_ELEM): New.
17798 (V_THREE_ELEM): Likewise.
17799 (V_FOUR_ELEM): Likewise.
17800
17801 2014-04-28 David Malcolm <dmalcolm@redhat.com>
17802
17803 * doc/gimple.texi: Replace the description of the now-defunct
17804 union gimple_statement_d with a diagram showing the
17805 gimple_statement_base class hierarchy and its relationships to
17806 the GSS_ and GIMPLE_ enums.
17807
17808 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17809
17810 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
17811 * config/aarch64/aarch64.c
17812 (aarch64_cannot_change_mode_class): Weaken conditions.
17813 (aarch64_modes_tieable_p): New.
17814 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
17815
17816 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
17817
17818 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17819 (loadsync_<mode>): Change mode.
17820 (load_quadpti, store_quadpti): New.
17821 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17822 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17823
17824 2014-04-28 Martin Jambor <mjambor@suse.cz>
17825
17826 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
17827 same alias type as the original statement.
17828 (subreplacement_assignment_data): New type.
17829 (handle_unscalarized_data_in_subtree): New type of parameter,
17830 generate new memory accesses with same alias type as the original
17831 statement.
17832 (load_assign_lhs_subreplacements): Likewise.
17833 (sra_modify_constructor_assign): Generate new memory accesses with
17834 same alias type as the original statement.
17835
17836 2014-04-28 Richard Biener <rguenther@suse.de>
17837
17838 * tree-pass.h (TODO_verify_il): Define.
17839 (TODO_verify_all): Complete properly.
17840 * passes.c (execute_function_todo): Move existing loop-closed
17841 SSA verification under TODO_verify_il.
17842 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
17843 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
17844 Fix tree sharing issue.
17845
17846 2014-04-28 Richard Biener <rguenther@suse.de>
17847
17848 PR middle-end/60092
17849 * builtins.def (DEF_C11_BUILTIN): Add.
17850 (BUILT_IN_ALIGNED_ALLOC): Likewise.
17851 * coretypes.h (enum function_class): Add function_c11_misc.
17852 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17853 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
17854 (call_may_clobber_ref_p_1): Likewise.
17855 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17856 (mark_all_reaching_defs_necessary_1): Likewise.
17857 (propagate_necessity): Likewise.
17858 (eliminate_unnecessary_stmts): Likewise.
17859 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
17860
17861 2014-04-28 Richard Biener <rguenther@suse.de>
17862
17863 * tree-vrp.c (vrp_var_may_overflow): Remove.
17864 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
17865 with overflow immediately bump to one before that value and
17866 let iteration figure out overflow status.
17867
17868 2014-04-28 Richard Biener <rguenther@suse.de>
17869
17870 * configure.ac: Do valgrind header checks unconditionally.
17871 Add --enable-valgrind-annotations.
17872 * system.h: Guard valgrind header inclusion with
17873 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
17874 * alloc-pool.c (pool_alloc, pool_free): Use
17875 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
17876 to guard possibly dead code.
17877 * config.in: Regenerated.
17878 * configure: Likewise.
17879
17880 2014-04-28 Jeff Law <law@redhat.com>
17881
17882 PR tree-optimization/60902
17883 * tree-ssa-threadedge.c
17884 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
17885 over real defs when invalidating outputs from statements that do not
17886 produce useful outputs for threading.
17887
17888 2014-04-28 Richard Biener <rguenther@suse.de>
17889
17890 PR tree-optimization/60979
17891 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
17892 SCOPs that end in a block with a successor with abnormal
17893 predecessors.
17894
17895 2014-04-28 Richard Biener <rguenther@suse.de>
17896
17897 * tree-pass.h (execute_pass_list): Adjust prototype.
17898 * passes.c (pass_manager::execute_early_local_passes): Adjust.
17899 (do_per_function): Change callback signature, push all actual
17900 work to the callbals.
17901 (do_per_function_toporder): Likewise.
17902 (execute_function_dump): Adjust.
17903 (execute_function_todo): Likewise.
17904 (clear_last_verified): Likewise.
17905 (verify_curr_properties): Likewise.
17906 (update_properties_after_pass): Likewise.
17907 (execute_pass_list_1): Split out from ...
17908 (execute_pass_list): ... here. Adjust.
17909 (execute_ipa_pass_list): Likewise.
17910 * cgraphunit.c (cgraph_add_new_function): Adjust.
17911 (analyze_function): Likewise.
17912 (expand_function): Likewise.
17913 * cgraph.c (release_function_body): Free dominance info
17914 here instead of asserting it was magically freed elsewhere.
17915
17916 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
17917
17918 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
17919 * configure: Regenerate.
17920 * config/sparc/sparc.opt (muser-mode): New option.
17921 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
17922 for LEON3.
17923 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
17924 * doc/invoke.texi (SPARC options): Document -muser-mode.
17925
17926 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
17927
17928 * cselib.c (find_slot_memmode): Delete.
17929 (cselib_hasher): Change compare_type to a struct.
17930 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
17931 constants.
17932 (preserve_constants_and_equivs): Adjust for new compare_type.
17933 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
17934 (wrap_constant): Delete.
17935 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
17936
17937 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
17938
17939 * doc/install.texi (Building with profile feedback): Remove
17940 outdated sentence.
17941
17942 2014-04-26 Tom de Vries <tom@codesourcery.com>
17943
17944 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
17945 array accesses.
17946
17947 2014-04-25 Cary Coutant <ccoutant@google.com>
17948
17949 PR debug/60929
17950 * dwarf2out.c (should_move_die_to_comdat): A type definition
17951 can contain a subprogram definition, but don't move it to a
17952 comdat unit.
17953 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
17954 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
17955 from original DIE.
17956 (clone_tree_hash): Rename to...
17957 (clone_tree_partial): ...this; change callers. Copy
17958 DW_TAG_subprogram DIEs as declarations.
17959 (copy_decls_walk): Don't copy children of a declaration into a
17960 type unit.
17961
17962 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
17963
17964 PR target/60969
17965 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
17966 alternative 12.
17967
17968 2014-04-25 Jiong Wang <jiong.wang@arm.com>
17969
17970 * config/arm/predicates.md (call_insn_operand): Add long_call check.
17971 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
17972 reg for long_call.
17973 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
17974 restriction.
17975
17976 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17977
17978 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
17979
17980 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17981
17982 PR tree-optimization/60930
17983 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
17984 creating a multiply candidate by folding two constant
17985 multiplicands when the result overflows.
17986
17987 2014-04-25 Jakub Jelinek <jakub@redhat.com>
17988
17989 PR tree-optimization/60960
17990 * tree-vect-generic.c (expand_vector_operation): Only call
17991 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
17992
17993 2014-04-25 Tom de Vries <tom@codesourcery.com>
17994
17995 * expr.c (clobber_reg_mode): New function.
17996 * expr.h (clobber_reg): New function.
17997
17998 2014-04-25 Tom de Vries <tom@codesourcery.com>
17999
18000 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18001 clobbers.
18002
18003 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18004 Tom de Vries <tom@codesourcery.com>
18005
18006 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18007 handle.
18008 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18009 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18010 new argument to find_all_hard_reg_sets call.
18011
18012 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18013
18014 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18015 Use HOST_WIDE_INT_C for mask literal.
18016 (aarch_rev16_shleft_mask_imm_p): Likewise.
18017
18018 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18019
18020 PR target/60941
18021 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18022
18023 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18024
18025 PR preprocessor/56540
18026 * config/i386/i386-c.c (ix86_target_macros): Define
18027 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18028
18029 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18030
18031 * configure.ac (tga_func): Remove.
18032 (LIB_TLS_SPEC): Remove.
18033 * configure: Regenerate.
18034 * config.in: Regenerate.
18035 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18036
18037 2014-04-25 Richard Biener <rguenther@suse.de>
18038
18039 PR ipa/60912
18040 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18041 call stmt use/clobber sets during stmt walk instead of
18042 walking the possibly incomplete set of caller edges.
18043
18044 2014-04-25 Richard Biener <rguenther@suse.de>
18045
18046 PR ipa/60911
18047 * passes.c (apply_ipa_transforms): Inline into only caller ...
18048 (execute_one_pass): ... here. Properly bring in function
18049 bodies for nodes we want to apply IPA transforms to.
18050
18051 2014-04-24 Cong Hou <congh@google.com>
18052
18053 PR tree-optimization/60896
18054 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18055 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18056 (vect_mark_pattern_stmts): Set the def type of all statements in
18057 PATTERN_DEF_SEQ as vect_internal_def.
18058
18059 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18060
18061 * doc/extend.texi (PowerPC Built-in Functions): Document new
18062 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18063 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18064
18065 * config/rs6000/predicates.md (const_0_to_3_operand): New
18066 predicate to match 0..3 integer constants.
18067
18068 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18069 to support adding miscellaneous builtin functions.
18070 (BU_DFP_MISC_2): Likewise.
18071 (BU_P7_MISC_1): Likewise.
18072 (BU_P7_MISC_2): Likewise.
18073 (BU_P8V_MISC_3): Likewise.
18074 (BU_MISC_1): Likewise.
18075 (BU_MISC_2): Likewise.
18076 (DIVWE): Add extended divide builtin functions.
18077 (DIVWEO): Likewise.
18078 (DIVWEU): Likewise.
18079 (DIVWEUO): Likewise.
18080 (DIVDE): Likewise.
18081 (DIVDEO): Likewise.
18082 (DIVDEU): Likewise.
18083 (DIVDEUO): Likewise.
18084 (DXEX): Add decimal floating-point builtin functions.
18085 (DXEXQ): Likewise.
18086 (DDEDPD): Likewise.
18087 (DDEDPDQ): Likewise.
18088 (DENBCD): Likewise.
18089 (DENBCDQ): Likewise.
18090 (DIEX): Likewise.
18091 (DIEXQ): Likewise.
18092 (DSCLI): Likewise.
18093 (DSCLIQ): Likewise.
18094 (DSCRI): Likewise.
18095 (DSCRIQ): Likewise.
18096 (CDTBCD): Add new BCD builtin functions.
18097 (CBCDTD): Likewise.
18098 (ADDG6S): Likewise.
18099 (BCDADD): Likewise.
18100 (BCDADD_LT): Likewise.
18101 (BCDADD_EQ): Likewise.
18102 (BCDADD_GT): Likewise.
18103 (BCDADD_OV): Likewise.
18104 (BCDSUB): Likewise.
18105 (BCDSUB_LT): Likewise.
18106 (BCDSUB_EQ): Likewise.
18107 (BCDSUB_GT): Likewise.
18108 (BCDSUB_OV): Likewise.
18109 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18110 (UNPACK_TD): Likewise.
18111 (PACK_TF): Likewise.
18112 (UNPACK_TF): Likewise.
18113 (UNPACK_TF_0): Likewise.
18114 (UNPACK_TF_1): Likewise.
18115 (PACK_V1TI): Likewise.
18116 (UNPACK_V1TI): Likewise.
18117
18118 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18119 support for decimal floating point builtin functions.
18120 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18121 functions that take constant arguments.
18122 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18123 (rs6000_init_builtins): Setup long double, _Decimal64, and
18124 _Decimal128 types for new builtin functions.
18125 (builtin_function_type): Set the unsigned flags appropriately for
18126 the new builtin functions.
18127 (rs6000_opt_masks): Add support for decimal floating point builtin
18128 functions.
18129
18130 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18131 floating point builtin functions.
18132 (RS6000_BTM_COMMON): Likewise.
18133 (RS6000_BTI_long_double): Likewise.
18134 (RS6000_BTI_dfloat64): Likewise.
18135 (RS6000_BTI_dfloat128): Likewise.
18136 (long_double_type_internal_node): Likewise.
18137 (dfloat64_type_internal_node): Likewise.
18138 (dfloat128_type_internal_node): Likewise.
18139
18140 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18141 2.07 bcd arithmetic instructions.
18142 (UNSPEC_BCDSUB): Likewise.
18143 (UNSPEC_BCD_OVERFLOW): Likewise.
18144 (UNSPEC_BCD_ADD_SUB): Likewise.
18145 (bcd_add_sub): Likewise.
18146 (BCD_TEST): Likewise.
18147 (bcd<bcd_add_sub>): Likewise.
18148 (bcd<bcd_add_sub>_test): Likewise.
18149 (bcd<bcd_add_sub>_test2): Likewise.
18150 (bcd<bcd_add_sub>_<code>): Likewise.
18151 (peephole2 for combined bcd ops): Likewise.
18152
18153 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18154 decimal floating point builtin functions.
18155 (UNSPEC_DENBCD): Likewise.
18156 (UNSPEC_DXEX): Likewise.
18157 (UNSPEC_DIEX): Likewise.
18158 (UNSPEC_DSCLI): Likewise.
18159 (UNSPEC_DSCRI): Likewise.
18160 (D64_D128): Likewise.
18161 (dfp_suffix): Likewise.
18162 (dfp_ddedpd_<mode>): Likewise.
18163 (dfp_denbcd_<mode>): Likewise.
18164 (dfp_dxex_<mode>): Likewise.
18165 (dfp_diex_<mode>): Likewise.
18166 (dfp_dscli_<mode>): Likewise.
18167 (dfp_dscri_<mode>): Likewise.
18168
18169 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18170 builtin functions.
18171 (UNSPEC_CDTBCD): Likewise.
18172 (UNSPEC_CBCDTD): Likewise.
18173 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18174 (UNSPEC_DIVEO): Likewise.
18175 (UNSPEC_DIVEU): Likewise.
18176 (UNSPEC_DIVEUO): Likewise.
18177 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18178 pack/unpack 128-bit types.
18179 (UNSPEC_PACK_128BIT): Likewise.
18180 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18181 (udiv<mode>3): Use idiv_ldiv mode attribute.
18182 (div<mode>3): Likewise.
18183 (addg6s): Add new BCD builtin functions.
18184 (cdtbcd): Likewise.
18185 (cbcdtd): Likewise.
18186 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18187 (div_extend): Likewise.
18188 (div<div_extend>_<mode>"): Likewise.
18189 (FP128_64): Add support for new builtin functions to pack/unpack
18190 128-bit types.
18191 (unpack<mode>): Likewise.
18192 (unpacktf_0): Likewise.
18193 (unpacktf_1): Likewise.
18194 (unpack<mode>_dm): Likewise.
18195 (unpack<mode>_nodm): Likewise.
18196 (pack<mode>): Likewise.
18197 (unpackv1ti): Likewise.
18198 (packv1ti): Likewise.
18199
18200 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18201
18202 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18203 is disabled.
18204
18205 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18206
18207 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18208 * gimplify.c (omp_is_private): Change last argument's type to int.
18209 Only diagnose lastprivate if the simd argument is 1, only diagnose
18210 linear if the simd argument is 2.
18211 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18212 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18213 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18214 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18215 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18216 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18217 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18218 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18219 * tree-nested.c (convert_nonlocal_omp_clauses,
18220 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18221
18222 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18223
18224 PR target/60822
18225 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18226 operand 1.
18227
18228 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18229
18230 * flag-types.h (enum ivar_visibility): Add.
18231
18232 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18233
18234 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18235 function * argument.
18236
18237 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18238
18239 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18240
18241 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18242 Tom de Vries <tom@codesourcery.com>
18243
18244 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18245 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18246 reg-note.
18247 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18248 * emit-rtl.c (try_split): Same.
18249
18250 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18251 Tom de Vries <tom@codesourcery.com>
18252
18253 * common.opt (fuse-caller-save): New option.
18254
18255 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18256
18257 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18258 elements for big-endian.
18259
18260 2014-04-24 Richard Biener <rguenther@suse.de>
18261
18262 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18263 during TER and instead use the sepops interface for expanding
18264 non-GIMPLE_SINGLE_RHS.
18265
18266 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18267
18268 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18269 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18270
18271 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18272
18273 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18274 assembler 64-bit option.
18275 * configure: Regenerate.
18276
18277 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18278
18279 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18280 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18281 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18282 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18283 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18284
18285 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18286
18287 * config/aarch64/aarch64-builtins.c
18288 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18289 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18290 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18291 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18292 builtins.
18293 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18294 (Vrevsuff): New mode attribute.
18295
18296 2014-04-24 Terry Guo <terry.guo@arm.com>
18297
18298 * config/arm/arm.h (machine_function): Define variable
18299 after_arm_reorg here.
18300 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18301 (arm_split_constant): Update the way to access variable
18302 after_arm_reorg.
18303 (arm_reorg): Ditto.
18304 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18305
18306 2014-04-23 Tom de Vries <tom@codesourcery.com>
18307
18308 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18309
18310 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18311
18312 * is-a.h: Update comments to reflect the following changes to the
18313 "pointerness" of the API, making the template parameter match the
18314 return type, allowing use of is-a.h with typedefs of pointers.
18315 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18316 that the return type matches the parameter to the is_a_helper.
18317 (as_a): Likewise.
18318 (dyn_cast): Likewise.
18319
18320 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18321 pointer from the is-a.h API.
18322
18323 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18324 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18325 is-a.h API.
18326 (is_a_helper <varpool_node>::test): Likewise, convert to...
18327 (is_a_helper <varpool_node *>::test): ...this.
18328
18329 (varpool_first_variable): Update for removal of implicit pointer
18330 from the is-a.h API.
18331 (varpool_next_variable): Likewise.
18332 (varpool_first_static_initializer): Likewise.
18333 (varpool_next_static_initializer): Likewise.
18334 (varpool_first_defined_variable): Likewise.
18335 (varpool_next_defined_variable): Likewise.
18336 (cgraph_first_defined_function): Likewise.
18337 (cgraph_next_defined_function): Likewise.
18338 (cgraph_first_function): Likewise.
18339 (cgraph_next_function): Likewise.
18340 (cgraph_first_function_with_gimple_body): Likewise.
18341 (cgraph_next_function_with_gimple_body): Likewise.
18342 (cgraph_alias_target): Likewise.
18343 (varpool_alias_target): Likewise.
18344 (cgraph_function_or_thunk_node): Likewise.
18345 (varpool_variable_node): Likewise.
18346 (symtab_real_symbol_p): Likewise.
18347 * cgraphunit.c (referred_to_p): Likewise.
18348 (analyze_functions): Likewise.
18349 (handle_alias_pairs): Likewise.
18350 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18351 * gimple-ssa.h (gimple_vuse_op): Likewise.
18352 (gimple_vdef_op): Likewise.
18353 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18354 * gimple.c (gimple_build_asm_1): Likewise.
18355 (gimple_build_try): Likewise.
18356 (gimple_build_resx): Likewise.
18357 (gimple_build_eh_dispatch): Likewise.
18358 (gimple_build_omp_for): Likewise.
18359 (gimple_omp_for_set_clauses): Likewise.
18360
18361 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18362 (is_a_helper <gimple_statement_asm *>::test): ...this.
18363 (is_a_helper <gimple_statement_bind>::test): Convert to...
18364 (is_a_helper <gimple_statement_bind *>::test): ...this.
18365 (is_a_helper <gimple_statement_call>::test): Convert to...
18366 (is_a_helper <gimple_statement_call *>::test): ...this.
18367 (is_a_helper <gimple_statement_catch>::test): Convert to...
18368 (is_a_helper <gimple_statement_catch *>::test): ...this.
18369 (is_a_helper <gimple_statement_resx>::test): Convert to...
18370 (is_a_helper <gimple_statement_resx *>::test): ...this.
18371 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18372 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18373 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18374 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18375 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18376 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18377 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18378 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18379 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18380 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18381 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18382 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18383 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18384 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18385 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18386 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18387 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18388 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18389 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18390 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18391 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18392 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18393 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18394 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18395 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18396 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18397 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18398 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18399 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18400 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18401 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18402 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18403 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18404 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18405 (is_a_helper <gimple_statement_phi>::test): Convert to...
18406 (is_a_helper <gimple_statement_phi *>::test): ...this.
18407 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18408 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18409 (is_a_helper <gimple_statement_try>::test): Convert to...
18410 (is_a_helper <gimple_statement_try *>::test): ...this.
18411 (is_a_helper <gimple_statement_wce>::test): Convert to...
18412 (is_a_helper <gimple_statement_wce *>::test): ...this.
18413 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18414 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18415 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18416 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18417 (is_a_helper <const gimple_statement_call>::test): Convert to...
18418 (is_a_helper <const gimple_statement_call *>::test): ...this.
18419 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18420 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18421 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18422 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18423 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18424 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18425 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18426 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18427 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18428 Convert to...
18429 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18430 ...this.
18431 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18432 Convert to...
18433 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18434 ...this.
18435 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18436 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18437 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18438 to...
18439 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18440 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18441 to...
18442 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18443 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18444 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18445 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18446 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18447 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18448 to...
18449 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18450 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18451 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18452 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18453 to...
18454 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18455 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18456 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18457 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18458 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18459 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18460 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18461 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18462 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18463 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18464 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18465 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18466 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18467 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18468 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18469 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18470 to...
18471 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18472 ...this.
18473 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18474 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18475
18476 (gimple_use_ops): Update for removal of implicit pointer from the
18477 is-a.h API.
18478 (gimple_set_use_ops): Likewise.
18479 (gimple_vuse): Likewise.
18480 (gimple_vdef): Likewise.
18481 (gimple_vuse_ptr): Likewise.
18482 (gimple_vdef_ptr): Likewise.
18483 (gimple_set_vuse): Likewise.
18484 (gimple_set_vdef): Likewise.
18485 (gimple_omp_return_set_lhs): Likewise.
18486 (gimple_omp_return_lhs): Likewise.
18487 (gimple_omp_return_lhs_ptr): Likewise.
18488 (gimple_call_fntype): Likewise.
18489 (gimple_call_set_fntype): Likewise.
18490 (gimple_call_set_internal_fn): Likewise.
18491 (gimple_call_use_set): Likewise.
18492 (gimple_call_clobber_set): Likewise.
18493 (gimple_bind_vars): Likewise.
18494 (gimple_bind_set_vars): Likewise.
18495 (gimple_bind_body_ptr): Likewise.
18496 (gimple_bind_set_body): Likewise.
18497 (gimple_bind_add_stmt): Likewise.
18498 (gimple_bind_block): Likewise.
18499 (gimple_bind_set_block): Likewise.
18500 (gimple_asm_ninputs): Likewise.
18501 (gimple_asm_noutputs): Likewise.
18502 (gimple_asm_nclobbers): Likewise.
18503 (gimple_asm_nlabels): Likewise.
18504 (gimple_asm_input_op): Likewise.
18505 (gimple_asm_input_op_ptr): Likewise.
18506 (gimple_asm_output_op): Likewise.
18507 (gimple_asm_output_op_ptr): Likewise.
18508 (gimple_asm_set_output_op): Likewise.
18509 (gimple_asm_clobber_op): Likewise.
18510 (gimple_asm_set_clobber_op): Likewise.
18511 (gimple_asm_label_op): Likewise.
18512 (gimple_asm_set_label_op): Likewise.
18513 (gimple_asm_string): Likewise.
18514 (gimple_catch_types): Likewise.
18515 (gimple_catch_types_ptr): Likewise.
18516 (gimple_catch_handler_ptr): Likewise.
18517 (gimple_catch_set_types): Likewise.
18518 (gimple_catch_set_handler): Likewise.
18519 (gimple_eh_filter_types): Likewise.
18520 (gimple_eh_filter_types_ptr): Likewise.
18521 (gimple_eh_filter_failure_ptr): Likewise.
18522 (gimple_eh_filter_set_types): Likewise.
18523 (gimple_eh_filter_set_failure): Likewise.
18524 (gimple_eh_must_not_throw_fndecl): Likewise.
18525 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18526 (gimple_eh_else_n_body_ptr): Likewise.
18527 (gimple_eh_else_e_body_ptr): Likewise.
18528 (gimple_eh_else_set_n_body): Likewise.
18529 (gimple_eh_else_set_e_body): Likewise.
18530 (gimple_try_eval_ptr): Likewise.
18531 (gimple_try_cleanup_ptr): Likewise.
18532 (gimple_try_set_eval): Likewise.
18533 (gimple_try_set_cleanup): Likewise.
18534 (gimple_wce_cleanup_ptr): Likewise.
18535 (gimple_wce_set_cleanup): Likewise.
18536 (gimple_phi_capacity): Likewise.
18537 (gimple_phi_num_args): Likewise.
18538 (gimple_phi_result): Likewise.
18539 (gimple_phi_result_ptr): Likewise.
18540 (gimple_phi_set_result): Likewise.
18541 (gimple_phi_arg): Likewise.
18542 (gimple_phi_set_arg): Likewise.
18543 (gimple_resx_region): Likewise.
18544 (gimple_resx_set_region): Likewise.
18545 (gimple_eh_dispatch_region): Likewise.
18546 (gimple_eh_dispatch_set_region): Likewise.
18547 (gimple_omp_critical_name): Likewise.
18548 (gimple_omp_critical_name_ptr): Likewise.
18549 (gimple_omp_critical_set_name): Likewise.
18550 (gimple_omp_for_clauses): Likewise.
18551 (gimple_omp_for_clauses_ptr): Likewise.
18552 (gimple_omp_for_set_clauses): Likewise.
18553 (gimple_omp_for_collapse): Likewise.
18554 (gimple_omp_for_index): Likewise.
18555 (gimple_omp_for_index_ptr): Likewise.
18556 (gimple_omp_for_set_index): Likewise.
18557 (gimple_omp_for_initial): Likewise.
18558 (gimple_omp_for_initial_ptr): Likewise.
18559 (gimple_omp_for_set_initial): Likewise.
18560 (gimple_omp_for_final): Likewise.
18561 (gimple_omp_for_final_ptr): Likewise.
18562 (gimple_omp_for_set_final): Likewise.
18563 (gimple_omp_for_incr): Likewise.
18564 (gimple_omp_for_incr_ptr): Likewise.
18565 (gimple_omp_for_set_incr): Likewise.
18566 (gimple_omp_for_pre_body_ptr): Likewise.
18567 (gimple_omp_for_set_pre_body): Likewise.
18568 (gimple_omp_parallel_clauses): Likewise.
18569 (gimple_omp_parallel_clauses_ptr): Likewise.
18570 (gimple_omp_parallel_set_clauses): Likewise.
18571 (gimple_omp_parallel_child_fn): Likewise.
18572 (gimple_omp_parallel_child_fn_ptr): Likewise.
18573 (gimple_omp_parallel_set_child_fn): Likewise.
18574 (gimple_omp_parallel_data_arg): Likewise.
18575 (gimple_omp_parallel_data_arg_ptr): Likewise.
18576 (gimple_omp_parallel_set_data_arg): Likewise.
18577 (gimple_omp_task_clauses): Likewise.
18578 (gimple_omp_task_clauses_ptr): Likewise.
18579 (gimple_omp_task_set_clauses): Likewise.
18580 (gimple_omp_task_child_fn): Likewise.
18581 (gimple_omp_task_child_fn_ptr): Likewise.
18582 (gimple_omp_task_set_child_fn): Likewise.
18583 (gimple_omp_task_data_arg): Likewise.
18584 (gimple_omp_task_data_arg_ptr): Likewise.
18585 (gimple_omp_task_set_data_arg): Likewise.
18586 (gimple_omp_taskreg_clauses): Likewise.
18587 (gimple_omp_taskreg_clauses_ptr): Likewise.
18588 (gimple_omp_taskreg_set_clauses): Likewise.
18589 (gimple_omp_taskreg_child_fn): Likewise.
18590 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18591 (gimple_omp_taskreg_set_child_fn): Likewise.
18592 (gimple_omp_taskreg_data_arg): Likewise.
18593 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18594 (gimple_omp_taskreg_set_data_arg): Likewise.
18595 (gimple_omp_task_copy_fn): Likewise.
18596 (gimple_omp_task_copy_fn_ptr): Likewise.
18597 (gimple_omp_task_set_copy_fn): Likewise.
18598 (gimple_omp_task_arg_size): Likewise.
18599 (gimple_omp_task_arg_size_ptr): Likewise.
18600 (gimple_omp_task_set_arg_size): Likewise.
18601 (gimple_omp_task_arg_align): Likewise.
18602 (gimple_omp_task_arg_align_ptr): Likewise.
18603 (gimple_omp_task_set_arg_align): Likewise.
18604 (gimple_omp_single_clauses): Likewise.
18605 (gimple_omp_single_clauses_ptr): Likewise.
18606 (gimple_omp_single_set_clauses): Likewise.
18607 (gimple_omp_target_clauses): Likewise.
18608 (gimple_omp_target_clauses_ptr): Likewise.
18609 (gimple_omp_target_set_clauses): Likewise.
18610 (gimple_omp_target_child_fn): Likewise.
18611 (gimple_omp_target_child_fn_ptr): Likewise.
18612 (gimple_omp_target_set_child_fn): Likewise.
18613 (gimple_omp_target_data_arg): Likewise.
18614 (gimple_omp_target_data_arg_ptr): Likewise.
18615 (gimple_omp_target_set_data_arg): Likewise.
18616 (gimple_omp_teams_clauses): Likewise.
18617 (gimple_omp_teams_clauses_ptr): Likewise.
18618 (gimple_omp_teams_set_clauses): Likewise.
18619 (gimple_omp_sections_clauses): Likewise.
18620 (gimple_omp_sections_clauses_ptr): Likewise.
18621 (gimple_omp_sections_set_clauses): Likewise.
18622 (gimple_omp_sections_control): Likewise.
18623 (gimple_omp_sections_control_ptr): Likewise.
18624 (gimple_omp_sections_set_control): Likewise.
18625 (gimple_omp_for_set_cond): Likewise.
18626 (gimple_omp_for_cond): Likewise.
18627 (gimple_omp_atomic_store_set_val): Likewise.
18628 (gimple_omp_atomic_store_val): Likewise.
18629 (gimple_omp_atomic_store_val_ptr): Likewise.
18630 (gimple_omp_atomic_load_set_lhs): Likewise.
18631 (gimple_omp_atomic_load_lhs): Likewise.
18632 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18633 (gimple_omp_atomic_load_set_rhs): Likewise.
18634 (gimple_omp_atomic_load_rhs): Likewise.
18635 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18636 (gimple_omp_continue_control_def): Likewise.
18637 (gimple_omp_continue_control_def_ptr): Likewise.
18638 (gimple_omp_continue_set_control_def): Likewise.
18639 (gimple_omp_continue_control_use): Likewise.
18640 (gimple_omp_continue_control_use_ptr): Likewise.
18641 (gimple_omp_continue_set_control_use): Likewise.
18642 (gimple_transaction_body_ptr): Likewise.
18643 (gimple_transaction_label): Likewise.
18644 (gimple_transaction_label_ptr): Likewise.
18645 (gimple_transaction_set_body): Likewise.
18646 (gimple_transaction_set_label): Likewise.
18647
18648 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18649 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18650 * ipa-ref.c (ipa_record_reference): Likewise.
18651 * ipa-reference.c (analyze_function): Likewise.
18652 (ipa_reference_write_optimization_summary): Likewise.
18653 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18654 (address_taken_from_non_vtable_p): Likewise.
18655 (comdat_can_be_unshared_p_1): Likewise.
18656 * lto-cgraph.c (lto_output_ref): Likewise.
18657 (add_references): Likewise.
18658 (compute_ltrans_boundary): Likewise.
18659 (output_symtab): Likewise.
18660 (input_ref): Likewise.
18661 (input_cgraph_1): Likewise.
18662 (output_cgraph_opt_summary): Likewise.
18663 * lto-streamer-out.c (lto_output): Likewise.
18664 (output_symbol_p): Likewise.
18665 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18666 (lsei_start_function_in_partition): Likewise.
18667 (lsei_next_variable_in_partition): Likewise.
18668 (lsei_start_variable_in_partition): Likewise.
18669 * symtab.c (insert_to_assembler_name_hash): Likewise.
18670 (unlink_from_assembler_name_hash): Likewise.
18671 (symtab_unregister_node): Likewise.
18672 (symtab_remove_node): Likewise.
18673 (dump_symtab_node): Likewise.
18674 (verify_symtab_base): Likewise.
18675 (verify_symtab_node): Likewise.
18676 (symtab_make_decl_local): Likewise.
18677 (symtab_alias_ultimate_target): Likewise.
18678 (symtab_resolve_alias): Likewise.
18679 (symtab_get_symbol_partitioning_class): Likewise.
18680 * tree-phinodes.c (allocate_phi_node): Likewise.
18681 (reserve_phi_args_for_new_edge): Likewise.
18682 (remove_phi_args): Likewise.
18683 * varpool.c (varpool_node_for_asm): Likewise.
18684 (varpool_remove_unreferenced_decls): Likewise.
18685
18686 2014-04-23 Jeff Law <law@redhat.com>
18687
18688 PR tree-optimization/60902
18689 * tree-ssa-threadedge.c
18690 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18691 invalidate outputs from statements that do not produce useful
18692 outputs for threading.
18693
18694 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18695
18696 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18697 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18698 machine descriptions for Stack Smashing Protector.
18699
18700 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
18701
18702 * aarch64.md (<optab>_rol<mode>3): New pattern.
18703 (<optab>_rolsi3_uxtw): Likewise.
18704 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18705
18706 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
18707
18708 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18709 (arm_cortex_a12_tune): Likewise.
18710
18711 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18712
18713 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18714
18715 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18716
18717 * config/arm/arm.md (arm_rev16si2): New pattern.
18718 (arm_rev16si2_alt): Likewise.
18719 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18720
18721 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18722
18723 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18724 (rev16<mode>2_alt): Likewise.
18725 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18726 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18727 (aarch_rev16_shleft_mask_imm_p): Likewise.
18728 (aarch_rev16_p_1): Likewise.
18729 (aarch_rev16_p): Likewise.
18730 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18731 (aarch_rev16_shright_mask_imm_p): Likewise.
18732 (aarch_rev16_shleft_mask_imm_p): Likewise.
18733
18734 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18735
18736 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18737 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18738 rev cost.
18739 (cortex_a53_extra_costs): Likewise.
18740 (cortex_a57_extra_costs): Likewise.
18741 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18742 (cortexa7_extra_costs): Likewise.
18743 (cortexa8_extra_costs): Likewise.
18744 (cortexa12_extra_costs): Likewise.
18745 (cortexa15_extra_costs): Likewise.
18746 (v7m_extra_costs): Likewise.
18747 (arm_new_rtx_costs): Handle BSWAP.
18748
18749 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18750
18751 * config/arm/arm.c (cortexa8_extra_costs): New table.
18752 (arm_cortex_a8_tune): New tuning struct.
18753 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18754
18755 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18756
18757 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18758
18759 2014-04-23 Richard Biener <rguenther@suse.de>
18760
18761 * Makefile.in (OBJS): Remove loop-unswitch.o.
18762 * tree-pass.h (make_pass_rtl_unswitch): Remove.
18763 * passes.def (pass_rtl_unswitch): Likewise.
18764 * loop-init.c (gate_rtl_unswitch): Likewise.
18765 (rtl_unswitch): Likewise.
18766 (pass_data_rtl_unswitch): Likewise.
18767 (pass_rtl_unswitch): Likewise.
18768 (make_pass_rtl_unswitch): Likewise.
18769 * rtl.h (reversed_condition): Likewise.
18770 (compare_and_jump_seq): Likewise.
18771 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
18772 and make static.
18773 * loop-unroll.c (compare_and_jump_seq): Likewise.
18774
18775 2014-04-23 Richard Biener <rguenther@suse.de>
18776
18777 PR tree-optimization/60903
18778 * tree-ssa-loop-im.c (analyze_memory_references): Remove
18779 commented code block.
18780 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
18781 loop flags to newly created BBs and edges.
18782
18783 2014-04-23 Nick Clifton <nickc@redhat.com>
18784
18785 * config/msp430/msp430.c (msp430_handle_option): Move function
18786 to msp430-common.c
18787 (msp430_option_override): Simplify mcu and mcpu option handling.
18788 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
18789 support for -mhwmult command line option.
18790 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
18791 -mhwmult command line option.
18792 (msp430_hwmult_enabled): Delete.
18793 (msp43o_output_labelref): Add support for -mhwmult command line option.
18794 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
18795 (umulsidi3): Likewise.
18796 * config/msp430/msp430.opt (mmcu): Add Report attribute.
18797 (mcpu, mlarge, msmall): Likewise.
18798 (mhwmult): New option.
18799 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
18800 prototype.
18801 (msp430_is_f5_mcu): Remove prototype.
18802 (msp430_use_f5_series_hwmult): Add prototype.
18803 * config/msp430/msp430-opts.h: New file.
18804 * common/config/msp430: New directory.
18805 * common/config/msp430/msp430-common.c: New file.
18806 * config.gcc (msp430): Remove target_has_targetm_common.
18807 * doc/invoke.texi: Document -mhwmult command line option.
18808
18809 2014-04-23 Nick Clifton <nickc@redhat.com>
18810
18811 * config/i386/cygwin.h (ENDFILE_SPEC): Include
18812 default-manifest.o if it can be found in the search path.
18813 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
18814
18815 2014-04-23 Terry Guo <terry.guo@arm.com>
18816
18817 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
18818
18819 2014-04-23 Richard Biener <rguenther@suse.de>
18820
18821 PR middle-end/60895
18822 * tree-inline.c (declare_return_variable): Use mark_addressable.
18823
18824 2014-04-23 Richard Biener <rguenther@suse.de>
18825
18826 PR middle-end/60891
18827 * loop-init.c (loop_optimizer_init): Make sure to apply
18828 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
18829
18830 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18831
18832 PR sanitizer/60275
18833 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
18834 New options.
18835 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
18836 if flag_sanitize_undefined_trap_on_error.
18837 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
18838 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
18839 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
18840 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
18841 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
18842 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
18843 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
18844 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
18845 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
18846 * ubsan.c (ubsan_instrument_unreachable): Return
18847 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
18848 (ubsan_expand_null_ifn): Emit __builtin_trap ()
18849 if flag_sanitize_undefined_trap_on_error and
18850 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
18851 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18852 instrument_bool_enum_load): Emit __builtin_trap () if
18853 flag_sanitize_undefined_trap_on_error and
18854 __builtin_handle_*_abort () if !flag_sanitize_recover.
18855 * doc/invoke.texi (-fsanitize-recover,
18856 -fsanitize-undefined-trap-on-error): Document.
18857
18858 2014-04-22 Christian Bruel <christian.bruel@st.com>
18859
18860 * config/sh/sh.md (mov<mode>): Replace movQIHI.
18861 Force immediates to SImode.
18862
18863 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
18864
18865 * config/nios2/nios2.md (UNSPEC_ROUND): New.
18866 (lroundsfsi2): New.
18867 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
18868 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
18869 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
18870 (nios2_fpu_insn): Add entry for round.
18871 (N2FPU_NO_ERRNO_P): Define.
18872 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
18873 flag_errno_math.
18874 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
18875
18876 2014-04-22 Richard Henderson <rth@redhat.com>
18877
18878 * config/aarch64/aarch64 (addti3, subti3): New expanders.
18879 (add<GPI>3_compare0): Remove leading * from name.
18880 (add<GPI>3_carryin): Likewise.
18881 (sub<GPI>3_compare0): Likewise.
18882 (sub<GPI>3_carryin): Likewise.
18883 (<su_optab>mulditi3): New expander.
18884 (multi3): New expander.
18885 (madd<GPI>): Remove leading * from name.
18886
18887 2014-04-22 Martin Jambor <mjambor@suse.cz>
18888
18889 * cgraphclones.c (cgraph_function_versioning): Copy
18890 ipa_transforms_to_apply instead of asserting it is empty.
18891
18892 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
18893
18894 PR target/60868
18895 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
18896 on count_exp to get mode.
18897
18898 2014-04-22 Andrew Pinski <apinski@cavium.com>
18899
18900 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18901 Handle TLS for ILP32.
18902 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
18903 (tlsie_small_<mode>): this and handle PTR.
18904 (tlsie_small_sidi): New pattern.
18905 (tlsle_small): Change to an expand to handle ILP32.
18906 (tlsle_small_<mode>): New pattern.
18907 (tlsdesc_small): Rename to ...
18908 (tlsdesc_small_<mode>): this and handle PTR.
18909
18910 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18911
18912 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
18913
18914 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18915
18916 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18917 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
18918 (aarch64_types_signed_poly_qualifiers): Likewise.
18919 (aarch64_types_unsigned_signed_qualifiers): Likewise.
18920 (aarch64_types_poly_signed_qualifiers): Likewise.
18921 (TYPES_REINTERP_SS): Type macro added.
18922 (TYPES_REINTERP_SU): Likewise.
18923 (TYPES_REINTERP_SP): Likewise.
18924 (TYPES_REINTERP_US): Likewise.
18925 (TYPES_REINTERP_PS): Likewise.
18926 (aarch64_fold_builtin): New expression folding added.
18927 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
18928 Declarations removed.
18929 (REINTERP_SS): Declarations added.
18930 (REINTERP_US): Likewise.
18931 (REINTERP_PS): Likewise.
18932 (REINTERP_SU): Likewise.
18933 (REINTERP_SP): Likewise.
18934 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
18935 (vreinterpretq_p8_f64): Likewise.
18936 (vreinterpret_p16_f64): Likewise.
18937 (vreinterpretq_p16_f64): Likewise.
18938 (vreinterpret_f32_f64): Likewise.
18939 (vreinterpretq_f32_f64): Likewise.
18940 (vreinterpret_f64_f32): Likewise.
18941 (vreinterpret_f64_p8): Likewise.
18942 (vreinterpret_f64_p16): Likewise.
18943 (vreinterpret_f64_s8): Likewise.
18944 (vreinterpret_f64_s16): Likewise.
18945 (vreinterpret_f64_s32): Likewise.
18946 (vreinterpret_f64_s64): Likewise.
18947 (vreinterpret_f64_u8): Likewise.
18948 (vreinterpret_f64_u16): Likewise.
18949 (vreinterpret_f64_u32): Likewise.
18950 (vreinterpret_f64_u64): Likewise.
18951 (vreinterpretq_f64_f32): Likewise.
18952 (vreinterpretq_f64_p8): Likewise.
18953 (vreinterpretq_f64_p16): Likewise.
18954 (vreinterpretq_f64_s8): Likewise.
18955 (vreinterpretq_f64_s16): Likewise.
18956 (vreinterpretq_f64_s32): Likewise.
18957 (vreinterpretq_f64_s64): Likewise.
18958 (vreinterpretq_f64_u8): Likewise.
18959 (vreinterpretq_f64_u16): Likewise.
18960 (vreinterpretq_f64_u32): Likewise.
18961 (vreinterpretq_f64_u64): Likewise.
18962 (vreinterpret_s64_f64): Likewise.
18963 (vreinterpretq_s64_f64): Likewise.
18964 (vreinterpret_u64_f64): Likewise.
18965 (vreinterpretq_u64_f64): Likewise.
18966 (vreinterpret_s8_f64): Likewise.
18967 (vreinterpretq_s8_f64): Likewise.
18968 (vreinterpret_s16_f64): Likewise.
18969 (vreinterpretq_s16_f64): Likewise.
18970 (vreinterpret_s32_f64): Likewise.
18971 (vreinterpretq_s32_f64): Likewise.
18972 (vreinterpret_u8_f64): Likewise.
18973 (vreinterpretq_u8_f64): Likewise.
18974 (vreinterpret_u16_f64): Likewise.
18975 (vreinterpretq_u16_f64): Likewise.
18976 (vreinterpret_u32_f64): Likewise.
18977 (vreinterpretq_u32_f64): Likewise.
18978
18979 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18980
18981 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18982 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
18983 (vreinterpret_p8_s8): Likewise.
18984 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
18985 (vreinterpret_p8_s16): Likewise.
18986 (vreinterpret_p8_s32): Likewise.
18987 (vreinterpret_p8_s64): Likewise.
18988 (vreinterpret_p8_f32): Likewise.
18989 (vreinterpret_p8_u8): Likewise.
18990 (vreinterpret_p8_u16): Likewise.
18991 (vreinterpret_p8_u32): Likewise.
18992 (vreinterpret_p8_u64): Likewise.
18993 (vreinterpret_p8_p16): Likewise.
18994 (vreinterpretq_p8_s8): Likewise.
18995 (vreinterpretq_p8_s16): Likewise.
18996 (vreinterpretq_p8_s32): Likewise.
18997 (vreinterpretq_p8_s64): Likewise.
18998 (vreinterpretq_p8_f32): Likewise.
18999 (vreinterpretq_p8_u8): Likewise.
19000 (vreinterpretq_p8_u16): Likewise.
19001 (vreinterpretq_p8_u32): Likewise.
19002 (vreinterpretq_p8_u64): Likewise.
19003 (vreinterpretq_p8_p16): Likewise.
19004 (vreinterpret_p16_s8): Likewise.
19005 (vreinterpret_p16_s16): Likewise.
19006 (vreinterpret_p16_s32): Likewise.
19007 (vreinterpret_p16_s64): Likewise.
19008 (vreinterpret_p16_f32): Likewise.
19009 (vreinterpret_p16_u8): Likewise.
19010 (vreinterpret_p16_u16): Likewise.
19011 (vreinterpret_p16_u32): Likewise.
19012 (vreinterpret_p16_u64): Likewise.
19013 (vreinterpret_p16_p8): Likewise.
19014 (vreinterpretq_p16_s8): Likewise.
19015 (vreinterpretq_p16_s16): Likewise.
19016 (vreinterpretq_p16_s32): Likewise.
19017 (vreinterpretq_p16_s64): Likewise.
19018 (vreinterpretq_p16_f32): Likewise.
19019 (vreinterpretq_p16_u8): Likewise.
19020 (vreinterpretq_p16_u16): Likewise.
19021 (vreinterpretq_p16_u32): Likewise.
19022 (vreinterpretq_p16_u64): Likewise.
19023 (vreinterpretq_p16_p8): Likewise.
19024 (vreinterpret_f32_s8): Likewise.
19025 (vreinterpret_f32_s16): Likewise.
19026 (vreinterpret_f32_s32): Likewise.
19027 (vreinterpret_f32_s64): Likewise.
19028 (vreinterpret_f32_u8): Likewise.
19029 (vreinterpret_f32_u16): Likewise.
19030 (vreinterpret_f32_u32): Likewise.
19031 (vreinterpret_f32_u64): Likewise.
19032 (vreinterpret_f32_p8): Likewise.
19033 (vreinterpret_f32_p16): Likewise.
19034 (vreinterpretq_f32_s8): Likewise.
19035 (vreinterpretq_f32_s16): Likewise.
19036 (vreinterpretq_f32_s32): Likewise.
19037 (vreinterpretq_f32_s64): Likewise.
19038 (vreinterpretq_f32_u8): Likewise.
19039 (vreinterpretq_f32_u16): Likewise.
19040 (vreinterpretq_f32_u32): Likewise.
19041 (vreinterpretq_f32_u64): Likewise.
19042 (vreinterpretq_f32_p8): Likewise.
19043 (vreinterpretq_f32_p16): Likewise.
19044 (vreinterpret_s64_s8): Likewise.
19045 (vreinterpret_s64_s16): Likewise.
19046 (vreinterpret_s64_s32): Likewise.
19047 (vreinterpret_s64_f32): Likewise.
19048 (vreinterpret_s64_u8): Likewise.
19049 (vreinterpret_s64_u16): Likewise.
19050 (vreinterpret_s64_u32): Likewise.
19051 (vreinterpret_s64_u64): Likewise.
19052 (vreinterpret_s64_p8): Likewise.
19053 (vreinterpret_s64_p16): Likewise.
19054 (vreinterpretq_s64_s8): Likewise.
19055 (vreinterpretq_s64_s16): Likewise.
19056 (vreinterpretq_s64_s32): Likewise.
19057 (vreinterpretq_s64_f32): Likewise.
19058 (vreinterpretq_s64_u8): Likewise.
19059 (vreinterpretq_s64_u16): Likewise.
19060 (vreinterpretq_s64_u32): Likewise.
19061 (vreinterpretq_s64_u64): Likewise.
19062 (vreinterpretq_s64_p8): Likewise.
19063 (vreinterpretq_s64_p16): Likewise.
19064 (vreinterpret_u64_s8): Likewise.
19065 (vreinterpret_u64_s16): Likewise.
19066 (vreinterpret_u64_s32): Likewise.
19067 (vreinterpret_u64_s64): Likewise.
19068 (vreinterpret_u64_f32): Likewise.
19069 (vreinterpret_u64_u8): Likewise.
19070 (vreinterpret_u64_u16): Likewise.
19071 (vreinterpret_u64_u32): Likewise.
19072 (vreinterpret_u64_p8): Likewise.
19073 (vreinterpret_u64_p16): Likewise.
19074 (vreinterpretq_u64_s8): Likewise.
19075 (vreinterpretq_u64_s16): Likewise.
19076 (vreinterpretq_u64_s32): Likewise.
19077 (vreinterpretq_u64_s64): Likewise.
19078 (vreinterpretq_u64_f32): Likewise.
19079 (vreinterpretq_u64_u8): Likewise.
19080 (vreinterpretq_u64_u16): Likewise.
19081 (vreinterpretq_u64_u32): Likewise.
19082 (vreinterpretq_u64_p8): Likewise.
19083 (vreinterpretq_u64_p16): Likewise.
19084 (vreinterpret_s8_s16): Likewise.
19085 (vreinterpret_s8_s32): Likewise.
19086 (vreinterpret_s8_s64): Likewise.
19087 (vreinterpret_s8_f32): Likewise.
19088 (vreinterpret_s8_u8): Likewise.
19089 (vreinterpret_s8_u16): Likewise.
19090 (vreinterpret_s8_u32): Likewise.
19091 (vreinterpret_s8_u64): Likewise.
19092 (vreinterpret_s8_p8): Likewise.
19093 (vreinterpret_s8_p16): Likewise.
19094 (vreinterpretq_s8_s16): Likewise.
19095 (vreinterpretq_s8_s32): Likewise.
19096 (vreinterpretq_s8_s64): Likewise.
19097 (vreinterpretq_s8_f32): Likewise.
19098 (vreinterpretq_s8_u8): Likewise.
19099 (vreinterpretq_s8_u16): Likewise.
19100 (vreinterpretq_s8_u32): Likewise.
19101 (vreinterpretq_s8_u64): Likewise.
19102 (vreinterpretq_s8_p8): Likewise.
19103 (vreinterpretq_s8_p16): Likewise.
19104 (vreinterpret_s16_s8): Likewise.
19105 (vreinterpret_s16_s32): Likewise.
19106 (vreinterpret_s16_s64): Likewise.
19107 (vreinterpret_s16_f32): Likewise.
19108 (vreinterpret_s16_u8): Likewise.
19109 (vreinterpret_s16_u16): Likewise.
19110 (vreinterpret_s16_u32): Likewise.
19111 (vreinterpret_s16_u64): Likewise.
19112 (vreinterpret_s16_p8): Likewise.
19113 (vreinterpret_s16_p16): Likewise.
19114 (vreinterpretq_s16_s8): Likewise.
19115 (vreinterpretq_s16_s32): Likewise.
19116 (vreinterpretq_s16_s64): Likewise.
19117 (vreinterpretq_s16_f32): Likewise.
19118 (vreinterpretq_s16_u8): Likewise.
19119 (vreinterpretq_s16_u16): Likewise.
19120 (vreinterpretq_s16_u32): Likewise.
19121 (vreinterpretq_s16_u64): Likewise.
19122 (vreinterpretq_s16_p8): Likewise.
19123 (vreinterpretq_s16_p16): Likewise.
19124 (vreinterpret_s32_s8): Likewise.
19125 (vreinterpret_s32_s16): Likewise.
19126 (vreinterpret_s32_s64): Likewise.
19127 (vreinterpret_s32_f32): Likewise.
19128 (vreinterpret_s32_u8): Likewise.
19129 (vreinterpret_s32_u16): Likewise.
19130 (vreinterpret_s32_u32): Likewise.
19131 (vreinterpret_s32_u64): Likewise.
19132 (vreinterpret_s32_p8): Likewise.
19133 (vreinterpret_s32_p16): Likewise.
19134 (vreinterpretq_s32_s8): Likewise.
19135 (vreinterpretq_s32_s16): Likewise.
19136 (vreinterpretq_s32_s64): Likewise.
19137 (vreinterpretq_s32_f32): Likewise.
19138 (vreinterpretq_s32_u8): Likewise.
19139 (vreinterpretq_s32_u16): Likewise.
19140 (vreinterpretq_s32_u32): Likewise.
19141 (vreinterpretq_s32_u64): Likewise.
19142 (vreinterpretq_s32_p8): Likewise.
19143 (vreinterpretq_s32_p16): Likewise.
19144 (vreinterpret_u8_s8): Likewise.
19145 (vreinterpret_u8_s16): Likewise.
19146 (vreinterpret_u8_s32): Likewise.
19147 (vreinterpret_u8_s64): Likewise.
19148 (vreinterpret_u8_f32): Likewise.
19149 (vreinterpret_u8_u16): Likewise.
19150 (vreinterpret_u8_u32): Likewise.
19151 (vreinterpret_u8_u64): Likewise.
19152 (vreinterpret_u8_p8): Likewise.
19153 (vreinterpret_u8_p16): Likewise.
19154 (vreinterpretq_u8_s8): Likewise.
19155 (vreinterpretq_u8_s16): Likewise.
19156 (vreinterpretq_u8_s32): Likewise.
19157 (vreinterpretq_u8_s64): Likewise.
19158 (vreinterpretq_u8_f32): Likewise.
19159 (vreinterpretq_u8_u16): Likewise.
19160 (vreinterpretq_u8_u32): Likewise.
19161 (vreinterpretq_u8_u64): Likewise.
19162 (vreinterpretq_u8_p8): Likewise.
19163 (vreinterpretq_u8_p16): Likewise.
19164 (vreinterpret_u16_s8): Likewise.
19165 (vreinterpret_u16_s16): Likewise.
19166 (vreinterpret_u16_s32): Likewise.
19167 (vreinterpret_u16_s64): Likewise.
19168 (vreinterpret_u16_f32): Likewise.
19169 (vreinterpret_u16_u8): Likewise.
19170 (vreinterpret_u16_u32): Likewise.
19171 (vreinterpret_u16_u64): Likewise.
19172 (vreinterpret_u16_p8): Likewise.
19173 (vreinterpret_u16_p16): Likewise.
19174 (vreinterpretq_u16_s8): Likewise.
19175 (vreinterpretq_u16_s16): Likewise.
19176 (vreinterpretq_u16_s32): Likewise.
19177 (vreinterpretq_u16_s64): Likewise.
19178 (vreinterpretq_u16_f32): Likewise.
19179 (vreinterpretq_u16_u8): Likewise.
19180 (vreinterpretq_u16_u32): Likewise.
19181 (vreinterpretq_u16_u64): Likewise.
19182 (vreinterpretq_u16_p8): Likewise.
19183 (vreinterpretq_u16_p16): Likewise.
19184 (vreinterpret_u32_s8): Likewise.
19185 (vreinterpret_u32_s16): Likewise.
19186 (vreinterpret_u32_s32): Likewise.
19187 (vreinterpret_u32_s64): Likewise.
19188 (vreinterpret_u32_f32): Likewise.
19189 (vreinterpret_u32_u8): Likewise.
19190 (vreinterpret_u32_u16): Likewise.
19191 (vreinterpret_u32_u64): Likewise.
19192 (vreinterpret_u32_p8): Likewise.
19193 (vreinterpret_u32_p16): Likewise.
19194 (vreinterpretq_u32_s8): Likewise.
19195 (vreinterpretq_u32_s16): Likewise.
19196 (vreinterpretq_u32_s32): Likewise.
19197 (vreinterpretq_u32_s64): Likewise.
19198 (vreinterpretq_u32_f32): Likewise.
19199 (vreinterpretq_u32_u8): Likewise.
19200 (vreinterpretq_u32_u16): Likewise.
19201 (vreinterpretq_u32_u64): Likewise.
19202 (vreinterpretq_u32_p8): Likewise.
19203 (vreinterpretq_u32_p16): Likewise.
19204
19205 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19206
19207 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19208 Pattern extended.
19209 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19210 (sqabs): Likewise.
19211 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19212 (vqnegd_s64): Likewise.
19213 (vqabs_s64): Likewise.
19214 (vqabsd_s64): Likewise.
19215
19216 2014-04-22 Richard Henderson <rth@redhat.com>
19217
19218 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19219 computation to the top of the loop.
19220
19221 2014-04-22 Renlin <renlin.li@arm.com>
19222 Jiong Wang <jiong.wang@arm.com>
19223
19224 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19225 * config/aarch64/aarch64.c (aarch64_layout_frame)
19226 (aarch64_initial_elimination_offset): Likewise.
19227
19228 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19229
19230 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19231 Fix indentation.
19232
19233 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19234
19235 * machmode.h (bitwise_mode_for_mode): Declare.
19236 * stor-layout.h (bitwise_type_for_mode): Likewise.
19237 * stor-layout.c (bitwise_mode_for_mode): New function.
19238 (bitwise_type_for_mode): Likewise.
19239 * builtins.c (fold_builtin_memory_op): Use it instead of
19240 int_mode_for_mode and build_nonstandard_integer_type.
19241
19242 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19243
19244 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19245 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19246 (*-*-solaris2*): Simplify.
19247 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19248 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19249 *-*-solaris2.9* handling.
19250
19251 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19252 as bug.
19253 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19254 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19255 handling, simplify.
19256 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19257 * configure: Regenerate.
19258
19259 * config/i386/sol2-9.h: Remove.
19260
19261 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19262 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19263 Remove Solaris 9 references.
19264
19265 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19266
19267 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19268 (floatuns<GPI:mode><GPF:mode>2): Remove.
19269 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19270 and floatuns conversions.
19271 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19272 and floatuns conversions.
19273 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19274 (w1,w2): New mode attributes for inequal width conversions.
19275
19276 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19277
19278 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19279 the output asm format.
19280
19281 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19282
19283 * config/aarch64/aarch64-simd.md
19284 (aarch64_cm<optab>di): Always split.
19285 (*aarch64_cm<optab>di): New.
19286 (aarch64_cmtstdi): Always split.
19287 (*aarch64_cmtstdi): New.
19288
19289 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19290
19291 PR tree-optimization/60823
19292 * omp-low.c (ipa_simd_modify_function_body): Go through
19293 all SSA_NAMEs and for those refering to vector arguments
19294 which are going to be replaced adjust SSA_NAME_VAR and,
19295 if it is a default definition, change it into a non-default
19296 definition assigned at the beginning of function from new_decl.
19297 (ipa_simd_modify_stmt_ops): Rewritten.
19298 * tree-dfa.c (set_ssa_default_def): When removing default def,
19299 check for NULL loc instead of NULL *loc.
19300
19301 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19302
19303 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19304 restrictions on core registers for DImode values in Thumb2.
19305
19306 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19307
19308 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19309 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19310
19311 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19312
19313 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19314 (*iordi_notzesidi_di): Likewise.
19315 (*iordi_notsesidi_di): Likewise.
19316
19317 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19318
19319 * config/arm/arm-protos.h (tune_params): New struct members.
19320 * config/arm/arm.c: Initialise tune_params per processor.
19321 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19322 for speed, based on new tune_params.
19323
19324 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19325
19326 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19327 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19328 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19329 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19330 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19331 (vrnda_f64): Likewise.
19332 (vrndi_f64): Likewise.
19333 (vrndm_f64): Likewise.
19334 (vrndn_f64): Likewise.
19335 (vrndp_f64): Likewise.
19336 (vrndx_f64): Likewise.
19337
19338 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19339
19340 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19341 GET_MODE_SIZE argument is enum machine_mode.
19342
19343 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19344
19345 PR target/60910
19346 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19347 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19348
19349 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19350
19351 PR middle-end/60281
19352 * asan.c (asan_emit_stack_protection): Force the base to align to
19353 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19354 appropriate bits if STRICT_ALIGNMENT.
19355 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19356 when asan is on.
19357 (expand_used_vars): Leave a space in the stack frame for alignment
19358 if STRICT_ALIGNMENT.
19359
19360 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19361
19362 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19363 than a gimple.
19364 (gimple_store_p): Likewise.
19365 (gimple_assign_load_p): Likewise.
19366 (gimple_assign_cast_p): Likewise.
19367 (gimple_clobber_p): Likewise.
19368
19369 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19370 rather than a gimple.
19371 (gimple_assign_cast_p): Likewise.
19372
19373 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19374
19375 PR target/60735
19376 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19377 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19378
19379 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19380 more debug information for E500 if -mdebug=reg.
19381
19382 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19383
19384 PR target/60909
19385 * config/i386/i386.c (ix86_expand_builtin)
19386 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19387 register for target RTX.
19388 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19389
19390 2014-04-18 Cong Hou <congh@google.com>
19391
19392 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19393 the widen-mult pattern by handling two operands with different sizes,
19394 and operands whose size is smaller than half of the result type.
19395
19396 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19397
19398 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19399 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19400 (do_estimate_edge_time): Compute it.
19401 * ipa-inline.c (want_inline_small_function_p): Bypass
19402 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19403
19404 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19405
19406 * ipa-inline.c (spec_rem): New static variable.
19407 (dump_overall_stats): New function.
19408 (dump_inline_stats): New function.
19409
19410 2014-04-18 Richard Henderson <rth@redhat.com>
19411
19412 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19413 to GET_MODE_SIZE, not a reg_class_t.
19414
19415 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19416
19417 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19418 (vsx_xxmrglw_<mode>): Likewise.
19419
19420 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19421
19422 PR target/60876
19423 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19424 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19425 (rs6000_init_hard_regno_mode_ok): Likewise.
19426
19427 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19428
19429 * ipa-inline.c (inline_small_functions): Account only non-cold
19430 functions.
19431 * doc/invoke.texi (inline-unit-growth): Update documentation.
19432
19433 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19434
19435 * config/rs6000/rs6000.md (addti3, subti3): New.
19436
19437 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19438
19439 PR target/60863
19440 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19441 comment. Check optimize_insn_for_size_p instead of
19442 optimize_insn_for_speed_p.
19443
19444 2014-04-17 Martin Jambor <mjambor@suse.cz>
19445
19446 * gimple-iterator.c (gsi_start_edge): New function.
19447 * gimple-iterator.h (gsi_start_edge): Declare.
19448 * tree-sra.c (single_non_eh_succ): New function.
19449 (disqualify_ops_if_throwing_stmt): Renamed to
19450 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19451 having one non-EH successor BB.
19452 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19453 generate loads into replacements.
19454 (sra_modify_assign): Likewise and and also use the simple path for
19455 such statements.
19456 (sra_modify_function_body): Commit statements on edges.
19457
19458 2014-04-17 Richard Biener <rguenther@suse.de>
19459
19460 PR middle-end/60849
19461 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19462 comparison results and add clarifying comment.
19463
19464 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19465
19466 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19467 (blank_mode): Initialize it.
19468 (emit_mode_size_inline, emit_mode_nunits_inline,
19469 emit_mode_inner_inline): New functions.
19470 (emit_insn_modes_h): Call them and surround their output with
19471 #if GCC_VERSION >= 4001 ... #endif.
19472 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19473 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19474 mode_* arrays if the argument is __builtin_constant_p.
19475 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19476 is enum machine_mode.
19477
19478 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19479
19480 * passes.c (opt_pass::execute): Adjust.
19481 (pass_manager::execute_pass_mode_switching): Likewise.
19482 (early_local_passes::execute): Likewise.
19483 (execute_one_pass): Pass cfun to the pass's execute method.
19484 * tree-pass.h (opt_pass::execute): Add function * argument.
19485 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19486 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19487 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19488 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19489 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19490 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19491 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19492 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19493 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19494 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19495 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19496 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19497 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19498 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19499 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19500 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19501 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19502 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19503 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19504 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19505 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19506 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19507 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19508 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19509 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19510 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19511 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19512 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19513 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19514 Adjust.
19515
19516 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19517
19518 * passes.c (opt_pass::gate): Take function * argument.
19519 (gate_all_early_local_passes): Merge into
19520 (early_local_passes::gate): this.
19521 (gate_all_early_optimizations): Merge into
19522 (all_early_optimizations::gate): this.
19523 (gate_all_optimizations): Mege into
19524 (all_optimizations::gate): this.
19525 (gate_all_optimizations_g): Merge into
19526 (all_optimizations_g::gate): this.
19527 (gate_rest_of_compilation): Mege into
19528 (rest_of_compilation::gate): this.
19529 (gate_postreload): Merge into
19530 (postreload::gate): this.
19531 (dump_one_pass): Pass cfun to the pass's gate method.
19532 (execute_ipa_summary_passes): Likewise.
19533 (execute_one_pass): Likewise.
19534 (ipa_write_summaries_2): Likewise.
19535 (ipa_write_optimization_summaries_1): Likewise.
19536 (ipa_read_summaries_1): Likewise.
19537 (ipa_read_optimization_summaries_1): Likewise.
19538 (execute_ipa_stmt_fixups): Likewise.
19539 * tree-pass.h (opt_pass::gate): Add function * argument.
19540 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19541 combine-stack-adj.c, combine.c, compare-elim.c,
19542 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19543 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19544 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19545 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19546 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19547 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19548 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19549 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19550 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19551 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19552 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19553 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19554 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19555 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19556 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19557 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19558 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19559 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19560 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19561 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19562 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19563 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19564 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19565 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19566 var-tracking.c, vtable-verify.c, web.c: Adjust.
19567
19568 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19569
19570 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19571 * configure: Regenerate.
19572
19573 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19574
19575 * passes.c (dump_one_pass): don't check pass->has_gate.
19576 (execute_ipa_summary_passes): Likewise.
19577 (execute_one_pass): Likewise.
19578 (ipa_write_summaries_2): Likewise.
19579 (ipa_write_optimization_summaries_1): Likewise.
19580 (ipa_read_optimization_summaries_1): Likewise.
19581 (execute_ipa_stmt_fixups): Likewise.
19582 * tree-pass.h (pass_data::has_gate): Remove.
19583 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19584 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19585 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19586 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19587 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19588 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19589 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19590 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19591 gimple-low.c, gimple-ssa-isolate-paths.c,
19592 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19593 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19594 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19595 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19596 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19597 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19598 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19599 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19600 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19601 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19602 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19603 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19604 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19605 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19606 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19607 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19608 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19609 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19610 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19611 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19612 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19613 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19614 Adjust.
19615
19616 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19617
19618 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19619 declaration.
19620 * passes.c (pass_manager::register_dump_files_1): Merge into
19621 (pass_manager::register_dump_files): this, and remove its handling of
19622 properties since the pass always has the properties anyway.
19623 (pass_manager::pass_manager): Adjust.
19624
19625 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19626
19627 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19628 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19629 dealing with properties.
19630 (pass_manager::register_dump_files): Adjust.
19631
19632 2014-03-20 Mark Wielaard <mjw@redhat.com>
19633
19634 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19635 then represent the bound as normal constant value.
19636
19637 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19638
19639 PR target/60847
19640 Forward port from 4.8 branch
19641 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19642
19643 * config/i386/bmiintrin.h (_blsi_u32): New.
19644 (_blsi_u64): Ditto.
19645 (_blsr_u32): Ditto.
19646 (_blsr_u64): Ditto.
19647 (_blsmsk_u32): Ditto.
19648 (_blsmsk_u64): Ditto.
19649 (_tzcnt_u32): Ditto.
19650 (_tzcnt_u64): Ditto.
19651
19652 2014-04-17 Kito Cheng <kito@0xlab.org>
19653
19654 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19655
19656 2014-04-17 Richard Biener <rguenther@suse.de>
19657
19658 PR middle-end/60849
19659 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19660 boolean results for comparisons.
19661
19662 2014-04-17 Richard Biener <rguenther@suse.de>
19663
19664 PR tree-optimization/60836
19665 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19666 initial PHI args to be gimple values.
19667
19668 2014-04-17 Richard Biener <rguenther@suse.de>
19669
19670 PR tree-optimization/60841
19671 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19672 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19673 of stmts to SLP build.
19674 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19675 (vect_analyze_slp): Likewise.
19676 (vect_analyze_slp_instance): Likewise.
19677 (vect_build_slp_tree): Limit overall SLP tree growth.
19678 * tree-vectorizer.h (vect_analyze_data_refs,
19679 vect_analyze_slp): Adjust prototypes.
19680
19681 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19682
19683 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19684 Silvermont.
19685
19686 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19687
19688 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19689 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19690 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19691 for TARGET_SLOW_PSHUFB
19692
19693 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19694
19695 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19696 * config/i386/i386.c (intel_cost): Ditto.
19697
19698 2014-04-17 Joey Ye <joey.ye@arm.com>
19699
19700 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19701
19702 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19703
19704 * opts.c (common_handle_option): Disable -fipa-reference coorectly
19705 with -fuse-profile.
19706
19707 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19708
19709 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19710 (type_all_derivations_known_p): New predicate.
19711 (type_all_ctors_visible_p): New predicate.
19712 (type_possibly_instantiated_p): New predicate.
19713 (get_odr_type): Compute all_derivations_known.
19714 (dump_odr_type): Dump the flag.
19715 (maybe_record_type): Cleanup.
19716 (record_target_from_binfo): Add bases_to_consider array;
19717 record bases for types w/o instances and skip CXX destructor.
19718 (possible_polymorphic_call_targets_1): Add bases_to_consider
19719 and consider_construction parameters; check if type may have instance.
19720 (get_polymorphic_call_info): Set maybe_in_construction to true
19721 when we know nothing.
19722 (record_targets_from_bases): Skip CXX destructors; they are
19723 never called for types in construction.
19724 (possible_polymorphic_call_targets): Do not record target when
19725 type may not have instance.
19726
19727 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19728
19729 PR ipa/60854
19730 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19731 external aliases alive, too.
19732
19733 2014-04-16 Andrew Pinski <apinski@cavium.com>
19734
19735 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19736 definition.
19737
19738 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19739
19740 * final.c (compute_alignments): Do not apply loop alignment to a block
19741 falling through to the exit.
19742
19743 2014-04-16 Catherine Moore <clm@codesourcery.com>
19744
19745 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19746 Adjust constraints for microMIPS store patterns.
19747
19748 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19749
19750 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19751
19752 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19753
19754 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19755 (append_use): Run at -O0.
19756 (append_vdef): Likewise.
19757 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19758 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19759
19760 2014-04-16 Jakub Jelinek <jakub@redhat.com>
19761
19762 PR tree-optimization/60844
19763 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19764 (propagate_op_to_single_use, remove_visited_stmt_chain,
19765 linearize_expr, repropagate_negates, reassociate_bb): Use it
19766 instead of gsi_remove.
19767
19768 2014-04-16 Martin Jambor <mjambor@suse.cz>
19769
19770 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
19771 ipa_transforms_to_apply.
19772 (cgraph_function_versioning): Assert that old_node has empty
19773 ipa_transforms_to_apply.
19774 * trans-mem.c (ipa_tm_create_version): Likewise.
19775 * tree-inline.c (tree_function_versioning): Do not duplicate
19776 ipa_transforms_to_apply.
19777
19778 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19779
19780 PR target/60817
19781 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
19782 x86_64-*-* cases.
19783 Pass necessary as flags on 64-bit Solaris/x86.
19784 Use lowercase relocs for x86_64-*-*.
19785 * configure: Regenerate.
19786
19787 2014-04-15 Jan Hubicka <jh@suse.cz>
19788
19789 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
19790 (maybe_record_node, likely_target_p): Use it.
19791
19792 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19793
19794 PR target/60839
19795 Revert following patch
19796
19797 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19798
19799 PR target/60735
19800 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
19801 software floating point or no floating point registers, do not
19802 allow any type in the FPRs. Eliminate a test for SPE SIMD types
19803 in GPRs that occurs after we tested for GPRs that would never be
19804 true.
19805
19806 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
19807 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
19808 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
19809 specifically allow DDmode, since that does not use the SPE SIMD
19810 instructions.
19811
19812 2014-03-21 Mark Wielaard <mjw@redhat.com>
19813
19814 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
19815 as unsigned or int depending on type and value used.
19816
19817 2014-04-15 Richard Biener <rguenther@suse.de>
19818
19819 PR rtl-optimization/56965
19820 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
19821 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
19822 ... here.
19823 * alias.c (true_dependence_1): Do not call
19824 nonoverlapping_component_refs_p.
19825 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
19826 nonoverlapping_component_refs_p.
19827 (indirect_refs_may_alias_p): Likewise.
19828
19829 2014-04-15 Teresa Johnson <tejohnson@google.com>
19830
19831 * cfg.c (dump_bb_info): Fix flags check.
19832 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
19833
19834 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19835
19836 PR rtl-optimization/60663
19837 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
19838 avoid 0 cost.
19839
19840 2014-04-15 Richard Biener <rguenther@suse.de>
19841
19842 * lto-streamer.h (LTO_major_version): Bump to 4.
19843
19844 2014-04-15 Richard Biener <rguenther@suse.de>
19845
19846 * common.opt (lto_partition_model): New enum.
19847 (flto-partition=): Merge separate options with a single with argument,
19848 add -flto-partition=one support.
19849 * flag-types.h (enum lto_partition_model): Declare.
19850 * opts.c (finish_options): Remove duplicate -flto-partition=
19851 option check.
19852 * lto-wrapper.c (run_gcc): Adjust.
19853
19854 2014-04-15 Richard Biener <rguenther@suse.de>
19855
19856 * alias.c (ncr_compar): New function.
19857 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
19858
19859 2014-04-15 Richard Biener <rguenther@suse.de>
19860
19861 * alias.c (record_component_aliases): Do not walk BINFOs.
19862
19863 2014-04-15 Richard Biener <rguenther@suse.de>
19864
19865 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19866 Add struct function argument and adjust.
19867 (find_func_aliases_for_call): Likewise.
19868 (find_func_aliases): Likewise.
19869 (find_func_clobbers): Likewise.
19870 (intra_create_variable_infos): Likewise.
19871 (compute_points_to_sets): Likewise.
19872 (ipa_pta_execute): Adjust. Do not push/pop cfun.
19873
19874 2014-04-15 Richard Biener <rguenther@suse.de>
19875
19876 * tree.c (iterative_hash_expr): Use enum tree_code_class
19877 to store TREE_CODE_CLASS.
19878 (tree_block): Likewise.
19879 (tree_set_block): Likewise.
19880 * tree.h (fold_build_pointer_plus_loc): Use
19881 convert_to_ptrofftype_loc.
19882
19883 2014-04-15 Jakub Jelinek <jakub@redhat.com>
19884
19885 PR plugins/59335
19886 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
19887 added in 4.9.
19888
19889 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
19890
19891 * cfgloop.h (struct loop): Move force_vectorize down.
19892 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
19893 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
19894 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
19895 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
19896 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
19897 * tree-core.h (enum annot_expr_kind): Add new kind values.
19898 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
19899 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
19900 kinds.
19901 * tree.def (ANNOTATE_EXPR): Tweak comment.
19902
19903 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19904
19905 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
19906 cxa_pure_virtual).
19907
19908 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
19909
19910 * tree.h (TYPE_IDENTIFIER): Declare.
19911 * tree.c (subrange_type_for_debug_p): Use it.
19912 * godump.c (go_format_type): Likewise.
19913 * dwarf2out.c (is_cxx_auto, modified_type_die,
19914 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
19915 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
19916
19917 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19918
19919 PR lto/60820
19920 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
19921
19922 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
19923
19924 * config/i386/i386.c (examine_argument): Return bool. Return true if
19925 parameter should be passed in memory.
19926 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
19927 (construct_container): Update calls to examine_argument.
19928 (function_arg_advance_64): Ditto.
19929 (return_in_memory_32): Merge with ix86_return_in_memory.
19930 (return_in_memory_64): Ditto.
19931 (return_in_memory_ms_64): Ditto.
19932
19933 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19934
19935 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
19936 * coverage.c (coverage_compute_profile_id): Handle externally visible
19937 symbols.
19938
19939 2014-04-14 Martin Jambor <mjambor@suse.cz>
19940
19941 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
19942 DECL_DISREGARD_INLINE_LIMITS functions.
19943
19944 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19945
19946 PR target/60827
19947 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
19948
19949 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19950
19951 PR target/60827
19952 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
19953 optimize_insn_for_speed_p instead of
19954 optimize_function_for_speed_p.
19955
19956 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
19957
19958 * doc/invoke.texi (free): Document AArch64.
19959
19960 2014-04-14 Richard Biener <rguenther@suse.de>
19961
19962 PR tree-optimization/60042
19963 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
19964 (insert_into_preds_of_block): Do not prevent PHI insertion
19965 for REFERENCE exprs here ...
19966 (eliminate_dom_walker::before_dom_children): ... but prevent
19967 their use here under similar conditions when applied to the
19968 IL after PRE optimizations.
19969
19970 2014-04-14 Richard Biener <rguenther@suse.de>
19971
19972 * passes.def: Move early points-to after early SRA.
19973
19974 2014-04-14 Richard Biener <rguenther@suse.de>
19975
19976 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
19977 check for which sign-changes we allow when forwarding
19978 a converted value into a switch.
19979
19980 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19981
19982 * stor-layout.c (place_field): Finalize non-constant offset for the
19983 field, if any.
19984
19985 2014-04-14 Richard Biener <rguenther@suse.de>
19986
19987 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
19988 as argument.
19989 (expand_switch_using_bit_tests_p): Likewise.
19990 (process_switch): Compute and pass on speed_p based on the
19991 switch stmt.
19992 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
19993 optimize_bb_for_speed_p.
19994
19995 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19996
19997 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
19998 * function.h (struct function): Rename has_force_vect_loops into
19999 has_force_vectorize_loops.
20000 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20001 (input_struct_function_base): Likewise.
20002 * lto-streamer-out.c (output_cfg): Likewise.
20003 (output_struct_function_base): Likewise.
20004 * omp-low.c (expand_omp_simd): Likewise.
20005 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20006 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20007 (version_loop_for_if_conversion): Likewise.
20008 (tree_if_conversion): Likewise.
20009 (main_tree_if_conversion): Likewise.
20010 (gate_tree_if_conversion): Likewise.
20011 * tree-inline.c (copy_loops): Likewise.
20012 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20013 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20014 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20015 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20016 * tree-vectorizer.c (vectorize_loops): Likewise.
20017 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20018
20019 2014-04-14 Richard Biener <rguenther@suse.de>
20020
20021 PR lto/60720
20022 * lto-streamer-out.c (wrap_refs): New function.
20023 (lto_output): Wrap symbol references in global initializes in
20024 type-preserving MEM_REFs.
20025
20026 2014-04-14 Christian Bruel <christian.bruel@st.com>
20027
20028 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20029
20030 2014-04-14 Christian Bruel <christian.bruel@st.com>
20031
20032 * config/sh/sh.md (setmemqi): New expand pattern.
20033 * config/sh/sh.h (CLEAR_RATIO): Define.
20034 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20035 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20036
20037 2014-04-14 Richard Biener <rguenther@suse.de>
20038
20039 PR middle-end/55022
20040 * fold-const.c (negate_expr_p): Don't negate directional rounding
20041 division.
20042 (fold_negate_expr): Likewise.
20043
20044 2014-04-14 Richard Biener <rguenther@suse.de>
20045
20046 PR tree-optimization/59817
20047 PR tree-optimization/60453
20048 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20049 recursion to catch all CHRECs in the scalar evolution and restrict
20050 the predicate for the remains appropriately.
20051
20052 2014-04-12 Catherine Moore <clm@codesourcery.com>
20053
20054 * config/mips/constraints.md: Add new register constraint "kb".
20055 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20056 (*movhi_internal): Likewise.
20057 (*movqi_internal): Likewise.
20058 * config/mips/mips.h (M16_STORE_REGS): New register class.
20059 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20060 (REG_CLASS_CONTENTS): Likewise.
20061 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20062
20063 2014-04-11 Tobias Burnus <burnus@net-b.de>
20064
20065 PR c/60194
20066 * doc/invoke.texi (-Wformat-signedness): Document it.
20067 (Wformat=2): Mention that this enables -Wformat-signedness.
20068
20069 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20070
20071 * common/config/epiphany/epiphany-common.c
20072 (epiphany_option_optimization_table): Enable section anchors by
20073 default at -O1 or higher.
20074 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20075 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20076 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20077 carries no extra cost.
20078 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20079 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20080 * config/epiphany/predicates.md (memclob_operand): New predicate.
20081 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20082 Use memclob_operand predicate and X constraint for operand 3.
20083
20084 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20085
20086 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20087 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20088 its operands.
20089
20090 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20091
20092 PR rtl-optimization/60651
20093 * mode-switching.c (optimize_mode_switching): Make sure to emit
20094 sets of a lower numbered entity before sets of a higher numbered
20095 entity to a mode of the same or lower priority.
20096 When creating a seginfo for a basic block that starts with a code
20097 label, move the insertion point past the code label.
20098 (new_seginfo): Document and enforce requirement that
20099 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20100 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20101 * doc/tm.texi: Regenerate.
20102
20103 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20104
20105 PR target/60811
20106 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20107
20108 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20109
20110 * BASE-VER: Set to 4.10.0.
20111
20112 2014-04-11 Tobias Burnus <burnus@net-b.de>
20113
20114 PR other/59055
20115 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20116 * doc/gcc.texi (Service): Update description in the @menu
20117 * doc/invoke.texi (Option Summary): Remove misplaced and
20118 duplicated @menu.
20119
20120 2014-04-11 Steve Ellcey <sellcey@mips.com>
20121 Jakub Jelinek <jakub@redhat.com>
20122
20123 PR middle-end/60556
20124 * expr.c (convert_move): Use emit_store_flag_force instead of
20125 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20126 argument to it.
20127
20128 2014-04-11 Richard Biener <rguenther@suse.de>
20129
20130 PR middle-end/60797
20131 * varasm.c (assemble_alias): Avoid endless error reporting
20132 recursion by setting TREE_ASM_WRITTEN.
20133
20134 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20135
20136 * config/s390/s390.md: Add a splitter for NOT rtx.
20137
20138 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20139
20140 PR rtl-optimization/60663
20141 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20142
20143 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20144 Jakub Jelinek <jakub@redhat.com>
20145
20146 PR lto/60567
20147 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20148 flag from decl_node to node.
20149
20150 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20151
20152 PR debug/60655
20153 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20154 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20155 ameliorating the cases where it can be.
20156
20157 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20158
20159 Revert
20160 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20161
20162 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20163 (loadsync_<mode>): Change mode.
20164 (load_quadpti, store_quadpti): New.
20165 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20166 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20167 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20168
20169 2014-04-09 Cong Hou <congh@google.com>
20170
20171 PR testsuite/60773
20172 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20173 documentation.
20174
20175 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20176
20177 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20178 instead of vnor to exploit possible fusion opportunity in the
20179 future.
20180 (altivec_expand_vec_perm_const_le): Likewise.
20181
20182 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20183
20184 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20185 (loadsync_<mode>): Change mode.
20186 (load_quadpti, store_quadpti): New.
20187 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20188 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20189
20190 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20191
20192 PR target/60763
20193 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20194 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20195 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20196
20197 2014-04-08 Richard Biener <rguenther@suse.de>
20198
20199 PR middle-end/60706
20200 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20201 a 64bit widest int print double-int similar to on HWI64 hosts.
20202
20203 2014-04-08 Richard Biener <rguenther@suse.de>
20204
20205 PR tree-optimization/60785
20206 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20207 default defs properly.
20208
20209 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20210
20211 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20212 (Weffc++): Likewise.
20213
20214 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20215
20216 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20217 set completep to false rather than true.
20218
20219 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20220
20221 PR target/60504
20222 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20223 ARM_TARGET2_DWARF_FORMAT.
20224
20225 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20226
20227 PR target/60609
20228 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20229 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20230 ADDR_DIFF_VEC.
20231
20232 2014-04-07 Richard Biener <rguenther@suse.de>
20233
20234 PR tree-optimization/60766
20235 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20236 (may_eliminate_iv): Convert cand_value_at result to desired type.
20237
20238 2014-04-07 Jason Merrill <jason@redhat.com>
20239
20240 PR c++/60731
20241 * common.opt (-fno-gnu-unique): Add.
20242 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20243
20244 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20245
20246 * haifa-sched.c: Fix outdated function reference and minor
20247 grammar errors in introductory comment.
20248
20249 2014-04-07 Richard Biener <rguenther@suse.de>
20250
20251 PR middle-end/60750
20252 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20253 for noreturn calls.
20254 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20255
20256 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20257
20258 PR debug/55794
20259 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20260 size accounting for thunks.
20261 (pa_asm_output_mi_thunk): Use final_start_function() and
20262 final_end_function() to output function start and end directives.
20263
20264 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20265
20266 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20267 device specific ISA/ feature information. Remove short_sp and
20268 errata_skip ds. Add avr_device_specific_features enum to have device
20269 specific info.
20270 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20271 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20272 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20273 updated device specific info.
20274 * config/avr/avr-mcus.def: Merge device specific details to
20275 dev_attribute field.
20276 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20277 errata_skip.
20278 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20279 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20280 assembler if RMW isa supported by current device.
20281 * config/avr/genmultilib.awk: Update as device info structure changed.
20282 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20283
20284 2014-04-04 Cong Hou <congh@google.com>
20285
20286 PR tree-optimization/60656
20287 * tree-vect-stmts.c (supportable_widening_operation):
20288 Fix a bug that elements in a vector with vect_used_by_reduction
20289 property are incorrectly reordered when the operation on it is not
20290 consistant with the one in reduction operation.
20291
20292 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20293
20294 PR rtl-optimization/60155
20295 * gcse.c (record_set_data): New function.
20296 (single_set_gcse): New function.
20297 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20298 (hoist_code): Likewise.
20299 (get_pressure_class_and_nregs): Likewise.
20300
20301 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20302
20303 * explow.c (probe_stack_range): Emit a final optimization blockage.
20304
20305 2014-04-04 Anthony Green <green@moxielogic.com>
20306
20307 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20308 typos.
20309
20310 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20311
20312 PR ipa/59626
20313 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20314 flags are set only during streaming.
20315 * ipa.c (process_references, walk_polymorphic_call_targets,
20316 symtab_remove_unreachable_nodes): Drop bodies of always inline
20317 after early inlining.
20318 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20319
20320 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20321 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20322
20323 PR debug/60655
20324 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20325 containing a NOT.
20326
20327 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20328
20329 PR bootstrap/60743
20330 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20331 duration.
20332 (cortex_a53_fdivd): Likewise.
20333
20334 2014-04-04 Martin Jambor <mjambor@suse.cz>
20335
20336 PR ipa/60640
20337 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20338 Adjust all callers.
20339 * cgraph.c (clone_of_p): Also return true if thunks match.
20340 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20341 cgraph_function_or_thunk_node and an obsolete comment.
20342 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20343 file.
20344 (build_function_decl_skip_args): Likewise.
20345 (set_new_clone_decl_and_node_flags): New function.
20346 (duplicate_thunk_for_node): Likewise.
20347 (redirect_edge_duplicating_thunks): Likewise.
20348 (cgraph_clone_node): New parameter args_to_skip, pass it to
20349 redirect_edge_duplicating_thunks which is called instead of
20350 cgraph_redirect_edge_callee.
20351 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20352 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20353
20354 2014-04-04 Jeff Law <law@redhat.com>
20355
20356 PR target/60657
20357 * config/arm/predicates.md (const_int_I_operand): New predicate.
20358 (const_int_M_operand): Similarly.
20359 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20360 const_int_operand.
20361 (insv_t2, extv_reg, extzv_t2): Likewise.
20362 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20363 (pop_multiple_with_writeback_and_return): Likewise.
20364 (vfp_pop_multiple_with_writeback): Likewise
20365
20366 2014-04-04 Richard Biener <rguenther@suse.de>
20367
20368 PR ipa/60746
20369 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20370 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20371 non-GIMPLE_LABELs.
20372 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20373 * gimplify.c (gimple_add_tmp_var_fn): New function.
20374 * gimple-expr.h (create_tmp_reg_fn): Declare.
20375 * gimple-expr.c (create_tmp_reg_fn): New function.
20376 * gimple-low.c (record_vars_into): Don't change cfun.
20377 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20378 code generation without cfun.
20379
20380 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20381
20382 PR bootstrap/60719
20383 * Makefile.in (install-driver): Fix shell scripting.
20384
20385 2014-04-03 Cong Hou <congh@google.com>
20386
20387 PR tree-optimization/60505
20388 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20389 threshold of number of iterations below which no vectorization
20390 will be done.
20391 * tree-vect-loop.c (new_loop_vec_info):
20392 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20393 * tree-vect-loop.c (vect_analyze_loop_operations):
20394 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20395 * tree-vect-loop.c (vect_transform_loop):
20396 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20397 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20398 of iterations of the loop and see if we should build the epilogue.
20399
20400 2014-04-03 Richard Biener <rguenther@suse.de>
20401
20402 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20403 (streamer_tree_cache_create): Adjust.
20404 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20405 to allow optional nodes array.
20406 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20407 (streamer_tree_cache_append): Likewise.
20408 (streamer_tree_cache_create): Create nodes array optionally
20409 as specified by parameter.
20410 * lto-streamer-out.c (create_output_block): Avoid maintaining
20411 the node array in the writer cache.
20412 (DFS_write_tree): Remove assertion.
20413 (produce_asm_for_decls): Free the out decl state hash table early.
20414 * lto-streamer-in.c (lto_data_in_create): Adjust for
20415 streamer_tree_cache_create prototype change.
20416
20417 2014-04-03 Richard Biener <rguenther@suse.de>
20418
20419 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20420 set TREE_CHAIN to NULL_TREE.
20421
20422 2014-04-03 Richard Biener <rguenther@suse.de>
20423
20424 PR tree-optimization/60740
20425 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20426 over all GIMPLE_COND operands.
20427
20428 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20429
20430 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20431 (Weffc++): Remove Scott's numbering, merge lists and reference
20432 Wnon-virtual-dtor.
20433
20434 2014-04-03 Nick Clifton <nickc@redhat.com>
20435
20436 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20437 properly.
20438
20439 2014-04-03 Martin Jambor <mjambor@suse.cz>
20440
20441 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20442 mention gcc_unreachable before failing.
20443 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20444 removed symbols.
20445
20446 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20447
20448 PR ipa/60659
20449 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20450 inconsistent code and instead mark the context inconsistent.
20451 (possible_polymorphic_call_targets): For inconsistent contexts
20452 return empty complete list.
20453
20454 2014-04-02 Anthony Green <green@moxielogic.com>
20455
20456 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20457 (extendqisi2, extendhisi2): Define.
20458 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20459 (WCHAR_TYPE): Change to unsigned int.
20460
20461 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20462
20463 PR tree-optimization/60733
20464 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20465 insertion point for PHI candidates to be the end of the feeding
20466 block for the PHI argument.
20467
20468 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20469
20470 PR rtl-optimization/60650
20471 * lra-constraints.c (process_alt_operands): Decrease reject for
20472 earlyclobber matching.
20473
20474 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20475
20476 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20477
20478 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20479
20480 * config/spu/spu.c (pad_bb): Do not crash when the last
20481 insn is CODE_FOR_blockage.
20482
20483 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20484
20485 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20486 lies outside the target mode.
20487
20488 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20489
20490 PR target/60735
20491 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20492 software floating point or no floating point registers, do not
20493 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20494 in GPRs that occurs after we tested for GPRs that would never be
20495 true.
20496
20497 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20498 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20499 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20500 specifically allow DDmode, since that does not use the SPE SIMD
20501 instructions.
20502
20503 2014-04-02 Richard Biener <rguenther@suse.de>
20504
20505 PR middle-end/60729
20506 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20507 MODE_INTs. Properly use negv_optab.
20508 (expand_abs): Likewise.
20509
20510 2014-04-02 Richard Biener <rguenther@suse.de>
20511
20512 PR bootstrap/60719
20513 * Makefile.in (install-driver): Guard extra installs with special
20514 names properly.
20515
20516 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20517
20518 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20519 Document vec_vgbbd.
20520
20521 2014-04-01 Richard Henderson <rth@redhat.com>
20522
20523 PR target/60704
20524 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20525 alternative enabled before register allocation.
20526
20527 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20528
20529 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20530 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20531 typo.
20532 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20533 (nios2_got_address): Update nios2_large_got_address call site.
20534 (nios2_delegitimize_address): New function.
20535 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20536 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20537 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20538
20539 2014-04-01 Martin Husemann <martin@duskware.de>
20540
20541 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20542 for -mabi=32.
20543
20544 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20545
20546 PR rtl-optimization/60604
20547 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20548 check from register_operand.
20549 (register_operand): Redefine in terms of general_operand.
20550 (nonmemory_operand): Use register_operand for the non-constant cases.
20551
20552 2014-04-01 Richard Biener <rguenther@suse.de>
20553
20554 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20555
20556 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20557
20558 * doc/invoke.texi (mapp-regs): Clarify.
20559
20560 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20561
20562 * config/i386/avx512fintrin.h (__v32hi): Define type.
20563 (__v64qi): Likewise.
20564 (_mm512_set1_epi8): Define.
20565 (_mm512_set1_epi16): Define.
20566 (_mm512_set4_epi32): Define.
20567 (_mm512_set4_epi64): Define.
20568 (_mm512_set4_pd): Define.
20569 (_mm512_set4_ps): Define.
20570 (_mm512_setr4_epi64): Define.
20571 (_mm512_setr4_epi32): Define.
20572 (_mm512_setr4_pd): Define.
20573 (_mm512_setr4_ps): Define.
20574 (_mm512_setzero_epi32): Define.
20575
20576 2014-03-31 Martin Jambor <mjambor@suse.cz>
20577
20578 PR middle-end/60647
20579 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20580 callsite_arguments_match_p. Updated all callers. Also check types of
20581 corresponding formal parameters and actual arguments.
20582 (not_all_callers_have_enough_arguments_p) Renamed to
20583 some_callers_have_mismatched_arguments_p.
20584
20585 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20586
20587 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20588
20589 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20590
20591 PR target/60034
20592 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20593 section anchor.
20594
20595 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20596
20597 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20598 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20599 Split out
20600 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20601 Use FMAMODE_NOVF512 mode iterator.
20602 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20603 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20604 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20605 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20606 Split out
20607 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20608 Use VF_128_256 mode iterator.
20609 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20610 Ditto.
20611
20612 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20613
20614 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20615 static chain if needed.
20616
20617 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20618
20619 PR target/60697
20620 * lra-constraints.c (index_part_to_reg): New.
20621 (process_address): Use it.
20622
20623 2014-03-27 Jeff Law <law@redhat.com>
20624 Jakub Jelinek <jakub@redhat.com>
20625
20626 PR target/60648
20627 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20628 gen_rtx_{PLUS,MULT} to build up the address expression.
20629
20630 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20631 creating non-canonical RTL.
20632
20633 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20634
20635 PR ipa/60243
20636 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20637 functions; reorganize to make cheap checks first.
20638 (inline_small_functions): Do not estimate growth when dumping;
20639 it is expensive.
20640 * ipa-inline.h (inline_summary): Add min_size.
20641 (growth_likely_positive): New function.
20642 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20643 (set_cond_stmt_execution_predicate): Cleanup.
20644 (estimate_edge_size_and_time): Compute min_size.
20645 (estimate_calls_size_and_time): Likewise.
20646 (estimate_node_size_and_time): Likewise.
20647 (inline_update_overall_summary): Update min_size.
20648 (do_estimate_edge_time): Likewise.
20649 (do_estimate_edge_size): Update.
20650 (do_estimate_edge_hints): Update.
20651 (growth_likely_positive): New function.
20652
20653 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20654
20655 PR target/60693
20656 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20657 also if addr has VOIDmode.
20658
20659 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20660
20661 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20662 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20663 Declare extern.
20664 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20665 instructions as well as AdvancedSIMD loads.
20666
20667 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20668
20669 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20670 Use crypto_aese type.
20671 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20672 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20673 crypto_aese, crypto_aesmc. Move to types.md.
20674 * config/arm/types.md (crypto_aes): Split into crypto_aese,
20675 crypto_aesmc.
20676 * config/arm/iterators.md (crypto_type): Likewise.
20677
20678 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20679
20680 * cgraph.c: Include expr.h and tree-dfa.h.
20681 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20682 remove LHS.
20683
20684 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20685
20686 PR target/60675
20687 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20688 regs from checking multi-reg pseudos.
20689
20690 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20691
20692 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20693
20694 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20695
20696 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20697 if it would clobber the stack pointer, even temporarily.
20698
20699 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
20700
20701 * mode-switching.c: Make small adjustments to the top comment.
20702
20703 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
20704
20705 * config/rs6000/constraints.md (wD constraint): New constraint to
20706 match the constant integer to get the top DImode/DFmode out of a
20707 vector in a VSX register.
20708
20709 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20710 match the constant integer to get the top DImode/DFmode out of a
20711 vector in a VSX register.
20712
20713 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20714 for ISA 2.07.
20715
20716 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20717 vbpermq builtins.
20718
20719 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20720 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20721
20722 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20723 Optimize vec_extract of 64-bit values, where the value being
20724 extracted is in the top word, where we can use scalar
20725 instructions. Add direct move and store support. Combine the big
20726 endian/little endian vector select load support into a single insn.
20727 (vsx_extract_<mode>_internal1): Likewise.
20728 (vsx_extract_<mode>_internal2): Likewise.
20729 (vsx_extract_<mode>_load): Likewise.
20730 (vsx_extract_<mode>_store): Likewise.
20731 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20732 combined into vsx_extract_<mode>_load.
20733 (vsx_extract_<mode>_one_le): Likewise.
20734
20735 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20736 define the top 64-bit vector element.
20737
20738 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20739 constraint.
20740
20741 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20742 Document vec_vbpermq builtin.
20743
20744 PR target/60672
20745 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20746 enable use of xxsldwi and xxpermdi builtin functions.
20747 (vec_xxpermdi): Likewise.
20748
20749 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20750 Document use of vec_xxsldwi and vec_xxpermdi builtins.
20751
20752 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
20753
20754 PR rtl-optimization/60650
20755 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20756 first_p. Use it.
20757 (find_spills_for): New.
20758 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20759 Spill all pseudos on the second iteration.
20760
20761 2014-03-27 Marek Polacek <polacek@redhat.com>
20762
20763 PR c/50347
20764 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20765 types.
20766
20767 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20768
20769 * config/s390/s390.c (s390_can_use_return_insn): Check for
20770 call-saved FPRs on 31 bit.
20771
20772 2014-03-27 Jakub Jelinek <jakub@redhat.com>
20773
20774 PR middle-end/60682
20775 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
20776 if they need regimplification, just drop them instead of
20777 calling gimple_regimplify_operands on them.
20778
20779 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
20780
20781 PR target/60580
20782 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
20783 (aarch64_frame_pointer_required): Adjust logic.
20784 (aarch64_can_eliminate): Adjust logic.
20785 (aarch64_override_options_after_change): Adjust logic.
20786
20787 2014-03-27 Dehao Chen <dehao@google.com>
20788
20789 * ipa-inline.c (early_inliner): Update node's inline info.
20790
20791 2014-03-26 Dehao Chen <dehao@google.com>
20792
20793 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
20794 compiler inserted conditional jumps for NAN float check.
20795
20796 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20797
20798 * ubsan.h (ubsan_create_data): Change second argument's type
20799 to const location_t *.
20800 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
20801 _("<unknown>").
20802 (ubsan_create_data): Change second argument to const location_t *PLOC.
20803 Create Loc field whenever PLOC is non-NULL.
20804 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
20805 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
20806 callers.
20807
20808 PR other/59545
20809 * real.c (real_to_integer2): Change type of low to UHWI.
20810
20811 2014-03-26 Tobias Burnus <burnus@net-b.de>
20812
20813 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
20814 (CILK_SELF_SPECS): New define.
20815 (driver_self_specs): Use it.
20816
20817 2014-03-26 Richard Biener <rguenther@suse.de>
20818
20819 * tree-pretty-print.c (percent_K_format): Implement special
20820 case for LTO and its stripped down BLOCK tree.
20821
20822 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20823
20824 PR sanitizer/60636
20825 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
20826
20827 * tree-vrp.c (simplify_internal_call_using_ranges): If only
20828 one range is range_int_cst_p, but not both, at least optimize
20829 addition/subtraction of 0 and multiplication by 0 or 1.
20830 * gimple-fold.c (gimple_fold_call): Fold
20831 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
20832 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
20833 INTEGER_CSTs, try to fold at least x * 0 and y - y.
20834
20835 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
20836
20837 PR rtl-optimization/60452
20838 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
20839 <case REG>: Return 1 for invalid offsets from the frame pointer.
20840
20841 2014-03-26 Marek Polacek <polacek@redhat.com>
20842
20843 PR c/37428
20844 * doc/extend.texi (C Extensions): Mention variable-length arrays in
20845 a structure/union.
20846
20847 2014-03-26 Marek Polacek <polacek@redhat.com>
20848
20849 PR c/39525
20850 * doc/extend.texi (Designated Inits): Describe what happens to omitted
20851 field members.
20852
20853 2014-03-26 Marek Polacek <polacek@redhat.com>
20854
20855 PR other/59545
20856 * ira-color.c (update_conflict_hard_regno_costs): Perform the
20857 multiplication in unsigned type.
20858
20859 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20860
20861 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
20862
20863 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20864
20865 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
20866
20867 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20868
20869 PR ipa/60315
20870 * cif-code.def (UNREACHABLE) New code.
20871 * ipa-inline.c (inline_small_functions): Skip edges to
20872 __builtlin_unreachable.
20873 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
20874 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
20875 predicate to __bulitin_unreachable.
20876 (set_cond_stmt_execution_predicate): Fix issue when
20877 invert_tree_comparison returns ERROR_MARK.
20878 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
20879 propagate to inline clones.
20880 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
20881 to unreachable.
20882 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
20883 * cgraphclones.c (cgraph_clone_node): If call destination is already
20884 ureachable, do not redirect it back.
20885 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
20886 unreachable.
20887
20888 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20889
20890 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
20891 Do not modify inline clones.
20892
20893 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20894
20895 * config/i386/i386.md (general_sext_operand): New mode attr.
20896 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
20897 don't generate (sign_extend (const_int)).
20898 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
20899 operands[2]. Use We constraint instead of <i> and
20900 <general_sext_operand> predicate instead of <general_operand>.
20901 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
20902 * config/i386/constraints.md (We): New constraint.
20903 * config/i386/predicates.md (x86_64_sext_operand,
20904 sext_operand): New predicates.
20905
20906 2014-03-25 Martin Jambor <mjambor@suse.cz>
20907
20908 PR ipa/60600
20909 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
20910 inconsistent devirtualizations to __builtin_unreachable.
20911
20912 2014-03-25 Marek Polacek <polacek@redhat.com>
20913
20914 PR c/35449
20915 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
20916
20917 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
20918
20919 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
20920 order of elements for big-endian.
20921
20922 2014-03-25 Richard Biener <rguenther@suse.de>
20923
20924 PR middle-end/60635
20925 * gimplify-me.c (gimple_regimplify_operands): Update the
20926 re-gimplifed stmt.
20927
20928 2014-03-25 Martin Jambor <mjambor@suse.cz>
20929
20930 PR ipa/59176
20931 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
20932 (lto_output_varpool_node): Likewise.
20933 (input_overwrite_node): Likewise.
20934 (input_varpool_node): Likewise.
20935
20936 2014-03-25 Richard Biener <rguenther@suse.de>
20937
20938 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
20939 (run_gcc): Likewise.
20940
20941 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20942
20943 * combine.c (simplify_compare_const): Add MODE argument.
20944 Handle mode_width 0 as very large mode_width.
20945 (try_combine, simplify_comparison): Adjust callers.
20946
20947 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
20948 type to avoid signed integer overflow.
20949 * explow.c (plus_constant): Likewise.
20950
20951 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20952
20953 * doc/generic.texi: Correct typos.
20954
20955 2014-03-24 Tobias Burnus <burnus@net-b.de>
20956
20957 * doc/invoke.texi (-flto): Expand section about
20958 using static libraries with LTO.
20959
20960 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20961
20962 PR rtl-optimization/60501
20963 * optabs.def (addptr3_optab): New optab.
20964 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
20965 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
20966 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
20967
20968 * lra.c (emit_add3_insn): Use the addptr pattern if available.
20969
20970 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
20971
20972 2014-03-24 Ulrich Drepper <drepper@gmail.com>
20973
20974 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
20975 _mm512_set1_pd.
20976
20977 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
20978 (_mm256_undefined_ps): Define.
20979 (_mm256_undefined_pd): Define.
20980 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
20981 (_mm_undefined_pd): Define.
20982 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
20983 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
20984 (_mm512_undefined_ps): Define.
20985 (_mm512_undefined_pd): Define.
20986 Use _mm*_undefined_*.
20987 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
20988
20989 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
20990
20991 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
20992 (lshr_simd): DI mode added.
20993 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
20994 (aarch64_ushr_simddi): Likewise.
20995 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
20996 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
20997 (vshrd_n_u64): Likewise.
20998
20999 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21000
21001 * Makefile.in (s-macro_list): Depend on cc1.
21002
21003 2014-03-23 Teresa Johnson <tejohnson@google.com>
21004
21005 * ipa-utils.c (ipa_print_order): Use specified dump file.
21006
21007 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21008
21009 PR rtl-optimization/60601
21010 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21011
21012 * gcc.c (eval_spec_function): Initialize save_growing_value.
21013
21014 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21015
21016 PR sanitizer/60613
21017 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21018 code == MINUS_EXPR, never swap op0 with op1.
21019
21020 * toplev.c (init_local_tick): Avoid signed integer multiplication
21021 overflow.
21022 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21023 shift by first operand's bitsize.
21024
21025 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21026
21027 PR target/60610
21028 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21029 redefine to 1 or 0.
21030 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21031 TARGET_ISA_64BIT_P(x).
21032
21033 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21034
21035 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21036 pattern for vector nor instead of subtract from splat(-1).
21037 (altivec_expand_vec_perm_const_le): Likewise.
21038
21039 2014-03-21 Richard Henderson <rth@twiddle.net>
21040
21041 PR target/60598
21042 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21043 related insns after epilogue_completed.
21044
21045 2014-03-21 Martin Jambor <mjambor@suse.cz>
21046
21047 PR ipa/59176
21048 * cgraph.h (symtab_node): New flag body_removed.
21049 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21050 when removing bodies.
21051 * symtab.c (dump_symtab_base): Dump body_removed flag.
21052 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21053 had their bodies removed.
21054
21055 2014-03-21 Martin Jambor <mjambor@suse.cz>
21056
21057 PR ipa/60419
21058 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21059 in the border.
21060
21061 2014-03-21 Richard Biener <rguenther@suse.de>
21062
21063 PR tree-optimization/60577
21064 * tree-core.h (struct tree_base): Document nothrow_flag use
21065 in DECL_NONALIASED.
21066 * tree.h (DECL_NONALIASED): New.
21067 (may_be_aliased): Adjust.
21068 * coverage.c (build_var): Set DECL_NONALIASED.
21069
21070 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21071
21072 * expr.c (expand_expr_real_1): Remove outdated comment.
21073
21074 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21075
21076 PR middle-end/60597
21077 * ira.c (adjust_cleared_regs): Call copy_rtx on
21078 *reg_equiv[REGNO (loc)].src_p before passing it to
21079 simplify_replace_fn_rtx.
21080
21081 PR target/60568
21082 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21083 into CONST, put pic register as first operand of PLUS. Use
21084 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21085
21086 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21087
21088 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21089
21090 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21091
21092 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21093 around for store forwarding issue in the FPU on the UT699.
21094 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21095 loads and operations if -mfix-ut699 is specified.
21096 (divtf3_hq): Tweak attribute.
21097 (sqrttf2_hq): Likewise.
21098
21099 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21100
21101 * calls.c (store_one_arg): Remove incorrect const qualification on the
21102 type of the temporary.
21103 * cfgexpand.c (expand_return): Likewise.
21104 * expr.c (expand_constructor): Likewise.
21105 (expand_expr_real_1): Likewise.
21106
21107 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21108
21109 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21110 of parts.
21111
21112 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21113
21114 PR target/60039
21115 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21116
21117 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21118
21119 * config/arm/aarch-common-protos.h
21120 (alu_cost_table): Fix spelling of "extend".
21121 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21122
21123 2014-03-19 Richard Biener <rguenther@suse.de>
21124
21125 PR middle-end/60553
21126 * tree-core.h (tree_type_common): Re-order pointer members
21127 to reduce recursion depth during GC walks.
21128
21129 2014-03-19 Marek Polacek <polacek@redhat.com>
21130
21131 PR sanitizer/60569
21132 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21133 before accessing it.
21134
21135 2014-03-19 Richard Biener <rguenther@suse.de>
21136
21137 PR lto/59543
21138 * lto-streamer-in.c (input_function): In WPA stage do not drop
21139 debug stmts.
21140
21141 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21142
21143 PR tree-optimization/60559
21144 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21145 with build_zero_cst assignment.
21146
21147 2014-03-18 Kai Tietz <ktietz@redhat.com>
21148
21149 PR rtl-optimization/56356
21150 * sdbout.c (sdbout_parms): Verify that parms'
21151 incoming argument is valid.
21152 (sdbout_reg_parms): Likewise.
21153
21154 2014-03-18 Richard Henderson <rth@redhat.com>
21155
21156 PR target/60562
21157 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21158 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21159 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21160
21161 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21162
21163 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21164 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21165 Italicize plugin event names in description. Explain that
21166 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21167 Remind that no GCC functions should be called after PLUGIN_FINISH.
21168 Explain what pragmas with expansion are.
21169
21170 2014-03-18 Martin Liska <mliska@suse.cz>
21171
21172 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21173 gimple call statement is update.
21174 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21175 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21176
21177 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21178
21179 PR sanitizer/60557
21180 * ubsan.c (ubsan_instrument_unreachable): Call
21181 initialize_sanitizer_builtins.
21182 (ubsan_pass): Likewise.
21183
21184 PR sanitizer/60535
21185 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21186 varpool_finalize_decl instead of rest_of_decl_compilation.
21187
21188 2014-03-18 Richard Biener <rguenther@suse.de>
21189
21190 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21191 by using bitmap_and_compl instead of bitmap_and_compl_into.
21192 (df_rd_transfer_function): Likewise.
21193
21194 2014-03-18 Richard Biener <rguenther@suse.de>
21195
21196 * doc/lto.texi (fresolution): Fix typo.
21197
21198 2014-03-18 Richard Biener <rguenther@suse.de>
21199
21200 * doc/invoke.texi (flto): Update for changes in 4.9.
21201
21202 2014-03-18 Richard Biener <rguenther@suse.de>
21203
21204 * doc/loop.texi: Remove section on the removed lambda framework.
21205 Update loop docs with recent changes in preserving loop structure.
21206
21207 2014-03-18 Richard Biener <rguenther@suse.de>
21208
21209 * doc/lto.texi (-fresolution): Document.
21210
21211 2014-03-18 Richard Biener <rguenther@suse.de>
21212
21213 * doc/contrib.texi: Adjust my name.
21214
21215 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21216
21217 PR ipa/58721
21218 * internal-fn.c: Include diagnostic-core.h.
21219 (expand_BUILTIN_EXPECT): New function.
21220 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21221 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21222 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21223 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21224 IFN_BUILTIN_EXPECT.
21225 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21226 Revert 3 argument __builtin_expect code.
21227 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21228 * gimple-fold.c (gimple_fold_call): Likewise.
21229 * tree.h (fold_builtin_expect): New prototype.
21230 * builtins.c (build_builtin_expect_predicate): Add predictor
21231 argument, if non-NULL, create 3 argument __builtin_expect.
21232 (fold_builtin_expect): No longer static. Add ARG2 argument,
21233 pass it through to build_builtin_expect_predicate.
21234 (fold_builtin_2): Adjust caller.
21235 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21236 * internal-fn.def (BUILTIN_EXPECT): New.
21237
21238 2014-03-18 Tobias Burnus <burnus@net-b.de>
21239
21240 PR ipa/58721
21241 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21242 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21243 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21244
21245 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21246
21247 PR ipa/58721
21248 * predict.c (combine_predictions_for_bb): Fix up formatting.
21249 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21250 fill what it points to if non-NULL.
21251 (tree_predict_by_opcode): Adjust caller, use the predictor.
21252 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21253
21254 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21255
21256 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21257 proper constant for the store mode.
21258
21259 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21260
21261 * symtab.c (change_decl_assembler_name): Fix transparent alias
21262 chain construction.
21263
21264 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21265
21266 * config/aarch64/aarch64.c: Correct the comments about the
21267 aarch64 stack layout.
21268
21269 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21270
21271 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21272 check for GF_OMP_FOR_KIND_FOR.
21273
21274 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21275
21276 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21277 ymm and zmm register names.
21278
21279 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21280
21281 PR target/60516
21282 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21283 note creation for the 2010-08-31 changes.
21284
21285 2014-03-17 Marek Polacek <polacek@redhat.com>
21286
21287 PR middle-end/60534
21288 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21289 as -fno-tree-loop-vectorize.
21290 (expand_omp_simd): Likewise.
21291
21292 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21293
21294 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21295 (eligible_for_call_delay): New prototype.
21296 * config/sparc/sparc.c (tls_call_delay): Rename into...
21297 (eligible_for_call_delay): ...this. Return false if the instruction
21298 cannot be put in the delay slot of a branch.
21299 (eligible_for_restore_insn): Simplify.
21300 (eligible_for_return_delay): Return false if the instruction cannot be
21301 put in the delay slot of a branch and simplify.
21302 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21303 put in the delay slot of a branch.
21304 * config/sparc/sparc.md (fix_ut699): New attribute.
21305 (tls_call_delay): Delete.
21306 (in_call_delay): Reimplement.
21307 (eligible_for_sibcall_delay): Rename into...
21308 (in_sibcall_delay): ...this.
21309 (eligible_for_return_delay): Rename into...
21310 (in_return_delay): ...this.
21311 (in_branch_delay): Reimplement.
21312 (in_uncond_branch_delay): Delete.
21313 (in_annul_branch_delay): Delete.
21314
21315 2014-03-14 Richard Henderson <rth@redhat.com>
21316
21317 PR target/60525
21318 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21319 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21320 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21321 (floathi splitters): Remove.
21322 (float<SWI48x>xf2): New pattern.
21323 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21324 code that tried to handle DImode for 32-bit, but which was excluded
21325 by the pattern's condition. Drop allocation of stack temporary.
21326 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21327 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21328 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21329 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21330 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21331 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21332 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21333 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21334 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21335 (*float<SWI48x><X87MODEF>2_i387): Remove.
21336 (all float _with_temp splitters): Remove.
21337 (*float<SWI48x><MODEF>2_i387): New pattern.
21338 (*float<SWI48><MODEF>2_sse): New pattern.
21339 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21340 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21341
21342 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21343 Marek Polacek <polacek@redhat.com>
21344
21345 PR middle-end/60484
21346 * common.opt (dump_base_name_prefixed): New Variable.
21347 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21348 if x_dump_base_name_prefixed is already set, set it at the end.
21349
21350 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21351
21352 PR rtl-optimization/60508
21353 * lra-constraints.c (get_reload_reg): Add new parameter
21354 in_subreg_p.
21355 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21356 Pass the new parameter values.
21357
21358 2014-03-14 Richard Biener <rguenther@suse.de>
21359
21360 * common.opt: Revert unintented changes from r205065.
21361 * opts.c: Likewise.
21362
21363 2014-03-14 Richard Biener <rguenther@suse.de>
21364
21365 PR middle-end/60518
21366 * cfghooks.c (split_block): Properly adjust all loops the
21367 block was a latch of.
21368
21369 2014-03-14 Martin Jambor <mjambor@suse.cz>
21370
21371 PR lto/60461
21372 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21373 and simplify it.
21374
21375 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21376
21377 PR target/59396
21378 * config/avr/avr.c (avr_set_current_function): Pass function name
21379 through default_strip_name_encoding before sanity checking instead
21380 of skipping the first char of the assembler name.
21381
21382 2014-03-13 Richard Henderson <rth@redhat.com>
21383
21384 PR debug/60438
21385 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21386 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21387 * config/i386/i386-protos.h: Likewise.
21388 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21389 in the expander instead of a splitter.
21390 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21391 any possibility of requiring a memory.
21392 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21393 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21394 (fp branch splitters): Update for ix86_split_fp_branch.
21395 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21396 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21397 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21398 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21399 (*fop_<MODEF>_3_i387): Likewise.
21400 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21401 (splitters for the fop_* register patterns): Remove.
21402 (fscalexf4_i387): Rename from *fscalexf4_i387.
21403 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21404
21405 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21406
21407 PR tree-optimization/59779
21408 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21409 type for bitsize and maxsize instead of HOST_WIDE_INT.
21410
21411 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21412
21413 PR rtl-optimization/57320
21414 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21415 the CFG after thread_prologue_and_epilogue_insns.
21416
21417 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21418
21419 PR rtl-optimization/57189
21420 * lra-constraints.c (process_alt_operands): Disfavor spilling
21421 vector pseudos.
21422
21423 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21424
21425 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21426
21427 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21428
21429 PR tree-optimization/59025
21430 PR middle-end/60418
21431 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21432 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21433
21434 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21435
21436 PR target/60486
21437 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21438 calls of avr_out_plus_1.
21439
21440 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21441
21442 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21443 BB's single pred and update the father loop's latch info later.
21444
21445 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21446
21447 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21448 (VEC_M): Likewise.
21449 (VEC_N): Likewise.
21450 (VEC_R): Likewise.
21451 (VEC_base): Likewise.
21452 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21453 registers, we need to swap double words in little endian mode.
21454
21455 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21456 to be a container mode for 128-bit integer operations added in ISA
21457 2.07. Unlike TImode and PTImode, the preferred register set is
21458 the Altivec/VMX registers for the 128-bit operations.
21459
21460 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21461 declarations.
21462 (rs6000_split_128bit_ok_p): Likewise.
21463
21464 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21465 macros for creating ISA 2.07 normal and overloaded builtin
21466 functions with 3 arguments.
21467 (BU_P8V_OVERLOAD_3): Likewise.
21468 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21469 for use as overloaded functions.
21470 (VPERM_1TI_UNS): Likewise.
21471 (VSEL_1TI): Likewise.
21472 (VSEL_1TI_UNS): Likewise.
21473 (ST_INTERNAL_1ti): Likewise.
21474 (LD_INTERNAL_1ti): Likewise.
21475 (XXSEL_1TI): Likewise.
21476 (XXSEL_1TI_UNS): Likewise.
21477 (VPERM_1TI): Likewise.
21478 (VPERM_1TI_UNS): Likewise.
21479 (XXPERMDI_1TI): Likewise.
21480 (SET_1TI): Likewise.
21481 (LXVD2X_V1TI): Likewise.
21482 (STXVD2X_V1TI): Likewise.
21483 (VEC_INIT_V1TI): Likewise.
21484 (VEC_SET_V1TI): Likewise.
21485 (VEC_EXT_V1TI): Likewise.
21486 (EQV_V1TI): Likewise.
21487 (NAND_V1TI): Likewise.
21488 (ORC_V1TI): Likewise.
21489 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21490 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21491 overloaded builtin.
21492 (VADDUQM): Likewise.
21493 (VSUBCUQ): Likewise.
21494 (VADDEUQM): Likewise.
21495 (VADDECUQ): Likewise.
21496 (VSUBEUQM): Likewise.
21497 (VSUBECUQ): Likewise.
21498
21499 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21500 __int128_t and __uint128_t types.
21501 (__uint128_type): Likewise.
21502 (altivec_categorize_keyword): Add support for vector __int128_t,
21503 vector __uint128_t, vector __int128, and vector unsigned __int128
21504 as a container type for TImode operations that need to be done in
21505 VSX/Altivec registers.
21506 (rs6000_macro_to_expand): Likewise.
21507 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21508 to support 128-bit integer instructions vaddcuq, vadduqm,
21509 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21510 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21511
21512 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21513 for V1TImode, and set up preferences to use VSX/Altivec registers.
21514 Setup VSX reload handlers.
21515 (rs6000_debug_reg_global): Likewise.
21516 (rs6000_init_hard_regno_mode_ok): Likewise.
21517 (rs6000_preferred_simd_mode): Likewise.
21518 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21519 (easy_altivec_constant): Likewise.
21520 (output_vec_const_move): Likewise.
21521 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21522 simple move.
21523 (rs6000_expand_vector_extract): Likewise.
21524 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21525 addressing.
21526 (rs6000_const_vec): Add support for V1TImode.
21527 (rs6000_emit_le_vsx_load): Swap double words when loading or
21528 storing TImode/V1TImode.
21529 (rs6000_emit_le_vsx_store): Likewise.
21530 (rs6000_emit_le_vsx_move): Likewise.
21531 (rs6000_emit_move): Add support for V1TImode.
21532 (altivec_expand_ld_builtin): Likewise.
21533 (altivec_expand_st_builtin): Likewise.
21534 (altivec_expand_vec_init_builtin): Likewise.
21535 (altivec_expand_builtin): Likewise.
21536 (rs6000_init_builtins): Add support for V1TImode type. Add
21537 support for ISA 2.07 128-bit integer builtins. Define type names
21538 for the VSX/Altivec vector types.
21539 (altivec_init_builtins): Add support for overloaded vector
21540 functions with V1TImode type.
21541 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21542 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21543 external function.
21544 (rs6000_split_128bit_ok_p): Likewise.
21545 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21546 __int128_t and vector __uint128_t.
21547
21548 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21549 and mode attributes.
21550 (VSX_M): Likewise.
21551 (VSX_M2): Likewise.
21552 (VSm): Likewise.
21553 (VSs): Likewise.
21554 (VSr): Likewise.
21555 (VSv): Likewise.
21556 (VS_scalar): Likewise.
21557 (VS_double): Likewise.
21558 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21559
21560 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21561 we support the ISA 2.07 128-bit integer arithmetic instructions.
21562 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21563 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21564 and TImode types for use with the builtin functions.
21565 (V1TI_type_node): Likewise.
21566 (unsigned_V1TI_type_node): Likewise.
21567 (intTI_type_internal_node): Likewise.
21568 (uintTI_type_internal_node): Likewise.
21569
21570 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21571 128-bit builtin functions.
21572 (UNSPEC_VADDEUQM): Likewise.
21573 (UNSPEC_VADDECUQ): Likewise.
21574 (UNSPEC_VSUBCUQ): Likewise.
21575 (UNSPEC_VSUBEUQM): Likewise.
21576 (UNSPEC_VSUBECUQ): Likewise.
21577 (VM): Add V1TImode to vector mode iterators.
21578 (VM2): Likewise.
21579 (VI_unit): Likewise.
21580 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21581 (altivec_vaddcuq): Likewise.
21582 (altivec_vsubuqm): Likewise.
21583 (altivec_vsubcuq): Likewise.
21584 (altivec_vaddeuqm): Likewise.
21585 (altivec_vaddecuq): Likewise.
21586 (altivec_vsubeuqm): Likewise.
21587 (altivec_vsubecuq): Likewise.
21588
21589 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21590 mode iterators.
21591 (BOOL_128): Likewise.
21592 (BOOL_REGS_OUTPUT): Likewise.
21593 (BOOL_REGS_OP1): Likewise.
21594 (BOOL_REGS_OP2): Likewise.
21595 (BOOL_REGS_UNARY): Likewise.
21596 (BOOL_REGS_AND_CR0): Likewise.
21597
21598 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21599 128-bit integer builtin support.
21600 (vec_vadduqm): Likewise.
21601 (vec_vaddecuq): Likewise.
21602 (vec_vaddeuqm): Likewise.
21603 (vec_vsubecuq): Likewise.
21604 (vec_vsubeuqm): Likewise.
21605 (vec_vsubcuq): Likewise.
21606 (vec_vsubuqm): Likewise.
21607
21608 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21609 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21610 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21611 128-bit integer add/subtract to ISA 2.07.
21612
21613 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21614
21615 * config/arc/arc.c (arc_predicate_delay_insns):
21616 Fix third argument passed to conditionalize_nonjump.
21617
21618 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21619
21620 * config/aarch64/aarch64-builtins.c
21621 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21622 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21623 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21624 instead of __builtin_lfloor.
21625 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21626
21627 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21628
21629 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21630 (tree_ssa_ifcombine_bb_1): New function.
21631 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21632 is an empty forwarder block to then_bb or vice versa and then_bb
21633 and else_bb are effectively swapped.
21634
21635 2014-03-12 Christian Bruel <christian.bruel@st.com>
21636
21637 PR target/60264
21638 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21639 REG_CFA_DEF_CFA note.
21640 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21641 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21642
21643 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21644
21645 PR tree-optimization/60454
21646 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21647
21648 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21649
21650 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21651 Do not define target_cpu_default2 to generic.
21652 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21653 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21654 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21655
21656 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21657 Marc Glisse <marc.glisse@inria.fr>
21658
21659 PR tree-optimization/60502
21660 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21661 instead of build_low_bits_mask.
21662
21663 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21664
21665 PR middle-end/60482
21666 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21667 if there are multiple uses, but op doesn't live on E edge.
21668 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21669 clobber stmts before __builtin_unreachable.
21670
21671 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
21672
21673 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21674 hard_frame_pointer_rtx.
21675 * cse.c (cse_insn): Remove volatile check.
21676 * cselib.c (cselib_process_insn): Likewise.
21677 * dse.c (scan_insn): Likewise.
21678
21679 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21680
21681 * config/arc/arc.c (conditionalize_nonjump): New function,
21682 broken out of ...
21683 (arc_ifcvt): ... this.
21684 (arc_predicate_delay_insns): Use it.
21685
21686 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21687
21688 * config/arc/predicates.md (extend_operand): During/after reload,
21689 allow const_int_operand.
21690 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21691 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
21692 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21693 to "i".
21694 (umulsi3_highpart_i): Likewise.
21695
21696 2014-03-11 Richard Biener <rguenther@suse.de>
21697
21698 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21699 Add asserts to guard possible wrong-code bugs.
21700
21701 2014-03-11 Richard Biener <rguenther@suse.de>
21702
21703 PR tree-optimization/60429
21704 PR tree-optimization/60485
21705 * tree-ssa-structalias.c (set_union_with_increment): Properly
21706 take into account all fields that overlap the shifted vars.
21707 (do_sd_constraint): Likewise.
21708 (do_ds_constraint): Likewise.
21709 (get_constraint_for_ptr_offset): Likewise.
21710
21711 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
21712
21713 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21714 (nios2_compute_frame_layout):
21715 Add calculation of cfun->machine->fp_save_offset.
21716 (nios2_expand_prologue): Correct setting of frame pointer register
21717 in prologue.
21718 (nios2_expand_epilogue): Update recovery of stack pointer from
21719 frame pointer accordingly.
21720 (nios2_initial_elimination_offset): Update calculation of offset
21721 for eliminating to HARD_FRAME_POINTER_REGNUM.
21722
21723 2014-03-10 Jakub Jelinek <jakub@redhat.com>
21724
21725 PR ipa/60457
21726 * ipa.c (symtab_remove_unreachable_nodes): Don't call
21727 cgraph_get_create_node on VAR_DECLs.
21728
21729 2014-03-10 Richard Biener <rguenther@suse.de>
21730
21731 PR middle-end/60474
21732 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21733
21734 2014-03-08 Douglas B Rupp <rupp@gnat.com>
21735
21736 * config/vms/vms.opt (vms_float_format): New variable.
21737
21738 2014-03-08 Tobias Burnus <burnus@net-b.de>
21739
21740 * doc/invoke.texi (-fcilkplus): Update implementation status.
21741
21742 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
21743 Richard Biener <rguenther@suse.de>
21744
21745 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21746 consistently accross all TUs.
21747 (run_gcc): Enable -fshort-double automatically at link at link-time
21748 and disallow override.
21749
21750 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
21751
21752 PR target/58271
21753 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21754 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21755 if they can't be used.
21756
21757 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21758
21759 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21760 for Solaris 11/x86 ld.
21761 * configure: Regenerate.
21762
21763 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21764
21765 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21766 (LIB_TLS_SPEC): Save as ld_tls_libs.
21767 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21768 (HAVE_AS_IX86_TLSLDM): New test.
21769 * configure, config.in: Regenerate.
21770 * config/i386/i386.c (legitimize_tls_address): Fall back to
21771 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
21772 cannot support TLS_MODEL_LOCAL_DYNAMIC.
21773 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
21774 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
21775
21776 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
21777
21778 * common.opt (fira-loop-pressure): Mark as optimization.
21779
21780 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
21781
21782 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
21783 an OpenMP mappable type.
21784
21785 2014-03-06 Matthias Klose <doko@ubuntu.com>
21786
21787 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
21788 MULTILIB_OSDIRNAMES is not defined.
21789
21790 2014-03-06 Jakub Jelinek <jakub@redhat.com>
21791 Meador Inge <meadori@codesourcery.com>
21792
21793 PR target/58595
21794 * config/arm/arm.c (arm_tls_symbol_p): Remove.
21795 (arm_legitimize_address): Call legitimize_tls_address for any
21796 arm_tls_referenced_p expression, handle constant addend. Call it
21797 before testing for !TARGET_ARM.
21798 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
21799
21800 2014-03-06 Richard Biener <rguenther@suse.de>
21801
21802 PR middle-end/60445
21803 PR lto/60424
21804 PR lto/60427
21805 Revert
21806 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21807
21808 * tree-streamer.c (record_common_node): Assert we don't record
21809 nodes with type double.
21810 (preload_common_node): Skip type double, complex double and double
21811 pointer since it is now frontend dependent due to fshort-double option.
21812
21813 2014-03-06 Richard Biener <rguenther@suse.de>
21814
21815 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
21816 or -fno-lto is specified and the linker has full plugin support.
21817 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
21818 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
21819 * lto-wrapper.c (merge_and_complain): Merge compile-time
21820 optimization levels.
21821 (run_gcc): And pass it through to the link options.
21822
21823 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
21824
21825 PR debug/60381
21826 Revert:
21827 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21828 PR debug/59992
21829 * cselib.c (remove_useless_values): Skip to avoid quadratic
21830 behavior if the condition moved from...
21831 (cselib_process_insn): ... here holds.
21832
21833 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21834
21835 PR plugins/59335
21836 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
21837 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
21838
21839 PR plugins/59335
21840 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
21841 (TM_H): Add x86-tune.def.
21842
21843 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21844
21845 * config/aarch64/aarch64.c (generic_tunings):
21846 Use cortexa57_extra_costs.
21847
21848 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21849
21850 PR lto/60404
21851 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
21852 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
21853 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
21854 cost for in_lto_p.
21855
21856 2014-03-04 Heiher <r@hev.cc>
21857
21858 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
21859 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
21860
21861 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
21862
21863 * config/i386/predicates.md (const2356_operand): Change to ...
21864 (const2367_operand): ... this.
21865 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
21866 const2367_operand.
21867 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21868 (*avx512pf_scatterpf<mode>sf): Ditto.
21869 (avx512pf_scatterpf<mode>df): Ditto.
21870 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21871 (*avx512pf_scatterpf<mode>df): Ditto.
21872 * config/i386/i386.c (ix86_expand_builtin): Update
21873 incorrect hint operand error message.
21874
21875 2014-03-04 Richard Biener <rguenther@suse.de>
21876
21877 * lto-section-in.c (lto_get_section_data): Fix const cast.
21878
21879 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21880
21881 * tree-streamer.c (record_common_node): Assert we don't record
21882 nodes with type double.
21883 (preload_common_node): Skip type double, complex double and double
21884 pointer since it is now frontend dependent due to fshort-double option.
21885
21886 2014-03-04 Richard Biener <rguenther@suse.de>
21887
21888 PR lto/60405
21889 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
21890 (lto_input_toplevel_asms): Likewise.
21891 * lto-section-in.c (lto_get_section_data): Instead do it here
21892 for every section.
21893
21894 2014-03-04 Richard Biener <rguenther@suse.de>
21895
21896 PR tree-optimization/60382
21897 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
21898 dead PHIs a reduction.
21899
21900 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
21901
21902 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
21903 hint value.
21904 (_mm_prefetch): Move out of GCC target("sse") pragma.
21905 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
21906 GCC target("prfchw") pragma.
21907 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
21908 for locality <= 2.
21909 * config/i386/i386.c (ix86_option_override_internal): Enable
21910 -mprfchw with -mprefetchwt1.
21911
21912 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21913
21914 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
21915 Mark as varying.
21916
21917 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21918
21919 * opts.h (CL_PCH_IGNORE): Define.
21920 * targhooks.c (option_affects_pch_p):
21921 Return false for options that have CL_PCH_IGNORE set.
21922 * opt-functions.awk: Process PchIgnore.
21923 * doc/options.texi: Document PchIgnore.
21924
21925 * config/arc/arc.opt (misize): Add PchIgnore property.
21926
21927 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21928
21929 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
21930 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
21931 constraint on constants to permit them being loaded into
21932 GENERAL_REGS or BASE_REGS.
21933
21934 2014-03-03 Nick Clifton <nickc@redhat.com>
21935
21936 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
21937 anti-cacnonical alternatives.
21938 (negandhi3_real): New pattern.
21939 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
21940
21941 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21942
21943 * config/avr/avr-mcus.def: Remove atxmega16x1.
21944 * config/avr/avr-tables.opt: Regenerate.
21945 * config/avr/t-multilib: Regenerate.
21946 * doc/avr-mmcu.texi: Regenerate.
21947
21948 2014-03-03 Tobias Grosser <tobias@grosser.es>
21949 Mircea Namolaru <mircea.namolaru@inria.fr>
21950
21951 PR tree-optimization/58028
21952 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
21953 scalar dimensions.
21954
21955 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21956
21957 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
21958 not handled by recognizers.
21959
21960 2014-03-03 Jakub Jelinek <jakub@redhat.com>
21961
21962 PR middle-end/60175
21963 * function.c (expand_function_end): Don't emit
21964 clobber_return_register sequence if clobber_after is a BARRIER.
21965 * cfgexpand.c (construct_exit_block): Append instructions before
21966 return_label to prev_bb.
21967
21968 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21969
21970 * config/rs6000/constraints.md: Document reserved use of "wc".
21971
21972 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21973
21974 PR ipa/60150
21975 * ipa.c (function_and_variable_visibility): When dissolving comdat
21976 group, also set all symbols to local.
21977
21978 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21979
21980 PR ipa/60306
21981
21982 Revert:
21983 2013-12-14 Jan Hubicka <jh@suse.cz>
21984 PR middle-end/58477
21985 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
21986
21987 2014-03-02 Jon Beniston <jon@beniston.com>
21988
21989 PR bootstrap/48230
21990 PR bootstrap/50927
21991 PR bootstrap/52466
21992 PR target/46898
21993 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
21994 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
21995 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
21996 (simple_return, *simple_return): New patterns
21997 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
21998 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
21999
22000 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22001
22002 * dwarf2out.c (gen_subprogram_die): Tidy.
22003
22004 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22005
22006 PR target/60071
22007 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22008 (*mov_t_msb_neg_negc): ... this new insn.
22009
22010 2014-02-28 Jason Merrill <jason@redhat.com>
22011
22012 PR c++/58678
22013 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22014 function.
22015
22016 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22017
22018 PR c++/60314
22019 * dwarf2out.c (decltype_auto_die): New static.
22020 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22021 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22022 (is_cxx_auto): Likewise.
22023
22024 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22025
22026 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22027 we are not using general regs only.
22028
22029 2014-02-28 Richard Biener <rguenther@suse.de>
22030
22031 PR target/60280
22032 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22033 previous fix and only allow to remove trivial pre-headers
22034 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22035 (remove_forwarder_block): Properly update the latch of a loop.
22036
22037 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22038
22039 PR debug/59992
22040 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22041 (cselib_preserved_hash_table): New.
22042 (preserve_constants_and_equivs): Move preserved vals to it.
22043 (cselib_find_slot): Look it up first.
22044 (cselib_init): Initialize it.
22045 (cselib_finish): Release it.
22046 (dump_cselib_table): Dump it.
22047
22048 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22049
22050 PR debug/59992
22051 * cselib.c (remove_useless_values): Skip to avoid quadratic
22052 behavior if the condition moved from...
22053 (cselib_process_insn): ... here holds.
22054
22055 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22056
22057 PR debug/57232
22058 * var-tracking.c (vt_initialize): Apply the same condition to
22059 preserve the CFA base value.
22060
22061 2014-02-28 Joey Ye <joey.ye@arm.com>
22062
22063 PR target/PR60169
22064 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22065 if reload in progress or completed.
22066
22067 2014-02-28 Tobias Burnus <burnus@net-b.de>
22068
22069 PR middle-end/60147
22070 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22071 NAMELIST_DECL.
22072
22073 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22074
22075 * doc/tm.texi.in (Condition Code Status): Update documention for
22076 relative locations of cc0-setter and cc0-user.
22077
22078 2014-02-27 Jeff Law <law@redhat.com>
22079
22080 PR rtl-optimization/52714
22081 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22082 into two independent simple sets, if I3 is a jump, ensure the
22083 pattern we place into I3 is a (set (pc) ...).
22084
22085 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22086 Jeff Law <law@redhat.com>
22087
22088 PR rtl-optimization/49847
22089 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22090 are in different blocks.
22091 * doc/tm.texi (Condition Code Status): Update documention for
22092 relative locations of cc0-setter and cc0-user.
22093
22094 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22095
22096 PR target/59222
22097 * lra.c (lra_emit_add): Check SUBREG too.
22098
22099 2014-02-27 Andreas Schwab <schwab@suse.de>
22100
22101 * config/m68k/m68k.c (m68k_option_override): Disable
22102 -flive-range-shrinkage for classic m68k.
22103 (m68k_override_options_after_change): Likewise.
22104
22105 2014-02-27 Marek Polacek <polacek@redhat.com>
22106
22107 PR middle-end/59223
22108 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22109 -Wmaybe-uninitialized.
22110
22111 2014-02-27 Alan Modra <amodra@gmail.com>
22112
22113 PR target/57936
22114 * reload1.c (emit_input_reload_insns): When reload_override_in,
22115 set old to rl->in_reg when rl->in_reg is a subreg.
22116
22117 2014-02-26 Richard Biener <rguenther@suse.de>
22118
22119 PR bootstrap/60343
22120 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22121
22122 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22123
22124 * common/config/i386/predicates.md (const1256_operand): Remove.
22125 (const2356_operand): New.
22126 (const_1_to_2_operand): Remove.
22127 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22128 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22129 (*avx512pf_gatherpf<mode>sf): Ditto.
22130 (avx512pf_gatherpf<mode>df): Ditto.
22131 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22132 (*avx512pf_gatherpf<mode>df): Ditto.
22133 (avx512pf_scatterpf<mode>sf): Ditto.
22134 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22135 (*avx512pf_scatterpf<mode>sf): Ditto.
22136 (avx512pf_scatterpf<mode>df): Ditto.
22137 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22138 (*avx512pf_scatterpf<mode>df): Ditto.
22139 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22140
22141 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22142
22143 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22144 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22145 (_mm512_mask_testn_epi64_mask): Move to ...
22146 * config/i386/avx512cdintrin.h: Here.
22147 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22148 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22149 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22150 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22151 TARGET_AVX512F from TARGET_AVX512CD.
22152
22153 2014-02-26 Richard Biener <rguenther@suse.de>
22154
22155 PR ipa/60327
22156 * ipa.c (walk_polymorphic_call_targets): Properly guard
22157 call to inline_update_overall_summary.
22158
22159 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22160
22161 PR target/60280
22162 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22163 and latches only if requested. Fix latch if it is removed.
22164 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22165 LOOPS_HAVE_PREHEADERS.
22166
22167 2014-02-25 Andrew Pinski <apinski@cavium.com>
22168
22169 * builtins.c (expand_builtin_thread_pointer): Create a new target
22170 when the target is NULL.
22171
22172 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22173
22174 PR rtl-optimization/60317
22175 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22176 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22177 * lra-assigns.c: Include params.h.
22178 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22179 other reload pseudos considerations.
22180
22181 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22182
22183 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22184 to use canonical form for nor<mode>3.
22185
22186 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22187
22188 PR target/55426
22189 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22190 conversions.
22191
22192 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22193
22194 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22195 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22196 (ix86_handle_option): Handle OPT_mprefetchwt1.
22197 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22198 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22199 PREFETCHWT1 CPUID.
22200 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22201 OPTION_MASK_ISA_PREFETCHWT1.
22202 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22203 (PTA_PREFETCHWT1): New.
22204 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22205 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22206 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22207 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22208 (*prefetch_avx512pf_<mode>_: Change into ...
22209 (*prefetch_prefetchwt1_<mode>: This.
22210 * config/i386/i386.opt (mprefetchwt1): New.
22211 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22212 (_mm_prefetch): Handle intent to write.
22213 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22214
22215 2014-02-25 Richard Biener <rguenther@suse.de>
22216
22217 PR middle-end/60291
22218 * emit-rtl.c (mem_attrs_htab): Remove.
22219 (mem_attrs_htab_hash): Likewise.
22220 (mem_attrs_htab_eq): Likewise.
22221 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22222 (init_emit_once): Do not allocate mem_attrs_htab.
22223
22224 2014-02-25 Richard Biener <rguenther@suse.de>
22225
22226 PR lto/60319
22227 * lto-opts.c (lto_write_options): Output non-explicit conservative
22228 -fwrapv, -fno-trapv and -fno-strict-overflow.
22229 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22230 (run_gcc): And pass them through.
22231
22232 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22233
22234 * sel-sched.c (calculate_new_fences): New parameter ptime.
22235 Calculate it as a maximum over all fence cycles.
22236 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22237 Print the final schedule timing when sched_verbose.
22238
22239 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22240
22241 PR rtl-optimization/60292
22242 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22243 bit fot the fence instruction.
22244
22245 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22246
22247 * calls.h: Fix typo in comment.
22248
22249 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22250
22251 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22252 adjusting offsetable addresses.
22253
22254 2014-02-24 Guozhi Wei <carrot@google.com>
22255
22256 * sparseset.h (sparseset_pop): Fix the wrong index.
22257
22258 2014-02-24 Walter Lee <walt@tilera.com>
22259
22260 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22261 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22262 triplet.
22263 * common/config/tilegx/tilegx-common.c
22264 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22265 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22266 (LINK_SPEC): Ditto.
22267 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22268 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22269 (tilegx_gimplify_va_arg_expr): Handle big endian.
22270 (tilegx_expand_unaligned_load): Ditto.
22271 (tilegx_expand_unaligned_store): Ditto.
22272 (TARGET_RETURN_IN_MSB): New.
22273 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22274 (TARGET_ENDIAN_DEFAULT): New.
22275 (TARGET_BIG_ENDIAN): Handle big endian.
22276 (BYTES_BIG_ENDIAN): Ditto.
22277 (WORDS_BIG_ENDIAN): Ditto.
22278 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22279 (ENDIAN_SPEC): New.
22280 (EXTRA_SPECS): New.
22281 * config/tilegx/tilegx.md (extv): Handle big endian.
22282 (extzv): Ditto.
22283 (insn_st<n>): Ditto.
22284 (insn_st<n>_add<bitsuffix>): Ditto.
22285 (insn_stnt<n>): Ditto.
22286 (insn_stnt<n>_add<bitsuffix>):Ditto.
22287 (vec_interleave_highv8qi): Handle big endian.
22288 (vec_interleave_highv8qi_be): New.
22289 (vec_interleave_highv8qi_le): New.
22290 (insn_v1int_h): Handle big endian.
22291 (vec_interleave_lowv8qi): Handle big endian.
22292 (vec_interleave_lowv8qi_be): New.
22293 (vec_interleave_lowv8qi_le): New.
22294 (insn_v1int_l): Handle big endian.
22295 (vec_interleave_highv4hi): Handle big endian.
22296 (vec_interleave_highv4hi_be): New.
22297 (vec_interleave_highv4hi_le): New.
22298 (insn_v2int_h): Handle big endian.
22299 (vec_interleave_lowv4hi): Handle big endian.
22300 (vec_interleave_lowv4hi_be): New.
22301 (vec_interleave_lowv4hi_le): New.
22302 (insn_v2int_l): Handle big endian.
22303 (vec_interleave_highv2si): Handle big endian.
22304 (vec_interleave_highv2si_be): New.
22305 (vec_interleave_highv2si_le): New.
22306 (insn_v4int_h): Handle big endian.
22307 (vec_interleave_lowv2si): Handle big endian.
22308 (vec_interleave_lowv2si_be): New.
22309 (vec_interleave_lowv2si_le): New.
22310 (insn_v4int_l): Handle big endian.
22311 * config/tilegx/tilegx.opt (mbig-endian): New option.
22312 (mlittle-endian): New option.
22313 * doc/install.texi: Document tilegxbe-linux.
22314 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22315
22316 2014-02-24 Martin Jambor <mjambor@suse.cz>
22317
22318 PR ipa/60266
22319 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22320 there are no parameter descriptors.
22321
22322 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22323
22324 PR rtl-optimization/60268
22325 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22326 initialization to ...
22327 (sched_rgn_init): ... here.
22328 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22329
22330 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22331
22332 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22333 names.
22334
22335 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22336
22337 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22338 definition.
22339
22340 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22341
22342 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22343 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22344
22345 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22346
22347 * config/microblaze/predicates.md: Add cmp_op predicate.
22348 * config/microblaze/microblaze.md: Add branch_compare instruction
22349 which uses cmp_op predicate and emits cmp insn before branch.
22350 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22351 to microblaze_expand_conditional_branch and consolidate logic.
22352 (microblaze_expand_conditional_branch): emit branch_compare
22353 insn instead of handling cmp op separate from branch insn.
22354
22355 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22356
22357 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22358 to permit subregs.
22359
22360 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22361
22362 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22363 define_insn with define_expand and new define_insn
22364 *altivec_lve<VI_char>x_internal.
22365 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22366 and new define_insn *altivec_stve<VI_char>x_internal.
22367 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22368 prototype.
22369 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22370 lve*x built-ins.
22371 (altivec_expand_stvex_be): New function.
22372
22373 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22374
22375 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22376 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22377 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22378 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22379
22380 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22381
22382 PR target/60298
22383 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22384 instead of emit_move_insn.
22385
22386 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22387
22388 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22389 vspltw with vsldoi.
22390 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22391 gen_altivec_vsumsws.
22392
22393 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22394
22395 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22396 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22397 (altivec_lvxl_<mode>): New define_expand incorporating
22398 -maltivec=be semantics where needed.
22399 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22400 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22401 semantics where needed.
22402 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22403 (altivec_stvx_<mode>): New define_expand incorporating
22404 -maltivec=be semantics where needed.
22405 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22406 VM2 iterator instead of V4SI.
22407 (altivec_stvxl_<mode>): New define_expand incorporating
22408 -maltivec=be semantics where needed.
22409 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22410 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22411 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22412 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22413 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22414 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22415 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22416 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22417 ALTIVEC_BUILTIN_STVXL.
22418 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22419 (altivec_expand_stvx_be): Likewise.
22420 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22421 (altivec_expand_lvx_be): Likewise.
22422 (altivec_expand_stvx_be): Likewise.
22423 (altivec_expand_builtin): Add cases for
22424 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22425 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22426 (altivec_init_builtins): Add definitions for
22427 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22428 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22429
22430 2014-02-21 Catherine Moore <clm@codesourcery.com>
22431
22432 * doc/invoke.texi (mvirt, mno-virt): Document.
22433 * config/mips/mips.opt (mvirt): New option.
22434 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22435
22436 2014-02-21 Richard Biener <rguenther@suse.de>
22437
22438 PR tree-optimization/60276
22439 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22440 (STMT_VINFO_MIN_NEG_DIST): New macro.
22441 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22442 STMT_VINFO_MIN_NEG_DIST.
22443 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22444 made for negative dependence distances still hold.
22445
22446 2014-02-21 Richard Biener <rguenther@suse.de>
22447
22448 PR middle-end/60291
22449 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22450 DECL_INITIAL for globals not in the current function context.
22451
22452 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22453
22454 PR tree-optimization/56490
22455 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22456 * tree-ssa-uninit.c: Include params.h.
22457 (compute_control_dep_chain): Add num_calls argument, return false
22458 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22459 num_calls to recursive call.
22460 (find_predicates): Change dep_chain into normal array,
22461 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22462 variable and adjust compute_control_dep_chain caller.
22463 (find_def_preds): Likewise.
22464
22465 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22466
22467 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22468 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22469
22470 2014-02-21 Nick Clifton <nickc@redhat.com>
22471
22472 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22473 (pushhi1): Likewise.
22474 (popqi1): Add mode to pre_dec.
22475 (pophi1): Likewise.
22476
22477 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22478
22479 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22480 mode for mask of V8SFmode permutation.
22481
22482 2014-02-20 Richard Henderson <rth@redhat.com>
22483
22484 PR c++/60272
22485 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22486 a new pseudo for OLDVAL.
22487
22488 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22489
22490 PR target/57896
22491 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22492 gen_reg_rtx if d->testing_p.
22493 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22494 if d->testing_p and we will certainly return true.
22495 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22496 if d->testing_p.
22497
22498 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22499
22500 * emit-rtl.c (gen_reg_rtx): Assert that
22501 crtl->emit.regno_pointer_align_length is non-zero.
22502
22503 2014-02-20 Richard Henderson <rth@redhat.com>
22504
22505 PR c++/60272
22506 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22507 on failure the store back into EXPECT.
22508
22509 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22510 Sandra Loosemore <sandra@codesourcery.com>
22511
22512 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22513 * config/nios2/nios2.c (nios2_function_profiler): Add
22514 -fPIC (flag_pic == 2) support.
22515 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22516 (nios2_large_offset_p): New function.
22517 (nios2_unspec_reloc_p): Move up position, update to use
22518 nios2_large_offset_p.
22519 (nios2_unspec_address): Remove function.
22520 (nios2_unspec_offset): New function.
22521 (nios2_large_got_address): New function.
22522 (nios2_got_address): Add large offset support.
22523 (nios2_legitimize_tls_address): Update usage of removed and new
22524 functions.
22525 (nios2_symbol_binds_local_p): New function.
22526 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22527 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22528 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22529 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22530 processing for (const (unspec ...)).
22531 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22532
22533 2014-02-20 Richard Biener <rguenther@suse.de>
22534
22535 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22536 doing the substitution.
22537 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22538
22539 2014-02-20 Martin Jambor <mjambor@suse.cz>
22540
22541 PR ipa/55260
22542 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22543 info when checking whether lattices are bottom.
22544
22545 2014-02-20 Richard Biener <rguenther@suse.de>
22546
22547 PR middle-end/60221
22548 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22549 regions at -O0.
22550
22551 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22552
22553 PR ipa/58555
22554 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22555 parameter specifying the scaling.
22556 (inline_call): Update.
22557 (want_inline_recursively): Guard division by zero.
22558 (recursive_inlining): Update.
22559 * ipa-inline.h (clone_inlined_nodes): Update.
22560
22561 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22562
22563 PR target/60204
22564 * config/i386/i386.c (classify_argument): Pass structures of size
22565 64 bytes or less in register.
22566
22567 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22568 Kirill Yukhin <kirill.yukhin@intel.com>
22569
22570 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22571 (_mm_rcp28_round_ss): Ditto.
22572 (_mm_rsqrt28_round_sd): Ditto.
22573 (_mm_rsqrt28_round_ss): Ditto.
22574 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22575 (_mm_rcp14_round_ss): Ditto.
22576 (_mm_rsqrt14_round_sd): Ditto.
22577 (_mm_rsqrt14_round_ss): Ditto.
22578 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22579 the first input operand, get rid of match_dup.
22580 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22581 attribute to sse.
22582 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22583 Ditto.
22584 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22585 operand as the first input operand, set type attribute.
22586 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22587 Set type attribute.
22588 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22589 operand as the first input operand, set type attribute.
22590
22591 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22592
22593 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22594 bit of zero.
22595
22596 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22597
22598 PR target/60207
22599 * config/i386/i386.c (construct_container): Remove TFmode check
22600 for X86_64_INTEGER_CLASS.
22601
22602 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22603
22604 PR target/59794
22605 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22606 only when -Wpsabi is enabled.
22607
22608 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22609
22610 PR target/59799
22611 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22612 passing arrays in registers are the same as for structs, so remove the
22613 special case for them.
22614
22615 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22616
22617 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22618 destination type, extract only the valid bits if the source type is not
22619 integral and has a different mode.
22620
22621 2014-02-19 Richard Biener <rguenther@suse.de>
22622
22623 PR ipa/60243
22624 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22625 for all calls.
22626
22627 2014-02-19 Richard Biener <rguenther@suse.de>
22628
22629 PR ipa/60243
22630 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22631 (ipa_modify_call_arguments): Emit an argument load explicitely and
22632 preserve virtual SSA form there and for the replacement call.
22633 Do not update SSA form nor free dominance info.
22634
22635 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22636
22637 * ipa.c (function_and_variable_visibility): Also clear WEAK
22638 flag when disolving COMDAT_GROUP.
22639
22640 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22641
22642 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22643 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22644 not devirtualizing.
22645 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22646 do more sanity checks.
22647 (detect_type_change): Return true when giving up early.
22648 (compute_complex_assign_jump_func): Fix type parameter of
22649 ipa_set_ancestor_jf.
22650 (compute_complex_ancestor_jump_func): Likewise.
22651 (update_jump_functions_after_inlining): Fix updating of
22652 ancestor function.
22653 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22654
22655 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22656
22657 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22658 inline clones when edge disappears.
22659
22660 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22661
22662 PR target/60203
22663 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22664 Split 64-bit moves into 2 patterns. Do not allow the use of
22665 direct move for TDmode in little endian, since the decimal value
22666 has little endian bytes within a word, but the 64-bit pieces are
22667 ordered in a big endian fashion, and normal subreg's of TDmode are
22668 not allowed.
22669 (mov<mode>_64bit_dm): Likewise.
22670 (movtd_64bit_nodm): Likewise.
22671
22672 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22673
22674 PR tree-optimization/60174
22675 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22676 statement of an SSA_NAME that occurs in an abnormal PHI node.
22677
22678 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22679
22680 PR sanitizer/60142
22681 * final.c (SEEN_BB): Remove.
22682 (SEEN_NOTE, SEEN_EMITTED): Renumber.
22683 (final_scan_insn): Don't force_source_line on second
22684 NOTE_INSN_BASIC_BLOCK.
22685
22686 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
22687
22688 PR target/60205
22689 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22690 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22691 (type_natural_mode): Warn ABI change when %zmm register is not
22692 available for AVX512F vector value passing.
22693
22694 2014-02-18 Kai Tietz <ktietz@redhat.com>
22695
22696 PR target/60193
22697 * config/i386/i386.c (ix86_expand_prologue): Use value in
22698 rax register as displacement when restoring %r10 or %rax.
22699 Fix wrong offset when restoring both registers.
22700
22701 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22702
22703 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22704 assertion with conditional return.
22705
22706 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22707 Uros Bizjak <ubizjak@gmail.com>
22708
22709 PR driver/60233
22710 * config/i386/driver-i386.c (host_detect_local_cpu): If
22711 YMM state is not saved by the OS, also clear has_f16c. Move
22712 CPUID 0x80000001 handling before YMM state saving checking.
22713
22714 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
22715
22716 PR rtl-optimization/58960
22717 * haifa-sched.c (alloc_global_sched_pressure_data): New,
22718 factored out from ...
22719 (sched_init): ... here.
22720 (free_global_sched_pressure_data): New, factored out from ...
22721 (sched_finish): ... here.
22722 * sched-int.h (free_global_sched_pressure_data): Declare.
22723 * sched-rgn.c (nr_regions_initial): New static global.
22724 (haifa_find_rgns): Initialize it.
22725 (schedule_region): Disable sched-pressure for the newly
22726 generated regions.
22727
22728 2014-02-17 Richard Biener <rguenther@suse.de>
22729
22730 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22731 release SSA defs of pattern stmts.
22732
22733 2014-02-17 Richard Biener <rguenther@suse.de>
22734
22735 * tree-inline.c (expand_call_inline): Release the virtual
22736 operand defined by the call we are about to inline.
22737
22738 2014-02-17 Richard Biener <rguenther@suse.de>
22739
22740 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22741
22742 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
22743 Ilya Tocar <ilya.tocar@intel.com>
22744
22745 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22746 arguments order in builtin.
22747 (_mm512_permutexvar_epi64): Ditto.
22748 (_mm512_mask_permutexvar_epi64): Ditto
22749 (_mm512_maskz_permutexvar_epi32): Ditto
22750 (_mm512_permutexvar_epi32): Ditto
22751 (_mm512_mask_permutexvar_epi32): Ditto
22752
22753 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22754
22755 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22756 (p8_vmrgow): Likewise.
22757
22758 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22759
22760 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22761 endian targets.
22762
22763 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22764
22765 PR target/60203
22766 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22767 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22768 into 64-bit and 32-bit moves. On 64-bit moves, add support for
22769 using direct move instructions on ISA 2.07. Also adjust
22770 instruction length for 64-bit.
22771 (mov<mode>_64bit, TFmode/TDmode): Likewise.
22772 (mov<mode>_32bit, TFmode/TDmode): Likewise.
22773
22774 2014-02-15 Alan Modra <amodra@gmail.com>
22775
22776 PR target/58675
22777 PR target/57935
22778 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22779 find_replacement on parts of insn rtl that might be reloaded.
22780
22781 2014-02-15 Richard Biener <rguenther@suse.de>
22782
22783 PR tree-optimization/60183
22784 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
22785 (tree_ssa_phiprop): Calculate and free post-dominators.
22786
22787 2014-02-14 Jeff Law <law@redhat.com>
22788
22789 PR rtl-optimization/60131
22790 * ree.c (get_extended_src_reg): New function.
22791 (combine_reaching_defs): Use it rather than assuming location of REG.
22792 (find_and_remove_re): Verify first operand of extension is
22793 a REG before adding the insns to the copy list.
22794
22795 2014-02-14 Roland McGrath <mcgrathr@google.com>
22796
22797 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
22798 * configure: Regenerated.
22799 * config.in: Regenerated.
22800 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
22801 instead of ASM_SHORT.
22802
22803 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
22804 Richard Earnshaw <rearnsha@arm.com>
22805
22806 PR rtl-optimization/59535
22807 * lra-constraints.c (process_alt_operands): Encourage alternative
22808 when unassigned pseudo class is superset of the alternative class.
22809 (inherit_reload_reg): Don't inherit when optimizing for code size.
22810 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
22811 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
22812 modes not less than 4 for Thumb1.
22813
22814 2014-02-14 Kyle McMartin <kyle@redhat.com>
22815
22816 PR pch/60010
22817 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
22818
22819 2014-02-14 Richard Biener <rguenther@suse.de>
22820
22821 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
22822 (get_frame_arg): Drop the assert with langhook types_compatible_p.
22823 Do not strip INDIRECT_REFs.
22824
22825 2014-02-14 Richard Biener <rguenther@suse.de>
22826
22827 PR lto/60179
22828 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
22829 DECL_FUNCTION_SPECIFIC_TARGET.
22830 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
22831 * tree-streamer-out.c (pack_ts_target_option): Remove.
22832 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
22833 (write_ts_function_decl_tree_pointers): Do not stream
22834 DECL_FUNCTION_SPECIFIC_TARGET.
22835 * tree-streamer-in.c (unpack_ts_target_option): Remove.
22836 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
22837 (lto_input_ts_function_decl_tree_pointers): Do not stream
22838 DECL_FUNCTION_SPECIFIC_TARGET.
22839
22840 2014-02-14 Jakub Jelinek <jakub@redhat.com>
22841
22842 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
22843 (get_initial_def_for_induction, vectorizable_induction): Ignore
22844 debug stmts when looking for exit_phi.
22845 (vectorizable_live_operation): Fix up condition.
22846
22847 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22848
22849 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
22850 nreverse() because it changes the content of original tree list.
22851
22852 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22853
22854 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
22855 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
22856
22857 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22858
22859 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
22860 GNU coding standards.
22861
22862 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22863
22864 PR debug/60152
22865 * dwarf2out.c (gen_subprogram_die): Don't call
22866 add_calling_convention_attribute if subr_die is old_die.
22867
22868 2014-02-13 Sharad Singhai <singhai@google.com>
22869
22870 * doc/optinfo.texi: Fix order of nodes.
22871
22872 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
22873
22874 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
22875 operands[2], not operands[3].
22876
22877 2014-02-13 Richard Biener <rguenther@suse.de>
22878
22879 PR bootstrap/59878
22880 * doc/install.texi (ISL): Update recommended version to 0.12.2,
22881 mention the possibility of an in-tree build.
22882 (CLooG): Update recommended version to 0.18.1, mention the
22883 possibility of an in-tree build and clarify that the ISL
22884 bundled with CLooG does not work.
22885
22886 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22887
22888 PR target/43546
22889 * expr.c (compress_float_constant): If x is a hard register,
22890 extend into a pseudo and then move to x.
22891
22892 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
22893
22894 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
22895 caused by bad second argument to warning_at() with -mhotpatch and
22896 nested functions (e.g. with gfortran).
22897
22898 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
22899
22900 * opts.c (option_name): Remove "enabled by default" rider.
22901
22902 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
22903
22904 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
22905
22906 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
22907 Uros Bizjak <ubizjak@gmail.com>
22908
22909 PR target/60151
22910 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
22911 * configure: Regenerated.
22912
22913 2014-02-12 Richard Biener <rguenther@suse.de>
22914
22915 * vec.c (vec_prefix::calculate_allocation): Move as
22916 inline variant to vec.h.
22917 (vec_prefix::calculate_allocation_1): New out-of-line version.
22918 * vec.h (vec_prefix::calculate_allocation_1): Declare.
22919 (vec_prefix::m_has_auto_buf): Rename to ...
22920 (vec_prefix::m_using_auto_storage): ... this.
22921 (vec_prefix::calculate_allocation): Inline the easy cases
22922 and dispatch to calculate_allocation_1 which doesn't need the
22923 prefix address.
22924 (va_heap::reserve): Use gcc_checking_assert.
22925 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
22926 m_using_auto_storage.
22927 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
22928 member and adjust.
22929 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
22930 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
22931 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
22932
22933 2014-02-12 Richard Biener <rguenther@suse.de>
22934
22935 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
22936 when we found a dependence.
22937
22938 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
22939
22940 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
22941 common code...
22942 (maybe_fold_stmt): ... into this new function.
22943 * omp-low.c (lower_omp): Update comment.
22944
22945 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
22946 last use.
22947
22948 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
22949 dereference.
22950
22951 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
22952
22953 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
22954 identifiers in comments.
22955 (cortexa53_extra_costs): Likewise.
22956 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
22957 (cortexa7_extra_costs): Likewise.
22958 (cortexa12_extra_costs): Likewise.
22959 (cortexa15_extra_costs): Likewise.
22960 (v7m_extra_costs): Likewise.
22961
22962 2014-02-12 Richard Biener <rguenther@suse.de>
22963
22964 PR middle-end/60092
22965 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
22966 of posix_memalign being successful.
22967 (lower_stmt): Restrict lowering of posix_memalign to when
22968 -ftree-bit-ccp is enabled.
22969
22970 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22971
22972 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
22973 arg_loc.
22974 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22975
22976 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
22977
22978 PR rtl-optimization/60116
22979 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
22980 other_insn once the combination has been validated.
22981
22982 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
22983
22984 PR lto/59468
22985 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
22986 and wrapper.
22987 * ipa-devirt.c: Include demangle.h
22988 (odr_violation_reported): New static variable.
22989 (add_type_duplicate): Update odr_violations.
22990 (maybe_record_node): Add completep parameter; update it.
22991 (record_target_from_binfo): Add COMPLETEP parameter;
22992 update it as needed.
22993 (possible_polymorphic_call_targets_1): Likewise.
22994 (struct polymorphic_call_target_d): Add nonconstruction_targets;
22995 rename FINAL to COMPLETE.
22996 (record_targets_from_bases): Sanity check we found the binfo;
22997 fix COMPLETEP updating.
22998 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
22999 parameter, fix computing of COMPLETEP.
23000 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23001 at LTO time do demangling.
23002 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23003 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23004 parameter.
23005 (gimple_get_virt_method_for_binfo): Likewise.
23006 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23007 gimple_get_virt_method_for_vtable): Update prototypes.
23008
23009 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23010
23011 PR target/49008
23012 * genautomata.c (add_presence_absence): Fix typo with
23013 {final_}presence_list.
23014
23015 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23016
23017 PR target/60137
23018 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23019 for VSX/Altivec vectors that land in GPR registers.
23020
23021 2014-02-11 Richard Henderson <rth@redhat.com>
23022 Jakub Jelinek <jakub@redhat.com>
23023
23024 PR debug/59776
23025 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23026 around drhs if type conversion to lacc->type is not useless.
23027
23028 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23029
23030 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23031 tuning struct.
23032 (cortex-a57.cortex-a53): Likewise.
23033 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23034
23035 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23036
23037 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23038 arm_restrict_it.
23039
23040 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23041
23042 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23043 add_options_for_arm_vfp3.
23044
23045 2014-02-11 Jeff Law <law@redhat.com>
23046
23047 PR middle-end/54041
23048 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23049 object with an undesirable mode.
23050
23051 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23052
23053 PR libgomp/60107
23054 * config/i386/sol2-9.h: New file.
23055 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23056 *-*-solaris2.9*): Use it.
23057
23058 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23059
23060 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23061 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23062
23063 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23064
23065 * config/microblaze/microblaze.c: Extend mcpu version format
23066
23067 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23068
23069 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23070
23071 2014-02-10 Richard Henderson <rth@redhat.com>
23072
23073 PR target/59927
23074 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23075 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23076 ms-abi vs -mno-accumulate-outgoing-args.
23077 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23078 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23079 respect to ms-abi.
23080
23081 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23082
23083 PR middle-end/60080
23084 * cfgexpand.c (expand_asm_operands): Attach source location to
23085 ASM_INPUT rtx objects.
23086 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23087
23088 2014-02-10 Nick Clifton <nickc@redhat.com>
23089
23090 * config/mn10300/mn10300.c (popcount): New function.
23091 (mn10300_expand_prologue): Include saved registers in stack usage
23092 count.
23093
23094 2014-02-10 Jeff Law <law@redhat.com>
23095
23096 PR middle-end/52306
23097 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23098 when changing the SET_DEST of a prior insn to avoid an input reload.
23099
23100 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23101
23102 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23103 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23104 -mcall-openbsd, or -mcall-linux.
23105 (CC1_ENDIAN_BIG_SPEC): Remove.
23106 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23107 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23108 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23109 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23110 and %cc1_endian_default.
23111 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23112
23113 2014-02-10 Richard Biener <rguenther@suse.de>
23114
23115 PR tree-optimization/60115
23116 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23117 MEM_REF handling. Properly verify that the accesses are not
23118 out of the objects bound.
23119
23120 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23121
23122 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23123 coretex to cortex.
23124
23125 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23126
23127 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23128 proper constants and fix formatting.
23129 (possible_polymorphic_call_targets): Fix formatting.
23130
23131 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23132 Ilya Tocar <ilya.tocar@intel.com>
23133
23134 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23135 (_mm512_loadu_epi32): Renamed into...
23136 (_mm512_loadu_si512): This.
23137 (_mm512_storeu_epi32): Renamed into...
23138 (_mm512_storeu_si512): This.
23139 (_mm512_maskz_ceil_ps): Removed.
23140 (_mm512_maskz_ceil_pd): Ditto.
23141 (_mm512_maskz_floor_ps): Ditto.
23142 (_mm512_maskz_floor_pd): Ditto.
23143 (_mm512_floor_round_ps): Ditto.
23144 (_mm512_floor_round_pd): Ditto.
23145 (_mm512_ceil_round_ps): Ditto.
23146 (_mm512_ceil_round_pd): Ditto.
23147 (_mm512_mask_floor_round_ps): Ditto.
23148 (_mm512_mask_floor_round_pd): Ditto.
23149 (_mm512_mask_ceil_round_ps): Ditto.
23150 (_mm512_mask_ceil_round_pd): Ditto.
23151 (_mm512_maskz_floor_round_ps): Ditto.
23152 (_mm512_maskz_floor_round_pd): Ditto.
23153 (_mm512_maskz_ceil_round_ps): Ditto.
23154 (_mm512_maskz_ceil_round_pd): Ditto.
23155 (_mm512_expand_pd): Ditto.
23156 (_mm512_expand_ps): Ditto.
23157 * config/i386/i386.c (ix86_builtins): Remove
23158 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23159 (bdesc_args): Ditto.
23160 * config/i386/predicates.md (const1256_operand): New.
23161 (const_1_to_2_operand): Ditto.
23162 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23163 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23164 (*avx512pf_gatherpf<mode>sf): Ditto.
23165 (avx512pf_gatherpf<mode>df): Ditto.
23166 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23167 (*avx512pf_gatherpf<mode>df): Ditto.
23168 (avx512pf_scatterpf<mode>sf): Ditto.
23169 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23170 (*avx512pf_scatterpf<mode>sf): Ditto.
23171 (avx512pf_scatterpf<mode>df): Ditto.
23172 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23173 (*avx512pf_scatterpf<mode>df): Ditto.
23174 (avx512f_expand<mode>): Removed.
23175 (<shift_insn><mode>3<mask_name>): Change predicate type.
23176
23177 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23178
23179 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23180 not at the end of datarefs vector use ordered_remove to avoid
23181 reordering datarefs vector.
23182
23183 PR c/59984
23184 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23185 mark local addressable non-static vars as GOVD_PRIVATE
23186 instead of GOVD_LOCAL.
23187 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23188 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23189 than copying them.
23190
23191 PR middle-end/60092
23192 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23193 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23194 assume_aligned or alloc_align attributes.
23195 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23196 arguments. Handle also assume_aligned and alloc_align attributes.
23197 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23198 calls to functions with assume_aligned or alloc_align attributes.
23199 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23200
23201 2014-02-08 Terry Guo <terry.guo@arm.com>
23202
23203 * doc/invoke.texi: Document ARM -march=armv7e-m.
23204
23205 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23206
23207 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23208 flag on __cilkrts_rethrow builtin.
23209
23210 PR ipa/60026
23211 * ipa-cp.c (determine_versionability): Fail at -O0
23212 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23213 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23214
23215 Revert:
23216 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23217
23218 PR ipa/60026
23219 * tree-inline.c (copy_forbidden): Fail for
23220 __attribute__((optimize (0))) functions.
23221
23222 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23223
23224 * varpool.c: Include pointer-set.h.
23225 (varpool_remove_unreferenced_decls): Variables in other partitions
23226 will not be output; be however careful to not lose information
23227 about partitioning.
23228
23229 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23230
23231 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23232 lookup in the vtable constructor.
23233
23234 2014-02-07 Jeff Law <law@redhat.com>
23235
23236 PR target/40977
23237 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23238 define_insn_and_split.
23239
23240 * ipa-inline.c (inline_small_functions): Fix typos.
23241
23242 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23243
23244 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23245 (s390_can_use_return_insn): Declare.
23246 * config/s390/s390.h (EPILOGUE_USES): Define.
23247 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23248 instructions.
23249 (s390_chunkify_start): Handle return JUMP_LABELs.
23250 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23251 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23252 (s390_can_use_return_insn): New functions.
23253 (s390_fix_long_loop_prediction): Handle conditional returns.
23254 (TARGET_SET_UP_BY_PROLOGUE): Define.
23255 * config/s390/s390.md (ANY_RETURN): New code iterator.
23256 (*creturn, *csimple_return, return, simple_return): New patterns.
23257
23258 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23259
23260 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23261 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23262 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23263 REG_CFA_RESTORE list when deciding not to restore a register.
23264
23265 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23266
23267 * config/s390/s390.c: Include tree-pass.h and context.h.
23268 (s390_early_mach): New function, split out from...
23269 (s390_emit_prologue): ...here.
23270 (pass_data_s390_early_mach): New pass structure.
23271 (pass_s390_early_mach): New class.
23272 (s390_option_override): Create and register early_mach pass.
23273 Move to end of file.
23274
23275 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23276
23277 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23278 to match for the exit block.
23279
23280 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23281
23282 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23283 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23284 Reject misaligned operands.
23285
23286 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23287
23288 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23289
23290 2014-02-07 Richard Biener <rguenther@suse.de>
23291
23292 PR middle-end/60092
23293 * gimple-low.c (lower_builtin_posix_memalign): New function.
23294 (lower_stmt): Call it to lower posix_memalign in a way
23295 to make alignment info accessible.
23296
23297 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23298
23299 PR c++/60082
23300 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23301 __builtin_setjmp_receiver.
23302
23303 2014-02-07 Richard Biener <rguenther@suse.de>
23304
23305 PR middle-end/60092
23306 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23307 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23308 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23309 Handle BUILT_IN_POSIX_MEMALIGN.
23310 (find_func_clobbers): Likewise.
23311 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23312 (call_may_clobber_ref_p_1): Likewise.
23313
23314 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23315
23316 PR ipa/59918
23317 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23318 sanity check.
23319
23320 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23321
23322 PR ipa/59469
23323 * lto-cgraph.c (lto_output_node): Use
23324 symtab_get_symbol_partitioning_class.
23325 (lto_output_varpool_node): likewise.
23326 (symtab_get_symbol_partitioning_class): Move here from
23327 lto/lto-partition.c
23328 * cgraph.h (symbol_partitioning_class): Likewise.
23329 (symtab_get_symbol_partitioning_class): Declare.
23330
23331 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23332
23333 * ggc.h (ggc_internal_cleared_alloc): New macro.
23334 * vec.h (vec_safe_copy): Handle memory stats.
23335 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23336 * target-globals.c (save_target_globals): Likewise.
23337
23338 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23339
23340 PR target/60077
23341 * expr.c (emit_move_resolve_push): Export; be bit more selective
23342 on when to clear alias set.
23343 * expr.h (emit_move_resolve_push): Declare.
23344 * function.h (struct function): Add tail_call_marked.
23345 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23346 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23347 * config/i386/i386.md (TImode move expander): De not call
23348 ix86_expand_push.
23349 (FP push expanders): Preserve memory attributes.
23350 * config/i386/sse.md (push<mode>1): Remove.
23351 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23352 (ix86_expand_push): Remove.
23353 * config/i386/mmx.md (push<mode>1): Remove.
23354
23355 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23356
23357 PR rtl-optimization/60030
23358 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23359 lopart with paradoxical subreg before shifting it up by hprec.
23360
23361 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23362
23363 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23364 Remove extra newline at end of file.
23365 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23366 (arm_issue_rate): Handle cortexa57.
23367 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23368 (cortex-a57.cortex-a53): Likewise.
23369
23370 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23371
23372 PR target/59575
23373 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23374 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23375 bitmask.
23376 (arm_expand_prologue): Adjust all callers.
23377 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23378 info, registers also at the lowest numbered registers side. Use
23379 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23380 XEXP.
23381
23382 PR debug/59992
23383 * var-tracking.c (adjust_mems): Before adding a SET to
23384 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23385
23386 2014-02-06 Alan Modra <amodra@gmail.com>
23387
23388 PR target/60032
23389 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23390 change SDmode to DDmode when lra_in_progress.
23391
23392 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23393
23394 PR middle-end/59150
23395 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23396 free_data_ref on the dr first, and before goto again also set dr
23397 to the next dr. For simd_lane_access, free old datarefs[i] before
23398 overwriting it. For get_vectype_for_scalar_type failure, don't
23399 free_data_ref if simd_lane_access.
23400
23401 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23402
23403 PR target/60062
23404 * tree.h (opts_for_fn): New inline function.
23405 (opt_for_fn): Define.
23406 * config/i386/i386.c (ix86_function_regparm): Use
23407 opt_for_fn (decl, optimize) instead of optimize.
23408
23409 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23410
23411 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23412 for SYMBOL_REF in large memory model.
23413
23414 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23415
23416 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23417 and crypto support.
23418 (cortex-a57): Likewise.
23419 (cortex-a57.cortex-a53): Likewise.
23420
23421 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23422 Kugan Vivekanandarajah <kuganv@linaro.org>
23423
23424 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23425 unaligned_access.
23426 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23427
23428 2014-02-06 Richard Biener <rguenther@suse.de>
23429
23430 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23431 set_loop_copy and initialize_original_copy_tables.
23432
23433 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23434
23435 * config/aarch64/aarch64-simd.md
23436 (aarch64_ashr_simddi): Change QI to SI.
23437
23438 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23439 Jakub Jelinek <jakub@redhat.com>
23440
23441 PR middle-end/60013
23442 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23443 of the dataflow.
23444
23445 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23446
23447 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23448 CODE_FOR_altivec_vpku[hw]um to
23449 CODE_FOR_altivec_vpku[hw]um_direct.
23450 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23451 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23452 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23453 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23454
23455 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23456
23457 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23458 generation for -maltivec=be.
23459 (altivec_vsumsws): Simplify redundant test.
23460
23461 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23462
23463 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23464 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23465 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23466 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23467 gen_altivec_vpkuwum.
23468 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23469 BYTES_BIG_ENDIAN.
23470 (altivec_vpks<VI_char>ss): Likewise.
23471 (altivec_vpks<VI_char>us): Likewise.
23472 (altivec_vpku<VI_char>us): Likewise.
23473 (altivec_vpku<VI_char>um): Likewise.
23474 (altivec_vpku<VI_char>um_direct): New (copy of
23475 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23476 internal use).
23477 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23478 target is little endian and -maltivec=be is not specified.
23479 (*altivec_vupkhs<VU_char>_direct): New (copy of
23480 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23481 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23482 target is little endian and -maltivec=be is not specified.
23483 (*altivec_vupkls<VU_char>_direct): New (copy of
23484 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23485 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23486 little endian and -maltivec=be is not specified.
23487 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23488 little endian and -maltivec=be is not specified.
23489
23490 2014-02-05 Richard Henderson <rth@redhat.com>
23491
23492 PR debug/52727
23493 * combine-stack-adj.c: Revert r206943.
23494 * sched-int.h (struct deps_desc): Add last_args_size.
23495 * sched-deps.c (init_deps): Initialize it.
23496 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23497 contain REG_ARGS_SIZE notes.
23498
23499 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23500
23501 * lto-cgraph.c (asm_nodes_output): Make global.
23502 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23503 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23504 (driver_handle_option): Handle OPT_fwpa.
23505
23506 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23507
23508 PR ipa/59947
23509 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23510 a comment typo and formatting issue. If odr_hash hasn't been
23511 created, return vNULL and set *completep to false.
23512
23513 PR middle-end/57499
23514 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23515 bb with no successors.
23516
23517 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23518
23519 PR target/59718
23520 * doc/invoke.texi (-march): Clarify documentation for ARM.
23521 (-mtune): Likewise.
23522 (-mcpu): Likewise.
23523
23524 2014-02-05 Richard Biener <rguenther@suse.de>
23525
23526 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23527 when not vectorizing because of too many alias checks.
23528 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23529 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23530
23531 2014-02-05 Nick Clifton <nickc@redhat.com>
23532
23533 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23534 accept extended registers in any mode when compiling for the MN10300.
23535
23536 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23537
23538 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23539 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23540 sanitization attributes.
23541 (can_inline_edge_p): Likewise.
23542 (sanitize_attrs_match_for_inline_p): New function.
23543
23544 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23545
23546 * ipa-prop.c (detect_type_change): Shor circuit testing of
23547 type changes on THIS pointer.
23548
23549 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23550
23551 PR target/59777
23552 * config/pa/pa.c (legitimize_tls_address): Return original address
23553 if not passed a SYMBOL_REF rtx.
23554 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23555 addresses.
23556 (pa_emit_move_sequence): Simplify TLS source operands.
23557 (pa_legitimate_constant_p): Reject all TLS constants.
23558 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23559 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23560
23561 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23562
23563 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23564 groups when we know they are controlled by LTO.
23565 * varasm.c (default_binds_local_p_1): If object is in other partition,
23566 it will be resolved locally.
23567
23568 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23569
23570 * config/host-linux.c (linux_gt_pch_use_address): Don't
23571 use SSIZE_MAX because it is not always defined.
23572
23573 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23574
23575 PR bootstrap/59913
23576 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23577 threshold for pseudo splitting.
23578 (update_ebb_live_info): Process call argument hard registers and
23579 hard registers from insn definition too.
23580 (max_small_class_regs_num): New constant.
23581 (inherit_in_ebb): Update live hard regs through EBBs. Update
23582 reloads_num only for small register classes. Don't split for
23583 outputs of jumps.
23584
23585 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23586
23587 PR ipa/60058
23588 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23589 is non-null.
23590
23591 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23592
23593 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23594 visibility is safe.
23595
23596 2014-02-04 Marek Polacek <polacek@redhat.com>
23597
23598 * gdbinit.in (pel): Define.
23599
23600 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23601
23602 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23603 behavior.
23604
23605 2014-02-04 Richard Biener <rguenther@suse.de>
23606
23607 PR lto/59723
23608 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23609 in function context local.
23610 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23611 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23612 similar to LTO_imported_decl_ref.
23613
23614 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23615
23616 PR tree-optimization/60002
23617 * cgraphclones.c (build_function_decl_skip_args): Clear
23618 DECL_LANG_SPECIFIC.
23619
23620 PR tree-optimization/60023
23621 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23622 false to gsi_replace.
23623 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23624 has been in some EH region and vec_stmt could throw, add
23625 vec_stmt into the same EH region.
23626 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23627 has no lhs, ignore it.
23628 * internal-fn.c (expand_MASK_LOAD): Likewise.
23629
23630 PR ipa/60026
23631 * tree-inline.c (copy_forbidden): Fail for
23632 __attribute__((optimize (0))) functions.
23633
23634 PR other/58712
23635 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23636 is set, copy one less argument.
23637 (expand_simd_clones): Don't subtract clone_info->inbranch
23638 from simd_clone_struct_alloc argument.
23639
23640 PR rtl-optimization/57915
23641 * recog.c (simplify_while_replacing): If all unary/binary/relational
23642 operation arguments are constant, attempt to simplify those.
23643
23644 PR middle-end/59261
23645 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23646 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23647
23648 2014-02-04 Richard Biener <rguenther@suse.de>
23649
23650 PR tree-optimization/60012
23651 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23652 TBAA disambiguation to all DDRs.
23653
23654 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23655
23656 PR target/59788
23657 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23658 (LINK_SPEC): Use it for -shared, -shared-libgcc.
23659
23660 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23661
23662 PR ipa/59882
23663 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23664
23665 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23666
23667 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23668 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23669
23670 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23671
23672 PR ipa/59831
23673 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23674 to figure out targets of polymorphic calls with known decl.
23675 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23676 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23677 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23678 (get_polymorphic_call_info): ... here.
23679 (get_polymorphic_call_info_from_invariant): New function.
23680
23681 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23682
23683 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23684 lookup via vtable pointer; check for type consistency
23685 and turn inconsitent facts into UNREACHABLE.
23686 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23687 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23688 type inconsistent querries; return UNREACHABLE instead.
23689
23690 2014-02-03 Richard Henderson <rth@twiddle.net>
23691
23692 PR tree-opt/59924
23693 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23694 already processed this node.
23695 (normalize_one_pred_1): Pass along mark_set.
23696 (normalize_one_pred): Create and destroy a pointer_set_t.
23697 (normalize_one_pred_chain): Likewise.
23698
23699 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
23700
23701 PR gcov-profile/58602
23702 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23703
23704 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23705
23706 PR ipa/59831
23707 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23708 -fno-devirtualize; try to devirtualize by the knowledge of
23709 virtual table pointer given by aggregate propagation.
23710 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23711 (ipa_print_node_jump_functions): Dump also offset that
23712 is relevant for polymorphic calls.
23713 (determine_known_aggregate_parts): Add arg_type parameter; use it
23714 instead of determining the type from pointer type.
23715 (ipa_compute_jump_functions_for_edge): Update call of
23716 determine_known_aggregate_parts.
23717 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23718 (gimple_get_virt_method_for_binfo): ... here; simplify using
23719 vtable_pointer_value_to_vtable.
23720 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23721 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23722 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23723 (vtable_pointer_value_to_vtable): Break out from ...; handle also
23724 POINTER_PLUS_EXPR.
23725 (vtable_pointer_value_to_binfo): ... here.
23726 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23727
23728 2014-02-03 Teresa Johnson <tejohnson@google.com>
23729
23730 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23731 redef of outer loop index variable.
23732
23733 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
23734
23735 PR c++/53017
23736 PR c++/59211
23737 * doc/extend.texi (Function Attributes): Typo.
23738
23739 2014-02-03 Cong Hou <congh@google.com>
23740
23741 PR tree-optimization/60000
23742 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23743 if the vectorized statement is a store. A store statement can only
23744 appear at the end of pattern statements.
23745
23746 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23747
23748 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23749 (ix86_option_override_internal): Default long double to 64-bit for
23750 32-bit Bionic and to 128-bit for 64-bit Bionic.
23751
23752 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23753 TARGET_LONG_DOUBLE_128 is true.
23754 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23755
23756 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23757 (mlong-double-64): Negate -mlong-double-128.
23758 (mlong-double-128): New option.
23759
23760 * config/i386/i386-c.c (ix86_target_macros): Define
23761 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23762
23763 * doc/invoke.texi: Document -mlong-double-128.
23764
23765 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23766
23767 PR rtl-optimization/60024
23768 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
23769
23770 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
23771
23772 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
23773
23774 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23775
23776 PR rtl-optimization/57662
23777 * sel-sched.c (code_motion_path_driver): Do not mark already not
23778 existing blocks in the visiting bitmap.
23779
23780 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23781
23782 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
23783 on the insn being emitted.
23784
23785 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
23786 Will Deacon <will.deacon@arm.com>
23787
23788 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
23789
23790 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23791
23792 * config/arm/arm-tables.opt: Regenerate.
23793
23794 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23795
23796 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
23797 for vector types other than V16QImode.
23798 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
23799 define_expand, and call altivec_expand_vec_perm_le when producing
23800 code with little endian element order.
23801 (*altivec_vperm_<mode>_internal): New insn having previous
23802 behavior of altivec_vperm_<mode>.
23803 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
23804 altivec_expand_vec_perm_le when producing code with little endian
23805 element order.
23806 (*altivec_vperm_<mode>_uns_internal): New insn having previous
23807 behavior of altivec_vperm_<mode>_uns.
23808
23809 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23810
23811 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
23812 (altivec_vsumsws): Add handling for -maltivec=be with a little
23813 endian target.
23814 (altivec_vsumsws_direct): New.
23815 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
23816 gen_altivec_vsumsws.
23817
23818 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23819
23820 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
23821 vtable_pointer_value_to_binfo): New functions.
23822 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
23823 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
23824
23825 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
23826
23827 * config/nios2/nios2.md (load_got_register): Initialize GOT
23828 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
23829 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
23830
23831 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23832
23833 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
23834 preserverd by passthrough, do not propagate the type.
23835
23836 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23837
23838 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
23839 (mips_atomic_assign_expand_fenv): New function.
23840 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23841
23842 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23843
23844 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
23845 (__builtin_mips_set_fcsr): Likewise.
23846 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
23847 MIPS_USI_FTYPE_VOID.
23848 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
23849 (mips16_expand_set_fcsr): Likewise.
23850 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
23851 (mips16_set_fcsr_stub): Likewise.
23852 (mips16_get_fcsr_one_only_stub): New class.
23853 (mips16_set_fcsr_one_only_stub): Likewise.
23854 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
23855 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
23856 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
23857 (hard_float): New availability predicate.
23858 (mips_builtins): Add get_fcsr and set_fcsr.
23859 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
23860 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
23861 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
23862 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
23863 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
23864 patterns.
23865
23866 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23867
23868 * config/mips/mips.c (mips_one_only_stub): New class.
23869 (mips_need_mips16_rdhwr_p): Replace with...
23870 (mips16_rdhwr_stub): ...this new variable.
23871 (mips16_stub_call_address): New function.
23872 (mips16_rdhwr_one_only_stub): New class.
23873 (mips_expand_thread_pointer): Use mips16_stub_call_address.
23874 (mips_output_mips16_rdhwr): Delete.
23875 (mips_finish_stub): New function.
23876 (mips_code_end): Use it to handle rdhwr stubs.
23877
23878 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
23879
23880 PR target/60017
23881 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
23882 when calculating size of integer atomic types.
23883
23884 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
23885
23886 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
23887
23888 2014-02-01 Jakub Jelinek <jakub@redhat.com>
23889
23890 PR tree-optimization/60003
23891 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
23892 * profile.c (branch_prob): Use gimple_call_builtin_p
23893 to check for BUILT_IN_SETJMP_RECEIVER.
23894 * tree-inline.c (copy_bb): Call notice_special_calls.
23895
23896 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
23897
23898 PR bootstrap/59985
23899 * lra-constraints.c (process_alt_operands): Update reload_sum only
23900 on the first pass.
23901
23902 2014-01-31 Richard Henderson <rth@redhat.com>
23903
23904 PR middle-end/60004
23905 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
23906 until after else_eh is processed.
23907
23908 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23909
23910 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
23911 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
23912 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
23913 in smmintrin.h, remove them.
23914 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
23915 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
23916 * config/i386/i386.md (ROUND_SAE): Fix value.
23917 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
23918 (const48_operand): New.
23919 * config/i386/subst.md (round), (round_expand): Use
23920 const_4_or_8_to_11_operand.
23921 (round_saeonly), (round_saeonly_expand): Use const48_operand.
23922
23923 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23924
23925 * config/i386/constraints.md (Yk): Swap meaning with k.
23926 * config/i386/i386.md (movhi_internal): Change Yk to k.
23927 (movqi_internal): Ditto.
23928 (*k<logic><mode>): Ditto.
23929 (*andhi_1): Ditto.
23930 (*andqi_1): Ditto.
23931 (kandn<mode>): Ditto.
23932 (*<code>hi_1): Ditto.
23933 (*<code>qi_1): Ditto.
23934 (kxnor<mode>): Ditto.
23935 (kortestzhi): Ditto.
23936 (kortestchi): Ditto.
23937 (kunpckhi): Ditto.
23938 (*one_cmplhi2_1): Ditto.
23939 (*one_cmplqi2_1): Ditto.
23940 * config/i386/sse.md (): Change k to Yk.
23941 (avx512f_load<mode>_mask): Ditto.
23942 (avx512f_blendm<mode>): Ditto.
23943 (avx512f_store<mode>_mask): Ditto.
23944 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
23945 (avx512f_storedqu<mode>_mask): Ditto.
23946 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
23947 Ditto.
23948 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
23949 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
23950 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
23951 (avx512f_maskcmp<mode>3): Ditto.
23952 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
23953 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
23954 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
23955 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
23956 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
23957 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
23958 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
23959 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
23960 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
23961 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
23962 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
23963 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
23964 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
23965 (vec_extract_lo_<mode>_maskm): Ditto.
23966 (vec_extract_hi_<mode>_maskm): Ditto.
23967 (avx512f_vternlog<mode>_mask): Ditto.
23968 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
23969 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
23970 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
23971 (avx512f_<code>v8div16qi2_mask): Ditto.
23972 (avx512f_<code>v8div16qi2_mask_store): Ditto.
23973 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
23974 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
23975 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
23976 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
23977 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23978 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23979 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23980 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23981 (avx512cd_maskb_vec_dupv8di): Ditto.
23982 (avx512cd_maskw_vec_dupv16si): Ditto.
23983 (avx512f_vpermi2var<mode>3_maskz): Ditto.
23984 (avx512f_vpermi2var<mode>3_mask): Ditto.
23985 (avx512f_vpermi2var<mode>3_mask): Ditto.
23986 (avx512f_vpermt2var<mode>3_maskz): Ditto.
23987 (*avx512f_gathersi<mode>): Ditto.
23988 (*avx512f_gathersi<mode>_2): Ditto.
23989 (*avx512f_gatherdi<mode>): Ditto.
23990 (*avx512f_gatherdi<mode>_2): Ditto.
23991 (*avx512f_scattersi<mode>): Ditto.
23992 (*avx512f_scatterdi<mode>): Ditto.
23993 (avx512f_compress<mode>_mask): Ditto.
23994 (avx512f_compressstore<mode>_mask): Ditto.
23995 (avx512f_expand<mode>_mask): Ditto.
23996 * config/i386/subst.md (mask): Change k to Yk.
23997 (mask_scalar_merge): Ditto.
23998 (sd): Ditto.
23999
24000 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24001
24002 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24003
24004 2014-01-31 Richard Biener <rguenther@suse.de>
24005
24006 PR middle-end/59990
24007 * builtins.c (fold_builtin_memory_op): Make sure to not
24008 use a floating-point mode or a boolean or enumeral type for
24009 the copy operation.
24010
24011 2014-01-30 DJ Delorie <dj@redhat.com>
24012
24013 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24014 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24015 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24016 whenever main() has an epilogue.
24017
24018 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24019
24020 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24021 unused variable "field".
24022 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24023 (vsx_mergeh_<mode>): Likewise.
24024 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24025 (altivec_vmrghh): Likewise.
24026 (altivec_vmrghw): Likewise.
24027 (altivec_vmrglb): Likewise.
24028 (altivec_vmrglh): Likewise.
24029 (altivec_vmrglw): Likewise.
24030 (altivec_vspltb): Add missing uses.
24031 (altivec_vsplth): Likewise.
24032 (altivec_vspltw): Likewise.
24033 (altivec_vspltsf): Likewise.
24034
24035 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24036
24037 PR target/59923
24038 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24039 frame related instructions.
24040
24041 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24042
24043 PR rtl-optimization/59959
24044 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24045 any reload of register whose subreg is invalid.
24046
24047 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24048
24049 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24050 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24051 Add missing return type - void.
24052
24053 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24054
24055 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24056 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24057 remove element index adjustment for endian (now handled in vsx.md
24058 and altivec.md).
24059 (altivec_expand_vec_perm_const): Use
24060 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24061 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24062 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24063 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24064 define_expand and a new define_insn *altivec_vspltb_internal;
24065 adjust for -maltivec=be on a little endian target.
24066 (altivec_vspltb_direct): New.
24067 (altivec_vsplth): Divide into a define_expand and a new
24068 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24069 little endian target.
24070 (altivec_vsplth_direct): New.
24071 (altivec_vspltw): Divide into a define_expand and a new
24072 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24073 little endian target.
24074 (altivec_vspltw_direct): New.
24075 (altivec_vspltsf): Divide into a define_expand and a new
24076 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24077 a little endian target.
24078
24079 2014-01-30 Richard Biener <rguenther@suse.de>
24080
24081 PR tree-optimization/59993
24082 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24083 can propagate form the earlier stmt and avoid the transform
24084 when the intermediate result is needed.
24085
24086 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24087
24088 * README.Portability: Fix typo.
24089
24090 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24091
24092 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24093 comparison_operator with ordered_comparison_operator.
24094
24095 2014-01-30 Nick Clifton <nickc@redhat.com>
24096
24097 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24098 Rename to mn10300_store_multiple_regs.
24099 * config/mn10300/mn10300.c: Likewise.
24100 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24101 store_multiple_regs.
24102 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24103 Call mn10300_store_multiple_regs.
24104
24105 2014-01-30 Nick Clifton <nickc@redhat.com>
24106 DJ Delorie <dj@redhat.com>
24107
24108 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24109 %fp 2 to keep registers after it properly word-aligned.
24110 (rl78_alloc_physical_registers_umul): Handle the case where both
24111 input operands are the same.
24112
24113 2014-01-30 Richard Biener <rguenther@suse.de>
24114
24115 PR tree-optimization/59903
24116 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24117 check properly.
24118
24119 2014-01-30 Jason Merrill <jason@redhat.com>
24120
24121 PR c++/59633
24122 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24123
24124 PR c++/59645
24125 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24126
24127 2014-01-30 Richard Biener <rguenther@suse.de>
24128
24129 PR tree-optimization/59951
24130 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24131
24132 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24133
24134 PR target/59784
24135 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24136 SFmode to DFmode case.
24137
24138 2014-01-29 DJ Delorie <dj@redhat.com>
24139
24140 * config/msp430/msp430.opt (-minrt): New.
24141 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24142 if -minrt given.
24143 (ENDFILE_SPEC): Likewise.
24144
24145 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24146
24147 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24148 (estimate_function_body_sizes): Use it.
24149
24150 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24151
24152 PR c++/58561
24153 * dwarf2out.c (is_cxx_auto): New.
24154 (is_base_type): Use it.
24155 (gen_type_die_with_usage): Likewise.
24156
24157 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24158
24159 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24160 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24161 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24162 -maltivec=be with LE targets.
24163 (vsx_mergeh_<mode>): Likewise.
24164 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24165 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24166 (altivec_vmrghb): Replace with define_expand and new
24167 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24168 (altivec_vmrghb_direct): New define_insn.
24169 (altivec_vmrghh): Replace with define_expand and new
24170 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24171 (altivec_vmrghh_direct): New define_insn.
24172 (altivec_vmrghw): Replace with define_expand and new
24173 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24174 (altivec_vmrghw_direct): New define_insn.
24175 (*altivec_vmrghsf): Adjust for endianness.
24176 (altivec_vmrglb): Replace with define_expand and new
24177 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24178 (altivec_vmrglb_direct): New define_insn.
24179 (altivec_vmrglh): Replace with define_expand and new
24180 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24181 (altivec_vmrglh_direct): New define_insn.
24182 (altivec_vmrglw): Replace with define_expand and new
24183 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24184 (altivec_vmrglw_direct): New define_insn.
24185 (*altivec_vmrglsf): Adjust for endianness.
24186 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24187 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24188 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24189 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24190 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24191 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24192 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24193 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24194
24195 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24196
24197 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24198 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24199 whitespace.
24200
24201 2014-01-29 Richard Biener <rguenther@suse.de>
24202
24203 PR tree-optimization/58742
24204 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24205 associate_pointerplus_align.
24206 (associate_pointerplus_diff): New function.
24207 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24208 and associate_pointerplus_diff.
24209
24210 2014-01-29 Richard Biener <rguenther@suse.de>
24211
24212 * lto-streamer.h (LTO_major_version): Bump to 3.
24213 (LTO_minor_version): Reset to 0.
24214
24215 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24216
24217 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24218 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24219 (arm_file_start): Generate correct asm header for armv7ve.
24220 * config/arm/bpabi.h: Add multilib support for armv7ve.
24221 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24222 and cortex-a15 to armv7ve.
24223 * config/arm/t-aprofile: Add multilib support for armv7ve.
24224 * doc/invoke.texi: Document -march=armv7ve.
24225
24226 2014-01-29 Richard Biener <rguenther@suse.de>
24227
24228 PR tree-optimization/58742
24229 * tree-ssa-forwprop.c (associate_plusminus): Return true
24230 if we changed sth, defer EH cleanup to ...
24231 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24232 (simplify_mult): New function.
24233
24234 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24235
24236 PR middle-end/59917
24237 PR tree-optimization/59920
24238 * tree.c (build_common_builtin_nodes): Remove
24239 __builtin_setjmp_dispatcher initialization.
24240 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24241 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24242 instead of gsi_after_labels + manually skipping debug stmts.
24243 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24244 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24245 * tree-inline.c (copy_edges_for_bb): Remove
24246 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24247 argument. Ignore computed_goto_p stmts. Don't call
24248 make_abnormal_goto_edges. If a call might need abnormal edges
24249 for non-local gotos, see if it already has an edge to
24250 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24251 with true argument, don't do anything then, otherwise add
24252 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24253 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24254 caller.
24255 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24256 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24257 (lower_stmt): Don't set data->calls_builtin_setjmp.
24258 (lower_builtin_setjmp): Adjust comment.
24259 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24260 * tree-cfg.c (found_computed_goto): Remove.
24261 (factor_computed_gotos): Remove.
24262 (make_goto_expr_edges): Return bool, true for computed gotos.
24263 Don't call make_abnormal_goto_edges.
24264 (build_gimple_cfg): Don't set found_computed_goto, don't call
24265 factor_computed_gotos.
24266 (computed_goto_p): No longer static.
24267 (make_blocks): Don't set found_computed_goto.
24268 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24269 (make_edges): If make_goto_expr_edges returns true, push bb
24270 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24271 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24272 vector. Record mapping between bbs and OpenMP regions if there
24273 are any, adjust make_gimple_omp_edges caller. Call
24274 handle_abnormal_edges.
24275 (make_abnormal_goto_edges): Remove.
24276 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24277 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24278 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24279 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24280 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24281 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24282 filling *region also set *region_idx to (*region)->entry->index.
24283
24284 PR other/58712
24285 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24286 For REGs set ORIGINAL_REGNO.
24287
24288 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24289
24290 * doc/md.texi: Mention that a target shouldn't implement
24291 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24292 than hi/lo pair.
24293
24294 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24295
24296 PR tree-optimization/59594
24297 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24298 a copy of the datarefs vector rather than the vector itself.
24299
24300 2014-01-28 Jason Merrill <jason@redhat.com>
24301
24302 PR c++/53756
24303 * dwarf2out.c (auto_die): New static.
24304 (gen_type_die_with_usage): Handle C++1y 'auto'.
24305 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24306 on definition.
24307
24308 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24309
24310 PR target/59672
24311 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24312 (SPEC_X32): Likewise.
24313 (SPEC_64): Likewise.
24314 * config/i386/i386.c (ix86_option_override_internal): Turn off
24315 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24316 for TARGET_16BIT.
24317 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24318 * config/i386/i386.h (TARGET_16BIT): New macro.
24319 (TARGET_16BIT_P): Likewise.
24320 * config/i386/i386.opt: Add m16.
24321 * doc/invoke.texi: Document -m16.
24322
24323 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24324
24325 PR preprocessor/59935
24326 * input.c (location_get_source_line): Bail out on when line number
24327 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24328
24329 2014-01-28 Richard Biener <rguenther@suse.de>
24330
24331 PR tree-optimization/58742
24332 * tree-ssa-forwprop.c (associate_plusminus): Handle
24333 pointer subtraction of the form (T)(P + A) - (T)P.
24334
24335 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24336
24337 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24338 at const_int_cost.
24339
24340 2014-01-28 Richard Biener <rguenther@suse.de>
24341
24342 Revert
24343 2014-01-28 Richard Biener <rguenther@suse.de>
24344
24345 PR rtl-optimization/45364
24346 PR rtl-optimization/59890
24347 * var-tracking.c (local_get_addr_clear_given_value): Handle
24348 already cleared slot.
24349 (val_reset): Handle not allocated local_get_addr_cache.
24350 (vt_find_locations): Use post-order on the inverted CFG.
24351
24352 2014-01-28 Richard Biener <rguenther@suse.de>
24353
24354 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24355
24356 2014-01-28 Richard Biener <rguenther@suse.de>
24357
24358 PR rtl-optimization/45364
24359 PR rtl-optimization/59890
24360 * var-tracking.c (local_get_addr_clear_given_value): Handle
24361 already cleared slot.
24362 (val_reset): Handle not allocated local_get_addr_cache.
24363 (vt_find_locations): Use post-order on the inverted CFG.
24364
24365 2014-01-28 Alan Modra <amodra@gmail.com>
24366
24367 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24368 * configure.ac <recursive call for build != host>: Define
24369 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24370 and LD_FOR_BUILD too.
24371 * configure: Regenerate.
24372
24373 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24374
24375 * config/i386/i386.c (get_builtin_code_for_version): Separate
24376 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24377 Broadwell from Haswell.
24378
24379 2014-01-27 Steve Ellcey <sellcey@mips.com>
24380
24381 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24382 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24383 * config/mips/mips.c (mips_option_override): Change setting
24384 of TARGET_DSP.
24385 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24386 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24387 Change from Mask to Var.
24388
24389 2014-01-27 Jeff Law <law@redhat.com>
24390
24391 * ipa-inline.c (inline_small_functions): Fix typo.
24392
24393 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24394
24395 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24396 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24397 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24398 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24399 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24400 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24401 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24402 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24403 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24404 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24405 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24406 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24407 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24408 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24409 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24410 (_mm512_storeu_epi64): Ditto.
24411 (_mm512_cmpge_epi32_mask): Ditto.
24412 (_mm512_cmpge_epu32_mask): Ditto.
24413 (_mm512_cmpge_epi64_mask): Ditto.
24414 (_mm512_cmpge_epu64_mask): Ditto.
24415 (_mm512_cmple_epi32_mask): Ditto.
24416 (_mm512_cmple_epu32_mask): Ditto.
24417 (_mm512_cmple_epi64_mask): Ditto.
24418 (_mm512_cmple_epu64_mask): Ditto.
24419 (_mm512_cmplt_epi32_mask): Ditto.
24420 (_mm512_cmplt_epu32_mask): Ditto.
24421 (_mm512_cmplt_epi64_mask): Ditto.
24422 (_mm512_cmplt_epu64_mask): Ditto.
24423 (_mm512_cmpneq_epi32_mask): Ditto.
24424 (_mm512_cmpneq_epu32_mask): Ditto.
24425 (_mm512_cmpneq_epi64_mask): Ditto.
24426 (_mm512_cmpneq_epu64_mask): Ditto.
24427 (_mm512_expand_pd): Ditto.
24428 (_mm512_expand_ps): Ditto.
24429 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24430 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24431 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24432 * config/i386/i386.c (ix86_builtins): Add
24433 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24434 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24435 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24436 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24437 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24438 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24439 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24440 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24441 IX86_BUILTIN_PMOVUSQW512_MEM.
24442 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24443 __builtin_ia32_pmovsqd512mem_mask,
24444 __builtin_ia32_pmovqd512mem_mask,
24445 __builtin_ia32_pmovusqw512mem_mask,
24446 __builtin_ia32_pmovsqw512mem_mask,
24447 __builtin_ia32_pmovqw512mem_mask,
24448 __builtin_ia32_pmovusdw512mem_mask,
24449 __builtin_ia32_pmovsdw512mem_mask,
24450 __builtin_ia32_pmovdw512mem_mask,
24451 __builtin_ia32_pmovqb512mem_mask,
24452 __builtin_ia32_pmovusqb512mem_mask,
24453 __builtin_ia32_pmovsqb512mem_mask,
24454 __builtin_ia32_pmovusdb512mem_mask,
24455 __builtin_ia32_pmovsdb512mem_mask,
24456 __builtin_ia32_pmovdb512mem_mask.
24457 (bdesc_args): Add __builtin_ia32_expanddf512,
24458 __builtin_ia32_expandsf512.
24459 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24460 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24461 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24462 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24463 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24464 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24465 (avx512f_<code>v8div16qi2_mask_store): This.
24466 (avx512f_expand<mode>): New.
24467
24468 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24469
24470 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24471 New.
24472 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24473 (_mm512_prefetch_i32scatter_pd): Ditto.
24474 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24475 (_mm512_prefetch_i64scatter_pd): Ditto.
24476 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24477 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24478 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24479 (_mm512_prefetch_i32scatter_ps): Ditto.
24480 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24481 (_mm512_prefetch_i64scatter_ps): Ditto.
24482 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24483 * config/i386/i386-builtin-types.def: Define
24484 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24485 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24486 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24487 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24488 IX86_BUILTIN_SCATTERPFQPD.
24489 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24490 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24491 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24492 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24493 __builtin_ia32_scatterpfqps.
24494 (ix86_expand_builtin): Expand new built-ins.
24495 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24496 fix memory access data type.
24497 (*avx512pf_gatherpf<mode>_mask): Ditto.
24498 (*avx512pf_gatherpf<mode>): Ditto.
24499 (avx512pf_scatterpf<mode>): Ditto.
24500 (*avx512pf_scatterpf<mode>_mask): Ditto.
24501 (*avx512pf_scatterpf<mode>): Ditto.
24502 (GATHER_SCATTER_SF_MEM_MODE): New.
24503 (avx512pf_gatherpf<mode>df): Ditto.
24504 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24505 (*avx512pf_scatterpf<mode>df): Ditto.
24506
24507 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24508
24509 PR bootstrap/59934
24510 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24511 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24512 reached.
24513
24514 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24515
24516 * common/config/arm/arm-common.c
24517 (arm_rewrite_mcpu): Handle multiple names.
24518 * config/arm/arm.h
24519 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24520
24521 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24522
24523 * gimple-builder.h (create_gimple_tmp): Delete.
24524
24525 2014-01-27 Christian Bruel <christian.bruel@st.com>
24526
24527 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24528 words comparisons.
24529
24530 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24531
24532 * config/pa/pa.md (call): Generate indirect long calls to non-local
24533 functions when outputing 32-bit code.
24534 (call_value): Likewise except for special call to buggy powf function.
24535
24536 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24537 portable runtime and PIC indirect calls.
24538 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24539 and PIC call sequences. Use ldo instead of blr to set return register
24540 in PIC call sequence.
24541
24542 2014-01-25 Walter Lee <walt@tilera.com>
24543
24544 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24545 avoid clobbering a live register.
24546
24547 2014-01-25 Walter Lee <walt@tilera.com>
24548
24549 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24550 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24551 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24552 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24553
24554 2014-01-25 Walter Lee <walt@tilera.com>
24555
24556 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24557 arguments on even registers.
24558 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24559 STACK_BOUNDARY.
24560 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24561 (BIGGEST_ALIGNMENT): Ditto.
24562 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24563
24564 2014-01-25 Walter Lee <walt@tilera.com>
24565
24566 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24567 insns before bundling.
24568 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24569
24570 2014-01-25 Walter Lee <walt@tilera.com>
24571
24572 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24573 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24574 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24575
24576 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24577
24578 * config/mips/constraints.md (kl): Delete.
24579 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24580 define expands, using...
24581 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24582 instructions for MIPS16.
24583 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24584 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24585
24586 2014-01-25 Walter Lee <walt@tilera.com>
24587
24588 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24589 (clzdi2): Ditto.
24590 (ffsdi2): Ditto.
24591
24592 2014-01-25 Walter Lee <walt@tilera.com>
24593
24594 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24595 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24596
24597 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24598
24599 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24600 Handle XOR.
24601
24602 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24603
24604 * print-rtl.c (in_call_function_usage): New var.
24605 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24606 EXPR_LIST mode as mode and not as reg note name.
24607
24608 PR middle-end/59561
24609 * cfgloopmanip.c (copy_loop_info): If
24610 loop->warned_aggressive_loop_optimizations, make sure
24611 the flag is set in target loop too.
24612
24613 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24614
24615 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24616 flag_cilkplus.
24617 * builtins.def: Likewise.
24618 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24619 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24620 * ira.c (ira_setup_eliminable_regset): Likewise.
24621 * omp-low.c (gate_expand_omp): Likewise.
24622 (execute_lower_omp): Likewise.
24623 (diagnose_sb_0): Likewise.
24624 (gate_diagnose_omp_blocks): Likewise.
24625 (simd_clone_clauses_extract): Likewise.
24626 (gate): Likewise.
24627
24628 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24629
24630 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24631 correction for little endian...
24632 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24633 here.
24634
24635 2014-01-24 Jeff Law <law@redhat.com>
24636
24637 PR tree-optimization/59919
24638 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24639 for non-returning calls.
24640
24641 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24642
24643 * common/config/aarch64/aarch64-common.c
24644 (aarch64_rewrite_mcpu): Handle multiple names.
24645 * config/aarch64/aarch64.h
24646 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24647
24648 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24649
24650 * input.c (add_file_to_cache_tab): Handle the case where fopen
24651 returns NULL.
24652
24653 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24654
24655 PR target/59929
24656 * config/i386/i386.md (pushsf splitter): Get stack adjustment
24657 from push operand if code of push isn't PRE_DEC.
24658
24659 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24660
24661 PR target/59909
24662 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24663 -mquad-memory-atomic. Update -mquad-memory documentation to say
24664 it is only used for non-atomic loads/stores.
24665
24666 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24667 -mquad-memory or -mquad-memory-atomic switches.
24668
24669 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24670 -mquad-memory-atomic to ISA 2.07 support.
24671
24672 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24673 to separate support of normal quad word memory operations (ldq, stq)
24674 from the atomic quad word memory operations.
24675
24676 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24677 support to separate non-atomic quad word operations from atomic
24678 quad word operations. Disable non-atomic quad word operations in
24679 little endian mode so that we don't have to swap words after the
24680 load and before the store.
24681 (quad_load_store_p): Add comment about atomic quad word support.
24682 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24683 options printed with -mdebug=reg.
24684
24685 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24686 -mquad-memory-atomic as the test for whether we have quad word
24687 atomic instructions.
24688 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24689 or -mp8-vector are used, allow byte/half-word atomic operations.
24690
24691 * config/rs6000/sync.md (load_lockedti): Insure that the address
24692 is a proper indexed or indirect address for the lqarx instruction.
24693 On little endian systems, swap the hi/lo registers after the lqarx
24694 instruction.
24695 (load_lockedpti): Use indexed_or_indirect_operand predicate to
24696 insure the address is valid for the lqarx instruction.
24697 (store_conditionalti): Insure that the address is a proper indexed
24698 or indirect address for the stqcrx. instruction. On little endian
24699 systems, swap the hi/lo registers before doing the stqcrx.
24700 instruction.
24701 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24702 insure the address is valid for the stqcrx. instruction.
24703
24704 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24705 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24706 type of quad memory support is available.
24707
24708 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
24709
24710 PR regression/59915
24711 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24712 there is a danger of looping.
24713
24714 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
24715
24716 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24717 force flag_ira_loop_pressure if set via command line.
24718
24719 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24720
24721 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24722 (ashr_simd): New builtin handling DI mode.
24723 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24724 (aarch64_sshr_simddi): New match pattern.
24725 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24726 (vshrd_n_s64): Likewise.
24727 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24728
24729 2014-01-23 Nick Clifton <nickc@redhat.com>
24730
24731 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24732 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24733 favour of mcu specific scripts.
24734 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24735 430x multilibs.
24736
24737 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24738 Alex Velenko <Alex.Velenko@arm.com>
24739
24740 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24741 (vaddv_s16): Likewise.
24742 (vaddv_s32): Likewise.
24743 (vaddv_u8): Likewise.
24744 (vaddv_u16): Likewise.
24745 (vaddv_u32): Likewise.
24746 (vaddvq_s8): Likewise.
24747 (vaddvq_s16): Likewise.
24748 (vaddvq_s32): Likewise.
24749 (vaddvq_s64): Likewise.
24750 (vaddvq_u8): Likewise.
24751 (vaddvq_u16): Likewise.
24752 (vaddvq_u32): Likewise.
24753 (vaddvq_u64): Likewise.
24754 (vaddv_f32): Likewise.
24755 (vaddvq_f32): Likewise.
24756 (vaddvq_f64): Likewise.
24757 (vmaxv_f32): Likewise.
24758 (vmaxv_s8): Likewise.
24759 (vmaxv_s16): Likewise.
24760 (vmaxv_s32): Likewise.
24761 (vmaxv_u8): Likewise.
24762 (vmaxv_u16): Likewise.
24763 (vmaxv_u32): Likewise.
24764 (vmaxvq_f32): Likewise.
24765 (vmaxvq_f64): Likewise.
24766 (vmaxvq_s8): Likewise.
24767 (vmaxvq_s16): Likewise.
24768 (vmaxvq_s32): Likewise.
24769 (vmaxvq_u8): Likewise.
24770 (vmaxvq_u16): Likewise.
24771 (vmaxvq_u32): Likewise.
24772 (vmaxnmv_f32): Likewise.
24773 (vmaxnmvq_f32): Likewise.
24774 (vmaxnmvq_f64): Likewise.
24775 (vminv_f32): Likewise.
24776 (vminv_s8): Likewise.
24777 (vminv_s16): Likewise.
24778 (vminv_s32): Likewise.
24779 (vminv_u8): Likewise.
24780 (vminv_u16): Likewise.
24781 (vminv_u32): Likewise.
24782 (vminvq_f32): Likewise.
24783 (vminvq_f64): Likewise.
24784 (vminvq_s8): Likewise.
24785 (vminvq_s16): Likewise.
24786 (vminvq_s32): Likewise.
24787 (vminvq_u8): Likewise.
24788 (vminvq_u16): Likewise.
24789 (vminvq_u32): Likewise.
24790 (vminnmv_f32): Likewise.
24791 (vminnmvq_f32): Likewise.
24792 (vminnmvq_f64): Likewise.
24793
24794 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24795
24796 * config/aarch64/aarch64-simd.md
24797 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
24798 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
24799 (*aarch64_mul3_elt<mode>): Likewise.
24800 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
24801 (*aarch64_mul3_elt_to_64v2df): Likewise.
24802 (*aarch64_mla_elt<mode>): Likewise.
24803 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
24804 (*aarch64_mls_elt<mode>): Likewise.
24805 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
24806 (*aarch64_fma4_elt<mode>): Likewise.
24807 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
24808 (*aarch64_fma4_elt_to_64v2df): Likewise.
24809 (*aarch64_fnma4_elt<mode>): Likewise.
24810 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
24811 (*aarch64_fnma4_elt_to_64v2df): Likewise.
24812 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
24813 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
24814 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24815 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24816 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
24817 (aarch64_sqdmull_lane<mode>_internal): Likewise.
24818 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
24819
24820 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
24821
24822 * config/aarch64/aarch64-simd.md
24823 (aarch64_be_checked_get_lane<mode>): New define_expand.
24824 * config/aarch64/aarch64-simd-builtins.def
24825 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
24826 New builtin definition.
24827 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
24828 Use new safe be builtin.
24829
24830 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24831
24832 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
24833 New define_insn.
24834 (aarch64_be_st1<mode>): Likewise.
24835 (aarch_ld1<VALL:mode>): Define_expand modified.
24836 (aarch_st1<VALL:mode>): Likewise.
24837 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
24838 (UNSPEC_ST1): Likewise.
24839
24840 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
24841
24842 * config/microblaze/microblaze.md: Add trap insn and attribute
24843
24844 2014-01-23 Dodji Seketeli <dodji@redhat.com>
24845
24846 PR preprocessor/58580
24847 * input.h (location_get_source_line): Take an additional line_size
24848 parameter.
24849 (void diagnostics_file_cache_fini): Declare new function.
24850 * input.c (struct fcache): New type.
24851 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
24852 New static constants.
24853 (diagnostic_file_cache_init, total_lines_num)
24854 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
24855 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
24856 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
24857 (get_next_line, read_next_line, goto_next_line, read_line_num):
24858 New static function definitions.
24859 (diagnostic_file_cache_fini): New function.
24860 (location_get_source_line): Take an additional output line_len
24861 parameter. Re-write using lookup_or_add_file_to_cache_tab and
24862 read_line_num.
24863 * diagnostic.c (diagnostic_finish): Call
24864 diagnostic_file_cache_fini.
24865 (adjust_line): Take an additional input parameter for the length
24866 of the line, rather than calculating it with strlen.
24867 (diagnostic_show_locus): Adjust the use of
24868 location_get_source_line and adjust_line with respect to their new
24869 signature. While displaying a line now, do not stop at the first
24870 null byte. Rather, display the zero byte as a space and keep
24871 going until we reach the size of the line.
24872 * Makefile.in: Add vec.o to OBJS-libcommon
24873
24874 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24875 Ilya Tocar <ilya.tocar@intel.com>
24876
24877 * config/i386/avx512fintrin.h (_mm512_kmov): New.
24878 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
24879 (__builtin_ia32_kmov16): Ditto.
24880 * config/i386/i386.md (UNSPEC_KMOV): New.
24881 (kmovw): Ditto.
24882
24883 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24884
24885 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
24886 (_mm512_storeu_si512): Ditto.
24887
24888 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
24889
24890 PR target/52125
24891 * rtl.h (get_referenced_operands): Declare.
24892 * recog.c (get_referenced_operands): New function.
24893 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
24894 operands have been referenced when recording LO_SUM references.
24895
24896 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
24897
24898 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
24899
24900 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24901
24902 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
24903 Enable for generic and recent AMD targets.
24904
24905 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24906
24907 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
24908 ARG_SIZE note when adjustment was eliminated.
24909
24910 2014-01-22 Jeff Law <law@redhat.com>
24911
24912 PR tree-optimization/59597
24913 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
24914 in file. Accept new argument REGISTERING and use it to modify
24915 dump output appropriately.
24916 (register_jump_thread): Corresponding changes.
24917 (mark_threaded_blocks): Reinstate code to cancel unprofitable
24918 thread paths involving joiner blocks. Add code to dump cancelled
24919 jump threading paths.
24920
24921 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
24922
24923 PR rtl-optimization/59477
24924 * lra-constraints.c (inherit_in_ebb): Process call for living hard
24925 regs. Update reloads_num and potential_reload_hard_regs for all insns.
24926
24927 2014-01-22 Tom Tromey <tromey@redhat.com>
24928
24929 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
24930 PARAMS.
24931 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
24932
24933 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24934
24935 PR rtl-optimization/59896
24936 * lra-constraints.c (process_alt_operands): Check unused note for
24937 matched operands of insn with no output reloads.
24938
24939 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
24940
24941 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
24942 (mips_move_from_gpr_cost): Likewise.
24943
24944 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24945
24946 PR rtl-optimization/59858
24947 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
24948 ira_class_hard_regs_num.
24949 (process_alt_operands): Increase reject for dying matched operand.
24950
24951 2014-01-21 Jakub Jelinek <jakub@redhat.com>
24952
24953 PR target/59003
24954 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
24955 smaller than size, perform several stores or loads and stores
24956 at dst + count - size to store or copy all of size bytes, rather
24957 than just last modesize bytes.
24958
24959 2014-01-20 DJ Delorie <dj@redhat.com>
24960
24961 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
24962 that CLOBBERs are REGs before propogating their values.
24963
24964 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
24965
24966 PR middle-end/59789
24967 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
24968 (cgraph_inline_failed_type): New function.
24969 * cgraph.h (DEFCIFCODE): Add type.
24970 (cgraph_inline_failed_type_t): New enum.
24971 (cgraph_inline_failed_type): New prototype.
24972 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
24973 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
24974 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
24975 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
24976 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
24977 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
24978 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
24979 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
24980 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
24981 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
24982 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
24983 OPTIMIZATION_MISMATCH.
24984 * tree-inline.c (expand_call_inline): Emit errors during
24985 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
24986
24987 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24988
24989 PR target/59685
24990 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
24991 mode attribute in insn output.
24992
24993 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
24994
24995 * output.h (output_constant): Delete.
24996 * varasm.c (output_constant): Make private.
24997
24998 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
24999
25000 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25001
25002 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25003
25004 PR middle-end/59860
25005 * tree.h (fold_builtin_strcat): New prototype.
25006 * builtins.c (fold_builtin_strcat): No longer static. Add len
25007 argument, if non-NULL, don't call c_strlen. Optimize
25008 directly into __builtin_memcpy instead of __builtin_strcpy.
25009 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25010 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25011
25012 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25013
25014 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25015 for SImode_address_operand operands, having only a REG argument.
25016
25017 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25018
25019 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25020 loader name using mbig-endian.
25021 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25022
25023 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25024
25025 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25026 (-mtune): Likewise.
25027 (-mcpu): Likewise.
25028
25029 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25030
25031 * config/aarch64/aarch64-protos.h
25032 (aarch64_cannot_change_mode_class_ptr): Declare.
25033 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25034 aarch64_cannot_change_mode_class_ptr): New.
25035 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25036 backend hook aarch64_cannot_change_mode_class.
25037
25038 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25039
25040 * common/config/aarch64/aarch64-common.c
25041 (aarch64_handle_option): Don't handle any option order logic here.
25042 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25043 selected_cpu, warn on architecture version mismatch.
25044 (aarch64_override_options): Fix parsing order for option strings.
25045
25046 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25047 Iain Sandoe <iain@codesourcery.com>
25048
25049 PR bootstrap/59496
25050 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25051 warning. Amend comment to reflect current functionality.
25052
25053 2014-01-20 Richard Biener <rguenther@suse.de>
25054
25055 PR middle-end/59860
25056 * builtins.c (fold_builtin_strcat): Remove case better handled
25057 by tree-ssa-strlen.c.
25058
25059 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25060
25061 * config/aarch64/aarch64.opt
25062 (mcpu, march, mtune): Make case-insensitive.
25063
25064 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25065
25066 PR target/59880
25067 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25068 if operands[1] is a REG or ZERO_EXTEND of a REG.
25069
25070 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25071
25072 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25073
25074 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25075
25076 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25077 long non-pic millicode calls.
25078
25079 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25080
25081 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25082
25083 2014-01-19 Kito Cheng <kito@0xlab.org>
25084
25085 * builtins.c (expand_movstr): Check movstr expand done or fail.
25086
25087 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25088 H.J. Lu <hongjiu.lu@intel.com>
25089
25090 PR target/59379
25091 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25092 to DImode for zero-extended addresses.
25093
25094 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25095
25096 PR rtl-optimization/57763
25097 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25098 on the new indirect jump_insn and increment LABEL_NUSES (label).
25099
25100 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25101
25102 PR bootstrap/59580
25103 PR bootstrap/59583
25104 * config.gcc (x86_archs): New variable.
25105 (x86_64_archs): Likewise.
25106 (x86_cpus): Likewise.
25107 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25108 --with-arch/--with-cpu= options.
25109 Support --with-arch=/--with-cpu={nehalem,westmere,
25110 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25111
25112 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25113
25114 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25115 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25116
25117 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25118
25119 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25120
25121 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25122
25123 PR target/58944
25124 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25125 clear cpp_get_options (parse_in)->warn_unused_macros for
25126 ix86_target_macros_internal with cpp_define.
25127
25128 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25129
25130 * jump.c (delete_related_insns): Keep (use (insn))s.
25131 * reorg.c (redundant_insn): Check for barriers too.
25132
25133 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25134
25135 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25136
25137 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25138
25139 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25140 call to $$dyncall when TARGET_LONG_CALLS is true.
25141
25142 2014-01-17 Jeff Law <law@redhat.com>
25143
25144 * ree.c (combine_set_extension): Temporarily disable test for
25145 changing number of hard registers.
25146
25147 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25148
25149 PR middle-end/58125
25150 * ipa-inline-analysis.c (inline_free_summary):
25151 Do not free summary of aliases.
25152
25153 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25154
25155 PR middle-end/59706
25156 * gimplify.c (gimplify_expr): Use create_tmp_var
25157 instead of create_tmp_var_raw. If cond doesn't have
25158 integral type, don't add the IFN_ANNOTATE builtin at all.
25159
25160 2014-01-17 Martin Jambor <mjambor@suse.cz>
25161
25162 PR ipa/59736
25163 * ipa-cp.c (prev_edge_clone): New variable.
25164 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25165 Also resize prev_edge_clone vector.
25166 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25167 (ipcp_edge_removal_hook): New function.
25168 (ipcp_driver): Register ipcp_edge_removal_hook.
25169
25170 2014-01-17 Andrew Pinski <apinski@cavium.com>
25171 Steve Ellcey <sellcey@mips.com>
25172
25173 PR target/59462
25174 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25175 of operator mode.
25176
25177 2014-01-17 Jeff Law <law@redhat.com>
25178
25179 PR middle-end/57904
25180 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25181 so that pass_ccp runs first.
25182
25183 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25184
25185 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25186 (ix86_adjust_cost): Use !TARGET_XXX.
25187 (do_reorder_for_imul): Likewise.
25188 (swap_top_of_ready_list): Likewise.
25189 (ix86_sched_reorder): Likewise.
25190
25191 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25192
25193 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25194 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25195 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25196 (intel_memset): New. Duplicate slm_memset.
25197 (intel_cost): New. Duplicate slm_cost.
25198 (m_INTEL): New macro.
25199 (processor_target_table): Add "intel".
25200 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25201 with PROCESSOR_INTEL for "intel".
25202 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25203 PROCESSOR_SILVERMONT.
25204 (ix86_issue_rate): Likewise.
25205 (ix86_adjust_cost): Likewise.
25206 (ia32_multipass_dfa_lookahead): Likewise.
25207 (swap_top_of_ready_list): Likewise.
25208 (ix86_sched_reorder): Likewise.
25209 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25210 instead of TARGET_OPT_AGU.
25211 * config/i386/i386.h (TARGET_INTEL): New.
25212 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25213 (processor_type): Add PROCESSOR_INTEL.
25214 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25215 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25216
25217 2014-01-17 Marek Polacek <polacek@redhat.com>
25218
25219 PR c/58346
25220 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25221 size is zero.
25222
25223 2014-01-17 Richard Biener <rguenther@suse.de>
25224
25225 PR tree-optimization/46590
25226 * opts.c (default_options_table): Add entries for
25227 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25228 all enabled at -O1 but not for -Og.
25229 * common.opt (fbranch-count-reg): Remove Init(1).
25230 (fmove-loop-invariants): Likewise.
25231 (ftree-pta): Likewise.
25232
25233 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25234
25235 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25236 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25237 decls to at least the GCC 4.8 used alignments.
25238
25239 PR fortran/59440
25240 * tree-nested.c (convert_nonlocal_reference_stmt,
25241 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25242 of GIMPLE_BIND stmts, adjust associated decls.
25243
25244 2014-01-17 Richard Biener <rguenther@suse.de>
25245
25246 PR tree-optimization/46590
25247 * vec.h (vec<>::bseach): New member function implementing
25248 binary search according to C89 bsearch.
25249 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25250 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25251 bitmap pointer again. Make accesses_in_loop a flat array.
25252 (mem_ref_obstack): New global.
25253 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25254 (mark_ref_stored): Likewise.
25255 (ref_indep_loop_p_2): Likewise.
25256 (set_ref_stored_in_loop): New helper function.
25257 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25258 (memref_free): Adjust.
25259 (record_mem_ref_loc): Simplify.
25260 (gather_mem_refs_stmt): Adjust.
25261 (sort_locs_in_loop_postorder_cmp): New function.
25262 (analyze_memory_references): Sort accesses_in_loop after
25263 loop postorder number.
25264 (find_ref_loc_in_loop_cmp): New function.
25265 (for_all_locs_in_loop): Find relevant cluster of locs in
25266 accesses_in_loop and iterate without recursion.
25267 (execute_sm): Avoid uninit warning.
25268 (struct ref_always_accessed): Simplify.
25269 (ref_always_accessed::operator ()): Likewise.
25270 (ref_always_accessed_p): Likewise.
25271 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25272 loop postorder numbers here.
25273 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25274 numbers.
25275
25276 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25277
25278 PR c++/57945
25279 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25280 on decls for which assemble_alias has been called.
25281
25282 2014-01-17 Nick Clifton <nickc@redhat.com>
25283
25284 * config/msp430/msp430.opt: (mcpu): New option.
25285 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25286 (msp430_option_override): Parse target_cpu. If the MCU name
25287 matches a generic string, clear target_mcu.
25288 (msp430_attr): Allow numeric interrupt values up to 63.
25289 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25290 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25291 option.
25292 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25293 Add mcpu matches.
25294 * config/msp430/msp430.md (popm): Use %J rather than %I.
25295 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25296 (addhi_cy_i): Use immediate_operand for operand 2.
25297 * doc/invoke.texi: Document -mcpu option.
25298
25299 2014-01-17 Richard Biener <rguenther@suse.de>
25300
25301 PR rtl-optimization/38518
25302 * df.h (df_analyze_loop): Declare.
25303 * df-core.c: Include cfgloop.h.
25304 (df_analyze_1): Split out main part of df_analyze.
25305 (df_analyze): Adjust.
25306 (loop_inverted_post_order_compute): New function.
25307 (loop_post_order_compute): Likewise.
25308 (df_analyze_loop): New function avoiding whole-function
25309 postorder computes.
25310 * loop-invariant.c (find_defs): Use df_analyze_loop.
25311 (find_invariants): Adjust.
25312 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25313
25314 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25315
25316 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25317 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25318
25319 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25320
25321 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25322 traversal when removing references.
25323
25324 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25325
25326 PR ipa/59775
25327 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25328
25329 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25330
25331 PR middle-end/56791
25332 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25333 pushing a reload for an autoinc when we had previously reloaded an
25334 inner part of the address.
25335
25336 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25337
25338 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25339 field.
25340 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25341 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25342 when not giving up or versioning for alias only because of
25343 loop->safelen.
25344 (vect_analyze_data_ref_dependences): Set to true.
25345 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25346 is a GIMPLE_PHI.
25347 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25348 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25349 to the condition.
25350
25351 PR middle-end/58344
25352 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25353
25354 PR target/59839
25355 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25356 operand 0 predicate for gathers, use a new pseudo as subtarget.
25357
25358 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25359
25360 PR middle-end/59609
25361 * lra-constraints.c (process_alt_operands): Add printing debug info.
25362 Check absence of input/output reloads for matched operands too.
25363
25364 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25365
25366 PR rtl-optimization/59835
25367 * ira.c (ira_init_register_move_cost): Increase cost for
25368 impossible modes.
25369
25370 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25371
25372 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25373
25374 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25375
25376 PR target/59780
25377 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25378 non-register objects. Use gen_(high/low)part more consistently.
25379 Fix assertions.
25380
25381 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25382
25383 PR target/59844
25384 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25385 endian support, remove tests for WORDS_BIG_ENDIAN.
25386 (p8_mfvsrd_3_<mode>): Likewise.
25387 (reload_gpr_from_vsx<mode>): Likewise.
25388 (reload_gpr_from_vsxsf): Likewise.
25389 (p8_mfvsrd_4_disf): Likewise.
25390
25391 2014-01-16 Richard Biener <rguenther@suse.de>
25392
25393 PR rtl-optimization/46590
25394 * lcm.c (compute_antinout_edge): Use postorder iteration.
25395 (compute_laterin): Use inverted postorder iteration.
25396
25397 2014-01-16 Nick Clifton <nickc@redhat.com>
25398
25399 PR middle-end/28865
25400 * varasm.c (output_constant): Return the number of bytes actually
25401 emitted.
25402 (output_constructor_array_range): Update the field size with the
25403 number of bytes emitted by output_constant.
25404 (output_constructor_regular_field): Likewise. Also do not
25405 complain if the total number of bytes emitted is now greater
25406 than the expected fieldpos.
25407 * output.h (output_constant): Update prototype and descriptive comment.
25408
25409 2014-01-16 Marek Polacek <polacek@redhat.com>
25410
25411 PR middle-end/59827
25412 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25413 it is error_mark_node.
25414
25415 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25416
25417 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25418 VALID_AVX256_REG_OR_OI_MODE.
25419
25420 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25421
25422 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25423 current procedure should be profiled.
25424
25425 2014-01-15 Andrew Pinski <apinski@cavium.com>
25426
25427 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25428 of moving from/to the STACK_REG register class.
25429
25430 2014-01-15 Richard Henderson <rth@redhat.com>
25431
25432 PR debug/54694
25433 * reginfo.c (global_regs_decl): Globalize.
25434 * rtl.h (global_regs_decl): Declare.
25435 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25436 reserved via global_regs.
25437
25438 2014-01-15 Teresa Johnson <tejohnson@google.com>
25439
25440 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25441
25442 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25443
25444 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25445 and vmulosh rather than call gen_vec_widen_smult_*.
25446 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25447 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25448 (vec_widen_smult_even_v16qi): Likewise.
25449 (vec_widen_umult_even_v8hi): Likewise.
25450 (vec_widen_smult_even_v8hi): Likewise.
25451 (vec_widen_umult_odd_v16qi): Likewise.
25452 (vec_widen_smult_odd_v16qi): Likewise.
25453 (vec_widen_umult_odd_v8hi): Likewise.
25454 (vec_widen_smult_odd_v8hi): Likewise.
25455 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25456 vmuloub rather than call gen_vec_widen_umult_*.
25457 (vec_widen_umult_lo_v16qi): Likewise.
25458 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25459 vmulosb rather than call gen_vec_widen_smult_*.
25460 (vec_widen_smult_lo_v16qi): Likewise.
25461 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25462 rather than call gen_vec_widen_umult_*.
25463 (vec_widen_umult_lo_v8hi): Likewise.
25464 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25465 rather than call gen_vec_widen_smult_*.
25466 (vec_widen_smult_lo_v8hi): Likewise.
25467
25468 2014-01-15 Jeff Law <law@redhat.com>
25469
25470 PR tree-optimization/59747
25471 * ree.c (find_and_remove_re): Properly handle case where a second
25472 eliminated extension requires widening a copy created for elimination
25473 of a prior extension.
25474 (combine_set_extension): Ensure that the number of hard regs needed
25475 for a destination register does not change when we widen it.
25476
25477 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25478
25479 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25480 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25481 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25482 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25483 (avr-*-rtems*): Likewise.
25484 (bfin*-rtems*): Likewise.
25485 (moxie-*-rtems*): Likewise.
25486 (h8300-*-rtems*): Likewise.
25487 (i[34567]86-*-rtems*): Likewise.
25488 (lm32-*-rtems*): Likewise.
25489 (m32r-*-rtems*): Likewise.
25490 (m68k-*-rtems*): Likewise.
25491 (microblaze*-*-rtems*): Likewise.
25492 (mips*-*-rtems*): Likewise.
25493 (powerpc-*-rtems*): Likewise.
25494 (sh-*-rtems*): Likewise.
25495 (sparc-*-rtems*): Likewise.
25496 (sparc64-*-rtems*): Likewise.
25497 (v850-*-rtems*): Likewise.
25498 (m32c-*-rtems*): Likewise.
25499
25500 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25501
25502 PR rtl-optimization/59511
25503 * ira.c (ira_init_register_move_cost): Use memory costs for some
25504 cases of register move cost calculations.
25505 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25506 instead of BB frequency.
25507 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25508 * lra-assigns.c (find_hard_regno_for): Ditto.
25509
25510 2014-01-15 Richard Biener <rguenther@suse.de>
25511
25512 PR tree-optimization/59822
25513 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25514 (vectorizable_load): Use it to hoist defs of uses of invariant
25515 loads out of the loop.
25516
25517 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25518 Kugan Vivekanandarajah <kuganv@linaro.org>
25519
25520 PR target/59695
25521 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25522 truncation.
25523
25524 2014-01-15 Richard Biener <rguenther@suse.de>
25525
25526 PR rtl-optimization/59802
25527 * lcm.c (compute_available): Use inverted postorder to seed
25528 the initial worklist.
25529
25530 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25531
25532 PR target/59803
25533 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25534 ADDR_REGS for invalid symrefs in non-PIC code.
25535
25536 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25537
25538 PR other/58712
25539 * builtins.c (determine_block_size): Initialize *probable_max_size
25540 even if len_rtx is CONST_INT.
25541
25542 2014-01-14 Andrew Pinski <apinski@cavium.com>
25543
25544 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25545 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25546 (cortexa53_tunings): Likewise.
25547 (aarch64_sched_issue_rate): New function.
25548 (TARGET_SCHED_ISSUE_RATE): Define.
25549
25550 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25551
25552 * ira-costs.c (find_costs_and_classes): Add missed
25553 ira_init_register_move_cost_if_necessary.
25554
25555 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25556
25557 PR target/59787
25558 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25559
25560 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25561
25562 PR target/59794
25563 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25564 to indicate if type is used for function return value. Warn ABI
25565 change if the vector mode isn't available for function return value.
25566 (ix86_function_arg_advance): Pass false to type_natural_mode.
25567 (ix86_function_arg): Likewise.
25568 (ix86_gimplify_va_arg): Likewise.
25569 (function_arg_32): Don't warn ABI change.
25570 (ix86_function_value): Pass true to type_natural_mode.
25571 (ix86_return_in_memory): Likewise.
25572 (ix86_struct_value_rtx): Removed.
25573 (TARGET_STRUCT_VALUE_RTX): Likewise.
25574
25575 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25576
25577 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25578 converting a conditional jump into a conditional return.
25579
25580 2014-01-14 Richard Biener <rguenther@suse.de>
25581
25582 PR tree-optimization/58921
25583 PR tree-optimization/59006
25584 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25585 hoisting invariant stmts.
25586 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25587 invariant loads on the preheader edge if possible.
25588
25589 2014-01-14 Joey Ye <joey.ye@arm.com>
25590
25591 * doc/plugin.texi (Building GCC plugins): Update to C++.
25592
25593 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25594
25595 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25596 (_mm_rcp28_round_ss): Ditto.
25597 (_mm_rsqrt28_round_sd): Ditto.
25598 (_mm_rsqrt28_round_ss): Ditto.
25599 (_mm_rcp28_sd): Ditto.
25600 (_mm_rcp28_ss): Ditto.
25601 (_mm_rsqrt28_sd): Ditto.
25602 (_mm_rsqrt28_ss): Ditto.
25603 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25604 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25605 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25606 (IX86_BUILTIN_RCP28SD): Ditto.
25607 (IX86_BUILTIN_RCP28SS): Ditto.
25608 (IX86_BUILTIN_RSQRT28SD): Ditto.
25609 (IX86_BUILTIN_RSQRT28SS): Ditto.
25610 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25611 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25612 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25613 (ix86_expand_special_args_builtin): Expand new FTYPE.
25614 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25615 (srcp14<mode>): Make insn unary.
25616 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25617 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25618 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25619 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25620 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25621 Fix rounding: make it SAE only.
25622 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25623 Ditto.
25624 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25625 Ditto.
25626 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25627 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25628 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25629 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25630 (round_saeonly_mask_scalar_operand4): Ditto.
25631 (round_saeonly_mask_scalar_op3): Ditto.
25632 (round_saeonly_mask_scalar_op4): Ditto.
25633
25634 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25635
25636 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25637 Implement -maltivec=be for vec_insert and vec_extract.
25638
25639 2014-01-10 DJ Delorie <dj@redhat.com>
25640
25641 * config/msp430/msp430.md (call_internal): Don't allow memory
25642 references with SP as the base register.
25643 (call_value_internal): Likewise.
25644 * config/msp430/constraints.md (Yc): New. For memory references
25645 that don't use SP as a base register.
25646
25647 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25648 "an integer without a # prefix"
25649 * config/msp430/msp430.md (epilogue_helper): Use it.
25650
25651 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25652
25653 PR target/59617
25654 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25655 AVX512F gather builtins.
25656 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25657 on gather decls with INTEGER_TYPE masktype.
25658 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25659 directly into the builtin rather than hoisting it before loop.
25660
25661 PR tree-optimization/59387
25662 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25663 (scev_const_prop): If folded_casts and type has undefined overflow,
25664 use force_gimple_operand instead of force_gimple_operand_gsi and
25665 for each added stmt if it is assign with
25666 arith_code_with_undefined_signed_overflow, call
25667 rewrite_to_defined_overflow.
25668 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25669 gimple-fold.h instead.
25670 (arith_code_with_undefined_signed_overflow,
25671 rewrite_to_defined_overflow): Moved to ...
25672 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25673 rewrite_to_defined_overflow): ... here. No longer static.
25674 Include gimplify-me.h.
25675 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25676 rewrite_to_defined_overflow): New prototypes.
25677
25678 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25679
25680 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25681
25682 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
25683
25684 * builtins.c (get_object_alignment_2): Minor tweak.
25685 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25686
25687 2014-01-13 Christian Bruel <christian.bruel@st.com>
25688
25689 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25690 optimized non constant lengths.
25691
25692 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25693
25694 PR libgomp/59194
25695 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25696 load as __atomic_load_N if possible.
25697
25698 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25699
25700 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25701 target parameter.
25702 (rs6000_expand_builtin): Adjust call.
25703
25704 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25705
25706 PR target/58115
25707 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25708 * config/rs6000/rs6000.c: Include target-globals.h.
25709 (rs6000_set_current_function): Instead of doing target_reinit
25710 unconditionally, use save_target_globals_default_opts and
25711 restore_target_globals.
25712
25713 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25714 FPSCR.
25715 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25716 (rs6000_expand_builtin): Handle mffs and mtfsf.
25717 (rs6000_init_builtins): Define mffs and mtfsf.
25718 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25719 (rs6000_mffs): New pattern.
25720 (rs6000_mtfsf): New pattern.
25721
25722 2014-01-11 Bin Cheng <bin.cheng@arm.com>
25723
25724 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25725 Start narrowing with START. Apply candidate-use pair
25726 and check overall cost in narrowing.
25727 (iv_ca_prune): Pass new argument.
25728
25729 2014-01-10 Jeff Law <law@redhat.com>
25730
25731 PR middle-end/59743
25732 * ree.c (combine_reaching_defs): Ensure the defining statement
25733 occurs before the extension when optimizing extensions with
25734 different source and destination hard registers.
25735
25736 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25737
25738 PR ipa/58585
25739 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25740 vtables into the type inheritance graph.
25741
25742 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25743
25744 PR rtl-optimization/59754
25745 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25746 modes in the REGNO != REGNO case.
25747
25748 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25749
25750 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25751
25752 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25753
25754 PR tree-optimization/59745
25755 * tree-predcom.c (tree_predictive_commoning_loop): Call
25756 free_affine_expand_cache if giving up because components is NULL.
25757
25758 * target-globals.c (save_target_globals): Allocate < 4KB structs using
25759 GC in payload of target_globals struct instead of allocating them on
25760 the heap and the larger structs separately using GC.
25761 * target-globals.h (struct target_globals): Make regs, hard_regs,
25762 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25763 of GTY((skip)) and change type to void *.
25764 (reset_target_globals): Cast loads from those fields to corresponding
25765 types.
25766
25767 2014-01-10 Steve Ellcey <sellcey@mips.com>
25768
25769 PR plugins/59335
25770 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
25771 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
25772 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
25773
25774 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
25775
25776 PR target/59744
25777 * aarch64-modes.def (CC_Zmode): New flags mode.
25778 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
25779 represents an equality.
25780 (aarch64_get_condition_code): Handle CC_Zmode.
25781 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
25782
25783 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25784
25785 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
25786 extraction in good case.
25787
25788 2014-01-10 Richard Biener <rguenther@suse.de>
25789
25790 PR tree-optimization/59374
25791 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
25792 checking after SLP discovery. Mark stmts not participating
25793 in any SLP instance properly.
25794
25795 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25796
25797 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
25798 when handling a SET rtx.
25799
25800 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25801
25802 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
25803 (cortex-a57): Likewise.
25804 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
25805
25806 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25807
25808 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
25809 non-iwmmxt builtins.
25810
25811 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25812
25813 PR ipa/58252
25814 PR ipa/59226
25815 * ipa-devirt.c record_target_from_binfo): Take as argument
25816 stack of binfos and lookup matching one for virtual inheritance.
25817 (possible_polymorphic_call_targets_1): Update.
25818
25819 2014-01-10 Huacai Chen <chenhc@lemote.com>
25820
25821 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
25822 kernel strings for Loongson-2E/2F/3A.
25823
25824 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25825
25826 PR middle-end/59670
25827 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
25828 is_gimple_call before calling gimple_call_internal_p.
25829
25830 2014-01-09 Steve Ellcey <sellcey@mips.com>
25831
25832 * Makefile.in (TREE_FLOW_H): Remove.
25833 (TREE_SSA_H): Add file names from tree-flow.h.
25834 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
25835 * tree.h: Remove tree-flow.h reference.
25836 * hash-table.h: Remove tree-flow.h reference.
25837 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
25838 reference with tree-ssa-loop.h.
25839
25840 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25841
25842 * doc/invoke.texi: Add -maltivec={be,le} options, and document
25843 default element-order behavior for -maltivec.
25844 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
25845 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
25846 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
25847 when targeting big endian, at least for now.
25848 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
25849
25850 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25851
25852 PR middle-end/47735
25853 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
25854 var satisfies use_register_for_decl, just take into account type
25855 alignment, rather than decl alignment.
25856
25857 PR tree-optimization/59622
25858 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
25859 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
25860 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
25861 Don't devirtualize for inplace at all. For targets.length () == 1,
25862 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
25863
25864 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25865
25866 * config/i386/i386.md (cpu): Remove the unused btver1.
25867
25868 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25869
25870 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
25871
25872 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25873
25874 PR target/58115
25875 * tree-core.h (struct target_globals): New forward declaration.
25876 (struct tree_target_option): Add globals field.
25877 * tree.h (TREE_TARGET_GLOBALS): Define.
25878 (prepare_target_option_nodes_for_pch): New prototype.
25879 * target-globals.h (struct target_globals): Define even if
25880 !SWITCHABLE_TARGET.
25881 * tree.c (prepare_target_option_node_for_pch,
25882 prepare_target_option_nodes_for_pch): New functions.
25883 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
25884 * config/i386/i386.c: Include target-globals.h.
25885 (ix86_set_current_function): Instead of doing target_reinit
25886 unconditionally, use save_target_globals_default_opts and
25887 restore_target_globals.
25888
25889 2014-01-09 Richard Biener <rguenther@suse.de>
25890
25891 PR tree-optimization/59715
25892 * tree-cfg.h (split_critical_edges): Declare.
25893 * tree-cfg.c (split_critical_edges): Export.
25894 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
25895
25896 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
25897
25898 * cfgexpand.c (expand_stack_vars): Optionally disable
25899 asan stack protection.
25900 (expand_used_vars): Likewise.
25901 (partition_stack_vars): Likewise.
25902 * asan.c (asan_emit_stack_protection): Optionally disable
25903 after return stack usage.
25904 (instrument_derefs): Optionally disable memory access instrumentation.
25905 (instrument_builtin_call): Likewise.
25906 (instrument_strlen_call): Likewise.
25907 (asan_protect_global): Optionally disable global variables protection.
25908 * doc/invoke.texi: Added doc for new options.
25909 * params.def: Added new options.
25910 * params.h: Likewise.
25911
25912 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25913
25914 PR rtl-optimization/59724
25915 * ifcvt.c (cond_exec_process_if_block): Don't call
25916 flow_find_head_matching_sequence with 0 longest_match.
25917 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
25918 non-active insns if !stop_after.
25919 (try_head_merge_bb): Revert 2014-01-07 changes.
25920
25921 2014-01-08 Jeff Law <law@redhat.com>
25922
25923 * ree.c (get_sub_rtx): New function, extracted from...
25924 (merge_def_and_ext): Here.
25925 (combine_reaching_defs): Use get_sub_rtx.
25926
25927 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
25928
25929 * cgraph.h (varpool_variable_node): Do not choke on null node.
25930
25931 2014-01-08 Catherine Moore <clm@codesourcery.com>
25932
25933 * config/mips/mips.md (simple_return): Attempt to use JRC
25934 for microMIPS.
25935 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
25936
25937 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25938
25939 PR rtl-optimization/59137
25940 * reorg.c (steal_delay_list_from_target): Call update_block for
25941 elided insns.
25942 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
25943
25944 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25945
25946 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25947 two duplicate entries.
25948
25949 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25950
25951 Revert:
25952 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
25953
25954 * config/mips/mips.c (mips_truncated_op_cost): New function.
25955 (mips_rtx_costs): Adjust test for BADDU.
25956 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
25957
25958 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
25959
25960 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
25961 (*baddu_si): ...this new pattern.
25962
25963 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25964
25965 PR ipa/59722
25966 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
25967
25968 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
25969
25970 PR middle-end/57748
25971 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
25972 inner_reference_p.
25973 (expand_expr, expand_normal): Adjust.
25974 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
25975 inner_reference_p. Use inner_reference_p to expand inner references.
25976 (store_expr): Adjust.
25977 * cfgexpand.c (expand_call_stmt): Adjust.
25978
25979 2014-01-08 Rong Xu <xur@google.com>
25980
25981 * gcov-io.c (gcov_var): Move from gcov-io.h.
25982 (gcov_position): Ditto.
25983 (gcov_is_error): Ditto.
25984 (gcov_rewrite): Ditto.
25985 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
25986 only part to libgcc/libgcov.h.
25987
25988 2014-01-08 Marek Polacek <polacek@redhat.com>
25989
25990 PR middle-end/59669
25991 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
25992
25993 2014-01-08 Marek Polacek <polacek@redhat.com>
25994
25995 PR sanitizer/59667
25996 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
25997
25998 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25999
26000 PR rtl-optimization/59649
26001 * stor-layout.c (get_mode_bounds): For BImode return
26002 0 and STORE_FLAG_VALUE.
26003
26004 2014-01-08 Richard Biener <rguenther@suse.de>
26005
26006 PR middle-end/59630
26007 * gimple.h (is_gimple_builtin_call): Remove.
26008 (gimple_builtin_call_types_compatible_p): New.
26009 (gimple_call_builtin_p): New overload.
26010 * gimple.c (is_gimple_builtin_call): Remove.
26011 (validate_call): Rename to ...
26012 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26013 check return types.
26014 (validate_type): New static function.
26015 (gimple_call_builtin_p): New overload and adjust.
26016 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26017 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26018 (gimple_fold_stmt_to_constant_1): Likewise.
26019 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26020
26021 2014-01-08 Richard Biener <rguenther@suse.de>
26022
26023 PR middle-end/59471
26024 * gimplify.c (gimplify_expr): Gimplify register-register type
26025 VIEW_CONVERT_EXPRs to separate stmts.
26026
26027 2014-01-07 Jeff Law <law@redhat.com>
26028
26029 PR middle-end/53623
26030 * ree.c (combine_set_extension): Handle case where source
26031 and destination registers in an extension insn are different.
26032 (combine_reaching_defs): Allow source and destination registers
26033 in extension to be different under limited circumstances.
26034 (add_removable_extension): Remove restriction that the
26035 source and destination registers in the extension are the same.
26036 (find_and_remove_re): Emit a copy from the extension's
26037 destination to its source after the defining insn if
26038 the source and destination registers are different.
26039
26040 PR middle-end/59285
26041 * ifcvt.c (merge_if_block): If we are merging a block with more than
26042 one successor with a block with no successors, remove any BARRIER
26043 after the second block.
26044
26045 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26046
26047 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26048
26049 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26050
26051 PR target/59652
26052 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26053 for 14-bit register offsets when INT14_OK_STRICT is false.
26054
26055 2014-01-07 Roland Stigge <stigge@antcom.de>
26056 Michael Meissner <meissner@linux.vnet.ibm.com>
26057
26058 PR 57386/target
26059 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26060 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26061
26062 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26063
26064 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26065 -mcpu.
26066
26067 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26068
26069 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26070 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26071 rtx is const0_rtx or not.
26072
26073 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26074
26075 PR target/58115
26076 * target-globals.c (save_target_globals): Remove this_fn_optab
26077 handling.
26078 * toplev.c: Include optabs.h.
26079 (target_reinit): Temporarily restore the global options if another
26080 set of options are in force.
26081
26082 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26083
26084 PR rtl-optimization/58668
26085 * cfgcleanup.c (flow_find_cross_jump): Don't count
26086 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26087 to determine what is counted.
26088 (flow_find_head_matching_sequence): Use active_insn_p to determine
26089 what is counted.
26090 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26091 counting change.
26092 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26093 determine what is counted.
26094
26095 PR tree-optimization/59643
26096 * tree-predcom.c (split_data_refs_to_components): If one dr is
26097 read and one write, determine_offset fails and the write isn't
26098 in the bad component, just put the read into the bad component.
26099
26100 2014-01-07 Mike Stump <mikestump@comcast.net>
26101 Jakub Jelinek <jakub@redhat.com>
26102
26103 PR pch/59436
26104 * tree-core.h (struct tree_optimization_option): Change optabs
26105 type from unsigned char * to void *.
26106 * optabs.c (init_tree_optimization_optabs): Adjust
26107 TREE_OPTIMIZATION_OPTABS initialization.
26108
26109 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26110
26111 PR target/59644
26112 * config/i386/i386.h (struct machine_function): Add
26113 no_drap_save_restore field.
26114 * config/i386/i386.c (ix86_save_reg): Use
26115 !cfun->machine->no_drap_save_restore instead of
26116 crtl->stack_realign_needed.
26117 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26118 this function clears frame_pointer_needed. Set
26119 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26120 and DRAP reg is needed.
26121
26122 2014-01-06 Marek Polacek <polacek@redhat.com>
26123
26124 PR c/57773
26125 * doc/implement-c.texi: Mention that other integer types are
26126 permitted as bit-field types in strictly conforming mode.
26127
26128 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26129
26130 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26131 is newly allocated.
26132
26133 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26134
26135 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26136
26137 2014-01-06 Martin Jambor <mjambor@suse.cz>
26138
26139 PR ipa/59008
26140 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26141 to int.
26142 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26143
26144 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26145
26146 PR debug/59350
26147 PR debug/59510
26148 * var-tracking.c (add_stores): Preserve the value of the source even if
26149 we don't record the store.
26150
26151 2014-01-06 Terry Guo <terry.guo@arm.com>
26152
26153 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26154
26155 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26156
26157 PR bootstrap/59541
26158 * config/darwin.c (darwin_function_section): Adjust return values to
26159 correspond to optimisation changes made in r206070.
26160
26161 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26162
26163 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26164 from prefetch_block tune setting.
26165 (nocona_cost): Correct size of prefetch block to 64.
26166
26167 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26168
26169 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26170 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26171 used to save the static chain register in the computation of the offset
26172 from which the FP registers need to be restored.
26173
26174 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26175
26176 PR tree-optimization/59519
26177 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26178 ICE if get_current_def (current_new_name) is already non-NULL, as long
26179 as it is a phi result of some other phi in *new_exit_bb that has
26180 the same argument.
26181
26182 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26183 or vmovdqu* for misaligned_operand.
26184 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26185 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26186 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26187 aligned_mem for AVX512F masked aligned load and store builtins and for
26188 non-temporal moves.
26189
26190 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26191
26192 PR tree-optimization/59651
26193 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26194 Address range for negative step should be added by TYPE_SIZE_UNIT.
26195
26196 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26197
26198 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26199 overlapping registers also for registers other than the stack pointer.
26200
26201 2014-01-03 Marek Polacek <polacek@redhat.com>
26202
26203 PR other/59661
26204 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26205 __builtin_FILE.
26206
26207 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26208
26209 PR target/59625
26210 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26211 asm goto as jump.
26212
26213 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26214 (push splitter): Use <P:MODE_SIZE> instead of
26215 GET_MODE_SIZE (<P:MODE>mode).
26216 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26217 (mov -1, reg peephole2): Likewise.
26218 * config/i386/sse.md (*mov<mode>_internal,
26219 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26220 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26221 *<code><mode>3, *andnot<mode>3<mask_name>,
26222 <mask_codefor><code><mode>3<mask_name>): Likewise.
26223 * config/i386/subst.md (mask_mode512bit_condition,
26224 sd_mask_mode512bit_condition): Likewise.
26225
26226 2014-01-02 Xinliang David Li <davidxl@google.com>
26227
26228 PR tree-optimization/59303
26229 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26230 (dump_predicates): Better output format.
26231 (pred_equal_p): New function.
26232 (is_neq_relop_p): Ditto.
26233 (is_neq_zero_form_p): Ditto.
26234 (pred_expr_equal_p): Ditto.
26235 (pred_neg_p): Ditto.
26236 (simplify_pred): Ditto.
26237 (simplify_preds_2): Ditto.
26238 (simplify_preds_3): Ditto.
26239 (simplify_preds_4): Ditto.
26240 (simplify_preds): Ditto.
26241 (push_pred): Ditto.
26242 (push_to_worklist): Ditto.
26243 (get_pred_info_from_cmp): Ditto.
26244 (is_degenerated_phi): Ditto.
26245 (normalize_one_pred_1): Ditto.
26246 (normalize_one_pred): Ditto.
26247 (normalize_one_pred_chain): Ditto.
26248 (normalize_preds): Ditto.
26249 (normalize_cond_1): Remove function.
26250 (normalize_cond): Ditto.
26251 (is_gcond_subset_of): Ditto.
26252 (is_subset_of_any): Ditto.
26253 (is_or_set_subset_of): Ditto.
26254 (is_and_set_subset_of): Ditto.
26255 (is_norm_cond_subset_of): Ditto.
26256 (pred_chain_length_cmp): Ditto.
26257 (convert_control_dep_chain_into_preds): Type change.
26258 (find_predicates): Ditto.
26259 (find_def_preds): Ditto.
26260 (destroy_predicates_vecs): Ditto.
26261 (find_matching_predicates_in_rest_chains): Ditto.
26262 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26263 (is_pred_expr_subset): Ditto.
26264 (is_pred_chain_subset_of): Ditto.
26265 (is_included_in): Ditto.
26266 (is_superset_of): Ditto.
26267
26268 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26269
26270 Update copyright years.
26271
26272 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26273
26274 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26275 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26276 config/arc/arc.md, config/arc/arc.opt,
26277 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26278 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26279 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26280 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26281 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26282 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26283 vtable-verify.c, vtable-verify.h: Use the standard form for the
26284 copyright notice.
26285
26286 2014-01-02 Tobias Burnus <burnus@net-b.de>
26287
26288 * gcc.c (process_command): Update copyright notice dates.
26289 * gcov-dump.c: Ditto.
26290 * gcov.c: Ditto.
26291 * doc/cpp.texi: Bump @copying's copyright year.
26292 * doc/cppinternals.texi: Ditto.
26293 * doc/gcc.texi: Ditto.
26294 * doc/gccint.texi: Ditto.
26295 * doc/gcov.texi: Ditto.
26296 * doc/install.texi: Ditto.
26297 * doc/invoke.texi: Ditto.
26298
26299 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26300
26301 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26302
26303 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26304
26305 * config/i386/sse.md (*mov<mode>_internal): Guard
26306 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26307
26308 PR rtl-optimization/59647
26309 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26310 new_rtx into UNSIGNED_FLOAT rtxes.
26311 \f
26312 Copyright (C) 2014 Free Software Foundation, Inc.
26313
26314 Copying and distribution of this file, with or without modification,
26315 are permitted in any medium without royalty provided the copyright
26316 notice and this notice are preserved.