dwarf2cfi.c: Use rtx_sequence
[gcc.git] / gcc / ChangeLog
1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2
3 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
5 Use methods of rtx_sequence.
6 (scan_trace): Likewise for local "pat".
7
8 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9
10 * coretypes.h (class rtx_sequence): Add forward declaration.
11 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
12 invariant: GET_CODE (X) == SEQUENCE.
13 (is_a_helper <rtx_sequence *>::test): New.
14 (is_a_helper <const rtx_sequence *>::test): New.
15 (rtx_sequence::len): New.
16 (rtx_sequence::element): New.
17 (rtx_sequence::insn): New.
18
19 2014-08-27 David Malcolm <dmalcolm@redhat.com>
20
21 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
22 rtx_insn_list **.
23 (alloc_INSN_LIST): Strengthen return type from rtx to
24 rtx_insn_list *.
25 (copy_INSN_LIST): Likewise for return type and param.
26 (concat_INSN_LIST): Likewise for both params and return type.
27 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
28 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
29 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
30 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
31
32 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
33 "implicit_sets", "control_uses", "clobbers" from rtx to
34 rtx_insn_list *.
35 (struct deps_desc): Likewise for fields "pending_read_insns",
36 "pending_write_insns", "pending_jump_insns",
37 "last_pending_memory_flush", "last_function_call",
38 "last_function_call_may_noreturn", "sched_before_next_call",
39 "sched_before_next_jump".
40 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
41 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
42
43 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
44 from rtx to rtx_insn_list *.
45 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
46 rtx_insn_list *.
47
48 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
49 to rtx_insn_list **.
50 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
51 rtx_insn_list *.
52 (queue_insn): Likewise for local "link".
53 (struct haifa_saved_data): Strengthen field "insn_queue" from
54 rtx * to rtx_insn_list **.
55 (save_backtrack_point): Update allocation of save->insn_queue to
56 reflect the strengthening of elements from rtx to rtx_insn_list *.
57 (queue_to_ready): Strengthen local "link" from rtx to
58 rtx_insn_list *; use methods "next" and "insn" when traversing the
59 list.
60 (early_queue_to_ready): Likewise for locals "link", "next_link",
61 "prev_link".
62 (schedule_block): Update allocation of insn_queue to reflect the
63 strengthening of elements from rtx to rtx_insn_list *. Strengthen
64 local "link" from rtx to rtx_insn_list *, and use methods when
65 working it.
66 (add_to_speculative_block): Strengthen locals "twins" and
67 "next_node" from rtx to rtx_insn_list *, and use methods when
68 working with them. Strengthen local "twin" from rtx to
69 rtx_insn *, eliminating a checked cast.
70 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
71 from rtx to rtx_insn_list *, and use methods when working with
72 them.
73
74 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
75 from rtx to rtx_insn_list *, adding a checked cast.
76 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
77 rtx_insn_list **.
78 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
79 "newlink" from rtx to rtx_insn_list *. Strengthen local
80 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
81 from rtx to rtx_insn *.
82 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
83 from rtx to rtx_insn_list *. Use methods of the latter class.
84 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
85 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
86 (remove_free_INSN_LIST_node): Strengthen return type and local
87 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
88 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
89 rtx_insn_list *, using "insn" method.
90
91 * sched-deps.c (add_dependence_list): Strengthen param "list"
92 from rtx to rtx_insn_list *, and use methods when working with it.
93 (add_dependence_list_and_free): Strengthen param "listp" from
94 rtx * to rtx_insn_list **.
95 (remove_from_dependence_list): Strenghten param "listp" from rtx *
96 to rtx_insn_list **, and use methods when working with *listp.
97 (remove_from_both_dependence_lists): Strengthen param "listp" from
98 rtx * to rtx_insn_list **
99 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
100 to rtx_insn_list **. Eliminate local "link", in favor of two new
101 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
102 respectively.
103 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
104 by introducing local "cond_deps".
105 (remove_from_deps): Strengthen param "insn" from rtx to
106 rtx_insn *.
107
108 * sched-rgn.c (concat_insn_mem_list): Strengthen param
109 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
110 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
111 Use methods of rtx_insn_list.
112
113 * store-motion.c (struct st_expr): Strengthen fields
114 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
115 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
116 rtx_insn_list *.
117 (find_moveable_store): Split out "tmp" into multiple more-tightly
118 scoped locals. Use methods of rtx_insn_list *.
119 (compute_store_table): Strengthen local "tmp" from rtx to
120 rtx_insn *. Use methods of rtx_insn_list *.
121
122 2014-08-27 David Malcolm <dmalcolm@redhat.com>
123
124 * coretypes.h (class rtx_insn_list): Add forward declaration.
125 * rtl.h (class rtx_insn_list): New subclass of rtx_def
126 (is_a_helper <rtx_insn_list *>::test): New.
127 (rtx_insn_list::next): New.
128 (rtx_insn_list::insn): New.
129 (gen_rtx_INSN_LIST): Add prototype.
130 * emit-rtl.c (gen_rtx_INSN_LIST): New.
131 * gengenrtl.c (special_rtx): Add INSN_LIST.
132
133 2014-08-27 David Malcolm <dmalcolm@redhat.com>
134
135 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
136 "prev" from rtx to rtx_insn *.
137
138 2014-08-27 David Malcolm <dmalcolm@redhat.com>
139
140 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
141 functions. Require merely an rtx for now, not an rtx_insn *.
142 (BLOCK_FOR_INSN): Likewise.
143 (INSN_LOCATION): Likewise.
144 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
145
146 2014-08-27 David Malcolm <dmalcolm@redhat.com>
147
148 * rtl.h (PATTERN): Convert this macro into a pair of inline
149 functions, for now, requiring const_rtx and rtx.
150
151 2014-08-27 David Malcolm <dmalcolm@redhat.com>
152
153 * target.def (unwind_emit): Strengthen param "insn" from rtx to
154 rtx_insn *.
155 (final_postscan_insn): Likewise.
156 (adjust_cost): Likewise.
157 (adjust_priority): Likewise.
158 (variable_issue): Likewise.
159 (macro_fusion_pair_p): Likewise.
160 (dfa_post_cycle_insn): Likewise.
161 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
162 (first_cycle_multipass_issue): Likewise.
163 (dfa_new_cycle): Likewise.
164 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
165 (speculate_insn): Likewise for param "insn".
166 (gen_spec_check): Likewise for params "insn" and "label".
167 (get_insn_spec_ds): Likewise for param "insn".
168 (get_insn_checked_ds): Likewise.
169 (dispatch_do): Likewise.
170 (dispatch): Likewise.
171 (cannot_copy_insn_p): Likewise.
172 (invalid_within_doloop): Likewise.
173 (legitimate_combined_insn): Likewise.
174 (needed): Likewise.
175 (after): Likewise.
176
177 * doc/tm.texi: Automatically updated to reflect changes to
178 target.def.
179
180 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
181 working with insn.
182 (schedule_block): Likewise.
183 (sched_init): Likewise.
184 (sched_speculate_insn): Strengthen param "insn" from rtx to
185 rtx_insn *.
186 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
187 working with insn.
188 * hooks.c (hook_bool_rtx_true): Rename to...
189 hook_bool_rtx_insn_true): ...this, and strengthen first param from
190 rtx to rtx_insn *.
191 (hook_constcharptr_const_rtx_null): Rename to...
192 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
193 first param from const_rtx to const rtx_insn *.
194 (hook_bool_rtx_int_false): Rename to...
195 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
196 param from rtx to rtx_insn *.
197 (hook_void_rtx_int): Rename to...
198 (hook_void_rtx_insn_int): ...this, and strengthen first param from
199 rtx to rtx_insn *.
200
201 * hooks.h (hook_bool_rtx_true): Rename to...
202 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
203 rtx to rtx_insn *.
204 (hook_bool_rtx_int_false): Rename to...
205 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
206 param from rtx to rtx_insn *.
207 (hook_void_rtx_int): Rename to...
208 (hook_void_rtx_insn_int): ...this, and strengthen first param from
209 rtx to rtx_insn *.
210 (hook_constcharptr_const_rtx_null): Rename to...
211 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
212 first param from const_rtx to const rtx_insn *.
213
214 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
215 and local "prev" from rtx to rtx_insn *.
216
217 * sched-int.h (sched_speculate_insn): Strengthen first param from
218 rtx to rtx_insn *.
219
220 * sel-sched.c (create_speculation_check): Likewise for local "label".
221 * targhooks.c (default_invalid_within_doloop): Strengthen param
222 "insn" from const_rtx to const rtx_insn *.
223 * targhooks.h (default_invalid_within_doloop): Strengthen param
224 from const_rtx to const rtx_insn *.
225
226 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
227 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
228
229 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
230 "insn".
231 (arc_invalid_within_doloop): Likewise, with const.
232
233 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
234 (arm_cannot_copy_insn_p): Likewise for param "insn".
235 (arm_unwind_emit): Likewise.
236
237 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
238 "dep_insn".
239
240 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
241 (c6x_variable_issue): Likewise. Removed now-redundant checked
242 cast.
243 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
244
245 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
246 Likewise for param "insn".
247 (epiphany_mode_after): Likewise.
248 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
249 params "insn", "dep_insn".
250 (epiphany_mode_needed): Likewise for param "insn".
251 (epiphany_mode_after): Likewise.
252
253 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
254 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
255 (ix86_avx_u128_mode_needed): Likewise.
256 (ix86_i387_mode_needed): Likewise.
257 (ix86_mode_needed): Likewise.
258 (ix86_avx_u128_mode_after): Likewise.
259 (ix86_mode_after): Likewise.
260 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
261 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
262 (ix86_adjust_priority): Likewise for param "insn".
263 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
264 (do_dispatch): Likewise.
265 (has_dispatch): Likewise.
266 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
267
268 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
269 reflect renaming of default hook implementation from
270 hook_constcharptr_const_rtx_null to
271 hook_constcharptr_const_rtx_insn_null.
272 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
273 rtx to rtx_insn *.
274 (ia64_variable_issue): Likewise for param "insn".
275 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
276 (ia64_dfa_new_cycle): Likewise.
277 (ia64_get_insn_spec_ds): Likewise.
278 (ia64_get_insn_checked_ds): Likewise.
279 (ia64_speculate_insn): Likewise.
280 (ia64_gen_spec_check): Likewise for params "insn", "label".
281 (ia64_asm_unwind_emit): Likewise for param "insn".
282
283 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
284
285 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
286 "insn", "def_insn".
287 (m68k_sched_variable_issue): Likewise for param "insn".
288
289 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
290 "def_insn".
291
292 * config/microblaze/microblaze.c (microblaze_adjust_cost):
293 Likewise for params "insn", "dep".
294
295 * config/mips/mips.c (mips_adjust_cost): Likewise.
296 (mips_variable_issue): Likewise for param "insn".
297 (mips_final_postscan_insn): Likewise.
298
299 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
300 for params "insn", "dep".
301
302 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
303 "dep_insn".
304 (pa_adjust_priority): Likewise for param "insn".
305
306 * config/picochip/picochip.c (picochip_sched_adjust_cost):
307 Likewise for params "insn", "dep_insn".
308
309 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
310 param "insn".
311 (rs6000_variable_issue): Likewise.
312 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
313 (rs6000_debug_adjust_cost): Likewise.
314 (rs6000_adjust_priority): Likewise for param "insn".
315 (rs6000_use_sched_lookahead_guard): Likewise.
316 (get_next_active_insn): Likewise for return type and both params.
317 (redefine_groups): Likewise for params "prev_head_insn", "tail"
318 and locals "insn", "next_insn".
319 (pad_groups): Likewise.
320
321 * config/s390/s390.c (s390_adjust_priority): Likewise for param
322 "insn".
323 (s390_cannot_copy_insn_p): Likewise.
324 (s390_sched_variable_issue): Likewise for third param, eliminating
325 checked cast.
326 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
327 default hook implementation from hook_constcharptr_const_rtx_null
328 to hook_constcharptr_const_rtx_insn_null.
329
330 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
331 from rtx to rtx_insn *.
332 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
333 (sh_variable_issue): Likewise for param "insn".
334 (sh_dfa_new_cycle): Likewise.
335 (sh_mode_needed): Likewise.
336 (sh_mode_after): Likewise.
337
338 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
339 params "insn", "dep_insn".
340 (hypersparc_adjust_cost): Likewise.
341 (sparc_adjust_cost): Likewise.
342
343 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
344 param, eliminated checked cast.
345 (spu_sched_adjust_cost): Likewise for first and third params.
346
347 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
348 params "insn" and "dep_insn" from rtx to rtx_insn *.
349
350 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
351
352 2014-08-27 David Malcolm <dmalcolm@redhat.com>
353
354 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
355 (set_is_load_p): ...this, updating to work on a SET pattern rather
356 than an insn.
357 (is_store_insn): Rename to...
358 (set_is_store_p): ...this, updating to work on a SET pattern
359 rather than an insn.
360 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
361 top of function to where it is needed. Rewrite the bogus
362 condition that checks for "insn" and "dep" being PARALLEL to
363 instead use single_set, introducing locals "insn_set" and
364 "dep_set". Given that we only ever returned "cost" for a non-pair
365 of SETs, bail out early if we don't have a pair of SET.
366 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
367 use the new locals "insn_set" and "dep_set", and update calls to
368 is_load_insn and is_store_insn to be calls to set_is_load_p and
369 set_is_store_p.
370
371 2014-08-27 Guozhi Wei <carrot@google.com>
372
373 PR target/62262
374 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
375 amount before using it.
376
377 2014-08-27 Richard Biener <rguenther@suse.de>
378
379 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
380 get_maxval_strlen inside a more useful API.
381 (gimple_fold_builtin_with_strlen): Remove and fold into ...
382 (gimple_fold_builtin): ... caller.
383 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
384 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
385 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
386 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
387 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
388 gimple_fold_builtin_sprintf): Adjust to compute maxval
389 themselves.
390
391 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
392
393 PR other/62248
394 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
395
396 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
397 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
398 Anna Tikhonova <anna.tikhonova@intel.com>
399 Ilya Tocar <ilya.tocar@intel.com>
400 Andrey Turetskiy <andrey.turetskiy@intel.com>
401 Ilya Verbin <ilya.verbin@intel.com>
402 Kirill Yukhin <kirill.yukhin@intel.com>
403 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
404
405 * config/i386/sse.md
406 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
407 Use `concat_tg_mode' attribute to determine asm register size.
408
409 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
411 Anna Tikhonova <anna.tikhonova@intel.com>
412 Ilya Tocar <ilya.tocar@intel.com>
413 Andrey Turetskiy <andrey.turetskiy@intel.com>
414 Ilya Verbin <ilya.verbin@intel.com>
415 Kirill Yukhin <kirill.yukhin@intel.com>
416 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
417
418 * config/i386/sse.md
419 (define_mode_iterator VI48_AVX512VL): New.
420 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
421 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
422 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
423 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
424 with VI1): Change mode iterator.
425 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
426 with VI_ULOADSTORE_BW_AVX512VL): New.
427 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
428 with VI_ULOADSTORE_F_AVX512VL): Ditto.
429 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
430 with VI1): Change mode iterator.
431 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
432 with VI_ULOADSTORE_BW_AVX512VL): New.
433 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
434 with VI_ULOADSTORE_F_AVX512VL): Ditto.
435 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
436 with VI1): Change mode iterator.
437 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
438 with VI_ULOADSTORE_BW_AVX512VL): New.
439 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
440 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
441 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
442 (define_insn "<avx512>_storedqu<mode>_mask" with
443 VI48_AVX512VL): New.
444 (define_insn "<avx512>_storedqu<mode>_mask" with
445 VI12_AVX512VL): Ditto.
446
447 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
449 Anna Tikhonova <anna.tikhonova@intel.com>
450 Ilya Tocar <ilya.tocar@intel.com>
451 Andrey Turetskiy <andrey.turetskiy@intel.com>
452 Ilya Verbin <ilya.verbin@intel.com>
453 Kirill Yukhin <kirill.yukhin@intel.com>
454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
455
456 * config/i386/sse.md
457 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
458 (define_mode_iterator VI48_AVX512BW): New.
459 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
460 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
461 with VI48_AVX2_48_AVX512F): New.
462 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
463 with VI2_AVX512VL): Ditto.
464
465 2014-08-27 Richard Biener <rguenther@suse.de>
466
467 PR middle-end/62239
468 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
469 (fold_builtin_3): Do not fold strcat_chk here.
470 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
471 from builtins.c.
472 (gimple_fold_builtin): Fold strcat_chk here.
473
474 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
475
476 * dwarf2out.h (dwarf2out_decl): Remove prototype.
477 * dwarf2out.c (dwarf2out_decl): Make static.
478
479 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
480
481 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
482
483 2014-08-26 David Malcolm <dmalcolm@redhat.com>
484
485 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
486 from rtx to rtx_insn *.
487 (cselib_lookup_from_insn): Likewise for final param.
488 (cselib_subst_to_values_from_insn): Likewise.
489 (cselib_add_permanent_equiv): Likewise.
490
491 * cselib.c (cselib_current_insn): Likewise for this variable.
492 (cselib_subst_to_values_from_insn): Likewise for param "insn".
493 (cselib_lookup_from_insn): Likewise.
494 (cselib_add_permanent_equiv): Likewise for param "insn" and local
495 "save_cselib_current_insn".
496 (cselib_process_insn): Replace use of NULL_RTX with NULL.
497
498 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
499 from rtx to rtx_insn *.
500
501 2014-08-26 David Malcolm <dmalcolm@redhat.com>
502
503 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
504 rtx_insn *.
505
506 2014-08-26 David Malcolm <dmalcolm@redhat.com>
507
508 * df.h (df_dump_insn_problem_function): Strengthen first param of
509 this callback from const_rtx to const rtx_insn *.
510 (struct df_insn_info): Strengthen field "insn" from rtx to
511 rtx_insn *.
512 (DF_REF_INSN): Eliminate this function, reinstating the older
513 macro definition.
514 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
515 (df_reg_defined): Likewise.
516 (df_find_use): Likewise.
517 (df_reg_used): Likewise.
518 (df_dump_insn_top): Strengthen param 1 from const_rtx to
519 const rtx_insn *.
520 (df_dump_insn_bottom): Likewise.
521 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
522 (df_insn_debug_regno): Likewise.
523 (debug_df_insn): Likewise.
524 (df_rd_simulate_one_insn): Likewise for param 2.
525 (df_word_lr_simulate_defs): Likewise for param 1.
526 (df_word_lr_simulate_uses): Likewise.
527 (df_md_simulate_one_insn): Likewise for param 2.
528 (df_simulate_find_noclobber_defs): Likewise for param 1.
529 (df_simulate_find_defs): Likewise.
530 (df_simulate_defs): Likewise.
531 (df_simulate_uses): Likewise.
532 (df_simulate_one_insn_backwards): Likewise for param 2.
533 (df_simulate_one_insn_forwards): Likewise.
534 (df_uses_create): Likewise for param 2.
535 (df_insn_create_insn_record): Likewise for param 1.
536 (df_insn_delete): Likewise.
537 (df_insn_rescan): Likewise.
538 (df_insn_rescan_debug_internal): Likewise.
539 (df_insn_change_bb): Likewise.
540 (df_notes_rescan): Likewise.
541 * rtl.h (remove_death): Likewise for param 2.
542 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
543 const rtx_insn *.
544 * sched-int.h (reemit_notes): Strengthen param from rtx to
545 rtx_insn *.
546 * valtrack.h (propagate_for_debug): Likewise for param 1.
547
548 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
549 local "tmp_rtx" from const_rtx to const rtx_insn *.
550 * combine.c (remove_death): Strengthen param "insn" from rtx to
551 rtx_insn *.
552 (move_deaths): Likewise for local "where_dead".
553 * cse.c (delete_trivially_dead_insns): Introduce local
554 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
555 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
556 rtx_insn *.
557 (df_reg_defined): Likewise.
558 (df_find_use): Likewise.
559 (df_reg_used): Likewise.
560 (df_dump_insn_problem_data): Strengthen param "insn" from
561 const_rtx to const rtx_insn *.
562 (df_dump_insn_top): Likewise.
563 (df_dump_insn_bottom): Likewise.
564 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
565 (df_insn_debug_regno): Likewise.
566 (debug_df_insn): Likewise.
567 (DF_REF_INSN): Delete.
568 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
569 from rtx to rtx_insn *.
570 (df_chain_insn_top_dump): Strengthen param "insn" from
571 const_rtx to const rtx_insn *.
572 (df_chain_insn_bottom_dump): Likewise.
573 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
574 rtx_insn *.
575 (df_word_lr_simulate_uses): Likewise.
576 (df_print_note): Likewise.
577 (df_remove_dead_and_unused_notes): Likewise.
578 (df_set_unused_notes_for_mw): Likewise.
579 (df_set_dead_notes_for_mw): Likewise.
580 (df_create_unused_note): Likewise.
581 (df_simulate_find_defs): Likewise.
582 (df_simulate_find_uses): Likewise.
583 (df_simulate_find_noclobber_defs): Likewise.
584 (df_simulate_defs): Likewise.
585 (df_simulate_uses): Likewise.
586 (df_simulate_one_insn_backwards): Likewise.
587 (df_simulate_one_insn_forwards): Likewise.
588 (df_md_simulate_one_insn): Likewise.
589 * df-scan.c (df_uses_create): Likewise.
590 (df_insn_create_insn_record): Likewise.
591 (df_insn_delete): Likewise.
592 (df_insn_rescan): Likewise.
593 (df_insn_rescan_debug_internal): Likewise.
594 (df_insn_change_bb): Likewise.
595 (df_notes_rescan): Likewise.
596 (df_refs_add_to_chains): Likewise.
597 (df_insn_refs_verify): Likewise.
598 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
599 when invoking df_insn_delete.
600 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
601 (set_unique_reg_note): Add checked cast.
602 * final.c (cleanup_subreg_operands): Likewise.
603 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
604 "insn" from rtx to rtx_insn *.
605 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
606 "last" from rtx to rtx_insn *.
607 * ira-emit.c (change_regs_in_insn): New function.
608 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
609 Invoke change_regs_in_insn rather than change_regs.
610 * ira.c (update_equiv_regs): Strengthen locals "insn",
611 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
612 for_each_rtx_in_insn rather than for_each_rtx.
613 * recog.c (confirm_change_group): Add checked casts.
614 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
615 Add checked cast.
616 (peep2_fill_buffer): Add checked cast.
617 * rtlanal.c (remove_note): Likewise.
618 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
619 locals "next" "end" from rtx to rtx_insn *.
620
621 2014-08-26 David Malcolm <dmalcolm@redhat.com>
622
623 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
624 to rtx_insn *.
625 (struct reg_use_data): Likewise for field "insn".
626 (insn_cost): Likewise for param.
627 (real_insn_for_shadow): Likewise for return type and param.
628 (increase_insn_priority): Likewise for param 1.
629 (debug_dependencies): Likewise for both params.
630
631 * haifa-sched.c (insn_delay): Likewise for param "insn".
632 (real_insn_for_shadow): Likewise for return type and param "insn".
633 (update_insn_after_change): Likewise for param "insn".
634 (recompute_todo_spec): Likewise for param "next" and locals "pro",
635 "other".
636 (insn_cost): Likewise for param "insn".
637 (increase_insn_priority): Likewise.
638 (calculate_reg_deaths): Likewise.
639 (setup_insn_reg_pressure_info): Likewise.
640 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
641 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
642 (model_recompute): Likewise.
643 (must_restore_pattern_p): Likewise for param "next".
644 (model_excess_cost): Likewise for param "insn".
645 (queue_remove): Likewise.
646 (adjust_priority): Likewise for param "prev".
647 (update_register_pressure): Likewise for param "insn".
648 (setup_insn_max_reg_pressure): Likewise for local "insn".
649 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
650 (model_add_to_schedule): Likewise.
651 (model_reset_queue_indices): Likewise for local "insn".
652 (unschedule_insns_until): Strengthen local "recompute_vec" from
653 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
654 "con" from rtx to rtx_insn *.
655 (restore_last_backtrack_point): Likewise for both locals "x". Add
656 checked casts.
657 (estimate_insn_tick): Likewise for param "insn".
658 (commit_schedule): Likewise for params "prev_head", "tail" and
659 local "x".
660 (verify_shadows): Likewise for locals "i1", "i2".
661 (dump_insn_stream): Likewise for params "head", "tail" and locals
662 "next_tail", "insn".
663 (schedule_block): Likewise for locals "insn", "x". Add a checked
664 cast.
665 (fix_inter_tick): Likewise for params "head", "tail".
666 (create_check_block_twin): Likewise for local "jump".
667 (haifa_change_pattern): Likewise for param "insn".
668 (haifa_speculate_insn): Likewise.
669 (dump_new_block_header): Likewise for params "head", "tail".
670 (fix_jump_move): Likewise for param "jump".
671 (move_block_after_check): Likewise.
672 (sched_init_insn_luid): Likewise for param "insn".
673 (sched_init_luids): Likewise for local "insn".
674 (insn_luid): Likewise for param "insn".
675 (init_h_i_d): Likewise.
676 (haifa_init_h_i_d): Likewise for local "insn".
677 (haifa_init_insn): Likewise for param "insn".
678 * sched-deps.c (add_dependence): Likewise for local "real_pro",
679 "other".
680 (create_insn_reg_use): Likewise for param "insn".
681 (setup_insn_reg_uses): Likewise. Add a checked cast.
682 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
683 "tail" from rtx to rtx_insn *.
684 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
685 "insn", "next_tail".
686
687 2014-08-26 David Malcolm <dmalcolm@redhat.com>
688
689 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
690 from rtx to rtx_insn *.
691 (model_add_to_schedule): Likewise for locals "start", "end",
692 "iter".
693
694 2014-08-26 David Malcolm <dmalcolm@redhat.com>
695
696 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
697 rtx_insn *.
698 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
699 "to" and locals "insn", "next", "copy". Remove now-redundant
700 checked cast.
701
702 2014-08-26 David Malcolm <dmalcolm@redhat.com>
703
704 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
705 rtx_insn * and param 4 from rtx * to rtx_insn **.
706 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
707 param 2 from rtx * to rtx_insn **.
708
709 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
710 rtx_insn * and final param from rtx * to rtx_insn **.
711
712 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
713 from rtx to rtx_insn *.
714 (try_head_merge_bb): Likewise for both locals named "move_upto".
715 * df-problems.c (can_move_insns_across): Likewise for params
716 "from", "to", "across_from", "across_to" and locals "insn",
717 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
718 rtx_insn **.
719 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
720 from rtx to rtx_insn *.
721 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
722 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
723 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
724 rtx_insn *.
725 (noce_try_abs): Likewise.
726 (noce_get_condition): Likewise for param "jump". Strengthen param
727 "earliest" from rtx * to rtx_insn **.
728 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
729 rtx_insn *.
730 (find_cond_trap): Likewise.
731 (dead_or_predicable): Likewise for local "earliest".
732 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
733 checked cast.
734 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
735 and local "prev". Strengthen param "earliest" from rtx * to
736 rtx_insn **.
737 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
738 Strengthen param "earliest" from rtx * to rtx_insn **.
739
740 2014-08-26 David Malcolm <dmalcolm@redhat.com>
741
742 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
743 "to" and local "insn" from rtx to rtx_insn *.
744
745 2014-08-26 David Malcolm <dmalcolm@redhat.com>
746
747 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
748 from rtx to rtx_insn *.
749 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
750 (code_motion_path_driver): Likewise for local "last_insn".
751 (simplify_changed_insns): Likewise for local "insn".
752
753 2014-08-26 David Malcolm <dmalcolm@redhat.com>
754
755 * rtl.h (push_to_sequence): Strengthen param from rtx to
756 rtx_insn *.
757 (push_to_sequence2): Likewise for both params.
758 (delete_insns_since): Likewise for param.
759 (reorder_insns_nobb): Likewise for all three params.
760 (set_new_first_and_last_insn): Likewise for both params.
761
762 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
763 rtx_insn *. Remove now-redundant cast.
764 (set_last_insn): Likewise.
765
766 * builtins.c (expand_builtin_return): Strengthen local
767 "call_fusage" from rtx to rtx_insn *.
768 * cfgrtl.c (create_basic_block_structure): Likewise for local
769 "after".
770 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
771 "first", "last" and local "insn".
772 (delete_insns_since): Likewise for param "from".
773 (reorder_insns_nobb): Likewise for params "from", "to", "after"
774 and local "x".
775 (push_to_sequence): Likewise for param "first" and local "last".
776 (push_to_sequence2): Likewise for params "first" and "last".
777 * lra.c (emit_add3_insn): Likewise for local "last".
778 (lra_emit_add): Likewise.
779 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
780 "last_insn".
781 (process_address_1): Likewise for locals "insn", last".
782 * modulo-sched.c (ps_first_note): Likewise for return type.
783 * optabs.c (expand_binop_directly): Likewise for param "last".
784
785 2014-08-26 David Malcolm <dmalcolm@redhat.com>
786
787 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
788 to rtx_insn*.
789 * emit-rtl.c (get_last_insn_anywhere): Likewise.
790
791 2014-08-26 David Malcolm <dmalcolm@redhat.com>
792
793 * function.h (struct sequence_stack): Strengthen fields "first"
794 and "last" from rtx to rtx_insn *.
795 (struct emit_status): Likewise for fields "x_first_insn" and
796 "x_last_insn".
797
798 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
799 (set_first_insn): Add checked cast.
800 (get_last_insn): Remove now-redundant checked cast.
801 (set_last_insn): Add checked cast.
802
803 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
804 "saved_first" and "saved_last" from rtx to rtx_insn *.
805
806 2014-08-26 David Malcolm <dmalcolm@redhat.com>
807
808 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
809 (unlink_insn_chain): Strengthen both params from rtx to
810 rtx_insn *.
811
812 * cfgrtl.c (cfg_layout_function_header): Likewise for this
813 variable.
814 (unlink_insn_chain): Likewise for params "first" and "last".
815 Remove now-redundant checked cast.
816 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
817 (fixup_reorder_chain): Strengthen local "insn" from rtx to
818 rtx_insn *.
819 * emit-rtl.c (link_insn_into_chain): Likewise for all three
820 params.
821 (add_insn): Likewise for param "insn" and local "prev".
822 (add_insn_after_nobb): Likewise for both params and local "next".
823 (add_insn_before_nobb): Likewise for both params and local "prev".
824 (add_insn_after): Rename param "after" to "uncast_after",
825 introducing local "after" with another checked cast.
826 (add_insn_before): Rename params "insn" and "before", giving them
827 "uncast_" prefixes, adding the old names back using checked casts.
828 (emit_note_after): Likewise for param "after".
829 (emit_note_before): Likewise for param "before".
830 (emit_label): Add a checked cast.
831
832 2014-08-26 David Malcolm <dmalcolm@redhat.com>
833
834 * cselib.h (cselib_record_sets_hook): Strengthen initial param
835 "insn" from rtx to rtx_insn *.
836
837 * cselib.c (cselib_record_sets_hook): Likewise.
838
839 * var-tracking.c (add_with_sets): Likewise, renaming back from
840 "uncast_insn" to "insn" and eliminating the checked cast from rtx
841 to rtx_insn *.
842
843 2014-08-26 David Malcolm <dmalcolm@redhat.com>
844
845 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
846 and "header_" from rtx to rtx_insn *.
847 (struct basic_block_d): Likewise for field "head_" within "x"
848 field of union basic_block_il_dependent.
849 (BB_HEAD): Drop function...
850 (SET_BB_HEAD): ...and this function in favor of...
851 (BB_HEAD): ...reinstate macro.
852 (BB_END): Drop function...
853 (SET_BB_END): ...and this function in favor of...
854 (BB_END): ...reinstate macro.
855 (BB_HEADER): Drop function...
856 (SET_BB_HEADER): ...and this function in favor of...
857 (BB_HEADER): ...reinstate macro.
858
859 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
860 (fix_crossing_unconditional_branches): Likewise.
861 * caller-save.c (save_call_clobbered_regs): Likewise.
862 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
863 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
864 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
865 (merge_blocks_move_successor_nojumps): Likewise.
866 (outgoing_edges_match): Update use of for_each_rtx to
867 for_each_rtx_in_insn.
868 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
869 (expand_gimple_cond): Likewise.
870 (expand_gimple_tailcall): Likewise.
871 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
872 SET_BB_END.
873 (construct_exit_block): Drop use of SET_BB_END.
874 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
875 rtx_insn *.
876 (delete_insn): Rename param "insn" to "uncast_insn", introducing
877 a new local "insn" with a checked cast to rtx_insn *. Drop use of
878 SET_BB_HEAD and SET_BB_END.
879 (create_basic_block_structure): Drop use of SET_BB_HEAD and
880 SET_BB_END.
881 (rtl_delete_block): Drop use of SET_BB_HEAD.
882 (rtl_split_block): Drop use of SET_BB_END.
883 (emit_nop_for_unique_locus_between): Likewise.
884 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
885 (block_label): Drop use of SET_BB_HEAD.
886 (fixup_abnormal_edges): Drop use of SET_BB_END.
887 (record_effective_endpoints): Drop use of SET_BB_HEADER.
888 (relink_block_chain): Likewise.
889 (fixup_reorder_chain): Drop use of SET_BB_END.
890 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
891 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
892 rtx_insn **. Drop use of SET_BB_HEADER.
893 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
894 SET_BB_HEAD.
895 (BB_HEAD): Delete this function.
896 (SET_BB_HEAD): Likewise.
897 (BB_END): Likewise.
898 (SET_BB_END): Likewise.
899 (BB_HEADER): Likewise.
900 (SET_BB_HEADER): Likewise.
901 * emit-rtl.c (add_insn_after): Rename param "insn" to
902 "uncast_insn", adding a new local "insn" and a checked cast to
903 rtx_insn *. Drop use of SET_BB_END.
904 (remove_insn): Strengthen locals "next" and "prev" from rtx to
905 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
906 (reorder_insns): Drop use of SET_BB_END.
907 (emit_insn_after_1): Strengthen param "first" and locals "last",
908 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
909 (emit_pattern_after_noloc): Add checked cast.
910 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
911 (restore_other_notes): Likewise.
912 (move_insn): Likewise.
913 (sched_extend_bb): Likewise.
914 (fix_jump_move): Likewise.
915 * ifcvt.c (noce_process_if_block): Likewise.
916 (dead_or_predicable): Likewise.
917 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
918 * reg-stack.c (change_stack): Drop use of SET_BB_END.
919 * sel-sched-ir.c (sel_move_insn): Likewise.
920 * sel-sched.c (move_nop_to_previous_block): Likewise.
921
922 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
923 SET_BB_END.
924 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
925
926 2014-08-26 David Malcolm <dmalcolm@redhat.com>
927
928 * basic-block.h (create_basic_block_structure): Strengthen params
929 1 "head" and 2 "end" from rtx to rtx_insn *.
930 * cfgrtl.c (create_basic_block_structure): Likewise.
931 (rtl_create_basic_block): Update casts from void * to rtx to
932 rtx_insn *, so that we can pass them as rtx_insn * to
933 create_basic_block_structure.
934 * sel-sched-ir.c (sel_create_basic_block): Likewise.
935
936 2014-08-26 David Malcolm <dmalcolm@redhat.com>
937
938 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
939 rtx_insn **.
940 (check_for_inc_dec): Strengthen param "insn" from rtx to
941 rtx_insn *.
942
943 * cselib.h (cselib_process_insn): Likewise.
944
945 * cselib.c (cselib_record_sets): Likewise.
946 (cselib_process_insn): Likewise.
947
948 * dse.c (struct insn_info): Likewise for field "insn".
949 (check_for_inc_dec_1): Likewise for local "insn".
950 (check_for_inc_dec): Likewise for param "insn".
951 (scan_insn): Likewise.
952 (dse_step1): Likewise for local "insn".
953
954 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
955 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
956
957 2014-08-26 David Malcolm <dmalcolm@redhat.com>
958
959 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
960 from rtx to rtx_insn *.
961 (DEP_PRO): Delete this function and...
962 (SET_DEP_PRO): ...this function in favor of...
963 (DEP_PRO): ...reinstate this macro.
964 (DEP_CON): Delete this function and...
965 (SET_DEP_CON): ...this function in favor of...
966 (DEP_CON): ...reinstate this old macro.
967 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
968 (init_dep): Likewise.
969 (set_priorities): Likewise for both params.
970 (sd_copy_back_deps): Likewise for params 1 and 2.
971
972 * haifa-sched.c (priority): Likewise for param "insn" and local
973 "next".
974 (set_priorities): Likewise for params "head" and "tail" and local
975 "insn".
976 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
977 local "consumer".
978 (add_to_speculative_block): Add a checked cast.
979 (create_check_block_twin): Drop use of SET_DEP_CON.
980 (add_jump_dependencies): Strengthen params "insn" and "jump" from
981 rtx to rtx_insn *.
982
983 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
984 Drop use of SET_DEP_PRO
985 (init_dep): Strengthen params "pro" and "con" from rtx to
986 rtx_insn *.
987 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
988 use of SET_DEP_CON.
989 (DEP_PRO): Delete.
990 (DEP_CON): Delete.
991 (SET_DEP_PRO): Delete.
992 (SET_DEP_CON): Delete.
993
994 2014-08-26 David Malcolm <dmalcolm@redhat.com>
995
996 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
997 from rtx to rtx_insn *.
998 (VINSN_INSN_RTX): Eliminate rvalue function and...
999 (SET_VINSN_INSN): ...lvalue function in favor of...
1000 (VINSN_INSN_RTX): reinstate this old macro.
1001
1002 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1003 in favor of VINSN_INSN_RTX.
1004 (VINSN_INSN_RTX): Delete this function.
1005 (SET_VINSN_INSN_RTX): Likewise.
1006
1007 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1008
1009 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1010 (BND_TO): Delete this function and...
1011 (SET_BND_TO): ...this functions in favor of...
1012 (BND_TO): ...reinstating this macro.
1013 (struct _fence): Strengthen field "executing_insns" from
1014 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1015 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1016 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1017 and param "insn" from rtx to insn_t.
1018 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1019 rtx_insn *.
1020
1021 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1022 vec<rtx_insn *> .
1023 (rtx_vec_t): Likewise.
1024 (struct sched_deps_info_def): Strengthen param of "start_insn"
1025 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1026 "note_mem_dep" callback and first param of "note_dep" callback.
1027
1028 * haifa-sched.c (add_to_speculative_block): Strengthen param
1029 "insn" from rtx to rtx_insn *.
1030 (clear_priorities): Likewise.
1031 (calc_priorities): Likewise for local "insn".
1032
1033 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1034 Remove redundant checked cast.
1035 (haifa_note_mem_dep): Likewise for param "pending_insn".
1036 (haifa_note_dep): Likewise for param "elem".
1037 (note_mem_dep): Likewise for param "e".
1038 (sched_analyze_1): Add checked casts.
1039 (sched_analyze_2): Likewise.
1040
1041 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1042 from rtx to rtx_insn *.
1043 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1044 from vec<rtx> * to vec<rtx_insn *> *.
1045
1046 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1047 scaffolding.
1048 (flist_add): Strengthen param "executing_insns" from
1049 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1050 (advance_deps_context): Remove now-redundant checked cast.
1051 (init_fences): Replace uses of NULL_RTX with NULL.
1052 (merge_fences): Strengthen params "last_scheduled_insn" and
1053 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1054 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1055 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1056 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1057 an instruction, rather than doing double-duty as a pattern.
1058 (return_nop_to_pool): Update for change of insn_t.
1059 (deps_init_id): Remove now-redundant checked cast.
1060 (struct sched_scan_info_def): Strengthen param of "init_insn"
1061 callback from rtx to insn_t.
1062 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1063 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1064 NULL.
1065 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1066 "end" from rtx to rtx_insn *.
1067 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1068 (rtx insn_rtx, bool force_unique_p)
1069 (BND_TO): Delete function.
1070 (SET_BND_TO): Delete function.
1071
1072 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1073 rtx to rtx_insn *.
1074 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1075 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1076 rtx to rtx_insn *.
1077 (undo_transformations): Likewise for param "insn".
1078 (update_liveness_on_insn): Likewise.
1079 (compute_live_below_insn): Likewise for param "insn" and local
1080 "succ".
1081 (update_data_sets): Likewise for param "insn".
1082 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1083 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1084 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1085 rtx_insn *.
1086 (move_cond_jump): Likewise for param "insn".
1087 (move_cond_jump): Drop use of SET_BND_TO.
1088 (compute_av_set_on_boundaries): Likewise.
1089 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1090 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1091 from rtx to rtx_insn *.
1092 (maybe_emit_renaming_copy): Likewise for param "insn".
1093 (maybe_emit_speculative_check): Likewise.
1094 (handle_emitting_transformations): Likewise.
1095 (remove_insn_from_stream): Likewise.
1096 (code_motion_process_successors): Strengthen local "succ" from rtx
1097 to insn_t.
1098
1099 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1100
1101 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1102 ilist_t, not _xlist_t;
1103 (ILIST_INSN): Define in terms of new union field "insn".
1104 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1105 _XLIST_NEXT.
1106 (struct _list_node): Add new field "insn" to the union, of type
1107 insn_t.
1108 (ilist_add): Replace macro with an inline function, requiring an
1109 insn_t.
1110 (ilist_remove): Define this macro directly in terms of
1111 _list_remove, rather than indirectly via _xlist_remove.
1112 (ilist_clear): Likewise, in terms of _list_clear rather than
1113 _xlist_clear.
1114 (ilist_is_in_p): Replace macro with an inline function, requiring
1115 an insn_t.
1116 (_list_iter_cond_insn): New function.
1117 (ilist_iter_remove): Define this macro directly in terms of
1118 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1119 (ilist_iterator): Define directly in terms of _list_iterator
1120 rather than indirectly through _xlist_iterator.
1121 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1122 than in terms of _FOR_EACH_X.
1123 (FOR_EACH_INSN_1): Likewise.
1124
1125 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1126
1127 PR target/60606
1128 PR target/61330
1129 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1130 DECL_HARD_REGISTER and return for invalid register specifications.
1131 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1132 DECL_HARD_REGISTER, call expand_one_error_var.
1133 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1134 CC_REGNUM with non-MODE_CC modes.
1135 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1136
1137 2014-08-26 Marek Polacek <polacek@redhat.com>
1138
1139 PR c/61271
1140 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1141
1142 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1143
1144 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1145 qi cost; add di cost.
1146 (cortexa57_addrcost_table): Likewise.
1147
1148 2014-08-26 Marek Polacek <polacek@redhat.com>
1149
1150 PR c/61271
1151 * expr.c (is_aligning_offset): Remove logical not.
1152
1153 2014-08-26 Marek Polacek <polacek@redhat.com>
1154
1155 PR c/61271
1156 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1157 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1158
1159 2014-08-26 Richard Biener <rguenther@suse.de>
1160
1161 PR tree-optimization/62175
1162 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1163 expand possibly trapping operations.
1164
1165 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1166
1167 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1168 "insn" from rtx to rtx_insn *.
1169 (permute_load): Likewise for param "insn".
1170 (permute_store): Likewise.
1171 (handle_special_swappables): Likewise for local "insn".
1172 (replace_swap_with_copy): Likewise for locals "insn" and
1173 "new_insn".
1174 (rs6000_analyze_swaps): Likewise for local "insn".
1175
1176 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1177
1178 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1179 to rtx_insn *.
1180
1181 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1182
1183 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1184 "note_list" from rtx to rtx_insn *.
1185 (BB_NOTE_LIST): Replace this function and...
1186 (SET_BB_NOTE_LIST): ...this function with...
1187 (BB_NOTE_LIST): ...the former macro implementation.
1188
1189 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1190 local "from_start" from rtx to rtx_insn *. Strengthen param
1191 "to_endp" from rtx * to rtx_insn **.
1192
1193 * haifa-sched.c (concat_note_lists): Likewise.
1194 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1195 BB_NOTE_LIST.
1196 (sel_restore_notes): Likewise.
1197 (move_bb_info): Likewise.
1198 (BB_NOTE_LIST): Delete this function.
1199 (SET_BB_NOTE_LIST): Delete this function.
1200 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1201 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1202
1203 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1204
1205 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1206 from rtx * to rtx_insn **.
1207 (reorder2): Likewise.
1208 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1209 from rtx to rtx_insn *.
1210
1211 * doc/tm.texi: Update mechanically for above change to target.def.
1212
1213 * sched-int.h (note_list): Strengthen this variable from rtx to
1214 rtx_insn *.
1215 (remove_notes): Likewise for both params.
1216 (restore_other_notes): Likewise for return type and first param.
1217 (struct ready_list): Strengthen field "vec" from rtx * to
1218 rtx_insn **.
1219 (struct dep_replacement): Strenghten field "insn" from rtx to
1220 rtx_insn *.
1221 (struct deps_desc): Likewise for fields "last_debug_insn",
1222 "last_args_size".
1223 (struct haifa_sched_info): Likewise for callback field
1224 "can_schedule_ready_p"'s param, for first param of "new_ready"
1225 callback field, for both params of "rank" callback field, for
1226 first field of "print_insn" callback field (with a const), for
1227 both params of "contributes_to_priority" callback, for param
1228 of "insn_finishes_block_p" callback, for fields "prev_head",
1229 "next_tail", "head", "tail", for first param of "add_remove_insn"
1230 callback, for first param of "begin_schedule_ready" callback, for
1231 both params of "begin_move_insn" callback, and for second param
1232 of "advance_target_bb" callback.
1233 (add_dependence): Likewise for params 1 and 2.
1234 (sched_analyze): Likewise for params 2 and 3.
1235 (deps_analyze_insn): Likewise for param 2.
1236 (ready_element): Likewise for return type.
1237 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1238 (try_ready): Strenghten param from rtx to rtx_insn *.
1239 (sched_emit_insn): Likewise for return type.
1240 (record_delay_slot_pair): Likewise for params 1 and 2.
1241 (add_delay_dependencies): Likewise for param.
1242 (contributes_to_priority): Likewise for both params.
1243 (find_modifiable_mems): Likewise.
1244
1245 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1246 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1247 "first_older_only_insn" from rtx to rtx_insn *.
1248 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1249 rtx_insn **.
1250
1251 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1252 "last_scheduled_iter0" from rtx to rtx_insn *.
1253 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1254 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1255 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1256 "insn" from rtx to rtx_insn *.
1257 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1258 rtx_insn **.
1259 (c6x_sched_reorder2): Strengthen param "ready" and locals
1260 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1261 "insn" from rtx to rtx_insn *.
1262 (c6x_variable_issue): Add a checked cast when assigning from insn
1263 to ss.last_scheduled_iter0.
1264 (split_delayed_branch): Strengthen param "insn" and local "i1"
1265 from rtx to rtx_insn *.
1266 (split_delayed_nonbranch): Likewise.
1267 (undo_split_delayed_nonbranch): Likewise for local "insn".
1268 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1269 "entry_after", "end_packet", "head_insn", "tail_insn",
1270 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1271 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1272 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1273 but add a checked cast on loop->start_label. Consolidate calls to
1274 avoid assigning result of gen_spkernel to "insn", now an
1275 rtx_insn *.
1276
1277 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1278 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1279 rtx to rtx_insn *.
1280 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1281 rtx_insn **. Strengthen locals "top", "next" from rtx to
1282 rtx_insn *.
1283 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1284 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1285 (add_parameter_dependencies): Strengthen params "call", "head" and
1286 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1287 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1288 (add_dependee_for_func_arg): Likewise for param "arg" and local
1289 "insn".
1290 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1291 "tail" and locals "insn", "first_arg".
1292
1293 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1294 for params "head", "tail" and locals "insn", "next", "next_tail".
1295 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1296 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1297 "insn", "lowest", "highest" from rtx to rtx_insn *.
1298 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1299 rtx_insn **.
1300 (ia64_sched_reorder2): Likewise.
1301
1302 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1303 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1304 from rtx * to rtx_insn **.
1305 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1306 rtx_insn **.
1307 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1308 rtx_insn *.
1309 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1310 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1311 to rtx_insn *.
1312
1313 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1314 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1315 to rtx_insn *.
1316 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1317 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1318 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1319 rtx_insn **.
1320 (vr4130_reorder): Likewise.
1321 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1322 rtx to rtx_insn *.
1323 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1324 rtx_insn **.
1325 (mips_sched_reorder): Likewise.
1326 (mips_sched_reorder2): Likewise.
1327
1328 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1329
1330 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1331 Strengthen local "tmp" from rtx to rtx_insn *.
1332 (rs6000_sched_reorder2): Likewise.
1333
1334 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1335 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1336 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1337 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1338
1339 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1340 "tmp2" from rtx to rtx_insn *.
1341 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1342 Strengthen local "insn" from rtx to rtx_insn *.
1343 (ready_reorder): Strengthen param "ready" from rtx * to
1344 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1345 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1346 (sh_reorder2): Likewise.
1347
1348 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1349 local "insn" from rtx to rtx_insn *.
1350
1351 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1352 rtx_insn *.
1353 (scheduled_insns): Strengthen this variable from vec<rtx> to
1354 vec<rtx_insn *>.
1355 (set_modulo_params): Likewise for locals "i1", "i2".
1356 (record_delay_slot_pair): Likewise for params "i1", "i2".
1357 (add_delay_dependencies): Likewise for param "insn".
1358 (cond_clobbered_p): Likewise.
1359 (recompute_todo_spec): Likewise for local "prev".
1360 (last_scheduled_insn): Likewise for this variable.
1361 (nonscheduled_insns_begin): Likewise.
1362 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1363 rtx_insn **.
1364 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1365 rtx_insn *.
1366 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1367 Strengthen local "insn" from rtx to rtx_insn *.
1368 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1369 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1370 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1371 (ready_remove_first): Likewise for return type and local "t".
1372 (ready_element): Likewise for return type.
1373 (ready_remove): Likewise for return type and local "t".
1374 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1375 (check_clobbered_conditions): Strengthen local "x" from rtx to
1376 rtx_insn *, adding a checked cast.
1377 (schedule_insn): Likewise for param "insn".
1378 (remove_notes): Likewise for params "head", "tail" and locals
1379 "next_tail", "insn", "next".
1380 (struct haifa_saved_data): Likewise for fields
1381 "last_scheduled_insn", "nonscheduled_insns_begin".
1382 (save_backtrack_point): Update for change to field "vec" of
1383 struct ready_list.
1384 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1385 rtx_insn **.
1386 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1387 from rtx to rtx_insn *
1388 (resolve_dependencies): Strengthen param "insn" from rtx to
1389 rtx_insn *
1390 (restore_other_notes): Likewise for return type, for param "head"
1391 and local "note_head".
1392 (undo_all_replacements): Likewise for local "insn".
1393 (first_nonscheduled_insn): Likewise for return type and local "insn".
1394 (queue_to_ready): Likewise for local "insn", adding checked casts.
1395 (early_queue_to_ready): Likewise for local "insn".
1396 (debug_ready_list_1): Strengthen local "p" from rtx * to
1397 rtx_insn **.
1398 (move_insn): Strengthen param "insn" and local "note" from rtx to
1399 rtx_insn *
1400 (insn_finishes_cycle_p): Likewise for param "insn".
1401 (max_issue): Likewise for local "insn".
1402 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1403 to rtx_insn **.
1404 (commit_schedule): Strengthen param "prev_head" and local "insn"
1405 from rtx to rtx_insn *
1406 (prune_ready_list): Likewise for local "insn".
1407 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1408 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1409 (set_priorities): Likewise for local "prev_head".
1410 (try_ready): Likewise for param "next".
1411 (fix_tick_ready): Likewise.
1412 (change_queue_index): Likewise.
1413 (sched_extend_ready_list): Update for change to field "vec" of
1414 struct ready_list.
1415 (generate_recovery_code): Strengthen param "insn" from rtx to
1416 rtx_insn *.
1417 (begin_speculative_block): Likewise.
1418 (create_check_block_twin): Likewise for param "insn" and locals
1419 "label", "check", "twin". Introduce local "check_pat" to avoid
1420 "check" being used as a plain rtx before being used as an insn.
1421 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1422 extracting elements from ready_list.
1423 (sched_remove_insn): Strengthen param "insn" from rtx to
1424 rtx_insn *.
1425 (sched_emit_insn): Likewise for return type.
1426 (ready_remove_first_dispatch): Likewise for return type and local
1427 "insn".
1428
1429 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1430
1431 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1432 const rtx_insn *.
1433
1434 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1435 from rtx to rtx_insn *.
1436 (add_dependence_list): Likewise for param "insn". Add a checked
1437 cast.
1438 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1439 to rtx_insn *. Strengthen param "list_p" from rtx * to
1440 rtx_insn **.
1441 (chain_to_prev_insn): Strengthen param "insn" and locals
1442 "prec_nonnote", "i" from rtx to rtx_insn *.
1443 (flush_pending_lists): Likewise for param "insn".
1444 (cur_insn): Likewise for this variable.
1445 (haifa_start_insn): Add a checked cast.
1446 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1447 (sched_analyze_reg): Likewise for param "insn".
1448 (sched_analyze_1): Likewise.
1449 (sched_analyze_2): Likewise. Add checked casts.
1450 (sched_analyze_insn): Likewise. Also for local "prev".
1451 (deps_analyze_insn): Likewise for param "insn".
1452 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1453 (add_dependence_1): Likewise for params "insn", "elem".
1454 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1455 (parse_add_or_inc): Likewise for param "insn".
1456 (find_inc): Likewise for local "inc_cand".
1457 (find_modifiable_mems): Likewise for params "head", "tail" and
1458 locals "insn", "next_tail".
1459
1460 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1461 (begin_schedule_ready): Likewise for param "insn".
1462 (begin_move_insn): Likewise for params "insn" and "last".
1463 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1464 const rtx_insn *.
1465 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1466 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1467 (ebb_add_remove_insn): Likewise for param "insn".
1468 (advance_target_bb): Likewise.
1469
1470 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1471 "insn".
1472 (check_live): Likewise for param "insn".
1473 (init_ready_list): Likewise for local "insn".
1474 (can_schedule_ready_p): Likewise for param "insn".
1475 (begin_schedule_ready): Likewise.
1476 (new_ready): Likewise for param "next".
1477 (rgn_print_insn): Likewise for param "insn".
1478 (rgn_rank): Likewise for params "insn1", "insn2".
1479 (contributes_to_priority): Likewise for params "next", "insn".
1480 (rgn_insn_finishes_block_p): Likewise for param "insn".
1481 (add_branch_dependences): Likewise for params "head", "tail" and
1482 locals "insn", "last".
1483 (rgn_add_remove_insn): Likewise for param "insn".
1484 (advance_target_bb): Likewise.
1485
1486 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1487 const_rtx to const rtx_insn *.
1488
1489 * sel-sched-dump.h (sel_print_insn): Likewise.
1490
1491 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1492 (deps_init_id): Likewise.
1493
1494 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1495 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1496 rtx_insn **.
1497
1498 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1499
1500 * output.h (final_start_function): Strengthen param 1 from rtx to
1501 rtx_insn *.
1502
1503 * final.c (final_start_function): Likewise, renaming back from
1504 "uncast_first" to "first", and dropping the checked cast from rtx
1505 to rtx_insn *.
1506
1507 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1508
1509 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1510 * final.c (final): Likewise. Rename param back from
1511 "uncast_first" to "first" and eliminate the checked cast from rtx
1512 to rtx_insn *.
1513
1514 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1515
1516 * output.h (shorten_branches): Strengthen param from rtx to
1517 rtx_insn *.
1518
1519 * final.c (shorten_branches): Likewise, renaming param back from
1520 "uncast_first" to "first", and dropping the checked cast from rtx
1521 to rtx_insn *.
1522
1523 * genattr.c (gen_attr): Likewise when writing out the prototype of
1524 shorten_branches.
1525
1526 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1527
1528 * sched-int.h (struct haifa_sched_info): Strengthen fields
1529 "prev_head" and "next_tail" from rtx to rtx_insn *.
1530
1531 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1532
1533 * rtl.h (rtx_jump_table_data::get_labels): New method.
1534 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1535 with use of the new rtx_jump_table_data::get_labels method.
1536 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1537 to rtx_jump_table_data *. Simplify by using get_labels method.
1538 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1539 a dyn_cast, introducing local "table", using it to replace
1540 label-lookup logic with a get_labels method call.
1541 (patch_jump_insn): Simplify using get_labels method.
1542 * dwarf2cfi.c (create_trace_edges): Likewise.
1543 * rtlanal.c (label_is_jump_target_p): Likewise.
1544
1545 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1546
1547 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1548 to rtx_insn *.
1549
1550 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1551 (unshare_all_rtl_again): Likewise, also for local "p".
1552
1553 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1554
1555 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1556 to rtx_insn *.
1557 * cfgrtl.c (delete_insn_and_edges): Likewise.
1558
1559 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1560
1561 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1562 from rtx to rtx_insn *.
1563
1564 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1565
1566 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1567
1568 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1569 locals "returnjump", "epilogue_end", "insn", "next".
1570
1571 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1572 "returnjump" from rtx * to rtx_insn **.
1573 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1574
1575 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1576
1577 * basic-block.h (struct edge_def). Strengthen "r" within
1578 union edge_def_insns from rtx to rtx_insn *.
1579
1580 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1581 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1582 rtx_insn *.
1583 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1584 from rtx to rtx_insn *.
1585 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1586 rtx_insn *.
1587 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1588 (reg_used_on_edge): Likewise.
1589 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1590 (gt_pch_nx): New overload for rtx_insn *&.
1591 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1592 from rtx to rtx_insn *.
1593
1594 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1595
1596 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1597 from rtx to rtx_insn *.
1598 (BB_FOOTER): Replace function with access macro.
1599 (SET_BB_FOOTER): Delete.
1600
1601 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1602 with BB_FOOTER.
1603 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1604 (emit_barrier_after_bb): Likewise.
1605 (record_effective_endpoints): Likewise.
1606 (relink_block_chain): Likewise.
1607 (fixup_fallthru_exit_predecessor): Likewise.
1608 (cfg_layout_duplicate_bb): Likewise.
1609 (cfg_layout_split_block): Likewise.
1610 (cfg_layout_delete_block): Likewise.
1611 (cfg_layout_merge_blocks): Likewise.
1612 (BB_FOOTER): Delete function.
1613 (SET_BB_FOOTER): Delete function.
1614 * combine.c (update_cfg_for_uncondjump): Replace uses of
1615 SET_BB_FOOTER with BB_FOOTER.
1616
1617 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1618
1619 * except.h (struct eh_landing_pad_d): Strengthen field
1620 "landing_pad" from rtx to rtx_code_label *.
1621
1622 * except.c (sjlj_emit_dispatch_table): Likewise for param
1623 "dispatch_label"
1624 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1625
1626 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1627
1628 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1629 first param from rtx to rtx_insn *.
1630 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1631 field "set_frame_ptr_insn".
1632 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1633 "csend" from rtx to rtx_code_label *.
1634 (xtensa_expand_atomic): Likewise for local "csloop".
1635 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1636 rtx_insn *.
1637 (xtensa_call_tls_desc): Likewise for return type and locals
1638 "call_insn", "insns".
1639 (xtensa_legitimize_tls_address): Likewise for local "insns".
1640 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1641
1642 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1643
1644 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1645 first param from rtx to rtx_insn *.
1646 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1647 "insn".
1648
1649 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1650
1651 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1652 Strengthen param 1 from rtx to rtx_insn *.
1653 (tilepro_output_cbranch): Likewise.
1654 (tilepro_adjust_insn_length): Likewise.
1655 (tilepro_final_prescan_insn): Likewise for sole param.
1656
1657 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1658 Likewise for local "last".
1659 (cbranch_predicted_p): Likewise for param "insn".
1660 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1661 (tilepro_output_cbranch_with_opcode): Likewise.
1662 (tilepro_output_cbranch): Likewise.
1663 (frame_emit_load): Likewise for return type and locals "seq",
1664 "insn".
1665 (emit_sp_adjust): Likewise for return type and local "insn".
1666 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1667 "insn".
1668 (tilepro_adjust_insn_length): Likewise for param "insn".
1669 (next_insn_to_bundle): Likewise for return type and params
1670 "r", "end".
1671 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1672 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1673 local "new_insns".
1674 (match_addli_pcrel): Likewise for param "insn".
1675 (replace_addli_pcrel): Likewise.
1676 (match_auli_pcrel): Likewise.
1677 (replace_auli_pcrel): Likewise.
1678 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1679 "next_insn".
1680 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1681 "queue", "next_queue", "prev".
1682 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1683 (tilepro_final_prescan_insn): Likewise for param "insn".
1684
1685 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1686
1687 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1688 Strengthen param 1 from rtx to rtx_insn *.
1689 (tilegx_output_cbranch): Likewise.
1690 (tilegx_adjust_insn_length): Likewise.
1691 (tilegx_final_prescan_insn): Likewise for sole param.
1692
1693 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1694 or local "last".
1695 (cbranch_predicted_p): Likewise for param "insn".
1696 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1697 (tilegx_output_cbranch_with_opcode): Likewise.
1698 (tilegx_output_cbranch): Likewise.
1699 (frame_emit_load): Likewise for return type.
1700 (set_frame_related_p): Likewise for locals "seq", "insn".
1701 (emit_sp_adjust): Likewise for return type, and for local "insn".
1702 Introduce local "pat" for use in place of "insn" where the latter
1703 isn't an instruction.
1704 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1705 from rtx to rtx_insn *.
1706 (tilegx_adjust_insn_length): Likewise for param "insn".
1707 (next_insn_to_bundle): Likewise for return type and params "r" and
1708 "end".
1709 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1710 "end".
1711 (replace_insns): Likewise for params "old_insn", "new_insns".
1712 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1713 "new_insns".
1714 (replace_mov_pcrel_step2): Likewise.
1715 (replace_mov_pcrel_step3): Likewise.
1716 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1717 "next_insn".
1718 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1719 "queue", "next_queue", "prev".
1720 (tilegx_output_mi_thunk): Likewise for local "insn".
1721 (tilegx_final_prescan_insn): Likewise for param "insn".
1722
1723 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1724
1725 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1726 rtx to rtx_insn *.
1727 (frame_emit_load): Likewise.
1728 (frame_emit_add_imm): Likewise, also for local "insn".
1729 (spu_expand_prologue): Likewise for local "insn".
1730 (struct spu_bb_info): Likewise for field "prop_jump".
1731 (emit_nop_for_insn): Likewise for param "insn" and local
1732 "new_insn".
1733 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1734 "hbr_insn".
1735 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1736 locals "hint", "insn".
1737 (get_branch_target): Likewise for param "branch".
1738 (insn_clobbers_hbr): Likewise for param "insn".
1739 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1740 locals "insn", "before_4", "before_16".
1741 (insert_hbrp): Likewise for local "insn".
1742 (spu_machine_dependent_reorg): Likewise for locals "branch",
1743 "insn", "next", "bbend".
1744 (uses_ls_unit): Likewise for param "insn".
1745 (get_pipe): Likewise.
1746 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1747 introducing a checked cast.
1748 (spu_sched_adjust_cost): Likewise for params "insn" and
1749 "dep_insn".
1750 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1751 (spu_sms_res_mii): Likewise.
1752
1753 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1754
1755 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1756 from rtx to rtx_insn *.
1757 (output_cbranch): Likewise for param 6.
1758 (output_return): Likewise for param 1.
1759 (output_sibcall): Likewise.
1760 (output_v8plus_shift): Likewise.
1761 (output_v8plus_mult): Likewise.
1762 (output_v9branch): Likewise for param 7.
1763 (output_cbcond): Likewise for param 3.
1764
1765 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1766 for local "insn".
1767 (sparc_legitimize_pic_address): Likewise.
1768 (sparc_emit_call_insn): Likewise.
1769 (emit_save_or_restore_regs): Likewise.
1770 (emit_window_save): Likewise for return type and local "insn".
1771 (sparc_expand_prologue): Likewise for local "insn".
1772 (sparc_flat_expand_prologue): Likewise.
1773 (output_return): Likewise for param "insn".
1774 (output_sibcall): Likewise for param "insn" and local "delay".
1775 (output_ubranch): Likewise for param "insn".
1776 (output_cbranch): Likewise.
1777 (output_cbcond): Likewise.
1778 (output_v9branch): Likewise.
1779 (output_v8plus_shift): Likewise.
1780 (sparc_output_mi_thunk): Likewise for local "insn".
1781 (get_some_local_dynamic_name): Likewise.
1782 (output_v8plus_mult): Likewise for param "insn".
1783
1784 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1785
1786 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1787 from rtx to rtx_insn *.
1788 (output_branchy_insn): Likewise for param 3.
1789 (output_far_jump): Likewise for param 1.
1790 (final_prescan_insn): Likewise.
1791 (sh_insn_length_adjustment): Likewise for sole param.
1792
1793 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1794 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1795 rtx_code_label *.
1796 (sh_emit_compare_and_set): Likewise for local "lab".
1797 (output_far_jump): Strengthen param "insn" and local "prev" from
1798 rtx to rtx_insn *.
1799 (output_branchy_insn): Likewise for param "insn" and local
1800 "next_insn".
1801 (output_ieee_ccmpeq): Likewise for param "insn".
1802 (struct label_ref_list_d): Strengthen field "label" from rtx to
1803 rtx_code_label *.
1804 (pool_node): Likewise.
1805 (pool_window_label): Likewise for this global.
1806 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1807 (dump_table): Strengthen params "start", "barrier" and local
1808 "scan" from rtx to rtx_insn *.
1809 (broken_move): Likewise for param "insn".
1810 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1811 Strengthen param "first_mova" from rtx * to rtx_insn **.
1812 (mova_p): Likewise for param "insn".
1813 (fixup_mova): Likewise for param "mova".
1814 (find_barrier): Likewise for return type, params "mova" and
1815 "from", and locals "barrier_before_mova", "found_barrier",
1816 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1817 "label" from rtx to rtx_code_label *.
1818 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1819 rtx to rtx_insn *.
1820 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1821 (split_branches): Likewise for param "first" and local "insn".
1822 (final_prescan_insn): Likewise for param "insn".
1823 (sequence_insn_p): Likewise for locals "prev", "next".
1824 (sh_insn_length_adjustment): Likewise for param "insn".
1825 (sh_can_redirect_branch): Likewise for local "insn".
1826 (find_r0_life_regions): Likewise for locals "end", "insn".
1827 (sh_output_mi_thunk): Likewise for local "insns".
1828
1829 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1830
1831 * config/score/score.c (score_output_mi_thunk): Strengthen local
1832 "insn" from rtx to rtx_insn *.
1833 (score_prologue): Likewise.
1834
1835 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1836
1837 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1838 1 from rtx to rtx_insn *.
1839 (s390_emit_jump): Likewise for return type.
1840 (s390_emit_call): Likewise.
1841 (s390_load_got): Likewise.
1842
1843 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1844 variable.
1845 (s390_match_ccmode): Likewise for param "insn".
1846 (s390_emit_jump): Likewise for return type.
1847 (s390_split_branches): Likewise for local "label".
1848 (struct constant): Strengthen field "label" from rtx to
1849 rtx_code_label *.
1850 (struct constant_pool): Likewise for field "label". Strengthen
1851 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1852 rtx_insn *.
1853 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1854 insns.
1855 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1856 (s390_end_pool): Likewise.
1857 (s390_dump_pool): Likewise for local "insn".
1858 (s390_mainpool_start): Likewise.
1859 (s390_chunkify_start): Likewise.
1860 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1861 with insns. Strengthen locals "label", "jump", "barrier", "next",
1862 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1863 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1864 rtx_insn *.
1865 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1866 "jump", "label", "next_insn".
1867 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1868 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1869 "tbegin_insn".
1870 (s390_load_got): Likewise for return type and local "insns".
1871 (s390_save_gprs_to_fprs): Likewise for local "insn".
1872 (s390_restore_gprs_from_fprs): Likewise.
1873 (pass_s390_early_mach::execute): Likewise.
1874 (s390_emit_prologue): Likewise for local "insns".
1875 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1876 rtx_code_label *.
1877 (s390_emit_call): Strengthen return type and local "insn" from
1878 rtx to rtx_insn *.
1879 (s390_emit_tpf_eh_return): Likewise for local "insn".
1880 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1881 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1882 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1883 local "cur_insn".
1884 (s390_non_addr_reg_read_p): Likewise for param "insn".
1885 (find_cond_jump): Likewise for return type and param "insn".
1886 (s390_swap_cmp): Likewise for param "insn".
1887 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1888 "prev_insn", "next_insn".
1889 (s390_reorg): Likewise for locals "insn", "target".
1890 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1891 (s390_sched_variable_issue): For now, rename param "insn" to
1892 "uncast_insn", introducing a checked cast.
1893 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1894 insn.
1895 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1896 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1897
1898 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1899
1900 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1901 param from rtx to rtx_insn *.
1902 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1903
1904 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1905
1906 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1907 4 from rtx to rtx_insn *.
1908 (rs6000_final_prescan_insn): Likewise for first param.
1909 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1910 local "insn".
1911 (rs6000_get_some_local_dynamic_name): Likewise.
1912 (output_cbranch): Likewise for param "insn".
1913 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1914 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1915 (rs6000_emit_allocate_stack): Likewise for local "insn".
1916 (load_cr_save): Likewise.
1917 (restore_saved_cr): Likewise.
1918 (restore_saved_lr): Likewise.
1919 (emit_cfa_restores): Likewise.
1920 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1921 "deleted_debug_label".
1922 (rs6000_output_mi_thunk): Likewise for local "insn".
1923 (rs6000_final_prescan_insn): Likewise for param "insn".
1924
1925 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1926
1927 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1928 Strengthen param "insn" from rtx to rtx_insn *.
1929 * config/picochip/picochip.c (picochip_current_prescan_insn):
1930 Likewise for this variable.
1931 (picochip_final_prescan_insn): Likewise for param "insn".
1932
1933 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1934
1935 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1936 from rtx to rtx_insn *.
1937 (pa_output_indirect_call): Likewise.
1938 (pa_adjust_insn_length): Likewise.
1939 (pa_attr_length_millicode_call): Likewise.
1940 (pa_attr_length_call): Likewise.
1941 (pa_attr_length_indirect_call): Likewise.
1942
1943 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1944 "insn".
1945 (pa_attr_length_millicode_call): Likewise.
1946 (pa_attr_length_call): Likewise.
1947 (pa_output_call): Likewise.
1948 (pa_attr_length_indirect_call): Likewise.
1949 (pa_output_indirect_call): Likewise.
1950
1951 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1952
1953 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1954 Strengthen first param from rtx to rtx_insn *.
1955 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1956 param "insn".
1957
1958 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1959
1960 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1961 type from rtx to rtx_insn *.
1962 (mips_expand_call): Likewise.
1963 (mips_adjust_insn_length): Likewise for first param.
1964 (mips_output_conditional_branch): Likewise.
1965 (mips_output_order_conditional_branch): Likewise.
1966 (mips_final_prescan_insn): Likewise.
1967
1968 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1969 rtx_insn * for the SEQUENCE case.
1970 (SEQ_END): Likewise.
1971 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1972 (mips_emit_call_insn): Likewise, also for local "insn".
1973 (mips16_gp_pseudo_reg): Likewise for local "scan".
1974 (mips16_build_call_stub): Likewise for return type and for local
1975 "insn". Introduce a new local "pattern" so that "insn" can indeed
1976 be an insn.
1977 (mips_expand_call): Strengthen return type and local "insn" from
1978 rtx to rtx_insn *.
1979 (mips_block_move_loop): Strengthen local "label" from rtx to
1980 rtx_code_label *.
1981 (mips_expand_synci_loop): Likewise for locals "label",
1982 "end_label".
1983 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1984 rtx_insn *.
1985 (mips16e_collect_argument_saves): Likewise for locals "insn",
1986 "next".
1987 (mips_find_gp_ref): Likewise for param of callback for "pred"
1988 param, and for local "insn".
1989 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1990 (mips_insn_has_flexible_gp_ref_p): Likewise.
1991 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1992 local "insn".
1993 (mips_epilogue_set_cfa): Likewise for local "insn".
1994 (mips_expand_epilogue): Likewise.
1995 (mips_adjust_insn_length): Likewise for param "insn".
1996 (mips_output_conditional_branch): Likewise.
1997 (mips_output_order_conditional_branch): Likewise.
1998 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1999 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2000 "falu2_turn_enabled_insn".
2001 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2002 "done_label" from rtx to rtx_code_label *.
2003 (struct mips16_constant): Likewise for field "label".
2004 (mips16_add_constant): Likewise for return type.
2005 (mips16_emit_constants_1): Strengthen return type and param "insn"
2006 from rtx to rtx_insn *.
2007 (mips16_emit_constants): Likewise for param "insn".
2008 (mips16_insn_length): Likewise.
2009 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2010 to rtx_code_label *.
2011 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2012 from rtx to rtx_insn *.
2013 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2014 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2015 (r10k_simplify_address): Strengthen param "insn" and local
2016 "def_insn" from rtx to rtx_insn *.
2017 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2018 rtx_insn *.
2019 (r10k_needs_protection_p_1): Update target type of cast of data
2020 from to rtx to rtx_insn *.
2021 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2022 rtx * to rtx_insn **.
2023 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2024 rtx_insn *.
2025 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2026 (mips_call_expr_from_insn): Likewise for param "insn".
2027 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2028 (mips_find_pic_call_symbol): Likewise for param "insn".
2029 (mips_annotate_pic_calls): Likewise for local "insn".
2030 (mips_sim_insn): Likewise for this variable.
2031 (struct mips_sim): Likewise for field "insn" within elements of
2032 last_set array.
2033 (mips_sim_wait_reg): Likewise for param "insn".
2034 (mips_sim_wait_regs): Likewise.
2035 (mips_sim_wait_units): Likewise.
2036 (mips_sim_wait_insn): Likewise.
2037 (mips_sim_issue_insn): Likewise.
2038 (mips_sim_finish_insn): Likewise.
2039 (mips_seq_time): Likewise for param "seq" and local "insn".
2040 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2041 locals "first", "second".
2042 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2043 "last", "last2", "next".
2044 (mips_avoid_hazard): Likewise for params "after", "insn".
2045 (mips_reorg_process_insns): Likewise for locals "insn",
2046 "last_insn", "subinsn", "next_insn".
2047 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2048 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2049 "jump_sequence".
2050 (mips_output_mi_thunk): Likewise for local "insn".
2051 (mips_final_prescan_insn): Likewise for param "insn".
2052
2053 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2054
2055 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2056 Strengthen return type and local "insns" from rtx to rtx_insn *.
2057 (microblaze_legitimize_tls_address): Likewise for local "insns".
2058 (microblaze_block_move_loop): Strengthen local "label" from rtx
2059 to rtx_code_label *.
2060 (microblaze_expand_prologue): Strengthen two locals named "insn"
2061 from rtx to rtx_insn *.
2062 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2063 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2064 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2065 to rtx_code_label *.
2066
2067 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2068
2069 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2070 param from rtx to rtx_insn *.
2071 (mep_reuse_lo): Likewise for third param.
2072 (mep_use_post_modify_p): Likewise for first param.
2073 (mep_core_address_length): Likewise.
2074 (mep_cop_address_length): Likewise.
2075 (mep_final_prescan_insn): Likewise.
2076 (mep_store_data_bypass_p): Likewise for both params.
2077 (mep_mul_hilo_bypass_p): Likewise.
2078 (mep_ipipe_ldc_p): Likewise for param.
2079
2080 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2081 (mep_rewrite_mult): Likewise.
2082 (mep_rewrite_mulsi3): Likewise.
2083 (mep_rewrite_maddsi3): Likewise.
2084 (mep_reuse_lo_p_1): Likewise.
2085 (mep_reuse_lo_p): Likewise.
2086 (mep_frame_expr): Likewise.
2087 (mep_make_parallel): Likewise for both params.
2088 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2089 local "insn".
2090 (mep_use_post_modify_p): Likewise for param "insn".
2091 (mep_core_address_length): Likewise.
2092 (mep_cop_address_length): Likewise.
2093 (mep_reg_set_in_function): Likewise for local "insn".
2094 (mep_asm_without_operands_p): Likewise.
2095 (F): Likewise for return type and param "x".
2096 (add_constant): Likewise for local "insn".
2097 (maybe_dead_move): Likewise for return type and local "insn".
2098 (mep_expand_prologue): Likewise for local "insn".
2099 (mep_final_prescan_insn): Likewise for param "insn".
2100 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2101 "next", "follow", "x".
2102 (mep_insert_repeat_label_last): Likewise for return type, param
2103 "last_insn", and locals "next", "prev". Strengthen param "label"
2104 from rtx to rtx_code_label *.
2105 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2106 rtx_insn *.
2107 (struct mep_doloop_end): Likewise for fields "insn" and
2108 "fallthrough".
2109 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2110 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2111 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2112 rtx_insn *.
2113 (mep_invert_branch): Likewise for params "insn" and "after".
2114 (mep_reorg_erepeat): Likewise for param "insns" and locals
2115 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2116 "l" from rtx to rtx_code_label *.
2117 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2118 from rtx to rtx_insn *.
2119 (mep_reorg_addcombine): Likewise for param "insns" and locals
2120 "i", "n".
2121 (add_sp_insn_p): Likewise for param "insn".
2122 (mep_reorg_noframe): Likewise for param "insns" and locals
2123 "start_frame_insn", "end_frame_insn", "next".
2124 (mep_reorg): Likewise for local "insns".
2125 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2126 cast.
2127 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2128 (mep_mul_hilo_bypass_p): Likewise.
2129 (mep_ipipe_ldc_p): Likewise for param "insn".
2130 (mep_make_bundle): Likewise for return type, param "cop" and local
2131 "insn", splitting out the latter into a new local "seq" for when it
2132 is a SEQUENCE rather than an insn.
2133 (core_insn_p): Likewise for param "insn".
2134 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2135 "last", "first", "note", "prev", "core_insn".
2136
2137 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2138
2139 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2140 rtx to rtx_insn *.
2141 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2142 (m68k_final_prescan_insn): Likewise for first param.
2143
2144 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2145 (m68k_set_frame_related): Likewise for param "insn".
2146 (output_btst): Likewise for param "insn".
2147 (m68k_final_prescan_insn): Likewise.
2148 (m68k_move_to_reg): Likewise for local "insn".
2149 (m68k_call_tls_get_addr): Likewise for local "insns".
2150 (m68k_call_m68k_read_tp): Likewise.
2151 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2152 (m68k_output_mi_thunk): Likewise for local "insn".
2153
2154 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2155
2156 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2157 first param from rtx to rtx_insn *.
2158 (iq2000_adjust_insn_length): Likewise.
2159 (iq2000_output_conditional_branch): Likewise.
2160 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2161 "insn" and local "nop_insn".
2162 (iq2000_annotate_frame_insn): Likewise for param "insn".
2163 (iq2000_expand_prologue): Likewise for both locals "insn".
2164 (iq2000_adjust_insn_length): Likewise for param "insn".
2165 (iq2000_output_conditional_branch): Likewise.
2166
2167 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2168
2169 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2170 "insns" from rtx to rtx_insn *.
2171 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2172 (struct spill_fill_data): Likewise for field "init_after" and for
2173 elements of array field "prev_insn".
2174 (spill_restore_mem): Likewise for locals "insn", "first".
2175 (do_spill): Likewise for local "insn".
2176 (do_restore): Likewise.
2177 (ia64_expand_prologue): Likewise.
2178 (ia64_expand_epilogue): Likewise.
2179 (emit_insn_group_barriers): Likewise for locals "insn",
2180 "last_label".
2181 (emit_all_insn_group_barriers): Likewise for locals "insn",
2182 "last".
2183 (dfa_stop_insn): Likewise for this global.
2184 (dfa_pre_cycle_insn): Likewise.
2185 (ia64_nop): Likewise.
2186 (final_emit_insn_group_barriers): Likewise for locals "insn",
2187 "last".
2188 (emit_predicate_relation_info): Likewise for locals "head", "n",
2189 "insn", "b", "a".
2190 (ia64_reorg): Likewise for local "insn".
2191 (ia64_output_mi_thunk): Likewise.
2192 (expand_vec_perm_interleave_2): Likewise for local "seq".
2193
2194 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2195
2196 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2197 param 1 "insn" from rtx to rtx_insn *.
2198 (ix86_use_lea_for_mov): Likewise.
2199 (ix86_avoid_lea_for_addr): Likewise.
2200 (ix86_split_lea_for_addr): Likewise.
2201 (ix86_lea_for_add_ok): Likewise.
2202 (ix86_output_call_insn): Likewise.
2203
2204 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2205 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2206 (ix86_output_function_epilogue): Likewise for locals "insn",
2207 "deleted_debug_label".
2208 (legitimize_tls_address): Likewise for local "insn".
2209 (get_some_local_dynamic_name): Likewise.
2210 (increase_distance): Likewise for params "prev", "next".
2211 (distance_non_agu_define_in_bb): Likewise for params "insn",
2212 "start" and locals "prev", "next".
2213 (distance_non_agu_define): Likewise for param "insn".
2214 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2215 locals "next", "prev".
2216 (distance_agu_use): Likewise for param "insn".
2217 (ix86_lea_outperforms): Likewise.
2218 (ix86_ok_to_clobber_flags): Likewise.
2219 (ix86_avoid_lea_for_add): Likewise.
2220 (ix86_use_lea_for_mov): Likewise.
2221 (ix86_avoid_lea_for_addr): Likewise.
2222 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2223 (ix86_split_lea_for_addr): Likewise for param "insn".
2224 (ix86_lea_for_add_ok): Likewise for param "insn".
2225 (ix86_expand_carry_flag_compare): Likewise for local
2226 "compare_seq".
2227 (ix86_expand_int_movcc): Likewise.
2228 (ix86_output_call_insn): Likewise for param "insn".
2229 (ix86_output_call_insn): Likewise for local "i".
2230 (x86_output_mi_thunk): Introduce local "insn", using it in place
2231 of "tmp" when dealing with insns.
2232 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2233 "start".
2234 (ix86_pad_returns): Likewise for locals "ret", "prev".
2235 (ix86_count_insn_bb): Likewise for local "insn".
2236 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2237 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2238 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2239 (expand_vec_perm_interleave2): Likewise for local "seq".
2240 (expand_vec_perm_vperm2f128_vblend): Likewise.
2241 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2242 call to for_each_rtx with for_each_rtx_in_insn.
2243
2244 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2245
2246 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2247 "label" from rtx to rtx_code_label *.
2248 (ix86_expand_prologue): Likewise.
2249 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2250 "varargs_label".
2251 (ix86_split_idivmod): Likewise for locals "end_label" and
2252 "qimode_label".
2253 (ix86_expand_branch): Likewise for local "label2".
2254 (ix86_expand_aligntest): Likewise for return type and local "label".
2255 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2256 "top_label".
2257 (expand_movmem_epilogue): Likewise for the various locals named
2258 "label".
2259 (expand_setmem_epilogue): Likewise.
2260 (expand_small_movmem_or_setmem): Likewise for local "label".
2261 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2262 Strengthen param "done_label" from rtx * to rtx_code_label **.
2263 Strengthen locals "loop_label" and "label" from rtx to
2264 rtx_code_label *.
2265 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2266 Likewise for locals "loop_label", "label".
2267 (ix86_expand_set_or_movmem): Likewise for locals "label",
2268 "jump_around_label", "hot_label".
2269 (ix86_expand_strlensi_unroll_1): Likewise for locals
2270 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2271 "end_2_label".
2272 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2273 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2274 "label2", "jump_label".
2275 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2276 local "label".
2277 (ix86_expand_lfloorceil): Likewise for local "label".
2278 (ix86_expand_rint): Likewise.
2279 (ix86_expand_floorceildf_32): Likewise.
2280 (ix86_expand_floorceil): Likewise.
2281 (ix86_expand_rounddf_32): Likewise.
2282 (ix86_expand_trunc): Likewise.
2283 (ix86_expand_truncdf_32): Likewise.
2284 (ix86_expand_round): Likewise.
2285
2286 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2287
2288 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2289 first param from rtx to rtx_insn *.
2290 (h8300_insn_length_from_table): Likewise.
2291 * config/h8300/h8300.c (F): Likewise for return type and param
2292 "x".
2293 (Fpa): Add a checked cast to rtx_insn *.
2294 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2295 rtx_insn *.
2296 (final_prescan_insn): Likewise for param "insn".
2297 (h8300_binary_length): Likewise.
2298 (h8300_insn_length_from_table): Likewise.
2299
2300 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2301
2302 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2303 Strengthen first param "insn" from rtx to rtx_insn *.
2304
2305 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2306 Likewise.
2307 (frame_insn): Likewise for return type. Introduce local "insn"
2308 for use in place of local "x" for use as an rtx_insn *.
2309 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2310 (epiphany_expand_prologue): Likewise for local "insn".
2311 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2312 * config/epiphany/resolve-sw-modes.c
2313 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2314 "seq".
2315
2316 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2317
2318 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2319 param from rtx to rtx_insn *.
2320 (c6x_final_prescan_insn): Likewise for first param.
2321
2322 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2323 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2324 (c6x_expand_compare): Strengthen local "insns" from rtx to
2325 rtx_insn *.
2326 (c6x_get_unit_specifier): Likewise for param "insn".
2327 (c6x_print_unit_specifier_field): Likewise.
2328 (c6x_final_prescan_insn): Likewise.
2329 (emit_add_sp_const): Likewise for local "insn".
2330 (c6x_expand_prologue): Likewise.
2331
2332 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2333
2334 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2335 param 1 from rtx to rtx_insn *.
2336 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2337 the various locals named "insn".
2338 (expand_epilogue_reg_restore): Likewise.
2339 (frame_related_constant_load): Likewise.
2340 (add_to_reg): Likewise.
2341 (emit_link_insn): Likewise.
2342 (do_link): Likewise.
2343 (expand_interrupt_handler_prologue): Likewise.
2344 (branch_dest): Likewise for param "branch".
2345 (asm_conditional_branch): Likewise for param "insn".
2346 (gen_one_bundle): Likewise for elements of param "slot" and local
2347 "t".
2348 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2349 elements of local "slot".
2350 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2351 "queue", "next_queue", "prev".
2352 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2353 (add_sched_insns_for_speculation): Likewise for local "insn".
2354
2355 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2356
2357 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2358 from rtx to rtx_insn *.
2359 (output_movhi): Likewise.
2360 (output_movsisf): Likewise.
2361 (avr_out_tstsi): Likewise.
2362 (avr_out_tsthi): Likewise.
2363 (avr_out_tstpsi): Likewise.
2364 (avr_out_compare): Likewise.
2365 (avr_out_compare64): Likewise.
2366 (avr_out_movpsi): Likewise.
2367 (ashlqi3_out): Likewise.
2368 (ashlhi3_out): Likewise.
2369 (ashlsi3_out): Likewise.
2370 (ashrqi3_out): Likewise.
2371 (ashrhi3_out): Likewise.
2372 (ashrsi3_out): Likewise.
2373 (lshrqi3_out): Likewise.
2374 (lshrhi3_out): Likewise.
2375 (lshrsi3_out): Likewise.
2376 (avr_out_ashlpsi3): Likewise.
2377 (avr_out_ashrpsi3): Likewise.
2378 (avr_out_lshrpsi3): Likewise.
2379 (avr_out_fract): Likewise.
2380 (avr_out_sbxx_branch): Likewise.
2381 (avr_out_round): Likewise.
2382 (avr_out_xload): Likewise.
2383 (avr_out_movmem): Likewise.
2384 (adjust_insn_length): Likewise.
2385 (avr_out_lpm): Likewise.
2386 (reg_unused_after): Likewise.
2387 (_reg_unused_after): Likewise.
2388 (avr_jump_mode): Likewise for second param.
2389 (jump_over_one_insn): Likewise for first param.
2390 (avr_final_prescan_insn): Likewise.
2391 (out_shift_with_cnt): Likewise for second param.
2392
2393 * config/avr/avr.c (get_sequence_length): Likewise for param
2394 "insns" and local "insn".
2395 (emit_push_byte): Likewise for local "insn".
2396 (emit_push_sfr): Likewise.
2397 (avr_prologue_setup_frame): Likewise for locals "insn",
2398 "fp_plus_insns", "sp_plus_insns".
2399 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2400 "sp_plus_insns".
2401 (avr_jump_mode): Likewise for param "insn".
2402 (avr_final_prescan_insn): Likewise.
2403 (avr_find_unused_d_reg): Likewise.
2404 (avr_out_lpm_no_lpmx): Likewise.
2405 (avr_out_lpm): Likewise.
2406 (avr_out_xload): Likewise.
2407 (output_movqi): Likewise.
2408 (output_movhi): Likewise.
2409 (out_movqi_r_mr): Likewise.
2410 (out_movhi_r_mr): Likewise.
2411 (out_movsi_r_mr): Likewise.
2412 (out_movsi_mr_r): Likewise.
2413 (output_movsisf): Likewise.
2414 (avr_out_load_psi): Likewise.
2415 (avr_out_store_psi): Likewise.
2416 (avr_out_movpsi): Likewise.
2417 (out_movqi_mr_r): Likewise.
2418 (avr_out_movhi_mr_r_xmega): Likewise.
2419 (out_movhi_mr_r): Likewise.
2420 (compare_condition): Likewise for param "insn" and local "next".
2421 (compare_sign_p): Likewise for param "insn".
2422 (compare_diff_p): Likewise.
2423 (compare_eq_p): Likewise.
2424 (avr_out_compare): Likewise.
2425 (avr_out_compare64): Likewise.
2426 (avr_out_tsthi): Likewise.
2427 (avr_out_tstpsi): Likewise.
2428 (avr_out_tstsi): Likewise.
2429 (out_shift_with_cnt): Likewise.
2430 (ashlqi3_out): Likewise.
2431 (ashlhi3_out): Likewise.
2432 (avr_out_ashlpsi3): Likewise.
2433 (ashlsi3_out): Likewise.
2434 (ashrqi3_out): Likewise.
2435 (ashrhi3_out): Likewise.
2436 (avr_out_ashrpsi3): Likewise.
2437 (ashrsi3_out): Likewise.
2438 (lshrqi3_out): Likewise.
2439 (lshrhi3_out): Likewise.
2440 (avr_out_lshrpsi3): Likewise.
2441 (lshrsi3_out): Likewise.
2442 (avr_out_fract): Likewise.
2443 (avr_out_round): Likewise.
2444 (avr_adjust_insn_length): Likewise.
2445 (reg_unused_after): Likewise.
2446 (_reg_unused_after): Likewise.
2447 (avr_compare_pattern): Likewise.
2448 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2449 and locals "branch1", "branch2", "insn2", "jump".
2450 (avr_reorg): Likewise for local "insn".
2451 (avr_2word_insn_p): Likewise for param "insn".
2452 (jump_over_one_insn_p): Likewise.
2453 (avr_out_sbxx_branch): Likewise.
2454 (avr_out_movmem): Likewise.
2455
2456 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2457
2458 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2459 param from rtx to rtx_insn *.
2460 (thumb1_final_prescan_insn): Likewise.
2461 (thumb2_final_prescan_insn): Likewise.
2462
2463 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2464 rtx to rtx_insn *.
2465 (struct minipool_node): Likewise for field "insn".
2466 (dump_minipool): Likewise for param "scan".
2467 (create_fix_barrier): Likewise for local "from". Strengthen local
2468 "label" from rtx to rtx_code_label *.
2469 (push_minipool_barrier): Strengthen param "insn" from rtx to
2470 rtx_insn *.
2471 (push_minipool_fix): Likewise.
2472 (note_invalid_constants): Likewise.
2473 (thumb2_reorg): Likewise for local "insn".
2474 (arm_reorg): Likewise.
2475 (thumb2_final_prescan_insn): Likewise for param
2476 "insn" and local "first_insn".
2477 (arm_final_prescan_insn): Likewise for param "insn" and locals
2478 "start_insn", "this_insn".
2479 (arm_debugger_arg_offset): Likewise for param "insn".
2480 (thumb1_emit_multi_reg_push): Likewise for return type and local
2481 "insn".
2482 (thumb1_final_prescan_insn): Likewise for param "insn".
2483 (thumb_far_jump_used_p): Likewise for local "insn".
2484 (thumb1_expand_prologue): Likewise.
2485 (arm_expand_epilogue_apcs_frame): Likewise.
2486 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2487 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2488 from rtx to rtx_code_label *.
2489 (arm_split_atomic_op): Likewise for local "label".
2490 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2491
2492 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2493
2494 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2495 first param from rtx to rtx_insn *.
2496 (arc_verify_short): Likewise.
2497 (arc_short_long): Likewise.
2498 (arc_need_delay): Likewise.
2499
2500 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2501 "target_insn".
2502 (arc_ccfsm_advance): Likewise for param "insn" and locals
2503 "start_insn", "this_insn".
2504 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2505 (arc_ccfsm_post_advance): Likewise for param "insn".
2506 (arc_next_active_insn): Likewise for return type and param "insn".
2507 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2508 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2509 (output_short_suffix): Likewise for local "insn".
2510 (arc_final_prescan_insn): Likewise for param "insn". Remove
2511 now-redundant checked cast.
2512 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2513 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2514 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2515 for use where lc_set became an insn.
2516 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2517 rtx to rtx_insn *.
2518 (arc_get_insn_variants): Likewise for local "prev".
2519 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2520 "next".
2521 (arc_predicate_delay_insns): Likewise for local "insn".
2522 (arc_pad_return): Likewise for local "prev". For now, add a
2523 checked cast when extracting the insn from "final_sequence".
2524 (arc_short_long): Likewise for param "insn".
2525 (arc_need_delay): Likewise for param "insn" and local "next".
2526 (arc_label_align): Likewise for locals "prev", "next".
2527
2528 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2529
2530 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2531 "insn" from rtx to rtx_insn *.
2532 (alpha_gp_save_rtx): Likewise for local "seq".
2533 (alpha_instantiate_decls): Likewise for local "top".
2534 (get_some_local_dynamic_name): Likewise for local "insn".
2535 (alpha_does_function_need_gp): Likewise.
2536 (set_frame_related_p): Likewise for return type and for locals
2537 "seq" and "insn".
2538 (emit_frame_store_1): Likewise for local "insn".
2539 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2540 (alpha_end_function): Likewise for local "insn".
2541 (alpha_output_mi_thunk_osf): Likewise.
2542 (alphaev4_insn_pipe): Likewise for param "insn".
2543 (alphaev5_insn_pipe): Likewise.
2544 (alphaev4_next_group): Likewise for return type and param 1
2545 "insn".
2546 (alphaev5_next_group): Likewise.
2547 (alpha_align_insns_1): Likewise for return type and param 1 of
2548 callback param "next_group", and for locals "i", "next", "prev",
2549 "where", "where2", "insn".
2550
2551 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2552
2553 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2554 rather than modifying the stmt.
2555
2556 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2557
2558 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2559 cgraph_state conversion.
2560
2561 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2562
2563 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2564 Strengthen local "insns" from rtx to rtx_insn *.
2565 (aarch64_set_frame_expr): Likewise for local "insn".
2566 (aarch64_save_or_restore_fprs): Likewise.
2567 (aarch64_save_or_restore_callee_save_registers): Likewise.
2568 (aarch64_expand_prologue): Likewise.
2569 (aarch64_expand_epilogue): Likewise.
2570 (aarch64_output_mi_thunk): Likewise.
2571 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2572 "label2" from rtx to rtx_code_label *.
2573 (aarch64_split_atomic_op): Likewise for local "label".
2574
2575 2014-08-25 Martin Liska <mliska@suse.cz>
2576
2577 * cgraph.h (symtab_node):
2578 (bool needed_p (void)): created from decide_is_symbol_needed
2579 (bool referred_to_p (void)): created from referred_to_p
2580 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2581 * cgraph.h (cgraph_node):
2582 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2583 (void expand (void)): created from expand_function
2584 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2585 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2586 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2587 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2588 * cgraph.h (varpool_node):
2589 (static void add (tree decl): created from varpool_add_new_variable
2590 * cgraph.h (cgraph_edge):
2591 void remove (void);
2592 (void remove_caller (void)): created from cgraph_edge_remove_caller
2593 (void remove_callee (void)): created from cgraph_edge_remove_callee
2594 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2595 created from cgraph_set_call_stmt
2596 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2597 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2598 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2599 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2600 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2601 created from cgraph_speculative_call_info
2602 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2603 int freq_scale, bool update_original)): created from cgraph_clone_edge
2604 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2605 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2606 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2607 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2608 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2609 (static void rebuild_references (void)): created from cgraph_rebuild_references
2610 * cgraph.h (symbol_table):
2611 (create_reference): renamed from add_reference
2612 (maybe_create_reference): renamed from maybe_add_reference
2613 (void register_symbol (symtab_node *node)): new function
2614 (void clear_asm_symbols (void)): new function
2615 (void unregister (symtab_node *node)): new function
2616 (void release_symbol (cgraph_node *node, int uid)): new function
2617 (cgraph_node * allocate_cgraph_symbol (void)): new function
2618 (void initialize (void)): created from cgraph_init
2619 (symtab_node *first_symbol (void)):new function
2620 (asm_node *first_asm_symbol (void)):new function
2621 (symtab_node *first_defined_symbol (void)):new function
2622 (varpool_node *first_variable (void)):new function
2623 (varpool_node *next_variable (varpool_node *node)):new function
2624 (varpool_node *first_static_initializer (void)):new function
2625 (varpool_node *next_static_initializer (varpool_node *node)):new function
2626 (varpool_node *first_defined_variable (void)):new function
2627 (varpool_node *next_defined_variable (varpool_node *node)):new function
2628 (cgraph_node *first_defined_function (void)):new function
2629 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2630 (cgraph_node *first_function (void)):new function
2631 (cgraph_node *next_function (cgraph_node *node)):new function
2632 (cgraph_node *first_function_with_gimple_body (void)):new function
2633 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2634 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2635 created from symtab_remove_unreachable_nodes
2636 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2637 (void process_new_functions (void)): created from cgraph_process_new_functions
2638 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2639 (bool output_variables (void)): created from varpool_node::output_variables
2640 (void output_asm_statements (void)): created from output_asm_statements
2641 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2642 (void compile (void)): created from compile
2643 (void output_weakrefs (void)): created from output_weakrefs
2644 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2645 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2646 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2647 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2648 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2649 created from cgraph_next_function_with_gimple_body
2650 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2651 created from cgraph_remove_edge_removal_hook
2652 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2653 created from cgraph_add_node_removal_hook
2654 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2655 created from cgraph_remove_node_removal_hook
2656 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2657 created from varpool_add_node_removal_hook
2658 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2659 created from varpool_remove_node_removal_hook
2660 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2661 created from cgraph_add_function_insertion_hook
2662 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2663 created from cgraph_remove_function_insertion_hook
2664 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2665 created from varpool_add_variable_insertion_hook
2666 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2667 created from varpool_remove_variable_insertion_hook
2668 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2669 created from cgraph_add_edge_duplication_hook
2670 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2671 created from cgraph_remove_edge_duplication_hook
2672 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2673 created from cgraph_add_node_duplication_hook
2674 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2675 created from cgraph_remove_node_duplication_hook
2676 (void call_edge_removal_hooks (cgraph_edge *e)):
2677 created from cgraph_call_edge_removal_hooks
2678 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2679 created from call_function_insertion_hooks
2680 (void call_cgraph_removal_hooks (cgraph_node *node)):
2681 created from cgraph_call_node_removal_hooks
2682 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2683 created from cgraph_node::call_duplication_hooks
2684 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2685 created from cgraph_call_edge_duplication_hooks
2686 (void call_varpool_removal_hooks (varpool_node *node)):
2687 created from varpool_call_node_removal_hooks
2688 (void call_varpool_insertion_hooks (varpool_node *node)):
2689 created from varpool_call_variable_insertion_hooks
2690 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2691 created from insert_to_assembler_name_hash
2692 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2693 created from unlink_from_assembler_name_hash
2694 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2695 created from symtab_prevail_in_asm_name_hash
2696 (void symtab_initialize_asm_name_hash (void)):
2697 created from symtab_initialize_asm_name_hash
2698 (void change_decl_assembler_name (tree decl, tree name)):
2699 created from change_decl_assembler_name
2700 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2701 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2702 created from decl_assembler_name_hash
2703 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2704 created from decl_assembler_name_equal
2705 (static hashval_t hash_node_by_assembler_name (const void *p)):
2706 created from hash_node_by_assembler_name
2707 (static int eq_assembler_name (const void *p1, const void *p2)):
2708 created from eq_assembler_name
2709
2710 2014-08-25 Marek Polacek <polacek@redhat.com>
2711
2712 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2713
2714 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2715
2716 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2717 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2718 SWI1248_AVX512BW mode iterator.
2719
2720 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2721
2722 PR target/62111
2723 * config/sh/predicates.md (general_extend_operand): Disable
2724 TRUNCATE before reload completes.
2725
2726 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2727
2728 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2729
2730 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2731
2732 PR target/61996
2733 * config/sh/sh.opt (musermode): Allow negative form.
2734 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2735 targets that don't support it.
2736 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2737 Document -mno-usermode option.
2738
2739 2014-08-24 Kito Cheng <kito@0xlab.org>
2740
2741 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2742 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2743 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2744 * doc/tm.texi: Regenerate.
2745
2746 2014-08-24 Kito Cheng <kito@0xlab.org>
2747
2748 * ira.c: Fix typo in comment.
2749
2750 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2751
2752 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2753 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2754
2755 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2756
2757 PR target/62038
2758 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2759 last_address when the current function is a thunk.
2760 (pa_asm_output_mi_thunk): When we don't have named sections or they
2761 are not being used, check that thunk can reach the stub table with a
2762 short branch.
2763
2764 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2765
2766 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2767 rtx_insn *.
2768 (pass_web::execute): Likewise for local "insn".
2769
2770 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2771
2772 * var-tracking.c (struct micro_operation_def): Strengthen field
2773 "insn" from rtx to rtx_insn *.
2774 (struct emit_note_data_def): Likewise.
2775 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2776 (vt_stack_adjustments): Likewise for local "insn".
2777 (adjust_insn): Likewise for param "insn".
2778 (val_store): Likewise.
2779 (val_resolve): Likewise.
2780 (struct count_use_info): Likewise for field "insn".
2781 (log_op_type): Likewise for param "insn".
2782 (reverse_op): Likewise.
2783 (prepare_call_arguments): Likewise.
2784 (add_with_sets): The initial param takes an insn, but we can't
2785 yet strengthen it from rtx to rtx_insn * since it's used as a
2786 cselib_record_sets_hook callback. For now rename initial param
2787 from "insn" to "uncast_insn", and introduce a local "insn" of
2788 the stronger rtx_insn * type, with a checked cast.
2789 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2790 rtx_insn *.
2791 (emit_note_insn_var_location): Likewise.
2792 (emit_notes_for_changes): Likewise.
2793 (emit_notes_for_differences): Likewise.
2794 (next_non_note_insn_var_location): Likewise for return type and
2795 for param "insn".
2796 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2797 (vt_initialize): Likewise for local "insn".
2798 (delete_debug_insns): Likewise for locals "insn" and "next".
2799
2800 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2801
2802 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2803 rtx_insn *.
2804 (mark_constant_pool): Likewise for local "insn".
2805
2806 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2807
2808 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2809 rtx to rtx_insn *.
2810 (dead_debug_promote_uses): Likewise.
2811 (dead_debug_insert_temp): Likewise.
2812
2813 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2814
2815 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2816 from const_rtx to const rtx_insn *.
2817 (store_killed_after): Likewise. Strengthen locals "last", "act"
2818 from rtx to rtx_insn *.
2819 (store_killed_before): Strengthen param "insn" from const_rtx to
2820 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2821 (find_moveable_store): Strengthen param "insn" from rtx to
2822 rtx_insn *.
2823 (compute_store_table): Likewise for local "insn".
2824 (insert_insn_start_basic_block): Likewise for param "insn" and
2825 locals "prev", "before", "insn".
2826 (insert_store): For now, add a checked cast to rtx_insn * on the
2827 result of gen_move_insn.
2828 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2829 to rtx_insn *.
2830 (replace_store_insn): Likewise. For now, add a checked cast to
2831 rtx_insn * on the result of gen_move_insn.
2832
2833 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2834
2835 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2836 rtx_insn *.
2837 (expand_sjlj_dispatch_table): Likewise.
2838
2839 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2840
2841 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2842 "insn" from rtx to rtx_insn *.
2843
2844 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2845
2846 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2847 "insn" from rtx to rtx_insn *.
2848 (dup_block_and_redirect): Likewise for param 3 "before".
2849
2850 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2851 from rtx to rtx_insn *.
2852 (move_insn_for_shrink_wrap): Likewise.
2853 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2854 (dup_block_and_redirect): Likewise for param "before" and local
2855 "insn".
2856 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2857 "end".
2858 (convert_to_simple_return): Likewise for local "start".
2859
2860 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2861 Strengthen local "insn" from rtx to rtx_insn *, for use when
2862 invoking requires_stack_frame_p.
2863
2864 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2865
2866 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2867 rtx_insn *.
2868 (speculate_expr): Likewise for locals "orig_insn_rtx",
2869 "spec_insn_rtx".
2870 (eq_transformed_insns): Likewise for locals "i1", "i2".
2871 (check_for_new_jump): Likewise for return type and local "end".
2872 (find_new_jump): Likewise for return type and local "jump".
2873 (sel_split_edge): Likewise for local "jump".
2874 (sel_create_recovery_block): Likewise.
2875 (sel_redirect_edge_and_branch_force): Likewise.
2876 (sel_redirect_edge_and_branch): Likewise.
2877
2878 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2879
2880 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2881 "new_insn" from rtx to rtx_insn *.
2882 (create_insn_rtx_with_rhs): Likewise for return type and for local
2883 "insn_rtx".
2884 (create_insn_rtx_with_lhs): Likewise.
2885 (create_speculation_check): Likewise for local "insn_rtx".
2886 (implicit_clobber_conflict_p): Likewise for local "insn".
2887 (get_expr_cost): Likewise.
2888 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2889 (move_cond_jump): Likewise for locals "next", "prev", "link",
2890 "head", "from", "to".
2891
2892 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2893
2894 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2895 "next" from rtx to rtx_insn *.
2896 (find_conditional_protection): Likewise for local "next".
2897 (is_conditionally_protected): Likewise for local "insn1".
2898 (is_pfree): Likewise for locals "insn1", "insn2".
2899
2900 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2901
2902 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2903 from rtx to rtx_insn *.
2904
2905 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2906 locals "insn1", "insn2" from rtx to rtx_insn *.
2907 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2908 locals "insn", "prev", "last_jump", "next_tail".
2909 (schedule_ebb): Likewise for params "head", "tail".
2910 (schedule_ebbs): Likewise for locals "tail", "head".
2911
2912 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2913 to rtx_insn on "last_insn" in one of the invocations of
2914 schedule_ebb.
2915
2916 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2917
2918 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2919 "elem", "insn" from rtx to rtx_insn *.
2920 (change_spec_dep_to_hard): Likewise.
2921 (get_back_and_forw_lists): Likewise for local "con".
2922 (sd_add_dep): Likewise for locals "elem", "insn".
2923 (sd_resolve_dep): Likewise for locals "pro", "con".
2924 (sd_unresolve_dep): Likewise.
2925 (sd_delete_dep): Likewise.
2926 (chain_to_prev_insn): Likewise for local "pro".
2927 (find_inc): Likewise for locals "pro", "con".
2928
2929 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2930
2931 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2932 to rtx_insn *.
2933 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2934 const rtx_insn *.
2935 (modified_between_p): Strengthen local "insn" from rtx to
2936 rtx_insn *.
2937 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2938 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2939 const rtx_insn *.
2940
2941 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2942
2943 * resource.c (next_insn_no_annul): Strengthen local "next" from
2944 rtx to rtx_insn *.
2945 (mark_referenced_resources): Likewise for local "insn".
2946
2947 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2948
2949 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2950 to rtx_insn *.
2951 (find_reloads): Likewise for param 1.
2952 (subst_reloads): Likewise for sole param.
2953 (find_equiv_reg): Likwise for param 2.
2954 (regno_clobbered_p): Likwise for param 2.
2955 (reload): Likewise for param 1.
2956
2957 * caller-save.c (save_call_clobbered_regs): Strengthen local
2958 "insn" from rtx to rtx_insn *.
2959 (insert_one_insn): Likewise for local "insn".
2960
2961 * reload.c (this_insn): Likewise for this global.
2962 (find_reloads): Likewise for param "insn".
2963 (find_reloads_toplev): Likewise.
2964 (find_reloads_address): Likewise.
2965 (subst_reg_equivs): Likewise.
2966 (update_auto_inc_notes): Likewise.
2967 (find_reloads_address_1): Likewise.
2968 (find_reloads_subreg_address): Likewise.
2969 (subst_reloads): Likewise.
2970 (find_equiv_reg): Likewise, also for local "p".
2971 (regno_clobbered_p): Likewise for param "insn".
2972
2973 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2974 array.
2975 (spill_reg_store): Likewise for the elements of this array.
2976 (remove_init_insns): Likewise for local "equiv_insn".
2977 (will_delete_init_insn_p): Likewise for param "insn".
2978 (reload): Likewise for param ""first" and local "insn".
2979 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2980 rtx_insn *.
2981 (calculate_elim_costs_all_insns): Likewise.
2982 (delete_caller_save_insns): Likewise.
2983 (spill_failure): Likewise for param "insn".
2984 (delete_dead_insn): Likewise.
2985 (set_label_offsets): Likewise.
2986 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2987 "prev_insn".
2988 (elimination_costs_in_insn): Likewise for param "insn".
2989 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2990 when referring to an insn.
2991 (set_initial_label_offsets): Likewise.
2992 (set_offsets_for_label): Strengthen param "insn" from rtx to
2993 rtx_insn *.
2994 (init_eliminable_invariants): Likewise for param "first" and local
2995 "insn".
2996 (fixup_eh_region_note): Likewise for param "insn".
2997 (reload_as_needed): Likewise for locals "prev", "insn",
2998 "old_next", "old_prev", "next".
2999 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3000 "last".
3001 (reload_inheritance_insn): Strengthen elements of this array from
3002 rtx to rtx_insn *.
3003 (failed_reload): Likewise for param "insn".
3004 (choose_reload_regs): Likewise for local "insn". Replace use of
3005 NULL_RTX with NULL when referring to an insn.
3006 (input_reload_insns): Strengthen elements of this array from rtx
3007 to rtx_insn *.
3008 (other_input_address_reload_insns): Likewise for this global.
3009 (other_input_reload_insns): Likewise for this global.
3010 (input_address_reload_insns): Likwise for the elements of this
3011 array.
3012 (inpaddr_address_reload_insns): Likwise for the elements of this
3013 array.
3014 (output_reload_insns): Likewise for the elements of this array.
3015 (output_address_reload_insns): Likewise for the elements of this
3016 array.
3017 (outaddr_address_reload_insns): Likewise for the elements of this
3018 array.
3019 (operand_reload_insns): Likewise for this global.
3020 (other_operand_reload_insns): Likewise for this global.
3021 (other_output_reload_insns): Likewise for the elements of this
3022 array.
3023 (new_spill_reg_store): Likewise for the elements of this
3024 array.
3025 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3026 Strengthen local "where" from rtx * to rtx_insn **.
3027 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3028 from rtx to rtx_insn *.
3029 (do_input_reload): Likewise for local "insn".
3030 (do_output_reload): Likewise for local "insn".
3031 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3032 (emit_insn_if_valid_for_reload): Likewise for return type and local
3033 "last". Add checked cast to rtx_insn when returning "insn" since
3034 this has been through emit_insn.
3035 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3036 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3037 returning "insn" since it's been through
3038 emit_insn_if_valid_for_reload at this point.
3039 (delete_output_reload): Strengthen param "insn" and locals
3040 "output_reload_insn", "i2" from rtx to rtx_insn *.
3041 (delete_address_reloads): Likewise for params "dead_insn",
3042 "current_insn" and locals "prev", "next".
3043 (delete_address_reloads_1): Likewise for params "dead_insn",
3044 "current_insn" and locals "prev", "i2".
3045 (inc_for_reload): Likewise for locals "last", "add_insn".
3046 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3047 rtx_insn *.
3048
3049 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3050 param of this duplicate of the prototype from reload.h
3051
3052 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3053
3054 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3055 rtx to rtx_insn *.
3056 (regstat_bb_compute_calls_crossed): Likewise.
3057
3058 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3059
3060 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3061 to rtx_insn *.
3062 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3063 with an insn.
3064 (regrename_analyze): Strengthen local "insn" from rtx to
3065 rtx_insn *.
3066 (scan_rtx_reg): Likewise for param "insn".
3067 (scan_rtx_address): Likewise.
3068 (scan_rtx): Likewise.
3069 (restore_operands): Likewise.
3070 (record_out_operands): Likewise.
3071 (build_def_use): Likewise for local "insn". Replace use of
3072 NULL_RTX with NULL when dealing with an insn.
3073
3074 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3075
3076 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3077 * reginfo.c (reg_scan): Likewise, also for local "insn".
3078 (reg_scan_mark_refs): Likewise for param "insn".
3079 (init_subregs_of_mode): Likewise for local "insn".
3080
3081 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3082
3083 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3084 "insn" from rtx to rtx_insn *.
3085 (replace_oldest_value_reg): Likewise for param "insn".
3086 (replace_oldest_value_addr): Likewise.
3087 (replace_oldest_value_mem): Likewise.
3088 (apply_debug_insn_changes): Likewise for local "last_insn".
3089 (copyprop_hardreg_forward_1): Likewise for local "insn".
3090
3091 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3092
3093 * reg-stack.c (next_flags_user): Strengthen return type and param
3094 "insn" from rtx to rtx_insn *.
3095 (straighten_stack): Likewise for param "insn".
3096 (check_asm_stack_operands): Likewise.
3097 (remove_regno_note): Likewise.
3098 (emit_pop_insn): Likewise for return type, param "insn", local
3099 "pop_insn".
3100 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3101 "limit" from rtx to rtx_insn *.
3102 (swap_to_top): Likewise for param "insn".
3103 (move_for_stack_reg): Likewise.
3104 (move_nan_for_stack_reg): Likewise.
3105 (swap_rtx_condition): Likewise.
3106 (compare_for_stack_reg): Likewise.
3107 (subst_all_stack_regs_in_debug_insn): Likewise.
3108 (subst_stack_regs_pat): Likewise, and local "insn2".
3109 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3110 rtx_insn *.
3111 (subst_stack_regs): Likewise.
3112 (change_stack): Likewise.
3113 (convert_regs_1): Likewise for locals "insn", "next".
3114
3115 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3116
3117 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3118 rtx_insn *.
3119 (combine_set_extension): Likewise for param "curr_insn".
3120 (transform_ifelse): Likewise for param "def_insn".
3121 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3122 from vec<rtx> * to vec<rtx_insn *> *.
3123 (is_cond_copy_insn): Likewise for param "insn".
3124 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3125 to vec<rtx_insn *>.
3126 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3127 local "def_insn" from rtx to rtx_insn *.
3128 (get_sub_rtx): Likewise for param "def_insn".
3129 (merge_def_and_ext): Likewise.
3130 (combine_reaching_defs): Likewise.
3131 (add_removable_extension): Likewise for param "insn".
3132 (find_removable_extensions): Likewise for local "insn".
3133 (find_and_remove_re): Likewise for locals "curr_insn" and
3134 "def_insn". Strengthen locals "reinsn_del_list" and
3135 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3136
3137 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3138
3139 * recog.c (split_insn): Strengthen param "insn" and locals
3140 "first", "last" from rtx to rtx_insn *.
3141 (split_all_insns): Likewise for locals "insn", "next".
3142 (split_all_insns_noflow): Likewise.
3143
3144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3145
3146 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3147 const rtx_insn *.
3148 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3149 (debug_rtx_find): Likewise for param 1 "x".
3150
3151 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3152 const_rtx to const rtx_insn *. Likewise for local "insn".
3153 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3154 (debug_rtx_find): Likewise for param 1 "x".
3155 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3156 from const_rtx to const rtx_insn * within the appropriate cases of
3157 the switch statement.
3158
3159 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3160 Strengthen local "insns" from rtx to rtx_insn * since this is
3161 passed to a call to debug_rtx_list.
3162
3163 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3164
3165 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3166 to rtx_insn *.
3167
3168 * function.c (stack_protect_epilogue): Add checked cast to
3169 rtx_insn for now when invoking predict_insn_def.
3170
3171 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3172 rtx_insn *.
3173 (predict_insn_def): Likewise.
3174 (rtl_predict_edge): Likewise for local "last_insn".
3175 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3176 const rtx_insn *.
3177 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3178 to rtx_insn *.
3179 (bb_estimate_probability_locally): Likewise for local "last_insn".
3180 (expensive_function_p): Likewise for local "insn".
3181
3182 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3183 local "jmp", since this is used when invoking predict_insn_def.
3184
3185 2014-08-22 Marek Polacek <polacek@redhat.com>
3186
3187 PR c++/62199
3188 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3189
3190 2014-08-22 Marek Polacek <polacek@redhat.com>
3191
3192 PR c/61271
3193 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3194 a comparison in parens.
3195 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3196 in parens.
3197
3198 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3199
3200 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3201 rtx_insn *.
3202
3203 * cprop.c (fis_get_condition): Likewise.
3204
3205 * postreload.c (reload_cse_regs): Likewise for param "first".
3206 (reload_cse_simplify): Likewise for param "insn".
3207 (reload_cse_regs_1): Likewise for local "insn".
3208 (reload_cse_simplify_set): Likewise for param "insn".
3209 (reload_cse_simplify_operands): Likewise.
3210 (struct reg_use): Likewise for field "insn".
3211 (reload_combine_purge_insn_uses): Likewise for param "insn".
3212 (fixup_debug_insns): Likewise for params "from", "to" and local
3213 "insn".
3214 (try_replace_in_use): Likewise for local "use_insn".
3215 (reload_combine_recognize_const_pattern): Likewise for param
3216 "insn" and locals "add_moved_after_insn", "use_insn".
3217 (reload_combine_recognize_pattern): Likewise for param "insn" and
3218 local "prev".
3219 (reload_combine): Likewise for locals "insn", "prev".
3220 (reload_combine_note_use): Likewise for param "insn".
3221 (move2add_use_add2_insn): Likewise.
3222 (move2add_use_add3_insn): Likewise.
3223 (reload_cse_move2add): Likewise, also for local "next".
3224 (move2add_note_store): Likewise for local "insn".
3225
3226 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3227
3228 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3229 rtx to rtx_insn *.
3230 (struct unoccr): Likewise.
3231 (struct modifies_mem): Likewise.
3232 (alloc_mem): Likewise for local "insn".
3233 (insert_expr_in_table): Likewise for param "insn".
3234 (dump_expr_hash_table_entry): Likewise for local "insn".
3235 (oprs_unchanged_p): Likewise for param "insn".
3236 (load_killed_in_block_p): Likewise for local "setter".
3237 (record_last_reg_set_info): Likewise for param "insn".
3238 (record_last_reg_set_info_regno): Likewise.
3239 (record_last_mem_set_info): Likewise.
3240 (record_last_set_info): Likewise for local "last_set_insn".
3241 (record_opr_changes): Likewise for param "insn".
3242 (hash_scan_set): Likewise.
3243 (compute_hash_table): Likewise for local "insn".
3244 (get_avail_load_store_reg): Likewise for param "insn".
3245 (eliminate_partially_redundant_load): Likewise, also for locals
3246 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3247 RTX for insns.
3248 (eliminate_partially_redundant_loads): Likewise for local "insn".
3249
3250 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3251
3252 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3253 rtx to rtx_insn *.
3254 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3255 (expand_twoval_unop): Likewise for locals entry_last", "last".
3256 (expand_twoval_binop): Likewise.
3257 (expand_twoval_binop_libfunc): Likewise for local "insns".
3258 (widen_leading): Likewise for local "last".
3259 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3260 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3261 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3262 (expand_parity): Likewise for locals "last" and "seq".
3263 (expand_ffs): Likewise for local "seq". Strengthen local
3264 "nonzero_label" from rtx to rtx_code_label *.
3265 (expand_absneg_bit): Strengthen local "insns" from rtx to
3266 rtx_insn *.
3267 (expand_unop_direct): Likewise for local "last".
3268 (expand_unop): Likewise for locals "last", "insns".
3269 (expand_abs_nojump): Likewise for local "last".
3270 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3271 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3272 rtx_insn *.
3273 (expand_copysign_absneg): Strengthen local "label" from rtx to
3274 rtx_code_label *.
3275 (expand_copysign_bit): Strengthen local "insns" from rtx to
3276 rtx_insn *.
3277 (struct no_conflict_data): Likewise for fields "first", "insn".
3278 (emit_libcall_block_1): Likewise for param "insns" and locals
3279 "next", "last", "insn".
3280 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3281 on "insns" when invoking emit_libcall_block_1. Ultimately we
3282 want to strengthen insns itself.
3283 (prepare_cmp_insn): Strengthen local "last" from rtx to
3284 rtx_insn *.
3285 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3286 (prepare_float_lib_cmp): Likewise for local "insns".
3287 (emit_conditional_move): Likewise for local "last".
3288 (emit_conditional_add): Likewise.
3289 (have_sub2_insn): Likewise for local "seq".
3290 (expand_float): Likewise for local "insns". Strengthen locals
3291 "label", "neglabel" from rtx to rtx_code_label *.
3292 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3293 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3294 (expand_fixed_convert): Likewise for local "insns" (to
3295 rtx_insn *).
3296 (expand_sfix_optab): Likewise for local "last".
3297 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3298 to rtx_code_label *.
3299 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3300 from rtx to rtx_insn *.
3301 (expand_atomic_fetch_op): Likewise for local "insn".
3302 (maybe_legitimize_operand_same_code): Likewise for local "last".
3303 (maybe_legitimize_operands): Likewise.
3304
3305 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3306
3307 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3308 "insn" from rtx to rtx_insn *.
3309 (ps_rtl_insn): Likewise for return type.
3310 (doloop_register_get): Likewise for params "head", "tail" and
3311 locals "insn", "first_insn_not_to_check".
3312 (schedule_reg_move): Likewise for local "this_insn".
3313 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3314 of gen_move_insn for now.
3315 (reset_sched_times): Strengthen local "insn" from rtx to
3316 rtx_insn *.
3317 (permute_partial_schedule): Likewise.
3318 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3319 (dump_insn_location): Likewise for param "insn".
3320 (loop_canon_p): Likewise for local "insn".
3321 (sms_schedule): Likewise.
3322 (print_partial_schedule): Likewise.
3323 (ps_has_conflicts): Likewise.
3324
3325 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3326
3327 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3328 "tailp" from rtx * to rtx_insn **.
3329
3330 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3331 from rtx to rtx_insn *.
3332 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3333 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3334 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3335 rtx to rtx_insn *.
3336 * modulo-sched.c (const_iteration_count): Strengthen return type
3337 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3338 use of NULL_RTX with NULL when working with insns.
3339 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3340 to rtx_insn *.
3341 (sms_schedule): Likewise.
3342 * sched-rgn.c (init_ready_list): Likewise, also for locals
3343 "src_head" and "src_next_tail".
3344 (compute_block_dependences): Likewise.
3345 (free_block_dependencies): Likewise.
3346 (debug_rgn_dependencies): Likewise.
3347 (free_rgn_deps): Likewise.
3348 (compute_priorities): Likewise.
3349 (schedule_region): Likewise.
3350 * sel-sched.c (find_ebb_boundaries): Likewise.
3351
3352 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3353 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3354
3355 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3356
3357 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3358 from rtx to rtx_insn *.
3359 (new_seginfo): Likewise for param "insn".
3360 (create_pre_exit): Likewise for locals "last_insn",
3361 "before_return_copy", "return_copy".
3362 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3363 "mode_set".
3364
3365 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3366
3367 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3368 from rtx to rtx_insn *.
3369 (lra_push_insn): Likewise for 1st param.
3370 (lra_push_insn_and_update_insn_regno_info): Likewise.
3371 (lra_pop_insn): Likewise for return type.
3372 (lra_invalidate_insn_data): Likewise for 1st param.
3373 (lra_set_insn_deleted): Likewise.
3374 (lra_delete_dead_insn): Likewise.
3375 (lra_process_new_insns): Likewise for first 3 params.
3376 (lra_set_insn_recog_data): Likewise for 1st param.
3377 (lra_update_insn_recog_data): Likewise.
3378 (lra_set_used_insn_alternative): Likewise.
3379 (lra_invalidate_insn_regno_info): Likewise.
3380 (lra_update_insn_regno_info): Likewise.
3381 (lra_former_scratch_operand_p): Likewise.
3382 (lra_eliminate_regs_1): Likewise.
3383 (lra_get_insn_recog_data): Likewise.
3384
3385 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3386 rtx to rtx_insn *.
3387
3388 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3389 "mv1" and "mv2".
3390 (substitute_within_insn): New.
3391 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3392 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3393 Replace call to "substitute" with call to substitute_within_insn.
3394
3395 * lra-constraints.c (curr_insn): Strengthen from rtx to
3396 rtx_insn *.
3397 (get_equiv_with_elimination): Likewise for param "insn".
3398 (match_reload): Strengthen params "before" and "after" from rtx *
3399 to rtx_insn **.
3400 (emit_spill_move): Likewise for return type. Add a checked cast
3401 to rtx_insn * on result of gen_move_insn for now.
3402 (check_and_process_move): Likewise for local "before". Replace
3403 NULL_RTX with NULL when referring to insns.
3404 (process_addr_reg): Strengthen params "before" and "after" from
3405 rtx * to rtx_insn **.
3406 (insert_move_for_subreg): Likewise.
3407 (simplify_operand_subreg): Strengthen locals "before" and "after"
3408 from rtx to rtx_insn *.
3409 (process_address_1): Strengthen params "before" and "after" from
3410 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3411 rtx to rtx_insn *.
3412 (process_address): Strengthen params "before" and "after" from
3413 rtx * to rtx_insn **.
3414 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3415 (curr_insn_transform): Strengthen locals "before" and "after"
3416 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3417 to insns.
3418 (loc_equivalence_callback): Update cast of "data", changing
3419 resulting type from rtx to rtx_insn *.
3420 (substitute_pseudo_within_insn): New.
3421 (inherit_reload_reg): Strengthen param "insn" from rtx to
3422 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3423 NULL when referring to insns. Add a checked cast to rtx_insn *
3424 when using usage_insn to invoke lra_update_insn_regno_info.
3425 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3426 likewise for locals "restore", "save". Add checked casts to
3427 rtx_insn * when using usage_insn to invoke
3428 lra_update_insn_regno_info and lra_process_new_insns. Replace
3429 NULL_RTX with NULL when referring to insns.
3430 (split_if_necessary): Strengthen param "insn" from rtx to
3431 rtx_insn *.
3432 (update_ebb_live_info): Likewise for params "head", "tail" and local
3433 "prev_insn".
3434 (get_last_insertion_point): Likewise for return type and local "insn".
3435 (get_live_on_other_edges): Likewise for local "last".
3436 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3437 "prev_insn", "next_insn", "restore".
3438 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3439 (undo_optional_reloads): Likewise for local "insn".
3440
3441 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3442 "insn".
3443 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3444 insns.
3445 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3446 rtx_insn *.
3447 (spill_pseudos): Likewise for local "insn".
3448 (init_elimination): Likewise.
3449 (process_insn_for_elimination): Likewise for param "insn".
3450
3451 * lra-lives.c (curr_insn): Likewise.;
3452
3453 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3454 (remove_pseudos): Likewise for param "insn".
3455 (spill_pseudos): Likewise for local "insn".
3456 (lra_final_code_change): Likewise for locals "insn", "curr".
3457
3458 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3459 (lra_set_insn_deleted): Likewise.
3460 (lra_delete_dead_insn): Likewise, and for local "prev".
3461 (new_insn_reg): Likewise for param "insn".
3462 (lra_set_insn_recog_data): Likewise.
3463 (lra_update_insn_recog_data): Likewise.
3464 (lra_set_used_insn_alternative): Likewise.
3465 (get_insn_freq): Likewise.
3466 (invalidate_insn_data_regno_info): Likewise.
3467 (lra_invalidate_insn_regno_info): Likewise.
3468 (lra_update_insn_regno_info): Likewise.
3469 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3470 vec<rtx_insn *>.
3471 (lra_push_insn_1): Strengthen param "insn" from rtx to
3472 rtx_insn *.
3473 (lra_push_insn): Likewise.
3474 (lra_push_insn_and_update_insn_regno_info): Likewise.
3475 (lra_pop_insn): Likewise for return type and local "insn".
3476 (push_insns): Likewise for params "from", "to", and local "insn".
3477 (setup_sp_offset): Likewise for params "from", "last" and locals
3478 "before", "insn".
3479 (lra_process_new_insns): Likewise for params "insn", "before",
3480 "after" and local "last".
3481 (struct sloc): Likewise for field "insn".
3482 (lra_former_scratch_operand_p): Likewise for param "insn".
3483 (remove_scratches): Likewise for locals "insn", "last".
3484 (check_rtl): Likewise for local "insn".
3485 (add_auto_inc_notes): Likewise for param "insn".
3486 (update_inc_notes): Likewise for local "insn".
3487 (lra): Replace NULL_RTX with NULL when referring to insn.
3488
3489 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3490
3491 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3492 to rtx_insn *.
3493 (resolve_reg_notes): Likewise.
3494 (resolve_simple_move): Likewise for return type, param "insn", and
3495 locals "insns", "minsn".
3496 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3497 (resolve_use): Likewise.
3498 (resolve_debug): Likewise.
3499 (find_decomposable_shift_zext): Likewise.
3500 (resolve_shift_zext): Likewise for return type, param "insn", and
3501 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3502 (decompose_multiword_subregs): Likewise for local "insn",
3503 "orig_insn", "decomposed_shift", "end".
3504
3505 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3506
3507 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3508 param "insns" from rtx to rtx_insn *.
3509
3510 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3511 rtx to rtx_insn *.
3512 (struct iv_to_split): Likewise.
3513 (loop_exit_at_end_p): Likewise for local "insn".
3514 (split_edge_and_insert): Likewise for param "insns".
3515 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3516 and locals "seq", "jump".
3517 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3518 "branch_code"; update invocations of compare_and_jump_seq to
3519 eliminate NULL_RTX in favor of NULL.
3520 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3521 rtx to rtx_insn *.
3522 (reset_debug_uses_in_loop): Likewise.
3523 (analyze_insn_to_expand_var): Likewise for param "insn".
3524 (analyze_iv_to_split_insn): Likewise.
3525 (analyze_insns_in_loop): Likewise for local "insn".
3526 (insert_base_initialization): Likewise for param
3527 "insn" and local "seq".
3528 (split_iv): Likewise for param "insn" and local "seq".
3529 (expand_var_during_unrolling): Likewise for param "insn".
3530 (insert_var_expansion_initialization): Likewise for local "seq".
3531 (combine_var_copies_in_loop_exit): Likewise.
3532 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3533 "insn".
3534 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3535 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3536 "next".
3537
3538 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3539
3540 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3541 rtx_insn *.
3542 (iv_analyze_result): Likewise.
3543 (iv_analyze_expr): Likewise.
3544 (biv_p): Likewise.
3545
3546 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3547 local "def_insn" from rtx to rtx_insn *.
3548 (get_biv_step_1): Likewise for local "insn".
3549 (iv_analyze_expr): Likewise for param "insn".
3550 (iv_analyze_def): Likewise for local "insn".
3551 (iv_analyze_op): Likewise for param "insn".
3552 (iv_analyze): Likewise.
3553 (iv_analyze_result): Likewise.
3554 (biv_p): Likewise.
3555 (suitable_set_for_replacement): Likewise.
3556 (simplify_using_initial_values): Likewise for local "insn".
3557 (iv_number_of_iterations): Likewise for param "insn".
3558 (check_simple_exit): Add checked cast to rtx_insn when invoking
3559 iv_number_of_iterations for now (until get_condition is
3560 strengthened).
3561
3562 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3563 "insn" from rtx to rtx_insn *.
3564 (analyze_insns_in_loop): Likewise for local "insn".
3565
3566 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3567
3568 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3569 to rtx_insn *.
3570 (struct invariant): Likewise.
3571 (hash_invariant_expr_1): Likewise for param "insn".
3572 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3573 (find_exits): Likewise for local "insn".
3574 (create_new_invariant): Likewise for param "insn".
3575 (check_dependencies): Likewise.
3576 (find_invariant_insn): Likewise.
3577 (record_uses): Likewise.
3578 (find_invariants_insn): Likewise.
3579 (find_invariants_bb): Likewise for local "insn".
3580 (get_pressure_class_and_nregs): Likewise for param "insn".
3581 (calculate_loop_reg_pressure): Likewise for local "insn".
3582
3583 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3584
3585 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3586 to rtx_insn *.
3587 (add_test): Likewise for locals "seq", "jump".
3588 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3589
3590 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3591
3592 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3593 rtx_insn *.
3594 (rebuild_jump_labels_chain): Likewise for param "chain".
3595
3596 * cfgexpand.c (pass_expand::execute): Add checked cast to
3597 rtx_insn * when calling rebuild_jump_labels_chain in region where
3598 we know e->insns.r is non-NULL.
3599
3600 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3601 rtx_insn *.
3602 (rebuild_jump_labels): Likewise.
3603 (rebuild_jump_labels_chain): Likewise for param "chain".
3604 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3605 (init_label_info): Likewise for param "f".
3606 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3607 "prev_nonjump_insn".
3608 (mark_all_labels): Likewise for param "f" and locals "insn",
3609 "prev_nonjump_insn".
3610
3611 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3612
3613 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3614 from rtx to rtx_insn *insn.
3615 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3616 (ira_add_allocno_copy): Likewise.
3617 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3618 rtx to rtx_insn *.
3619 (ira_create_copy): Likewise.
3620 (ira_add_allocno_copy): Likewise.
3621 (create_bb_allocnos): Likewise for local "insn".
3622 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3623 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3624 process_regs_for_copy for rtx_insn * param.
3625 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3626 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3627 process_regs_for_copy for rtx_insn * param.
3628 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3629 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3630 (record_operand_costs): Likewise.
3631 (scan_one_insn): Likewise for return type, and for param "insn".
3632 (process_bb_for_costs): Likewise for local "insn".
3633 (process_bb_node_for_hard_reg_moves): Likewise.
3634 * ira-emit.c (struct move): Likewise for field "insn".
3635 (create_move): Eliminate use of NULL_RTX when dealing with an
3636 rtx_insn *.
3637 (emit_move_list): Strengthen return type and locals "result",
3638 "insn" from rtx to rtx_insn *insn.
3639 (emit_moves): Likewise for locals "insns", "tmp".
3640 (ira_emit): Likewise for local "insn".
3641 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3642 "insn".
3643 (find_call_crossed_cheap_reg): Likewise.
3644 (process_bb_node_lives): Likewise for local "insn".
3645 * ira.c (decrease_live_ranges_number): Likewise.
3646 (compute_regs_asm_clobbered): Likewise.
3647 (build_insn_chain): Likewise.
3648 (find_moveable_pseudos): Likewise, also locals "def_insn",
3649 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3650 to rtx_insn **. Add a checked cast when assigning from
3651 "closest_use" into closest_uses array in a region where we know
3652 it's a non-NULL insn.
3653 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3654 to rtx_insn *.
3655 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3656 "last_interesting_insn", "uin".
3657 (move_unallocated_pseudos): Likewise for locals "def_insn",
3658 "move_insn", "newinsn".
3659
3660 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3661
3662 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3663 Strengthen locals "done_label", "do_error" from rtx to
3664 rtx_code_label *.
3665 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3666 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3667 rtx_code_label *.
3668 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3669 "done_label", "do_error" to rtx_code_label * and local "last" to
3670 rtx_insn *.
3671 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3672 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3673 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3674 "after_lopart_neg", "do_overflow", "hipart_different" to
3675 rtx_code_label * and local "last" to rtx_insn *.
3676
3677 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3678
3679 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3680 "insn" and "move_insn" from rtx to rtx_insn *.
3681
3682 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3683
3684 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3685 rtx_insn *.
3686 (cheap_bb_rtx_cost_p): Likewise.
3687 (first_active_insn): Likewise for return type and local "insn".
3688 (last_active_insn): Likewise for return type and locals "insn",
3689 "head".
3690 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3691 "insn_b".
3692 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3693 "seq".
3694 (noce_try_move): Likewise for local "seq".
3695 (noce_try_store_flag): Likewise.
3696 (noce_try_store_flag_constants): Likewise.
3697 (noce_try_addcc): Likewise.
3698 (noce_try_store_flag_mask): Likewise.
3699 (noce_try_cmove): Likewise.
3700 (noce_try_minmax): Likewise.
3701 (noce_try_abs): Likewise.
3702 (noce_try_sign_mask): Likewise.
3703 (noce_try_bitop): Likewise.
3704 (noce_can_store_speculate_p): Likewise for local "insn".
3705 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3706 seq".
3707 (check_cond_move_block): Likewise for local "insn".
3708 (cond_move_convert_if_block): Likewise.
3709 (cond_move_process_if_block): Likewise for locals "seq",
3710 "loc_insn".
3711 (noce_find_if_block): Likewise for local "jump".
3712 (merge_if_block): Likewise for local "last".
3713 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3714 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3715 (block_has_only_trap): Likewise for return type and local "trap".
3716 (find_if_case_1): Likewise for local "jump".
3717 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3718 "insn".
3719
3720 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3721
3722 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3723 "last_insn", "loop_end" from rtx to rtx_insn *.
3724
3725 * hw-doloop.c (scan_loop): Likewise for local "insn".
3726 (discover_loop): Likewise for param "tail_insn".
3727 (discover_loops): Likewise for local "tail".
3728
3729 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3730 cast to rtx_insn * when assigning from an rtx local to a
3731 hwloop_info's "last_insn" field.
3732
3733 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3734
3735 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3736 (add_delay_dependencies): Strengthen local "pro" from rtx to
3737 rtx_insn *.
3738 (recompute_todo_spec): Likewise.
3739 (dep_cost_1): Likewise for locals "insn", "used".
3740 (schedule_insn): Likewise for local "dbg".
3741 (schedule_insn): Likewise for locals "pro", "next".
3742 (unschedule_insns_until): Likewise for local "con".
3743 (restore_pattern): Likewise for local "next".
3744 (estimate_insn_tick): Likewise for local "pro".
3745 (resolve_dependencies): Likewise for local "next".
3746 (fix_inter_tick): Likewise.
3747 (fix_tick_ready): Likewise for local "pro".
3748 (add_to_speculative_block): Likewise for locals "check", "twin",
3749 "pro".
3750 (sched_extend_bb): Likewise for locals "end", "insn".
3751 (init_before_recovery): Likewise for local "x".
3752 (sched_create_recovery_block): Likewise for local "barrier".
3753 (create_check_block_twin): Likewise for local "pro".
3754 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3755 "consumer".
3756 (unlink_bb_notes): Update for change to type of bb_header.
3757 Strengthen locals "prev", "label", "note", "next" from rtx to
3758 rtx_insn *.
3759 (clear_priorities): Likewise for local "pro".
3760
3761 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3762
3763 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3764 rtx_insn *.
3765 (test_insn): Likewise for this global.
3766 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3767 const rtx_insn *.
3768 (oprs_anticipatable_p): Likewise.
3769 (oprs_available_p): Likewise.
3770 (insert_expr_in_table): Strengthen param "insn" from rtx to
3771 rtx_insn *.
3772 (hash_scan_set): Likewise.
3773 (hash_scan_clobber): Likewise.
3774 (hash_scan_call): Likewise.
3775 (hash_scan_insn): Likewise.
3776 (compute_hash_table_work): Likewise for local "insn".
3777 (process_insert_insn): Likewise for return type and local "pat".
3778 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3779 "pat", "pat_end", "maybe_cc0_setter".
3780 (pre_edge_insert): Likewise for local "insn".
3781 (pre_insert_copy_insn): Likewise for param "insn".
3782 (pre_insert_copies): Likewise for local "insn".
3783 (struct set_data): Likewise for field "insn".
3784 (single_set_gcse): Likewise for param "insn".
3785 (gcse_emit_move_after): Likewise.
3786 (pre_delete): Likewise for local "insn".
3787 (update_bb_reg_pressure): Likewise for param "from" and local
3788 "insn".
3789 (should_hoist_expr_to_dom): Likewise for param "from".
3790 (hoist_code): Likewise for local "insn".
3791 (get_pressure_class_and_nregs): Likewise for param "insn".
3792 (calculate_bb_reg_pressure): Likewise for local "insn".
3793 (compute_ld_motion_mems): Likewise.
3794
3795 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3796
3797 * genpeep.c (main): Rename param back from "uncast_ins1" to
3798 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3799 checked cast.
3800
3801 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3802
3803 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3804
3805 PR target/62195
3806 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3807 documentation to state it is only for VSX operations.
3808
3809 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3810 constraint only active if VSX.
3811
3812 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3813 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3814 (lfiwzx): Likewise.
3815
3816 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3817
3818 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3819 Strengthen local "insn" from rtx to rtx_insn *.
3820 (use_killed_between): Likewise for param "target_insn".
3821 (all_uses_available_at): Likewise for param "target_insn" and
3822 local "next".
3823 (update_df_init): Likewise for params "def_insn", "insn".
3824 (update_df): Likewise for param "insn".
3825 (try_fwprop_subst): Likewise for param "def_insn" and local
3826 "insn".
3827 (free_load_extend): Likewise for param "insn".
3828 (forward_propagate_subreg): Likewise for param "def_insn" and
3829 local "use_insn".
3830 (forward_propagate_asm): Likewise for param "def_insn" and local
3831 "use_insn".
3832 (forward_propagate_and_simplify): Likewise for param "def_insn"
3833 and local "use_insn".
3834 (forward_propagate_into): Likewise for locals "def_insn" and
3835 "use_insn".
3836
3837 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3838
3839 * function.c (emit_initial_value_sets): Strengthen local "seq"
3840 from rtx to rtx_insn *.
3841 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3842 local "seq".
3843 (instantiate_virtual_regs): Likewise for local "insn".
3844 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3845 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3846 (expand_function_end): Likewise for locals "insn" and "seq".
3847 (epilogue_done): Likewise for local "insn".
3848 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3849 "last", "trial".
3850 (reposition_prologue_and_epilogue_notes): Likewise for locals
3851 "insn", "last", "note", "first".
3852 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3853 (pass_match_asm_constraints::execute): Likewise for local "insn".
3854
3855 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3856
3857 * output.h (final_scan_insn): Strengthen return type from rtx to
3858 rtx_insn *.
3859 (final_forward_branch_p): Likewise for param.
3860 (current_output_insn): Likewise for this global.
3861
3862 * final.c (rtx debug_insn): Likewise for this variable.
3863 (current_output_insn): Likewise.
3864 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3865 adding "insn" back in as an rtx_insn * with a checked cast, so
3866 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3867 first param.
3868 (compute_alignments): Strengthen local "label" from rtx to
3869 rtx_insn *.
3870 (shorten_branches): Rename param from "first" to "uncast_first",
3871 introducing a new local rtx_insn * "first" using a checked cast to
3872 effectively strengthen "first" from rtx to rtx_insn * without
3873 affecting the type signature. Strengthen locals "insn", "seq",
3874 "next", "label" from rtx to rtx_insn *.
3875 (change_scope): Strengthen param "orig_insn" and local "insn" from
3876 rtx to rtx_insn *.
3877 (final_start_function): Rename param from "first" to "uncast_first",
3878 introducing a new local rtx_insn * "first" using a checked cast to
3879 effectively strengthen "first" from rtx to rtx_insn * without
3880 affecting the type signature. Strengthen local "insn" from rtx to
3881 rtx_insn *.
3882 (dump_basic_block_info): Strengthen param "insn" from rtx to
3883 rtx_insn *.
3884 (final): Rename param from "first" to "uncast_first",
3885 introducing a new local rtx_insn * "first" using a checked cast to
3886 effectively strengthen "first" from rtx to rtx_insn * without
3887 affecting the type signature. Strengthen locals "insn", "next"
3888 from rtx to rtx_insn *.
3889 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3890 rtx_insn *.
3891 (call_from_call_insn): Strengthen param "insn" from rtx to
3892 rtx_call_insn *.
3893 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3894 introducing a new local rtx_insn * "insn" using a checked cast to
3895 effectively strengthen "insn" from rtx to rtx_insn * without
3896 affecting the type signature. Strengthen return type and locals
3897 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3898 now-redundant checked cast to rtx_insn * from both invocations of
3899 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3900 introducing a local "call_insn" for use when invoking
3901 call_from_call_insn.
3902 (notice_source_line): Strengthen param "insn" from rtx to
3903 rtx_insn *.
3904 (leaf_function_p): Likewise for local "insn".
3905 (final_forward_branch_p): Likewise.
3906 (leaf_renumber_regs): Likewise for param "first".
3907 (rest_of_clean_state): Likewise for locals "insn" and "next".
3908 (self_recursive_call_p): Likewise for param "insn".
3909 (collect_fn_hard_reg_usage): Likewise for local "insn".
3910 (get_call_fndecl): Likewise for param "insn".
3911 (get_call_cgraph_rtl_info): Likewise.
3912 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3913 introducing a new local rtx_insn * "insn" using a checked cast to
3914 effectively strengthen "insn" from rtx to rtx_insn * without
3915 affecting the type signature.
3916
3917 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3918 cast when assigning from param "insn" to current_output_insn.
3919 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3920 so that we can assign it back to current_output_insn.
3921
3922 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3923
3924 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3925 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3926 atmxt540s and atmxt540sreva devices.
3927 * config/avr/avr-tables.opt: Regenerate.
3928 * config/avr/t-multilib: Regenerate.
3929 * doc/avr-mmcu.texi: Regenerate.
3930
3931 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3932
3933 * expr.c (convert_move): Strengthen local "insns" from rtx to
3934 rtx_insn *.
3935 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3936 "top_label" from rtx to rtx_code_label *.
3937 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3938 rtx_insn *.
3939 (emit_single_push_insn): Likewise for locals "prev", "last".
3940 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3941 to rtx_code_label *.
3942 (store_constructor): Likewise for locals "loop_start", "loop_end".
3943 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3944 rtx_insn *.
3945 (expand_expr_real_2): Likewise.
3946 (expand_expr_real_1): Strengthen local "label" from rtx to
3947 rtx_code_label *.
3948
3949 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3950
3951 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3952 from rtx to rtx_insn *.
3953 (store_bit_field_1): Likewise.
3954 (extract_bit_field_1): Likewise.
3955 (expand_mult_const): Likewise for local "insns".
3956 (expmed_mult_highpart): Strengthen local "label" from rtx to
3957 rtx_code_label *.
3958 (expand_smod_pow2): Likewise.
3959 (expand_sdiv_pow2): Likewise.
3960 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3961 rtx_insn *. Strengthen locals "label", "label1", "label2",
3962 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3963 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3964 (emit_store_flag): Likewise.
3965 (emit_store_flag_force): Strengthen local "label" from rtx to
3966 rtx_code_label *.
3967 (do_cmp_and_jump): Likewise for param "label".
3968
3969 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3970
3971 * explow.c (force_reg): Strengthen local "insn" from rtx to
3972 rtx_insn *.
3973 (adjust_stack_1): Likewise.
3974 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3975 "final_label", "available_label", "space_available" from rtx to
3976 rtx_code_label *.
3977 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3978 (anti_adjust_stack_and_probe): Likewise.
3979
3980 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3981
3982 * except.h (sjlj_emit_function_exit_after): Strengthen param
3983 "after" from rtx to rtx_insn *. This is only called with
3984 result of get_last_insn (in function.c) so type-change should be
3985 self-contained.
3986
3987 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3988 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3989 to rtx_insn *. These fields are only used from except.c so this
3990 type-change should be self-contained to this patch.
3991
3992 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3993 local "last" from rtx to rtx_insn *.
3994 (dw2_build_landing_pads): Likewise for local "seq".
3995 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3996 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3997 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3998 rtx to rtx_insn *.
3999 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4000 to rtx_insn *.
4001 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4002 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4003 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4004 referring to an insn. Strengthen local "dispatch_label" from
4005 rtx to rtx_code_label *.
4006 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4007 rtx_insn *.
4008 (expand_eh_return): Strengthen local "around_label" from
4009 rtx to rtx_code_label *.
4010 (convert_to_eh_region_ranges): Strengthen locals "iter",
4011 "last_action_insn", "first_no_action_insn",
4012 "first_no_action_insn_before_switch",
4013 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4014
4015 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4016
4017 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4018 from rtx to rtx_insn *.
4019 (cached_next_real_insn): Likewise.
4020 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4021 working with insns.
4022 (dwarf2out_var_location): Strengthen locals "next_real",
4023 "next_note", "expected_next_loc_note", "last_start", "insn" from
4024 rtx to rtx_insn *.
4025
4026 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4027
4028 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4029 from rtx to rtx_insn *.
4030 (create_pseudo_cfg): Likewise for local "insn".
4031
4032 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4033
4034 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4035 from rtx to rtx_insn *.
4036 (df_bb_regno_last_def_find): Likewise.
4037
4038 * df-problems.c (df_rd_bb_local_compute): Likewise.
4039 (df_lr_bb_local_compute): Likewise.
4040 (df_live_bb_local_compute): Likewise.
4041 (df_chain_remove_problem): Likewise.
4042 (df_chain_create_bb): Likewise.
4043 (df_word_lr_bb_local_compute): Likewise.
4044 (df_remove_dead_eq_notes): Likewise for param "insn".
4045 (df_note_bb_compute): Likewise for local "insn".
4046 (simulate_backwards_to_point): Likewise.
4047 (df_md_bb_local_compute): Likewise.
4048
4049 * df-scan.c (df_scan_free_bb_info): Likewise.
4050 (df_scan_start_dump): Likewise.
4051 (df_scan_start_block): Likewise.
4052 (df_install_ref_incremental): Likewise for local "insn".
4053 (df_insn_rescan_all): Likewise.
4054 (df_reorganize_refs_by_reg_by_insn): Likewise.
4055 (df_reorganize_refs_by_insn_bb): Likewise.
4056 (df_recompute_luids): Likewise.
4057 (df_bb_refs_record): Likewise.
4058 (df_update_entry_exit_and_calls): Likewise.
4059 (df_bb_verify): Likewise.
4060
4061 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4062
4063 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4064 "first_note" from rtx to rtx_insn *.
4065 (get_node_of_insn): Likewise for param 2 "insn".
4066 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4067
4068 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4069 rtx_insn *.
4070 (mem_write_insn_p): Likewise.
4071 (mem_access_insn_p): Likewise.
4072 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4073 (def_has_ccmode_p): Likewise for param "insn".
4074 (add_cross_iteration_register_deps): Likewise for locals
4075 "def_insn" and "use_insn".
4076 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4077 (build_intra_loop_deps): Likewise for local "src_insn".
4078 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4079 to rtx_insn *.
4080 (get_node_of_insn): Likewise for param "insn".
4081
4082 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4083
4084 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4085 (deletable_insn_p): Strengthen param "insn" from rtx to
4086 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4087 find_call_stack_args, since this is guarded by CALL_P (insn).
4088 (marked_insn_p): Strengthen param "insn" from rtx to
4089 rtx_insn *.
4090 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4091 invoking find_call_stack_args, since this is guarded by
4092 CALL_P (insn).
4093 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4094 rtx_insn *; we know this is an insn since this was called by
4095 mark_nonreg_stores.
4096 (mark_nonreg_stores_2): Likewise.
4097 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4098 rtx_insn *.
4099 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4100 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4101 to rtx_insn *.
4102 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4103 from rtx to rtx_insn *.
4104 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4105 "next", "ref_insn".
4106 (delete_unmarked_insns): Likewise for locals "insn", "next".
4107 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4108 (mark_reg_dependencies): Likewise for param "insn".
4109 (rest_of_handle_ud_dce): Likewise for local "insn".
4110 (word_dce_process_block): Likewise.
4111 (dce_process_block): Likewise.
4112
4113 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4114
4115 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4116 from rtx to rtx_insn *.
4117 (struct change_cc_mode_args): Likewise for field "insn".
4118 (this_insn): Strengthen from rtx to rtx_insn *.
4119 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4120 with insn.
4121 (validate_canon_reg): Strengthen param "insn" from rtx to
4122 rtx_insn *.
4123 (canon_reg): Likewise.
4124 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4125 dealing with insn.
4126 (record_jump_equiv): Strengthen param "insn" from rtx to
4127 rtx_insn *.
4128 (try_back_substitute_reg): Likewise, also for locals "prev",
4129 "bb_head".
4130 (find_sets_in_insn): Likewise for param "insn".
4131 (canonicalize_insn): Likewise.
4132 (cse_insn): Likewise. Add a checked cast.
4133 (invalidate_from_clobbers): Likewise for param "insn".
4134 (invalidate_from_sets_and_clobbers): Likewise.
4135 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4136 dealing with insn.
4137 (cse_prescan_path): Strengthen local "insn" from rtx to
4138 rtx_insn *.
4139 (cse_extended_basic_block): Likewise for locals "insn" and
4140 "prev_insn".
4141 (cse_main): Likewise for param "f".
4142 (check_for_label_ref): Likewise for local "insn".
4143 (set_live_p): Likewise for second param ("insn").
4144 (insn_live_p): Likewise for first param ("insn") and for local
4145 "next".
4146 (cse_change_cc_mode_insn): Likewise for first param "insn".
4147 (cse_change_cc_mode_insns): Likewise for first and second params
4148 "start" and "end".
4149 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4150 and "end".
4151 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4152 "cc_src_insn".
4153
4154 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4155 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4156 Anna Tikhonova <anna.tikhonova@intel.com>
4157 Ilya Tocar <ilya.tocar@intel.com>
4158 Andrey Turetskiy <andrey.turetskiy@intel.com>
4159 Ilya Verbin <ilya.verbin@intel.com>
4160 Kirill Yukhin <kirill.yukhin@intel.com>
4161 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4162
4163 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4164 New.
4165 * config/i386/sse.md
4166 (define_mode_iterator VI248_AVX2): Delete.
4167 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4168 (define_mode_iterator VI48_AVX2): Ditto.
4169 (define_insn <shift_insn><mode>3): Delete.
4170 (define_insn "<shift_insn><mode>3<mask_name>" with
4171 VI2_AVX2_AVX512BW): New.
4172 (define_insn "<shift_insn><mode>3<mask_name>" with
4173 VI48_AVX2): Ditto.
4174
4175 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4176 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4177 Anna Tikhonova <anna.tikhonova@intel.com>
4178 Ilya Tocar <ilya.tocar@intel.com>
4179 Andrey Turetskiy <andrey.turetskiy@intel.com>
4180 Ilya Verbin <ilya.verbin@intel.com>
4181 Kirill Yukhin <kirill.yukhin@intel.com>
4182 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4183
4184 * config/i386/sse.md
4185 (define_mode_iterator VI4F_BRCST32x2): New.
4186 (define_mode_attr 64x2_mode): Ditto.
4187 (define_mode_attr 32x2mode): Ditto.
4188 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4189 with VI4F_BRCST32x2): Ditto.
4190 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4191 with V16FI mode iterator): Ditto.
4192 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4193 with V16FI): Ditto.
4194 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4195 with VI8F_BRCST64x2): Ditto.
4196
4197 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4198 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4199 Anna Tikhonova <anna.tikhonova@intel.com>
4200 Ilya Tocar <ilya.tocar@intel.com>
4201 Andrey Turetskiy <andrey.turetskiy@intel.com>
4202 Ilya Verbin <ilya.verbin@intel.com>
4203 Kirill Yukhin <kirill.yukhin@intel.com>
4204 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4205
4206 * config/i386/sse.md
4207 (define_mode_iterator VI8_AVX512VL): New.
4208 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4209
4210 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4211
4212 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4213 (define_mode_iterator V48_AVX512VL): New.
4214 (define_mode_iterator V12_AVX512VL): Ditto.
4215 (define_insn <avx512>_load<mode>_mask): Split into two similar
4216 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4217 Refactor output template.
4218 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4219
4220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4221
4222 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4223 rtx_insn *.
4224 (reg_available_p): Likewise for param "insn".
4225 (insert_set_in_table): Likewise.
4226 (hash_scan_set): Likewise.
4227 (hash_scan_insn): Likewise.
4228 (make_set_regs_unavailable): Likewise.
4229 (compute_hash_table_work): Likewise for local "insn".
4230 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4231 const rtx_insn *.
4232 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4233 (try_replace_reg): Likewise.
4234 (find_avail_set): Likewise.
4235 (cprop_jump): Likewise for params "setcc", "jump".
4236 (constprop_register): Likewise for param "insn".
4237 (cprop_insn): Likewise.
4238 (do_local_cprop): Likewise.
4239 (local_cprop_pass): Likewise for local "insn".
4240 (bypass_block): Likewise for params "setcc" and "jump".
4241 (bypass_conditional_jumps): Likewise for locals "setcc" and
4242 "insn".
4243 (one_cprop_pass): Likewise for local "insn".
4244
4245 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4246
4247 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4248 from rtx to rtx_insn *.
4249 (struct comparison): Likewise, also for field "prev_clobber".
4250 (conforming_compare): Likewise for param "insn".
4251 (arithmetic_flags_clobber_p): Likewise.
4252 (find_flags_uses_in_insn): Likewise.
4253 (find_comparison_dom_walker::before_dom_children): Likewise for
4254 locals "insn", "next", "last_clobber".
4255 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4256
4257 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4258
4259 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4260 "insn" from rtx to rtx_insn *.
4261 (single_set_for_csa): Likewise for param "insn".
4262 (record_one_stack_ref): Likewise.
4263 (try_apply_stack_adjustment): Likewise.
4264 (struct record_stack_refs_data): Likewise for field "insn".
4265 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4266 (prev_active_insn_bb): Likewise for return type and param "insn".
4267 (next_active_insn_bb): Likewise.
4268 (force_move_args_size_note): Likewise for params "prev" and "last"
4269 and locals "test", "next_candidate", "prev_candidate".
4270 (combine_stack_adjustments_for_block): Strengthen locals
4271 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4272 rtx_insn *.
4273
4274 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4275
4276 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4277 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4278 (subst_insn): Likewise for this variable.
4279 (added_links_insn): Likewise.
4280 (struct insn_link): Likewise for field "insn".
4281 (alloc_insn_link): Likewise for param "insn".
4282 (struct undobuf): Likewise for field "other_insn".
4283 (find_single_use): Likewise for param "insn" and local "next".
4284 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4285 (delete_noop_moves): Likewise for locals "insn", "next".
4286 (create_log_links): Likewise for locals "insn", "use_insn".
4287 Strengthen local "next_use" from rtx * to rtx_insn **.
4288 (insn_a_feeds_b): Likewise for params "a", "b".
4289 (combine_instructions): Likewise for param "f" and locals "insn",
4290 "next", "prev", "first", "last_combined_insn", "link", "link1",
4291 "temp". Replace use of NULL_RTX with NULL when referring to
4292 insns.
4293 (setup_incoming_promotions): Likewise for param "first"
4294 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4295 (can_combine_p): Likewise for params "insn", "i3", "pred",
4296 "pred2", "succ", "succ2" and for local "p".
4297 (combinable_i3pat): Likewise for param "i3".
4298 (cant_combine_insn_p): Likewise for param "insn".
4299 (likely_spilled_retval_p): Likewise.
4300 (adjust_for_new_dest): Likewise.
4301 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4302 (try_combine): Likewise for return type and for params "i3", "i2",
4303 "i1", "i0", "last_combined_insn", and for locals "insn",
4304 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4305 "i0_insn". Eliminate local "tem" in favor of new locals
4306 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4307 checked cast for now to rtx_insn * on the return type of
4308 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4309 insns.
4310 (find_split_point): Strengthen param "insn" from rtx to
4311 rtx_insn *.
4312 (simplify_set): Likewise for local "other_insn".
4313 (recog_for_combine): Likewise for param "insn".
4314 (record_value_for_reg): Likewise.
4315 (record_dead_and_set_regs_1): Likewise for local
4316 "record_dead_insn".
4317 (record_dead_and_set_regs): Likewise for param "insn".
4318 (record_promoted_value): Likewise.
4319 (check_promoted_subreg): Likewise.
4320 (get_last_value_validate): Likewise.
4321 (reg_dead_at_p): Likewise.
4322 (move_deaths): Likewise for param "to_insn".
4323 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4324 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4325 in favor of new locals "tem_note" and "tem_insn", the latter being
4326 an rtx_insn *.
4327 (distribute_links): Strengthen locals "place", "insn" from rtx to
4328 rtx_insn *.
4329
4330 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4331
4332 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4333 than a const_rtx.
4334 (can_delete_label_p): Require a const rtx_code_label * rather than
4335 a const_rtx.
4336 (delete_insn): Add checked cast to rtx_code_label * when we know
4337 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4338 rtx to rtx_insn *.
4339 (delete_insn_chain): Strengthen locals "prev" and "current" from
4340 rtx to rtx_insn *. Add a checked cast when assigning from
4341 "finish" (strengthening the params will come later). Add a
4342 checked cast to rtx_note * in region where we know
4343 NOTE_P (current).
4344 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4345 rtx_insn *.
4346 (compute_bb_for_insn): Likewise.
4347 (free_bb_for_insn): Likewise for local "insn".
4348 (compute_bb_for_insn): Likewise.
4349 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4350 local "insn" from rtx to rtx_insn *
4351 (flow_active_insn_p): Require a const rtx_insn * rather than a
4352 const_rtx.
4353 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4354 rtx_insn *.
4355 (can_fallthru): Likewise for locals "insn" and "insn2".
4356 (bb_note): Likewise for local "note".
4357 (first_insn_after_basic_block_note): Likewise for local "note" and
4358 for return type.
4359 (rtl_split_block): Likewise for locals "insn" and "next".
4360 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4361 "end".
4362 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4363 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4364 "prev", "tmp".
4365 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4366 them), "kill_from", "barrier", "new_insn".
4367 (patch_jump_insn): Likewise for params "insn", "old_label".
4368 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4369 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4370 "old_label", "new_label".
4371 (rtl_tidy_fallthru_edge): Likewise for local "q".
4372 (rtl_split_edge): Likewise for locals "before", "last".
4373 (commit_one_edge_insertion): Likewise for locals "before",
4374 "after", "insns", "tmp", "last", adding a checked cast where
4375 currently necessary.
4376 (commit_edge_insertions): Likewise.
4377 (rtl_dump_bb): Likewise for locals "insn", "last".
4378 (print_rtl_with_bb): Likewise for local "x".
4379 (rtl_verify_bb_insns): Likewise for local "x".
4380 (rtl_verify_bb_pointers): Likewise for local "insn".
4381 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4382 "head", "end".
4383 (rtl_verify_fallthru): Likewise for local "insn".
4384 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4385 (purge_dead_edges): Likewise for local "insn".
4386 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4387 (skip_insns_after_block): Likewise for return type and for locals
4388 "insn", "last_insn", "next_head", "prev".
4389 (record_effective_endpoints): Likewise for locals "next_insn",
4390 "insn", "end".
4391 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4392 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4393 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4394 (duplicate_insn_chain): For now, add checked cast from rtx to
4395 rtx_insn * when returning insn.
4396 (cfg_layout_duplicate_bb): Likewise for local "insn".
4397 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4398 "prev", "remaints".
4399 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4400 (rtl_block_empty_p): Likewise.
4401 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4402 "split_point", "last".
4403 (rtl_block_ends_with_call_p): Likewise for local "insn".
4404 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4405 const rtx_insn *.
4406 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4407 "split_at_insn" from rtx to rtx_insn *.
4408 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4409 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4410 to const rtx_insn *.
4411 (rtl_account_profile_record): Likewise.
4412
4413 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4414
4415 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4416 rtx to rtx_insn *.
4417 (average_num_loop_insns): Likewise.
4418 (init_set_costs): Likewise for local "seq".
4419 (seq_cost): Likewise for param "seq", from const_rtx to const
4420 rtx_insn *.
4421
4422 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4423
4424 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4425 rtx to rtx_insn *.
4426
4427 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4428
4429 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4430 "f1" and "f2" from rtx * to rtx_insn **.
4431 (flow_find_head_matching_sequence): Likewise.
4432
4433 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4434 "cbranch_insn" from rtx to rtx_insn *.
4435 (thread_jump): Likewise for local "insn".
4436 (try_forward_edges): Likewise for local "last".
4437 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4438 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4439 "real_b_end".
4440 (can_replace_by): Likewise for params "i1", "i2".
4441 (old_insns_match_p): Likewise.
4442 (merge_notes): Likewise.
4443 (walk_to_nondebug_insn): Likewise for param "i1".
4444 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4445 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4446 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4447 (flow_find_head_matching_sequence): Strengthen params "f1" and
4448 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4449 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4450 rtx_insn *.
4451 (outgoing_edges_match): Likewise for locals "last1", "last2".
4452 (try_crossjump_to_edge): Likewise for local "insn".
4453 Replace call to for_each_rtx with for_each_rtx_in_insn.
4454
4455 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4456 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4457 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4458 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4459 (try_optimize_cfg): Strengthen local "last" from rtx to
4460 rtx_insn *.
4461 (delete_dead_jumptables): Likewise for locals "insn", "next",
4462 "label".
4463
4464 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4465 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4466 "rtx else_first_tail", to reflect the basic-block.h changes above.
4467
4468 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4469
4470 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4471 rtx_insn *.
4472 (purge_dead_tablejump_edges): Likewise.
4473 (find_bb_boundaries): Likewise for locals "insn", "end",
4474 "flow_transfer_insn".
4475
4476 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4477
4478 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4479 "ins" and "prev" from rtx to rtx_insn *.
4480
4481 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4482
4483 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4484 rtx_insn *.
4485 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4486 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4487 "scan_start".
4488 (load_register_parameters): Likewise for local "before_arg".
4489 (check_sibcall_argument_overlap): Likewise for param "insn".
4490 (expand_call): Likewise for locals "normal_call_insns",
4491 "tail_call_insns", "insns", "before_call", "after_args",
4492 "before_arg", "last", "prev". Strengthen one of the "last" from
4493 rtx to rtx_call_insn *.
4494 (fixup_tail_calls): Strengthen local "insn" from rtx to
4495 rtx_insn *.
4496 (emit_library_call_value_1): Likewise for locals "before_call" and
4497 "last".
4498
4499 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4500
4501 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4502 and "last" from rtx to rtx_insn *.
4503 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4504 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4505 rtx_call_insn *.
4506 (expand_errno_check): Strengthen local "lab" from rtx to
4507 rtx_code_label *.
4508 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4509 rtx_insn *.
4510 (expand_builtin_mathfn_2): Likewise.
4511 (expand_builtin_mathfn_ternary): Likewise.
4512 (expand_builtin_mathfn_3): Likewise.
4513 (expand_builtin_interclass_mathfn): Likewise for local "last".
4514 (expand_builtin_int_roundingfn): Likewise for local "insns".
4515 (expand_builtin_int_roundingfn_2): Likewise.
4516 (expand_builtin_strlen): Likewise for local "before_strlen".
4517 (expand_builtin_strncmp): Likewise for local "seq".
4518 (expand_builtin_signbit): Likewise for local "last".
4519 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4520 from rtx to rtx_code_label *.
4521 (expand_stack_restore): Strengthen local "prev" from rtx to
4522 rtx_insn *.
4523
4524 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4525
4526 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4527 to rtx_insn *.
4528 (struct btr_def_s): Likewise.
4529 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4530 const rtx_insn *.
4531 (add_btr_def): Likewise.
4532 (new_btr_user): Likewise.
4533 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4534 rtx to rtx_insn *.
4535 (link_btr_uses): Likewise.
4536 (move_btr_def): Likewise for locals "insp", "old_insn",
4537 "new_insn". Add checked cast to rtx_insn * for now on result of
4538 gen_move_insn.
4539 (can_move_up): Strengthen param "insn" from const_rtx to
4540 const rtx_insn *.
4541
4542 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4543
4544 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4545 rtx_insn *.
4546 (get_uncond_jump_length): Likewise for locals "label", "jump".
4547 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4548 "jump", "insn".
4549 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4550 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4551 (find_jump_block): Likewise for local "insn".
4552 (fix_crossing_conditional_branches): Likewise for locals
4553 "old_jump", "new_jump".
4554 (fix_crossing_unconditional_branches): Likewise for locals
4555 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4556 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4557
4558 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4559
4560 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4561 rtx to rtx_insn *.
4562 (struct mem_insn): Likewise for field "insn".
4563 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4564 (reg_next_inc_use): Likewise.
4565 (reg_next_def): Likewise.
4566 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4567 from rtx to rtx_insn *.
4568 (move_insn_before): Likewise for param "next_insn" and local "insns".
4569 (attempt_change): Likewise for local "mov_insn".
4570 (try_merge): Likewise for param "last_insn".
4571 (get_next_ref): Likewise for return type and local "insn".
4572 Strengthen param "next_array" from rtx * to rtx_insn **.
4573 (parse_add_or_inc): Strengthen param "insn" from rtx to
4574 rtx_insn *.
4575 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4576 the latter).
4577 (merge_in_block): Likewise for locals "insn", "curr",
4578 "other_insn".
4579 (pass_inc_dec::execute): Update allocations of the arrays to
4580 reflect the stronger types.
4581
4582 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4583
4584 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4585 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4586 from rtx to rtx_code_label *.
4587
4588 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4589
4590 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4591 to rtx_insn *.
4592
4593 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4594
4595 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4596 generated a warning and prevented bootstrapping the compiler.
4597
4598 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4599
4600 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4601 rtx_insn *.
4602
4603 * jump.c (delete_related_insns): Likewise, also for locals "next"
4604 and "prev".
4605
4606 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4607
4608 * genautomata.c (output_internal_insn_latency_func): When writing
4609 the function "internal_insn_latency" to insn-automata.c,
4610 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4611 allowing the optional guard function of (define_bypass) clauses to
4612 expect a pair of rtx_insn *, rather than a pair of rtx.
4613 (output_insn_latency_func): When writing the function
4614 "insn_latency", add an "uncast_" prefix to params "insn" and
4615 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4616 using checked casts from the params, thus enabling the above
4617 change to the generated "internal_insn_latency" function.
4618
4619 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4620
4621 PR tree-optimization/62091
4622 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4623 handle correctly arrays.
4624 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4625 inheritance binfos.
4626 (record_known_type): Walk into inner type.
4627 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4628 condition on no type changes.
4629
4630 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4631
4632 * genattrtab.c (write_attr_get): Within the generated get_attr_
4633 functions, rename param "insn" to "uncast_insn" and reintroduce
4634 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4635 is an rtx_insn * within insn-attrtab.c
4636
4637 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4638
4639 * output.h (peephole): Strengthen return type from rtx to
4640 rtx_insn *.
4641 * rtl.h (delete_for_peephole): Likewise for both params.
4642 * genpeep.c (main): In generated "peephole" function, strengthen
4643 return type and local "insn" from rtx to rtx_insn *. For now,
4644 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4645 rtx_insn *, with a checked cast.
4646 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4647 locals "insn", "next", "prev" from rtx to rtx_insn *.
4648
4649 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4650
4651 PR tree-optimization/62112
4652 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4653 * gimple-iterator.h (gsi_replace): Return bool.
4654 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4655 moved from ref_may_alias_global_p.
4656 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4657 New overloads.
4658 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4659 (stmt_kills_ref_p_1): Rename...
4660 (stmt_kills_ref_p): ... to this.
4661 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4662 stmt_kills_ref_p): Declare.
4663 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4664 Move the self-assignment case...
4665 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4666
4667 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4668
4669 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4670
4671 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4672 "after". For now, don't strengthen param "trial", which requires
4673 adding checked casts when returning it.
4674
4675 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4676
4677 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4678 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4679 "var_location" hook from rtx to rtx_insn *.
4680 (debug_nothing_rtx): Delete in favor of...
4681 (debug_nothing_rtx_code_label): New prototype.
4682 (debug_nothing_rtx_rtx): Delete unused prototype.
4683 (debug_nothing_rtx_insn): New prototype.
4684
4685 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4686 invoking debug_hooks->var_location (in two places, one in a NOTE
4687 case of a switch statement, the other guarded by a CALL_P
4688 conditional. Add checked cast to rtx_code_label * when invoking
4689 debug_hooks->label (within CODE_LABEL case of switch statement).
4690
4691 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4692 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4693 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4694 (xcoff_debug_hooks): Likewise.
4695 * debug.c (do_nothing_debug_hooks): Likewise.
4696 (debug_nothing_rtx): Delete in favor of...
4697 (debug_nothing_rtx_insn): New function.
4698 (debug_nothing_rtx_rtx): Delete unused function.
4699 (debug_nothing_rtx_code_label): New function.
4700 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4701 debug_nothing_rtx to debug_nothing_rtx_code_label.
4702 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4703 to rtx_insn *.
4704 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4705 debug_nothing_rtx to debug_nothing_rtx_insn.
4706 (sdbout_label): Strengthen param "insn" from rtx to
4707 rtx_code_label *.
4708 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4709 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4710 "var_location" hook from debug_nothing_rtx to
4711 debug_nothing_rtx_insn.
4712
4713 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4714
4715 * recog.h (insn_output_fn): Update this function typedef to match
4716 the changes below to the generated output functions, strengthening
4717 the 2nd param from rtx to rtx_insn *.
4718
4719 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4720 insn when invoking an output function, to match the new signature
4721 of insn_output_fn with a stronger second param.
4722
4723 * genconditions.c (write_header): In the generated code for
4724 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4725 to match the other changes in this patch.
4726
4727 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4728 the generated "gen_" functions from rtx to rtx_insn * within their
4729 implementations.
4730
4731 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4732 the subfunctions within the generated "recog_", "split", "peephole2"
4733 function trees from rtx to rtx_insn *. For now, the top-level
4734 generated functions ("recog", "split", "peephole2") continue to
4735 take a plain rtx for "insn", to avoid introducing dependencies on
4736 other patches. Rename this 2nd param from "insn" to
4737 "uncast_insn", and reintroduce "insn" as a local variable of type
4738 rtx_insn *, initialized at the top of the generated function with
4739 a checked cast on "uncast_insn".
4740 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4741 the generated "gen_" functions from rtx to rtx_insn * within their
4742 prototypes.
4743
4744 * genoutput.c (process_template): Strengthen the 2nd param within
4745 the generated "output_" functions "insn" from rtx to rtx_insn *.
4746
4747 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4748
4749 * tree-profile.c (tree_profiling): Skip external functions
4750 when doing coverage instrumentation.
4751 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4752
4753 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4754
4755 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4756 (vec_mergee): Likewise.
4757 (vec_mergeo): Likewise.
4758 (vec_cntlz): Likewise.
4759 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4760 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4761 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4762 VMRGEW, and VMRGOW.
4763 * doc/extend.texi: Document various forms of vec_cpsgn,
4764 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4765 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4766 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4767 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4768 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4769
4770 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4771
4772 * config/rs6000/rs6000.c (context.h): New include.
4773 (tree-pass.h): Likewise.
4774 (make_pass_analyze_swaps): New decl.
4775 (rs6000_option_override): Register pass_analyze_swaps.
4776 (swap_web_entry): New subsclass of web_entry_base (df.h).
4777 (special_handling_values): New enum.
4778 (union_defs): New function.
4779 (union_uses): Likewise.
4780 (insn_is_load_p): Likewise.
4781 (insn_is_store_p): Likewise.
4782 (insn_is_swap_p): Likewise.
4783 (rtx_is_swappable_p): Likewise.
4784 (insn_is_swappable_p): Likewise.
4785 (chain_purpose): New enum.
4786 (chain_contains_only_swaps): New function.
4787 (mark_swaps_for_removal): Likewise.
4788 (swap_const_vector_halves): Likewise.
4789 (adjust_subreg_index): Likewise.
4790 (permute_load): Likewise.
4791 (permute_store): Likewise.
4792 (handle_special_swappables): Likewise.
4793 (replace_swap_with_copy): Likewise.
4794 (dump_swap_insn_table): Likewise.
4795 (rs6000_analyze_swaps): Likewise.
4796 (pass_data_analyze_swaps): New pass_data.
4797 (pass_analyze_swaps): New rtl_opt_pass.
4798 (make_pass_analyze_swaps): New function.
4799 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4800
4801 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4802
4803 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4804 type from rtx to rtx_insn *.
4805 (create_copy_of_insn_rtx): Likewise.
4806 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4807 (create_copy_of_insn_rtx): Likewise, also for local "res".
4808
4809 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4810
4811 * rtl.h (find_first_parameter_load): Strengthen return type from
4812 rtx to rtx_insn *.
4813 * rtlanal.c (find_first_parameter_load): Strengthen return type
4814 from rtx to rtx_insn *. Add checked cast for now, to postpone
4815 strengthening the params.
4816
4817 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4818
4819 PR fortran/44054
4820 * diagnostic.c: Set default caret.
4821 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4822 line is needed.
4823 * diagnostic.h (struct diagnostic_context):
4824
4825 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4826
4827 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4828 (sel_bb_head): Strengthen return type insn_t (currently just an
4829 rtx) to rtx_insn *.
4830 (sel_bb_end): Likewise.
4831
4832 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4833 (sel_bb_head): Strengthen return type and local "head" from
4834 insn_t (currently just an rtx) to rtx_insn *.
4835 (sel_bb_end): Likewise for return type.
4836 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4837 working with insn.
4838
4839 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4840
4841 * basic-block.h (get_last_bb_insn): Strengthen return type from
4842 rtx to rtx_insn *.
4843 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4844 end".
4845
4846 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4847
4848 PR fortran/44054
4849 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4850 to here ...
4851 (diagnostic_report_diagnostic): ... from here.
4852 * toplev.c (general_init): Move code to c-family.
4853
4854 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4855
4856 * df.h (web_entry_base): Replace existing struct web_entry with a
4857 new class web_entry_base with only the predecessor member.
4858 (unionfind_root): Remove declaration and move to class member.
4859 (unionfind_union): Remove declaration and move to friend
4860 function.
4861 (union_defs): Remove declaration.
4862 * web.c (web_entry_base::unionfind_root): Modify to be member
4863 function and adjust accessors.
4864 (unionfind_union): Modify to be friend function and adjust
4865 accessors.
4866 (web_entry): New subclass of web_entry_base containing the reg
4867 member.
4868 (union_match_dups): Modify for struct -> class changes.
4869 (union_defs): Likewise.
4870 (entry_register): Likewise.
4871 (pass_web::execute): Likewise.
4872
4873 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4874
4875 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4876 builtin define __VEC_ELEMENT_REG_ORDER__.
4877
4878 2014-08-20 Martin Jambor <mjambor@suse.cz>
4879 Wei Mi <wmi@google.com>
4880
4881 PR ipa/60449
4882 PR middle-end/61776
4883 * tree-ssa-operands.c (update_stmt_operands): Remove
4884 MODIFIED_NORETURN_CALLS.
4885 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4886 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4887 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4888 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4889 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4890 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4891 (gimple_call_set_ctrl_altering): New func.
4892 (gimple_call_ctrl_altering_p): Ditto.
4893 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4894 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4895 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4896 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4897 remove MODIFIED_NORETURN_CALLS.
4898
4899 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4900
4901 * coverage.c (coverage_compute_profile_id): Return non-0;
4902 also handle symbols with unique name.
4903 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4904
4905 2014-08-20 Steve Ellcey <sellcey@mips.com>
4906
4907 PR middle-end/49191
4908 * doc/sourcebuild.texi (non_strict_align): New.
4909
4910 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4911
4912 * cgraphunit.c (ipa_passes, compile): Reshedule
4913 symtab_remove_unreachable_nodes passes; update comments.
4914 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4915 TODO_remove_functions before the pass; the functions ought to be
4916 already removed.
4917 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4918 TODO_remove_functions.
4919 * passes.c (pass_data_early_local_passes): Do not schedule function
4920 removal.
4921 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4922
4923 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4924
4925 PR c/59304
4926 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4927 before setting the option.
4928 * diagnostic.c (diagnostic_classify_diagnostic): Record
4929 command-line status.
4930
4931 2014-08-20 Richard Biener <rguenther@suse.de>
4932
4933 PR lto/62190
4934 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4935 to build uint{16,32,64}_type_node.
4936
4937 2014-08-20 Terry Guo <terry.guo@arm.com>
4938
4939 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4940 with immediate_operand.
4941
4942 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4943
4944 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4945 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4946 NULL.
4947
4948 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4949
4950 PR preprocessor/51303
4951 * incpath.c (remove_duplicates): Use cpp_warning.
4952
4953 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4954
4955 PR c/60975
4956 PR c/53063
4957 * doc/options.texi (CPP): Document it.
4958 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4959 * optc-gen.awk: Handle CPP.
4960 * opth-gen.awk: Likewise.
4961
4962 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4963
4964 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4965 rtx_insn *.
4966 (duplicate_insn_chain): Likewise.
4967 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4968 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4969 checked cast for now (until we can strengthen the params in the
4970 same way).
4971 (duplicate_insn_chain): Likewise.
4972
4973 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4974
4975 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4976 rtx_insn *.
4977 (prev_cc0_setter): Likewise.
4978
4979 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4980 rtx_insn *, adding checked casts for now as necessary.
4981 (prev_cc0_setter): Likewise.
4982
4983 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4984
4985 * expr.h (emit_move_insn): Strengthen return type from rtx to
4986 rtx_insn *.
4987 (emit_move_insn_1): Likewise.
4988 (emit_move_complex_push): Likewise.
4989 (emit_move_complex_parts): Likewise.
4990
4991 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4992 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4993 with insns.
4994 (emit_move_complex_push): Strengthen return type from rtx to
4995 rtx_insn *.
4996 (emit_move_complex): Likewise, also for local "ret".
4997 (emit_move_ccmode): Likewise.
4998 (emit_move_multi_word): Likewise for return type and locals
4999 "last_insn", "seq".
5000 (emit_move_insn_1): Likewise for return type and locals "result",
5001 "ret".
5002 (emit_move_insn): Likewise for return type and local "last_insn".
5003 (compress_float_constant): Likewise.
5004
5005 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5006
5007 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5008 from rtx to rtx_insn *.
5009
5010 * rtl.h (emit_insn_before): Likewise.
5011 (emit_insn_before_noloc): Likewise.
5012 (emit_insn_before_setloc): Likewise.
5013 (emit_jump_insn_before): Likewise.
5014 (emit_jump_insn_before_noloc): Likewise.
5015 (emit_jump_insn_before_setloc): Likewise.
5016 (emit_call_insn_before): Likewise.
5017 (emit_call_insn_before_noloc): Likewise.
5018 (emit_call_insn_before_setloc): Likewise.
5019 (emit_debug_insn_before): Likewise.
5020 (emit_debug_insn_before_noloc): Likewise.
5021 (emit_debug_insn_before_setloc): Likewise.
5022 (emit_label_before): Likewise.
5023 (emit_insn_after): Likewise.
5024 (emit_insn_after_noloc): Likewise.
5025 (emit_insn_after_setloc): Likewise.
5026 (emit_jump_insn_after): Likewise.
5027 (emit_jump_insn_after_noloc): Likewise.
5028 (emit_jump_insn_after_setloc): Likewise.
5029 (emit_call_insn_after): Likewise.
5030 (emit_call_insn_after_noloc): Likewise.
5031 (emit_call_insn_after_setloc): Likewise.
5032 (emit_debug_insn_after): Likewise.
5033 (emit_debug_insn_after_noloc): Likewise.
5034 (emit_debug_insn_after_setloc): Likewise.
5035 (emit_label_after): Likewise.
5036 (emit_insn): Likewise.
5037 (emit_debug_insn): Likewise.
5038 (emit_jump_insn): Likewise.
5039 (emit_call_insn): Likewise.
5040 (emit_label): Likewise.
5041 (gen_clobber): Likewise.
5042 (emit_clobber): Likewise.
5043 (gen_use): Likewise.
5044 (emit_use): Likewise.
5045 (emit): Likewise.
5046
5047 (emit_barrier_before): Strengthen return type from rtx to
5048 rtx_barrier *.
5049 (emit_barrier_after): Likewise.
5050 (emit_barrier): Likewise.
5051
5052 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5053 from rtx to rtx_insn *. Add checked casts for now when converting
5054 "last" from rtx to rtx_insn *.
5055 (emit_insn_before_noloc): Likewise for return type.
5056 (emit_jump_insn_before_noloc): Likewise.
5057 (emit_call_insn_before_noloc): Likewise.
5058 (emit_debug_insn_before_noloc): Likewise.
5059 (emit_barrier_before): Strengthen return type and local "insn"
5060 from rtx to rtx_barrier *.
5061 (emit_label_before): Strengthen return type from rtx to
5062 rtx_insn *. Add checked cast for now when returning param
5063 (emit_pattern_after_noloc): Strengthen return type from rtx to
5064 rtx_insn *. Add checked casts for now when converting "last" from
5065 rtx to rtx_insn *.
5066 (emit_insn_after_noloc): Strengthen return type from rtx to
5067 rtx_insn *.
5068 (emit_jump_insn_after_noloc): Likewise.
5069 (emit_call_insn_after_noloc): Likewise.
5070 (emit_debug_insn_after_noloc): Likewise.
5071 (emit_barrier_after): Strengthen return type from rtx to
5072 rtx_barrier *.
5073 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5074 Add checked cast for now when converting "label" from rtx to
5075 rtx_insn *.
5076 (emit_pattern_after_setloc): Strengthen return type from rtx to
5077 rtx_insn *. Add checked casts for now when converting "last" from
5078 rtx to rtx_insn *.
5079 (emit_pattern_after): Strengthen return type from rtx to
5080 rtx_insn *.
5081 (emit_insn_after_setloc): Likewise.
5082 (emit_insn_after): Likewise.
5083 (emit_jump_insn_after_setloc): Likewise.
5084 (emit_jump_insn_after): Likewise.
5085 (emit_call_insn_after_setloc): Likewise.
5086 (emit_call_insn_after): Likewise.
5087 (emit_debug_insn_after_setloc): Likewise.
5088 (emit_debug_insn_after): Likewise.
5089 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5090 when converting "last" from rtx to rtx_insn *.
5091 (emit_pattern_before): Strengthen return type from rtx to
5092 rtx_insn *.
5093 (emit_insn_before_setloc): Likewise.
5094 (emit_insn_before): Likewise.
5095 (emit_jump_insn_before_setloc): Likewise.
5096 (emit_jump_insn_before): Likewise.
5097 (emit_call_insn_before_setloc): Likewise.
5098 (emit_call_insn_before): Likewise.
5099 (emit_debug_insn_before_setloc): Likewise.
5100 (emit_debug_insn_before): Likewise.
5101 (emit_insn): Strengthen return type and locals "last", "insn",
5102 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5103 within cases where we know we have an insn.
5104 (emit_debug_insn): Likewise.
5105 (emit_jump_insn): Likewise.
5106 (emit_call_insn): Strengthen return type and local "insn" from rtx
5107 to rtx_insn *.
5108 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5109 a checked cast to rtx_insn * for now on "label".
5110 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5111 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5112 (emit_use): Likewise.
5113 (gen_use): Likewise, also for local "seq".
5114 (emit): Likewise for return type and local "insn".
5115 (rtx_insn): Likewise for return type and local "new_rtx".
5116
5117 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5118 from rtx to rtx_barrier *.
5119
5120 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5121 changed return type from rtx to rtx_insn *, we must update
5122 "emit_fn" type, and this in turn means updating...
5123 (frame_insn): ...this. Strengthen return type from rtx to
5124 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5125
5126 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5127
5128 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5129 rtx to rtx_jump_table_data *. Also for local.
5130 * rtl.h (emit_jump_table_data): Likewise.
5131
5132 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5133
5134 * basic-block.h (create_basic_block_structure): Strengthen third
5135 param "bb_note" from rtx to rtx_note *.
5136 * rtl.h (emit_note_before): Strengthen return type from rtx to
5137 rtx_note *.
5138 (emit_note_after): Likewise.
5139 (emit_note): Likewise.
5140 (emit_note_copy): Likewise. Also, strengthen param similarly.
5141 * function.h (struct rtl_data): Strengthen field
5142 "x_stack_check_probe_note" from rtx to rtx_note *.
5143
5144 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5145 from rtx to rtx_note *.
5146 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5147 "bb_note" from rtx to rtx_note *.
5148 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5149 when calling emit_note_copy.
5150 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5151 rtx_note *.
5152 (emit_note_after): Likewise.
5153 (emit_note_before): Likewise.
5154 (emit_note_copy): Likewise. Also, strengthen param similarly.
5155 (emit_note): Likewise.
5156 * except.c (emit_note_eh_region_end): Likewise for return type.
5157 Strengthen local "next" from rtx to rtx_insn *.
5158 (convert_to_eh_region_ranges): Strengthen local "note"
5159 from rtx to rtx_note *.
5160 * final.c (change_scope): Likewise.
5161 (reemit_insn_block_notes): Likewise, for both locals named "note".
5162 Also, strengthen local "insn" from rtx to rtx_insn *.
5163 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5164 rtx to rtx_note *.
5165 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5166 strengthen local "seq" from rtx to rtx_insn *.
5167 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5168 to rtx_note *.
5169 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5170 vec<rtx_note *>.
5171 (get_bb_note_from_pool): Strengthen return type from rtx to
5172 rtx_note *.
5173 (sel_create_basic_block): Strengthen local "new_bb_note" from
5174 insn_t to rtx_note *.
5175 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5176 "note" from rtx to rtx_note *.
5177 (emit_notes_in_bb): Likewise.
5178
5179 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5180
5181 * function.h (struct rtl_data): Strengthen field
5182 "x_parm_birth_insn" from rtx to rtx_insn *.
5183 * function.c (struct assign_parm_data_all): Strengthen fields
5184 "first_conversion_insn" and "last_conversion_insn" from rtx to
5185 rtx_insn *.
5186
5187 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5188
5189 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5190 to rtx_insn *; also for local "var_end_seq".
5191 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5192 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5193 "insn".
5194 (expand_gimple_cond): Likewise for locals "last2" and "last".
5195 (mark_transaction_restart_calls): Likewise for local "insn".
5196 (expand_gimple_stmt): Likewise for return type and locals "last"
5197 and "insn".
5198 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5199 (avoid_complex_debug_insns): Likewise for param "insn".
5200 (expand_debug_locations): Likewise for locals "insn", "last",
5201 "prev_insn" and "insn2".
5202 (expand_gimple_basic_block): Likewise for local "last".
5203 (construct_exit_block): Likewise for locals "head", "end",
5204 "orig_end".
5205 (pass_expand::execute): Likewise for locals "var_seq",
5206 "var_ret_seq", "next".
5207
5208 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5209
5210 * asan.h (asan_emit_stack_protection): Strengthen return type from
5211 rtx to rtx_insn *.
5212 * asan.c (asan_emit_stack_protection): Likewise. Add local
5213 "insns" to hold the return value.
5214
5215 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5216
5217 * basic-block.h (bb_note): Strengthen return type from rtx to
5218 rtx_note *.
5219 * sched-int.h (bb_note): Likewise.
5220 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5221
5222 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5223
5224 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5225 rtx_insn *.
5226
5227 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5228 "insn" from rtx to rtx_insn *.
5229 (make_debug_insn_raw): Strengthen return type from rtx to
5230 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5231 (make_jump_insn_raw): Strengthen return type from rtx to
5232 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5233 (make_call_insn_raw): Strengthen return type from rtx to
5234 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5235 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5236 callback from rtx to rtx_insn *; likewise for local "insn" and
5237 "next", adding a checked cast to rtx_insn in the relevant cases of
5238 the switch statement.
5239 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5240 callback from rtx to rtx_insn *.
5241 (emit_pattern_after_setloc): Likewise.
5242 (emit_pattern_after): Likewise.
5243 (emit_pattern_before_setloc): Likewise.
5244 (emit_pattern_before): Likewise.
5245
5246 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5247
5248 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5249 rtx_call_insn *.
5250 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5251 accepting an rtx_insn *.
5252 (last_call_insn): Strengthen return type from rtx to
5253 rtx_call_insn *.
5254
5255 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5256
5257 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5258 "insns" from rtx to rtx_insn *.
5259 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5260 locals "insn" and "prev".
5261
5262 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5263
5264 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5265 rtx_jump_table_data **.
5266
5267 * cfgbuild.c (make_edges): Introduce local "table", using it in
5268 place of "tmp" for jump table data.
5269 (find_bb_boundaries): Strengthen local "table" from rtx to
5270 rtx_jump_table_data *.
5271 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5272 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5273 (try_crossjump_to_edge): Likewise.
5274 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5275 "table".
5276 (patch_jump_insn): Introduce local "table", using it in place of
5277 "tmp" for jump table data.
5278 (force_nonfallthru_and_redirect): Introduce local "table", so that
5279 call to tablejump_p can receive an rtx_jump_table_data **. Update
5280 logic around the call to overwrite "note" appropriately if
5281 tablejump_p returns non-zero.
5282 (get_last_bb_insn): Introduce local "table", using it in place of
5283 "tmp" for jump table data.
5284 * dwarf2cfi.c (create_trace_edges): Likewise.
5285
5286 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5287 from rtx to rtx_jump_table_data *.
5288 (create_fix_barrier): Strengthen local "tmp" from rtx to
5289 rtx_jump_table_data *.
5290 (arm_reorg): Likewise for local "table".
5291
5292 * config/s390/s390.c (s390_chunkify_start): Likewise.
5293
5294 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5295
5296 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5297 rtx to rtx_jump_table_data *.
5298
5299 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5300 rtx_jump_table_data **. Add a checked cast when writing through
5301 the pointer: we know there that local "table" is non-NULL and that
5302 JUMP_TABLE_DATA_P (table) holds.
5303 (label_is_jump_target_p): Introduce local "table", using it in
5304 place of "tmp" for jump table data.
5305
5306 2014-08-19 Marek Polacek <polacek@redhat.com>
5307
5308 PR c++/62153
5309 * doc/invoke.texi: Document -Wbool-compare.
5310
5311 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5312
5313 * rtl.h (entry_of_function): Strengthen return type from rtx to
5314 rtx_insn *.
5315 * cfgrtl.c (entry_of_function): Likewise.
5316
5317 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5318
5319 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5320 rtx_insn *, adding a checked cast for now.
5321 (get_last_insn): Likewise.
5322
5323 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5324
5325 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5326 rtx_code_label *.
5327
5328 * emit-rtl.c (gen_label_rtx): Likewise.
5329
5330 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5331
5332 * rtl.h (previous_insn): Strengthen return type from rtx to
5333 rtx_insn *.
5334 (next_insn): Likewise.
5335 (prev_nonnote_insn): Likewise.
5336 (prev_nonnote_insn_bb): Likewise.
5337 (next_nonnote_insn): Likewise.
5338 (next_nonnote_insn_bb): Likewise.
5339 (prev_nondebug_insn): Likewise.
5340 (next_nondebug_insn): Likewise.
5341 (prev_nonnote_nondebug_insn): Likewise.
5342 (next_nonnote_nondebug_insn): Likewise.
5343 (prev_real_insn): Likewise.
5344 (next_real_insn): Likewise.
5345 (prev_active_insn): Likewise.
5346 (next_active_insn): Likewise.
5347
5348 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5349 rtx_insn *, adding a checked cast.
5350 (previous_insn): Likewise.
5351 (next_nonnote_insn): Likewise.
5352 (next_nonnote_insn_bb): Likewise.
5353 (prev_nonnote_insn): Likewise.
5354 (prev_nonnote_insn_bb): Likewise.
5355 (next_nondebug_insn): Likewise.
5356 (prev_nondebug_insn): Likewise.
5357 (next_nonnote_nondebug_insn): Likewise.
5358 (prev_nonnote_nondebug_insn): Likewise.
5359 (next_real_insn): Likewise.
5360 (prev_real_insn): Likewise.
5361 (next_active_insn): Likewise.
5362 (prev_active_insn): Likewise.
5363
5364 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5365 param "stepfunc" so that it returns an rtx_insn * rather than an
5366 rtx, to track the change to prev_nonnote_insn_bb, which is the
5367 only function this is called with.
5368 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5369
5370 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5371
5372 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5373 assert.
5374
5375 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5376
5377 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5378 (class rtx_nonjump_insn): Likewise.
5379 (class rtx_jump_insn): Likewise.
5380 (class rtx_call_insn): Likewise.
5381 (class rtx_jump_table_data): Likewise.
5382 (class rtx_barrier): Likewise.
5383 (class rtx_code_label): Likewise.
5384 (class rtx_note): Likewise.
5385
5386 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5387 adding the invariant DEBUG_INSN_P (X).
5388 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5389 the invariant NONJUMP_INSN_P (X).
5390 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5391 the invariant JUMP_P (X).
5392 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5393 the invariant CALL_P (X).
5394 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5395 invariant JUMP_TABLE_DATA_P (X).
5396 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5397 invariant BARRIER_P (X).
5398 (class rtx_code_label): New, a subclass of rtx_insn, adding
5399 the invariant LABEL_P (X).
5400 (class rtx_note): New, a subclass of rtx_insn, adding
5401 the invariant NOTE_P(X).
5402 (is_a_helper <rtx_debug_insn *>::test): New.
5403 (is_a_helper <rtx_nonjump_insn *>::test): New.
5404 (is_a_helper <rtx_jump_insn *>::test): New.
5405 (is_a_helper <rtx_call_insn *>::test): New.
5406 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5407 overloaded for both rtx and rtx_insn *.
5408 (is_a_helper <rtx_barrier *>::test): New.
5409 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5410 for both rtx and rtx_insn *.
5411 (is_a_helper <rtx_note *>::test): New.
5412
5413 2014-08-19 Marek Polacek <polacek@redhat.com>
5414
5415 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5416 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5417 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5418 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5419
5420 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5421
5422 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5423 rtx_insn *. To help with transition, for now, convert from an
5424 access macro into a pair of functions: BND_TO, returning an
5425 rtx_insn *, and...
5426 (SET_BND_TO): New function, for use where BND_TO is used as an
5427 lvalue.
5428
5429 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5430 SET_BND_TO.
5431 (BND_TO): New function, adding a checked cast.
5432 (SET_BND_TO): New function.
5433
5434 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5435 SET_BND_TO.
5436 (compute_av_set_on_boundaries): Likewise.
5437
5438 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5439
5440 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5441 destination if it is used in source.
5442 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5443 (*popcount<mode>2_falsedep_1): Likewise.
5444
5445 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5446
5447 PR other/62168
5448 * configure.ac: Set install_gold_as_default to no first.
5449 * configure: Regenerated.
5450
5451 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5452
5453 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5454 "note_list" field will eventually be an rtx_insn *. To help with
5455 transition, for now, convert from an access macro into a pair of
5456 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5457 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5458 used as an lvalue.
5459
5460 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5461 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5462
5463 * sel-sched-ir.c (init_bb): Likewise.
5464 (sel_restore_notes): Likewise.
5465 (move_bb_info): Likewise.
5466 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5467 (SET_BB_NOTE_LIST): New function.
5468
5469 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5470
5471 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5472 field will eventually be an rtx_insn *. To help with transition,
5473 for now, convert from an access macro into a pair of functions:
5474 VINSN_INSN_RTX, returning an rtx_insn *, and...
5475 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5476 is used as an lvalue.
5477
5478 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5479 SET_VINSN_INSN_RTX where it's used as an lvalue.
5480 (VINSN_INSN_RTX): New function.
5481 (SET_VINSN_INSN_RTX): New function.
5482
5483 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5484
5485 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5486 eventually be rtx_insn *, but to help with transition, for now,
5487 convert from an access macro into a pair of functions: DEP_PRO
5488 returning an rtx_insn * and...
5489 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5490 lvalue, returning an rtx&.
5491 (DEP_CON): Analogous changes to DEP_PRO above.
5492 (SET_DEP_CON): Likewise.
5493
5494 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5495 an lvalue to SET_DEP_CON.
5496 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5497 (sd_copy_back_deps): Likewise for DEP_CON.
5498 (DEP_PRO): New function, adding a checked cast for now.
5499 (DEP_CON): Likewise.
5500 (SET_DEP_PRO): New function.
5501 (SET_DEP_CON): Likewise.
5502
5503 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5504
5505 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5506 (extra_options): Add i386/cygwin.opt.
5507 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5508 (CPP_SPEC): Accept -pthread.
5509 (LINK_SPEC): Ditto.
5510 (GOMP_SELF_SPECS): Update comment.
5511 * config/i386/cygwin.opt: New file for -pthread flag.
5512
5513 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5514
5515 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5516 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5517 that we can return an rtx_insn *.
5518
5519 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5520
5521 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5522 when building executables, not DLLs. Add --large-address-aware
5523 under the same conditions.
5524 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5525 when building executables, not DLLs. Add --large-address-aware
5526 under the same conditions when using -m32.
5527
5528 * config/i386/cygwin-stdint.h: Throughout, make type
5529 definitions dependent on target architecture, not host.
5530
5531 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5532
5533 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5534 the return type from rtx to rtx_insn *, which will enable various
5535 conversions in followup patches. For now this is is done by a
5536 checked cast.
5537 (NEXT_INSN): Likewise.
5538 (SET_PREV_INSN): Convert to an inline function. This is intended
5539 for use as an lvalue, and so returns an rtx& to allow in-place
5540 modification.
5541 (SET_NEXT_INSN): Likewise.
5542
5543 2014-07-08 Mark Wielaard <mjw@redhat.com>
5544
5545 PR debug/59051
5546 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5547
5548 2014-08-19 Marek Polacek <polacek@redhat.com>
5549
5550 PR c/61271
5551 * cgraphunit.c (handle_alias_pairs): Fix condition.
5552
5553 2014-08-19 Richard Biener <rguenther@suse.de>
5554
5555 * gimple-fold.c (fold_gimple_assign): Properly build a
5556 null-pointer constant when devirtualizing addresses.
5557
5558 2014-07-07 Mark Wielaard <mjw@redhat.com>
5559
5560 * dwarf2out.c (decl_quals): New function.
5561 (modified_type_die): Take one cv_quals argument instead of two,
5562 one for const and one for volatile.
5563 (add_type_attribute): Likewise.
5564 (generic_parameter_die): Call add_type_attribute with one modifier
5565 argument.
5566 (base_type_for_mode): Likewise.
5567 (add_bounds_info): Likewise.
5568 (add_subscript_info): Likewise.
5569 (gen_array_type_die): Likewise.
5570 (gen_descr_array_type_die): Likewise.
5571 (gen_entry_point_die): Likewise.
5572 (gen_enumeration_type_die): Likewise.
5573 (gen_formal_parameter_die): Likewise.
5574 (gen_subprogram_die): Likewise.
5575 (gen_variable_die): Likewise.
5576 (gen_const_die): Likewise.
5577 (gen_field_die): Likewise.
5578 (gen_pointer_type_die): Likewise.
5579 (gen_reference_type_die): Likewise.
5580 (gen_ptr_to_mbr_type_die): Likewise.
5581 (gen_inheritance_die): Likewise.
5582 (gen_subroutine_type_die): Likewise.
5583 (gen_typedef_die): Likewise.
5584 (force_type_die): Likewise.
5585
5586 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5587
5588 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5589 if unset.
5590 * configure: Regenerate.
5591
5592 2014-08-19 Richard Biener <rguenther@suse.de>
5593
5594 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5595 DECL_EXTERNALs in BLOCKs as non-references.
5596 * tree-streamer-out.c (streamer_write_chain): Likewise.
5597
5598 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5599 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5600 Anna Tikhonova <anna.tikhonova@intel.com>
5601 Ilya Tocar <ilya.tocar@intel.com>
5602 Andrey Turetskiy <andrey.turetskiy@intel.com>
5603 Ilya Verbin <ilya.verbin@intel.com>
5604 Kirill Yukhin <kirill.yukhin@intel.com>
5605 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5606
5607 * config/i386/sse.md
5608 (define_mode_iterator VI48_AVX512F): Delete.
5609 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5610 (define_mode_iterator VI2_AVX512VL): Ditto.
5611 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5612 Delete.
5613 (define_insn
5614 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5615 New.
5616 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5617 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5618 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5619 with VI48_AVX512F_AVX512VL): New.
5620 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5621 with VI2_AVX512VL): Ditto.
5622
5623 2014-08-19 Marek Polacek <polacek@redhat.com>
5624
5625 * doc/invoke.texi: Document -Wc99-c11-compat.
5626
5627 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5628
5629 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5630 for rvalues, and...
5631 (SET_PREV_INSN): New macro, for use as an lvalue.
5632 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5633
5634 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5635 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5636 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5637 (fixup_abnormal_edges): Likewise.
5638 (unlink_insn_chain): Likewise.
5639 (fixup_reorder_chain): Likewise.
5640 (cfg_layout_delete_block): Likewise.
5641 (cfg_layout_merge_blocks): Likewise.
5642 * combine.c (update_cfg_for_uncondjump): Likewise.
5643 * emit-rtl.c (link_insn_into_chain): Likewise.
5644 (remove_insn): Likewise.
5645 (delete_insns_since): Likewise.
5646 (reorder_insns_nobb): Likewise.
5647 (emit_insn_after_1): Likewise.
5648 * final.c (rest_of_clean_state): Likewise.
5649 (final_scan_insn): Likewise.
5650 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5651 * haifa-sched.c (concat_note_lists): Likewise.
5652 (remove_notes): Likewise.
5653 (restore_other_notes): Likewise.
5654 (move_insn): Likewise.
5655 (unlink_bb_notes): Likewise.
5656 (restore_bb_notes): Likewise.
5657 * jump.c (delete_for_peephole): Likewise.
5658 * optabs.c (emit_libcall_block_1): Likewise.
5659 * reorg.c (emit_delay_sequence): Likewise.
5660 (fill_simple_delay_slots): Likewise.
5661 * sel-sched-ir.c (sel_move_insn): Likewise.
5662 (sel_remove_insn): Likewise.
5663 (get_bb_note_from_pool): Likewise.
5664 * sel-sched.c (move_nop_to_previous_block): Likewise.
5665
5666 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5667 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5668 (c6x_gen_bundles): Likewise.
5669 (hwloop_optimize): Likewise.
5670 * config/frv/frv.c (frv_function_prologue): Likewise.
5671 (frv_register_nop): Likewise.
5672 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5673 (ia64_reorg): Likewise.
5674 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5675 (mep_make_bundle): Likewise.
5676 (mep_bundle_insns): Likewise.
5677 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5678 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5679 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5680
5681 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5682
5683 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5684 return type from rtx to rtx_insn *.
5685 (BB_END): Likewise.
5686 (BB_HEADER): Likewise.
5687 (BB_FOOTER): Likewise.
5688 (SET_BB_HEAD): Convert to a function.
5689 (SET_BB_END): Likewise.
5690 (SET_BB_HEADER): Likewise.
5691 (SET_BB_FOOTER): Likewise.
5692
5693 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5694 Strengthen the return type from rtx to rtx_insn *. For now, this
5695 is done by adding a checked cast, but this will eventually
5696 become a field lookup.
5697 (BB_END): Likewise.
5698 (BB_HEADER): Likewise.
5699 (BB_FOOTER): Likewise.
5700 (SET_BB_HEAD): New function, from macro of same name. This is
5701 intended for use as an lvalue, and so returns an rtx& to allow
5702 in-place modification.
5703 (SET_BB_END): Likewise.
5704 (SET_BB_HEADER): Likewise.
5705 (SET_BB_FOOTER): Likewise.
5706
5707 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5708
5709 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5710 for rvalues, and...
5711 (SET_BB_HEAD): New macro, for use as a lvalue.
5712 (BB_END, SET_BB_END): Likewise.
5713 (BB_HEADER, SET_BB_HEADER): Likewise.
5714 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5715
5716 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5717 of BB_* macros into SET_BB_* macros.
5718 (fix_crossing_unconditional_branches): Likewise.
5719 * caller-save.c (save_call_clobbered_regs): Likewise.
5720 (insert_one_insn): Likewise.
5721 * cfgbuild.c (find_bb_boundaries): Likewise.
5722 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5723 (outgoing_edges_match): Likewise.
5724 (try_optimize_cfg): Likewise.
5725 * cfgexpand.c (expand_gimple_cond): Likewise.
5726 (expand_gimple_tailcall): Likewise.
5727 (expand_gimple_basic_block): Likewise.
5728 (construct_exit_block): Likewise.
5729 * cfgrtl.c (delete_insn): Likewise.
5730 (create_basic_block_structure): Likewise.
5731 (rtl_delete_block): Likewise.
5732 (rtl_split_block): Likewise.
5733 (emit_nop_for_unique_locus_between): Likewise.
5734 (rtl_merge_blocks): Likewise.
5735 (block_label): Likewise.
5736 (try_redirect_by_replacing_jump): Likewise.
5737 (emit_barrier_after_bb): Likewise.
5738 (fixup_abnormal_edges): Likewise.
5739 (record_effective_endpoints): Likewise.
5740 (relink_block_chain): Likewise.
5741 (fixup_reorder_chain): Likewise.
5742 (fixup_fallthru_exit_predecessor): Likewise.
5743 (cfg_layout_duplicate_bb): Likewise.
5744 (cfg_layout_split_block): Likewise.
5745 (cfg_layout_delete_block): Likewise.
5746 (cfg_layout_merge_blocks): Likewise.
5747 * combine.c (update_cfg_for_uncondjump): Likewise.
5748 * emit-rtl.c (add_insn_after): Likewise.
5749 (remove_insn): Likewise.
5750 (reorder_insns): Likewise.
5751 (emit_insn_after_1): Likewise.
5752 * haifa-sched.c (get_ebb_head_tail): Likewise.
5753 (restore_other_notes): Likewise.
5754 (move_insn): Likewise.
5755 (sched_extend_bb): Likewise.
5756 (fix_jump_move): Likewise.
5757 * ifcvt.c (noce_process_if_block): Likewise.
5758 (dead_or_predicable): Likewise.
5759 * ira.c (update_equiv_regs): Likewise.
5760 * reg-stack.c (change_stack): Likewise.
5761 * sel-sched-ir.c (sel_move_insn): Likewise.
5762 * sel-sched.c (move_nop_to_previous_block): Likewise.
5763
5764 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5765 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5766
5767 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5768
5769 * rtl.h (for_each_rtx_in_insn): New function.
5770 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5771
5772 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5773
5774 * coretypes.h (class rtx_insn): Add forward declaration.
5775
5776 * rtl.h: Include is-a.h.
5777 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5778 workaround to ensure gengtype knows inheritance is occurring,
5779 whilst continuing to use the pre-existing special-casing for
5780 rtx_def.
5781 (class rtx_insn): New subclass of rtx_def, adding the
5782 invariant that we're dealing with something we can sanely use
5783 INSN_UID, NEXT_INSN, PREV_INSN on.
5784 (is_a_helper <rtx_insn *>::test): New.
5785 (is_a_helper <const rtx_insn *>::test): New.
5786
5787 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5788
5789 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5790
5791 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5792
5793 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5794 comdats as extern.
5795
5796 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5797
5798 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5799 to BUILT_IN_UNREACHABLE.
5800
5801 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5802
5803 PR target/62011
5804 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5805 New tune flag.
5806 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5807 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5808 (ffs<mode>2): Do not expand with tzcnt for
5809 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5810 (ffssi2_no_cmove): Ditto.
5811 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5812 (ctz<mode>2): New expander.
5813 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5814 (*ctz<mode>2_falsedep): New insn.
5815 (*ctz<mode>2): Rename from ctz<mode>2.
5816 (clz<mode>2_lzcnt): New expander.
5817 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5818 (*clz<mode>2_lzcnt_falsedep): New insn.
5819 (*clz<mode>2): Rename from ctz<mode>2.
5820 (popcount<mode>2): New expander.
5821 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5822 (*popcount<mode>2_falsedep): New insn.
5823 (*popcount<mode>2): Rename from ctz<mode>2.
5824 (*popcount<mode>2_cmp): Remove.
5825 (*popcountsi2_cmp_zext): Ditto.
5826
5827 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5828
5829 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5830 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5831 * config/microblaze/microblaze.h
5832 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5833
5834 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5835
5836 PR other/62168
5837 * configure.ac: Set install_gold_as_default to no for
5838 --enable-gold=no.
5839 * configure: Regenerated.
5840
5841 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5842
5843 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5844 * config.in: Add undef of HAVE_isl.
5845 * configure: Regenerate.
5846 * configure.ac: Add definition of HAVE_isl.
5847 * graphite-blocking.c: Add checking of HAVE_isl.
5848 * graphite-dependences.c: Likewise.
5849 * graphite-interchange.c: Likewise.
5850 * graphite-isl-ast-to-gimple.c: Likewise.
5851 * graphite-optimize-isl.c: Likewise.
5852 * graphite-poly.c: Likewise.
5853 * graphite-scop-detection.c: Likewise.
5854 * graphite-sese-to-poly.c: Likewise.
5855 * graphite.c: Likewise.
5856 * toplev.c: Replace the checking of HAVE_cloog with the checking
5857 of HAVE_isl.
5858
5859 2014-08-18 Richard Biener <rguenther@suse.de>
5860
5861 PR tree-optimization/62090
5862 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5863 (fold_builtin_3): Do not fold snprintf.
5864 (fold_builtin_4): Likewise.
5865 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5866 moved from builtins.c.
5867 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5868 (gimple_fold_builtin): Do not fold sprintf here.
5869
5870 2014-08-18 Richard Biener <rguenther@suse.de>
5871
5872 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5873 code to ...
5874 (maybe_canonicalize_mem_ref_addr): ... this function.
5875 (fold_stmt_1): Apply it here before all simplification.
5876
5877 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5878
5879 PR ipa/61800
5880 * cgraph.h (cgraph_node::create_indirect_edge): Add
5881 compute_indirect_info param.
5882 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5883 indirect_info only when it is required.
5884 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5885 indirect_info fore cloned indirect edge.
5886
5887 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5889 Anna Tikhonova <anna.tikhonova@intel.com>
5890 Ilya Tocar <ilya.tocar@intel.com>
5891 Andrey Turetskiy <andrey.turetskiy@intel.com>
5892 Ilya Verbin <ilya.verbin@intel.com>
5893 Kirill Yukhin <kirill.yukhin@intel.com>
5894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5895
5896 * config/i386/sse.md
5897 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5898 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5899
5900 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5901 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5902 Anna Tikhonova <anna.tikhonova@intel.com>
5903 Ilya Tocar <ilya.tocar@intel.com>
5904 Andrey Turetskiy <andrey.turetskiy@intel.com>
5905 Ilya Verbin <ilya.verbin@intel.com>
5906 Kirill Yukhin <kirill.yukhin@intel.com>
5907 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5908
5909 * config/i386/sse.md
5910 (define_mode_iterator VF1_AVX512VL): New.
5911 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5912 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5913 New.
5914
5915 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5916 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5917 Anna Tikhonova <anna.tikhonova@intel.com>
5918 Ilya Tocar <ilya.tocar@intel.com>
5919 Andrey Turetskiy <andrey.turetskiy@intel.com>
5920 Ilya Verbin <ilya.verbin@intel.com>
5921 Kirill Yukhin <kirill.yukhin@intel.com>
5922 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5923
5924 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5925 * config/i386/i386.md
5926 (define_code_iterator any_float): New.
5927 (define_code_attr floatsuffix): New.
5928 * config/i386/sse.md
5929 (define_mode_iterator VF1_128_256VL): New.
5930 (define_mode_iterator VF2_512_256VL): New.
5931 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5932 TARGET check.
5933 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5934 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5935 New.
5936 (define_mode_attr qq2pssuff): New.
5937 (define_mode_attr sselongvecmode): New.
5938 (define_mode_attr sselongvecmodelower): New.
5939 (define_mode_attr sseintvecmode3): New.
5940 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5941 New.
5942 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5943 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5944 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5945 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5946
5947 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5948 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5949 Anna Tikhonova <anna.tikhonova@intel.com>
5950 Ilya Tocar <ilya.tocar@intel.com>
5951 Andrey Turetskiy <andrey.turetskiy@intel.com>
5952 Ilya Verbin <ilya.verbin@intel.com>
5953 Kirill Yukhin <kirill.yukhin@intel.com>
5954 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5955
5956 * config/i386/sse.md
5957 (define_mode_iterator VF2_AVX512VL): New.
5958 (define_mode_attr sseintvecmode2): New.
5959 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5960 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5961 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5962 (define_insn
5963 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5964 Ditto.
5965 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5966 Ditto.
5967 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5968 Ditto.
5969
5970 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5971 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5972 Anna Tikhonova <anna.tikhonova@intel.com>
5973 Ilya Tocar <ilya.tocar@intel.com>
5974 Andrey Turetskiy <andrey.turetskiy@intel.com>
5975 Ilya Verbin <ilya.verbin@intel.com>
5976 Kirill Yukhin <kirill.yukhin@intel.com>
5977 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5978
5979 * config/i386/i386.md
5980 (define_insn "*movoi_internal_avx"): Add evex version.
5981 (define_insn "*movti_internal"): Ditto.
5982
5983 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5984 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5985 Anna Tikhonova <anna.tikhonova@intel.com>
5986 Ilya Tocar <ilya.tocar@intel.com>
5987 Andrey Turetskiy <andrey.turetskiy@intel.com>
5988 Ilya Verbin <ilya.verbin@intel.com>
5989 Kirill Yukhin <kirill.yukhin@intel.com>
5990 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5991
5992 * config/i386/i386.md
5993 (define_attr "isa"): Add avx512dq, noavx512dq.
5994 (define_attr "enabled"): Ditto.
5995 * config/i386/sse.md
5996 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5997
5998 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5999 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6000 Anna Tikhonova <anna.tikhonova@intel.com>
6001 Ilya Tocar <ilya.tocar@intel.com>
6002 Andrey Turetskiy <andrey.turetskiy@intel.com>
6003 Ilya Verbin <ilya.verbin@intel.com>
6004 Kirill Yukhin <kirill.yukhin@intel.com>
6005 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6006
6007 * config/i386/i386.c
6008 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6009 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6010 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6011 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6012 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6013 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6014 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6015 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6016 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6017 * config/i386/sse.md
6018 (define_mode_iterator VMOVE): Allow V4TI mode.
6019 (define_mode_iterator V_AVX512VL): New.
6020 (define_mode_iterator V): New handling for AVX512VL.
6021 (define_insn "avx512f_load<mode>_mask"): Delete.
6022 (define_insn "<avx512>_load<mode>_mask"): New.
6023 (define_insn "avx512f_store<mode>_mask"): Delete.
6024 (define_insn "<avx512>_store<mode>_mask"): New.
6025
6026
6027 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6028
6029 PR sanitizer/62089
6030 * asan.c (instrument_derefs): Fix bitfield check.
6031
6032 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6033
6034 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6035 * config/rs6000/htm.md (ttest): Remove clobber.
6036 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6037 (and_operand): Reformat.
6038 (and_2rld_operand): New predicate.
6039 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6040 parameter.
6041 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6042 parameter. Handle AND directly.
6043 (rs6000_split_logical_di): Remove last parameter.
6044 (rs6000_split_logical): Remove last parameter. Remove obsolete
6045 comment.
6046 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6047 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6048 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6049 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6050 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6051 and 5 anonymous splitters): Delete.
6052 (and<mode>3): New expander.
6053 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6054 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6055 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6056 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6057 (floatdisf2_internal1): Remove clobbers.
6058 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6059 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6060 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6061 (and<mode>3 for BOOL_128): Remove clobber.
6062 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6063 rs6000_split_logical.
6064 (*bool<mode>3_internal for BOOL_128): Adjust call of
6065 rs6000_split_logical.
6066 (*boolc<mode>3_internal1 for BOOL_128,
6067 *boolc<mode>3_internal2 for BOOL_128,
6068 *boolcc<mode>3_internal1 for BOOL_128,
6069 *boolcc<mode>3_internal2 for BOOL_128,
6070 *eqv<mode>3_internal1 for BOOL_128,
6071 *eqv<mode>3_internal2 for BOOL_128,
6072 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6073 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6074 clobber.
6075 (*vec_reload_and_reg_<mptrsize>): Delete.
6076
6077 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6078
6079 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6080 and split, *boolccsi3_internal3 and split): Delete.
6081 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6082 *boolccdi3_internal3 and split): Delete.
6083 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6084 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6085
6086 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6087
6088 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6089 and split, *boolcsi3_internal3 and split): Delete.
6090 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6091 *boolcdi3_internal3 and split): Delete.
6092 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6093
6094 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6095
6096 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6097 <'u'>: Also support printing the low-order 16 bits.
6098 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6099 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6100 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6101 *booldi3_internal3 and split): Delete.
6102 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6103 *bool<mode>3_dot2): New.
6104 (two anonymous define_splits for non_logical_cint_operand): Merge.
6105
6106 2014-08-17 Marek Polacek <polacek@redhat.com>
6107 Manuel López-Ibáñez <manu@gcc.gnu.org>
6108
6109 PR c/62059
6110 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6111 (diagnostic_show_locus): Don't print caret diagnostic
6112 if a column is larger than the line_width.
6113
6114 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6115
6116 * common.opt: Make the ISL AST generator to be the main code generator
6117 of Graphite.
6118
6119 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6120
6121 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6122
6123 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6124
6125 PR target/61641
6126 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6127 Declare.
6128 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6129 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6130 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6131 Define.
6132 * config/pa/pa.md (begin_brtab): Delete insn.
6133 (end_brtab): Likewise.
6134
6135 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6136
6137 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6138
6139 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6140
6141 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6142 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6143 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6144 (get_dynamic_type): Remove.
6145 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6146 (clear_speculation): Bring to ipa-deivrt.h
6147 (get_class_context): Rename to ...
6148 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6149 (contains_type_p): Update.
6150 (get_dynamic_type): Rename to ...
6151 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6152 (possible_polymorphic_call_targets): UPdate.
6153 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6154 * ipa-prop.c (ipa_analyze_call_uses): Update.
6155
6156 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6157
6158 * doc/invoke.texi (SH options): Document missing processor variant
6159 options. Remove references to Hitachi. Undocument deprecated mspace
6160 option.
6161
6162 2014-08-15 Jason Merrill <jason@redhat.com>
6163
6164 * tree.c (type_hash_canon): Uncomment assert.
6165
6166 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6167
6168 * input.h (in_system_header_at): Add comment.
6169
6170 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6171
6172 PR fortran/44054
6173 * diagnostic.c (build_message_string): Make it extern.
6174 * diagnostic.h (build_message_string): Make it extern.
6175
6176 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6177
6178 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6179 load/store from/to non-floating class pseudo.
6180
6181 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6182
6183 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6184
6185 2014-08-15 Richard Biener <rguenther@suse.de>
6186
6187 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6188 (get_constraint_for_ssa_var): Remove dead code.
6189 (get_constraint_for_1): Adjust.
6190 (find_what_var_points_to): Likewise.
6191 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6192
6193 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6194
6195 PR target/61878
6196 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6197 (_mm512_mask_cmpge_epu32_mask): Ditto.
6198 (_mm512_cmpge_epu32_mask): Ditto.
6199 (_mm512_mask_cmpge_epi64_mask): Ditto.
6200 (_mm512_cmpge_epi64_mask): Ditto.
6201 (_mm512_mask_cmpge_epu64_mask): Ditto.
6202 (_mm512_cmpge_epu64_mask): Ditto.
6203 (_mm512_mask_cmple_epi32_mask): Ditto.
6204 (_mm512_cmple_epi32_mask): Ditto.
6205 (_mm512_mask_cmple_epu32_mask): Ditto.
6206 (_mm512_cmple_epu32_mask): Ditto.
6207 (_mm512_mask_cmple_epi64_mask): Ditto.
6208 (_mm512_cmple_epi64_mask): Ditto.
6209 (_mm512_mask_cmple_epu64_mask): Ditto.
6210 (_mm512_cmple_epu64_mask): Ditto.
6211 (_mm512_mask_cmplt_epi32_mask): Ditto.
6212 (_mm512_cmplt_epi32_mask): Ditto.
6213 (_mm512_mask_cmplt_epu32_mask): Ditto.
6214 (_mm512_cmplt_epu32_mask): Ditto.
6215 (_mm512_mask_cmplt_epi64_mask): Ditto.
6216 (_mm512_cmplt_epi64_mask): Ditto.
6217 (_mm512_mask_cmplt_epu64_mask): Ditto.
6218 (_mm512_cmplt_epu64_mask): Ditto.
6219 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6220 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6221 (_mm512_cmpneq_epu32_mask): Ditto.
6222 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6223 (_mm512_cmpneq_epi64_mask): Ditto.
6224 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6225 (_mm512_cmpneq_epu64_mask): Ditto.
6226 (_mm512_castpd_ps): Ditto.
6227 (_mm512_castpd_si512): Ditto.
6228 (_mm512_castps_pd): Ditto.
6229 (_mm512_castps_si512): Ditto.
6230 (_mm512_castsi512_ps): Ditto.
6231 (_mm512_castsi512_pd): Ditto.
6232 (_mm512_castpd512_pd128): Ditto.
6233 (_mm512_castps512_ps128): Ditto.
6234 (_mm512_castsi512_si128): Ditto.
6235 (_mm512_castpd512_pd256): Ditto.
6236 (_mm512_castps512_ps256): Ditto.
6237 (_mm512_castsi512_si256): Ditto.
6238 (_mm512_castpd128_pd512): Ditto.
6239 (_mm512_castps128_ps512): Ditto.
6240 (_mm512_castsi128_si512): Ditto.
6241 (_mm512_castpd256_pd512): Ditto.
6242 (_mm512_castps256_ps512): Ditto.
6243 (_mm512_castsi256_si512): Ditto.
6244 (_mm512_cmpeq_epu32_mask): Ditto.
6245 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6246 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6247 (_mm512_cmpeq_epu64_mask): Ditto.
6248 (_mm512_cmpgt_epu32_mask): Ditto.
6249 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6250 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6251 (_mm512_cmpgt_epu64_mask): Ditto.
6252 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6253 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6254 * config/i386/i386.c (enum ix86_builtins): Add
6255 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6256 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6257 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6258 (bdesc_args): Add __builtin_ia32_si512_256si,
6259 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6260 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6261 __builtin_ia32_pd512_pd.
6262 (ix86_expand_args_builtin): Handle new FTYPEs.
6263 * config/i386/sse.md (castmode): Add 512-bit modes.
6264 (AVX512MODE2P): New.
6265 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6266 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6267
6268 2014-08-15 Richard Biener <rguenther@suse.de>
6269
6270 * fold-const.c (tree_swap_operands_p): Put all constants
6271 last, also strip sign-changing NOPs when considering further
6272 canonicalization. Canonicalize also when optimizing for size.
6273
6274 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6275
6276 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6277 one_match > zero_match case to just before simple_sequence.
6278
6279 2014-08-15 Richard Biener <rguenther@suse.de>
6280
6281 * data-streamer.h (streamer_string_index, string_for_index):
6282 Remove.
6283 * data-streamer-out.c (streamer_string_index): Make static.
6284 * data-streamer-in.c (string_for_index): Likewise.
6285 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6286 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6287
6288 2014-08-15 Richard Biener <rguenther@suse.de>
6289
6290 PR tree-optimization/62031
6291 * tree-data-ref.c (dr_analyze_indices): Do not set
6292 DR_UNCONSTRAINED_BASE.
6293 (dr_may_alias_p): All indirect accesses have to go the
6294 formerly DR_UNCONSTRAINED_BASE path.
6295 * tree-data-ref.h (struct indices): Remove
6296 unconstrained_base member.
6297 (DR_UNCONSTRAINED_BASE): Remove.
6298
6299 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6300
6301 PR middle-end/62092
6302 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6303 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6304 in OMP_CLAUSE_MAP in some outer target region.
6305
6306 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6307
6308 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6309 name_expansion_cache.
6310 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6311 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6312 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6313 (difference_cannot_overflow_p): New parameter. Use affine
6314 expansion for equality check.
6315 (iv_elimination_compare_lt): Pass new argument.
6316
6317 2014-08-14 DJ Delorie <dj@redhat.com>
6318
6319 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6320 variables to the accumulator.
6321
6322 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6323 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6324 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6325 with far-far moves.
6326
6327 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6328 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6329 (umulqihi3_virt): Likewise.
6330 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6331 (umulqihi3_real): Likewise.
6332
6333 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6334
6335 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6336
6337 PR tree-optimization/62091
6338 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6339 function_entry_reached.
6340 (walk_aliased_vdefs): Clear it here.
6341 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6342
6343 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6344
6345 * ipa-utils.h (compare_virtual_tables): Declare.
6346 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6347
6348 2014-08-14 Marek Polacek <polacek@redhat.com>
6349
6350 DR 458
6351 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6352 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6353
6354 2014-08-14 Tom de Vries <tom@codesourcery.com>
6355
6356 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6357
6358 2014-08-14 Tom de Vries <tom@codesourcery.com>
6359
6360 PR rtl-optimization/62004
6361 PR rtl-optimization/62030
6362 * ifcvt.c (rtx_interchangeable_p): New function.
6363 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6364 * emit-rtl.h (mem_attrs_eq_p): Declare.
6365
6366 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6367
6368 * graphite-scop-detection.c:
6369 Add inclusion of cp-tree.h.
6370 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6371 in case they are pointers to object types
6372
6373 2014-08-14 Richard Biener <rguenther@suse.de>
6374
6375 * BASE-VER: Change to 5.0.0
6376
6377 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6378 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6379 Anna Tikhonova <anna.tikhonova@intel.com>
6380 Ilya Tocar <ilya.tocar@intel.com>
6381 Andrey Turetskiy <andrey.turetskiy@intel.com>
6382 Ilya Verbin <ilya.verbin@intel.com>
6383 Kirill Yukhin <kirill.yukhin@intel.com>
6384 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6385
6386 * config/i386/sse.md (define_mode_attr avx512): New.
6387 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6388 V4DI modes.
6389 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6390 (define_mode_attr ssse3_avx2): Ditto.
6391 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6392 (define_mode_attr avx2_avx512bw): New.
6393 (define_mode_attr ssedoublemodelower): New.
6394 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6395 V32HI, V64QI modes.
6396 (define_mode_attr ssebytemode): Allow V8DI modes.
6397 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6398 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6399 (define_mode_attr ssePSmode2): New.
6400 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6401 V16HI, V32HI modes.
6402 (define_mode_attr dbpsadbwmode): New.
6403 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6404 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6405 (vi8_sse4_1_avx2_avx512): New.
6406 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6407 mode attribute.
6408 (define_mode_attr blendbits): Move before its immediate use.
6409
6410 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6411 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6412 Anna Tikhonova <anna.tikhonova@intel.com>
6413 Ilya Tocar <ilya.tocar@intel.com>
6414 Andrey Turetskiy <andrey.turetskiy@intel.com>
6415 Ilya Verbin <ilya.verbin@intel.com>
6416 Kirill Yukhin <kirill.yukhin@intel.com>
6417 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6418
6419 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6420 * config/i386/subst.md
6421 (define_mode_iterator SUBST_V): Update.
6422 (define_mode_iterator SUBST_A): Ditto.
6423 (define_subst_attr "mask_operand7"): New.
6424 (define_subst_attr "mask_operand10"): New.
6425 (define_subst_attr "mask_operand_arg34") : New.
6426 (define_subst_attr "mask_expand_op3"): New.
6427 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6428 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6429 (define_subst_attr "mask_avx512vl_condition"): New.
6430 (define_subst_attr "round_mask_operand4"): Ditto.
6431 (define_subst_attr "round_mask_scalar_op3"): Delete.
6432 (define_subst_attr "round_mask_op4"): New.
6433 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6434 V16SImode.
6435 (define_subst_attr "round_modev8sf_condition"): New.
6436 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6437 <MODE>mode.
6438 (define_subst_attr "round_saeonly_mask_operand4"): New.
6439 (define_subst_attr "round_saeonly_mask_op4"): New.
6440 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6441 V8DImode, V16SImode.
6442 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6443 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6444 (define_subst_attr "mask_expand4_args"): New.
6445 (define_subst "mask_expand4"): New.
6446
6447 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6449 Anna Tikhonova <anna.tikhonova@intel.com>
6450 Ilya Tocar <ilya.tocar@intel.com>
6451 Andrey Turetskiy <andrey.turetskiy@intel.com>
6452 Ilya Verbin <ilya.verbin@intel.com>
6453 Kirill Yukhin <kirill.yukhin@intel.com>
6454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6455
6456 * config/i386/i386.md
6457 (define_attr "isa"): Add avx512bw,noavx512bw.
6458 (define_attr "enabled"): Ditto.
6459 (define_split): Add 32/64-bit mask logic.
6460 (define_insn "*k<logic>qi"): New.
6461 (define_insn "*k<logic>hi"): New.
6462 (define_insn "*anddi_1"): Add mask version.
6463 (define_insn "*andsi_1"): Ditto.
6464 (define_insn "*<code><mode>_1"): Ditto.
6465 (define_insn "*<code>hi_1"): Ditto.
6466 (define_insn "kxnor<mode>"): New.
6467 (define_insn "kunpcksi"): New.
6468 (define_insn "kunpckdi"): New.
6469 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6470 (define_insn "*one_cmplhi2_1"): Ditto.
6471
6472 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6473 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6474 Anna Tikhonova <anna.tikhonova@intel.com>
6475 Ilya Tocar <ilya.tocar@intel.com>
6476 Andrey Turetskiy <andrey.turetskiy@intel.com>
6477 Ilya Verbin <ilya.verbin@intel.com>
6478 Kirill Yukhin <kirill.yukhin@intel.com>
6479 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6480
6481 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6482 V32HImode.
6483
6484 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6485 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6486 Anna Tikhonova <anna.tikhonova@intel.com>
6487 Ilya Tocar <ilya.tocar@intel.com>
6488 Andrey Turetskiy <andrey.turetskiy@intel.com>
6489 Ilya Verbin <ilya.verbin@intel.com>
6490 Kirill Yukhin <kirill.yukhin@intel.com>
6491 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6492
6493 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6494 registers.
6495 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6496 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6497 xmm/ymm16+ when availble.
6498 * config/i386/i386.h
6499 (HARD_REGNO_NREGS): Add mask regs.
6500 (VALID_AVX512F_REG_MODE): Ditto.
6501 (VALID_AVX512F_REG_MODE) : Define.
6502 (VALID_MASK_AVX512BW_MODE): Ditto.
6503 (reg_class) (MASK_REG_P(X)): Define.
6504 * config/i386/i386.md: Do not split long moves with mask register,
6505 use kmovb if avx512bw is availible.
6506 (movdi_internal): Handle mask registers.
6507
6508 2014-08-14 Richard Biener <rguenther@suse.de>
6509
6510 PR tree-optimization/62081
6511 * tree-ssa-loop.c (pass_fix_loops): New pass.
6512 (pass_tree_loop::gate): Do not fixup loops here.
6513 * tree-pass.h (make_pass_fix_loops): Declare.
6514 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6515
6516 2014-08-14 Richard Biener <rguenther@suse.de>
6517
6518 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6519 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6520
6521 2014-08-14 Richard Biener <rguenther@suse.de>
6522
6523 PR tree-optimization/62090
6524 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6525 (fold_builtin_2): Do not fold sprintf.
6526 (fold_builtin_3): Likewise.
6527 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6528 moved from builtins.c.
6529 (gimple_fold_builtin): Fold sprintf.
6530
6531 2014-08-14 Richard Biener <rguenther@suse.de>
6532
6533 PR rtl-optimization/62079
6534 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6535 run cleanup_cfg.
6536
6537 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6538
6539 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6540 current_function_decl.
6541
6542 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6543
6544 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6545 cgraph_function_node to cgraph_node::function_symbol
6546 refactoring.
6547
6548 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6549
6550 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6551 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6552
6553 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6554
6555 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6556 warning.
6557
6558 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6559
6560 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6561 generator.
6562
6563 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6564
6565 PR target/62025
6566 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6567 any registers that are used in mem_insn.
6568
6569 2014-08-12 Steve Ellcey <sellcey@mips.com>
6570
6571 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6572
6573 2014-08-12 Steve Ellcey <sellcey@mips.com>
6574
6575 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6576 (MULTILIB_DIRNAMES): Ditto.
6577 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6578 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6579 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6580 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6581 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6582 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6583
6584 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6585
6586 PR target/61413
6587 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6588 of __ARM_SIZEOF_WCHAR_T.
6589
6590 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6591
6592 PR target/62098
6593 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6594 Remove unnecessary attributes.
6595
6596 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6597
6598 * internal-fn.c (init_internal_fns): Fix off-by-one.
6599
6600 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6601 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6602 Anna Tikhonova <anna.tikhonova@intel.com>
6603 Ilya Tocar <ilya.tocar@intel.com>
6604 Andrey Turetskiy <andrey.turetskiy@intel.com>
6605 Ilya Verbin <ilya.verbin@intel.com>
6606 Kirill Yukhin <kirill.yukhin@intel.com>
6607 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6608
6609 * config/i386/i386.c (standard_sse_constant_opcode): Use
6610 vpxord/vpternlog if avx512 is availible.
6611
6612 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6613
6614 PR middle-end/62103
6615 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6616 bitfields, that is when size doesn't match the size of type or the
6617 size of the constructor.
6618
6619 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6620
6621 * config/rs6000/constraints.md (wh constraint): New constraint,
6622 for FP registers if direct move is available.
6623 (wi constraint): New constraint, for VSX/FP registers that can
6624 handle 64-bit integers.
6625 (wj constraint): New constraint for VSX/FP registers that can
6626 handle 64-bit integers for direct moves.
6627 (wk constraint): New constraint for VSX/FP registers that can
6628 handle 64-bit doubles for direct moves.
6629 (wy constraint): Make documentation match implementation.
6630
6631 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6632 scalar_in_vmx_p field to simplify tests of whether SFmode or
6633 DFmode can go in the Altivec registers.
6634 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6635 (rs6000_setup_reg_addr_masks): Likewise.
6636 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6637 field, and wh/wi/wj/wk constraints.
6638 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6639 the wh/wi/wj/wk constraints.
6640 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6641 upper registers, prefer VSX registers unless the operation is a
6642 memory operation with REG+OFFSET addressing.
6643
6644 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6645 DImode. Change SFmode to use ww constraint instead of d to allow
6646 SF registers in the upper registers.
6647 (VSr2): Likewise.
6648 (VSr3): Likewise.
6649 (VSr5): Fix thinko in comment.
6650 (VSa): New mode attribute that is an alternative to wa, that
6651 returns the VSX register class that a mode can go in, but may not
6652 be the preferred register class.
6653 (VS_64dm): New mode attribute for appropriate register classes for
6654 referencing 64-bit elements of vectors for direct moves and normal
6655 moves.
6656 (VS_64reg): Likewise.
6657 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6658 register allocator to only registers the data type can handle.
6659 (vsx_le_perm_load_<mode>): Likewise.
6660 (vsx_le_perm_store_<mode>): Likewise.
6661 (vsx_xxpermdi2_le_<mode>): Likewise.
6662 (vsx_xxpermdi4_le_<mode>): Likewise.
6663 (vsx_lxvd2x2_le_<mode>): Likewise.
6664 (vsx_lxvd2x4_le_<mode>): Likewise.
6665 (vsx_stxvd2x2_le_<mode>): Likewise.
6666 (vsx_add<mode>3): Likewise.
6667 (vsx_sub<mode>3): Likewise.
6668 (vsx_mul<mode>3): Likewise.
6669 (vsx_div<mode>3): Likewise.
6670 (vsx_tdiv<mode>3_internal): Likewise.
6671 (vsx_fre<mode>2): Likewise.
6672 (vsx_neg<mode>2): Likewise.
6673 (vsx_abs<mode>2): Likewise.
6674 (vsx_nabs<mode>2): Likewise.
6675 (vsx_smax<mode>3): Likewise.
6676 (vsx_smin<mode>3): Likewise.
6677 (vsx_sqrt<mode>2): Likewise.
6678 (vsx_rsqrte<mode>2): Likewise.
6679 (vsx_tsqrt<mode>2_internal): Likewise.
6680 (vsx_fms<mode>4): Likewise.
6681 (vsx_nfma<mode>4): Likewise.
6682 (vsx_eq<mode>): Likewise.
6683 (vsx_gt<mode>): Likewise.
6684 (vsx_ge<mode>): Likewise.
6685 (vsx_eq<mode>_p): Likewise.
6686 (vsx_gt<mode>_p): Likewise.
6687 (vsx_ge<mode>_p): Likewise.
6688 (vsx_xxsel<mode>): Likewise.
6689 (vsx_xxsel<mode>_uns): Likewise.
6690 (vsx_copysign<mode>3): Likewise.
6691 (vsx_float<VSi><mode>2): Likewise.
6692 (vsx_floatuns<VSi><mode>2): Likewise.
6693 (vsx_fix_trunc<mode><VSi>2): Likewise.
6694 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6695 (vsx_x<VSv>r<VSs>i): Likewise.
6696 (vsx_x<VSv>r<VSs>ic): Likewise.
6697 (vsx_btrunc<mode>2): Likewise.
6698 (vsx_b2trunc<mode>2): Likewise.
6699 (vsx_floor<mode>2): Likewise.
6700 (vsx_ceil<mode>2): Likewise.
6701 (vsx_<VS_spdp_insn>): Likewise.
6702 (vsx_xscvspdp): Likewise.
6703 (vsx_xvcvspuxds): Likewise.
6704 (vsx_float_fix_<mode>2): Likewise.
6705 (vsx_set_<mode>): Likewise.
6706 (vsx_extract_<mode>_internal1): Likewise.
6707 (vsx_extract_<mode>_internal2): Likewise.
6708 (vsx_extract_<mode>_load): Likewise.
6709 (vsx_extract_<mode>_store): Likewise.
6710 (vsx_splat_<mode>): Likewise.
6711 (vsx_xxspltw_<mode>): Likewise.
6712 (vsx_xxspltw_<mode>_direct): Likewise.
6713 (vsx_xxmrghw_<mode>): Likewise.
6714 (vsx_xxmrglw_<mode>): Likewise.
6715 (vsx_xxsldwi_<mode>): Likewise.
6716 (vsx_xscvdpspn): Tighten constraints to only use register classes
6717 the types use.
6718 (vsx_xscvspdpn): Likewise.
6719 (vsx_xscvdpspn_scalar): Likewise.
6720
6721 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6722 wj, and wk constraints.
6723 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6724 general purpose registers.
6725
6726 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6727 direct moves.
6728 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6729 DImode instead of wm. Use wk constraint for direct move of DFmode
6730 instead of wm.
6731 (extendsidi2_lfiwax): Likewise.
6732 (lfiwax): Likewise.
6733 (lfiwzx): Likewise.
6734 (movdi_internal64): Likewise.
6735
6736 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6737 wk constraints. Make the wy constraint documentation match them
6738 implementation.
6739
6740 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6741
6742 Replacement of isl_int by isl_val
6743 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6744 (compute_bounds_for_param): use isl_val instead of isl_int
6745 (compute_bounds_for_loop): likewise
6746 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6747 (build_linearized_memory_access): use isl_val instead of isl_int
6748 (pdr_stride_in_loop): likewise
6749 * graphite-optimize-isl.c:
6750 (getPrevectorMap): use isl_val instead of isl_int
6751 * graphite-poly.c:
6752 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6753 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6754 (extern the_isl_ctx): declare
6755 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6756 (extract_affine_gmp): likewise
6757 (wrap): likewise
6758 (build_loop_iteration_domains): likewise
6759 (add_param_constraints): likewise
6760
6761 2014-08-11 Richard Biener <rguenther@suse.de>
6762
6763 PR tree-optimization/62075
6764 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6765 handle uses in patterns.
6766
6767 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6768 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6769 Anna Tikhonova <anna.tikhonova@intel.com>
6770 Ilya Tocar <ilya.tocar@intel.com>
6771 Andrey Turetskiy <andrey.turetskiy@intel.com>
6772 Ilya Verbin <ilya.verbin@intel.com>
6773 Kirill Yukhin <kirill.yukhin@intel.com>
6774 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6775
6776 * common/config/i386/i386-common.c
6777 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6778 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6779 (ix86_handle_option): Handle OPT_mavx512vl.
6780 * config/i386/cpuid.h (bit_AVX512VL): Define.
6781 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6782 set -mavx512vl accordingly.
6783 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6784 OPTION_MASK_ISA_AVX512VL.
6785 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6786 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6787 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6788 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6789 * config/i386/i386.h (TARGET_AVX512VL): Define.
6790 (TARGET_AVX512VL_P(x)): Ditto.
6791 * config/i386/i386.opt: Add mavx512vl.
6792
6793 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6794
6795 PR tree-optimization/62073
6796 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6797 a basic block.
6798
6799 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6800 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6801 Anna Tikhonova <anna.tikhonova@intel.com>
6802 Ilya Tocar <ilya.tocar@intel.com>
6803 Andrey Turetskiy <andrey.turetskiy@intel.com>
6804 Ilya Verbin <ilya.verbin@intel.com>
6805 Kirill Yukhin <kirill.yukhin@intel.com>
6806 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6807
6808 * common/config/i386/i386-common.c
6809 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6810 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6811 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6812 (ix86_handle_option): Handle OPT_mavx512bw.
6813 * config/i386/cpuid.h (bit_AVX512BW): Define.
6814 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6815 set -mavx512bw accordingly.
6816 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6817 OPTION_MASK_ISA_AVX512BW.
6818 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6819 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6820 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6821 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6822 * config/i386/i386.h (TARGET_AVX512BW): Define.
6823 (TARGET_AVX512BW_P(x)): Ditto.
6824 * config/i386/i386.opt: Add mavx512bw.
6825
6826 2014-08-11 Richard Biener <rguenther@suse.de>
6827
6828 PR tree-optimization/62070
6829 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6830 Remove SSA checking.
6831
6832 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6833
6834 * asan.c (asan_check_flags): New enum.
6835 (build_check_stmt_with_calls): Removed function.
6836 (build_check_stmt): Split inlining logic to
6837 asan_expand_check_ifn.
6838 (instrument_derefs): Rename parameter.
6839 (instrument_mem_region_access): Rename parameter.
6840 (instrument_strlen_call): Likewise.
6841 (asan_expand_check_ifn): New function.
6842 (asan_instrument): Remove old code.
6843 (pass_sanopt::execute): Change handling of
6844 asan-instrumentation-with-call-threshold.
6845 (asan_clear_shadow): Fix formatting.
6846 (asan_function_start): Likewise.
6847 (asan_emit_stack_protection): Likewise.
6848 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6849 Update description.
6850 * internal-fn.c (expand_ASAN_CHECK): New function.
6851 * internal-fn.def (ASAN_CHECK): New internal function.
6852 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6853 Update description.
6854 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6855 * tree.c: Small comment fix.
6856
6857 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6858
6859 * gimple.c (gimple_call_fnspec): Support internal functions.
6860 (gimple_call_return_flags): Use const.
6861 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6862 * internal-fn.def: Add fnspec information.
6863 * internal-fn.h (internal_fn_fnspec): New function.
6864 (init_internal_fns): Declare new function.
6865 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6866 (init_internal_fns): New function.
6867 * tree-core.h: Update macro call.
6868 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6869
6870 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6871
6872 * lto-streamer.h (struct output_block::symbol): Change from
6873 struct symtab_node to plain symtab_node.
6874 (referenced_from_this_partition_p): Change first parameter
6875 from struct symtab_node to plain symtab_node.
6876
6877 2014-08-10 Marek Polacek <polacek@redhat.com>
6878
6879 PR c/51849
6880 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6881
6882 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6883
6884 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6885 DECL correctly; do not give up on types in static storage.
6886
6887 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6888
6889 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6890
6891 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6892
6893 * graphite-isl-ast-to-gimple.c:
6894 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6895
6896 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6897
6898 2014-08-08 Guozhi Wei <carrot@google.com>
6899
6900 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6901
6902 2014-08-08 Cary Coutant <ccoutant@google.com>
6903
6904 * dwarf2out.c (get_skeleton_type_unit): Remove.
6905 (output_skeleton_debug_sections): Remove skeleton type units.
6906 (output_comdat_type_unit): Likewise.
6907 (dwarf2out_finish): Likewise.
6908
6909 2014-08-07 Yi Yang <ahyangyi@google.com>
6910
6911 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6912
6913 2014-08-08 Richard Biener <rguenther@suse.de>
6914
6915 * lto-streamer.h (struct lto_input_block): Make it a class
6916 with a constructor.
6917 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6918 (struct lto_function_header, struct lto_simple_header,
6919 struct lto_simple_header_with_strings,
6920 struct lto_decl_header, struct lto_function_header): Make
6921 a simple inheritance hieararchy. Remove unused fields.
6922 (struct lto_asm_header): Remove.
6923 * lto-streamer-out.c (produce_asm): Adjust.
6924 (lto_output_toplevel_asms): Likewise.
6925 (produce_asm_for_decls): Likewise.
6926 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6927 * data-streamer-in.c (string_for_index): Likewise.
6928 * ipa-inline-analysis.c (inline_read_section): Likewise.
6929 * ipa-prop.c (ipa_prop_read_section): Likewise.
6930 (read_replacements_section): Likewise.
6931 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6932 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6933 (lto_destroy_simple_input_block): Likewise.
6934 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6935 (lto_input_toplevel_asms): Likewise.
6936
6937 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6938 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6939 Anna Tikhonova <anna.tikhonova@intel.com>
6940 Ilya Tocar <ilya.tocar@intel.com>
6941 Andrey Turetskiy <andrey.turetskiy@intel.com>
6942 Ilya Verbin <ilya.verbin@intel.com>
6943 Kirill Yukhin <kirill.yukhin@intel.com>
6944 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6945
6946 * common/config/i386/i386-common.c
6947 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6948 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6949 (ix86_handle_option): Handle OPT_mavx512dq.
6950 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6951 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6952 set -mavx512dq accordingly.
6953 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6954 OPTION_MASK_ISA_AVX512DQ.
6955 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6956 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6957 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6958 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6959 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6960 (TARGET_AVX512DQ_P(x)): Ditto.
6961 * config/i386/i386.opt: Add mavx512dq.
6962
6963 2014-08-08 Richard Biener <rguenther@suse.de>
6964
6965 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6966 target_percent, target_percent_s): Export.
6967 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6968 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6969 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6970 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6971 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6972 Move to gimple-fold.c.
6973 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6974 strcat and strcpy.
6975 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6976 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6977 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6978 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6979 (rewrite_call_expr_array): Remove.
6980 (fold_builtin_sprintf_chk): Likewise.
6981 (fold_builtin_snprintf_chk): Likewise.
6982 (fold_builtin_varargs): Remove handling of sprintf_chk,
6983 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6984 (gimple_fold_builtin_sprintf_chk): Remove.
6985 (gimple_fold_builtin_snprintf_chk): Likewise.
6986 (gimple_fold_builtin_varargs): Likewise.
6987 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6988 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6989 * gimple.c (gimple_seq_add_seq_without_update): New function.
6990 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6991 * gimple-fold.c: Include output.h.
6992 (gsi_replace_with_seq_vops): New function, split out from ...
6993 (gimplify_and_update_call_from_tree): ... here.
6994 (replace_call_with_value): New function.
6995 (replace_call_with_call_and_fold): Likewise.
6996 (var_decl_component_p): Moved from builtins.c.
6997 (gimple_fold_builtin_memory_op): Moved from builtins.c
6998 fold_builtin_memory_op and rewritten to GIMPLE.
6999 (gimple_fold_builtin_memset): Likewise.
7000 (gimple_fold_builtin_strcpy): Likewise.
7001 (gimple_fold_builtin_strncpy): Likewise.
7002 (gimple_fold_builtin_strcat): Likewise.
7003 (gimple_fold_builtin_fputs): Likewise.
7004 (gimple_fold_builtin_memory_chk): Likewise.
7005 (gimple_fold_builtin_stxcpy_chk): Likewise.
7006 (gimple_fold_builtin_stxncpy_chk): Likewise.
7007 (gimple_fold_builtin_snprintf_chk): Likewise.
7008 (gimple_fold_builtin_sprintf_chk): Likewise.
7009 (gimple_fold_builtin_strlen): New function.
7010 (gimple_fold_builtin_with_strlen): New function split out from
7011 gimple_fold_builtin.
7012 (gimple_fold_builtin): Change signature and handle
7013 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7014 here. Call gimple_fold_builtin_with_strlen.
7015 (gimple_fold_call): Adjust.
7016
7017 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7018
7019 * calls.c (precompute_arguments): Check
7020 promoted_for_signed_and_unsigned_p and set the promoted mode.
7021 (promoted_for_signed_and_unsigned_p): New function.
7022 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7023 and set the promoted mode.
7024 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7025 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7026 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7027
7028
7029 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7030
7031 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7032 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7033 (expand_call): Likewise.
7034 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7035 to get promoted mode.
7036 * combine.c (record_promoted_value): Skip > 0 comparison with
7037 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7038 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7039 of SUBREG_PROMOTED_UNSIGNED_P.
7040 (convert_modes): Likewise.
7041 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7042 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7043 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7044 SUBREG_PROMOTED_UNSIGNED_SET.
7045 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7046 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7047 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7048 SUBREG_PROMOTED_SET.
7049 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7050 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7051 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7052 of SUBREG_PROMOTED_UNSIGNED_P.
7053 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7054 (SUBREG_PROMOTED_SET): New define.
7055 (SUBREG_PROMOTED_GET): Likewise.
7056 (SUBREG_PROMOTED_SIGN): Likewise.
7057 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7058 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7059 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7060 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7061 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7062 (nonzero_bits1): Skip > 0 comparison with the results as
7063 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7064 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7065 of !SUBREG_PROMOTED_UNSIGNED_P.
7066 * simplify-rtx.c (simplify_unary_operation_1): Use new
7067 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7068 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7069 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7070 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7071
7072 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7073
7074 * ipa-devirt.c: Include gimple-pretty-print.h
7075 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7076 further tests.
7077 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7078 (get_polymorphic_call_info): Fix return value
7079 (type_change_info): New sturcture based on ipa-prop
7080 variant.
7081 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7082 based on ipa-prop variant.
7083 (extr_type_from_vtbl_ptr_store): New function
7084 based on ipa-prop variant.
7085 (record_known_type): New function.
7086 (check_stmt_for_type_change): New function.
7087 (get_dynamic_type): New function.
7088 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7089 * tree-ssa-pre.c: ipa-utils.h
7090 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7091 machinery; sanity check with ipa-prop devirtualization.
7092 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7093 polymorphic flag.
7094
7095 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7096
7097 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7098 * alias.c, cfgexpand.c, cgraphbuild.c,
7099 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7100 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7101 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7102 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7103 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7104 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7105 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7106 dse.c, except.c, gengtype.c, gimple-expr.c,
7107 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7108 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7109 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7110 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7111 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7112 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7113 pointer-set.h.
7114 * pointer-set.c: Remove file.
7115 * pointer-set.h: Remove file.
7116
7117 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7118
7119 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7120 * config/arm/types.md (f_sels, f_seld): Delete.
7121
7122 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7123
7124 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7125 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7126 (aarch64_movdi_<mode>high): Likewise.
7127 (aarch64_mov<mode>high_di): Likewise.
7128 (aarch64_movdi_<mode>low): Likewise.
7129 (aarch64_mov<mode>low_di): Likewise.
7130 (aarch64_movtilow_tilow): Likewise.
7131 Add comment explaining usage of fp,simd attributes and of
7132 TARGET_FLOAT and TARGET_SIMD.
7133
7134 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7135 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7136
7137 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7138 Use MOVN when one of the half-words is 0xffff.
7139
7140 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7141
7142 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7143
7144 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7145
7146 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7147 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7148 (rfs_str): String corresponding to RFS_* constants.
7149 (rank_for_schedule_stats_t): New typedef.
7150 (rank_for_schedule_stats): New static variable.
7151 (rfs_result): New static function.
7152 (rank_for_schedule): Track statistics for deciding heuristics.
7153 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7154 static functions.
7155 (ready_sort): Use them for debug printouts.
7156 (schedule_block): Init statistics state. Print statistics on
7157 rank_for_schedule decisions.
7158
7159 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7160
7161 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7162
7163 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7164
7165 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7166 constraint.
7167
7168 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7169
7170 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7171 function to not conflict.
7172 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7173 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7174 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7175 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7176 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7177 of pointer_map.
7178
7179 2014-08-07 Marek Polacek <polacek@redhat.com>
7180
7181 * fold-const.c (fold_binary_loc): Add folding of
7182 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7183
7184 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7185
7186 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7187 instead of type size.
7188 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7189
7190 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7191
7192 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7193 (*thumb1_movqi_insn): Likewise.
7194 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7195
7196 2014-08-07 Tom de Vries <tom@codesourcery.com>
7197
7198 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7199 (glibc_2_11_or_earlier): Remove effective-target keywords.
7200
7201 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7202
7203 * config/arm/arm.c (bdesc_2arg): Fix typo.
7204 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7205
7206 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7207
7208 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7209
7210 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7211
7212 PR debug/61923
7213 * haifa-sched.c (advance_one_cycle): Fix dump.
7214 (schedule_block): Don't advance cycle if we are already at the
7215 beginning of the cycle.
7216
7217 2014-08-06 Martin Jambor <mjambor@suse.cz>
7218
7219 PR ipa/61393
7220 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7221
7222 2014-08-06 Richard Biener <rguenther@suse.de>
7223
7224 PR lto/62034
7225 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7226 SCCs here.
7227 (lto_input_tree): Pop SCCs here.
7228
7229 2014-08-06 Richard Biener <rguenther@suse.de>
7230
7231 PR tree-optimization/61320
7232 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7233 handle misaligned loads.
7234
7235 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7236
7237 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7238 (aarch64_expand_vec_perm_const): Check for dup before zip.
7239
7240 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7241
7242 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7243 CONST_INT_P instead of GET_CODE and compare.
7244 (aarch64_select_cc_mode): Likewise.
7245 (aarch64_print_operand): Likewise.
7246 (aarch64_rtx_costs): Likewise.
7247 (aarch64_simd_valid_immediate): Likewise.
7248 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7249 (aarch64_simd_emit_pair_result_insn): Likewise.
7250
7251 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7252
7253 * gdbhooks.py (find_gcc_source_dir): New helper function.
7254 (class PassNames): New class, locating and parsing passes.def.
7255 (class BreakOnPass): New command "break-on-pass".
7256
7257 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7258
7259 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7260 getting olde.
7261
7262 2014-08-05 Richard Biener <rguenther@suse.de>
7263
7264 PR rtl-optimization/61672
7265 * emit-rtl.h (mem_attrs_eq_p): Declare.
7266 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7267 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7268 * cfgcleanup.c (merge_memattrs): Likewise.
7269 Include emit-rtl.h.
7270
7271 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7272
7273 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7274 rather than singleton vectors.
7275 (vqdmlsls_lane_s32): Likewise.
7276
7277 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7278
7279 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7280 Use VSDQ_HSI mode iterator.
7281 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7282 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7283 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7284 Use BUILTIN_VDQHS macro.
7285 (sqrdmulh_laneq): Likewise.
7286 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7287 (vqdmlals_laneq_s32): Likewise.
7288 (vqdmlslh_laneq_s16): Likewise.
7289 (vqdmlsls_laneq_s32): Likewise.
7290 (vqdmulhh_laneq_s16): Likewise.
7291 (vqdmulhs_laneq_s32): Likewise.
7292 (vqrdmulhh_laneq_s16): Likewise.
7293 (vqrdmulhs_laneq_s32): Likewise.
7294
7295 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7296
7297 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7298 (vmuld_laneq_f64): Likewise.
7299 (vmuls_laneq_f32): Likewise.
7300 (vmul_n_f64): Likewise.
7301 (vmuld_lane_f64): Reimplement in C.
7302 (vmuls_lane_f32): Likewise.
7303
7304 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7305
7306 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7307 to reservation.
7308 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7309
7310 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7311
7312 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7313 (rbitsi2): Likewise.
7314 (*arm_rev): Set predicable and predicable_short_it attributes.
7315
7316 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7317
7318 * convert.c (convert_to_integer): Guard transformation to lrint by
7319 -fno-math-errno.
7320
7321 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7322
7323 * config/aarch64/aarch64-builtins.c
7324 (aarch64_simd_builtin_type_mode): Delete.
7325 (v8qi_UP): Remap to V8QImode.
7326 (v4hi_UP): Remap to V4HImode.
7327 (v2si_UP): Remap to V2SImode.
7328 (v2sf_UP): Remap to V2SFmode.
7329 (v1df_UP): Remap to V1DFmode.
7330 (di_UP): Remap to DImode.
7331 (df_UP): Remap to DFmode.
7332 (v16qi_UP):V16QImode.
7333 (v8hi_UP): Remap to V8HImode.
7334 (v4si_UP): Remap to V4SImode.
7335 (v4sf_UP): Remap to V4SFmode.
7336 (v2di_UP): Remap to V2DImode.
7337 (v2df_UP): Remap to V2DFmode.
7338 (ti_UP): Remap to TImode.
7339 (ei_UP): Remap to EImode.
7340 (oi_UP): Remap to OImode.
7341 (ci_UP): Map to CImode.
7342 (xi_UP): Remap to XImode.
7343 (si_UP): Remap to SImode.
7344 (sf_UP): Remap to SFmode.
7345 (hi_UP): Remap to HImode.
7346 (qi_UP): Remap to QImode.
7347 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7348 (VAR1): Build builtin name.
7349 (aarch64_init_simd_builtins): Remove dead code.
7350
7351 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7352
7353 * graphite-isl-ast-to-gimple.c:
7354 (set_options): New function.
7355 (scop_to_isl_ast): Add calling of set_options.
7356
7357 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7358
7359 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7360 (analyze_iv_to_split_insn): Don't initialize them.
7361 (get_ivts_expr): Removed.
7362 (allocate_basic_variable, insert_base_initialization): Use
7363 SET_SRC instead of *get_ivts_expr.
7364 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7365
7366 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7367
7368 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7369 (translate_isl_ast_for_loop): Add checking of the
7370 flag_loop_parallelize_all.
7371 (ast_build_before_for): New function.
7372 (scop_to_isl_ast): Add checking of the
7373 flag_loop_parallelize_all.
7374 * graphite-dependences.c: Move the defenition of the
7375 scop_get_dependences from graphite-optimize-isl.c to this file.
7376 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7377 (carries_deps): Add checking of the x's value.
7378 * graphite-optimize-isl.c: Move the defenition of the
7379 scop_get_dependences to graphite-dependences.c.
7380 * graphite-poly.h: Add declarations of scop_get_dependences
7381 and carries_deps.
7382
7383 2014-08-04 Rohit <rohitarulraj@freescale.com>
7384
7385 PR target/60102
7386 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7387 names.
7388 (alt_reg_names): Likewise.
7389 (rs6000_dwarf_register_span): For SPE high registers, replace
7390 dwarf register numbers with GCC hard register numbers.
7391 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7392 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7393 register number for the corresponding GCC hard register number.
7394 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7395 newly added GCC hard register numbers for SPE high registers.
7396 (DWARF_FRAME_REGISTERS): Likewise.
7397 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7398 (DWARF_FRAME_REGNUM): Likewise.
7399 (FIXED_REGISTERS): Likewise.
7400 (CALL_USED_REGISTERS): Likewise.
7401 (CALL_REALLY_USED_REGISTERS): Likewise.
7402 (REG_ALLOC_ORDER): Likewise.
7403 (enum reg_class): Likewise.
7404 (REG_CLASS_NAMES): Likewise.
7405 (REG_CLASS_CONTENTS): Likewise.
7406 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7407
7408 2014-08-04 Richard Biener <rguenther@suse.de>
7409
7410 * gimple-fold.h (gimple_fold_builtin): Remove.
7411 * gimple-fold.c (gimple_fold_builtin): Make static.
7412 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7413 fold_stmt, not gimple_fold_builtin.
7414
7415 2014-08-04 Martin Liska <mliska@suse.cz>
7416
7417 * cgraph.h (csi_end_p): Removed.
7418 (csi_next): Likewise.
7419 (csi_node): Likewise.
7420 (csi_start): Likewise.
7421 (cgraph_node_in_set_p): Likewise.
7422 (cgraph_node_set_size): Likewise.
7423 (vsi_end_p): Likewise.
7424 (vsi_next): Likewise.
7425 (vsi_node): Likewise.
7426 (vsi_start): Likewise.
7427 (varpool_node_set_size): Likewise.
7428 (cgraph_node_set_nonempty_p): Likewise.
7429 (varpool_node_set_nonempty_p): Likewise.
7430 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7431 cgraph_node_set.
7432 * ipa-inline-transform.c: Likewise.
7433 * ipa-utils.c (cgraph_node_set_new): Removed.
7434 (cgraph_node_set_add): Likewise.
7435 (cgraph_node_set_remove): Likewise.
7436 (cgraph_node_set_find): Likewise.
7437 (dump_cgraph_node_set): Likewise.
7438 (debug_cgraph_node_set): Likewise.
7439 (free_cgraph_node_set): Likewise.
7440 (varpool_node_set_new): Likewise.
7441 (varpool_node_set_add): Likewise.
7442 (varpool_node_set_remove): Likewise.
7443 (varpool_node_set_find): Likewise.
7444 (dump_varpool_node_set): Likewise.
7445 (free_varpool_node_set): Likewise.
7446 (debug_varpool_node_set): Likewise.
7447 * tree-emutls.c (struct tls_var_data):
7448 (emutls_index): Removed.
7449 (emutls_decl): Likewise.
7450 (gen_emutls_addr): Function implementation uses newly added
7451 hash_map<varpool_node *, tls_var_data>.
7452 (clear_access_vars): Likewise.
7453 (create_emultls_var): Likewise.
7454 (ipa_lower_emutls): Likewise.
7455 (reset_access): New function.
7456
7457 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7458
7459 * config/i386/i386.c (ix86_option_override_internal): Add
7460 PTA_RDRND and PTA_MOVBE for bdver4.
7461
7462 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7463 James Greenhalgh <james.greenhalgh@arm.com>
7464
7465 * doc/md.texi (clrsb): Document.
7466 (clz): Change reference to x into operand 1.
7467 (ctz): Likewise.
7468 (popcount): Likewise.
7469
7470 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7471
7472 PR target/61713
7473 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7474 move to subtarget in serial version if result is ignored.
7475
7476 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7477 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7478
7479 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7480 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7481 (sched_analyze_insn): Update use of try_group_insn to
7482 sched_macro_fuse_insns.
7483 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7484 arguments that are not conditional jumps.
7485
7486 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7487
7488 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7489 family information. Handle BTVER2 cpu with cpuid family value.
7490
7491 2014-08-04 Tom de Vries <tom@codesourcery.com>
7492
7493 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7494 (glibc_2_11_or_earlier): Document effective-target keywords.
7495
7496 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7497
7498 * ipa-devirt.c (odr_type_warn_count): Add type.
7499 (possible_polymorphic_call_targets): Set it.
7500 (ipa_devirt): Use it.
7501
7502 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7503
7504 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7505 Document.
7506 * ipa-devirt.c: Include hash-map.h
7507 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7508 (clear_speculation): Break out of ...
7509 (get_class_context): ... here; speed up handling obviously useless
7510 speculations.
7511 (odr_type_warn_count, decl_warn_count): New structures.
7512 (final_warning_record): New structure.
7513 (final_warning_records): New static variable.
7514 (possible_polymorphic_call_targets): Cleanup handling of
7515 speculative info; do not build speculation when user do not care;
7516 record info about warnings when asked for.
7517 (add_decl_warning): New function.
7518 (type_warning_cmp): New function.
7519 (decl_warning_cmp): New function.
7520 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7521 (gate): Enable pass when warnings are requested.
7522 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7523 options.
7524
7525 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7526
7527 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7528 Fix cast.
7529 (hash_map::remove): New method.
7530 (hash_map::traverse): New method.
7531 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7532 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7533 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7534 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7535 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7536 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7537 pointer_map.
7538
7539 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7540
7541 * hash-set.h: new File.
7542 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7543 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7544 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7545 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7546 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7547 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7548 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7549 varpool.c: Use hash_set instead of pointer_set.
7550
7551 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7552
7553 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7554
7555 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7556
7557 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7558 for frame access when strict_p is false.
7559
7560 2014-08-01 Renlin Li <renlin.li@arm.com>
7561 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7562
7563 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7564 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7565 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7566 Declaration.
7567 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7568 predicate.
7569 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7570 aarch64_mem_pair_offset.
7571
7572 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7573
7574 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7575 offset.
7576 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7577 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7578
7579 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7580
7581 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7582
7583 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7584
7585 PR regression/61510
7586 * cgraphunit.c (analyze_functions): Use get_create rather than get
7587 for decls which are clones of abstract functions.
7588
7589 2014-08-01 Martin Liska <mliska@suse.cz>
7590
7591 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7592 * ipa-prop.h (count_formal_params): Global function created from static.
7593 * ipa-prop.c (count_formal_params): Likewise.
7594 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7595 profiles for semantically equivalent functions.
7596 * passes.c (do_per_function): If we load body of a function
7597 during WPA, this condition should behave same.
7598 * varpool.c (ctor_for_folding): More tolerant assert for variable
7599 aliases created during WPA.
7600
7601 2014-08-01 Martin Liska <mliska@suse.cz>
7602
7603 * doc/invoke.texi (Options That Control Optimization): Documentation
7604 for -foptimize-strlen introduced. Optimization levels default options
7605 fixed.
7606
7607 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7608
7609 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7610 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7611 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7612 type to bool.
7613 * stor-layout.h (min_align_of_type): New prototype.
7614 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7615 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7616 check.
7617 * ubsan.c: Include builtins.h.
7618 (ubsan_expand_bounds_ifn): Change return type to bool,
7619 always return true.
7620 (ubsan_expand_null_ifn): Change return type to bool, change
7621 argument to gimple_stmt_iterator *. Handle both null and alignment
7622 sanitization, take type from ckind argument's type rather than
7623 first argument.
7624 (instrument_member_call): Removed.
7625 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7626 Handle both null and alignment sanitization, don't say whole
7627 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7628 call instead of 2 argument.
7629 (instrument_null): Adjust instrument_mem_ref caller. Don't
7630 instrument calls here.
7631 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7632 like SANITIZE_NULL.
7633 * stor-layout.c (min_align_of_type): New function.
7634 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7635 Or it into SANITIZE_UNDEFINED.
7636 * doc/invoke.texi (-fsanitize=alignment): Document.
7637
7638 2014-07-31 Andi Kleen <ak@linux.intel.com>
7639
7640 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7641
7642 2014-07-31 Andi Kleen <ak@linux.intel.com>
7643
7644 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7645 inchash.
7646 (vn_reference_compute_hash): Dito.
7647 (vn_nary_op_compute_hash): Dito.
7648 (vn_phi_compute_hash): Dito.
7649 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7650
7651 2014-07-31 Andi Kleen <ak@linux.intel.com>
7652
7653 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7654 Rename to inchash:add_expr_commutative. Convert to inchash.
7655 (iterative_hash_hashable_expr): Rename to
7656 inchash:add_hashable_expr. Convert to inchash.
7657 (avail_expr_hash): Dito.
7658
7659 2014-07-31 Andi Kleen <ak@linux.intel.com>
7660
7661 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7662 Convert to inchash.
7663
7664 2014-07-31 Andi Kleen <ak@linux.intel.com>
7665
7666 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7667
7668 2014-07-31 Andi Kleen <ak@linux.intel.com>
7669
7670 * Makefile.in (OBJS): Add rtlhash.o
7671 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7672 (loc_checksum): Dito.
7673 (loc_checksum_ordered): Dito.
7674 (hash_loc_operands): Dito.
7675 (hash_locs): Dito.
7676 (hash_loc_list): Dito.
7677 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7678 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7679 * rtlhash.c: New file.
7680 * rtlhash.h: New file.
7681
7682 2014-07-31 Andi Kleen <ak@linux.intel.com>
7683
7684 * inchash.h (inchash): Change inchash class to namespace.
7685 (class hash): ... Rename from inchash.
7686 (add_object): Move from macro to class template.
7687 * lto-streamer-out.c (hash_tree): Change inchash
7688 to inchash::hash.
7689 * tree.c (build_type_attribute_qual_variant): Dito.
7690 (type_hash_list): Dito.
7691 (attribute_hash_list): Dito.
7692 (iterative_hstate_expr): Rename to inchash::add_expr
7693 (build_range_type_1): Change inchash to inchash::hash
7694 and use hash::add_expr.
7695 (build_array_type_1): Dito.
7696 (build_function_type): Dito
7697 (build_method_type_directly): Dito.
7698 (build_offset_type): Dito.
7699 (build_complex_type): Dito.
7700 (make_vector_type): Dito.
7701 * tree.h (iterative_hash_expr): Dito.
7702
7703 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7704
7705 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7706
7707 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7708
7709 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7710 correct alphabetical position.
7711 (vpaddd_f64): Rewrite using builtins.
7712 (vpaddd_s64): Move to correct alphabetical position.
7713 (vpaddd_u64): New.
7714
7715 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7716
7717 PR target/61844
7718 * config/sh/sh.c (sh_legitimate_address_p,
7719 sh_legitimize_reload_address): Handle reg+reg address modes when
7720 ALLOW_INDEXED_ADDRESS is false.
7721 * config/sh/predicates.md (general_movsrc_operand,
7722 general_movdst_operand): Likewise.
7723
7724 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7725
7726 * config/aarch64/aarch64-builtins.c
7727 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7728 BYTES_BIG_ENDIAN.
7729
7730 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7731
7732 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7733 the generated mask based on BYTES_BIG_ENDIAN.
7734 (aarch64_simd_check_vect_par_cnst_half): New.
7735 * config/aarch64/aarch64-protos.h
7736 (aarch64_simd_check_vect_par_cnst_half): New.
7737 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7738 the check out to aarch64_simd_check_vect_par_cnst_half.
7739 (vect_par_cnst_lo_half): Likewise.
7740 * config/aarch64/aarch64-simd.md
7741 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7742 (move_hi_quad_<mode>): Always generate a low mask.
7743
7744 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7745
7746 * doc/invoke.texi (AVR Options): Add documentation about
7747 __AVR_DEVICE_NAME__ built-in macro.
7748
7749 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7750
7751 PR target/61948
7752 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7753 constraints are satisfied.
7754 (<shift>di3_neon): Likewise.
7755
7756 2014-07-31 Richard Biener <rguenther@suse.de>
7757
7758 PR tree-optimization/61964
7759 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7760 by structural equality.
7761
7762 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7763
7764 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7765 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7766 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7767 New enums.
7768 * gcc.c (sanitize_spec_function): Support new option.
7769 (SANITIZER_SPEC): Remove now redundant check.
7770 * opts.c (common_handle_option): Support new option.
7771 (finish_options): Check for incompatibilities.
7772 * toplev.c (process_options): Split userspace-specific checks.
7773
7774 2014-07-31 Richard Biener <rguenther@suse.de>
7775
7776 * lto-streamer.h (struct output_block): Remove global.
7777 (struct data_in): Remove labels, num_named_labels and
7778 num_unnamed_labels.
7779 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7780 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7781
7782 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7783
7784 PR c++/60517
7785 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7786 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7787 (isolate_path): New argument to avoid inserting a trap.
7788 (find_implicit_erroneous_behaviour): Handle returning the address
7789 of a local variable.
7790 (find_explicit_erroneous_behaviour): Likewise.
7791
7792 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7793
7794 PR lto/61868
7795 * toplev.c (init_random_seed): Move piece of code never called to
7796 set_random_seed.
7797 (set_random_seed): see above.
7798
7799 2014-07-31 Tom de Vries <tom@codesourcery.com>
7800
7801 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7802
7803 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7804
7805 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7806 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7807
7808 2014-07-31 Richard Biener <rguenther@suse.de>
7809
7810 * data-streamer.h (streamer_write_data_stream): Declare here,
7811 renamed from ...
7812 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7813 * lto-cgraph.c (lto_output_node): Adjust.
7814 (lto_output_varpool_node): Likewise.
7815 * data-streamer-out.c (streamer_string_index): Likewise.
7816 (streamer_write_data_stream, lto_append_block): Move from ...
7817 * lto-section-out.c (lto_output_data_stream,
7818 lto_append_block): ... here.
7819
7820 2014-07-30 Mike Stump <mikestump@comcast.net>
7821
7822 * configure.ac: Also check for popen.
7823 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7824 * configure: Regenerate.
7825 * config.in: Regenerate.
7826
7827 2014-07-30 Martin Jambor <mjambor@suse.cz>
7828
7829 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7830 parameter to gimple.
7831
7832 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7833
7834 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7835 address as second parameter to __tpf_eh_return routine.
7836
7837 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7838
7839 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7840 Thumb2.
7841
7842 2014-07-30 Tom Tromey <tromey@redhat.com>
7843
7844 PR c/59855
7845 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7846 * doc/extend.texi (Type Attributes): Document designated_init
7847 attribute.
7848
7849 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7850
7851 * graphite-isl-ast-to-gimple.c:
7852 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7853 (gcc_expression_from_isl_expression): Pass type to
7854 gcc_expression_from_isl_ast_expr_id.
7855
7856 2014-07-30 Richard Biener <rguenther@suse.de>
7857
7858 * lto-streamer.h (lto_write_data): New function.
7859 * langhooks.c (lhd_append_data): Do not free block.
7860 * lto-section-out.c (lto_write_data): New function writing
7861 raw data to the current section.
7862 (lto_write_stream): Adjust for langhook semantic change.
7863 (lto_destroy_simple_output_block): Write header directly.
7864 * lto-opts.c (lto_write_options): Write options directly.
7865 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7866 (lto_output_toplevel_asms): Likewise.
7867 (copy_function_or_variable): Copy data directly.
7868 (write_global_references): Output index table directly.
7869 (lto_output_decl_state_refs): Likewise.
7870 (write_symbol): Write data directly.
7871 (produce_symtab): Adjust.
7872 (produce_asm_for_decls): Output header and refs directly.
7873
7874 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7875
7876 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7877 to speculative_targets
7878 (get_class_context): Fix handling of contextes without outer type;
7879 avoid matching non-polymorphic types in LTO.
7880 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7881 parameter to speculative_targetsp; handle speculation.
7882 (dump_possible_polymorphic_call_targets): Update dumping.
7883
7884 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7885
7886 * common.opt (Wodr): Enable by default.
7887
7888 2014-07-29 Olivier Hainque <hainque@adacore.com>
7889
7890 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7891
7892 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7893
7894 PR bootstrap/61914
7895 * gengtype.c (strtoken): New function.
7896 (create_user_defined_type): Replace strtok with strtoken.
7897
7898 2014-07-29 Nathan Sidwell <nathan@acm.org>
7899
7900 * gcov-io.c (gcov_var): Make hidden.
7901 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7902 (gcov_do_dump): Declare.
7903 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7904
7905 2014-07-29 Martin Jambor <mjambor@suse.cz>
7906
7907 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7908 parameter to gimple.
7909 (sra_modify_assign): Likewise.
7910
7911 2014-07-29 Richard Biener <rguenther@suse.de>
7912
7913 PR middle-end/52478
7914 * expr.c (expand_expr_real_2): Revert last change.
7915
7916 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7917
7918 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7919 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7920 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7921 call.
7922 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7923 (contains_type_p): Forward declare.
7924 (polymorphic_call_target_hasher::hash): Hash speculative info.
7925 (polymorphic_call_target_hasher::equal): Compare speculative info.
7926 (get_class_context): Handle speuclation.
7927 (contains_type_p): Update.
7928 (get_polymorphic_call_info_for_decl): Update.
7929 (walk_ssa_copies): Break out from ...
7930 (get_polymorphic_call_info): ... here; set speculative context
7931 before giving up.
7932 * ipa-prop.c (ipa_write_indirect_edge_info,
7933 ipa_read_indirect_edge_info): Stream speculative context.
7934 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7935 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7936 SPECULATIVE_MAYBE_DERIVED_TYPE).
7937 (possible_polymorphic_call_targets overriders): Update.
7938 (dump_possible_polymorphic_call_targets overriders): Update.
7939 (dump_possible_polymorphic_call_target_p overriders): Update.
7940
7941 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7942
7943 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7944 ipa-devirt path; fix thinko there.
7945
7946 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7947
7948 * config/i386/i386.c (ix86_return_in_memory): Replace one
7949 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7950
7951 2014-07-28 Marek Polacek <polacek@redhat.com>
7952
7953 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7954
7955 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7956
7957 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7958 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7959 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7960 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7961 (USE_LD_AS_NEEDED): Likewise.
7962 (ASM_APP_ON): Likewise.
7963 (ASM_APP_OFF): Likewise.
7964 (TARGET_POSIX_IO): Likewise.
7965 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7966 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7967 (USE_LD_AS_NEEDED): Likewise.
7968 (ASM_APP_ON): Likewise.
7969 (ASM_APP_OFF): Likewise.
7970 (TARGET_POSIX_IO): Likewise.
7971
7972 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7973
7974 PR middle-end/61734
7975 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7976 operators other than the equality operators.
7977
7978 2014-07-28 Richard Biener <rguenther@suse.de>
7979
7980 PR middle-end/52478
7981 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7982 sure to register SImode ones, not only >= word_mode ones.
7983 * expr.c (expand_expr_real_2): When expanding -ftrapv
7984 binops do not use OPTAB_LIB_WIDEN.
7985
7986 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7987
7988 PR middle-end/61919
7989 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7990 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7991 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7992 inserting them in the insn stream.
7993
7994 2014-07-28 Marek Polacek <polacek@redhat.com>
7995
7996 PR middle-end/61913
7997 * common.opt (Wodr): Add Var.
7998
7999 2014-07-28 Richard Biener <rguenther@suse.de>
8000
8001 PR tree-optimization/61921
8002 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8003 if there is a varpool node before dereferencing it.
8004
8005 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8006
8007 * graphite-sese-to-poly.c:
8008 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8009 id of the pbb), which contains pointer to the pbb1.
8010
8011 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8012
8013 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8014
8015 * graphite-isl-ast-to-gimple.c:
8016 (graphite_create_new_guard): New function.
8017 (translate_isl_ast_node_if): New function.
8018 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8019
8020 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8021
8022 2014-07-27 Anthony Green <green@moxielogic.com>
8023
8024 * config.gcc: Add moxie-*-moxiebox* configuration.
8025 * config/moxie/moxiebox.h: New file.
8026
8027 2014-07-26 Andrew Pinski <apinski@cavium.com>
8028
8029 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8030 from the read only register.
8031
8032 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8033
8034 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8035 as the allocation class if it isn't likely to be spilled.
8036
8037 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8038
8039 * rtl.h (tls_referenced_p): Declare.
8040 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8041 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8042 (mips_cannot_force_const_mem): Use tls_referenced_p.
8043 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8044 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8045 instead of pa_tls_referenced_p.
8046 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8047 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8048 (pa_legitimate_constant_p): Likewise.
8049 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8050 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8051 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8052 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8053 rs6000_tls_referenced_p.
8054 (rs6000_tls_symbol_ref_1): Delete.
8055
8056 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8057
8058 PR target/44551
8059 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8060 Optimize inverse of a VEC_CONCAT.
8061
8062 2014-07-25 Xinliang David Li <davidxl@google.com>
8063
8064 * params.def: New parameter.
8065 * coverage.c (get_coverage_counts): Check new flag.
8066 (coverage_compute_profile_id): Check new flag.
8067 (coverage_begin_function): Check new flag.
8068 (coverage_end_function): Check new flag.
8069 * value-prof.c (coverage_node_map_initialized_p): New function.
8070 (init_node_map): Populate map with all functions.
8071 * doc/invoke.texi: Document new parameter.
8072
8073 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8074 Richard Biener <rguenther@suse.de>
8075
8076 * lto-streamer-out.c (struct sccs): Turn to ...
8077 (class DFS): ... this one; refactor the DFS walk so it can
8078 be re-done on per-SCC basis.
8079 (DFS::DFS): New constructor.
8080 (DFS::~DFS): New destructor.
8081 (hash_tree): Add new MAP argument holding in-SCC hash values;
8082 remove POINTER_TYPE hashing hack.
8083 (scc_entry_compare): Rename to ...
8084 (DFS::scc_entry_compare): ... this one.
8085 (hash_scc): Rename to ...
8086 (DFS::hash_scc): ... this one; pass output_block instead
8087 of streamer_cache; work harder to get unique and stable SCC
8088 hashes.
8089 (DFS_write_tree): Rename to ...
8090 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8091 (lto_output_tree): Update.
8092
8093 2014-07-25 Andi Kleen <ak@linux.intel.com>
8094
8095 * lto-streamer-out.c (hash_tree): Convert to inchash.
8096
8097 2014-07-25 Andi Kleen <ak@linux.intel.com>
8098
8099 * tree.c (build_type_attribute_qual_variant): Use inchash.
8100 (type_hash_list): Dito.
8101 (attribute_hash_list): Dito
8102 (iterative_hstate_expr): Dito.
8103 (iterative_hash_expr): Dito.
8104 (build_range_type_1): Dito.
8105 (build_array_type_1): Dito.
8106 (build_function_type): Dito.
8107 (build_method_type_directly): Dito.
8108 (build_offset_type): Dito.
8109 (build_complex_type): Dito.
8110 (make_vector_type): Dito.
8111 * tree.h (iterative_hash_expr): Add compat wrapper.
8112 (iterative_hstate_expr): Add.
8113
8114 2014-07-25 Andi Kleen <ak@linux.intel.com>
8115
8116 * Makefile.in (OBJS): Add inchash.o.
8117 (PLUGIN_HEADERS): Add inchash.h.
8118 * ipa-devirt.c: Include inchash.h.
8119 * lto-streamer-out.c: Dito.
8120 * tree-ssa-dom.c: Dito.
8121 * tree-ssa-pre.c: Dito.
8122 * tree-ssa-sccvn.c: Dito.
8123 * tree-ssa-tail-merge.c: Dito.
8124 * asan.c: Dito.
8125 * tree.c (iterative_hash_hashval_t): Move to ...
8126 (iterative_hash_host_wide_int): Move to ...
8127 * inchash.c: Here. New file.
8128 * tree.h (iterative_hash_hashval_t): Move to ...
8129 (iterative_hash_host_wide_int): Move to ...
8130 * inchash.h: Here. New file.
8131
8132 2014-07-25 Richard Biener <rguenther@suse.de>
8133
8134 PR middle-end/61762
8135 PR middle-end/61894
8136 * fold-const.c (native_encode_int): Add and handle offset
8137 parameter to do partial encodings of expr.
8138 (native_encode_fixed): Likewise.
8139 (native_encode_real): Likewise.
8140 (native_encode_complex): Likewise.
8141 (native_encode_vector): Likewise.
8142 (native_encode_string): Likewise.
8143 (native_encode_expr): Likewise.
8144 * fold-const.c (native_encode_expr): Add offset parameter
8145 defaulting to -1.
8146 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8147 (fold_ctor_reference): Handle all reads from tcc_constant
8148 ctors.
8149
8150 2014-07-25 Richard Biener <rguenther@suse.de>
8151
8152 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8153 as possibly unused.
8154
8155 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8156
8157 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8158
8159 2014-07-24 Kyle McMartin <kyle@redhat.com>
8160
8161 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8162
8163 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8164
8165 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8166 Add prototype.
8167 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8168 function.
8169 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8170 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8171 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8172
8173 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8174
8175 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8176 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8177 aggregate types. Instead, *all* aggregate types, except for single-
8178 element or homogeneous float/vector aggregates, are quadword-aligned
8179 if required by their type alignment. Issue -Wpsabi note when a type
8180 is now treated differently than before.
8181
8182 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8183
8184 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8185 does not fit fully into floating-point registers, and there is still
8186 space in the register parameter area, use GPRs to pass those parts
8187 of the argument. Issue -Wpsabi note if any parameter is now treated
8188 differently than before.
8189 (rs6000_arg_partial_bytes): Update.
8190
8191 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8192
8193 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8194
8195 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8196
8197 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8198 * toplev.c (initialize_rtl): Don't use it. Move previously
8199 "language-dependent" calls to...
8200 (backend_init): ...here.
8201 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8202 Assert that RTL initialization hasn't happend yet.
8203
8204 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8205
8206 PR rtl-optimization/61629
8207 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8208 they have already been initialized.
8209
8210 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8211
8212 PR middle-end/61268
8213 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8214 DECL_INCOMING_RTL and entry_parm.
8215 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8216 * calls.c (load_register_parameters): Likewise argument values.
8217 (emit_library_call_value_1, store_one_arg): Likewise argument
8218 save areas.
8219 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8220 stack slot.
8221 * explow.c (validize_mem): Modify the argument in-place.
8222
8223 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8224
8225 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8226 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8227
8228 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8229
8230 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8231 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8232
8233 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8234
8235 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8236 (aarch64_save_callee_saves): New parameter "skip_wb".
8237 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8238
8239 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8240
8241 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8242 "wb_candidate2".
8243 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8244
8245 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8246
8247 * graphite-isl-ast-to-gimple.c:
8248 (graphite_create_new_loop): Add calling of isl_id_free to properly
8249 decrement reference counts.
8250
8251 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8252
8253 2014-07-24 Martin Liska <mliska@suse.cz>
8254 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8255 function used.
8256 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8257 (rs6000_code_end): Likewise.
8258
8259 2014-07-24 Martin Liska <mliska@suse.cz>
8260
8261 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8262 symtab_node funtion used.
8263 (rs6000_xcoff_declare_object_name): Likewise.
8264
8265 2014-07-24 Martin Liska <mliska@suse.cz>
8266
8267 * cgraphunit.c (compile): Correct function used.
8268
8269 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8270
8271 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8272 as non-indexable.
8273
8274 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8275
8276 PR lto/61802
8277 * varasm.c (bss_initializer_p): Handle offlined ctors.
8278 (align_variable, get_variable_align): Likewise.
8279 (make_decl_one_only): Likewise.
8280 (default_binds_local_p_1): Likewise.
8281 (decl_binds_to_current_def_p): Likewise.
8282 (get_variable_section): Get constructor if it is offlined.
8283 (assemble_variable_contents): Sanity check that the caller
8284 streamed in the ctor in LTO.
8285
8286 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8287
8288 * graphite-isl-ast-to-gimple.c:
8289 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8290 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8291 isl_ast_op_pdiv_r to the different case.
8292
8293 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8294
8295 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8296
8297 PR middle-end/61876
8298 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8299 when flag_errno_math is on.
8300
8301 2014-07-24 Martin Liska <mliska@suse.cz>
8302
8303 * cgraph.h (varpool_node):
8304 (availability get_availability (void)):
8305 created from cgraph_variable_initializer_availability
8306 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8307 created from: cgraph_variable_initializer_availability
8308 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8309 (void finalize_named_section_flags (void)):
8310 created from varpool_finalize_named_section_flags
8311 (bool assemble_decl (void)): created from varpool_assemble_decl
8312 (void analyze (void)): created from varpool_analyze_node
8313 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8314 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8315 (void remove_initializer (void)): created from varpool_remove_initializer
8316 (tree get_constructor (void)): created from varpool_get_constructor
8317 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8318 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8319 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8320 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8321 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8322 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8323 (static bool output_variables (void)): created from varpool_output_variables
8324 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8325 created from varpool_extra_name_alias
8326 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8327 (static void dump_varpool (FILE *f)): created from dump_varpool
8328 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8329 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8330 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8331 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8332 (void assemble_aliases (void)): created from assemble_aliases
8333
8334 2014-07-24 Martin Liska <mliska@suse.cz>
8335
8336 * cgraph.h (symtab_node):
8337 (void register_symbol (void)): created from symtab_register_node
8338 (void remove (void)): created from symtab_remove_node
8339 (void dump (FILE *f)): created from dump_symtab_node
8340 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8341 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8342 (struct ipa_ref *add_reference (symtab_node *referred_node,
8343 enum ipa_ref_use use_type)): created from add_reference
8344 (struct ipa_ref *add_reference (symtab_node *referred_node,
8345 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8346 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8347 gimple stmt)): created from maybe_add_reference
8348 (bool semantically_equivalent_p (symtab_node *target)): created from
8349 symtab_semantically_equivalent_p
8350 (void remove_from_same_comdat_group (void)): created from
8351 remove_from_same_comdat_group
8352 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8353 symtab_add_to_same_comdat_group
8354 (void dissolve_same_comdat_group_list (void)): created from
8355 symtab_dissolve_same_comdat_group_list
8356 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8357 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8358 created from symtab_alias_ultimate_target
8359 (inline symtab_node *next_defined_symbol (void)): created from
8360 symtab_next_defined_symbol
8361 (bool resolve_alias (symtab_node *target)): created from
8362 symtab_resolve_alias
8363 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8364 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8365 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8366 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8367 (void set_section (const char *section)): created from set_section_1
8368 (enum availability get_availability (void)): created from symtab_node_availability
8369 (void make_decl_local (void)): created from symtab_make_decl_local
8370 (bool real_symbol_p (void)): created from symtab_read_node
8371 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8372 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8373 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8374 symtab_in_same_comdat_p;
8375 (bool address_taken_from_non_vtable_p (void)): created from
8376 address_taken_from_non_vtable_p
8377 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8378 (static void dump_table (FILE *)): created from dump_symtab
8379 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8380 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8381 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8382 symtab_used_from_object_file_p
8383 (void dump_base (FILE *)): created from dump_symtab_base
8384 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8385 (void unregister (void)): created from symtab_unregister_node
8386 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8387 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8388 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8389 symtab_nonoverwritable_alias_1
8390 * cgraph.h (cgraph_node):
8391 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8392 created from cgraph_remove_node_and_inline_clones
8393 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8394 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8395 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8396 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8397 created from cgraph_function_node
8398 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8399 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8400 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8401 created from cgraph_create_clone
8402 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8403 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8404 created from cgraph_create_virtual_clone
8405 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8406 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8407 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8408 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8409 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8410 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8411 created from cgraph_function_version_info
8412 (struct cgraph_function_version_info *insert_new_function_version (void)):
8413 created from insert_new_cgraph_node_version
8414 (struct cgraph_function_version_info *function_version (void)): created from
8415 get_cgraph_node_version
8416 (void analyze (void)): created from analyze_function
8417 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8418 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8419 tree real_alias) cgraph_add_thunk
8420 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8421 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8422 created from cgraph_function_or_thunk_node
8423 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8424 created from expand_thunk
8425 (void reset (void)): created from cgraph_reset_node
8426 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8427 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8428 (void remove (void)): created from cgraph_remove_node
8429 (void dump (FILE *f)): created from dump_cgraph_node
8430 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8431 (bool get_body (void)): created from cgraph_get_body
8432 (void release_body (void)): created from cgraph_release_function_body
8433 (void unnest (void)): created from cgraph_unnest_node
8434 (void make_local (void)): created from cgraph_make_node_local
8435 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8436 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8437 gcov_type count, int freq)): created from cgraph_create_edge
8438 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8439 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8440 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8441 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8442 created from cgraph_create_edge_including_clones
8443 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8444 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8445 (void remove_callers (void)): created from cgraph_node_remove_callers
8446 (void remove_callees (void)): created from cgraph_node_remove_callees
8447 (enum availability get_availability (void)): created from cgraph_function_body_availability
8448 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8449 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8450 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8451 (void call_duplication_hooks (cgraph_node *node2)): created from
8452 cgraph_call_node_duplication_hooks
8453 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8454 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8455 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8456 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8457 (void call_function_insertion_hooks (void)):
8458 created from cgraph_call_function_insertion_hooks
8459 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8460 (bool local_p (void)): created from cgraph_local_node
8461 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8462 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8463 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8464 (inline bool only_called_directly_or_aliased_p (void)):
8465 created from cgraph_only_called_directly_or_aliased_p
8466 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8467 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8468 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8469 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8470 (bool can_remove_if_no_direct_calls_p (void)):
8471 created from cgraph_can_remove_if_no_direct_calls_p
8472 (inline bool has_gimple_body_p (void)):
8473 created from cgraph_function_with_gimple_body_p
8474 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8475 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8476 (static inline void debug_cgraph (void)): created from debug_cgraph
8477 (static void record_function_versions (tree decl1, tree decl2)):
8478 created from record_function_versions
8479 (static void delete_function_version (tree decl)):
8480 created from delete_function_version
8481 (static void add_new_function (tree fndecl, bool lowered)):
8482 created from cgraph_add_new_function
8483 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8484 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8485 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8486 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8487 (static cgraph_node *get_for_asmname (tree asmname)):
8488 created from cgraph_node_for_asm
8489 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8490 created from cgraph_same_body_alias
8491 (static bool used_from_object_file_p_worker (cgraph_node *node,
8492 void *): new function
8493 (static bool non_local_p (cgraph_node *node, void *)):
8494 created from cgraph_non_local_node_p_1
8495 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8496 created from verify_cgraph
8497 (static bool make_local (cgraph_node *node, void *)):
8498 created from cgraph_make_node_local
8499 (static cgraph_node *create_alias (tree alias, tree target)):
8500 created from cgraph_create_function_alias
8501 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8502 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8503 created from cgraph_create_edge_1
8504 * cgraph.h (varpool_node):
8505 (void remove (void)): created from varpool_remove_node
8506 (void dump (FILE *f)): created from dump_varpool_node
8507
8508 2014-07-24 Richard Biener <rguenther@suse.de>
8509
8510 PR ipa/61823
8511 * tree-ssa-structalias.c (create_variable_info_for_1):
8512 Use varpool_get_constructor.
8513 (create_variable_info_for): Likewise.
8514
8515 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8516
8517 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8518 subtract outgoing area size when restoring stack_pointer_rtx.
8519
8520 2014-07-24 Nick Clifton <nickc@redhat.com>
8521
8522 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8523 that operations are taking place in parallel.
8524 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8525
8526 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8527
8528 * omp-low.c (extract_omp_for_data): Add missing break statement.
8529
8530 2014-07-24 Richard Biener <rguenther@suse.de>
8531
8532 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8533 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8534 and adjust MOVE_RATIO query accordingly.
8535 (estimate_num_insns): Adjust callers.
8536 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8537 * ipa-cp.c (gather_context_independent_values,
8538 estimate_local_effects): Likewise.
8539 * ipa-split.c (consider_split): Likewise.
8540
8541 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8542
8543 * config/i386/driver-i386.c: Remove names of unused arguments and
8544 unnecessary unused attributes.
8545 * config/i386/host-mingw32.c: Likewise.
8546 * config/i386/i386.c: Likewise.
8547 * config/i386/winnt-stubs.c: Likewise.
8548 * config/i386/winnt.c: Likewise.
8549
8550 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8551
8552 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8553 (aarch64_gen_loadwb_pair): New helper function.
8554 (aarch64_expand_epilogue): Simplify code using new helper functions.
8555 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8556
8557 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8558
8559 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8560 (aarch64_gen_storewb_pair): New helper function.
8561 (aarch64_expand_prologue): Simplify code using new helper functions.
8562 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8563
8564 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8565
8566 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8567 Rename to aarch64_save_callee_saves, remove restore code.
8568 (aarch64_restore_callee_saves): New function.
8569
8570 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8571
8572 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8573 (aarch64_save_callee_saves): New function to handle reg save
8574 for both core and vectore regs.
8575
8576 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8577
8578 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8579 (aarch64_gen_store_pair): New helper function.
8580 (aarch64_save_or_restore_callee_save_registers)
8581 (aarch64_save_or_restore_fprs): Use new helper functions.
8582
8583 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8584
8585 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8586 (aarch64_save_or_restore_callee_save_registers)
8587 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8588
8589 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8590
8591 * config/aarch64/aarch64.c
8592 (aarch64_save_or_restore_callee_save_registers)
8593 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8594
8595 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8596
8597 * config/aarch64/aarch64.c
8598 (aarch64_save_or_restore_callee_save_registers)
8599 (aarch64_save_or_restore_fprs): Remove 'increment'.
8600
8601 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8602
8603 * config/aarch64/aarch64.c
8604 (aarch64_save_or_restore_callee_save_registers)
8605 (aarch64_save_or_restore_fprs): Use register offset in
8606 cfun->machine->frame.reg_offset.
8607
8608 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8609
8610 * config/aarch64/aarch64.c
8611 (aarch64_save_or_restore_callee_save_registers)
8612 (aarch64_save_or_restore_fprs): Remove base_rtx.
8613
8614 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8615
8616 * config/aarch64/aarch64.c
8617 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8618 to 'start_offset'. Remove local variable 'start_offset'.
8619
8620 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8621
8622 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8623 type to HOST_WIDE_INT.
8624
8625 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8626
8627 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8628 (aarch64_save_or_restore_fprs)
8629 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8630
8631 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8632
8633 * config/arm/t-rtems-eabi: Add
8634 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8635 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8636 mbig-endian/mthumb/march=armv7-r, and
8637 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8638 multilibs.
8639
8640 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8641 Chris Johns <chrisj@rtems.org>
8642 Joel Sherrill <joel.sherrill@oarcorp.com>
8643
8644 * config.gcc: Add nios2-*-rtems*.
8645 * config/nios2/rtems.h: New file.
8646 * gcc/config/nios2/t-rtems: New file.
8647
8648 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8649
8650 PR target/61396
8651 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8652 constant numbers, not general constants.
8653 (rs6000_expand_vector_init): Ditto.
8654
8655 2014-07-23 Nathan Sidwell <nathan@acm.org>
8656
8657 * gcov-tool.c (gcov_list): Declare here.
8658 (set_gcov_list): Remove.
8659 (gcov_output_files): Set gcov_list directly.
8660
8661 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8662
8663 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8664
8665 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8666
8667 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8668 callee-saved registers are available for padding purpose
8669 and r3 is not mandatory, then prefer use those callee-saved
8670 instead of r3.
8671
8672 2014-07-23 Richard Biener <rguenther@suse.de>
8673
8674 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8675 * combine.c: Include statistics.h and params.h.
8676 (combine_instructions): Guard three and four insn combines
8677 with max-combine-insns value. Record statistics for combines
8678 performed.
8679 * doc/invoke.texi (max-combine-insns): Document new param.
8680
8681 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8682
8683 * graphite-isl-ast-to-gimple.c:
8684 (translate_isl_ast_node_block): New function.
8685 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8686
8687 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8688 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8689
8690 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8691
8692 * graphite-isl-ast-to-gimple.c:
8693 (get_max_schedule_dimensions): New function.
8694 (extend_schedule): Likewise.
8695 (generate_isl_schedule): Add calling of extend_schedule and
8696 get_max_schedule_dimensions.
8697
8698 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8699
8700 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8701 (case UNSPEC): Handle UNSPEC_RBIT.
8702
8703 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8704
8705 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8706 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8707
8708 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8709
8710 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8711
8712 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8713
8714 * graphite-isl-ast-to-gimple.c:
8715 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8716 (ivs_params_clear):
8717 (build_iv_mapping): New function.
8718 (translate_isl_ast_node_user): Likewise.
8719 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8720
8721 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8722 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8723 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8724
8725 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8726
8727 PR target/55701
8728 * config/arm/arm.md (setmem): New pattern.
8729 * config/arm/arm-protos.h (struct tune_params): New fields.
8730 (arm_gen_setmem): New prototype.
8731 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8732 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8733 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8734 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8735 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8736 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8737 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8738 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8739 (arm_const_inline_cost): New function.
8740 (arm_block_set_max_insns): New function.
8741 (arm_block_set_non_vect_profit_p): New function.
8742 (arm_block_set_vect_profit_p): New function.
8743 (arm_block_set_unaligned_vect): New function.
8744 (arm_block_set_aligned_vect): New function.
8745 (arm_block_set_unaligned_non_vect): New function.
8746 (arm_block_set_aligned_non_vect): New function.
8747 (arm_block_set_vect, arm_gen_setmem): New functions.
8748
8749 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8750
8751 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8752
8753 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8754
8755 PR target/61855
8756 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8757 out of #ifdef __OPTIMIZE__.
8758
8759 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8760
8761 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8762 different trapping status if -fnon-call-exceptions is enabled.
8763
8764 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8765
8766 * expr.c (store_field): Handle VOIDmode for calls that return values
8767 in multiple locations.
8768
8769 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8770
8771 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8772 (altivec_vsldoi_<mode>): Likewise.
8773
8774 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8775
8776 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8777 to the number of characters in the line.
8778
8779 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8780
8781 * graphite-isl-ast-to-gimple.c: Add using of
8782 build_nonstandard_integer_type instead of int128_integer_type_node.
8783
8784 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8785
8786 * toplev.c (output_stack_usage): Adjust the location of the warning.
8787
8788 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8789
8790 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8791 (*membar_storeload): Disable for LEON3.
8792
8793 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8794
8795 PR rtl-optimization/61461
8796 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8797
8798 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8799
8800 PR target/61794
8801 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8802 Fix instruction constraint.
8803 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8804
8805 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8806
8807 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8808
8809 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8810
8811 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8812 GNU coding standards.
8813 (nds32_register_move_cost): Likewise.
8814 (nds32_memory_move_cost): Likewise.
8815 (nds32_address_cost): Likewise.
8816
8817 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8818
8819 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8820
8821 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8822
8823 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8824 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8825 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8826 (HAVE_sync_compare_and_swapqi): Define.
8827 (HAVE_sync_compare_and_swaphi): Likewise.
8828 (HAVE_sync_compare_and_swapsi): Likewise.
8829
8830 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8831
8832 * config/mips/p5600.md: Add missing cpu tests.
8833
8834 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8835
8836 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8837 (vmla_f64): Likewise.
8838 (vfms_f64): Likewise.
8839 (vmls_f64): Likewise.
8840
8841 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8842
8843 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8844 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8845
8846 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8847
8848 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8849 (vmlal_high_lane_s32): Likewise.
8850 (vmlal_high_lane_u16): Likewise.
8851 (vmlal_high_lane_u32): Likewise.
8852 (vmlsl_high_lane_s16): Likewise.
8853 (vmlsl_high_lane_s32): Likewise.
8854 (vmlsl_high_lane_u16): Likewise.
8855 (vmlsl_high_lane_u32): Likewise.
8856
8857 2014-07-17 Terry Guo <terry.guo@arm.com>
8858
8859 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8860 (alus_reg): Renamed to alus_sreg.
8861 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8862 from alu_reg to alu_sreg. Change type of dsp instructions from
8863 alu_reg to alu_dsp_reg.
8864 * config/arm/thumb1.md: Likewise.
8865 * config/arm/thumb2.md: Likewise.
8866 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8867 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8868 with alu_sreg and alus_sreg.
8869 * config/arm/arm1026ejs.md (alu_op): Likewise.
8870 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8871 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8872 * config/arm/fa526.md (526_alu_op): Likewise.
8873 * config/arm/fa606te.md (606te_alu_op): Likewise.
8874 * config/arm/fa626te.md (626te_alu_op): Likewise.
8875 * config/arm/fa726te.md (726te_alu_op): Likewise.
8876 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8877 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8878 alu_sreg, alu_dsp_reg and alus_sreg.
8879 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8880 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8881 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8882 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8883 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8884 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8885 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8886 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8887 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8888 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8889 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8890 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8891 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8892 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8893 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8894 alus_reg to alus_sreg.
8895
8896 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8897
8898 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8899 infinity format.
8900
8901 2014-07-17 Richard Biener <rguenther@suse.de>
8902
8903 PR rtl-optimization/61801
8904 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8905 don't set reg_pending_barrier if it appears in a debug-insn.
8906
8907 2014-07-16 DJ Delorie <dj@redhat.com>
8908
8909 * config/rx/rx.c (rx_option_override): Fix alignment values.
8910 (rx_align_for_label): Likewise.
8911
8912 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8913
8914 PR target/61737.
8915 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8916 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8917 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8918 functions.
8919 (cris_print_index, cris_print_operand, cris_constant_index_p)
8920 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8921 (cris_address_cost): Ditto last CONSTANT_P.
8922 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8923 callers changed. Yield cris_offsettable_symbol for non-PIC
8924 constant symbolic expressions including labels. Yield cris_unspec
8925 for all unspecs.
8926 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8927 target to pic_offset_table_rtx for calls that will likely go
8928 through PLT, const0_rtx when they can't. All callers changed.
8929 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8930 symbolic expressions to be PICified. Remove second, redundant,
8931 assert on can_create_pseudo_p returning non-zero. Use
8932 replace_equiv_address_nv, not replace_equiv_address, for final
8933 operand update.
8934 * config/cris/cris.md ("movsi"): Move variable t to pattern
8935 toplevel. Adjust assert for new cris_symbol_type member. Use
8936 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8937 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8938 for lapc stricter.
8939 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8940 ("call", "call_value"): Use second incoming operand as a marker
8941 for pic-offset-table-register being used.
8942 ("*expanded_call_non_v32", "*expanded_call_v32")
8943 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8944 second incoming operand to CALL, match cris_call_type_marker.
8945 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8946 ("*expanded_call_side"): Ditto. Fix typo in comment.
8947 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8948 CONSTANT_P.
8949 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8950 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8951 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8952 users changed. Add members cris_offsettable_symbol and cris_unspec.
8953 (cris_symbol_type): Rename from cris_pic_symbol_type.
8954 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8955 just CONSTANT_P.
8956 * config/cris/cris-protos.h (cris_symbol_type_of,
8957 cris_expand_pic_call_address): Adjust prototypes.
8958 (cris_legitimate_constant_p): New prototype.
8959
8960 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8961 an existing tmake_file. Don't add t-slibgcc and t-linux.
8962
8963 2014-07-17 Jason Merrill <jason@redhat.com>
8964
8965 PR c++/61623
8966 * symtab.c (symtab_remove_from_same_comdat_group): Also
8967 set_comdat_group to NULL_TREE.
8968 (verify_symtab): Fix diagnostic.
8969
8970 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8971
8972 PR target/61662
8973 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8974
8975 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8976
8977 Support location tracking for built-in macro tokens
8978 * input.h (is_location_from_builtin_token): New function declaration.
8979 * input.c (is_location_from_builtin_token): New function definition.
8980 * toplev.c (general_init): Tell libcpp what the pre-defined
8981 spelling location for built-in tokens is.
8982
8983 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8984
8985 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8986 on the FUNCTION_DECL.
8987
8988 2014-07-16 Richard Biener <rguenther@suse.de>
8989
8990 PR other/61782
8991 * doc/extend.texi (always_inline): Clarify.
8992
8993 2014-07-15 Eric Christopher <echristo@gmail.com>
8994
8995 * doc/invoke.texi (Link Options): Document -z option.
8996
8997 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8998
8999 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9000 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9001
9002 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9003
9004 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9005
9006 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9007
9008 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9009 varpool_assemble_decl.
9010 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9011 true.
9012
9013 2014-07-15 Michael Matz <matz@suse.de>
9014
9015 PR rtl-optimization/61772
9016 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9017
9018 2014-07-15 Richard Biener <rguenther@suse.de>
9019
9020 * opts.c (default_options_table): Disable bit-ccp at -Og.
9021
9022 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9023
9024 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9025
9026 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9027
9028 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9029 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9030 call langhook for unknown declaration.
9031 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9032 * tree.h (DECL_ARGUMENTS): Update.
9033 * print-tree.c (print_node): Update.
9034 * tree-core.h (tree_decl_non_common): Remove arguments.
9035 (tree_function_decl): Add arguments.
9036
9037 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9038
9039 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9040
9041 2014-07-14 Richard Biener <rguenther@suse.de>
9042
9043 PR tree-optimization/61779
9044 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9045 simplifying a condition.
9046
9047 2014-07-14 Richard Biener <rguenther@suse.de>
9048
9049 * builtins.c (c_strlen): Make only_value == 2 really only
9050 affect warning generation.
9051
9052 2014-07-14 Richard Biener <rguenther@suse.de>
9053
9054 PR tree-optimization/61757
9055 PR tree-optimization/61783
9056 PR tree-optimization/61787
9057 * tree-ssa-dom.c (record_equality): Revert canonicalization
9058 change and add comment.
9059 (propagate_rhs_into_lhs): Revert previous fix, removing
9060 loop depth restriction again.
9061
9062 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9063
9064 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9065 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9066 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9067 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9068 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9069 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9070 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9071
9072 2014-07-14 Richard Biener <rguenther@suse.de>
9073
9074 * cgraph.h (decl_in_symtab_p): Make inline.
9075
9076 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9077
9078 PR middle-end/61294
9079 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9080
9081 PR target/61656
9082 * config/i386/i386.c (classify_argument): Don't merge classes above
9083 number of words.
9084
9085 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9086
9087 * cgraph.h (symtab_node): Add nonzero_address.
9088 (decl_in_symtab_p): Break out from ...
9089 (symtab_get_node): ... here.
9090 * fold-const.c: Include cgraph.h
9091 (tree_single_nonzero_warnv_p): Use symtab to determine
9092 if symbol is non-zero.
9093 * symtab.c (symtab_node::nonzero_address): New method.
9094
9095 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9096
9097 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9098 forgotten in previous commit.
9099
9100 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9101
9102 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9103 on builtin types.
9104 * ipa-devirt.c: Include stor-layout.h and intl.h
9105 (odr_subtypes_equivalent_p): New function.
9106 (warn_odr): New function.
9107 (warn_type_mismatch): New function.
9108 (odr_types_equivalent_p): New function.
9109 (add_type_duplicate): Use it.
9110 * common.opt (Wodr): New flag.
9111 * doc/invoke.texi (Wodr): Document new warning.
9112
9113 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9114
9115 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9116 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9117 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9118 (varpool_get_constructor): Push CTORS_IN timevar.
9119 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9120
9121 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9122
9123 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9124 Remove VOID_FTYPE_PUSHORT.
9125 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9126 Change code to USHORT_FTYPE_VOID.
9127 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9128 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9129 (ix86_atomic_assign_expand_fenv): Update for
9130 __builtin_ia32_fnstsw changes.
9131 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9132 (fnstsw): Change operand 0 to nonimmediate operand.
9133
9134 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9135
9136 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9137 (varpool_get_constructor): New function.
9138 (varpool_ctor_useable_for_folding_p): Break out from ...
9139 (ctor_for_folding): ... here; use varpool_get_constructor.
9140 (varpool_assemble_decl): Likewise.
9141 * lto-streamer.h (struct output_block): Turn cgraph_node
9142 to symbol filed.
9143 (lto_input_variable_constructor): Declare.
9144 * ipa-visibility.c (function_and_variable_visibility): Use
9145 varpool_get_constructor.
9146 * cgraph.h (varpool_get_constructor): Declare.
9147 (varpool_ctor_useable_for_folding_p): New function.
9148 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9149 parameter; return error_mark_node for non-trivial constructors.
9150 (lto_write_tree_1, DFS_write_tree): Update use of
9151 get_symbol_initial_value.
9152 (output_function): Update initialization of symbol.
9153 (output_constructor): New function.
9154 (copy_function): Rename to ..
9155 (copy_function_or_variable): ... this one; handle vars too.
9156 (lto_output): Output variable sections.
9157 * lto-streamer-in.c (input_constructor): New function.
9158 (lto_read_body): Rename from ...
9159 (lto_read_body_or_constructor): ... this one; handle vars too.
9160 (lto_input_variable_constructor): New function.
9161 * ipa-prop.c (ipa_prop_write_jump_functions,
9162 ipa_prop_write_all_agg_replacement): Update.
9163 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9164 (output_cgraph_opt_summary): Set symbol to NULL.
9165
9166 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9167
9168 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9169 non-polymorphic types.
9170 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9171 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9172 of types is not polymorphic.
9173
9174 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9175
9176 * lra-constraints.c (remove_inheritance_pseudos): Process
9177 destination pseudo too.
9178
9179 2014-07-11 Rong Xu <xur@google.com>
9180
9181 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9182 commit r212448.
9183
9184 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9185
9186 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9187 * config/avr/avr-devices.c (AVR_MCU): Same.
9188 (avr_mcu_types): add text start value to end of device list.
9189 * config/avr/avr-mcus.def: Add text section start for all devices.
9190 (ata5782): Add new avr5 device.
9191 (ata5831): Same.
9192 * config/avr/avr-tables.opt: Regenerate.
9193 * config/avr/avr.h: Add declaration for text section start handler.
9194 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9195 SPEC functions.
9196 (LINK_SPEC): Include text section start handler to linker spec.
9197 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9198 pass -Ttext option to linker if the text section start for the device
9199 is not zero.
9200 * config/avr/t-multilib: Regenerate.
9201 * doc/avr-mmcu.texi: Regenerate.
9202
9203 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9204
9205 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9206 * config/rs6000/aix52.h (LINK_SPEC): Same.
9207 * config/rs6000/aix53.h (LINK_SPEC): Same.
9208 * config/rs6000/aix61.h (LINK_SPEC): Same.
9209 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9210
9211 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9212
9213 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9214 (graphite_verify): New function.
9215 (ivs_params_clear): New function.
9216 (gcc_expression_from_isl_ast_expr_id): New function.
9217 (gcc_expression_from_isl_expr_int): New function.
9218 (binary_op_to_tree): New function.
9219 (ternary_op_to_tree): New function.
9220 (unary_op_to_tree): New function.
9221 (nary_op_to_tree): New function.
9222 (gcc_expression_from_isl_expr_op): New function.
9223 (gcc_expression_from_isl_expression): New function.
9224 (graphite_create_new_loop): New function.
9225 (translate_isl_ast_for_loop): New function.
9226 (get_upper_bound): New function.
9227 (graphite_create_new_loop_guard): New function.
9228 (translate_isl_ast_node_for): New function.
9229 (translate_isl_ast): New function.
9230 (add_parameters_to_ivs_params): New function.
9231 (scop_to_isl_ast): New parameter ip.
9232 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9233
9234 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9235
9236 * config/xtensa/predicates.md (call expander): Update for
9237 DECL_SECTION_NAME being string.
9238
9239 2014-07-11 Richard Biener <rguenther@suse.de>
9240
9241 PR middle-end/61473
9242 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9243 can be implemented with a single load followed by a single store.
9244 (c_strlen): Only warn when only_value is not 2.
9245
9246 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9247
9248 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9249
9250 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9251
9252 PR target/61561
9253 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9254 (*movhi_bytes): Likewise.
9255 (*arm_movqi_insn): Likewise.
9256
9257 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9258
9259 PR target/56858
9260 * config/alpha/alpha.c: Include tree-pass.h, context.h
9261 and pass_manager.h.
9262 (pass_data_handle_trap_shadows): New pass.
9263 (pass_handle_trap_shadows::gate): New pass gate function.
9264 (make_pass_handle_trap_shadows): New function.
9265 (rest_of_handle_trap_shadows): Ditto.
9266
9267 (alpha_align_insns_1): Rename from alpha_align_insns.
9268 (pass_data_align_insns): New pass.
9269 (pass_align_insns::gate): New pass gate function.
9270 (make_pass_aling_insns): New function.
9271 (rest_of_align_insns): Ditto.
9272 (alpha_align_insns): Ditto.
9273
9274 (alpha_option_override): Declare handle_trap_shadows info
9275 and align_insns_info. Register handle_trap_shadows and align_insns
9276 passes here.
9277 (alpha_reorg): Do not call alpha_trap_shadows and
9278 alpha_align_insn from here.
9279
9280 (alpha_pad_function_end): Do not skip BARRIERs.
9281
9282 2014-07-10 Rong Xu <xur@google.com>
9283
9284 Add gcov-tool: an offline gcda profile processing tool support.
9285 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9286 (gcov_is_error): Ditto.
9287 (gcov_read_string): Ditto.
9288 (gcov_read_sync): Ditto.
9289 * gcov-io.h: Move counter defines to gcov-counter.def.
9290 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9291 * coverage.c: Ditto.
9292 * gcov-tool.c: Offline gcda profile processing tool.
9293 (unlink_gcda_file): Remove one gcda file.
9294 (unlink_profile_dir): Remove gcda files from the profile path.
9295 (gcov_output_files): Output gcda files to an output dir.
9296 (profile_merge): Merge two profiles in directory.
9297 (print_merge_usage_message): Print merge usage.
9298 (merge_usage): Print merge usage and exit.
9299 (do_merge): Driver for profile merge sub-command.
9300 (profile_rewrite): Rewrite profile.
9301 (print_rewrite_usage_message): Print rewrite usage.
9302 (rewrite_usage): Print rewrite usage and exit.
9303 (do_rewrite): Driver for profile rewrite sub-command.
9304 (print_usage): Print gcov-info usage and exit.
9305 (print_version): Print gcov-info version.
9306 (process_args): Process arguments.
9307 (main): Main routine for gcov-tool.
9308 * Makefile.in: Build and install gcov-tool.
9309 * gcov-counter.def: New file split from gcov-io.h.
9310 * doc/gcc.texi: Include gcov-tool.texi.
9311 * doc/gcov-tool.texi: Document for gcov-tool.
9312
9313 2014-07-10 Richard Biener <rguenther@suse.de>
9314
9315 PR tree-optimization/61757
9316 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9317 (propagate_rhs_into_lhs): Revert part of last change.
9318
9319 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9320
9321 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9322 FUNCTION_DECLs.
9323
9324 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9325
9326 PR middle-end/53590
9327 * function.c (allocate_struct_function): Revert r188667 change.
9328
9329 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9330
9331 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9332
9333 * doc/install.texi: Remove links to defunct package providers for
9334 Solaris.
9335
9336 2014-07-09 Tom de Vries <tom@codesourcery.com>
9337
9338 * final.c (get_call_fndecl): Declare.
9339 (self_recursive_call_p): New function.
9340 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9341
9342 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9343
9344 * ipa-devirt.c (record_node): Walk through aliases.
9345
9346 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9347
9348 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9349
9350 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9351
9352 Revert:
9353 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9354
9355 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9356
9357 * ipa-visibility.c (function_and_variable_visibility): Remove
9358 temporary hack disabling local aliases on AIX.
9359
9360 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9361
9362 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9363 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9364
9365 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9366
9367 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9368 * rs6000/rs6000.c: Inline output of .set instruction.
9369 (declare_alias_data): New struct.
9370 (rs6000_declare_alias): New function.
9371 (rs6000_xcoff_declare_function_name): Use it.
9372 (rs6000_xcoff_declare_object_name): New function.
9373 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9374 (ASM_OUTPUT_DEF): Turn to empty definition.
9375
9376 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9377
9378 PR bootstrap/61679
9379 * hash-table.h: use hash_table::value_type instead of
9380 Descriptor::value_type in the return types of several methods.
9381
9382 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9383
9384 * tree-pass.h (pass_data): Remove has_execute member.
9385 * passes.c (execute_one_pass): Don't check pass->has_execute.
9386 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9387 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9388 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9389 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9390 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9391 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9392 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9393 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9394 gimple-low.c, gimple-ssa-isolate-paths.c,
9395 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9396 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9397 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9398 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9399 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9400 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9401 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9402 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9403 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9404 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9405 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9406 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9407 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9408 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9409 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9410 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9411 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9412 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9413 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9414 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9415 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9416 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9417 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9418 web.c: Remove initializer for pass_data::has_execute.
9419
9420 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9421
9422 * graphite-htab.h: Use hash_map instead of hash_table.
9423 * graphite-clast-to-gimple.c: Adjust.
9424 * passes.c: Use hash_map instead of hash_table.
9425 * sese.c: Likewise.
9426 * sese.h: Remove now unused code.
9427
9428 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9429
9430 PR target/61599
9431 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9432 than zero.
9433
9434 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9435
9436 PR rtl-optimization/61673
9437 * combine.c (simplify_comparison): Test just mode's sign bit
9438 in tmode rather than the sign bit and any bits above it.
9439
9440 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9441
9442 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9443 Add __isl_give to the declaration.
9444 (generate_isl_schedule): Likewise.
9445 (scop_to_isl_ast): Likewise.
9446
9447 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9448
9449 * config/arm/arm.c (cortexa5_extra_costs): New table.
9450 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9451
9452 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9453
9454 PR tree-optimization/61725
9455 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9456 range, use range_includes_zerop_p instead of integer_zerop on
9457 vr0->min, only use log2 of max if min is not negative.
9458
9459 2014-07-08 Richard Biener <rguenther@suse.de>
9460
9461 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9462 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9463 restriction on loop depth difference.
9464 (record_equality): Likewise.
9465 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9466 (loop_depth_of_name): Remove.
9467 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9468 restriction on loop depth difference.
9469 (init_copy_prop): Likewise.
9470
9471 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9472
9473 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9474 parameter.
9475 (walk_aliased_vdefs): Likewise.
9476 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9477 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9478 (detect_type_change_from_memory_writes): Check if entry was reached.
9479
9480 2014-07-08 Richard Biener <rguenther@suse.de>
9481
9482 PR tree-optimization/61681
9483 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9484 NONLOCAL inside ESCAPED.
9485
9486 2014-07-08 Richard Biener <rguenther@suse.de>
9487
9488 PR tree-optimization/61680
9489 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9490 Handle properly all read-write dependences with group accesses.
9491
9492 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9493
9494 PR tree-optimization/61576
9495 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9496 block containing reduction statement is predecessor of phi basi block.
9497
9498 2014-07-08 Marek Polacek <polacek@redhat.com>
9499
9500 PR c/60226
9501 * fold-const.c (round_up_loc): Change the parameter type.
9502 Remove assert.
9503 * fold-const.h (round_up_loc): Adjust declaration.
9504 * stor-layout.c (finalize_record_size): Check for too large types.
9505
9506 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9507
9508 * symtab.c: Include calls.h.
9509 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9510
9511 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9512
9513 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9514 little-endian code generation.
9515 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9516 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9517 (spe_evmergehilo): Rename to...
9518 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9519 (spe_evmergelo): Rename to...
9520 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9521 (spe_evmergelohi): Rename to...
9522 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9523 (spe_evmergehi, spe_evmergehilo): New expanders.
9524 (spe_evmergelo, spe_evmergelohi): Likewise.
9525 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9526 (*frob_tf_ti): Likewise.
9527 (*frob_<mode>_di_2): Likewise.
9528 (*frob_tf_di_8_2): Likewise.
9529 (*frob_di_<mode>): Likewise.
9530 (*frob_ti_tf): Likewise.
9531 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9532 (*frob_ti_<mode>_8_2): Likewise.
9533 (*frob_ti_tf_2): Likewise.
9534 (mov_si<mode>_e500_subreg0): Rename to...
9535 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9536 endianness only.
9537 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9538 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9539 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9540 the big endianness only.
9541 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9542 (*mov_si<mode>_e500_subreg0_2): Rename to...
9543 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9544 big big endianness only.
9545 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9546 (*mov_si<mode>_e500_subreg4): Rename to...
9547 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9548 endianness only.
9549 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9550 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9551 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9552 the big endianness only.
9553 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9554 pattern.
9555 (*mov_si<mode>_e500_subreg4_2): Rename to...
9556 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9557 endianness only.
9558 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9559 (*mov_sitf_e500_subreg8): Rename to...
9560 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9561 endianness only.
9562 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9563 (*mov_sitf_e500_subreg8_2): Rename to...
9564 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9565 endianness only.
9566 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9567 (*mov_sitf_e500_subreg12): Rename to...
9568 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9569 endianness only.
9570 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9571 (*mov_sitf_e500_subreg12_2): Rename to...
9572 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9573 endianness only.
9574 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9575
9576 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9577
9578 * asan.c (instrument_strlen_call): Do not instrument first byte
9579 in strlen if already instrumented.
9580
9581 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9582
9583 * config/arm/arm.opt (mwords-little-endian): Delete.
9584 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9585 of TARGET_LITTLE_WORDS.
9586 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9587 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9588 warning.
9589 * doc/invoke.texi: Remove references to -mwords-little-endian.
9590
9591 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9592
9593 * expmed.c (struct init_expmed_rtl): Change all fields but
9594 pow2 and cint from struct rtx_def to rtx.
9595 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9596 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9597 at the end again.
9598
9599 2014-07-06 Marek Polacek <polacek@redhat.com>
9600
9601 PR c/6940
9602 * doc/invoke.texi: Document -Wsizeof-array-argument.
9603
9604 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9605
9606 * wide-int.h (wide_int_storage): Change declaration from struct
9607 to class.
9608
9609 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9610
9611 * cgraph.c (cgraph_create_indirect_edge): Update call of
9612 get_polymorphic_call_info.
9613 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9614 (possible_polymorphic_call_targets): Add parameter call.
9615 (decl_maybe_in_construction_p): New predicate.
9616 (get_polymorphic_call_info): Add parameter call;
9617 use decl_maybe_in_construction_p.
9618 * gimple-fold.c (fold_gimple_assign): Update use of
9619 possible_polymorphic_call_targets.
9620 (gimple_fold_call): Likewise.
9621 * ipa-prop.c: Inlcude calls.h
9622 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9623 (param_type_may_change_p): New predicate.
9624 (detect_type_change_from_memory_writes): Break out from ...
9625 (detect_type_change): ... this one; use param_type_may_change_p.
9626 (detect_type_change_ssa): Use param_type_may_change_p.
9627 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9628
9629 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9630
9631 PR target/49423
9632 * config/arm/arm-protos.h (arm_legitimate_address_p,
9633 arm_is_constant_pool_ref): Add prototypes.
9634 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9635 (arm_is_constant_pool_ref) New function.
9636 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9637 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9638 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9639 operand. Remove pool_range and neg_pool_range attributes.
9640 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9641 pool_range and neg_pool_range attributes.
9642 * config/arm/constraints.md (Uh): New constraint.
9643 (Uq): Don't allow constant pool references.
9644
9645 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9646
9647 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9648 (move_lo_quad_internal_be_<mode>): Likewise.
9649 (move_lo_quad_<mode>): Convert to define_expand.
9650 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9651 (aarch64_simd_move_hi_quad_be_<mode>): New.
9652 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9653 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9654 (aarch64_combinez_be<mode>): New.
9655 (aarch64_combine<mode>): Convert to define_expand.
9656 (aarch64_combine_internal<mode>): New.
9657 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9658
9659 2014-07-04 Tom de Vries <tom@codesourcery.com>
9660
9661 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9662 combination of earlyclobber and read/write modifiers.
9663
9664 2014-07-04 Tom de Vries <tom@codesourcery.com>
9665
9666 * config/aarch64/aarch64-simd.md
9667 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9668
9669 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9670
9671 PR target/61714
9672 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9673
9674 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9675
9676 PR middle-end/61654
9677 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9678
9679 PR tree-optimization/61684
9680 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9681 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9682
9683 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9684 Kito Cheng <kito@0xlab.org>
9685 Monk Chiang <sh.chiang04@gmail.com>
9686
9687 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9688 (nds32_symbol_load_store_p): Move to ...
9689 (nds32_fp_as_gp_check_available): Move to ...
9690 * config/nds32/nds32-fp-as-gp.c: ... here.
9691 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9692 extern declaration.
9693
9694 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9695 Kito Cheng <kito@0xlab.org>
9696 Monk Chiang <sh.chiang04@gmail.com>
9697
9698 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9699 (nds32_expand_store_multiple): Move to ...
9700 (nds32_expand_movmemqi): Move to ...
9701 * config/nds32/nds32-memory-manipulation.c: ... here.
9702
9703 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9704 Kito Cheng <kito@0xlab.org>
9705 Monk Chiang <sh.chiang04@gmail.com>
9706
9707 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9708 (nds32_output_casesi_pc_relative): Move to ...
9709 (nds32_output_casesi): Move to ...
9710 (nds32_mem_format): Move to ...
9711 (nds32_output_16bit_store): Move to ...
9712 (nds32_output_16bit_load): Move to ...
9713 (nds32_output_32bit_store): Move to ...
9714 (nds32_output_32bit_load): Move to ...
9715 (nds32_output_32bit_load_s): Move to ...
9716 (nds32_output_stack_push): Move to ...
9717 (nds32_output_stack_pop): Move to ...
9718 * config/nds32/nds32-md-auxiliary.c: ... here.
9719
9720 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9721 Ling-Hua Tseng <uranus@tinlans.org>
9722
9723 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9724 the purpose of this file.
9725
9726 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9727 Kito Cheng <kito@0xlab.org>
9728 Monk Chiang <sh.chiang04@gmail.com>
9729
9730 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9731 (nds32_address_cost): Move implementation to ...
9732 * config/nds32/nds32-cost.c: ... here.
9733 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9734 (nds32_address_cost_impl): Declare.
9735
9736 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9737 Kito Cheng <kito@0xlab.org>
9738 Monk Chiang <sh.chiang04@gmail.com>
9739
9740 * config/nds32/nds32.c
9741 (nds32_consecutive_registers_load_store_p): Move to ...
9742 (nds32_valid_multiple_load_store): Move to ...
9743 (nds32_valid_stack_push_pop): Move to ...
9744 (nds32_can_use_bclr_p): Move to ...
9745 (nds32_can_use_bset_p): Move to ...
9746 (nds32_can_use_btgl_p): Move to ...
9747 (nds32_can_use_bitci_p): Move to ...
9748 * config/nds32/nds32-predicates.c: ... here.
9749
9750 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9751 Kito Cheng <kito@0xlab.org>
9752 Monk Chiang <sh.chiang04@gmail.com>
9753
9754 * config/nds32/nds32.c
9755 (nds32_expand_builtin_null_ftype_reg): Move to ...
9756 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9757 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9758 (nds32_init_builtins): Move implementation to ...
9759 (nds32_expand_builtin): Move implementation to ...
9760 * config/nds32/nds32-intrinsic.c: ... here.
9761 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9762 (nds32_expand_builtin_impl): Declare.
9763
9764 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9765 Kito Cheng <kito@0xlab.org>
9766 Monk Chiang <sh.chiang04@gmail.com>
9767
9768 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9769 (nds32_emit_section_tail_template): Move to ...
9770 (nds32_emit_isr_jmptbl_section): Move to ...
9771 (nds32_emit_isr_vector_section): Move to ...
9772 (nds32_emit_isr_reset_conten): Move to ...
9773 (nds32_check_isr_attrs_conflict): Move to ...
9774 (nds32_construct_isr_vectors_information): Move to ...
9775 (nds32_asm_file_start): Move implementation to ...
9776 (nds32_asm_file_end): Move implementation to ...
9777 * config/nds32/nds32-isr.c: ... here.
9778 * config/nds32/nds32-protos.h
9779 (nds32_check_isr_attrs_conflict): Declare.
9780 (nds32_construct_isr_vectors_information): Declare.
9781 (nds32_asm_file_start_for_isr): Declare.
9782 (nds32_asm_file_end_for_isr): Declare.
9783
9784 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9785 Kito Cheng <kito@0xlab.org>
9786 Monk Chiang <sh.chiang04@gmail.com>
9787
9788 * config.gcc (nds32*): Add new modules to extra_objs.
9789 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9790 (nds32be-*-*): Likewise.
9791 * config/nds32/nds32-cost.c: New file.
9792 * config/nds32/nds32-fp-as-gp.c: New file.
9793 * config/nds32/nds32-intrinsic.c: New file.
9794 * config/nds32/nds32-isr.c: New file.
9795 * config/nds32/nds32-md-auxiliary.c: New file.
9796 * config/nds32/nds32-memory-manipulation.c: New file.
9797 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9798 * config/nds32/nds32-predicates.c: New file.
9799 * config/nds32/t-nds32: New file.
9800
9801 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9802
9803 PR tree-optimization/61682
9804 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9805 using cases and when one of the operands is equal to 1.
9806
9807 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9808
9809 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9810 ashr<mode>3): Correct mode of operands[2].
9811 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9812 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9813 Correct mode of operands[2]. Fix split condition.
9814
9815 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9816
9817 * arm.md (arch): Add armv6_or_vfpv3.
9818 (arch_enabled): Add test for the above.
9819 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9820 on VFP9.
9821 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9822
9823 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9824
9825 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9826 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9827 HWI 1 and negate the unsigned value.
9828 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9829 use AND instead of shift.
9830 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9831
9832 2014-07-03 Marek Polacek <polacek@redhat.com>
9833
9834 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9835 (-fsanitize=float-divide-by-zero): Move to the table with
9836 -fsanitize=undefined suboptions.
9837 (-fsanitize=float-cast-overflow): Likewise.
9838
9839 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9840
9841 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9842 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9843 endianness.
9844
9845 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9846
9847 * loop-invariant.c (struct invariant): Add a new member: eqno;
9848 (find_identical_invariants): Update eqno;
9849 (create_new_invariant): Init eqno;
9850 (get_inv_cost): Compute comp_cost with eqno;
9851
9852 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9853
9854 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9855 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9856 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9857 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9858 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9859
9860 2014-07-02 Christian Bruel <christian.bruel@st.com>
9861
9862 PR target/29349
9863 PR target/53513
9864 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9865 (make_preds_opaque): Delete.
9866 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9867 (commit_mode_sets): New function.
9868 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9869 Process all modes at once.
9870 * basic-block.h (pre_edge_lcm_avs): Declare.
9871 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9872 Call clear_aux_for_edges. Fix comments.
9873 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9874 (pre_edge_rev_lcm): Idem.
9875 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9876 parameter.
9877 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9878 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9879 Idem.
9880 * config/i386/i386.c (x96_emit_mode_set): Idem.
9881 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9882 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9883 (fpscr_toggle) Disallow from delay slot.
9884 * target.def (emit_mode_set): Add prev_mode parameter.
9885 * doc/tm.texi: Regenerate.
9886
9887 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9888
9889 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9890 variable i.
9891
9892 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9893
9894 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9895 vtable_pointer_value_to_vtable): Constify.
9896 (contains_polymorphic_type_p): Declare.
9897 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9898 vtable_pointer_value_to_vtable): Constify.
9899 (contains_polymorphic_type_p): New predicate.
9900 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9901 polymorphic types.
9902 (ipa_set_ancestor_jf): Likewise.
9903 (detect_type_change): Return false in easy cases.
9904 (compute_complex_assign_jump_func): Require type to contain
9905 polymorphic type.
9906 (compute_known_type_jump_func): Likewise.
9907
9908 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9909
9910 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9911 Remove.
9912 (type_in_anonymous_namespace_p): Constify argument.
9913 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9914 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9915 (main_odr_variant): New function.
9916 (hash_type_name): Make static; update assert; do not ICE on
9917 non-records.
9918 (types_same_for_odr): Bring here from tree.c; simplify and remove
9919 old structural comparing code that doesn't work for templates.
9920 (odr_hasher::equal): Update assert.
9921 (add_type_duplicate): Return true when bases should be computed;
9922 replace incomplete loader by complete; do not output duplicated
9923 warnings; do not ICE on non-records; set odr_violated flag.
9924 (get_odr_type): Be ready to replace incomplete type by complete
9925 one; work on ODR variants instead of main variants; reorder item
9926 in array so bases have still smaller indexes.
9927 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9928 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9929
9930 2014-07-01 Cary Coutant <ccoutant@google.com>
9931
9932 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9933 lookup.
9934 (resolve_addr_in_expr): When replacing the rtx in a location list
9935 entry, get a new address table entry.
9936 (dwarf2out_finish): Call index_location_lists even if there are no
9937 addr_index_table entries yet.
9938
9939 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9940
9941 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9942 change for not being obvious.
9943
9944 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9945
9946 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9947 unused argument.
9948
9949 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9950
9951 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9952 (vcagt_f64): Likewise.
9953 (vcale_f64): Likewise.
9954 (vcaled_f64): Likewise.
9955 (vcales_f32): Likewise.
9956 (vcalt_f64): Likewise.
9957 (vcaltd_f64): Likewise.
9958 (vcalts_f32): Likewise.
9959
9960 2014-07-01 Marek Polacek <polacek@redhat.com>
9961
9962 * doc/invoke.texi: Document -Wint-conversion.
9963
9964 2014-07-01 Marek Polacek <polacek@redhat.com>
9965
9966 PR c/58286
9967 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9968
9969 2014-07-01 Martin Liska <mliska@suse.cz>
9970
9971 IPA REF alias refactoring
9972 * cgraph.h (iterate_direct_aliases): New function.
9973 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9974 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9975 FOR_EACH_ALIAS added.
9976 (cgraph_for_node_and_aliases): Likewise.
9977 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9978 * ipa-inline.c (reset_edge_caches): Likewise.
9979 (update_caller_keys): Likewise.
9980 * trans-mem.c (ipa_tm_execute): Likewise.
9981 *varpool.c (varpool_analyze_node): Likewise.
9982 (varpool_for_node_and_aliases): Likewise.
9983 * ipa-ref.h (first_alias): New function.
9984 (last_alias): Likewise.
9985 (has_aliases_p): Likewise.
9986 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9987 is sensitive to IPA_REF_ALIASes.
9988 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9989 are put at the beginning of the list.
9990 (symtab_node::iterate_direct_aliases): New function.
9991
9992 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9993
9994 Revert:
9995 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9996 type is complete.
9997 (write_ts_type_common_tree_pointers): Do not stream fields not set
9998 for incomplete types; do not stream duplicated fields for variants;
9999 sanity check that variant and type match.
10000 (write_ts_type_non_common_tree_pointers): Likewise.
10001 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10002 TYPE_SIZE whether type is complete.
10003 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10004 write_ts_type_common_tree_pointers
10005 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10006
10007 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10008
10009 * var-tracking.c (add_stores): Return instead of asserting if old
10010 and new values for conditional store are the same.
10011
10012 2014-06-30 Richard Henderson <rth@redhat.com>
10013
10014 PR rtl-opt/61608
10015 PR target/39284
10016 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10017 the cfg if there were any changes.
10018 * passes.def: Revert move of peephole2 after reorder_blocks;
10019 move duplicate_computed_gotos before peephole2.
10020
10021 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10022
10023 * except.c (emit_note_eh_region_end): New helper function.
10024 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10025 emit EH_REGION_END note.
10026 * jump.c (cleanup_barriers): Do not split a call and its
10027 corresponding CALL_ARG_LOCATION note.
10028
10029 2014-06-30 Jeff Law <law@redhat.com>
10030
10031 PR tree-optimization/61607
10032 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10033 deeper into the SSA_NAME_VALUE chain.
10034
10035 2014-06-30 Marek Polacek <polacek@redhat.com>
10036
10037 * convert.c (convert_to_integer): Don't instrument conversions if the
10038 function has no_sanitize_undefined attribute.
10039 * ubsan.c: Don't run the ubsan pass if the function has
10040 no_sanitize_undefined attribute.
10041
10042 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10043
10044 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10045 -fsanitize=undefined suboptions.
10046
10047 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10048
10049 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10050 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10051 against bigendian and adjust indices.
10052
10053 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10054
10055 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10056
10057 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10058
10059 PR target/61633
10060 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10061 Add alternative; make early clobber. Adjust both split patterns
10062 to use operand 0 as the working register.
10063
10064 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10065
10066 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10067 as ira_object_id_map might be NULL, or 1.
10068
10069 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10070
10071 * loop-invariant.c (get_inv_cost): Handle register class.
10072 (gain_for_invariant): Check the register pressure of the inv
10073 and its overlapped register class, other than all.
10074
10075 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10076
10077 * doc/invoke.texi (Optimize Options): Fix descriptions of
10078 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10079
10080 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10081
10082 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10083 documentation.
10084
10085 2014-06-29 Tobias Grosser <tobias@grosser.es>
10086
10087 PR bootstrap/61650
10088 * graphite-isl-ast-to-gimple.c: Add missing guards.
10089
10090 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10091
10092 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10093 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10094 * flag-types.h: Add new enum fgraphite_generator.
10095 * graphite-isl-ast-to-gimple.c: New.
10096 * graphite-isl-ast-to-gimple.h: New.
10097 * graphite.c (graphite_transform_loops): Add choice of Graphite
10098 code generator, which depends on flag_graphite_code_gen.
10099
10100 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10101
10102 * graphite-dependences.c (subtract_commutative_associative_deps):
10103 Add NULL checking of the following variables: must_raw_no_source,
10104 may_raw_no_source, must_war_no_source, may_war_no_source,
10105 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10106 must_war, may_war, must_waw, may_waw.
10107
10108 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10109
10110 * graphite-clast-to-gimple.c: gloog is renamed to
10111 graphite_regenerate_ast_cloog. gloog_error is renamed to
10112 graphite_regenerate_error.
10113 * graphite-clast-to-gimple.h: The definition of the struct
10114 bb_pbb_def is moved to graphite-htab.h.
10115 Add inclusion of the hash-table.h.
10116 * graphite-htab.h: The declaration of the function gloog is moved
10117 to graphite-clast-to-gimple.h and renamed to
10118 graphite_regenerate_ast_cloog.
10119 * graphite.c (graphite_transform_loops): gloog is renamed
10120 to graphite_regenerate_ast_cloog.
10121
10122 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10123
10124 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10125 type is complete.
10126 (write_ts_type_common_tree_pointers): Do not stream fields not set
10127 for incomplete types; do not stream duplicated fields for variants;
10128 sanity check that variant and type match.
10129 (write_ts_type_non_common_tree_pointers): Likewise.
10130 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10131 TYPE_SIZE whether type is complete.
10132 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10133 write_ts_type_common_tree_pointers
10134 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10135
10136 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10137
10138 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10139
10140 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10141
10142 * tree-inline.c (remap_type_1): Do not duplicate fields
10143 that are shared in between type and its main variant.
10144
10145 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10146
10147 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10148 of the type.
10149 (ipa_set_ancestor_jf) Likewise.
10150 (check_stmt_for_type_change): Check that we work on main variant.
10151 (detect_type_change): Look into main variant.
10152 (compute_known_type_jump_func): Check that main variant has BINFO.
10153
10154 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10155
10156 * ipa-devirt.c (set_type_binfo): New function.
10157 (add_type_duplicate): Use it.
10158 (get_odr_type): Sanity check that binfos points to main variants.
10159 (get_class_context): Be sure the context's outer_type is main variant.
10160 (contains_type_p): Walk main variant.
10161 (get_polymorphic_call_info_for_decl): Set outer_type to be
10162 main variant.
10163 (get_polymorphic_call_info): Likewise.
10164 (possible_polymorphic_call_targets): Sanity check that we operate
10165 on main variant.
10166
10167 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10168
10169 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10170
10171 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10172
10173 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10174 accidental change due to wide-int branch merge.
10175
10176 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10177
10178 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10179 compressed debug support.
10180 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10181 * configure: Regenerate.
10182 * config.in: Regenerate.
10183 * common.opt (compressed_debug_sections): New enum.
10184 (gz, gz=): New options.
10185 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10186 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10187 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10188 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10189 LINK_COMPRESS_DEBUG_SPEC.
10190 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10191 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10192 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10193 (Debugging Options): Document -gz[=type].
10194
10195 2014-06-27 Martin Jambor <mjambor@suse.cz>
10196
10197 PR ipa/61160
10198 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10199 args_to_skip, use those from node instead. Copy args_to_skip and
10200 combined_args_to_skip from node to the new thunk.
10201 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10202 (cgraph_create_virtual_clone): Moved computation of
10203 combined_args_to_skip...
10204 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10205
10206 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10207
10208 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10209 redundant diagnostic machinary.
10210
10211 2014-06-27 Richard Biener <rguenther@suse.de>
10212
10213 * tree-ssa-math-opts.c (bswap_replace): Fix
10214 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10215
10216 2014-06-27 Martin Liska <mliska@suse.cz>
10217
10218 * gimple.h (gimple_location_safe): New function introduced.
10219 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10220 of gimple_location_safe replaces gimple_location.
10221 (gimple_fold_call): Likewise.
10222 * ipa-devirt.c (ipa_devirt): Likewise.
10223 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10224 * ipa.c (walk_polymorphic_call_targets): Likewise.
10225 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10226
10227 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10228
10229 PR tree-optimization/57233
10230 PR tree-optimization/61299
10231 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10232 functions.
10233 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10234 would be lowered to scalar shifts, check if corresponding
10235 shifts and vector BIT_IOR_EXPR are supported and don't lower
10236 or lower just to narrower vector type in that case.
10237 * expmed.c (expand_shift_1): Fix up handling of vector
10238 shifts and rotates.
10239
10240 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10241
10242 PR target/61586
10243 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10244
10245 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10246
10247 * doc/invoke.texi (-fsemantic-interposition): Document.
10248 * common.opt (fsemantic-interposition): New flag.
10249 * varasm.c (decl_replaceable_p): Use it.
10250
10251 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10252
10253 PR target/61542
10254 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10255 extraction other than index 3.
10256
10257 2014-06-26 Teresa Johnson <tejohnson@google.com>
10258
10259 * doc/invoke.texi: Fix typo.
10260 * dumpfile.c: Add support for documented -fdump-* options
10261 optimized/missed/note/optall.
10262
10263 2014-06-26 Martin Jambor <mjambor@suse.cz>
10264
10265 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10266 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10267 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10268 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10269 * opts.c (default_options_optimization): Set
10270 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10271 * doc/invoke.texi (allow-load-data-races)
10272 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10273 (allow-store-data-races): Document the new default.
10274
10275 2014-06-26 Martin Jambor <mjambor@suse.cz>
10276
10277 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10278 renamed to ipa_impossible_devirt_target. Fix typo.
10279 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10280 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10281 ipa_impossible_devirt_target.
10282
10283 2014-06-26 Richard Biener <rguenther@suse.de>
10284
10285 PR tree-optimization/61607
10286 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10287 explaining why we restrict copies on loop depth.
10288 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10289 on loop depth.
10290 (record_equivalences_from_phis): Instead add it here.
10291
10292 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10293
10294 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10295 (LTO_WRAPPER_OBJS): New variable.
10296 (lto-wrapper$(exeext)): Use it.
10297 * collect2.c: Include "collect-utils.h".
10298 (verbose, debug): Remove variables.
10299 (at_file_supplied): No longer static.
10300 (tool_name): New variable.
10301 (do_wait, fork_execute, maybe_unlink): Don't declare.
10302 (tool_cleanup): No longer static.
10303 (notice): Remove function.
10304 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10305 fork_execute calls.
10306 (collect_wait, do_wait, collect_execute): Remove functions.
10307 (maybe_unlink): No longer static.
10308 * collect2.h (verbose, debug): Don't declare.
10309 (at_file_supplied): Declare.
10310 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10311 changed.
10312 (collect_execute): Replace with implementation from collect2, plus a
10313 new arg use_atfile. All callers changed.
10314 (collect_wait): Replace with implementation from collect2.
10315 (maybe_unlink_file): Remove function.
10316 (fork_execute): Replace with implementation from collect2, plus a
10317 new arg use_atfile. All callers changed.
10318 (do_wait): Add call to utils_cleanup to the error path.
10319 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10320 (tool_cleanup): Adjust declarations.
10321 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10322 * tlink.c: Include "collect-utils.h".
10323 (tlink_execute): New arg use_atfile. All callers changed.
10324 (tlink_init, tlink_execute): Remove declarations.
10325
10326 * collect-utils.c (save_temps): New variable.
10327 (do_wait): Use it instead of debug. Use fatal_error.
10328 * collect-utils.h (save_temps): Declare.
10329 * collect2.c (verbose): Rename from vflag. All uses changed.
10330 (tool_cleanup): New function, copied from collect_atexit.
10331 (collect_atexit, handler): Just call it.
10332 * collect2.h (verbose): Declaration renamed from vflag.
10333 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10334 debug.
10335
10336 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10337 (lto-wrapper$(exeext)): Link with collect-utils.o.
10338 * collect-utils.c: New file.
10339 * collect-utils.h: New file.
10340 * lto-wrapper.c: Include "collect-utils.h".
10341 (args_name): Delete variable.
10342 (tool_name): New variable.
10343 (tool_cleanup): New function.
10344 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10345 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10346 (fork_execute): Remove functions.
10347
10348 2014-06-26 Nick Clifton <nickc@redhat.com>
10349
10350 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10351
10352 * doc/extend.texi (Function Attributes): Fix typo in description
10353 of RX vector attribute.
10354
10355 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10356
10357 * config.gcc (supported_defaults): Error when passing either
10358 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10359
10360 2014-06-26 Richard Biener <rguenther@suse.de>
10361
10362 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10363 propagating volatile pointers.
10364
10365 2014-06-26 Richard Biener <rguenther@suse.de>
10366
10367 PR tree-optimization/61607
10368 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10369 loop if we redirected its latch edge.
10370 (thread_block_1): Do not cancel loops prematurely.
10371
10372 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10373
10374 * toplev.c (backend_init_target): Move init_emit_regs and
10375 init_regs to...
10376 (backend_init) ... here; skip ira_init_once and backend_init_target.
10377 (target_reinit) ... and here; clear
10378 this_target_rtl->lang_dependent_initialized.
10379 (lang_dependent_init_target): Clear
10380 this_target_rtl->lang_dependent_initialized;
10381 break out rtl initialization to ...
10382 (initialize_rtl): ... here; call also backend_init_target
10383 and ira_init_once.
10384 * toplev.h (initialize_rtl): New function.
10385 * function.c: Include toplev.h
10386 (init_function_start): Call initialize_rtl.
10387 * rtl.h (target_rtl): Add target_specific_initialized,
10388 lang_dependent_initialized.
10389
10390 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10391 Jakub Jelinek <jakub@redhat.com>
10392
10393 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10394
10395 2014-06-25 Tom de Vries <tom@codesourcery.com>
10396
10397 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10398
10399 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10400
10401 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10402 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10403 Issue a strict overflow warning if appropriate.
10404
10405 2014-06-25 Martin Liska <mliska@suse.cz>
10406
10407 IPA REF refactoring
10408 * Makefile.in: Removed header file (ipa-ref-inline.h).
10409 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10410 called.
10411 (cgraph_speculative_call_info): Likewise.
10412 (cgraph_for_node_thunks_and_aliases): Likewise.
10413 (cgraph_for_node_and_aliases): Likewise.
10414 (verify_cgraph_node): Likewise.
10415 * cgraph.h: Batch of IPA REF functions become member functions of
10416 symtab_node: add_reference, maybe_add_reference, clone_references,
10417 clone_referring, clone_reference, find_reference,
10418 remove_stmt_references, remove_all_references,
10419 remove_all_referring, dump_references, dump_referring,
10420 has_alias_p, iterate_reference, iterate_referring.
10421 * cgraphbuild.c (record_reference): New IPA REF function used.
10422 (record_type_list): Likewise.
10423 (record_eh_tables): Likewise.
10424 (mark_address): Likewise.
10425 (mark_load): Likewise.
10426 (mark_store): Likewise.
10427 (pass_build_cgraph_edges): Likewise.
10428 (rebuild_cgraph_edge): Likewise.
10429 (cgraph_rebuild_references): Likewise.
10430 (pass_remove_cgraph_callee_edges): Likewise.
10431 * cgraphclones.c (cgraph_clone_node): Likewise.
10432 (cgraph_create_virtual_clone): Likewise.
10433 (cgraph_materialize_clone): Likewise.
10434 (cgraph_materialize_all_clones): Likewise.
10435 * cgraphunit.c (cgraph_reset_node): Likewise.
10436 (cgraph_reset_node): Likewise.
10437 (analyze_function): Likewise.
10438 (assemble_thunks_and_aliases): Likewise.
10439 (expand_function): Likewise.
10440 * ipa-comdats.c (propagate_comdat_group): Likewise.
10441 (enqueue_references): Likewise.
10442 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10443 (create_specialized_node): Likewise.
10444 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10445 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10446 * ipa-inline.c (reset_edge_caches): Likewise.
10447 (update_caller_keys): Likewise.
10448 (execute): Likewise.
10449 * ipa-prop.c (remove_described_reference): Likewise.
10450 (propagate_controlled_uses): Likewise.
10451 (ipa_edge_duplication_hook): Likewise.
10452 (ipa_modify_call_arguments): Likewise.
10453 * ipa-pure-const.c (propagate_pure_const): Likewise.
10454 * ipa-ref-inline.h: Header file removed, functions moved
10455 to symtab_node class.
10456 * ipa-ref.c (remove_reference): New class member function.
10457 (cannot_lead_to_return): New class member function.
10458 (referring_ref_list): Likewise.
10459 (referred_ref_list): Likewise.
10460 Rest of functions moved to symtab_node class.
10461 * ipa-ref.h: New member functions remove_reference,
10462 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10463 to ipa_ref class.
10464 ipa_ref_list class has new member functions: first_reference,
10465 first_referring, clear, nreferences.
10466 * ipa-reference.c (analyze_function): New IPA REF function used.
10467 (write_node_summary_p): Likewise.
10468 (ipa_reference_write_optimization_summary): Likewise.
10469 * ipa-split.c (split_function): Likewise.
10470 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10471 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10472 (function_and_variable_visibility): Likewise.
10473 * ipa.c (has_addr_references_p): Likewise.
10474 (process_references): Argument type changed.
10475 (symtab_remove_unreachable_nodes): New IPA REF function used.
10476 (process_references): Likewise.
10477 (set_writeonly_bit): Likewise.
10478 * lto-cgraph.c: Implementation of new symtab_node member functions
10479 that uses new IPA REF functions.
10480 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10481 function used.
10482 * lto-streamer-out.c (output_symbol_p): Likewise.
10483 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10484 changed.
10485 * symtab.c: Implementation of new IPA REF API.
10486 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10487 (ipa_tm_create_version): Likewise.
10488 (ipa_tm_execute): Likewise.
10489 * tree-emutls.c (gen_emutls_addr): Likewise.
10490 * tree-inline.c (copy_bb): Likewise.
10491 (delete_unreachable_blocks_update_callgraph): Likewise.
10492 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10493 (varpool_for_node_and_aliases): Likewise.
10494
10495 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10496
10497 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10498
10499 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10500
10501 PR bootstrap/61598
10502 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10503 tree_node * instead of tree_node *.
10504 (fold): Adjust.
10505 (print_fold_checksum): Likewise.
10506 (fold_check_failed): Likewise.
10507 (debug_fold_checksum): Likewise.
10508 (fold_build1_stat_loc): Likewise.
10509 (fold_build2_stat_loc): Likewise.
10510 (fold_build3_stat_loc): Likewise.
10511 (fold_build_call_array_loc): Likewise.
10512
10513 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10514
10515 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10516 implementation with call to...
10517 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10518 function.
10519 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10520 Declare.
10521
10522 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10523
10524 PR tree-optimization/57742
10525 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10526 after replacing the statement.
10527
10528 2014-06-25 Nick Clifton <nickc@redhat.com>
10529
10530 * config/v850/v850.c (GHS_default_section_names): Change to const
10531 char * type.
10532 (GHS_current_section_names): Likewise.
10533 (v850_insert_attributes): Do not build strings, just assign the
10534 names directly. Change the type of 'chosen_section' to const
10535 char*.
10536 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10537 directly to the array entry.
10538 * config/v850/v850.h (GHS_default_section_names): Change to const
10539 char * type.
10540 (GHS_current_section_names): Likewise.
10541
10542 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10543
10544 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10545 (LANG_HOOKS_DECLS): Add it.
10546 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10547 has correct type.
10548 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10549 * langhooks.h (struct lang_hooks_for_decls): Add
10550 omp_clause_linear_ctor hook.
10551 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10552 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10553 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10554 combined simd loop use omp_clause_linear_ctor hook.
10555
10556 2014-06-24 Cong Hou <congh@google.com>
10557
10558 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10559 pattern recognition.
10560 (type_conversion_p): PROMOTION is true if it's a type promotion
10561 conversion, and false otherwise. Return true if the given expression
10562 is a type conversion one.
10563 * tree-vectorizer.h: Adjust the number of patterns.
10564 * tree.def: Add SAD_EXPR.
10565 * optabs.def: Add sad_optab.
10566 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10567 * expr.c (expand_expr_real_2): Likewise.
10568 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10569 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10570 * optabs.c (optab_for_tree_code): Likewise.
10571 * tree-cfg.c (estimate_operator_cost): Likewise.
10572 * tree-ssa-operands.c (get_expr_operands): Likewise.
10573 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10574 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10575 * doc/generic.texi: Add document for SAD_EXPR.
10576 * doc/md.texi: Add document for ssad and usad.
10577
10578 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10579
10580 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10581 qualification in cast.
10582
10583 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10584
10585 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10586 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10587 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10588 (tree_function_decl): ... here.
10589 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10590 streaming of vindex to ...
10591 (write_ts_function_decl_tree_pointers): ... here.
10592 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10593 Do not stream DECL_VINDEX.
10594 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10595
10596 2014-06-24 Catherine Moore <clm@codesourcery.com>
10597 Sandra Loosemore <sandra@codesourcery.com>
10598
10599 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10600 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10601 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10602
10603 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10604
10605 * doc/invoke.texi (Warning Options): Remove duplicated
10606 -Wmaybe-uninitialized.
10607
10608 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10609
10610 PR tree-optimization/57742
10611 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10612 (handle_builtin_malloc, handle_builtin_memset): New functions.
10613 (strlen_optimize_stmt): Call them.
10614 * passes.def: Move strlen after loop+dom but before vrp.
10615
10616 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10617
10618 PR target/61570
10619 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10620 model family 6 CPU with has_longmode never use a CPU without
10621 64-bit support.
10622
10623 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10624
10625 PR target/61570
10626 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10627 the last change.
10628
10629 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10630
10631 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10632 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10633 pointer_map.
10634 * hash-map.h: New file.
10635 * ipa-comdats.c: Use hash_map instead of pointer_map.
10636 * ipa.c: Likewise.
10637 * lto-section-out.c: Adjust.
10638 * lto-streamer.h: Replace pointer_map with hash_map.
10639 * symtab.c (verify_symtab): Likewise.
10640 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10641 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10642 * tree-streamer.h: Likewise.
10643 * tree-streamer.c: Adjust.
10644 * pointer-set.h: Remove pointer_map.
10645
10646 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10647
10648 * hash-table.h: Add a template arg to choose between storing values
10649 and storing pointers to values, and then provide partial
10650 specializations for both.
10651 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10652 should store, not the type values should point to.
10653 * tree-into-ssa.c (var_info_hasher): Likewise.
10654 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10655 * tree-complex.c: Adjust.
10656 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10657 table instead of int_tree_map *.
10658 * tree-parloops.c: Adjust.
10659 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10660 type is being stored.
10661 * tree-vectorizer.c: Adjust.
10662
10663 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10664
10665 * hash-table.h: Remove a layer of indirection from hash_table so that
10666 it contains the hash table's data instead of a pointer to the data.
10667 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10668 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10669 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10670 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10671 fold-const.c, gcse.c, ggc-common.c,
10672 gimple-ssa-strength-reduction.c, gimplify.c,
10673 graphite-clast-to-gimple.c, graphite-dependences.c,
10674 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10675 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10676 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10677 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10678 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10679 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10680 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10681 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10682 tree-ssa-live.c, tree-ssa-loop-im.c,
10683 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10684 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10685 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10686 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10687 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10688 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10689 vtable-verify.c, vtable-verify.h: Adjust.
10690
10691 2014-06-24 Richard Biener <rguenther@suse.de>
10692
10693 PR tree-optimization/61572
10694 * tree-ssa-sink.c (statement_sink_location): Do not sink
10695 loads from hard registers.
10696
10697 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10698
10699 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10700 not mentioned in clauses use private clause if the iterator is
10701 declared in #pragma omp for simd, and when adding lastprivate
10702 instead, add it to the outer #pragma omp for too. Diagnose
10703 if the variable is private in outer context. For simd collapse > 1
10704 loops, replace all iterators with temporaries.
10705 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10706 same even in collapse > 1 loops.
10707
10708 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10709 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10710 non-NULL.
10711 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10712 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10713 non-NULL.
10714 (gimplify_adjust_omp_clauses): Likewise.
10715 * omp-low.c (lower_rec_simd_input_clauses,
10716 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10717 safelen the same as safelen(1).
10718 * tree-nested.c (convert_nonlocal_omp_clauses,
10719 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10720 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10721 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10722 Fixup handling of GIMPLE_OMP_TARGET.
10723 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10724 GIMPLE_OMP_TARGET.
10725
10726 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10727
10728 PR tree-optimization/61554
10729 * tree-ssa-propagate.c: Include "bitmap.h".
10730 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10731 properly update constructor/destructor.
10732 (substitute_and_fold_dom_walker::before_dom_children):
10733 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10734 need_eh_cleaup instead.
10735 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10736 need_eh_cleanup.
10737
10738 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10739
10740 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10741 * tree-pass.h (make_pass_ipa_single_use): New pass.
10742 * cgraph.h (used_by_single_function): New flag.
10743 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10744 Stream it.
10745 * passes.def (pass_ipa_single_use): Scedule.
10746 * ipa.c (BOTTOM): New macro.
10747 (meet): New function
10748 (propagate_single_user): New function.
10749 (ipa_single_use): New function.
10750 (pass_data_ipa_single_use): New pass.
10751 (pass_ipa_single_use): New pass.
10752 (pass_ipa_single_use::gate): New gate.
10753 (make_pass_ipa_single_use): New function.
10754
10755 2014-06-23 Kai Tietz <ktietz@redhat.com>
10756
10757 PR target/39284
10758 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10759 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10760
10761 2014-06-23 Richard Biener <rguenther@suse.de>
10762
10763 * tree-ssa-loop.c (gate_loop): New function.
10764 (pass_tree_loop::gate): Call it.
10765 (pass_data_tree_no_loop, pass_tree_no_loop,
10766 make_pass_tree_no_loop): New.
10767 * tree-vectorizer.c: Include tree-scalar-evolution.c
10768 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10769 required.
10770 (pass_slp_vectorize::clone): New method.
10771 * timevar.def (TV_TREE_NOLOOP): New.
10772 * tree-pass.h (make_pass_tree_no_loop): Declare.
10773 * passes.def (pass_tree_no_loop): New pass group with
10774 SLP vectorizer.
10775
10776 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10777
10778 PR target/61570
10779 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10780 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10781
10782 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10783
10784 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10785 "yes" where needed.
10786
10787 2014-06-23 Alan Modra <amodra@gmail.com>
10788
10789 PR bootstrap/61583
10790 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10791 to zero on debug statements.
10792
10793 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10794
10795 PR target/60825
10796 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10797 Ignore third operand if present by marking qualifier_internal.
10798
10799 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10800
10801 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10802 vector extension.
10803 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10804 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10805 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10806 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10807 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10808 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10809 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10810 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10811 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10812 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10813 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10814 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10815 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10816 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10817 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10818 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10819 logic in GCC vector extensions
10820
10821 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10822 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10823 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10824 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10825 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10826 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10827 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10828 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10829 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10830 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10831
10832 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10833
10834 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10835 extensions.
10836
10837 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10838 (vget_low_s64): Use __GET_LOW macro.
10839 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10840 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10841 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10842 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10843 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10844
10845 (vcombine_s64): Use GCC vector extensions; remove cast.
10846 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10847 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10848 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10849 Fix type signature; remove cast.
10850
10851 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10852
10853 PR target/60825
10854 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10855 V1DFmode.
10856 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10857 add V1DFmode
10858 (BUILTIN_VD1): New.
10859 (BUILTIN_VD_RE): Remove.
10860 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10861 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10862 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10863 variant but not df.
10864 (vreinterpretv1df*, vreinterpret*v1df): New.
10865 (vreinterpretdf*, vreinterpret*df): Remove.
10866 * config/aarch64/aarch64-simd.md (aarch64_create,
10867 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10868 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10869 (VD1): New.
10870 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10871 (vcreate_f64): Remove cast, use v1df builtin.
10872 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10873 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10874 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10875 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10876 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10877 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10878 add range check using __builtin_aarch64_im_lane_boundsi.
10879 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10880 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10881 type signature, use gcc vector extensions.
10882 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10883 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10884 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10885 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10886 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10887 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10888 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10889 vreinterpret_u64_f64): Use v1df builtin not df.
10890
10891 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10892
10893 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10894 vector registers.
10895
10896 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10897
10898 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10899 priority directly.
10900
10901 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10902
10903 * loop-invariant.c (pre_check_invariant_p): New function.
10904 (find_invariant_insn): Call pre_check_invariant_p.
10905
10906 2014-06-22 Richard Henderson <rth@redhat.com>
10907
10908 PR target/61565
10909 * compare-elim.c (struct comparison): Add eh_note.
10910 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10911 a redundant comparison in a different EH region. Purge EH edges if
10912 necessary.
10913
10914 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10915
10916 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10917 (var_shift): Use it.
10918 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10919 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10920 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10921 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10922 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10923 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10924 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10925 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10926 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10927 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10928 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10929 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10930 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10931 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10932 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10933 *rotldi3_internal15be): Use the new attribute. Merge register and
10934 integer alternatives.
10935
10936 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10937
10938 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10939 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10940 split, *ashrdi3_internal3 and split): Delete, merge into...
10941 (ashr<mode>3): New expander.
10942 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10943 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10944
10945 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10946
10947 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10948 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10949 *rotldi3_internal3 and split): Delete, merge into...
10950 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10951 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10952 Use "rotlw" extended mnemonic.
10953
10954 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10955
10956 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10957 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10958 and split, *ashldi3_internal3 and split): Delete, merge into...
10959 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10960 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10961
10962 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10963
10964 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10965 (lshrsi3, two anonymous define_insns and define_splits,
10966 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10967 *lshrdi3_internal3 and split): Delete, merge into...
10968 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10969 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10970
10971 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10972
10973 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10974 Remove "O" alternative.
10975
10976 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10977
10978 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10979 (mips_move_from_gpr_cost): Likewise.
10980 (mips_register_move_cost): Update accordingly.
10981 (mips_secondary_reload_class): Remove name of in_p.
10982
10983 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10984
10985 PR target/61503
10986 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10987 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10988
10989 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10990
10991 * config/nios2/nios2.c: Include "builtins.h".
10992
10993 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10994
10995 * cgraph.h (tls_model_names): New variable.
10996 * print-tree.c (print_node): Simplify.
10997 * varpool.c (tls_model_names): New variable.
10998 (dump_varpool_node): Output tls model.
10999
11000 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11001
11002 * ipa-visibility.c (function_and_variable_visibility): Disable
11003 temporarily local aliases for some targets.
11004
11005 2014-06-20 Marek Polacek <polacek@redhat.com>
11006
11007 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11008 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11009 into SANITIZE_UNDEFINED.
11010 * doc/invoke.texi: Describe -fsanitize=bounds.
11011 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11012 functions created in the FEs.
11013 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11014 (expand_UBSAN_BOUNDS): New function.
11015 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11016 * internal-fn.h: Don't define internal functions here.
11017 * opts.c (common_handle_option): Add -fsanitize=bounds.
11018 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11019 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11020 * tree-core.h: Define internal functions here.
11021 (struct tree_base): Add ifn field.
11022 * tree-pretty-print.c: Include "internal-fn.h".
11023 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11024 * tree.c (get_callee_fndecl): Likewise.
11025 (build_call_expr_internal_loc): New function.
11026 * tree.def (CALL_EXPR): Update description.
11027 * tree.h (CALL_EXPR_IFN): Define.
11028 (build_call_expr_internal_loc): Declare.
11029 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11030 types.
11031 (ubsan_type_descriptor): Change bool parameter to enum
11032 ubsan_print_style. Adjust the code. Add handling of
11033 UBSAN_PRINT_ARRAY.
11034 (ubsan_expand_bounds_ifn): New function.
11035 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11036 (ubsan_build_overflow_builtin): Likewise.
11037 (instrument_bool_enum_load): Likewise.
11038 (ubsan_instrument_float_cast): Likewise.
11039 * ubsan.h (enum ubsan_print_style): New enum.
11040 (ubsan_expand_bounds_ifn): Declare.
11041 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11042
11043 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11044
11045 * config/rs6000/rs6000.md: Append `DONE' to preparation
11046 statements of `bswap' pattern splitters.
11047
11048 2014-06-20 Tom de Vries <tom@codesourcery.com>
11049
11050 * target.def (call_fusage_contains_non_callee_clobbers): Update
11051 definition.
11052 * doc/tm.texi: Regenerate.
11053
11054 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11055 Max Ostapenko <m.ostapenko@partner.samsung.com>
11056
11057 PR sanitizer/61547
11058 * asan.c (instrument_strlen_call): Fixed instrumentation of
11059 trailing byte.
11060
11061 2014-06-20 Martin Jambor <mjambor@suse.cz>
11062
11063 PR ipa/61540
11064 * ipa-prop.c (impossible_devirt_target): New function.
11065 (try_make_edge_direct_virtual_call): Use it, also instead of
11066 asserting.
11067
11068 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11069 Max Ostapenko <m.ostapenko@partner.samsung.com>
11070
11071 PR sanitizer/61530
11072 * asan.c (build_check_stmt): Add condition.
11073
11074 2014-06-20 Martin Jambor <mjambor@suse.cz>
11075
11076 PR ipa/61211
11077 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11078 expanded clones.
11079
11080 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11081
11082 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11083 Update comments.
11084 (VCONQ): Make comment more helpful.
11085 (VCON): Delete.
11086 * config/aarch64/aarch64-simd.md
11087 (aarch64_sqdmulh_lane<mode>):
11088 Use VCOND for operands 2. Update lane checking and flipping logic.
11089 (aarch64_sqrdmulh_lane<mode>): Likewise.
11090 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11091 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11092 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11093 attribute of operand 3 to VCOND.
11094 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11095 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11096 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11097 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11098 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11099 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11100 define_insn.
11101 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11102 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11103 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11104 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11105 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11106 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11107 operand to VCOND. Update lane flipping and bounds checking logic.
11108 (aarch64_sqdmlal2_lane<mode>): Likewise.
11109 (aarch64_sqdmlsl_lane<mode>): Likewise.
11110 (aarch64_sqdmull_lane<mode>): Likewise.
11111 (aarch64_sqdmull2_lane<mode>): Likewise.
11112 (aarch64_sqdmlal_laneq<mode>):
11113 Replace VCON usage with VCONQ.
11114 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11115 (aarch64_sqdmlal2_laneq<mode>): Emit
11116 aarch64_sqdmlal2_laneq<mode>_internal insn.
11117 Replace VCON with VCONQ.
11118 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11119 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11120 (aarch64_sqdmull_laneq<mode>): Emit
11121 aarch64_sqdmull_laneq<mode>_internal insn.
11122 Replace VCON with VCONQ.
11123 (aarch64_sqdmull2_laneq<mode>): Emit
11124 aarch64_sqdmull2_laneq<mode>_internal insn.
11125 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11126 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11127 of 3rd argument to int16x4_t.
11128 (vqdmlalh_lane_s16): Likewise.
11129 (vqdmlslh_lane_s16): Likewise.
11130 (vqdmull_high_lane_s16): Likewise.
11131 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11132 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11133 (vqdmlsl_lane_s16): Likewise.
11134 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11135 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11136 (vqdmlals_lane_s32): Likewise.
11137 (vqdmlsls_lane_s32): Likewise.
11138 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11139 (vqdmulls_lane_s32): Likewise.
11140 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11141 (vqdmlsl_lane_s32): Likewise.
11142 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11143 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11144 (vqrdmulhh_lane_s16): Likewise.
11145 (vqdmlsl_high_lane_s16): Likewise.
11146 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11147 (vqdmlsl_high_lane_s32): Likewise.
11148 (vqrdmulhs_lane_s32): Likewise.
11149
11150 2014-06-20 Tom de Vries <tom@codesourcery.com>
11151
11152 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11153 get_call_reg_set_usage.
11154
11155 2014-06-20 Tom de Vries <tom@codesourcery.com>
11156
11157 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11158 it contains all call_used_regs.
11159
11160 2014-06-20 Tom de Vries <tom@codesourcery.com>
11161
11162 * final.c (collect_fn_hard_reg_usage): Add and use variable
11163 function_used_regs.
11164
11165 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11166
11167 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11168 (set_init_priority, get_init_priority, set_fini_priority,
11169 get_fini_priority): New methods.
11170 * tree.c (init_priority_for_decl): Remove.
11171 (init_ttree): Do not initialize init priority.
11172 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11173 (decl_priority_info): Remove.
11174 (decl_init_priority_insert): Rewrite.
11175 (decl_fini_priority_insert): Rewrite.
11176 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11177 tree_priority_map_marked_p): Remove.
11178 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11179 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11180 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11181 not output priorities.
11182 (pack_ts_function_decl_value_fields): Likewise.
11183 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11184 not input priorities.
11185 (unpack_ts_function_decl_value_fields): Likewise.
11186 * symtab.c (symbol_priority_map): Declare.
11187 (init_priority_hash): Declare.
11188 (symtab_unregister_node): Unregister from priority hash, too.
11189 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11190 New methods.
11191 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11192 (symbol_priority_info): New function.
11193 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11194 New methods.
11195 * tree-core.h (tree_priority_map): Remove.
11196
11197 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11198
11199 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11200 0xff to uint64_t before shifting it up.
11201
11202 2014-06-20 Julian Brown <julian@codesourcery.com>
11203 Chung-Lin Tang <cltang@codesourcery.com>
11204
11205 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11206 TARGET_THUMB1_ONLY. Add comments.
11207
11208 2014-06-19 Tom de Vries <tom@codesourcery.com>
11209
11210 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11211 return type to void.
11212 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11213
11214 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11215
11216 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11217 as "move", from depends_on.
11218
11219 2014-06-19 Terry Guo <terry.guo@arm.com>
11220
11221 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11222 stage.
11223
11224 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11225
11226 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11227 Remove cr5.
11228 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11229
11230 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11231
11232 PR target/61550
11233 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11234 addresses here if reload in progress or completed.
11235
11236 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11237
11238 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11239 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11240 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11241 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11242 (mips_register_priority): New function that implements the target
11243 hook TARGET_REGISTER_PRIORITY.
11244 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11245 (mips_lra_p): Likewise for TARGET_LRA_P.
11246 (TARGET_REGISTER_PRIORITY): Define macro.
11247 (TARGET_SPILL_CLASS): Likewise.
11248 (TARGET_LRA_P): Likewise.
11249 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11250 classes.
11251 (REG_CLASS_NAMES): Likewise.
11252 (REG_CLASS_CONTENTS): Likewise.
11253 (BASE_REG_CLASS): Use M16_SP_REGS.
11254 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11255 New set attribute to enable alternatives depending on the register
11256 allocator used.
11257 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11258 (*lea64): Disable pattern for MIPS16.
11259 * config/mips/mips.opt (mlra): New option.
11260
11261 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11262
11263 * lra-constraints.c (base_to_reg): New function.
11264 (process_address): Use new function.
11265
11266 2014-06-18 Tom de Vries <tom@codesourcery.com>
11267
11268 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11269 * config/aarch64/aarch64.c
11270 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11271 (aarch64_emit_call_insn): New function.
11272 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11273 of emit_call_insn.
11274 * config/aarch64/aarch64.md (define_expand "call_internal")
11275 (define_expand "call_value_internal", define_expand "sibcall_internal")
11276 (define_expand "sibcall_value_internal"): New.
11277 (define_expand "call", define_expand "call_value")
11278 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11279 expand variant and aarch64_emit_call_insn.
11280
11281 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11282 Tom de Vries <tom@codesourcery.com>
11283
11284 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11285 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11286 Redefine to true.
11287 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11288 clobbers to CALL_INSN_FUNCTION_USAGE.
11289 (define_expand "sibcall_internal")
11290 (define_expand "sibcall_value_internal"): New.
11291 (define_expand "call", define_expand "call_value"): Add argument to
11292 arm_emit_call_insn.
11293 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11294 (define_expand "sibcall_value"): Use sibcall_value_internal and
11295 arm_emit_call_insn.
11296
11297 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11298
11299 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11300
11301 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11302
11303 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11304 __udivmoddi4.
11305
11306 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11307
11308 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11309 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11310 annotations. Fix DWARF information.
11311
11312 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11313
11314 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11315 __udivmoddi4, and fixups for negative operands.
11316
11317 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11318
11319 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11320
11321 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11322
11323 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11324 to __udivmoddi4.
11325
11326 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11327
11328 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11329 manipulation.
11330
11331 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11332
11333 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11334 describing register usage on function entry and exit.
11335
11336 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11337
11338 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11339 (__aeabi_ldivmod): Fix whitespace.
11340
11341 2014-06-18 Andreas Schwab <schwab@suse.de>
11342
11343 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11344 Remove blank line after @item.
11345
11346 2014-06-18 Richard Henderson <rth@redhat.com>
11347
11348 PR target/61545
11349 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11350
11351 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11352
11353 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11354 POST_MODIFY for neon loads and stores.
11355 (arm_print_operand): Output post-index register for neon loads and
11356 stores.
11357
11358 2014-06-18 Richard Biener <rguenther@suse.de>
11359
11360 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11361
11362 2014-06-18 Richard Biener <rguenther@suse.de>
11363
11364 * tree-pass.h (make_pass_dce_loop): Remove.
11365 * passes.def: Replace pass_dce_loop with pass_dce.
11366 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11367 changed free niter estimates and reset the scev cache.
11368 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11369 make_pass_dce_loop): Remove.
11370 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11371 (fini_copy_prop): Return whether something changed. Always
11372 let substitute_and_fold perform DCE and free niter estimates
11373 and reset the scev cache if so.
11374 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11375 (pass_data_copy_prop): Do not unconditionally schedule
11376 cleanup-cfg or update-ssa.
11377
11378 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11379
11380 PR tree-optimization/61518
11381 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11382 reduction var is used in reduction stmt or phi-function only.
11383
11384 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11385
11386 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11387
11388 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11389
11390 PR tree-optimization/61517
11391 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11392 whose rhs's first tree is the source expression instead of the
11393 expression itself.
11394 (find_bswap_or_nop): Likewise.
11395 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11396 gimple stmt whose rhs's first tree is the source. In the memory source
11397 case, move the stmt to be replaced close to one of the original load to
11398 avoid the problem of a store between the load and the stmt's original
11399 location.
11400 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11401 signature.
11402
11403 2014-06-18 Andreas Schwab <schwab@suse.de>
11404
11405 PR rtl-optimization/54555
11406 * postreload.c (move2add_use_add2_insn): Substitute
11407 STRICT_LOW_PART only if it is cheaper.
11408
11409 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11410
11411 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11412 Do not use unspec as call operand. Use memory_operand instead of
11413 memory_nox32_operand and add "m" operand constraint. Disable
11414 pattern for TARGET_X32.
11415 (*sibcall_pop_memory): Ditto.
11416 (*sibcall_value_memory): Ditto.
11417 (*sibcall_value_pop_memory): Ditto.
11418 (sibcall peepholes): Merge SImode and DImode patterns using
11419 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11420 Disable pattern for TARGET_X32. Check if eliminated register is
11421 really dead after call insn. Generate call RTX without unspec operand.
11422 (sibcall_value peepholes): Ditto.
11423 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11424 instead of memory_nox32_operand. Check if eliminated register is
11425 really dead after call insn. Generate call RTX without unspec operand.
11426 (sibcall_value_pop peepholes): Ditto.
11427 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11428
11429 2014-06-18 Terry Guo <terry.guo@arm.com>
11430
11431 PR target/61544
11432 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11433 reach the head.
11434
11435 2014-06-18 Olivier Hainque <hainque@adacore.com>
11436
11437 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11438 memorization of the end of block source location.
11439 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11440 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11441 end source location info we have on the block entry/exit code we
11442 generate.
11443
11444 2014-06-18 Richard Biener <rguenther@suse.de>
11445
11446 * common.opt (fssa-phiopt): New option.
11447 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11448 but not with -Og.
11449 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11450 * doc/invoke.texi (-fssa-phiopt): Document.
11451
11452 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11453
11454 * genattrtab.c (n_bypassed): New variable.
11455 (process_bypasses): Initialise n_bypassed.
11456 Count number of bypassed reservations.
11457 (make_automaton_attrs): Allocate space for bypassed reservations
11458 rather than number of bypasses.
11459
11460 2014-06-18 Richard Biener <rguenther@suse.de>
11461
11462 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11463 we propagated anything.
11464 (substitute_and_fold_dom_walker::before_dom_children): Something
11465 changed if we propagated into PHI arguments.
11466 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11467 we removed a stmt.
11468
11469 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11470
11471 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11472 vector case.
11473 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11474 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11475 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11476 Introduces alternative way of loads group permutaions.
11477 (vect_transform_grouped_load): Try alternative way of permutations.
11478
11479 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11480
11481 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11482 changed in ORT_TARGET region, don't jump to do_outer.
11483 (struct gimplify_adjust_omp_clauses_data): New type.
11484 (gimplify_adjust_omp_clauses_1): Adjust for data being
11485 a struct gimplify_adjust_omp_clauses_data pointer instead
11486 of tree *. Pass pre_p as a new argument to
11487 lang_hooks.decls.omp_finish_clause hook.
11488 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11489 splay_tree_foreach to pass both list_p and pre_p.
11490 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11491 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11492 gimplify_adjust_omp_clauses callers.
11493 * langhooks.c (lhd_omp_finish_clause): New function.
11494 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11495 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11496 * langhooks.h (struct lang_hooks_for_decls): Add a new
11497 gimple_seq * argument to omp_finish_clause hook.
11498 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11499 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11500 (scan_omp_parallel, lower_omp_for): When adding
11501 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11502 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11503 * tree-nested.c (convert_nonlocal_omp_clauses,
11504 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11505 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11506
11507 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11508
11509 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11510 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11511
11512 2014-06-17 Xinliang David Li <davidxl@google.com>
11513
11514 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11515 * passes.c (pass_init_dump_file): Do not set initialize
11516 flag to false unconditionally.
11517
11518 2014-06-17 Richard Biener <rguenther@suse.de>
11519
11520 * genopinit.c (main): Use vec<>::qsort method.
11521 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11522 Likewise.
11523 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11524
11525 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11526
11527 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11528 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11529 (mips_move_to_gpr_cost): Remove ST_REGS case.
11530 (mips_move_from_gpr_cost): Likewise.
11531 (mips_register_move_cost): Likewise.
11532 (mips_secondary_reload_class): Likewise.
11533
11534 2014-06-17 Richard Biener <rguenther@suse.de>
11535
11536 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11537 (pass_all_optimizations): Move 3rd copy-prop pass from after
11538 fre to before ifcombine/phiopt.
11539
11540 2014-06-17 Richard Biener <rguenther@suse.de>
11541
11542 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11543 and allow all blocks to be forwarders.
11544
11545 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11546
11547 PR target/61483
11548 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11549 variable 'size'; calculate 'size' right in the front; use
11550 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11551 pcum->aapcs_stack_words.
11552
11553 2014-06-17 Nick Clifton <nickc@redhat.com>
11554
11555 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11556 (umulhi3, mulsidi3, umulsidi3): Likewise.
11557
11558 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11559
11560 PR middle-end/61508
11561 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11562 check for section name.
11563
11564 2014-06-17 Richard Biener <rguenther@suse.de>
11565
11566 * tree-ssa-propagate.c: Include domwalk.h.
11567 (substitute_and_fold): Outline main worker into a domwalker ...
11568 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11569 Schedule stmts we can fully propagate for removal. Remove
11570 poor-mans DCE.
11571 (substitute_and_fold): Apply a dominator walk to perform
11572 substitution. Process stmts scheduled for removal here.
11573
11574 2014-06-17 Richard Biener <rguenther@suse.de>
11575
11576 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11577 of PHI node moving.
11578
11579 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11580
11581 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11582 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11583 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11584 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11585 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11586 TARGET_HARD_FLOAT.
11587 (get_fpscr) : Likewise.
11588
11589 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11590
11591 PR rtl-optimization/61325
11592 * lra-constraints.c (valid_address_p): Add forward declaration.
11593 (simplify_operand_subreg): Check address validity before and after
11594 alter_reg of memory subreg.
11595
11596 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11597
11598 * config/i386/i386.c (decide_alg): Correctly handle
11599 maximum size of stringop algorithm.
11600
11601 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11602
11603 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11604
11605 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11606
11607 PR rtl-optimization/61522
11608 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11609
11610 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11611
11612 Revert:
11613 * symtab.c (symtab_node::reset_section): New method.
11614 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11615 for localization.
11616 * cgraph.h (reset_section): Declare.
11617 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11618 do not consider comdat locals.
11619 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11620 for new symbol.
11621 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11622 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11623 reset sections of symbols dragged out of the comdats.
11624 (function_and_variable_visibility): Reset sections of
11625 localized symbols.
11626
11627 2014-06-16 Richard Biener <rguenther@suse.de>
11628
11629 PR tree-optimization/61482
11630 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11631 [-INF(OVF), +INF(OVF)] range.
11632
11633 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11634
11635 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11636 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11637 handling 32-bit multiplication.
11638
11639 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11640
11641 PR middle-end/61430
11642 * lra-lives.c (process_bb_lives): Skip creating copy during
11643 insn scan when src/dest has constrained to same regno.
11644
11645 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11646
11647 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11648 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11649
11650 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11651
11652 * asan.c (check_func): New function.
11653 (maybe_create_ssa_name): Likewise.
11654 (build_check_stmt_with_calls): Likewise.
11655 (use_calls_p): Likewise.
11656 (report_error_func): Change interface.
11657 (build_check_stmt): Allow non-integer lengths; add support
11658 for new parameter.
11659 (asan_instrument): Likewise.
11660 (instrument_mem_region_access): Moved code to build_check_stmt.
11661 (instrument_derefs): Likewise.
11662 (instrument_strlen_call): Likewise.
11663 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11664 * doc/invoke.texi: Describe new parameter.
11665 * params.def: Define new parameter.
11666 * params.h: Likewise.
11667 * sanitizer.def: Describe new builtins.
11668
11669 2014-06-16 Richard Biener <rguenther@suse.de>
11670
11671 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11672 Make all defs available at the end.
11673 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11674
11675 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11676
11677 PR plugins/45078
11678 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11679
11680 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11681
11682 PR bootstrap/61516
11683 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11684 initialization. Replace remaining use of uid.
11685
11686 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11687
11688 * c-family/c-common.c (handle_tls_model_attribute): Use
11689 set_decl_tls_model.
11690 * c-family/c-common.c (handle_tls_model_attribute): Use
11691 set_decl_tls_model.
11692 * cgraph.h (struct varpool_node): Add tls_model.
11693 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11694 * tree.h (DECL_TLS_MODEL): Update.
11695 (DECL_THREAD_LOCAL_P): Check that variable is static.
11696 (decl_tls_model): Declare.
11697 (set_decl_tls_model): Declare.
11698 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11699 set symbol prorperties.
11700 (get_emutls_init_templ_addr): Cleanup.
11701 (new_emutls_decl): Update.
11702 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11703 (lto_input_varpool_node): Likewise.
11704 * lto-streamer-out.c (hash_tree): Likewise.
11705 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11706 not stream DECL_TLS_MODEL.
11707 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11708 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11709
11710 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11711
11712 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11713
11714 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11715
11716 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11717 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11718 lists.
11719 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11720 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11721 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11722 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11723 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11724 (df_get_artificial_defs, df_get_artificial_uses)
11725 (df_single_def, df_single_use): Update accordingly.
11726 (df_refs_chain_dump): Take the first element in a linked list as
11727 parameter, rather than a pointer to an array of pointers.
11728 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11729 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11730 (df_chain_create_bb_process_use): Likewise.
11731 (df_md_bb_local_compute_process_def): Likewise.
11732 * fwprop.c (process_defs, process_uses): Likewise.
11733 (register_active_defs, update_uses): Likewise.
11734 (forward_propagate_asm): Update for new df_ref linking.
11735 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11736 (df_null_ref_rec, df_null_mw_rec): Likewise.
11737 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11738 explicitly.
11739 (df_scan_free_bb_info): Remove check for null artificial_defs.
11740 (df_install_ref_incremental): Adjust for new df_ref linking.
11741 Use a single-element insertion rather than a full sort.
11742 (df_ref_chain_delete_du_chain): Take the first element
11743 in a linked list as parameter, rather than a pointer to an array of
11744 pointers.
11745 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11746 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11747 (df_insn_info_delete): Remove check for null defs and call to
11748 df_scan_free_mws_vec.
11749 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11750 null rather than df_null_*_rec.
11751 (df_insn_rescan_debug_internal): Likewise, and update null
11752 checks in the same way. Remove check for null defs.
11753 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11754 Move a single element rather doing a full sort.
11755 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11756 linking.
11757 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11758 Initialize df_ref and df_mw_hardreg lists to null rather than
11759 df_null_*_rec.
11760 (df_ref_compare): Take df_refs as parameter, transferring the
11761 old interface to...
11762 (df_ref_ptr_compare): ...this new function.
11763 (df_sort_and_compress_refs): Update accordingly.
11764 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11765 old interface to...
11766 (df_mw_ptr_compare): ...this new function.
11767 (df_sort_and_compress_mws): Update accordingly.
11768 (df_install_refs, df_install_mws): Return a linked list rather than
11769 an array of pointers.
11770 (df_refs_add_to_chains): Assert that old lists are empty rather
11771 than freeing them.
11772 (df_insn_refs_verify): Don't handle null defs speciailly.
11773 * web.c (union_match_dups): Update for new df_ref linking.
11774
11775 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11776
11777 * df.h (df_ref_create, df_ref_remove): Delete.
11778 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11779 (df_ref_remove): Likewise.
11780
11781 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11782
11783 * df.h (df_single_def, df_single_use): New functions.
11784 * ira.c (find_moveable_pseudos): Use them.
11785
11786 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11787
11788 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11789 * df-problems.c (df_note_bb_compute): Use it.
11790 * regstat.c (regstat_bb_compute_ri): Likewise.
11791
11792 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11793
11794 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11795 * cse.c (cse_extended_basic_block): Use them.
11796 * dce.c (mark_artificial_use): Likewise.
11797 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11798 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11799 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11800 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11801 (df_simulate_initialize_backwards): Likewise.
11802 (df_simulate_finalize_backwards): Likewise.
11803 (df_simulate_initialize_forwards): Likewise.
11804 (df_md_simulate_artificial_defs_at_top): Likewise.
11805 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11806 * regrename.c (init_rename_info): Likewise.
11807 * regstat.c (regstat_bb_compute_ri): Likewise.
11808 (regstat_bb_compute_calls_crossed): Likewise.
11809
11810 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11811
11812 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11813 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11814 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11815 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11816 * combine.c (create_log_links): Likewise.
11817 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11818 (try_eliminate_compare): Likewise.
11819 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11820 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11821 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11822 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11823 (word_dce_process_block, dce_process_block): Likewise.
11824 * ddg.c (def_has_ccmode_p): Likewise.
11825 * df-core.c (df_bb_regno_first_def_find): Likewise.
11826 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11827 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11828 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11829 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11830 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11831 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11832 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11833 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11834 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11835 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11836 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11837 * fwprop.c (local_ref_killed_between_p): Likewise.
11838 (all_uses_available_at, free_load_extend): Likewise.
11839 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11840 * hw-doloop.c (scan_loop): Likewise.
11841 * ifcvt.c (dead_or_predicable): Likewise.
11842 * init-regs.c (initialize_uninitialized_regs): Likewise.
11843 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11844 (process_bb_node_lives): Likewise.
11845 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11846 (find_moveable_pseudos): Likewise.
11847 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11848 * recog.c (peep2_find_free_register): Likewise.
11849 * ree.c (get_defs): Likewise.
11850 * regstat.c (regstat_bb_compute_ri): Likewise.
11851 (regstat_bb_compute_calls_crossed): Likewise.
11852 * sched-deps.c (find_inc, find_mem): Likewise.
11853 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11854 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11855 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11856 (prepare_shrink_wrap): Likewise.
11857 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11858 * web.c (union_defs, pass_web::execute): Likewise.
11859 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11860 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11861
11862 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11863
11864 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11865 to inheritance pseudos.
11866 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11867
11868 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11869
11870 PR target/61415
11871 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11872 (BU_MISC_2): Rename to ...
11873 (BU_LDBL128_2): ... this.
11874 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11875 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11876 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11877 RS6000_BTM_LDBL128.
11878 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11879 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11880 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11881 (unpacktf_1): Likewise.
11882 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11883 (__builtin_longdouble_dw1): Likewise.
11884 * doc/sourcebuild.texi (longdouble128): Document.
11885
11886 2014-06-13 Jeff Law <law@redhat.com>
11887
11888 PR rtl-optimization/61094
11889 PR rtl-optimization/61446
11890 * ree.c (combine_reaching_defs): Get the mode for the copy from
11891 the extension insn rather than the defining insn.
11892
11893 2014-06-13 Dehao Chen <dehao@google.com>
11894
11895 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11896
11897 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11898
11899 * doc/install.texi (--enable-linker-plugin-configure-flags)
11900 (--enable-linker-plugin-flags): Document new flags.
11901
11902 2014-06-13 Martin Jambor <mjambor@suse.cz>
11903
11904 PR ipa/61186
11905 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11906 cache_token if returning early.
11907
11908 2014-06-13 Nick Clifton <nickc@redhat.com>
11909
11910 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11911 requested alignment is active.
11912 (LABEL_ALIGN): Likewise.
11913 (LOOP_ALIGN): Likewise.
11914
11915 2014-06-13 Richard Biener <rguenther@suse.de>
11916
11917 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11918 Rewrite to propagate the VN result into all uses where
11919 possible and to remove stmts becoming dead because of that.
11920 (eliminate): Generalize stmt removal handling, remove in
11921 reverse dominator order to support proper debug stmt
11922 generation. Update stmts before removing stmts.
11923 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11924
11925 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11926
11927 PR tree-optimization/61375
11928 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11929 symbolic number cannot be represented in an uint64_t.
11930 (find_bswap_or_nop_1): Likewise.
11931
11932 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11933
11934 * symtab.c (symtab_node::reset_section): New method.
11935 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11936 for localization.
11937 * cgraph.h (reset_section): Declare.
11938 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11939 do not consider comdat locals.
11940 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11941 for new symbol.
11942 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11943 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11944 reset sections of symbols dragged out of the comdats.
11945 (function_and_variable_visibility): Reset sections of
11946 localized symbols.
11947
11948 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11949
11950 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11951 to use symtab and decl_binds_to_current_def_p
11952 * tree-vectorizer.c (increase_alignment): Increase alignment
11953 of alias target, too.
11954
11955 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11956
11957 PR middle-end/61486
11958 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11959 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11960 if outer combined construct is distribute.
11961 (gimplify_omp_for): For OMP_DISTRIBUTE set
11962 gimplify_omp_ctxp->distribute.
11963 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11964 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11965 mapping into decl map.
11966
11967 2014-06-12 Jason Merrill <jason@redhat.com>
11968
11969 * common.opt (fabi-version): Change default to 0.
11970
11971 2014-06-12 Jason Merrill <jason@redhat.com>
11972
11973 * toplev.c (process_options): Reject -fabi-version=1.
11974
11975 2014-06-12 Jeff Law <law@redhat.com>
11976
11977 PR tree-optimization/61009
11978 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11979 value when we stop processing a block due to problematic PHIs.
11980
11981 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11982
11983 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11984 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11985 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11986 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11987 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11988 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11989 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11990 are not in the spec.
11991
11992 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11993
11994 PR target/59843
11995 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11996 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11997 Support V1DFmode.
11998
11999 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12000
12001 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12002
12003 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12004
12005 PR target/61443
12006 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12007 loading from address spaces.
12008
12009 2014-06-12 Martin Liska <mliska@suse.cz>
12010
12011 PR ipa/61462
12012 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12013 statement is reachable.
12014
12015 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12016
12017 * symtab.c (section_hash): New hash.
12018 (symtab_unregister_node): Clear section before freeing.
12019 (hash_section_hash_entry): New haser.
12020 (eq_sections): New function.
12021 (symtab_node::set_section_for_node): New method.
12022 (set_section_1): Update.
12023 (symtab_node::set_section): Take string instead of tree as parameter.
12024 (symtab_resolve_alias): Update.
12025 * cgraph.h (section_hash_entry_d): New structure.
12026 (section_hash_entry): New typedef.
12027 (cgraph_node): Change comdat_group_ to x_comdat_group,
12028 change section_ to x_section and turn into section_hash_entry;
12029 update accestors; put set_section_for_node offline.
12030 * tree.c (decl_section_name): Turn into string.
12031 (set_decl_section_name): Change parameter to be string.
12032 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12033 * sdbout.c (sdbout_one_type): Update.
12034 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12035 * varasm.c (IN_NAMED_SECTION, get_named_section,
12036 resolve_unique_section, hot_function_section, get_named_text_section,
12037 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12038 make_decl_rtl, default_unique_section): Update.
12039 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12040 (c6x_elf_unique_section): Update.
12041 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12042 * config/pa/pa.c (pa_function_section): Update.
12043 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12044 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12045 * config/arc/arc.c (arc_in_small_data_p): Update.
12046 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12047 * config/mcore/mcore.c (mcore_unique_section): Update.
12048 * config/mips/mips.c (mips16_build_function_stub): Update.
12049 (mips16_build_call_stub): Update.
12050 (mips_function_rodata_section): Update.
12051 (mips_in_small_data_p): Update.
12052 * config/score/score.c (score_in_small_data_p): Update.
12053 * config/rx/rx.c (rx_in_small_data): Update.
12054 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12055 (rs6000_xcoff_asm_named_section): Update.
12056 (rs6000_xcoff_unique_section): Update.
12057 * config/frv/frv.c (frv_string_begins_with): Update.
12058 (frv_in_small_data_p): Update.
12059 * config/v850/v850.c (v850_encode_data_area): Update.
12060 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12061 (bfin_handle_l1_data_attribute): Update.
12062 (bfin_handle_l2_attribute): Update.
12063 * config/mep/mep.c (mep_unique_section): Update.
12064 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12065 Update.
12066 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12067 (h8300_handle_tiny_data_attribute): Update.
12068 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12069 (m32r_in_small_data_p): Update.
12070 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12071 * config/i386/i386.c (ix86_in_large_data_p): Update.
12072 * config/i386/winnt.c (i386_pe_unique_section): Update.
12073 * config/darwin.c (darwin_function_section): Update.
12074 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12075 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12076 (new_emutls_decl): Update.
12077 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12078 input_varpool_node): Update.
12079 (ead_string_cst): Turn to ...
12080 (read_string): ... this one.
12081 * dwarf2out.c (secname_for_decl): Update.
12082 * asan.c (asan_protect_global): Update.
12083
12084 2014-06-11 DJ Delorie <dj@redhat.com>
12085
12086 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12087 cache lines.
12088 * config/rx/rx.c (rx_option_override): Likewise.
12089 (rx_align_for_label): Likewise.
12090
12091 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12092
12093 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12094
12095 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12096 prototype.
12097
12098 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12099
12100 * common.md: New file.
12101 * doc/md.texi: Update description of generic, machine-independent
12102 constraints.
12103 * config/s390/constraints.md (e): Delete.
12104 * Makefile.in (md_file): Include common.md.
12105 * config/m32c/t-m32c (md_file): Likewise.
12106 * genpreds.c (general_mem): New array.
12107 (generic_constraint_letters): Remove constraints now defined by
12108 common.md.
12109 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12110 Allow the first character to be '<' or '>' as well.
12111 * genoutput.c (general_mem): New array.
12112 (indep_constraints): Remove constraints now defined by common.md.
12113 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12114 Remove special handling of 'm'.
12115 * ira-costs.c (record_reg_classes): Remove special handling of
12116 constraints now defined by common.md.
12117 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12118 * ira-lives.c (single_reg_class): Likewise.
12119 (ira_implicitly_set_insn_hard_regs): Likewise.
12120 * lra-constraints.c (reg_class_from_constraints): Likewise.
12121 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12122 * postreload.c (reload_cse_simplify_operands): Likewise.
12123 * reload.c (push_secondary_reload, scratch_reload_class)
12124 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12125 * reload1.c (maybe_fix_stack_asms): Likewise.
12126 * targhooks.c (default_secondary_reload): Likewise.
12127 * stmt.c (parse_output_constraint): Likewise.
12128 * recog.c (preprocess_constraints): Likewise.
12129 (constrain_operands, peep2_find_free_register): Likewise.
12130 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12131 must be handled specially.
12132
12133 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12134
12135 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12136 * genpreds.c (have_const_dbl_constraints): Delete.
12137 (add_constraint): Don't set it.
12138 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12139 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12140 constraints using the lookup_constraint logic.
12141 * ira-lives.c (single_reg_class): Likewise.
12142 * ira.c (ira_setup_alts): Likewise.
12143 * lra-constraints.c (process_alt_operands): Likewise.
12144 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12145 * reload.c (find_reloads): Likewise.
12146
12147 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12148
12149 * genpreds.c (const_int_start, const_int_end): New variables.
12150 (choose_enum_order): Output CONST_INT constraints before memory
12151 constraints.
12152 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12153 Add CT_CONST_INT.
12154 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12155 * ira.c (ira_setup_alts): Likewise.
12156 * lra-constraints.c (process_alt_operands): Likewise.
12157 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12158 * reload.c (find_reloads): Likewise.
12159
12160 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12161
12162 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12163 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12164 * recog.c (preprocess_constraints): Update accordingly.
12165
12166 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12167
12168 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12169 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12170 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12171 * genpreds.c (print_type_tree): New function.
12172 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12173 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12174 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12175 Write out enum constraint_type and get_constraint_type.
12176 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12177 constraint_num rather than a constraint string.
12178 (satisfies_address_constraint_p): Likewise.
12179 (reg_class_from_constraints): Avoid old constraint macros.
12180 (process_alt_operands, process_address_1): Likewise.
12181 (curr_insn_transform): Likewise.
12182 * ira-costs.c (record_reg_classes): Likewise.
12183 (record_operand_costs): Likewise.
12184 * ira-lives.c (single_reg_class): Likewise.
12185 (ira_implicitly_set_insn_hard_regs): Likewise.
12186 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12187 * postreload.c (reload_cse_simplify_operands): Likewise.
12188 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12189 (constrain_operands, peep2_find_free_register): Likewise.
12190 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12191 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12192 * reload1.c (maybe_fix_stack_asms): Likewise.
12193 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12194 * targhooks.c (default_secondary_reload): Likewise.
12195 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12196 to EXTRA_CONSTRAINT_STR.
12197 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12198
12199 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12200
12201 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12202 (write_constraint_satisfied_p_array): ...this new function.
12203 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12204 an array.
12205 (write_insn_preds_c): Update accordingly.
12206
12207 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12208
12209 * genpreds.c (write_lookup_constraint): Rename to...
12210 (write_lookup_constraint_1): ...this.
12211 (write_lookup_constraint_array): New function.
12212 (write_tm_preds_h): Define lookup_constraint as an inline function
12213 that uses write_lookup_constraint_array where possible.
12214 (write_insn_preds_c): Update for the changes above.
12215
12216 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12217
12218 * doc/md.texi (regclass_for_constraint): Rename to...
12219 (reg_class_for_constraint): ...this.
12220 * genpreds.c (num_constraints, enum_order, register_start)
12221 (register_end, satisfied_start, memory_start, memory_end)
12222 (address_start, address_end): New variables.
12223 (add_constraint): Count the number of constraints.
12224 (choose_enum_order): New function.
12225 (write_enum_constraint_num): Iterate over enum_order.
12226 (write_regclass_for_constraint): Rename to...
12227 (write_reg_class_for_constraint_1): ...this and update output
12228 accordingly.
12229 (write_constraint_satisfied_p): Rename to...
12230 (write_constraint_satisfied_p_1): ...this and update output
12231 accordingly. Do nothing if all extra constraints are register
12232 constraints.
12233 (write_insn_extra_memory_constraint): Delete.
12234 (write_insn_extra_address_constraint): Delete.
12235 (write_range_function): New function.
12236 (write_tm_preds_h): Define constraint_satisfied_p and
12237 reg_class_for_constraint as inline functions that do a range check
12238 before calling the out-of-line function. Use write_range_function
12239 to implement insn_extra_{register,memory,address}_constraint,
12240 the first of which is new.
12241 (write_insn_preds_c): Update after above changes to write_* functions.
12242 (main): Call choose_enum_order.
12243
12244 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12245
12246 PR tree-optimization/61306
12247 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12248 expression instead of its size.
12249 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12250 false to prevent optimization when the result is unpredictable due to
12251 arithmetic right shift of signed type with highest byte is set.
12252 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12253 (init_symbolic_number): Likewise.
12254 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12255 when the result is unpredictable due to sign extension.
12256
12257 2014-06-11 Terry Guo <terry.guo@arm.com>
12258
12259 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12260 (*thumb1_addsi3): Ditto.
12261 (*thumb_subdi3): Ditto.
12262 (thumb1_subsi3_insn): Ditto.
12263 (*thumb_mulsi3): Ditto.
12264 (*thumb_mulsi3_v6): Ditto.
12265 (*thumb1_andsi3_insn): Ditto.
12266 (thumb1_bicsi3): Ditto.
12267 (*thumb1_iorsi3_insn): Ditto.
12268 (*thumb1_xorsi3_insn): Ditto.
12269 (*thumb1_ashlsi3): Ditto.
12270 (*thumb1_ashrsi3): Ditto.
12271 (*thumb1_lshrsi3): Ditto.
12272 (*thumb1_rotrsi3): Ditto.
12273 (*thumb1_negdi2): Ditto.
12274 (*thumb1_negsi2): Ditto.
12275 (*thumb1_abssi2): Ditto.
12276 (*thumb1_neg_abssi2): Ditto.
12277 (*thumb1_one_cmplsi2): Ditto.
12278 (*thumb1_zero_extendhisi2): Ditto.
12279 (*thumb1_zero_extendqisi2): Ditto.
12280 (*thumb1_zero_extendqisi2_v6): Ditto.
12281 (thumb1_extendhisi2): Ditto.
12282 (thumb1_extendqisi2): Ditto.
12283 (*thumb1_movdi_insn): Ditto.
12284 (*thumb1_movsi_insn): Ditto.
12285 (*thumb1_movhi_insn): Ditto.
12286 (thumb_movhi_clobber): Ditto.
12287 (*thumb1_movqi_insn): Ditto.
12288 (*thumb1_movhf): Ditto.
12289 (*thumb1_movsf_insn): Ditto.
12290 (*thumb_movdf_insn): Ditto.
12291 (movmem12b): Ditto.
12292 (movmem8b): Ditto.
12293 (cbranchqi4): Ditto.
12294 (cbranchsi4_insn): Ditto.
12295 (cbranchsi4_scratch): Ditto.
12296 (*negated_cbranchsi4): Ditto.
12297 (*tbit_cbranch): Ditto.
12298 (*tlobits_cbranch): Ditto.
12299 (*tstsi3_cbranch): Ditto.
12300 (*cbranchne_decr1): Ditto.
12301 (*addsi3_cbranch): Ditto.
12302 (*addsi3_cbranch_scratch): Ditto.
12303 (*thumb_cmpdi_zero): Ditto.
12304 (cstoresi_eq0_thumb1): Ditto.
12305 (cstoresi_ne0_thumb1): Ditto.
12306 (*cstoresi_eq0_thumb1_insn): Ditto.
12307 (*cstoresi_ne0_thumb1_insn): Ditto.
12308 (cstoresi_nltu_thumb1): Ditto.
12309 (cstoresi_ltu_thumb1): Ditto.
12310 (thumb1_addsi3_addgeu): Ditto.
12311 (*thumb_jump): Ditto.
12312 (*call_reg_thumb1_v5): Ditto.
12313 (*call_reg_thumb1): Ditto.
12314 (*call_value_reg_thumb1_v5): Ditto.
12315 (*call_value_reg_thumb1): Ditto.
12316 (*call_insn): Ditto.
12317 (*call_value_insn): Ditto.
12318 (thumb1_casesi_internal_pic): Ditto.
12319 (thumb1_casesi_dispatch): Ditto.
12320 (*thumb1_indirect_jump): Ditto.
12321 (prologue_thumb1_interwork): Ditto.
12322 (*epilogue_insns): Ditto.
12323 (consttable_1): Ditto.
12324 (consttable_2): Ditto.
12325 (tablejump): Ditto.
12326 (*thumb1_tablejump): Ditto.
12327 (thumb_eh_return): Ditto.
12328 (define_peephole2): Two of them are thumb1 only and got moved into
12329 new file thumb1.md.
12330 (define_split): Six of them are thumb1 only and got moved into new
12331 file thumb1.md.
12332 * config/arm/thumb1.md: New file comprised of above thumb1 only
12333 patterns.
12334
12335 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12336
12337 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12338 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12339 dependencies.
12340 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12341 (aarch64_crc_builtin_datum): New struct.
12342 (aarch64_crc_builtin_data): New.
12343 (aarch64_init_crc32_builtins): New function.
12344 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12345 (aarch64_crc32_expand_builtin): New.
12346 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12347 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12348 __ARM_FEATURE_CRC32 when appropriate.
12349 (TARGET_CRC32): Define.
12350 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12351 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12352 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12353 (aarch64_<crc_variant>): New pattern.
12354 * config/aarch64/arm_acle.h: New file.
12355 * config/aarch64/iterators.md (CRC): New int iterator.
12356 (crc_variant, crc_mode): New int attributes.
12357 * doc/aarch64-acle-intrinsics.texi: New file.
12358 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12359 Include aarch64-acle-intrinsics.texi.
12360
12361 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12362
12363 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12364 check for stores group of length 3.
12365 (vect_permute_store_chain): New permutations for stores group of
12366 length 3.
12367 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12368 of vec_perm_shuffle for the new permutations.
12369
12370 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12371
12372 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12373 table rewriting temporarily on targets not supporting ONE_ONLY.
12374
12375 2014-06-11 Richard Biener <rguenther@suse.de>
12376
12377 PR middle-end/61437
12378 Revert
12379 2014-06-04 Richard Biener <rguenther@suse.de>
12380
12381 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12382 TREE_PUBLIC and DECL_EXTERNAL decls.
12383
12384 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12385
12386 * varasm.c (set_implicit_section): New function.
12387 (resolve_unique_section): Use it to set implicit section
12388 for aliases, too.
12389 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12390 (default_function_section): Likewise.
12391 (decl_binds_to_current_def_p): Constify argument.
12392 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12393 * asan.c (asan_protect_global): Use
12394 symtab_get_node (decl)->implicit_section.
12395 * symtab.c (dump_symtab_base): Dump implicit sections.
12396 (verify_symtab_base): Verify sanity of sectoins and comdats.
12397 (symtab_resolve_alias): Alias share the section of its target.
12398 (set_section_1): New function.
12399 (symtab_node::set_section): Move here, recurse to aliases.
12400 (verify_symtab): Check for duplicated symtab lists.
12401 * tree-core.h (implicit_section_name_p): Remove.
12402 * tree-vect-data-refs.c: Include varasm.h.
12403 (vect_can_force_dr_alignment_p): Fix conditional on when
12404 decl bints to current definition; use
12405 symtab_get_node (decl)->implicit_section.
12406 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12407 * cgraph.h (struct symtab_node): Add implicit_section.
12408 (set_section): Rename to ...
12409 (set_section_for_node): ... this one.
12410 (set_section): Declare.
12411 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12412 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12413 input_overwrite_node, input_varpool_node): Stream implicit_section.
12414 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12415 removal; it will fail in LTO.
12416
12417 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12418
12419 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12420 Change second alternative type to f_mcr.
12421 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12422 and 12th alternatives' types to f_mcr and f_mrc.
12423 (*movdi_aarch64): Same for 12th and 13th alternatives.
12424 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12425 (aarch64_movtilow_tilow): Change type to fmov.
12426
12427 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12428
12429 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12430 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12431
12432 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12433
12434 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12435 New expander.
12436 (aarch64_sqrdmulh_lane<mode>): Likewise.
12437 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12438 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12439 (aarch64_sqdmulh_laneq<mode>): New expander.
12440 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12441 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12442 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12443 (aarch64_sqdmulh_lane<mode>): New expander.
12444 (aarch64_sqrdmulh_lane<mode>): Likewise.
12445 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12446 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12447 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12448 (aarch64_sqdmlal_laneq<mode>): Likewise.
12449 (aarch64_sqdmlsl_lane<mode>): Likewise.
12450 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12451 (aarch64_sqdmlal2_lane<mode>): Likewise.
12452 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12453 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12454 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12455 (aarch64_sqdmull_lane<mode>): Likewise.
12456 (aarch64_sqdmull_laneq<mode>): Likewise.
12457 (aarch64_sqdmull2_lane<mode>): Likewise.
12458 (aarch64_sqdmull2_laneq<mode>): Likewise.
12459
12460 2014-06-10 Richard Biener <rguenther@suse.de>
12461
12462 PR tree-optimization/61438
12463 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12464 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12465 insertion of IVs if running PRE.
12466 (eliminate): Adjust.
12467 (pass_pre::execute): Likewise.
12468 (pass_fre::execute): Likewise.
12469
12470 2014-06-10 Richard Biener <rguenther@suse.de>
12471
12472 PR middle-end/61456
12473 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12474 Do not use the main variant for the type comparison.
12475 (ncr_compar): Likewise.
12476 (nonoverlapping_component_refs_p): Likewise.
12477
12478 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12479
12480 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12481 REG_CFA_RESTORE mode.
12482
12483 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12484
12485 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12486 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12487 expand_vec_perm_pblendv.
12488
12489 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12490
12491 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12492 available.
12493 Simplify description of __crc32d and __crc32cd intrinsics.
12494 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12495 availability.
12496
12497 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12498
12499 PR lto/61334
12500 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12501 * config.in: Regenerate.
12502 * configure: Likewise.
12503
12504 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12505
12506 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12507 and public vars.
12508 (intersect_static_var_sets): Remove.
12509 (propagate): Do not prune local statics.
12510
12511 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12512
12513 PR fortran/60928
12514 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12515 Set lastprivate_firstprivate even if omp_private_outer_ref
12516 langhook returns true.
12517 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12518 langhook, call unshare_expr on new_var and call
12519 build_outer_var_ref to get the last argument.
12520
12521 2014-06-10 Marek Polacek <polacek@redhat.com>
12522
12523 PR c/60988
12524 * doc/extend.texi: Add cindex for transparent_union.
12525
12526 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12527
12528 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12529 init_symbolic_number ().
12530
12531 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12532
12533 PR middle-end/61141
12534 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12535 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12536 (verify_rtl_sharing): Likewise.
12537
12538 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12539
12540 PR c++/54442
12541 * tree.c (build_qualified_type): Use a canonical type for
12542 TYPE_CANONICAL.
12543
12544 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12545
12546 * config/arm/arm-modes.def: Remove XFmode.
12547
12548 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12549
12550 PR target/61062
12551 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12552 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12553 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12554 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12555 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12556 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12557 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12558 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12559 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12560
12561 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12562
12563 * tree-core.h (tree_decl_with_vis): Remove section_name.
12564
12565 2014-06-09 Kito Cheng <kito@0xlab.org>
12566
12567 * ira.c (ira): Don't call init_caller_save if LRA enabled
12568 since LRA use its own infrastructure to handle that.
12569
12570 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12571
12572 * symtab.c (dump_symtab_base): Update dumping.
12573 (symtab_make_decl_local): Clear only DECL_COMDAT.
12574 * tree-vect-data-refs.c (Check that variable is static before
12575 tampering with sections.
12576 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12577 (cgraph_create_virtual_clone): Likewise.
12578 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12579 (decl_section_name, set_decl_section_name): New accessors.
12580 (find_decls_types_r): Do not walk section name
12581 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12582 (decl_comdat_group, decl_comdat_group_id): Constify.
12583 (decl_section_name, set_decl_section_name): Update.
12584 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12585 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12586 (cgraph_make_node_local_1): Clear section and comdat group.
12587 * cgraph.h (set_comdat_group): Sanity check.
12588 (get_section, set_section): New.
12589 * ipa-comdats.c (ipa_comdats): Use get_section.
12590 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12591 * lto-streamer-out.c: Do not follow section names.
12592 * c-family/c-common.c (handle_section_attribute): Update.
12593 * lto-cgraph.c (lto_output_node): Output section.
12594 (lto_output_varpool_node): Likewise.
12595 (read_comdat_group): Rename to ...
12596 (read_identifier): ... this one.
12597 (read_string_cst): New function.
12598 (input_node, input_varpool_node): Input section names.
12599 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12600 (new_emutls_decl): Update.
12601 (secname_for_decl): Check section names only of static vars.
12602 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12603 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12604 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12605 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12606 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12607 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12608 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12609 * config/v850/v850.c (v850_insert_attributes): Likewise.
12610 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12611 Likewise.
12612 (h8300_handle_tiny_data_attribute): Likewise.
12613 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12614 (bfin_handle_l2_attribute): Likewise.
12615
12616 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12617
12618 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12619 remove static initializer.
12620
12621 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12622
12623 * varasm.c (use_blocks_for_decl_p): Check symbol table
12624 instead of alias attribute.
12625 (place_block_symbol): Recurse on aliases.
12626
12627 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12628
12629 * ipa-visibility.c: Include varasm.h
12630 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12631
12632 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12633
12634 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12635 outputting aliases.
12636
12637 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12638
12639 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12640 from test_insn into GGC space escape via SET_SRC.
12641
12642 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12643
12644 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12645 call statement, if any.
12646 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12647 statements, if any. Tidy up.
12648
12649 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12650
12651 PR target/61431
12652 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12653 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12654 handles swapping the two 64-bit double words on little endian
12655 systems. Include V1TImode and optionally TImode in VSX_LE so that
12656 these types are properly swapped. Change all of the insns and
12657 splits that do the 64-bit swaps to use VSX_LE.
12658 (vsx_le_perm_load_<mode>): Likewise.
12659 (vsx_le_perm_store_<mode>): Likewise.
12660 (splitters for little endian memory operations): Likewise.
12661 (vsx_xxpermdi2_le_<mode>): Likewise.
12662 (vsx_lxvd2x2_le_<mode>): Likewise.
12663 (vsx_stxvd2x2_le_<mode>): Likewise.
12664
12665 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12666
12667 PR target/61423
12668 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12669 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12670 and corresponding splitters. Zero extend general register
12671 or memory input operand to XMM temporary. Enable for
12672 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12673 (floatunssi<mode>2): Update expander predicate.
12674
12675 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12676
12677 PR rtl-optimization/61325
12678 * lra-constraints.c (process_address_1): Check scale equal to one
12679 to prevent transformation: base + scale * index => base + new_reg.
12680
12681 2014-06-06 Richard Biener <rguenther@suse.de>
12682
12683 PR tree-optimization/59299
12684 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12685 a def operand.
12686 (nearest_common_dominator_of_uses): Likewise.
12687 (statement_sink_location): Adjust. Support sinking loads.
12688
12689 2014-06-06 Martin Jambor <mjambor@suse.cz>
12690
12691 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12692 (build_agg_jump_func_from_list): Likewise.
12693 (determine_known_aggregate_parts): Renamed to
12694 determine_locally_known_aggregate_parts. Moved some functionality
12695 to the two functions above, removed bound checks.
12696
12697 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12698
12699 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12700 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12701 (aarch64_progress_pointer): Likewise.
12702 (aarch64_copy_one_part_and_move_pointers): Likewise.
12703 (aarch64_expand_movmen): Likewise.
12704 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12705 * config/aarch64/aarch64.md (movmem<mode>): New.
12706
12707 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12708
12709 * targhooks.c (default_add_stmt_cost): Call target specific
12710 hook instead of default one.
12711
12712 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12713
12714 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12715 endianness instead of host endianness.
12716 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12717 comments.
12718
12719 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12720
12721 PR debug/53927
12722 * function.c (instantiate_decls): Process the saved static chain.
12723 (expand_function_start): If not optimizing, save the static chain
12724 onto the stack.
12725 * tree-nested.c (convert_all_function_calls): Always create the static
12726 chain for nested functions if not optimizing.
12727
12728 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12729
12730 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12731
12732 2014-06-06 Richard Biener <rguenther@suse.de>
12733
12734 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12735 (construct_init_block): Likewise.
12736 (construct_exit_block): Likewise.
12737 (pass_expand::execute): Likewise.
12738 * graphite.c (graphite_transforms): Replace check for current_loops
12739 with a check for > 1 loops.
12740 (pass_graphite_transforms::execute): Adjust.
12741 * ipa-split.c (split_function): Remove check for current_loops.
12742 * omp-low.c (expand_parallel_call): Likewise.
12743 (expand_omp_for_init_counts): Likewise.
12744 (extract_omp_for_update_vars): Likewise.
12745 (expand_omp_for_generic): Likewise.
12746 (expand_omp_sections): Likewise.
12747 (expand_omp_target): Likewise.
12748 * tracer.c (tail_duplicate): Likewise.
12749 (pass_tracer::execute): Likewise.
12750 * trans-mem.c (expand_transaction): Likewise.
12751 * tree-complex.c (expand_complex_div_wide): Likewise.
12752 * tree-eh.c (lower_resx): Likewise.
12753 (cleanup_empty_eh_merge_phis): Likewise.
12754 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12755 current_loops with a check for > 1 loops.
12756 (pass_predcom::execute): Adjust.
12757 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12758 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12759 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12760 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12761 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12762 * tree-switch-conversion.c (process_switch): Likewise.
12763 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12764 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12765 (execute_vrp): Likewise.
12766 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12767
12768 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12769
12770 * rtl.h (insn_location): Declare.
12771 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12772 with UNKNOWN_LOCATION.
12773 * emit-rtl.c (insn_location): New function.
12774 * final.c (notice_source_line): Check that the instruction has a
12775 location before retrieving it and use insn_location.
12776 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12777 * print-rtl.c (print_rtx): Likewise.
12778
12779 2014-06-06 Richard Biener <rguenther@suse.de>
12780
12781 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12782
12783 2014-06-06 Christian Bruel <christian.bruel@st.com>
12784
12785 PR tree-optimization/43934
12786 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12787 cost.
12788
12789 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12790
12791 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12792 return NO_REGS for extra address and memory constraints. Handle
12793 operands that match (or are equivalent to something that matches)
12794 extra constant constraints. Ignore other non-register operands.
12795
12796 2014-06-06 Alan Modra <amodra@gmail.com>
12797
12798 PR target/61300
12799 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12800 * doc/tm.texi: Regenerate.
12801 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12802 Use throughout in place of REG_PARM_STACK_SPACE.
12803 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12804 "incoming" param. Pass to rs6000_function_parms_need_stack.
12805 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12806 prototype_p when incoming. Use function decl when incoming
12807 to handle K&R style functions.
12808 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12809 (INCOMING_REG_PARM_STACK_SPACE): Define.
12810
12811 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12812
12813 PR target/52472
12814 * cfgexpand.c (expand_debug_expr): Use address space of nested
12815 TREE_TYPE for ADDR_EXPR and MEM_REF.
12816
12817 2014-06-05 Jeff Law <law@redhat.com>
12818
12819 PR tree-optimization/61289
12820 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12821 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12822 looking for those which match LHS. All callers changed.
12823 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12824 parameters and code which manipulated them. All callers changed.
12825 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12826 and DST_MAP parameters. Simplify invalidation code by just calling
12827 invalidate_equivalences. All callers changed.
12828 (thread_across_edge): Simplify now that we don't need to maintain
12829 the map of equivalences to invalidate.
12830
12831 2014-06-05 Kai Tietz <ktietz@redhat.com>
12832 Richard Henderson <rth@redhat.com>
12833
12834 PR target/46219
12835 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12836 checking for !TARGET_X32.
12837 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12838 (sibcall_intern): New define_insn, plus required peepholes.
12839 (sibcall_pop_intern): Likewise.
12840 (sibcall_value_intern): Likewise.
12841 (sibcall_value_pop_intern): Likewise.
12842
12843 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12844
12845 * tree-inline.c (tree_function_versioning): Check DF info existence
12846 before accessing it.
12847
12848 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12849
12850 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12851 frame_size.
12852 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12853 aarch64_frame hard_fp_offset and frame_size.
12854 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12855 frame_size; remove original_frame_size.
12856 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12857 (aarch64_initial_elimination_offset): Remove frame_size and
12858 offset. Use aarch64_frame frame_size.
12859
12860 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12861 Jiong Wang <jiong.wang@arm.com>
12862 Renlin <renlin.li@arm.com>
12863
12864 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12865 initialization of R30 offset. Update offset. Iterate core
12866 regisers upto X30. Remove X29, X30 specific code.
12867
12868 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12869 Jiong Wang <jiong.wang@arm.com>
12870
12871 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12872 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12873 (aarch64_register_saved_on_entry): Adjust test.
12874
12875 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12876
12877 * config/aarch64/aarch64.h (machine_function): Move
12878 saved_varargs_size from here...
12879 (aarch64_frame): ... to here.
12880
12881 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12882 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12883 (aarch64_initial_elimination_offset)
12884 (aarch64_setup_incoming_varargs): Adjust location of
12885 saved_varargs_size.
12886
12887 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12888
12889 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12890 layout comment.
12891
12892 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12893 Prachi Godbole <Prachi.Godbole@imgtec.com>
12894
12895 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12896 mips32r5 entry to use PROCESSOR_P5600.
12897 * config/mips/mips-tables.opt: Regenerate.
12898 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12899 * config/mips/mips.c (mips_fmadd_bypass): New function.
12900 (mips_rtx_cost_data): Add costs for p5600.
12901 (mips_issue_rate): Add support for p5600.
12902 (mips_multipass_dfa_lookahead): Likewise.
12903 * config/mips/mips.h (TUNE_P5600): New define.
12904 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12905 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12906 * config/mips/mips.md: Include p5600.md.
12907 (processor): Add p5600.
12908 * config/mips/p5600.md: New file.
12909
12910 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12911
12912 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12913 * config/i386/predicates.md (palignr_operand): New.
12914 Indicates if permutation is suitable for palignr instruction.
12915
12916 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12917
12918 PR tree-optimization/61319
12919 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12920 stmt belongs to loop.
12921
12922 2014-06-05 Richard Biener <rguenther@suse.de>
12923
12924 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12925 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12926 (lookup_tmp_var): Adjust.
12927 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12928
12929 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12930
12931 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12932
12933 2014-06-05 Marek Polacek <polacek@redhat.com>
12934
12935 PR c/49706
12936 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12937
12938 2014-06-04 Tom de Vries <tom@codesourcery.com>
12939
12940 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12941 CONST_INT.
12942
12943 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12944
12945 PR tree-optimization/61385
12946 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12947
12948 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12949
12950 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12951 changed to use fatal_error.
12952 (main): Ensure lto_wrapper_cleanup is run atexit.
12953
12954 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12955
12956 * lra-constraints.c (valid_address_p): Move earlier in file.
12957 (address_eliminator): New structure.
12958 (satisfies_memory_constraint_p): New function.
12959 (satisfies_address_constraint_p): Likewise.
12960 (process_alt_operands, process_address, curr_insn_transform): Use them.
12961
12962 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12963
12964 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12965 const pointer.
12966 (target_lra_int, default_target_lra_int, this_target_lra_int)
12967 (op_alt_data): Delete.
12968 * lra.h (lra_init): Delete.
12969 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12970 (init_insn_code_data_once): Remove op_alt_data handling.
12971 (finish_insn_code_data_once): Likewise.
12972 (init_op_alt_data): Delete.
12973 (get_static_insn_data): Initialize operand_alternative to null.
12974 (free_insn_recog_data): Cast operand_alternative before freeing it.
12975 (setup_operand_alternative): Take the operand_alternative as
12976 parameter and assume it isn't already cached in the static
12977 insn data.
12978 (lra_set_insn_recog_data): Update accordingly.
12979 (lra_init): Delete.
12980 * ira.c (ira_init): Don't call lra_init.
12981 * target-globals.h (this_target_lra_int): Declare.
12982 (target_globals): Remove lra_int.
12983 (restore_target_globals): Update accordingly.
12984 * target-globals.c: Don't include lra-int.h.
12985 (default_target_globals, save_target_globals): Remove lra_int.
12986
12987 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12988
12989 * recog.h (operand_alternative): Convert reg_class, reject,
12990 matched and matches into bitfields.
12991 (preprocess_constraints): New overload.
12992 (preprocess_insn_constraints): New function.
12993 (preprocess_constraints): Take the insn as parameter.
12994 (recog_op_alt): Change into a pointer.
12995 (target_recog): Add x_op_alt.
12996 * recog.c (asm_op_alt): New variable.
12997 (recog_op_alt): Change into a pointer.
12998 (preprocess_constraints): New overload, replacing the old function
12999 definition with one that doesn't use global state.
13000 (preprocess_insn_constraints): New function.
13001 (preprocess_constraints): Use them. Take the insn as parameter.
13002 Use asm_op_alt for asms.
13003 (recog_init): Free existing x_op_alt entries.
13004 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13005 pointer const.
13006 (make_early_clobber_and_input_conflicts): Likewise.
13007 (process_bb_node_lives): Pass the insn to process_constraints.
13008 * reg-stack.c (check_asm_stack_operands): Likewise.
13009 (subst_asm_stack_regs): Likewise.
13010 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13011 * regrename.c (build_def_use): Likewise.
13012 * sched-deps.c (sched_analyze_insn): Likewise.
13013 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13014 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13015 (note_invalid_constants): Likewise.
13016 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13017 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13018 const.
13019
13020 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13021
13022 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13023 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13024 alternatives.
13025 (make_early_clobber_and_input_conflicts): Likewise.
13026 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13027
13028 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13029
13030 * recog.h (alternative_class): New function.
13031 (which_op_alt): Return a const recog_op_alt.
13032 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13033 (subst_asm_stack_regs): Likewise.
13034 * config/arm/arm.c (note_invalid_constants): Likewise.
13035 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13036 the operand_alternative; use alternative class instead.
13037 * sel-sched.c (get_reg_class): Likewise.
13038 * regrename.c (build_def_use): Likewise.
13039 (hide_operands, restore_operands, record_out_operands): Update type
13040 accordingly.
13041
13042 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13043
13044 * recog.h (recog_op_alt): Convert to a flat array.
13045 (which_op_alt): New function.
13046 * recog.c (recog_op_alt): Convert to a flat array.
13047 (preprocess_constraints): Update accordingly, grouping all
13048 operands of the same alternative together, rather than the
13049 other way around.
13050 * ira-lives.c (check_and_make_def_conflict): Likewise.
13051 (make_early_clobber_and_input_conflicts): Likewise.
13052 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13053 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13054 (subst_asm_stack_regs): Likewise.
13055 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13056 * regrename.c (hide_operands, record_out_operands): Likewise.
13057 (build_def_use): Likewise.
13058 * sel-sched.c (get_reg_class): Likewise.
13059 * config/arm/arm.c (note_invalid_constants): Likewise.
13060
13061 2014-06-04 Jason Merrill <jason@redhat.com>
13062
13063 PR c++/51253
13064 PR c++/61382
13065 * gimplify.c (gimplify_arg): Non-static.
13066 * gimplify.h: Declare it.
13067
13068 2014-06-04 Richard Biener <rguenther@suse.de>
13069
13070 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13071 TREE_PUBLIC and DECL_EXTERNAL decls.
13072
13073 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13074
13075 * regcprop.c (copyprop_hardreg_forward_1): Account for
13076 HARD_REGNO_CALL_PART_CLOBBERED.
13077
13078 2014-06-04 Richard Biener <rguenther@suse.de>
13079
13080 * configure.ac: Check whether the underlying type of int64_t
13081 is long or long long.
13082 * configure: Regenerate.
13083 * config.in: Likewise.
13084 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13085 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13086
13087 2014-06-04 Richard Biener <rguenther@suse.de>
13088
13089 PR tree-optimization/60098
13090 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13091 we hit a kill.
13092 (dse_optimize_stmt): Simplify, now that we found a kill
13093 earlier.
13094
13095 2014-06-04 Richard Biener <rguenther@suse.de>
13096
13097 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13098 of accesses with non-invariant address.
13099
13100 2014-06-04 Martin Liska <mliska@suse.cz>
13101
13102 * cgraph.h (cgraph_make_wrapper): New function introduced.
13103 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13104 * ipa-inline.h (inline_analyze_function): The function is global.
13105 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13106
13107 2014-06-04 Martin Liska <mliska@suse.cz>
13108
13109 * tree.h (private_lookup_attribute_starting): New function.
13110 (lookup_attribute_starting): Likewise.
13111 * tree.c (private_lookup_attribute_starting): Likewise.
13112
13113 2014-06-04 Martin Liska <mliska@suse.cz>
13114
13115 * cgraph.h (expand_thunk): New argument added.
13116 (address_taken_from_non_vtable_p): New global function.
13117 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13118 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13119 * cgraphunit.c (analyze_function): Likewise.
13120 (assemble_thunks_and_aliases): Argument added to call.
13121 (expand_thunk): New argument forces to produce GIMPLE thunk.
13122
13123 2014-06-04 Martin Liska <mliska@suse.cz>
13124
13125 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13126 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13127 * profile.c (branch_prob): Likewise.
13128
13129 2014-06-04 Martin Jambor <mjambor@suse.cz>
13130
13131 PR ipa/61340
13132 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13133 handler for switch on an ipa_ref_use enum.
13134 * ipa-reference.c (analyze_function): Likewise.
13135
13136 2014-06-04 Kai Tietz <ktietz@redhat.com>
13137
13138 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13139 from old call-instruction.
13140
13141 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13142
13143 * config/aarch64/aarch64.c (aarch64_classify_address)
13144 (aarch64_legitimize_reload_address): Support full addressing modes
13145 for vector modes.
13146 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13147 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13148
13149 2014-06-03 Andrew Pinski <apinski@cavium.com>
13150
13151 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13152 for OP0.
13153
13154 2014-06-03 Andrew Pinski <apinski@cavium.com>
13155
13156 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13157 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13158
13159 2014-06-03 Kai Tietz <ktietz@redhat.com>
13160
13161 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13162 for 64-bit ms-abi.
13163
13164 2014-06-03 Dehao Chen <dehao@google.com>
13165
13166 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13167 the same loop.
13168
13169 2014-06-03 Marek Polacek <polacek@redhat.com>
13170
13171 PR c/60439
13172 * doc/invoke.texi: Document -Wswitch-bool.
13173 * function.c (stack_protect_epilogue): Cast controlling expression of
13174 the switch to int.
13175 * gengtype.c (walk_type): Generate switch expression with its
13176 controlling expression cast to int.
13177
13178 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13179
13180 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13181 and attiny841.
13182 * config/avr/avr-tables.opt: Regenerate.
13183 * config/avr/t-multilib: Regenerate.
13184 * doc/avr-mmcu.texi: Regenerate.
13185
13186 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13187 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13188
13189 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13190 (ata6617c, ata664251): Add new avr35 devices.
13191 (ata6612c): Add new avr4 device.
13192 (ata6613c, ata6614q): Add new avr5 devices.
13193 * config/avr/avr-tables.opt: Regenerate.
13194 * config/avr/t-multilib: Regenerate.
13195 * doc/avr-mmcu.texi: Regenerate.
13196
13197 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13198
13199 * gcc/config/aarch64/aarch64-builtins.c
13200 (aarch64_types_binop_ssu_qualifiers): New static data.
13201 (TYPES_BINOP_SSU): Define.
13202 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13203 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13204 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13205 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13206 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13207 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13208 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13209 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13210 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13211 suffix to builtin function name, remove cast.
13212 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13213 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13214 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13215
13216 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13217
13218 * gcc/config/aarch64/aarch64-builtins.c
13219 (aarch64_types_binop_uus_qualifiers,
13220 aarch64_types_shift_to_unsigned_qualifiers,
13221 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13222 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13223 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13224 sqshlu_n, uqshl_n): Update qualifiers.
13225 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13226 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13227 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13228 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13229 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13230 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13231 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13232 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13233 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13234 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13235 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13236 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13237 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13238 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13239 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13240 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13241 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13242 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13243 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13244 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13245 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13246 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13247 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13248 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13249 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13250 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13251 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13252
13253 2014-06-03 Teresa Johnson <tejohnson@google.com>
13254
13255 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13256
13257 2014-06-02 Jason Merrill <jason@redhat.com>
13258
13259 PR c++/61020
13260 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13261
13262 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13263
13264 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13265 location == 0.
13266
13267 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13268
13269 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13270 New pattern.
13271 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13272 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13273 * config/aarch64/iterators.md (REVERSE): New iterator.
13274 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13275 (rev_op): New int_attribute.
13276 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13277 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13278 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13279 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13280 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13281 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13282 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13283 Replace temporary __asm__ with __builtin_shuffle.
13284
13285 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13286
13287 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13288 mips64r5.
13289 * config/mips/mips-tables.opt: Regenerate.
13290 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13291 to use mips_isa_rev rather than ISA_MIPS32R2.
13292 * config/mips/mips.h (ISA_MIPS32R3): New define.
13293 (ISA_MIPS32R5): New define.
13294 (ISA_MIPS64R3): New define.
13295 (ISA_MIPS64R5): New define.
13296 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13297 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13298 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13299 and mips64r5.
13300 (MIPS_ISA_SYNCI_SPEC): Likewise.
13301 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13302 (LINK_SPEC): Added mips32r3 and mips32r5.
13303 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13304 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13305 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13306 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13307 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13308 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13309 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13310
13311 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13312
13313 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13314 options.
13315 * config/mips/mips.opt (mxpa): New option.
13316 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13317 assembler.
13318
13319 2014-06-03 Martin Jambor <mjambor@suse.cz>
13320
13321 PR ipa/61160
13322 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13323 thunks.
13324
13325 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13326
13327 PR tree-optimization/61328
13328 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13329 initialization from find_bswap_or_nop_1.
13330 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13331 in source_expr2 before using the size value the function sets. Also
13332 make use of init_symbolic_number () in both the old place and
13333 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13334 doing recursion in the GIMPLE_BINARY_RHS case.
13335
13336 2014-06-03 Richard Biener <rguenther@suse.de>
13337
13338 PR tree-optimization/61383
13339 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13340 stmts can't trap.
13341
13342 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13343
13344 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13345 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13346 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13347 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13348 in this file.
13349 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13350 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13351 * system.h: ...here and make it unconditional.
13352 * target.def (conditional_register_usage): Mention
13353 define_register_constraint instead of old-style constraint macros.
13354 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13355 * doc/tm.texi: Regenerate.
13356 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13357 protected by !USE_MD_CONSTRAINTS.
13358 * config/frv/frv.md: Remove quote from old version of documentation.
13359 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13360 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13361 CONST_DOUBLE_OK_FOR_LETTER.
13362 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13363
13364 2014-06-02 Andrew Pinski <apinski@cavium.com>
13365
13366 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13367 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13368 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13369 file whose name depends on -mabi= and -mbig-endian.
13370 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13371 Handle LP64 better and handle ilp32 too.
13372 (MULTILIB_OPTIONS): Delete.
13373 (MULTILIB_DIRNAMES): Delete.
13374
13375 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13376
13377 * expr.h: Remove prototypes of functions defined in builtins.c.
13378 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13379 Remove prototypes of functions defined in builtins.c.
13380 * builtins.h: Update prototype list to include all exported functions.
13381 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13382 no_c99_libc_has_function): Move to targhooks.c
13383 (build_string_literal, build_call_expr_loc_array,
13384 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13385 to tree.c.
13386 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13387 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13388 no_c99_libc_has_function): Relocate from builtins.c.
13389 * tree.c: Include builtins.h.
13390 (build_call_expr_loc_array, build_call_expr_loc_vec,
13391 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13392 from builtins.c.
13393 * fold-const.h (fold_fma): Move prototype to builtins.h.
13394 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13395 * asan.c: Include builtins.h.
13396 * cfgexpand.c: Likewise.
13397 * convert.c: Likewise.
13398 * emit-rtl.c: Likewise.
13399 * except.c: Likewise.
13400 * expr.c: Likewise.
13401 * fold-const.c: Likewise.
13402 * gimple-fold.c: Likewise.
13403 * gimple-ssa-strength-reduction.c: Likewise.
13404 * gimplify.c: Likewise.
13405 * ipa-inline.c: Likewise.
13406 * ipa-prop.c: Likewise.
13407 * lto-streamer-out.c: Likewise.
13408 * stmt.c: Likewise.
13409 * tree-inline.c: Likewise.
13410 * tree-object-size.c: Likewise.
13411 * tree-sra.c: Likewise.
13412 * tree-ssa-ccp.c: Likewise.
13413 * tree-ssa-forwprop.c: Likewise.
13414 * tree-ssa-loop-ivcanon.c: Likewise.
13415 * tree-ssa-loop-ivopts.c: Likewise.
13416 * tree-ssa-math-opts.c: Likewise.
13417 * tree-ssa-reassoc.c: Likewise.
13418 * tree-ssa-threadedge.c: Likewise.
13419 * tree-streamer-in.c: Likewise.
13420 * tree-vect-data-refs.c: Likewise.
13421 * tree-vect-patterns.c: Likewise.
13422 * tree-vect-stmts.c: Likewise.
13423 * config/aarch64/aarch64.c: Likewise.
13424 * config/alpha/alpha.c: Likewise.
13425 * config/arc/arc.c: Likewise.
13426 * config/arm/arm.c: Likewise.
13427 * config/avr/avr.c: Likewise.
13428 * config/bfin/bfin.c: Likewise.
13429 * config/c6x/c6x.c: Likewise.
13430 * config/cr16/cr16.c: Likewise.
13431 * config/cris/cris.c: Likewise.
13432 * config/epiphany/epiphany.c: Likewise.
13433 * config/fr30/fr30.c: Likewise.
13434 * config/frv/frv.c: Likewise.
13435 * config/h8300/h8300.c: Likewise.
13436 * config/i386/i386.c: Likewise.
13437 * config/i386/winnt.c: Likewise.
13438 * config/ia64/ia64.c: Likewise.
13439 * config/iq2000/iq2000.c: Likewise.
13440 * config/lm32/lm32.c: Likewise.
13441 * config/m32c/m32c.c: Likewise.
13442 * config/m32r/m32r.c: Likewise.
13443 * config/m68k/m68k.c: Likewise.
13444 * config/mcore/mcore.c: Likewise.
13445 * config/mep/mep.c: Likewise.
13446 * config/microblaze/microblaze.c: Likewise.
13447 * config/mips/mips.c: Likewise.
13448 * config/mmix/mmix.c: Likewise.
13449 * config/mn10300/mn10300.c: Likewise.
13450 * config/moxie/moxie.c: Likewise.
13451 * config/msp430/msp430.c: Likewise.
13452 * config/nds32/nds32.c: Likewise.
13453 * config/pa/pa.c: Likewise.
13454 * config/pdp11/pdp11.c: Likewise.
13455 * config/picochip/picochip.c: Likewise.
13456 * config/rl78/rl78.c: Likewise.
13457 * config/rs6000/rs6000.c: Likewise.
13458 * config/rx/rx.c: Likewise.
13459 * config/s390/s390.c: Likewise.
13460 * config/score/score.c: Likewise.
13461 * config/sh/sh.c: Likewise.
13462 * config/sparc/sparc.c: Likewise.
13463 * config/spu/spu.c: Likewise.
13464 * config/stormy16/stormy16.c: Likewise.
13465 * config/tilegx/tilegx.c: Likewise.
13466 * config/tilepro/tilepro.c: Likewise.
13467 * config/v850/v850.c: Likewise.
13468 * config/vax/vax.c: Likewise.
13469 * config/xtensa/xtensa.c: Likewise.
13470
13471 2014-06-02 Jeff Law <law@redhat.com>
13472
13473 PR rtl-optimization/61094
13474 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13475 was marked as do_no_reextend. If a copy is needed to eliminate
13476 an extension, then mark it as do_not_reextend.
13477
13478 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13479
13480 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13481
13482 2014-06-02 Richard Henderson <rth@redhat.com>
13483
13484 PR target/61336
13485 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13486 addresses inside asms. Use output_operand_lossage instead of
13487 gcc_unreachable.
13488
13489 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13490
13491 PR target/61239
13492 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13493 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13494
13495 2014-06-02 Tom de Vries <tom@codesourcery.com>
13496
13497 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13498 case that x has VOIDmode.
13499
13500 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13501
13502 * varasm.c (copy_constant): Delete function.
13503 (build_constant_desc): Don't call it.
13504
13505 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13506
13507 PR target/61154
13508 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13509 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13510 with immediate_operand.
13511
13512 2014-06-02 Andreas Schwab <schwab@suse.de>
13513
13514 * config/ia64/ia64.c
13515 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13516 pending_data_specs first.
13517
13518 2014-06-02 Richard Biener <rguenther@suse.de>
13519
13520 PR tree-optimization/61378
13521 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13522 valueized_anything.
13523
13524 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13525
13526 * config/i386/constraints.md (Bw): Rename from 'w'.
13527 (Bz): Rename from 'z'.
13528 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13529
13530 2014-06-01 Kai Tietz <ktietz@redhat.com>
13531
13532 PR target/61377
13533 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13534 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13535 instead of m constraint.
13536
13537 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13538
13539 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13540 a separate alternative where the scratch operand 2 is marked as
13541 early clobber.
13542
13543 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13544
13545 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13546 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13547 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13548 and __builtins_arm_get_fpscr.
13549 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13550 __builtins_arm_get_fpscr.
13551 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13552 __builtins_arm_ldfpscr.
13553 (arm_atomic_assign_expand_fenv): New function.
13554 * config/arm/vfp.md (set_fpscr): New pattern.
13555 (get_fpscr) : Likewise.
13556 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13557 VUNSPEC_SET_FPSCR.
13558 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13559 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13560
13561 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13562
13563 * asan.c (report_error_func): Add SLOW_P argument, use
13564 BUILT_IN_ASAN_*_N if set.
13565 (build_check_stmt): Likewise.
13566 (instrument_derefs): If T has insufficient alignment,
13567 force same handling as for odd sizes.
13568
13569 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13570 BUILT_IN_ASAN_REPORT_STORE_N): New.
13571 * asan.c (struct asan_mem_ref): Change access_size type to
13572 HOST_WIDE_INT.
13573 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13574 update_mem_ref_hash_table): Likewise.
13575 (asan_mem_ref_hasher::hash): Hash in a HWI.
13576 (report_error_func): Change size_in_bytes argument to HWI.
13577 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13578 two.
13579 (build_shadow_mem_access): New function.
13580 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13581 Handle size_in_bytes not power of two or larger than 16.
13582 (instrument_derefs): Don't give up if size_in_bytes is not
13583 power of two or is larger than 16.
13584
13585 2014-05-30 Kai Tietz <ktietz@redhat.com>
13586
13587 PR target/60104
13588 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13589 for sibling-tail-calls.
13590 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13591 to its use.
13592 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13593 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13594
13595 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13596
13597 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13598 * config/avr/avr-tables.opt: Regenerate.
13599 * config/avr/t-multilib: Regenerate.
13600 * doc/avr-mmcu.texi: Regenerate.
13601
13602 2014-05-30 Ian Lance Taylor <iant@google.com>
13603
13604 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13605 target("sse").
13606
13607 2014-05-30 Tom de Vries <tom@codesourcery.com>
13608
13609 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13610 Redefine as true.
13611
13612 2014-05-30 Tom de Vries <tom@codesourcery.com>
13613
13614 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13615 * lra.c (initialize_lra_reg_info_element): Add init of
13616 actual_call_used_reg_set field.
13617 (lra): Call lra_create_live_ranges before lra_inheritance for
13618 -fuse-caller-save.
13619 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13620 -fuse-caller-save.
13621 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13622 instead of call_used_reg_set for -fuse-caller-save.
13623 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13624
13625 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13626
13627 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13628 to mov_imm.
13629 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13630
13631 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13632
13633 * ira.c (ira_get_dup_out_num): Check for output operands at
13634 the start of the loop. Handle cases where an included alternative
13635 follows an excluded one.
13636
13637 2014-05-29 Mike Stump <mikestump@comcast.net>
13638
13639 PR debug/61352
13640 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13641 post ld passes when lto is used.
13642
13643 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13644
13645 PR rtl-optimization/61325
13646 * lra-constraints.c (process_address): Rename to process_address_1.
13647 (process_address): New function.
13648
13649 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13650
13651 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13652 TYPES_BINOPV): New static data.
13653 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13654 New builtin.
13655 * config/aarch64/aarch64-simd.md (aarch64_ext,
13656 aarch64_im_lane_boundsi): New patterns.
13657 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13658 patterns for EXT.
13659 (aarch64_evpc_ext): New function.
13660
13661 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13662
13663 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13664 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13665 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13666 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13667 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13668
13669 2014-05-29 Tom de Vries <tom@codesourcery.com>
13670
13671 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13672
13673 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13674 Richard Sandiford <rdsandiford@googlemail.com>
13675
13676 * arm/iterators.md (shiftable_ops): New code iterator.
13677 (t2_binop0, arith_shift_insn): New code attributes.
13678 * arm/predicates.md (shift_nomul_operator): New predicate.
13679 * arm/arm.md (insn_enabled): Delete.
13680 (enabled): Remove insn_enabled test.
13681 (*arith_shiftsi): Delete. Replace with ...
13682 (*<arith_shift_insn>_multsi): ... new pattern.
13683 (*<arith_shift_insn>_shiftsi): ... new pattern.
13684 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13685
13686 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13687 Tom de Vries <tom@codesourcery.com>
13688
13689 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13690 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13691 clobber.
13692 (mips_split_call): Use POST_CALL_TMP_REG.
13693 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13694
13695 2014-05-29 Tom de Vries <tom@codesourcery.com>
13696
13697 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13698 with #ifdef STACK_REGS.
13699
13700 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13701
13702 * varasm.c (get_variable_section): Walk aliases.
13703 (place_block_symbol): Walk aliases.
13704
13705 2014-05-28 Tom de Vries <tom@codesourcery.com>
13706
13707 Revert:
13708 2014-05-28 Tom de Vries <tom@codesourcery.com>
13709
13710 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13711 * lra.c (initialize_lra_reg_info_element): Add init of
13712 actual_call_used_reg_set field.
13713 (lra): Call lra_create_live_ranges before lra_inheritance for
13714 -fuse-caller-save.
13715 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13716 -fuse-caller-save.
13717 * lra-constraints.c (need_for_call_save_p): Use
13718 actual_call_used_reg_set instead of call_used_reg_set for
13719 -fuse-caller-save.
13720 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13721
13722 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13723
13724 * doc/md.texi: Document that the % constraint character must
13725 be at the beginning of the string.
13726 * genoutput.c (validate_insn_alternatives): Check that '=',
13727 '+' and '%' only appear at the beginning of a constraint.
13728 * ira.c (commutative_constraint_p): Delete.
13729 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13730 at the start of the string.
13731 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13732 duplicate '='s.
13733 * config/arm/neon.md (bicdi3_neon): Likewise.
13734 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13735 (slt_si, sltu_si): Likewise.
13736 * config/vax/vax.md (sbcdi3): Likewise.
13737 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13738 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13739 (mul64): Move '%' to beginning of constraint.
13740 * config/arm/arm.md (*xordi3_insn): Likewise.
13741 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13742 (xorsi3): Likewise.
13743
13744 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13745
13746 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13747
13748 2014-05-28 Jason Merrill <jason@redhat.com>
13749
13750 PR c++/47202
13751 * cgraph.h (symtab_node::get_comdat_group_id): New.
13752 * cgraphunit.c (analyze_functions): Call it.
13753 * symtab.c (dump_symtab_node): Likewise.
13754 * tree.c (decl_comdat_group_id): New.
13755 * tree.h: Declare it.
13756 * lto-streamer-out.c (write_symbol): Use it.
13757 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13758
13759 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13760
13761 PR bootstrap/PR61146
13762 * wide-int.cc: Do not include longlong.h when compiling with clang.
13763
13764 2014-05-28 Richard Biener <rguenther@suse.de>
13765
13766 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13767 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13768 (vrp_visit_assignment_or_call): Print less vertical space.
13769 (vrp_visit_stmt): Likewise.
13770 (vrp_visit_phi_node): Likewise. For a PHI argument with
13771 VR_VARYING range consider recording it as copy.
13772
13773 2014-05-28 Richard Biener <rguenther@suse.de>
13774
13775 Revert
13776 2014-05-28 Richard Biener <rguenther@suse.de>
13777
13778 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13779
13780 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13781
13782 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13783 sufficiently aligned and an offset is used at the same time.
13784 (expand_expr_real_1): Likewise.
13785
13786 2014-05-28 Richard Biener <rguenther@suse.de>
13787
13788 PR middle-end/61045
13789 * fold-const.c (fold_comparison): When folding
13790 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13791 the sign of the remaining constant operand stays the same.
13792
13793 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13794
13795 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13796 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13797 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13798 to the assembler.
13799 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13800 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13801 (m32bit-doubles) Likewise.
13802 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13803 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13804 option for RL78.
13805
13806 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13807
13808 * configure.ac ($gcc_cv_ld_clearcap): New test.
13809 * configure: Regenerate.
13810 * config.in: Regenerate.
13811 * config/sol2.opt (mclear-hwcap): New option.
13812 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13813 * config/sol2-clearcap.map: Moved here from
13814 testsuite/gcc.target/i386/clearcap.map.
13815 * config/sol2-clearcapv2.map: Move here from
13816 gcc.target/i386/clearcapv2.map.
13817 * config/t-sol2 (install): Depend on install-clearcap-map.
13818 (install-clearcap-map): New target.
13819 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13820 -mclear-hwcap.
13821
13822 2014-05-28 Richard Biener <rguenther@suse.de>
13823
13824 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13825 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13826 ... here and remove the rest.
13827 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13828
13829 2014-05-28 Richard Biener <rguenther@suse.de>
13830
13831 PR tree-optimization/61335
13832 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13833 new range fails, drop to varying.
13834
13835 2014-05-28 Olivier Hainque <hainque@adacore.com>
13836
13837 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13838 (CPP_SPEC): Add entry for -mcpu=8548.
13839 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13840 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13841
13842 2014-05-28 Tom de Vries <tom@codesourcery.com>
13843
13844 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13845 * lra.c (initialize_lra_reg_info_element): Add init of
13846 actual_call_used_reg_set field.
13847 (lra): Call lra_create_live_ranges before lra_inheritance for
13848 -fuse-caller-save.
13849 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13850 -fuse-caller-save.
13851 * lra-constraints.c (need_for_call_save_p): Use
13852 actual_call_used_reg_set instead of call_used_reg_set for
13853 -fuse-caller-save.
13854 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13855
13856 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13857 Tom de Vries <tom@codesourcery.com>
13858
13859 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13860 to gccoptlist.
13861 (@item -fuse-caller-save): New item.
13862
13863 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13864 Tom de Vries <tom@codesourcery.com>
13865
13866 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13867 OPT_fuse_caller_save.
13868
13869 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13870 Tom de Vries <tom@codesourcery.com>
13871
13872 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13873 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13874 get_call_reg_set_usage.
13875 * resource.c (mark_set_resources, mark_target_live_regs): Use
13876 get_call_reg_set_usage.
13877 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13878 field.
13879 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13880 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13881 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13882 * ira-build.c (ira_create_allocno): Init
13883 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13884 (create_cap_allocno, propagate_allocno_info)
13885 (propagate_some_info_from_allocno)
13886 (copy_info_to_removed_store_destinations): Handle
13887 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13888 * ira-costs.c (ira_tune_allocno_costs): Use
13889 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13890
13891 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13892 Tom de Vries <tom@codesourcery.com>
13893
13894 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13895 and function_used_regs_valid fields.
13896 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13897 find_all_hard_reg_sets.
13898 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13899 (get_call_reg_set_usage): New function.
13900 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13901 * regs.h (get_call_reg_set_usage): Declare.
13902
13903 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13904
13905 PR libgcc/61152
13906 * config/dbx.h (License): Add Runtime Library Exception.
13907 * config/newlib-stdint.h (License): Same.
13908 * config/rtems.h (License): Same
13909 * config/initfini-array.h (License): Same
13910 * config/v850/v850.h (License): Same.
13911 * config/v850/v850-opts.h (License): Same
13912 * config/v850/rtems.h (License): Same.
13913
13914 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13915
13916 PR target/61044
13917 * doc/extend.texi (Local Labels): Note that label differences are
13918 not supported for AVR.
13919
13920 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13921 Olivier Hainque <hainque@adacore.com>
13922
13923 * rtl.h (set_for_reg_notes): Declare.
13924 * emit-rtl.c (set_for_reg_notes): New function.
13925 (set_unique_reg_note): Use it.
13926 * optabs.c (add_equal_note): Likewise
13927
13928 2014-05-27 Andrew Pinski <apinski@cavium.com>
13929
13930 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13931 Use <w> for the register in assembly template.
13932 (stack_protect_test): Use the mode of operands[0] for the result.
13933 (stack_protect_test_<mode>): Use <w> for the register
13934 in assembly template.
13935
13936 2014-05-27 DJ Delorie <dj@redhat.com>
13937
13938 * config/rx/rx.c (add_vector_labels): New.
13939 (rx_output_function_prologue): Call it.
13940 (rx_handle_func_attribute): Don't require empty arguments.
13941 (rx_handle_vector_attribute): New.
13942 (rx_attribute_table): Add "vector" attribute.
13943 * doc/extend.texi (interrupt, vector): Document new/changed
13944 RX-specific attributes.
13945
13946 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13947
13948 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13949
13950 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13951 predicate to detect a negative quotient.
13952
13953 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13954
13955 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13956 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13957 Add X - Y CMP 0 to X CMP Y transformation.
13958 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13959
13960 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13961
13962 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13963 before printing.
13964
13965 2014-05-27 Steve Ellcey <sellcey@mips.com>
13966
13967 * config/mips/mips.c: Add include of cgraph.h.
13968
13969 2014-05-27 Richard Biener <rguenther@suse.de>
13970
13971 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13972
13973 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13974
13975 PR libgcc/61152
13976 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13977 * config/arm/arm-cores.def (License): Same.
13978 * config/arm/arm-opts.h (License): Same.
13979 * config/arm/aout.h (License): Same.
13980 * config/arm/bpabi.h (License): Same.
13981 * config/arm/elf.h (License): Same.
13982 * config/arm/linux-elf.h (License): Same.
13983 * config/arm/linux-gas.h (License): Same.
13984 * config/arm/netbsd-elf.h (License): Same.
13985 * config/arm/uclinux-eabi.h (License): Same.
13986 * config/arm/uclinux-elf.h (License): Same.
13987 * config/arm/vxworks.h (License): Same.
13988
13989 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13990
13991 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13992 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13993 (arm_init_neon_builtins): Handle NEON_BSWAP.
13994 Define required type nodes.
13995 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13996 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13997 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13998 * config/arm/iterators.md (VDQHSD): New mode iterator.
13999
14000 2014-05-27 Richard Biener <rguenther@suse.de>
14001
14002 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14003 Try using literal operands when comparing value-ranges failed.
14004
14005 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14006
14007 * ira.c (commutative_operand): Adjust for change to recog_data.
14008 [Missing from previous commit.]
14009
14010 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14011
14012 * system.h (TEST_BIT): New macro.
14013 * recog.h (alternative_mask): New type.
14014 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14015 (recog_data_d): Replace alternative_enabled_p array with
14016 enabled_alternatives.
14017 (target_recog): New structure.
14018 (default_target_recog, this_target_recog): Declare.
14019 (get_enabled_alternatives, recog_init): Likewise.
14020 * recog.c (default_target_recog, this_target_recog): New variables.
14021 (get_enabled_alternatives): New function.
14022 (extract_insn): Use it.
14023 (recog_init): New function.
14024 (preprocess_constraints, constrain_operands): Adjust for change to
14025 recog_data.
14026 * postreload.c (reload_cse_simplify_operands): Likewise.
14027 * reload.c (find_reloads): Likewise.
14028 * ira-costs.c (record_reg_classes): Likewise.
14029 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14030 all alternatives after a disabled one would be skipped.
14031 (ira_implicitly_set_insn_hard_regs): Likewise.
14032 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14033 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14034 with enabled_alternatives.
14035 * lra.c (free_insn_recog_data): Update accordingly.
14036 (lra_update_insn_recog_data): Likewise.
14037 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14038 * lra-constraints.c (process_alt_operands): Likewise. Handle
14039 only_alternative as part of the enabled mask.
14040 * target-globals.h (this_target_recog): Declare.
14041 (target_globals): Add a recog field.
14042 (restore_target_globals): Restore this_target_recog.
14043 * target-globals.c: Include recog.h.
14044 (default_target_globals): Initialize recog field.
14045 (save_target_globals): Likewise.
14046 * reginfo.c (reinit_regs): Call recog_init.
14047 * toplev.c (backend_init_target): Likewise.
14048
14049 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14050
14051 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14052 rather than any named insn's code.
14053
14054 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14055
14056 PR libgcc/61152
14057 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14058 * config/arm/arm-cores.def (License): Same.
14059
14060 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14061
14062 * tree.h (decl_comdat_group): Declare.
14063 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14064 * tree.c (decl_comdat_group): Here.
14065
14066 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14067
14068 PR rtl-optimization/61222
14069 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14070 the shift, truncate the PLUS operand to the result mode.
14071
14072 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14073
14074 PR target/61271
14075 * config/i386/i386.c (ix86_rtx_costs)
14076 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14077 Fix condition.
14078
14079 2014-05-26 Martin Jambor <mjambor@suse.cz>
14080
14081 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14082 subreg uses.
14083
14084 2014-05-26 Richard Biener <rguenther@suse.de>
14085
14086 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14087 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14088 Provide specializations.
14089 (wi::int_traits <HOST_WIDE_INT>,
14090 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14091
14092 2014-05-26 Alan Modra <amodra@gmail.com>
14093
14094 PR target/61098
14095 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14096 params and return a bool. Remove dead code. Update comment.
14097 Assert we have a const_int source. Remove bogus code from
14098 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14099 handling of constants > 2G and reg_equal note, from..
14100 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14101 return value. Update comment. If we can, use a new pseudo
14102 for intermediate calculations.
14103 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14104 prototype.
14105 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14106 call to rs6000_emit_set_const in splitter.
14107 (movdi_internal64+2, +3): Likewise.
14108
14109 2014-05-26 Richard Biener <rguenther@suse.de>
14110
14111 * system.h: Define __STDC_FORMAT_MACROS before
14112 including inttypes.h.
14113 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14114 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14115 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14116 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14117 HOST_WIDEST_INT_C): Remove.
14118 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14119 if C99 inttypes.h is not available.
14120 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14121 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14122 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14123 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14124 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14125 (struct output_info): Likewise.
14126 (print_statistics): Adjust.
14127 (dump_bitmap_statistics): Likewise.
14128 * bt-load.c (migrate_btr_defs): Print with PRId64.
14129 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14130 (MAX_SAFE_MULTIPLIER): Adjust.
14131 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14132 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14133 dump_cgraph_node): Likewise.
14134 * final.c (dump_basic_block_info): Likewise.
14135 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14136 * gcov.c (format_gcov): Likewise.
14137 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14138 for calculation.
14139 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14140 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14141 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14142 Use PRId64 for dumping.
14143 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14144 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14145 (add_allocno_hard_regs): Adjust.
14146 * loop-doloop.c (doloop_modify): Print using PRId64.
14147 * loop-iv.c (inverse): Compute in uint64_t.
14148 (determine_max_iter, iv_number_of_iterations): Likewise.
14149 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14150 Print using PRId64.
14151 * lto-streamer-out.c (write_symbol): Use uint64_t.
14152 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14153 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14154 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14155 * modulo-sched.c (const_iteration_count): Use int64_t.
14156 (sms_schedule): Dump using PRId64.
14157 * predict.c (dump_prediction): Likewise.
14158 * pretty-print.h (pp_widest_integer): Remove.
14159 * profile.c (get_working_sets, is_edge_inconsistent,
14160 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14161 * tree-pretty-print.c (pp_double_int): Remove case handling
14162 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14163 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14164 and adjust users.
14165 (pass_optimize_bswap::execute): Remove restriction on hosts.
14166 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14167 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14168 * tree.c (widest_int_cst_value): Remove.
14169 * tree.h (widest_int_cst_value): Likewise.
14170 * value-prof.c (dump_histogram_value): Print using PRId64.
14171 * gengtype.c (main): Also inject int64_t.
14172 * ggc-page.c (struct max_alignment): Use int64_t.
14173 * alloc-pool.c (struct allocation_object_def): Likewise.
14174 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14175 for computation.
14176 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14177 * doc/tm.texi: Regenerated.
14178 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14179 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14180 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14181 mmix_output_register_setting): Use [u]int64_t in prototypes.
14182 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14183 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14184 mmix_output_octa, mmix_output_shifted_value): Adjust.
14185 (mmix_intval): Adjust. Remove unreachable case.
14186 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14187
14188 2014-05-26 Richard Biener <rguenther@suse.de>
14189
14190 * configure.ac: Drop __int64 type check. Insist that we
14191 found uint64_t and int64_t.
14192 * hwint.h (HOST_BITS_PER___INT64): Remove.
14193 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14194 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14195 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14196 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14197 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14198 for dst_q_src_df_rms_cdt.
14199 * configure: Regenerate.
14200 * config.in: Likewise.
14201
14202 2014-05-26 Michael Tautschnig <mt@debian.org>
14203
14204 PR target/61249
14205 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14206 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14207
14208 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14209
14210 PR rtl-optimization/61278
14211 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14212
14213 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14214
14215 PR rtl-optimization/61220
14216 Part of PR rtl-optimization/61225
14217 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14218 insn; skip split_edge for a block with only one successor.
14219
14220 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14221
14222 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14223 for variables.
14224
14225 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14226
14227 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14228 (update_vtable_references): New function.
14229 (function_and_variable_visibility): Rewrite also vtable initializers.
14230 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14231
14232 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14233
14234 * ggc.h (ggc_grow): New function.
14235 * ggc-none.c (ggc_grow): New function.
14236 * ggc-page.c (ggc_grow): Likewise.
14237
14238 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14239
14240 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14241 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14242 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14243 varpool_externally_visible_p, can_replace_by_local_alias,
14244 update_visibility_by_resolution_info, function_and_variable_visibility,
14245 pass_data_ipa_function_and_variable_visibility,
14246 make_pass_ipa_function_and_variable_visibility,
14247 whole_program_function_and_variable_visibility,
14248 pass_data_ipa_whole_program_visibility,
14249 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14250 * cgraph.h (cgraph_local_node_p): Declare.
14251 * ipa-visibility.c: New file.
14252 * Makefile.in (OBJS): Add ipa-visiblity.o
14253
14254 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14255
14256 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14257 that var decl is available.
14258
14259 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14260
14261 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14262 symtab_node pointer.
14263 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14264 (find_decls_types_r): Do not walk COMDAT_GROUP.
14265 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14266 * varasm.c (make_decl_one_only): Use set_comdat_group;
14267 create node if needed.
14268 * ipa-inline-transform.c (save_inline_function_body): Update
14269 way we decl->symtab mapping.
14270 * symtab.c (symtab_hash, hash_node, eq_node
14271 symtab_insert_node_to_hashtable): Remove.
14272 (symtab_register_node): Update.
14273 (symtab_unregister_node): Update.
14274 (symtab_get_node): Reimplement as inline function.
14275 (symtab_add_to_same_comdat_group): Update.
14276 (symtab_dissolve_same_comdat_group_list): Update.
14277 (dump_symtab_base): Update.
14278 (verify_symtab_base): Update.
14279 (symtab_make_decl_local): Update.
14280 (fixup_same_cpp_alias_visibility): Update.
14281 (symtab_nonoverwritable_alias): Update.
14282 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14283 * ipa.c (update_visibility_by_resolution_info): UPdate.
14284 * bb-reorder.c: Include cgraph.h
14285 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14286 with comdat groups.
14287 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14288 * cgraph.c (cgraph_get_create_node): Update.
14289 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14290 and comdat_group_.
14291 (symtab_get_node): Make inline.
14292 (symtab_insert_node_to_hashtable): Remove.
14293 (symtab_can_be_discarded): Update.
14294 (decl_comdat_group): New function.
14295 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14296 Update.
14297 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14298 comdat group name.
14299 (read_comdat_group): New function.
14300 (input_node, input_varpool_node): Use it.
14301 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14302 comdat groups.
14303 * mips.c (mips_start_unique_function): Likewise.
14304 (ix86_code_end): Likewise.
14305 (rs6000_code_end): Likweise.
14306 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14307
14308 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14309
14310 * gengtype-state.c (fatal_reading_state): Bring offline.
14311 * optabs.c (widening_optab_handler): Bring offline.
14312 * optabs.h (widening_optab_handler): Likewise.
14313 * final.c (get_attr_length_1): Likewise.
14314
14315 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14316
14317 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14318
14319 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14320
14321 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14322 (ppc440-compare): Include shift with dot.
14323 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14324 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14325 without dot.
14326 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14327 without dot.
14328 (e6500_sfx2): Include it.
14329 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14330 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14331 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14332 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14333 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14334 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14335 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14336 *lshiftrt_internal1le, *lshiftrt_internal1be,
14337 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14338 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14339 *rotldi3_internal10le, *rotldi3_internal10be,
14340 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14341 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14342 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14343 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14344 define_insns): Use type "shift" in the appropriate alternatives.
14345
14346 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14347
14348 * config/rs6000/rs6000.md (type): Add "logical". Delete
14349 "fast_compare".
14350 (dot): Adjust comment.
14351 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14352 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14353 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14354 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14355 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14356 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14357 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14358 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14359
14360 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14361 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14362 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14363 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14364 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14365 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14366 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14367 * config/rs6000/8540.md (ppc8540_su): Adjust.
14368 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14369 cell-cmp-microcoded): Adjust.
14370 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14371 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14372 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14373 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14374 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14375 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14376 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14377 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14378 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14379 Adjust.
14380 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14381 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14382 Adjust. Adjust comment.
14383 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14384 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14385
14386 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14387
14388 * config/rs6000/rs6000.md (type): Add "add".
14389 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14390 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14391 define_insns): Use it.
14392 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14393
14394 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14395 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14396 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14397 * config/rs6000/601.md (ppc601-integer): Adjust.
14398 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14399 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14400 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14401 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14402 * config/rs6000/8540.md (ppc8540_su): Adjust.
14403 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14404 cell-cmp-microcoded): Adjust.
14405 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14406 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14407 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14408 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14409 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14410 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14411 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14412 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14413 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14414 Adjust.
14415 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14416 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14417 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14418 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14419
14420 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14421
14422 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14423 "delayed_compare", "var_delayed_compare".
14424 (var_shift): New attribute.
14425 (cell_micro): Adjust.
14426 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14427 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14428 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14429 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14430 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14431 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14432 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14433 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14434 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14435 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14436 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14437 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14438 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14439 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14440 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14441 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14442 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14443 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14444 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14445 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14446 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14447 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14448 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14449 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14450 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14451
14452 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14453 * config/rs6000/440.md (ppc440-integer): Adjust.
14454 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14455 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14456 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14457 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14458 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14459 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14460 * config/rs6000/8540.md (ppc8540_su): Adjust.
14461 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14462 cell-cmp-microcoded): Adjust.
14463 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14464 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14465 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14466 e500mc64_delayed): Adjust.
14467 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14468 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14469 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14470 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14471 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14472 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14473 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14474 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14475 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14476 Adjust comment.
14477 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14478 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14479
14480 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14481
14482 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14483 (bits): New mode_attr.
14484 (idiv_ldiv): Delete mode_attr.
14485 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14486 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14487 rs6000_adjust_priority, is_nonpipeline_insn,
14488 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14489
14490 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14491 * config/rs6000/440.md (ppc440-idiv): Adjust.
14492 * config/rs6000/476.md (ppc476-idiv): Adjust.
14493 * config/rs6000/601.md (ppc601-idiv): Adjust.
14494 * config/rs6000/603.md (ppc603-idiv): Adjust.
14495 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14496 ppc620-ldiv): Adjust.
14497 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14498 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14499 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14500 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14501 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14502 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14503 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14504 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14505 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14506 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14507 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14508 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14509 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14510 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14511 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14512 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14513 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14514 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14515
14516 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14517
14518 * config/rs6000/rs6000.md (type): Delete "insert_word",
14519 "insert_dword". Add "insert".
14520 (size): Update comment.
14521 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14522 insn_must_be_first_in_group): Adjust.
14523 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14524 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14525 *insvsi_internal6, insvdi_internal): Adjust.
14526
14527 * config/rs6000/40x.md (ppc403-integer): Adjust.
14528 * config/rs6000/440.md (ppc440-integer): Adjust.
14529 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14530 * config/rs6000/601.md (ppc601-integer): Adjust.
14531 * config/rs6000/603.md (ppc603-integer): Adjust.
14532 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14533 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14534 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14535 * config/rs6000/8540.md (ppc8540_su): Adjust.
14536 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14537 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14538 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14539 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14540 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14541 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14542 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14543 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14544 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14545 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14546 * config/rs6000/power7.md (power7-integer): Adjust.
14547 * config/rs6000/power8.md (power8-1cyc): Adjust.
14548 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14549 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14550
14551 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14552
14553 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14554 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14555 (size): New attribute.
14556 (dot): New attribute.
14557 (cell_micro): Adjust.
14558 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14559 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14560 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14561 umuldi3_highpart): Adjust.
14562 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14563 rs6000_adjust_priority, is_nonpipeline_insn,
14564 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14565
14566 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14567 ppc405-imul3): Adjust.
14568 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14569 * config/rs6000/476.md (ppc476-imul): Adjust.
14570 * config/rs6000/601.md (ppc601-imul): Adjust.
14571 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14572 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14573 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14574 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14575 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14576 Adjust.
14577 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14578 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14579 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14580 cell-imul): Adjust.
14581 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14582 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14583 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14584 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14585 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14586 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14587 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14588 power4-lmul, power4-imul, power4-imul3): Adjust.
14589 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14590 power5-lmul, power5-imul, power5-imul3): Adjust.
14591 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14592 power6-lmul, power6-imul, power6-imul3): Adjust.
14593 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14594 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14595
14596 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14597 rs64a-lmul): Adjust.
14598 * config/rs6000/titan.md (titan_imul): Adjust.
14599
14600 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14601
14602 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14603 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14604 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14605 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14606 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14607 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14608 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14609 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14610 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14611 * config/rs6000/titan.md: Delete nonsensical comment.
14612 (titan_imul): Add type imul3.
14613 (titan_mulhw): Remove type imul3; add type halfmul.
14614
14615 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14616
14617 * config/rs6000/rs6000.md (type): Reorder, reformat.
14618
14619 2014-05-23 Martin Jambor <mjambor@suse.cz>
14620
14621 PR tree-optimization/53787
14622 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14623 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14624 analysis_done, update all uses.
14625 * ipa-prop.c: Include domwalk.h
14626 (param_analysis_info): Removed.
14627 (param_aa_status): New type.
14628 (ipa_bb_info): Likewise.
14629 (func_body_info): Likewise.
14630 (ipa_get_bb_info): New function.
14631 (aa_overwalked): Likewise.
14632 (find_dominating_aa_status): Likewise.
14633 (parm_bb_aa_status_for_bb): Likewise.
14634 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14635 (load_from_unmodified_param): Accept func_body_info as a parameter
14636 instead of parms_ainfo.
14637 (parm_ref_data_preserved_p): Changed to use new param AA info.
14638 (parm_ref_data_pass_through_p): Likewise.
14639 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14640 (compute_complex_assign_jump_func): Changed to use new param AA info.
14641 (compute_complex_ancestor_jump_func): Likewise.
14642 (ipa_compute_jump_functions_for_edge): Likewise.
14643 (ipa_compute_jump_functions): Removed.
14644 (ipa_compute_jump_functions_for_bb): New function.
14645 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14646 declarations down.
14647 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14648 and info, moved variable declarations down.
14649 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14650 node and info.
14651 (ipa_analyze_stmt_uses): Likewise.
14652 (ipa_analyze_params_uses): Removed.
14653 (ipa_analyze_params_uses_in_bb): New function.
14654 (ipa_analyze_controlled_uses): Likewise.
14655 (free_ipa_bb_info): Likewise.
14656 (analysis_dom_walker): New class.
14657 (ipa_analyze_node): Handle node-specific forbidden analysis,
14658 initialize and free func_body_info, use dominator walker.
14659 (ipcp_modif_dom_walker): New class.
14660 (ipcp_transform_function): Create and free func_body_info, use
14661 ipcp_modif_dom_walker, moved a lot of functionality there.
14662
14663 2014-05-23 Marek Polacek <polacek@redhat.com>
14664 Jakub Jelinek <jakub@redhat.com>
14665
14666 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14667 * gcc.c (sanitize_spec_function): Likewise.
14668 * convert.c (convert_to_integer): Include "ubsan.h". Add
14669 floating-point to integer instrumentation.
14670 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14671 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14672 SANITIZE_NONDEFAULT.
14673 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14674 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14675 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14676 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14677 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14678 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14679 float/double/long double.
14680 (ubsan_instrument_float_cast): New function.
14681 * ubsan.h (ubsan_instrument_float_cast): Declare.
14682
14683 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14684
14685 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14686 predicate.
14687 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14688 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14689 Adjust for tailcalling through registers.
14690 * config/aarch64/aarch64.h (enum reg_class): New caller save
14691 register class.
14692 (REG_CLASS_NAMES): Likewise.
14693 (REG_CLASS_CONTENTS): Likewise.
14694 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14695 Allow tailcalling without decls.
14696
14697 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14698
14699 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14700 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14701
14702 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14703 gsi, and variables v_* to v*.
14704
14705 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14706
14707 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14708
14709 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14710
14711 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14712 * omp-low.c: Update accordingly.
14713
14714 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14715 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14716 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14717 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14718 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14719 GF_OMP_TARGET_KIND_UPDATE.
14720
14721 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14722 Explicitly enumerate the expected region types.
14723
14724 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14725
14726 PR other/56955
14727 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14728 documentation; the old documentation didn't clearly state the
14729 constraints on the contents of the pointed-to storage.
14730
14731 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14732
14733 Fix bootstrap error on ia64
14734 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14735 Return default value.
14736
14737 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14738
14739 PR tree-optimization/54733
14740 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14741 (CMPNOP): Define.
14742 (find_bswap_or_nop_load): New.
14743 (find_bswap_1): Renamed to ...
14744 (find_bswap_or_nop_1): This. Also add support for memory source.
14745 (find_bswap): Renamed to ...
14746 (find_bswap_or_nop): This. Also add support for memory source and
14747 detection of bitwise operations equivalent to load in target
14748 endianness.
14749 (execute_optimize_bswap): Likewise. Also move its leading comment back
14750 in place and split statement transformation into ...
14751 (bswap_replace): This.
14752
14753 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14754
14755 PR rtl-optimization/61215
14756 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14757 simplify_gen_subreg until final substitution.
14758
14759 2014-05-23 Alan Modra <amodra@gmail.com>
14760
14761 PR target/61231
14762 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14763 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14764 Use "Y" constraint rather than "m".
14765
14766 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14767
14768 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14769 define.
14770 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14771 New function declaration.
14772 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14773 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14774 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14775 (aarch64_init_builtins) : Initialize builtins
14776 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14777 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14778 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14779 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14780 and __builtins_aarch64_set_fpsr.
14781 (aarch64_atomic_assign_expand_fenv): New function.
14782 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14783 (get_fpcr) : Likewise.
14784 (set_fpsr) : Likewise.
14785 (get_fpsr) : Likewise.
14786 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14787 and UNSPECV_SET_FPSR.
14788 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14789 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14790 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14791
14792 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14793
14794 PR rtl-optimization/60969
14795 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14796 constraints. Set up mem cost for NO_REGS case.
14797
14798 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14799
14800 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14801
14802 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14803
14804 * config/darwin.c: Include "lto-section-names.h".
14805 (LTO_SEGMENT_NAME): Don't define.
14806 * config/i386/winnt.c: Include "lto-section-names.h".
14807 * lto-streamer.c: Include "lto-section-names.h".
14808 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14809 * lto-wrapper.c: Include "lto-section-names.h".
14810 (LTO_SECTION_NAME_PREFIX): Don't define.
14811 * lto-section-names.h: New file.
14812 * cgraphunit.c: Include "lto-section-names.h".
14813
14814 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14815
14816 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14817
14818 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14819
14820 PR target/61208
14821 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14822
14823 2014-05-22 Nick Clifton <nickc@redhat.com>
14824
14825 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14826
14827 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14828
14829 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14830 -> (T)A transformation to integer types.
14831
14832 2014-05-22 Teresa Johnson <tejohnson@google.com>
14833
14834 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14835 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14836 (gcov_rewrite): Use gcov_nonruntime_assert.
14837 (gcov_open): Ditto.
14838 (gcov_write_words): Ditto.
14839 (gcov_write_length): Ditto.
14840 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14841 gcc_assert from IN_LIBGCOV code.
14842 (gcov_read_summary): Use gcov_error to flag profile corruption.
14843 (gcov_sync): Use gcov_nonruntime_assert.
14844 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14845 (gcov_histo_index): Use gcov_nonruntime_assert.
14846 (static void gcov_histogram_merge): Ditto.
14847 (compute_working_sets): Ditto.
14848 * gcov-io.h (gcov_nonruntime_assert): Define.
14849 (gcov_error): Define for !IN_LIBGCOV
14850
14851 2014-05-22 Richard Biener <rguenther@suse.de>
14852
14853 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14854 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14855 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14856 and deallocation site.
14857 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14858 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14859 passing through the incoming points-to set.
14860 (handle_lhs_call): Use flags argument instead of recomputing it.
14861 (find_func_aliases_for_call): Call handle_lhs_call with proper
14862 call return flags.
14863
14864 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14865
14866 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14867 all padding bits in REAL_VALUE_TYPE are cleared.
14868
14869 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14870
14871 Cleanup and improve multipass_dfa_lookahead_guard
14872 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14873 (core2i7_first_cycle_multipass_begin,)
14874 (core2i7_first_cycle_multipass_issue,)
14875 (core2i7_first_cycle_multipass_backtrack): Update signature.
14876 * config/ia64/ia64.c
14877 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14878 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14879 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14880 hook definition.
14881 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14882 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14883 values.
14884 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14885 return values.
14886 * doc/tm.texi: Regenerate.
14887 * doc/tm.texi.in
14888 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14889 * haifa-sched.c (ready_try): Make signed to allow negative values.
14890 (rebug_ready_list_1): Update.
14891 (choose_ready): Simplify.
14892 (sched_extend_ready_list): Update.
14893
14894 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14895
14896 Remove IA64 speculation tweaking flags
14897 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14898 speculation tuning flags.
14899 (msched-prefer-non-data-spec-insns,)
14900 (msched-prefer-non-control-spec-insns): Obsolete options.
14901 * haifa-sched.c (choose_ready): Remove handling of
14902 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14903 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14904 and PREFER_NON_DATA_SPEC.
14905 * sel-sched.c (process_spec_exprs): Remove handling of
14906 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14907
14908 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14909
14910 Improve scheduling debug output
14911 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14912 (advance_one_cycle): Update.
14913 (schedule_insn, queue_to_ready): Add debug printouts.
14914 (debug_ready_list_1): New static function.
14915 (debug_ready_list): Update.
14916 (max_issue): Add debug printouts.
14917 (dump_insn_stream): New static function.
14918 (schedule_block): Use it. Also better indent printouts.
14919
14920 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14921
14922 Fix sched_insn debug counter
14923 * haifa-sched.c (schedule_insn): Update.
14924 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14925 (save_backtrack_point, restore_backtrack_point): Update.
14926 (first_nonscheduled_insn): New static function.
14927 (queue_to_ready, choose_ready): Use it.
14928 (schedule_block): Init nonscheduled_insns_begin.
14929 (sched_emit_insn): Update.
14930
14931
14932 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14933
14934 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14935 to GENERAL_REGS.
14936 (aarch64_secondary_reload) : LikeWise.
14937 (aarch64_class_max_nregs) : Remove CORE_REGS.
14938 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14939 (REG_CLASS_NAMES) : Likewise.
14940 (REG_CLASS_CONTENTS) : LikeWise.
14941 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14942
14943 2014-05-21 Guozhi Wei <carrot@google.com>
14944
14945 PR target/61202
14946 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14947 constraint.
14948 (vqdmulhq_n_s16): Likewise.
14949
14950 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14951
14952 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14953
14954 2014-05-21 Marek Polacek <polacek@redhat.com>
14955
14956 PR sanitizer/61272
14957 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14958
14959 2014-05-21 Martin Jambor <mjambor@suse.cz>
14960
14961 * doc/invoke.texi (Optimize Options): Document parameters
14962 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14963 ipa-cp-array-index-hint-bonus.
14964
14965 2014-05-21 Mark Wielaard <mjw@redhat.com>
14966
14967 PR debug/16063
14968 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14969 version >= 3 or not strict DWARF.
14970 * langhooks.h (struct lang_hooks_for_types): Add
14971 enum_underlying_base_type.
14972 * langhooks.c (lhd_enum_underlying_base_type): New function.
14973 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14974 enum_underlying_base_type.
14975 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14976 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14977 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14978
14979 2014-05-21 Richard Biener <rguenther@suse.de>
14980
14981 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14982
14983 2014-05-21 John Marino <gnugcc@marino.st>
14984
14985 * config.gcc (*-*-dragonfly*): New target.
14986 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14987 * configure: Regenerate.
14988 * config/dragonfly-stdint.h: New.
14989 * config/dragonfly.h: New.
14990 * config/dragonfly.opt: New.
14991 * config/i386/dragonfly.h: New.
14992 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14993
14994 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14995
14996 * tree.def (VOID_CST): New.
14997 * tree-core.h (TI_VOID): New.
14998 * tree.h (void_node): New.
14999 * tree.c (tree_node_structure_for_code, tree_code_size)
15000 (iterative_hash_expr): Handle VOID_CST.
15001 (build_common_tree_nodes): Initialize void_node.
15002
15003 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15004
15005 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15006 functions.
15007 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15008
15009 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15010 more places.
15011
15012 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15013 flag_reorder_blocks_and_partition.
15014 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15015
15016 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15017
15018 PR target/54236
15019 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15020 constraints.
15021 (*addc_r_t): Add new insn_and_split.
15022
15023 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15024
15025 PR middle-end/61252
15026 * omp-low.c (handle_simd_reference): New function.
15027 (lower_rec_input_clauses): Use it. Defer adding reference
15028 initialization even for reduction without placeholder if in simd,
15029 handle it properly later on.
15030
15031 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15032
15033 PR tree-optimization/60899
15034 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15035 assume all static symbols will have definition wile parsing and
15036 check the do have definition later in compilation; check that
15037 variable referring symbol will be output before concluding that
15038 reference is safe; be conservative for referring local statics;
15039 be more precise about when comdat is output in other partition.
15040
15041 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15042
15043 PR bootstrap/60984
15044 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15045 parameter.
15046 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15047 (ipa_inline): Loop inline_to_all_callers until no more aliases
15048 are removed.
15049
15050 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15051
15052 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15053 set writeonly flag only for vars actually written to.
15054
15055 2014-05-20 Dehao Chen <dehao@google.com>
15056
15057 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15058 and callee count to get clone count.
15059 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15060 count in copy_body.
15061
15062 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15063
15064 PR rtl-optimization/61243
15065 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15066
15067 2014-05-20 Xinliang David Li <davidxl@google.com>
15068
15069 * cgraphunit.c (walk_polymorphic_call_targets): Add
15070 dbgcnt and fopt-info support.
15071 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15072 * ipa-devirt.c (ipa_devirt): Ditto.
15073 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15074 * ipa.c (walk_polymorphic_call_targets): Ditto.
15075 * gimple-fold.c (fold_gimple_assign): Ditto.
15076 (gimple_fold_call): Ditto.
15077 * dbgcnt.def: New counter.
15078
15079 2014-05-20 DJ Delorie <dj@redhat.com>
15080
15081 * config/msp430/msp430.md (split): Don't allow subregs when
15082 splitting SImode adds.
15083 (andneghi): Fix subtraction logic.
15084 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15085
15086 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15087
15088 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15089 symbols.
15090 * except.c (switch_to_exception_section, resolve_unique_section,
15091 get_named_text_section, default_function_rodata_section,
15092 align_variable, get_block_for_decl, default_section_type_flags):
15093 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15094 * symtab.c (symtab_add_to_same_comdat_group,
15095 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15096 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15097 Likewise.
15098 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15099 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15100 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15101 (c6x_function_in_section_p): Likewise.
15102 * config/darwin.c (machopic_select_section): Likewise.
15103 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15104 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15105 * config/mep/mep.c (mep_select_section): LIkewise.
15106 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15107
15108 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15109
15110 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15111 EH region of calls to pure functions that can throw an exception.
15112 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15113 (copy_reference_ops_from_call): Also copy the EH region of the call if
15114 it can throw an exception.
15115
15116 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15117
15118 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15119 nested VEC_SELECTs that are inverses of each other.
15120
15121 2014-05-20 Richard Biener <rguenther@suse.de>
15122
15123 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15124 (extract_and_process_scc_for_name): not here.
15125 (cond_dom_walker::before_dom_children): Only process
15126 stmts that end the BB in interesting ways.
15127 (run_scc_vn): Mark param uses as visited.
15128
15129 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15130
15131 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15132 arm_restrict_it.
15133
15134 2014-05-20 Nick Clifton <nickc@redhat.com>
15135
15136 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15137 (msp430_gimplify_va_arg_expr): New function.
15138 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15139
15140 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15141 operand 0 in order to prevent confusion about the number of
15142 registers involved.
15143
15144 2014-05-20 Richard Biener <rguenther@suse.de>
15145
15146 PR tree-optimization/61221
15147 * tree-ssa-pre.c (el_to_update): Remove.
15148 (eliminate_dom_walker::before_dom_children): Handle released
15149 VDEFs by value-numbering them to the associated VUSE. Update
15150 stmt immediately for substituted call address.
15151 (eliminate): Remove delayed stmt updating code.
15152 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15153 possibly late re-numbered vuses.
15154 (vn_reference_lookup_2): Adjust.
15155 (vn_reference_lookup_pieces): Likewise.
15156 (vn_reference_lookup): Likewise.
15157
15158 2014-05-20 Richard Biener <rguenther@suse.de>
15159
15160 * config.gcc: Remove need_64bit_hwint.
15161 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15162 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15163 it to be true.
15164 * config.in: Regenerate.
15165 * configure: Likewise.
15166
15167 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15168
15169 * doc/extend.texi: Create Label Attributes section,
15170 move all label attributes into it and reference it.
15171
15172 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15173
15174 * arm.c (thumb1_reorg): When scanning backwards skip anything
15175 that's not a proper insn.
15176
15177 2014-05-19 Richard Biener <rguenther@suse.de>
15178
15179 PR tree-optimization/61221
15180 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15181 Do nothing for unreachable blocks.
15182 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15183 Improve unreachability detection.
15184
15185 2014-05-19 Richard Biener <rguenther@suse.de>
15186
15187 PR tree-optimization/61209
15188 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15189
15190 2014-05-19 Nick Clifton <nickc@redhat.com>
15191
15192 * except.c (init_eh): Fix computation of builtin setjmp buffer
15193 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15194
15195 2014-05-19 Richard Biener <rguenther@suse.de>
15196
15197 PR tree-optimization/61184
15198 * tree-vrp.c (is_negative_overflow_infinity): Use
15199 TREE_OVERFLOW_P and do that check first.
15200 (is_positive_overflow_infinity): Likewise.
15201 (is_overflow_infinity): Likewise.
15202 (vrp_operand_equal_p): Properly treat operands with
15203 differing overflow as not equal.
15204
15205 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15206
15207 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15208 shift simplification where it was intended.
15209
15210 2014-05-19 Christian Bruel <christian.bruel@st.com>
15211
15212 PR target/61195
15213 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15214
15215 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15216
15217 PR target/61084
15218 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15219 than wide_int.
15220
15221 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15222
15223 * reg-notes.def (CROSSING_JUMP): Likewise.
15224 * rtl.h (rtx_def): Update comment for jump flag.
15225 (CROSSING_JUMP_P): Define.
15226 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15227 of a REG_CROSSING_JUMP note.
15228 * cfghooks.c (tidy_fallthru_edges): Likewise.
15229 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15230 * emit-rtl.c (try_split): Likewise.
15231 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15232 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15233 * jump.c (redirect_jump_2): Likewise.
15234 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15235 (relax_delay_slots): Likewise.
15236 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15237 (bbit_di): Likewise.
15238 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15239 * config/sh/sh.md (jump_compact): Likewise.
15240 * bb-reorder.c (rotate_loop): Likewise.
15241 (pass_duplicate_computed_gotos::execute): Likewise.
15242 (add_reg_crossing_jump_notes): Rename to...
15243 (update_crossing_jump_flags): ...this.
15244 (pass_partition_blocks::execute): Update accordingly.
15245
15246 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15247
15248 * tree.h: Remove extraneous template <>.
15249
15250 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15251
15252 * ipa.c (symtab_remove_unreachable_nodes): Remove
15253 symbol from comdat group if its body was eliminated.
15254 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15255 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15256 (symtab_unregister_node): ... this one.
15257 (verify_symtab_base): More strict checking of comdats.
15258 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15259
15260 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15261
15262 * tree-pass.h (make_pass_ipa_comdats): New pass.
15263 * timevar.def (TV_IPA_COMDATS): New timevar.
15264 * passes.def (pass_ipa_comdats): Add.
15265 * Makefile.in (OBJS): Add ipa-comdats.o
15266 * ipa-comdats.c: New file.
15267
15268 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15269
15270 * ipa.c (update_visibility_by_resolution_info): New function.
15271 (function_and_variable_visibility): Use it.
15272
15273 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15274
15275 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15276 New functions.
15277 (FOR_EACH_DEFINED_SYMBOL): New macro.
15278 (varpool_first_static_initializer, varpool_next_static_initializer,
15279 varpool_first_defined_variable, varpool_next_defined_variable):
15280 Fix comments.
15281 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15282
15283 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15284
15285 * ggc-page.c (ggc_handle_finalizers): Add comment.
15286
15287 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15288
15289 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15290 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15291 (ggc_internal_cleared_alloc): Likewise.
15292 * ggc-page.c (finalizer): New class.
15293 (vec_finalizer): Likewise.
15294 (globals::finalizers): New member.
15295 (globals::vec_finalizers): Likewise.
15296 (ggc_internal_alloc): Record the finalizer if any for the block being
15297 allocated.
15298 (ggc_handle_finalizers): New function.
15299 (ggc_collect): Call ggc_handle_finalizers.
15300 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15301 finalizer.
15302 (ggc_internal_cleared_alloc): Likewise.
15303 (finalize): New function.
15304 (need_finalization_p): Likewise.
15305 (ggc_alloc): Install the type's destructor as the finalizer if it
15306 might do something.
15307 (ggc_cleared_alloc): Likewise.
15308 (ggc_vec_alloc): Likewise.
15309 (ggc_cleared_vec_alloc): Likewise.
15310
15311 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15312
15313 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15314
15315 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15316
15317 * alias.c (record_alias_subset): Adjust.
15318 * bitmap.c (bitmap_element_allocate): Likewise.
15319 (bitmap_gc_alloc_stat): Likewise.
15320 * cfg.c (init_flow): Likewise.
15321 (alloc_block): Likewise.
15322 (unchecked_make_edge): Likewise.
15323 * cfgloop.c (alloc_loop): Likewise.
15324 (flow_loops_find): Likewise.
15325 (rescan_loop_exit): Likewise.
15326 * cfgrtl.c (init_rtl_bb_info): Likewise.
15327 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15328 (cgraph_allocate_node): Likewise.
15329 (cgraph_create_edge_1): Likewise.
15330 (cgraph_allocate_init_indirect_info): Likewise.
15331 * cgraphclones.c (cgraph_clone_edge): Likewise.
15332 * cgraphunit.c (add_asm_node): Likewise.
15333 (init_lowered_empty_function): Likewise.
15334 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15335 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15336 (alpha_use_linkage): Likewise.
15337 * config/arc/arc.c (arc_init_machine_status): Likewise.
15338 * config/arm/arm.c (arm_init_machine_status): Likewise.
15339 * config/avr/avr.c (avr_init_machine_status): Likewise.
15340 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15341 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15342 * config/cris/cris.c (cris_init_machine_status): Likewise.
15343 * config/darwin.c (machopic_indirection_name): Likewise.
15344 (darwin_build_constant_cfstring): Likewise.
15345 (darwin_enter_string_into_cfstring_table): Likewise.
15346 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15347 * config/frv/frv.c (frv_init_machine_status): Likewise.
15348 * config/i386/i386.c (get_dllimport_decl): Likewise.
15349 (ix86_init_machine_status): Likewise.
15350 (assign_386_stack_local): Likewise.
15351 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15352 (i386_pe_maybe_record_exported_symbol): Likewise.
15353 (i386_pe_record_stub): Likewise.
15354 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15355 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15356 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15357 (m32c_note_pragma_address): Likewise.
15358 * config/mep/mep.c (mep_init_machine_status): Likewise.
15359 (mep_note_pragma_flag): Likewise.
15360 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15361 (mips16_local_alias): Likewise.
15362 (mips_init_machine_status): Likewise.
15363 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15364 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15365 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15366 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15367 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15368 * config/pa/pa.c (pa_init_machine_status): Likewise.
15369 (pa_get_deferred_plabel): Likewise.
15370 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15371 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15372 (rs6000_init_machine_status): Likewise.
15373 (output_toc): Likewise.
15374 * config/s390/s390.c (s390_init_machine_status): Likewise.
15375 * config/score/score.c (score_output_external): Likewise.
15376 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15377 * config/spu/spu.c (spu_init_machine_status): Likewise.
15378 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15379 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15380 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15381 * coverage.c (coverage_end_function): Likewise.
15382 * dbxout.c (dbxout_init): Likewise.
15383 * doc/gty.texi: Don't mention variable_size attribute.
15384 * dwarf2cfi.c (new_cfi): Adjust.
15385 (new_cfi_row): Likewise.
15386 (copy_cfi_row): Likewise.
15387 (create_cie_data): Likewise.
15388 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15389 (new_loc_descr): Likewise.
15390 (find_AT_string_in_table): Likewise.
15391 (add_addr_table_entry): Likewise.
15392 (new_die): Likewise.
15393 (add_var_loc_to_decl): Likewise.
15394 (clone_die): Likewise.
15395 (clone_as_declaration): Likewise.
15396 (break_out_comdat_types): Likewise.
15397 (new_loc_list): Likewise.
15398 (add_loc_descr_to_each): Likewise.
15399 (add_location_or_const_value_attribute): Likewise.
15400 (add_linkage_name): Likewise.
15401 (lookup_filename): Likewise.
15402 (dwarf2out_var_location): Likewise.
15403 (new_line_info_table): Likewise.
15404 (dwarf2out_init): Likewise.
15405 (mem_loc_descriptor): Likewise.
15406 (loc_descriptor): Likewise.
15407 (add_const_value_attribute): Likewise.
15408 (tree_add_const_value_attribute): Likewise.
15409 (comp_dir_string): Likewise.
15410 (dwarf2out_vms_debug_main_pointer): Likewise.
15411 (string_cst_pool_decl): Likewise.
15412 * emit-rtl.c (set_mem_attrs): Likewise.
15413 (get_reg_attrs): Likewise.
15414 (start_sequence): Likewise.
15415 (init_emit): Likewise.
15416 (init_emit_regs): Likewise.
15417 * except.c (init_eh_for_function): Likewise.
15418 (gen_eh_region): Likewise.
15419 (gen_eh_region_catch): Likewise.
15420 (gen_eh_landing_pad): Likewise.
15421 (add_call_site): Likewise.
15422 * function.c (add_frame_space): Likewise.
15423 (insert_temp_slot_address): Likewise.
15424 (assign_stack_temp_for_type): Likewise.
15425 (get_hard_reg_initial_val): Likewise.
15426 (allocate_struct_function): Likewise.
15427 (prepare_function_start): Likewise.
15428 (types_used_by_var_decl_insert): Likewise.
15429 * gengtype.c (variable_size_p): Remove function.
15430 (enum alloc_quantity): Remove enum.
15431 (write_typed_alloc_def): Remove function.
15432 (write_typed_struct_alloc_def): Likewise.
15433 (write_typed_typedef_alloc_def): Likewise.
15434 (write_typed_alloc_defns): Likewise.
15435 (main): Adjust.
15436 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15437 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15438 * ggc.h (ggc_alloc): new function.
15439 (ggc_cleared_alloc): Likewise.
15440 (ggc_vec_alloc): Template on type of vector element, and remove
15441 element size argument.
15442 (ggc_cleared_vec_alloc): Likewise.
15443 * gimple.c (gimple_build_omp_for): Adjust.
15444 (gimple_copy): Likewise.
15445 * ipa-cp.c (get_replacement_map): Likewise.
15446 (find_aggregate_values_for_callers_subset): Likewise.
15447 (known_aggs_to_agg_replacement_list): Likewise.
15448 * ipa-devirt.c (get_odr_type): Likewise.
15449 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15450 (read_agg_replacement_chain): Likewise.
15451 * loop-iv.c (get_simple_loop_desc): Likewise.
15452 * lto-cgraph.c (input_node_opt_summary): Likewise.
15453 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15454 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15455 (input_eh_region): Likewise.
15456 (input_eh_lp): Likewise.
15457 (input_cfg): Likewise.
15458 * optabs.c (set_optab_libfunc): Likewise.
15459 (init_tree_optimization_optabs): Likewise.
15460 (set_conv_libfunc): Likewise.
15461 * passes.c (do_per_function_toporder): Likewise.
15462 * rtl.h: Don't use variable_size gty attribute.
15463 * sese.c (if_region_set_false_region): Adjust.
15464 * stringpool.c (gt_pch_save_stringpool): Likewise.
15465 * target-globals.c (save_target_globals): Likewise.
15466 * toplev.c (general_init): Likewise.
15467 * trans-mem.c (record_tm_replacement): Likewise.
15468 (split_bb_make_tm_edge): Likewise.
15469 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15470 * tree-data-ref.h (lambda_vector_new): Likewise.
15471 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15472 * tree-iterator.c (tsi_link_before): Likewise.
15473 (tsi_link_after): Likewise.
15474 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15475 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15476 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15477 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15478 * tree-ssa.c (init_tree_ssa): Adjust.
15479 * tree-ssanames.c (set_range_info): Likewise.
15480 (get_ptr_info): Likewise.
15481 (duplicate_ssa_name_ptr_info): Likewise.
15482 (duplicate_ssa_name_range_info): Likewise.
15483 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15484 (unpack_ts_fixed_cst_value_fields): Likewise.
15485 * tree.c (build_fixed): Likewise.
15486 (build_real): Likewise.
15487 (build_string): Likewise.
15488 (decl_priority_info): Likewise.
15489 (decl_debug_expr_insert): Likewise.
15490 (decl_value_expr_insert): Likewise.
15491 (decl_debug_args_insert): Likewise.
15492 (type_hash_add): Likewise.
15493 (build_omp_clause): Likewise.
15494 * ubsan.c (decl_for_type_insert): Likewise.
15495 * varasm.c (get_unnamed_section): Likewise.
15496 (get_noswitch_section): Likewise.
15497 (get_section): Likewise.
15498 (get_block_for_section): Likewise.
15499 (create_block_symbol): Likewise.
15500 (build_constant_desc): Likewise.
15501 (create_constant_pool): Likewise.
15502 (force_const_mem): Likewise.
15503 (record_tm_clone_pair): Likewise.
15504 * varpool.c (varpool_create_empty_node): Likewise.
15505
15506 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15507
15508 * dwarf2out.c (tree_add_const_value_attribute): Call
15509 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15510 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15511 instead of ggc_internal_<x>alloc_stat.
15512 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15513 (ggc_realloc): Likewise.
15514 * ggc-none.c (ggc_internal_alloc): Likewise.
15515 (ggc_internal_cleared_alloc): Likewise.
15516 * ggc-page.c: Likewise.
15517 * ggc.h (ggc_internal_alloc_stat): Likewise.
15518 (ggc_internal_alloc): Remove macro.
15519 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15520 (ggc_internal_cleared_alloc): Remove macro.
15521 (GGC_RESIZEVEC): Adjust.
15522 (ggc_resizevar): Remove macro.
15523 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15524 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15525 (ggc_internal_vec_cleared_alloc): Remove macro.
15526 (ggc_alloc_atomic_stat): Drop _stat suffix.
15527 (ggc_alloc_atomic): Remove macro.
15528 (ggc_alloc_cleared_atomic): Remove macro.
15529 (ggc_alloc_string_stat): Drop _stat suffix.
15530 (ggc_alloc_string): Remove macro.
15531 (ggc_alloc_rtx_def_stat): Adjust.
15532 (ggc_alloc_tree_node_stat): Likewise.
15533 (ggc_alloc_cleared_tree_node_stat): Likewise.
15534 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15535 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15536 * gimple.c (gimple_build_omp_for): Likewise.
15537 (gimple_copy): Likewise.
15538 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15539 * toplev.c (realloc_for_line_map): Adjust.
15540 * tree-data-ref.h (lambda_vector_new): Likewise.
15541 * tree-phinodes.c (allocate_phi_node): Likewise.
15542 * tree.c (grow_tree_vec_stat): Likewise.
15543 * vec.h (va_gc::reserve): Adjust.
15544
15545 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15546
15547 * config/microblaze/microblaze.c (break_handler): New Declaration.
15548 (microblaze_break_function_p,microblaze_is_break_handler): New.
15549 (compute_frame_size): Use microblaze_break_function_p.
15550 Add the test of break_handler.
15551 (microblaze_function_prologue) : Add the test of variable
15552 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15553 (microblaze_function_epilogue) : Add the test of break_handler.
15554 (microblaze_globalize_label) : Add the test of break_handler.
15555 Check the name by BREAK_HANDLER_NAME.
15556
15557 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15558
15559 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15560 microblaze_is_break_handler test.
15561 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15562 Use SYMBOL_REF_DECL.
15563
15564 * config/microblaze/microblaze-protos.h
15565 (microblaze_break_function_p,microblaze_is_break_handler):
15566 New Declaration.
15567
15568 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15569 new MicroBlaze break_handler functions.
15570
15571 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15572
15573 * doc/extend.texi (Size of an asm): Move node text according
15574 to its @menu entry position.
15575
15576 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15577
15578 PR tree-optimization/61140
15579 PR tree-optimization/61150
15580 PR tree-optimization/61197
15581 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15582
15583 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15584
15585 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15586
15587 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15588
15589 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15590 __SIZEOF_INT128__ is defined.
15591
15592 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15593
15594 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15595 (rs6000_delegitimize_address): Use it.
15596
15597 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15598
15599 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15600 inplace argument. Store the new address in the original MEM when true.
15601 * emit-rtl.c (change_address_1): Likewise.
15602 (adjust_address_1, adjust_automodify_address_1, offset_address):
15603 Update accordingly.
15604 * rtl.h (plus_constant): Add an inplace argument.
15605 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15606 when true. Avoid generating (plus X (const_int 0)).
15607 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15608 in-place. Pass true to plus_constant.
15609 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15610
15611 2014-05-16 Dehao Chen <dehao@google.com>
15612
15613 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15614
15615 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15616
15617 PR target/54089
15618 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15619 patterns.
15620 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15621
15622 2014-05-16 Dehao Chen <dehao@google.com>
15623
15624 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15625 optimize_function_for_size_p.
15626 * regs.h (REG_FREQ_FROM_BB): Likewise.
15627
15628 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15629
15630 PR target/51244
15631 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15632 negt_reg_operand cases.
15633 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15634 predicate.
15635 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15636
15637 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15638
15639 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15640 target variants.
15641
15642 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15643
15644 Revert:
15645 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15646
15647 * tree-cfg.c (dump_function_to_file): Dump the return type of
15648 functions, in a line to itself before the function body, mimicking
15649 the layout of a C function.
15650
15651 2014-05-16 Dehao Chen <dehao@google.com>
15652
15653 * cfghooks.c (make_forwarder_block): Use direct computation to
15654 get fall-through edge's count and frequency.
15655
15656 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15657
15658 * config/arc/arc.c (arc_init): Fix typo in error message.
15659 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15660 (split_stack_prologue_scratch_regno): Likewise.
15661 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15662 word from error message.
15663
15664 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15665
15666 * ira-costs.c: Fix typo in comment.
15667
15668 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15669
15670 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15671
15672 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15673
15674 * varpool.c (dump_varpool_node): Dump write-only flag.
15675 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15676 write-only flag.
15677 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15678 write-only variables.
15679 * ipa.c (process_references): New function.
15680 (set_readonly_bit): New function.
15681 (set_writeonly_bit): New function.
15682 (clear_addressable_bit): New function.
15683 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15684 fix handling of aliases.
15685 * cgraph.h (struct varpool_node): Add writeonly flag.
15686
15687 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15688
15689 PR rtl-optimization/60969
15690 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15691 Calculate costs for this case.
15692
15693 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15694
15695 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15696 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15697
15698 2014-05-16 Richard Biener <rguenther@suse.de>
15699
15700 PR tree-optimization/61194
15701 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15702 bool patterns ending in a COND_EXPR.
15703
15704 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15705
15706 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15707
15708 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15709
15710 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15711 where we were unable to cost an RTX.
15712
15713 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15714
15715 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15716 HIGH, LO_SUM.
15717
15718 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15719 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15720
15721 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15722
15723 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15724 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15725
15726 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15727 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15728
15729 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15730 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15731
15732 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15733 operators.
15734
15735 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15736 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15737
15738 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15739 DIV/MOD.
15740
15741 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15742 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15743
15744 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15745 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15746
15747 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15748 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15749
15750 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15751 rotates and shifts.
15752
15753 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15754 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15755
15756 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15757 ZERO_EXTEND and SIGN_EXTEND better.
15758
15759 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15760 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15761
15762 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15763 logical operations.
15764
15765 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15766 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15767
15768 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15769 costs when costing loads and stores to memory.
15770
15771 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15772 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15773
15774 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15775 for SET RTX.
15776
15777 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15778
15779 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15780
15781 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15782 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15783
15784 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15785 to...
15786 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15787 well formed.
15788 (aarch64_rtx_mult_cost): New.
15789 (aarch64_rtx_costs): Use it, refactor as appropriate.
15790
15791 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15792 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15793
15794 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15795 emit instructions, return number of instructions which would
15796 be emitted.
15797 (aarch64_add_constant): Update call to aarch64_build_constant.
15798 (aarch64_output_mi_thunk): Likewise.
15799 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15800 a CONST_DOUBLE.
15801
15802 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15803
15804 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15805 (TARGET_RTX_COSTS): Call it.
15806
15807 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15808
15809 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15810 (cortexa57_vector_cost): Likewise.
15811 (cortexa57_tunings): Use them.
15812
15813 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15814
15815 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15816 (cpu_addrcost_table): Use it.
15817 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15818 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15819 move it.
15820
15821 2014-05-16 Richard Biener <rguenther@suse.de>
15822
15823 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15824 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15825 (visit_phi): Ignore edges marked as not executable.
15826 (class cond_dom_walker): New.
15827 (cond_dom_walker::before_dom_children): Value-number
15828 control statements and mark successor edges as not
15829 executable if possible.
15830 (run_scc_vn): First walk all control statements in
15831 dominator order, marking edges as not executable.
15832 * tree-inline.c (copy_edges_for_bb): Be not confused
15833 about random edge flags.
15834
15835 2014-05-16 Richard Biener <rguenther@suse.de>
15836
15837 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15838
15839 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15840
15841 PR target/61193
15842 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15843 (__TM_simple_begin): Use it.
15844 (__TM_begin): Likewise.
15845
15846 2014-05-15 Martin Jambor <mjambor@suse.cz>
15847
15848 PR ipa/61085
15849 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15850 type_preserved flag when the indirect edge is polymorphic.
15851
15852 2014-05-15 Martin Jambor <mjambor@suse.cz>
15853
15854 PR tree-optimization/61090
15855 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15856 build_ref_for_model.
15857
15858 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15859
15860 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15861 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15862
15863 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15864
15865 PR tree-optimization/61158
15866 * fold-const.c (fold_binary_loc): If X is zero-extended and
15867 shiftc >= prec, make sure zerobits is all ones instead of
15868 invoking undefined behavior.
15869
15870 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15871
15872 * regcprop.h: New file.
15873 * regcprop.c (skip_debug_insn_p): New decl.
15874 (replace_oldest_value_reg): Check skip_debug_insn_p.
15875 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15876 * shrink-wrap.c: Include regcprop.h.
15877 (prepare_shrink_wrap): Call
15878 copyprop_hardreg_forward_bb_without_debug_insn.
15879
15880 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15881
15882 * shrink-wrap.h: Update comment.
15883 * shrink-wrap.c: Update comment.
15884 (next_block_for_reg): Rename to live_edge_for_reg.
15885 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15886 (move_insn_for_shrink_wrap): Split live_edge.
15887 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15888
15889 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15890
15891 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15892 Delete.
15893 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15894 * config/sparc/sparc.md (fptype_ut699): New attribute.
15895 (in_branch_delay): Return false if -mfix-ut699 is specified and
15896 fptype_ut699 is set to single.
15897 (truncdfsf2): Add fptype_ut699 attribute.
15898 (fix_truncdfsi2): Likewise.
15899 (floatsisf2): Change fptype attribute.
15900 (fix_truncsfsi2): Likewise.
15901 (negtf2_notv9): Delete.
15902 (negtf2_v9): Likewise.
15903 (negtf2_hq): New instruction.
15904 (negtf2): New instruction and splitter.
15905 (negdf2_notv9): Rewrite.
15906 (abstf2_notv9): Delete.
15907 (abstf2_hq_v9): Likewise.
15908 (abstf2_v9): Likewise.
15909 (abstf2_hq): New instruction.
15910 (abstf2): New instruction and splitter.
15911 (absdf2_notv9): Rewrite.
15912
15913 2014-05-14 Cary Coutant <ccoutant@google.com>
15914
15915 PR debug/61013
15916 * opts.c (common_handle_option): Don't special-case "-g".
15917 (set_debug_level): Default to at least level 2 with "-g".
15918
15919 2014-05-14 DJ Delorie <dj@redhat.com>
15920
15921 * config/msp430/msp430.c (msp430_builtin): Add
15922 MSP430_BUILTIN_DELAY_CYCLES.
15923 (msp430_init_builtins): Register void __delay_cycles(long long).
15924 (msp430_builtin_decl): Add it.
15925 (cg_magic_constant): New.
15926 (msp430_expand_delay_cycles): New.
15927 (msp430_expand_builtin): Call it.
15928 (msp430_print_operand_raw): Change integer printing from "int" to
15929 HOST_WIDE_INT.
15930 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15931 (delay_cycles_start): New.
15932 (delay_cycles_end): New.
15933 (delay_cycles_32): New.
15934 (delay_cycles_32x): New.
15935 (delay_cycles_16): New.
15936 (delay_cycles_16x): New.
15937 (delay_cycles_2): New.
15938 (delay_cycles_1): New.
15939 * doc/extend.texi: Document __delay_cycles().
15940
15941 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15942
15943 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15944 length attribute computation.
15945
15946 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15947
15948 PR debug/61188
15949 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15950
15951 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15952
15953 PR target/61084
15954 * config/sparc/sparc.md: Fix types of low and high in DI constant
15955 splitter. Use gen_int_mode in some other splitters.
15956
15957 2014-05-14 Martin Jambor <mjambor@suse.cz>
15958
15959 PR ipa/60897
15960 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15961
15962 2014-05-14 James Norris <jnorris@codesourcery.com>
15963
15964 * omp-low.c (expand_parallel_call): Remove shadow variable.
15965 (expand_omp_taskreg): Likewise.
15966
15967 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15968
15969 * common/config/i386/i386-common.c
15970 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15971 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15972 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15973 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15974 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15975 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15976 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15977 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15978 xsavecintrin.h, xsavesintrin.h.
15979 (x86_64-*-*): Ditto.
15980 * config/i386/clflushoptintrin.h: New.
15981 * config/i386/xsavecintrin.h: Ditto.
15982 * config/i386/xsavesintrin.h: Ditto.
15983 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15984 (bit_XSAVES): Ditto.
15985 (bit_XSAVES): Ditto.
15986 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15987 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15988 -mno-clflushopt.
15989 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15990 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15991 OPTION_MASK_ISA_XSAVES.
15992 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15993 -mxsavec, -mxsaves.
15994 (PTA_CLFLUSHOPT) Define.
15995 (PTA_XSAVEC): Ditto.
15996 (PTA_XSAVES): Ditto.
15997 (ix86_option_override_internal): Handle new options.
15998 (ix86_valid_target_attribute_inner_p): Ditto.
15999 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16000 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16001 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16002 (bdesc_special_args): Add __builtin_ia32_xsaves,
16003 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16004 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16005 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16006 (ix86_expand_builtin): Handle new builtins.
16007 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16008 (TARGET_CLFLUSHOPT_P): Ditto.
16009 (TARGET_XSAVEC): Ditto.
16010 (TARGET_XSAVEC_P): Ditto.
16011 (TARGET_XSAVES): Ditto.
16012 (TARGET_XSAVES_P): Ditto.
16013 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16014 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16015 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16016 (ANY_XRSTOR): New.
16017 (ANY_XRSTOR64): Ditto.
16018 (xrstor): Ditto.
16019 (xrstor): Change into <xrstor>.
16020 (xrstor_rex64): Change into <xrstor>_rex64.
16021 (xrstor64): Change into <xrstor>64
16022 (clflushopt): New.
16023 * config/i386/i386.opt (mclflushopt): New.
16024 (mxsavec): Ditto.
16025 (mxsaves): Ditto.
16026 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16027 xsavecintrin.h.
16028 * doc/invoke.texi: Document new options.
16029
16030 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16031
16032 PR rtl-optimization/60866
16033 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16034 Default it to -1. Pass it down to init_simplejump_data.
16035 (init_simplejump_data): New parameter old_seqno. Pass it down
16036 to get_seqno_for_a_jump.
16037 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16038 initializing new jump seqno as a last resort. Add comment.
16039 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16040 jump and pass it down to sel_init_new_insn.
16041 (sel_redirect_edge_and_branch_force): Likewise.
16042
16043 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16044
16045 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16046 shifted values to avoid build warning.
16047
16048 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16049
16050 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16051 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16052 (cfg_layout_merge_blocks): Likewise.
16053 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16054
16055 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16056
16057 PR rtl-optimization/60901
16058 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16059 bb predecessor belongs to the same scheduling region. Adjust comment.
16060
16061 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16062
16063 * doc/sourcebuild.texi: (dfp_hw): Document.
16064 (p8vector_hw): Likewise.
16065 (powerpc_eabi_ok): Likewise.
16066 (powerpc_elfv2): Likewise.
16067 (powerpc_htm_ok): Likewise.
16068 (ppc_recip_hw): Likewise.
16069 (vsx_hw): Likewise.
16070
16071 2014-05-13 Cary Coutant <ccoutant@google.com>
16072
16073 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16074
16075 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16076
16077 * gengtype-parse.c (require3): Eliminate in favor of...
16078 (require4): New.
16079 (require_template_declaration): Update to support optional single *
16080 on a type.
16081
16082 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16083 (create_user_defined_type): Handle a single level of explicit
16084 pointerness within template arguments.
16085 (struct write_types_data): Add field "kind".
16086 (filter_type_name): Handle "*" character.
16087 (write_user_func_for_structure_ptr): Require a write_types_data
16088 rather than just a prefix string, so that we can look up the kind
16089 of the wtd and use it as an index into wrote_user_func_for_ptr,
16090 ensuring that such functions are written at most once. Support
16091 subclasses by invoking the marking function of the ultimate base class.
16092 (write_user_func_for_structure_body): Require a write_types_data
16093 rather than just a prefix string, so that we can pass this to
16094 write_user_func_for_structure_ptr.
16095 (write_func_for_structure): Likewise.
16096 (ggc_wtd): Add initializer of new "kind" field.
16097 (pch_wtd): Likewise.
16098
16099 * gengtype.h (enum write_types_kinds): New.
16100 (struct type): Add field wrote_user_func_for_ptr to the "s"
16101 union member.
16102
16103 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16104
16105 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16106 instead of const_binop.
16107 (fold_binary_loc): Likewise.
16108
16109 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16110
16111 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16112 calculation to match get_ref_base_and_extent.
16113
16114 2014-05-13 Catherine Moore <clm@codesourcery.com>
16115 Sandra Loosemore <sandra@codesourcery.com>
16116
16117 * configure.ac: Fix assembly for explicit JALR relocation check.
16118 * configure: Regenerate.
16119
16120 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16121
16122 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16123 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16124 Remove associated type declarations and initialisations.
16125 (arm_expand_neon_builtin): Likewise.
16126 (neon_emit_pair_result_insn): Delete.
16127 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16128 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16129 (neon_vzip<mode>): Likewise.
16130 (neon_vuzp<mode>): Likewise.
16131
16132 2014-05-13 Richard Biener <rguenther@suse.de>
16133
16134 PR ipa/60973
16135 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16136 it needs revisiting whether the call still may be tail-called.
16137
16138 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16139
16140 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16141 * rtl.h (block_symbol): Reduce number of fields to 2.
16142 (rtx_def): Add u2.symbol_ref_flags.
16143 (SYMBOL_REF_FLAGS): Use it.
16144 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16145 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16146 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16147 Lower index of SYMBOL_REF_DATA.
16148 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16149 Print SYMBOL_REF_FLAGS at the same time.
16150 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16151
16152 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16153
16154 * rtl.def (VAR_LOCATION): Remove "i" field.
16155 * rtl.h (rtx_def): Add u2.var_location_status.
16156 (PAT_VAR_LOCATION_STATUS): Use it.
16157 (gen_rtx_VAR_LOCATION): Declare.
16158 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16159 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16160 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16161
16162 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16163
16164 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16165 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16166
16167 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16168
16169 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16170 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16171 * rtl.h (rtx_def): Add insn_uid to u2 field.
16172 (RTX_FLAG_CHECK8): Delete in favor of...
16173 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16174 (INSN_DELETED_P): Update accordingly.
16175 (INSN_UID): Use u2.insn_uid.
16176 (INSN_CHAIN_CODE_P): Define.
16177 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16178 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16179 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16180 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16181 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16182 indices accordingly.
16183 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16184 Update indices for insn-chain rtxes.
16185 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16186 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16187 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16188 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16189 * combine.c (try_combine): Likewise.
16190 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16191
16192 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16193
16194 * rtl.def (REG): Remove middle field.
16195 * rtl.h (rtx_def): Add orignal_regno to u2.
16196 (ORIGINAL_REGNO): Use it instead of field 1.
16197 (REG_ATTRS): Lower field index accordingly.
16198 * gengtype.c (adjust_field_rtx_def): Remove handling of
16199 ORIGINAL_REGNO. Move REG_ATTRS index down.
16200 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16201 code that prints the REGNO.
16202
16203 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16204
16205 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16206 GENERATOR_FILE.
16207
16208 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16209
16210 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16211
16212 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16213
16214 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16215 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16216
16217 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16218
16219 * config/aarch64/aarch64-protos.h
16220 (aarch64_hard_regno_caller_save_mode): New prototype.
16221 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16222 New function.
16223 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16224
16225 2014-05-13 Christian Bruel <christian.bruel@st.com>
16226
16227 * target.def (mode_switching): New hook vector.
16228 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16229 (mode_exit, modepriority_to_mode): Likewise.
16230 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16231 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16232 * target.h: Include tm.h and hard-reg-set.h.
16233 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16234 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16235 * doc/tm.texi Regenerate.
16236 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16237 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16238 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16239 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16240 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16241 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16242 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16243 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16244 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16245 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16246 (ix86_emit_mode_set): Hookify.
16247 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16248 Delete.
16249 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16250 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16251 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16252 (epiphany_mode_priority_to_mode): Remove declaration.
16253 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16254 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16255 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16256 Likewise.
16257 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16258 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16259 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16260
16261 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16262
16263 PR target/61060
16264 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16265 is const0_rtx, return immediately. Don't test count == 0 when
16266 it is always true.
16267
16268 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16269
16270 * Makefile.in: add shrink-wrap.o.
16271 * config/i386/i386.c: include "shrink-wrap.h"
16272 * function.c: Likewise.
16273 (requires_stack_frame_p, next_block_for_reg,
16274 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16275 dup_block_and_redirect): Move to shrink-wrap.c
16276 (thread_prologue_and_epilogue_insns): Extract three code segments
16277 as functions in shrink-wrap.c
16278 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16279 shrink-wrap.h
16280 * shrink-wrap.c: New file.
16281 * shrink-wrap.h: New file.
16282
16283 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16284
16285 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16286 reference to Solaris.
16287
16288 2014-05-12 Mike Stump <mikestump@comcast.net>
16289
16290 PR other/31778
16291 * genattrtab.c (filename): Add.
16292 (convert_set_attr_alternative): Improve error message.
16293 (check_defs): Restore read_md_filename for error messages.
16294 (gen_insn): Save filename.
16295
16296 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16297
16298 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16299 -fno-local-ivars and -fivar-visibility.
16300 * c-family/c.opt: Make -Wshadow also implicitly enable
16301 -Wshadow-ivar.
16302
16303 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16304
16305 * doc/tm.texi: Remove reference to deleted macro.
16306 * doc/tm.texi.in: Likewise.
16307
16308 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16309
16310 PR target/60991
16311 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16312 to restore Y.
16313
16314 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16315
16316 PR libgcc/61152
16317 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16318 * config/arm/aout.h (License): Same.
16319 * config/arm/bpabi.h (License): Same.
16320 * config/arm/elf.h (License): Same.
16321 * config/arm/linux-elf.h (License): Same.
16322 * config/arm/linux-gas.h (License): Same.
16323 * config/arm/netbsd-elf.h (License): Same.
16324 * config/arm/uclinux-eabi.h (License): Same.
16325 * config/arm/uclinux-elf.h (License): Same.
16326 * config/arm/vxworks.h (License): Same.
16327
16328 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16329
16330 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16331 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16332 number of operands to 3.
16333 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16334 * tree-nested.c (convert_nonlocal_omp_clauses,
16335 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16336 * gimplify.c (gimplify_scan_omp_clauses): Handle
16337 OMP_CLAUSE_LINEAR_STMT.
16338 * omp-low.c (lower_rec_input_clauses): Fix typo.
16339 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16340 cast between Fortran boolean_type_node and C _Bool if
16341 needed.
16342
16343 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16344
16345 PR tree-optimization/61136
16346 * wide-int.h (multiple_of_p): Define a version that doesn't return
16347 the quotient.
16348 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16349 integer_zerop/const_binop pair.
16350 (multiple_of_p): Likewise, converting both operands to widest_int
16351 precision.
16352
16353 2014-05-09 Teresa Johnson <tejohnson@google.com>
16354
16355 * cgraphunit.c (analyze_functions): Use correct dump file.
16356
16357 2014-05-09 Florian Weimer <fweimer@redhat.com>
16358
16359 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16360 expand_used_vars.
16361 (stack_protect_return_slot_p): New function.
16362 (expand_used_vars): Call stack_protect_decl_p and
16363 stack_protect_return_slot_p for -fstack-protector-strong.
16364
16365 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16366 Andrew Haley <aph@redhat.com>
16367 Richard Sandiford <rdsandiford@googlemail.com>
16368
16369 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16370 pages.
16371
16372 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16373
16374 PR middle-end/61111
16375 * fold-const.c (fold_binary_loc): Changed width of mask.
16376
16377 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16378
16379 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16380 unsigned int initializers for regno_in, regno_out.
16381
16382 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16383
16384 PR target/61055
16385 * config/avr/avr.md (cc): Add new attribute set_vzn.
16386 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16387 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16388 with INC, DEC or NEG.
16389 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16390 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16391 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16392
16393 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16394
16395 Revert:
16396 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16397
16398 * wide-int.cc (UTItype): Define.
16399 (UDWtype): Define for appropriate W_TYPE_SIZE.
16400
16401 2014-05-09 Richard Biener <rguenther@suse.de>
16402
16403 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16404 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16405 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16406 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16407 ssa_propagate): Adjust.
16408
16409 2014-05-08 Jeff Law <law@redhat.com>
16410
16411 PR tree-optimization/61009
16412 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16413 tri-state rather than a boolean. When a block is too big to
16414 thread through, inform caller via negative return value.
16415 (thread_across_edge): If a block was too big for normal threading,
16416 then it's too big for a joiner too, so remove temporary equivalences
16417 and return immediately.
16418
16419 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16420 Matthias Klose <doko@ubuntu.com>
16421
16422 PR driver/61106
16423 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16424
16425 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16426
16427 PR target/59952
16428 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16429
16430 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16431
16432 PR target/61092
16433 * config/alpha/alpha.c: Include gimple-iterator.h.
16434 (alpha_gimple_fold_builtin): New function. Move
16435 ALPHA_BUILTIN_UMULH folding from ...
16436 (alpha_fold_builtin): ... here.
16437 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16438
16439 2014-05-08 Wei Mi <wmi@google.com>
16440
16441 PR target/58066
16442 * config/i386/i386.c (ix86_compute_frame_layout): Update
16443 preferred_stack_boundary for call, expanded from tls descriptor.
16444 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16445 to depend on SP register.
16446 (*tls_local_dynamic_base_32_gnu): Ditto.
16447 (*tls_local_dynamic_32_once): Ditto.
16448 (tls_global_dynamic_64_<mode>): Set
16449 ix86_tls_descriptor_calls_expanded_in_cfun.
16450 (tls_local_dynamic_base_64_<mode>): Ditto.
16451 (tls_global_dynamic_32): Set
16452 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16453 to depend on SP register.
16454 (tls_local_dynamic_base_32): Ditto.
16455
16456 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16457
16458 * config/arm/arm_neon.h: Update comment.
16459 * config/arm/neon-docgen.ml: Delete.
16460 * config/arm/neon-gen.ml: Delete.
16461 * doc/arm-neon-intrinsics.texi: Update comment.
16462
16463 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16464
16465 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16466 and v4sf versions.
16467 (vand, vorr, veor, vorn, vbic): Remove.
16468 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16469 iterator.
16470 (neon_vsub_unspec): Likewise.
16471 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16472
16473 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16474
16475 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16476 (vadd_s16): Likewise.
16477 (vadd_s32): Likewise.
16478 (vadd_f32): Likewise.
16479 (vadd_u8): Likewise.
16480 (vadd_u16): Likewise.
16481 (vadd_u32): Likewise.
16482 (vadd_s64): Likewise.
16483 (vadd_u64): Likewise.
16484 (vaddq_s8): Likewise.
16485 (vaddq_s16): Likewise.
16486 (vaddq_s32): Likewise.
16487 (vaddq_s64): Likewise.
16488 (vaddq_f32): Likewise.
16489 (vaddq_u8): Likewise.
16490 (vaddq_u16): Likewise.
16491 (vaddq_u32): Likewise.
16492 (vaddq_u64): Likewise.
16493 (vmul_s8): Likewise.
16494 (vmul_s16): Likewise.
16495 (vmul_s32): Likewise.
16496 (vmul_f32): Likewise.
16497 (vmul_u8): Likewise.
16498 (vmul_u16): Likewise.
16499 (vmul_u32): Likewise.
16500 (vmul_p8): Likewise.
16501 (vmulq_s8): Likewise.
16502 (vmulq_s16): Likewise.
16503 (vmulq_s32): Likewise.
16504 (vmulq_f32): Likewise.
16505 (vmulq_u8): Likewise.
16506 (vmulq_u16): Likewise.
16507 (vmulq_u32): Likewise.
16508 (vsub_s8): Likewise.
16509 (vsub_s16): Likewise.
16510 (vsub_s32): Likewise.
16511 (vsub_f32): Likewise.
16512 (vsub_u8): Likewise.
16513 (vsub_u16): Likewise.
16514 (vsub_u32): Likewise.
16515 (vsub_s64): Likewise.
16516 (vsub_u64): Likewise.
16517 (vsubq_s8): Likewise.
16518 (vsubq_s16): Likewise.
16519 (vsubq_s32): Likewise.
16520 (vsubq_s64): Likewise.
16521 (vsubq_f32): Likewise.
16522 (vsubq_u8): Likewise.
16523 (vsubq_u16): Likewise.
16524 (vsubq_u32): Likewise.
16525 (vsubq_u64): Likewise.
16526 (vand_s8): Likewise.
16527 (vand_s16): Likewise.
16528 (vand_s32): Likewise.
16529 (vand_u8): Likewise.
16530 (vand_u16): Likewise.
16531 (vand_u32): Likewise.
16532 (vand_s64): Likewise.
16533 (vand_u64): Likewise.
16534 (vandq_s8): Likewise.
16535 (vandq_s16): Likewise.
16536 (vandq_s32): Likewise.
16537 (vandq_s64): Likewise.
16538 (vandq_u8): Likewise.
16539 (vandq_u16): Likewise.
16540 (vandq_u32): Likewise.
16541 (vandq_u64): Likewise.
16542 (vorr_s8): Likewise.
16543 (vorr_s16): Likewise.
16544 (vorr_s32): Likewise.
16545 (vorr_u8): Likewise.
16546 (vorr_u16): Likewise.
16547 (vorr_u32): Likewise.
16548 (vorr_s64): Likewise.
16549 (vorr_u64): Likewise.
16550 (vorrq_s8): Likewise.
16551 (vorrq_s16): Likewise.
16552 (vorrq_s32): Likewise.
16553 (vorrq_s64): Likewise.
16554 (vorrq_u8): Likewise.
16555 (vorrq_u16): Likewise.
16556 (vorrq_u32): Likewise.
16557 (vorrq_u64): Likewise.
16558 (veor_s8): Likewise.
16559 (veor_s16): Likewise.
16560 (veor_s32): Likewise.
16561 (veor_u8): Likewise.
16562 (veor_u16): Likewise.
16563 (veor_u32): Likewise.
16564 (veor_s64): Likewise.
16565 (veor_u64): Likewise.
16566 (veorq_s8): Likewise.
16567 (veorq_s16): Likewise.
16568 (veorq_s32): Likewise.
16569 (veorq_s64): Likewise.
16570 (veorq_u8): Likewise.
16571 (veorq_u16): Likewise.
16572 (veorq_u32): Likewise.
16573 (veorq_u64): Likewise.
16574 (vbic_s8): Likewise.
16575 (vbic_s16): Likewise.
16576 (vbic_s32): Likewise.
16577 (vbic_u8): Likewise.
16578 (vbic_u16): Likewise.
16579 (vbic_u32): Likewise.
16580 (vbic_s64): Likewise.
16581 (vbic_u64): Likewise.
16582 (vbicq_s8): Likewise.
16583 (vbicq_s16): Likewise.
16584 (vbicq_s32): Likewise.
16585 (vbicq_s64): Likewise.
16586 (vbicq_u8): Likewise.
16587 (vbicq_u16): Likewise.
16588 (vbicq_u32): Likewise.
16589 (vbicq_u64): Likewise.
16590 (vorn_s8): Likewise.
16591 (vorn_s16): Likewise.
16592 (vorn_s32): Likewise.
16593 (vorn_u8): Likewise.
16594 (vorn_u16): Likewise.
16595 (vorn_u32): Likewise.
16596 (vorn_s64): Likewise.
16597 (vorn_u64): Likewise.
16598 (vornq_s8): Likewise.
16599 (vornq_s16): Likewise.
16600 (vornq_s32): Likewise.
16601 (vornq_s64): Likewise.
16602 (vornq_u8): Likewise.
16603 (vornq_u16): Likewise.
16604 (vornq_u32): Likewise.
16605 (vornq_u64): Likewise.
16606
16607 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16608
16609 * wide-int.cc (UTItype): Define.
16610 (UDWtype): Define for appropriate W_TYPE_SIZE.
16611
16612 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16613
16614 PR tree-optimization/59100
16615 * tree-ssa-phiopt.c: Include tree-inline.h.
16616 (neutral_element_p, absorbing_element_p): New functions.
16617 (value_replacement): Handle conditional binary operations with a
16618 neutral or absorbing element.
16619
16620 2014-05-08 Richard Biener <rguenther@suse.de>
16621
16622 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16623 folding the expression.
16624 (valueize_expr): Remove.
16625 (visit_reference_op_load): Do not valueize the result of
16626 vn_get_expr_for.
16627 (simplify_binary_expression): Likewise.
16628 (simplify_unary_expression): Likewise.
16629
16630 2014-05-08 Richard Biener <rguenther@suse.de>
16631
16632 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16633 looking at TYPE_ARG_TYPES.
16634
16635 2014-05-08 Richard Biener <rguenther@suse.de>
16636
16637 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16638 pointer propagation special-case.
16639
16640 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16641
16642 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16643 core part of address expressions.
16644
16645 2014-05-08 Alan Modra <amodra@gmail.com>
16646
16647 PR target/60737
16648 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16649 loads and stores when -mno-strict-align at any alignment.
16650 (expand_block_clear): Similarly. Also correct calculation of
16651 instruction count.
16652
16653 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16654
16655 PR middle-end/39246
16656 * tree-complex.c (expand_complex_move): Keep line info when expanding
16657 complex move.
16658 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16659 of complex expression. Use new argument to display correct location
16660 for values coming from phi statement.
16661 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16662 (warn_uninitialized_phi): Pass location of phi argument to
16663 warn_uninit.
16664 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16665 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16666
16667 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16668
16669 * config/rs6000/predicates.md (indexed_address_mem): New.
16670 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16671 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16672 fpstore_ux, fpstore_u.
16673 (sign_extend, indexed, update): New.
16674 (cell_micro): Adjust.
16675 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16676 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16677 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16678 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16679 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16680 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16681 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16682 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16683 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16684 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16685 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16686 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16687 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16688 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16689 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16690
16691 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16692 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16693 *vsx_extract_<mode>_store): Adjust.
16694 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16695 is_cracked_insn, insn_must_be_first_in_group,
16696 insn_must_be_last_in_group): Adjust.
16697
16698 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16699 Adjust.
16700 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16701 ppc440-fpstore): Adjust.
16702 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16703 ppc476-fpstore): Adjust.
16704 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16705 ppc601-fpstore): Adjust.
16706 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16707 Adjust.
16708 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16709 Adjust.
16710 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16711 ppc7450-fpstore): Adjust.
16712 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16713 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16714 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16715 Adjust.
16716 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16717 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16718 cell-fpstore, cell-fpstore-update): Adjust.
16719 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16720 ppce300c3_store, ppce300c3_fpstore): Adjust.
16721 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16722 e500mc_fpstore): Adjust.
16723 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16724 e500mc64_store, e500mc64_fpstore): Adjust.
16725 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16726 e5500_fpstore): Adjust.
16727 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16728 e6500_fpstore): Adjust.
16729 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16730 Adjust.
16731 * config/rs6000/power4.md (power4-load, power4-load-ext,
16732 power4-load-ext-update, power4-load-ext-update-indexed,
16733 power4-load-update-indexed, power4-load-update, power4-fpload,
16734 power4-fpload-update, power4-store, power4-store-update,
16735 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16736 Adjust.
16737 * config/rs6000/power5.md (power5-load, power5-load-ext,
16738 power5-load-ext-update, power5-load-ext-update-indexed,
16739 power5-load-update-indexed, power5-load-update, power5-fpload,
16740 power5-fpload-update, power5-store, power5-store-update,
16741 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16742 Adjust.
16743 * config/rs6000/power6.md (power6-load, power6-load-ext,
16744 power6-load-update, power6-load-update-indexed,
16745 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16746 power6-fpload-update, power6-store, power6-store-update,
16747 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16748 Adjust.
16749 * config/rs6000/power7.md (power7-load, power7-load-ext,
16750 power7-load-update, power7-load-update-indexed,
16751 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16752 power7-fpload-update, power7-store, power7-store-update,
16753 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16754 Adjust.
16755 * config/rs6000/power8.md (power8-load, power8-load-update,
16756 power8-load-ext, power8-load-ext-update, power8-fpload,
16757 power8-fpload-update, power8-store, power8-store-update-indexed,
16758 power8-fpstore, power8-fpstore-update): Adjust.
16759 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16760 Adjust.
16761 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16762 titan_lsu_store, titan_lsu_fpstore): Adjust.
16763 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16764
16765 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16766
16767 PR target/60884
16768 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16769 unrolled byte insns. Emit address increments after move insns.
16770
16771 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16772
16773 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16774 const_gimple, rather than a gimple.
16775 (gimple_call_builtin_p): Likewise, for the three variants.
16776
16777 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16778 (gimple_call_builtin_p): Likewise, for the three variants.
16779
16780 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16781
16782 PR tree-optimization/61095
16783 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16784
16785 2014-05-07 Richard Biener <rguenther@suse.de>
16786
16787 PR tree-optimization/61034
16788 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16789 (maybe_skip_until): Use translate to take into account
16790 lattices when trying to do disambiguations.
16791 (get_continuation_for_phi_1): Likewise.
16792 (get_continuation_for_phi): Adjust for added translate arguments.
16793 (walk_non_aliased_vuses): Likewise.
16794 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16795 (walk_non_aliased_vuses): Likewise.
16796 (call_may_clobber_ref_p_1): Declare.
16797 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16798 calls. Stop early if we are only supposed to disambiguate.
16799 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16800
16801 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16802
16803 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16804 Emit an error when the function has arguments.
16805
16806 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16807
16808 * cfgloop.h (unswitch_loops): Remove.
16809 * doc/passes.texi: Remove references to loop-unswitch.c
16810 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16811
16812 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16813
16814 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16815 check for loads group of length 3.
16816 (vect_permute_load_chain): New permutations for loads group of
16817 length 3.
16818 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16819 of vec_perm_shuffle for the new permutations.
16820
16821 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16822
16823 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16824 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16825 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16826 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16827 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16828 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16829 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16830 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16831
16832 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16833
16834 * loop-unswitch.c: Delete.
16835
16836 2014-05-07 Richard Biener <rguenther@suse.de>
16837
16838 * config.gcc: Always set need_64bit_hwint to yes.
16839
16840 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16841
16842 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16843 of using optimize_size.
16844
16845 2014-05-06 Mike Stump <mikestump@comcast.net>
16846
16847 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16848
16849 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16850
16851 * config/i386/sse.md (*mov<mode>_internal)
16852 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16853 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16854 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16855 (*<code><mode>3, *andnot<mode>3<mask_name>)
16856 (<mask_codefor><code><mode>3<mask_name>): Only consider
16857 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16858
16859 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16860
16861 Revert:
16862 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16863
16864 * lra-constraints.c (valid_address_p): Move earlier in file.
16865 Add a constraint argument to the address_info version.
16866 (satisfies_memory_constraint_p): New function.
16867 (satisfies_address_constraint_p): Likewise.
16868 (process_alt_operands, curr_insn_transform): Use them.
16869 (process_address): Pass the constraint to valid_address_p when
16870 checking address operands.
16871
16872 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16873
16874 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16875 to their respective blocks. Fix inadvertent use of "node".
16876
16877 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16878
16879 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16880 out from...
16881 (init_emit_once): ...here.
16882 * rtl.h (init_derived_machine_modes): Declare.
16883 * toplev.c (do_compile): Call it even if no_backend.
16884
16885 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16886 Mike Stump <mikestump@comcast.net>
16887 Richard Sandiford <rdsandiford@googlemail.com>
16888 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16889
16890 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16891 (rtx_equal_for_memref_p): Update comment.
16892 (adjust_offset_for_component_ref): Use wide-int interfaces.
16893 * builtins.c (get_object_alignment_2): Likewise.
16894 (c_readstr): Likewise.
16895 (target_char_cast): Add comment.
16896 (determine_block_size): Use wide-int interfaces.
16897 (expand_builtin_signbit): Likewise.
16898 (fold_builtin_int_roundingfn): Likewise.
16899 (fold_builtin_bitop): Likewise.
16900 (fold_builtin_bswap): Likewise.
16901 (fold_builtin_logarithm): Use signop.
16902 (fold_builtin_pow): Likewise.
16903 (fold_builtin_memory_op): Use wide-int interfaces.
16904 (fold_builtin_object_size): Likewise.
16905 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16906 nb_iterations_estimate.
16907 (record_niter_bound): Use wide-int interfaces.
16908 (get_estimated_loop_iterations_int): Likewise.
16909 (get_estimated_loop_iterations): Likewise.
16910 (get_max_loop_iterations): Likewise.
16911 * cfgloop.h: Include wide-int.h.
16912 (struct nb_iter_bound): Change bound to widest_int.
16913 (struct loop): Change nb_iterations_upper_bound and
16914 nb_iterations_estimate to widest_int.
16915 (record_niter_bound): Switch to use widest_int.
16916 (get_estimated_loop_iterations): Likewise.
16917 (get_max_loop_iterations): Likewise.
16918 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16919 update for wide-int.
16920 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16921 * combine.c (try_combine): Likewise.
16922 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16923 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16924 interfaces.
16925 (aarch64_float_const_representable_p): Likewise.
16926 * config/arc/arc.c: Include wide-int.h.
16927 (arc_can_use_doloop_p): Use wide-int interfaces.
16928 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16929 (vfp3_const_double_index): Likewise.
16930 * config/avr/avr.c (avr_out_round): Likewise.
16931 (avr_fold_builtin): Likewise.
16932 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16933 (bfin_can_use_doloop_p): Likewise.
16934 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16935 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16936 * config/i386/i386.c: Include wide-int.h.
16937 (ix86_data_alignment): Use wide-int interfaces.
16938 (ix86_local_alignment): Likewise.
16939 (ix86_emit_swsqrtsf): Update real_from_integer.
16940 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16941 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16942 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16943 (zero_constant): Likewise.
16944 (input_operand): Likewise.
16945 (splat_input_operand): Likewise.
16946 (non_logical_cint_operand): Change const_double to const_wide_int.
16947 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16948 (easy_altivec_constant): Remove comment.
16949 (paired_expand_vector_init): Use CONSTANT_P.
16950 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16951 (rs6000_emit_move): Update checks.
16952 (rs6000_aggregate_candidate): Use wide-int interfaces.
16953 (rs6000_expand_ternop_builtin): Likewise.
16954 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16955 (rs6000_assemble_integer): Likewise.
16956 (rs6000_hash_constant): Likewise.
16957 (output_toc): Likewise.
16958 (rs6000_rtx_costs): Likewise.
16959 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16960 * config/rs6000/rs6000-c.c: Include wide-int.h.
16961 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16962 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16963 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16964 Handle CONST_WIDE_INT.
16965 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16966 Use tree_fits_uhwi_p.
16967 * config/sparc/sparc.c: Include wide-int.h.
16968 (sparc_fold_builtin): Use wide-int interfaces.
16969 * config/vax/vax.c: Include wide-int.h.
16970 (vax_float_literal): Use real_from_integer.
16971 * coretypes.h (struct hwivec_def): New.
16972 (hwivec): New.
16973 (const_hwivec): New.
16974 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16975 (equiv_constant): Handle CONST_WIDE_INT.
16976 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16977 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16978 * dbxout.c (stabstr_U): Use wide-int interfaces.
16979 (dbxout_type): Update to use cst_fits_shwi_p.
16980 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16981 (TARGET_SUPPORTS_WIDE_INT): Add default.
16982 * dfp.c: Include wide-int.h.
16983 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16984 decimal_real_to_integer.
16985 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16986 decimal_real_to_integer.
16987 * doc/generic.texi (Constant expressions): Update for wide_int.
16988 * doc/rtl.texi (const_double): Likewise.
16989 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16990 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16991 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16992 (REAL_VALUE_FROM_INT): Remove.
16993 (TARGET_SUPPORTS_WIDE_INT): New.
16994 * doc/tm.texi: Regenerate.
16995 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16996 * double-int.h: Include wide-int.h.
16997 (struct wi::int_traits): New.
16998 * dwarf2out.c (get_full_len): New.
16999 (dw_val_equal_p): Add case dw_val_class_wide_int.
17000 (size_of_loc_descr): Likewise.
17001 (output_loc_operands): Likewise.
17002 (insert_double): Remove.
17003 (insert_wide_int): New.
17004 (add_AT_wide): New.
17005 (print_die): Add case dw_val_class_wide_int.
17006 (attr_checksum): Likewise.
17007 (attr_checksum_ordered): Likewise.
17008 (same_dw_val_p): Likewise.
17009 (size_of_die): Likewise.
17010 (value_format): Likewise.
17011 (output_die): Likewise.
17012 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17013 Use wide-int.
17014 (clz_loc_descriptor): Use wide-int interfaces.
17015 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17016 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17017 (round_up_to_align): Use wide-int interfaces.
17018 (field_byte_offset): Likewise.
17019 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17020 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17021 CONST_DOUBLE handling. Use wide-int interfaces.
17022 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17023 (gen_enumeration_type_die): Use add_AT_wide.
17024 (hash_loc_operands): Add case dw_val_class_wide_int.
17025 (compare_loc_operands): Likewise.
17026 * dwarf2out.h: Include wide-int.h.
17027 (wide_int_ptr): New.
17028 (enum dw_val_class): Add dw_val_class_wide_int.
17029 (struct dw_val_struct): Add val_wide.
17030 * emit-rtl.c (const_wide_int_htab): New.
17031 (const_wide_int_htab_hash): New.
17032 (const_wide_int_htab_eq): New.
17033 (lookup_const_wide_int): New.
17034 (const_double_htab_hash): Use wide-int interfaces.
17035 (const_double_htab_eq): Likewise.
17036 (rtx_to_double_int): Conditionally compile for wide-int.
17037 (immed_double_int_const): Rename to immed_wide_int_const and
17038 update for wide-int.
17039 (immed_double_const): Conditionally compile for wide-int.
17040 (init_emit_once): Use wide-int interfaces.
17041 * explow.c (plus_constant): Likewise.
17042 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17043 (lshift_value): Use wide-int interfaces.
17044 (expand_mult): Likewise.
17045 (choose_multiplier): Likewise.
17046 (expand_smod_pow2): Likewise.
17047 (make_tree): Likewise.
17048 * expr.c (convert_modes): Consolidate handling of constants.
17049 Use wide-int interfaces.
17050 (emit_group_load_1): Add note.
17051 (store_expr): Update comment.
17052 (get_inner_reference): Use wide-int interfaces.
17053 (expand_constructor): Update comment.
17054 (expand_expr_real_2): Use wide-int interfaces.
17055 (expand_expr_real_1): Likewise.
17056 (reduce_to_bit_field_precision): Likewise.
17057 (const_vector_from_tree): Likewise.
17058 * final.c: Include wide-int-print.h.
17059 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17060 * fixed-value.c: Include wide-int.h.
17061 (fixed_from_string): Use wide-int interfaces.
17062 (fixed_to_decimal): Likewise.
17063 (fixed_convert_from_real): Likewise.
17064 (real_convert_from_fixed): Likewise.
17065 * fold-const.h (mem_ref_offset): Return an offset_int.
17066 (div_if_zero_remainder): Remove code parameter.
17067 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17068 Use wide-int interfaces.
17069 (may_negate_without_overflow_p): Use wide-int interfaces.
17070 (negate_expr_p): Likewise.
17071 (fold_negate_expr): Likewise.
17072 (int_const_binop_1): Likewise.
17073 (const_binop): Likewise.
17074 (fold_convert_const_int_from_int): Likewise.
17075 (fold_convert_const_int_from_real): Likewise.
17076 (fold_convert_const_int_from_fixed): Likewise.
17077 (fold_convert_const_fixed_from_int): Likewise.
17078 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17079 (sign_bit_p): Use wide-int interfaces.
17080 (make_range_step): Likewise.
17081 (build_range_check): Likewise. Pass an integer of the correct type
17082 instead of using integer_one_node.
17083 (range_predecessor): Pass an integer of the correct type instead
17084 of using integer_one_node.
17085 (range_successor): Likewise.
17086 (merge_ranges): Likewise.
17087 (unextend): Use wide-int interfaces.
17088 (extract_muldiv_1): Likewise.
17089 (fold_div_compare): Likewise.
17090 (fold_single_bit_test): Likewise.
17091 (fold_sign_changed_comparison): Likewise.
17092 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17093 (fold_plusminus_mult_expr): Use wide-int interfaces.
17094 (native_encode_int): Likewise.
17095 (native_interpret_int): Likewise.
17096 (fold_unary_loc): Likewise.
17097 (pointer_may_wrap_p): Likewise.
17098 (size_low_cst): Likewise.
17099 (mask_with_tz): Likewise.
17100 (fold_binary_loc): Likewise.
17101 (fold_ternary_loc): Likewise.
17102 (multiple_of_p): Likewise.
17103 (tree_call_nonnegative_warnv_p): Update calls to
17104 tree_int_cst_min_precision and real_from_integer.
17105 (fold_negate_const): Use wide-int interfaces.
17106 (fold_abs_const): Likewise.
17107 (fold_relational_const): Use tree_int_cst_lt.
17108 (round_up_loc): Use wide-int interfaces.
17109 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17110 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17111 * gengtype.c: Remove include of double-int.h.
17112 (do_typedef): Use wide-int interfaces.
17113 (open_base_files): Add wide-int.h.
17114 (main): Add offset_int and widest_int typedefs.
17115 * gengtype-lex.l: Handle "^".
17116 (CXX_KEYWORD): Add "static".
17117 * gengtype-parse.c (require3): New.
17118 (require_template_declaration): Handle constant template arguments
17119 and nested templates.
17120 * gengtype-state.c: Don't include "double-int.h".
17121 * genpreds.c (write_one_predicate_function): Update comment.
17122 (write_tm_constrs_h): Add check for hval and lval use in
17123 CONST_WIDE_INT.
17124 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17125 (add_to_sequence): Likewise.
17126 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17127 and const_double_operand.
17128 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17129 interfaces.
17130 * gimple-fold.c (get_base_constructor): Likewise.
17131 (fold_array_ctor_reference): Likewise.
17132 (fold_nonarray_ctor_reference): Likewise.
17133 (fold_const_aggregate_ref_1): Likewise.
17134 (gimple_val_nonnegative_real_p): Likewise.
17135 (gimple_fold_indirect_ref): Likewise.
17136 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17137 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17138 (struct slsr_cand_d): Change index to be widest_int.
17139 (struct incr_info_d): Change incr to be widest_int.
17140 (alloc_cand_and_find_basis): Use wide-int interfaces.
17141 (slsr_process_phi): Likewise.
17142 (backtrace_base_for_ref): Likewise. Return a widest_int.
17143 (restructure_reference): Take a widest_int instead of a double_int.
17144 (slsr_process_ref): Use wide-int interfaces.
17145 (create_mul_ssa_cand): Likewise.
17146 (create_mul_imm_cand): Likewise.
17147 (create_add_ssa_cand): Likewise.
17148 (create_add_imm_cand): Take a widest_int instead of a double_int.
17149 (slsr_process_add): Use wide-int interfaces.
17150 (slsr_process_cast): Likewise.
17151 (slsr_process_copy): Likewise.
17152 (dump_candidate): Likewise.
17153 (dump_incr_vec): Likewise.
17154 (replace_ref): Likewise.
17155 (cand_increment): Likewise. Return a widest_int.
17156 (cand_abs_increment): Likewise.
17157 (replace_mult_candidate): Take a widest_int instead of a double_int.
17158 (replace_unconditional_candidate): Use wide-int interfaces.
17159 (incr_vec_index): Take a widest_int instead of a double_int.
17160 (create_add_on_incoming_edge): Likewise.
17161 (create_phi_basis): Use wide-int interfaces.
17162 (replace_conditional_candidate): Likewise.
17163 (record_increment): Take a widest_int instead of a double_int.
17164 (record_phi_increments): Use wide-int interfaces.
17165 (phi_incr_cost): Take a widest_int instead of a double_int.
17166 (lowest_cost_path): Likewise.
17167 (total_savings): Likewise.
17168 (analyze_increments): Use wide-int interfaces.
17169 (ncd_with_phi): Take a widest_int instead of a double_int.
17170 (ncd_of_cand_and_phis): Likewise.
17171 (nearest_common_dominator_for_cands): Likewise.
17172 (insert_initializers): Use wide-int interfaces.
17173 (all_phi_incrs_profitable): Likewise.
17174 (replace_one_candidate): Likewise.
17175 (replace_profitable_candidates): Likewise.
17176 * godump.c: Include wide-int-print.h.
17177 (go_output_typedef): Use wide-int interfaces.
17178 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17179 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17180 (build_loop_iteration_domains): Likewise.
17181 * hooks.h: Include wide-int.h rather than double-int.h.
17182 (hook_bool_dint_dint_uint_bool_true): Delete.
17183 (hook_bool_wint_wint_uint_bool_true): Declare.
17184 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17185 (hook_bool_wint_wint_uint_bool_true): New.
17186 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17187 interfaces.
17188 (ubsan_expand_si_overflow_mul_check): Likewise.
17189 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17190 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17191 (get_ancestor_addr_info): Likewise.
17192 (ipa_modify_call_arguments): Likewise.
17193 * loop-doloop.c (doloop_modify): Likewise.
17194 (doloop_optimize): Likewise.
17195 * loop-iv.c (iv_number_of_iterations): Likewise.
17196 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17197 (unroll_loop_constant_iterations): Likewise.
17198 (decide_unroll_runtime_iterations): Likewise.
17199 (unroll_loop_runtime_iterations): Likewise.
17200 (decide_peel_simple): Likewise.
17201 (decide_unroll_stupid): Likewise.
17202 * lto-streamer-in.c (streamer_read_wi): Add.
17203 (input_cfg): Use wide-int interfaces.
17204 (lto_input_tree_1): Likewise.
17205 * lto-streamer-out.c (streamer_write_wi): Add.
17206 (hash_tree): Use wide-int interfaces.
17207 (output_cfg): Likewise.
17208 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17209 (GTFILES): Add wide-int.h and signop.h.
17210 (TAGS): Look for .cc files too.
17211 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17212 * optabs.c (expand_subword_shift): Likewise.
17213 (expand_doubleword_shift): Likewise.
17214 (expand_absneg_bit): Likewise.
17215 (expand_copysign_absneg): Likewise.
17216 (expand_copysign_bit): Likewise.
17217 * postreload.c (reload_cse_simplify_set): Likewise.
17218 * predict.c (predict_iv_comparison): Likewise.
17219 * pretty-print.h: Include wide-int-print.h.
17220 (pp_wide_int) New.
17221 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17222 * print-tree.c: Include wide-int-print.h.
17223 (print_node_brief): Use wide-int interfaces.
17224 (print_node): Likewise.
17225 * read-rtl.c (validate_const_wide_int): New.
17226 (read_rtx_code): Add CONST_WIDE_INT case.
17227 * real.c: Include wide-int.h.
17228 (real_to_integer2): Delete.
17229 (real_to_integer): New function, returning a wide_int.
17230 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17231 (ten_to_ptwo): Update call to real_from_integer.
17232 (real_digit): Likewise.
17233 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17234 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17235 (REAL_VALUE_TO_INT): Delete.
17236 (real_to_integer): Declare a wide-int form.
17237 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17238 * recog.c (const_int_operand): Improve comment.
17239 (const_scalar_int_operand): New.
17240 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17241 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17242 (split_double): Likewise.
17243 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17244 (rtx_size): Likewise.
17245 (rtx_alloc_stat_v): New.
17246 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17247 (cwi_output_hex): New.
17248 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17249 (cwi_check_failed_bounds): New.
17250 * rtl.def (CONST_WIDE_INT): New.
17251 * rtl.h: Include <utility> and wide-int.h.
17252 (struct hwivec_def): New.
17253 (CWI_GET_NUM_ELEM): New.
17254 (CWI_PUT_NUM_ELEM): New.
17255 (struct rtx_def): Add num_elem and hwiv.
17256 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17257 (CASE_CONST_UNIQUE): Likewise.
17258 (CASE_CONST_ANY): Likewise.
17259 (CONST_SCALAR_INT_P): Likewise.
17260 (CONST_WIDE_INT_P): New.
17261 (CWI_ELT): New.
17262 (HWIVEC_CHECK): New.
17263 (cwi_check_failed_bounds): New.
17264 (CWI_ELT): New.
17265 (HWIVEC_CHECK): New.
17266 (CONST_WIDE_INT_VEC) New.
17267 (CONST_WIDE_INT_NUNITS) New.
17268 (CONST_WIDE_INT_ELT) New.
17269 (rtx_mode_t): New type.
17270 (wi::int_traits <rtx_mode_t>): New.
17271 (wi::shwi): New.
17272 (wi::min_value): New.
17273 (wi::max_value): New.
17274 (rtx_alloc_v) New.
17275 (const_wide_int_alloc): New.
17276 (immed_wide_int_const): New.
17277 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17278 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17279 * signop.h: New file.
17280 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17281 (simplify_const_unary_operation): Use wide-int interfaces.
17282 (simplify_binary_operation_1): Likewise.
17283 (simplify_const_binary_operation): Likewise.
17284 (simplify_const_relational_operation): Likewise.
17285 (simplify_immed_subreg): Likewise.
17286 * stmt.c (expand_case): Likewise.
17287 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17288 signop rather than a bool.
17289 * stor-layout.c (layout_type): Use wide-int interfaces.
17290 (initialize_sizetypes): Update calls to
17291 set_min_and_max_values_for_integral_type.
17292 (set_min_and_max_values_for_integral_type): Take a signop rather
17293 than a bool. Use wide-int interfaces.
17294 (fixup_signed_type): Update accordingly. Remove
17295 HOST_BITS_PER_DOUBLE_INT limit.
17296 (fixup_unsigned_type): Likewise.
17297 * system.h (STATIC_CONSTANT_P): New.
17298 (STATIC_ASSERT): New.
17299 * target.def (can_use_doloop_p): Take widest_ints rather than
17300 double_ints.
17301 * target.h: Include wide-int.h rather than double-int.h.
17302 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17303 than double_ints.
17304 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17305 rather than INT_CST_LT_UNSIGNED.
17306 (can_use_doloop_if_innermost): Take widest_ints rather than
17307 double_ints.
17308 * tree-affine.c: Include wide-int-print.h.
17309 (double_int_ext_for_comb): Delete.
17310 (wide_int_ext_for_comb): New.
17311 (aff_combination_zero): Use wide-int interfaces.
17312 (aff_combination_const): Take a widest_int instead of a double_int.
17313 (aff_combination_elt): Use wide-int interfaces.
17314 (aff_combination_scale): Take a widest_int instead of a double_int.
17315 (aff_combination_add_elt): Likewise.
17316 (aff_combination_add_cst): Likewise.
17317 (aff_combination_add): Use wide-int interfaces.
17318 (aff_combination_convert): Likewise.
17319 (tree_to_aff_combination): Likewise.
17320 (add_elt_to_tree): Take a widest_int instead of a double_int.
17321 (aff_combination_to_tree): Use wide-int interfaces.
17322 (aff_combination_remove_elt): Likewise.
17323 (aff_combination_add_product): Take a widest_int instead of
17324 a double_int.
17325 (aff_combination_mult): Use wide-int interfaces.
17326 (aff_combination_expand): Likewise.
17327 (double_int_constant_multiple_p): Delete.
17328 (wide_int_constant_multiple_p): New.
17329 (aff_combination_constant_multiple_p): Take a widest_int pointer
17330 instead of a double_int pointer.
17331 (print_aff): Use wide-int interfaces.
17332 (get_inner_reference_aff): Take a widest_int pointer
17333 instead of a double_int pointer.
17334 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17335 * tree-affine.h: Include wide-int.h.
17336 (struct aff_comb_elt): Change type of coef to widest_int.
17337 (struct affine_tree_combination): Change type of offset to widest_int.
17338 (double_int_ext_for_comb): Delete.
17339 (wide_int_ext_for_comb): New.
17340 (aff_combination_const): Use widest_int instead of double_int.
17341 (aff_combination_scale): Likewise.
17342 (aff_combination_add_elt): Likewise.
17343 (aff_combination_constant_multiple_p): Likewise.
17344 (get_inner_reference_aff): Likewise.
17345 (aff_comb_cannot_overlap_p): Likewise.
17346 (aff_combination_zero_p): Use wide-int interfaces.
17347 * tree.c: Include tree.h.
17348 (init_ttree): Use make_int_cst.
17349 (tree_code_size): Removed code for INTEGER_CST case.
17350 (tree_size): Add INTEGER_CST case.
17351 (make_node_stat): Update comment.
17352 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17353 (build_int_cst_type): Use wide-int interfaces.
17354 (double_int_to_tree): Likewise.
17355 (double_int_fits_to_tree_p): Delete.
17356 (force_fit_type_double): Delete.
17357 (force_fit_type): New.
17358 (int_cst_hash_hash): Use wide-int interfaces.
17359 (int_cst_hash_eq): Likewise.
17360 (build_int_cst_wide): Delete.
17361 (wide_int_to_tree): New.
17362 (cache_integer_cst): Use wide-int interfaces.
17363 (build_low_bits_mask): Likewise.
17364 (cst_and_fits_in_hwi): Likewise.
17365 (real_value_from_int_cst): Likewise.
17366 (make_int_cst_stat): New.
17367 (integer_zerop): Use wide_int interfaces.
17368 (integer_onep): Likewise.
17369 (integer_all_onesp): Likewise.
17370 (integer_pow2p): Likewise.
17371 (integer_nonzerop): Likewise.
17372 (tree_log2): Likewise.
17373 (tree_floor_log2): Likewise.
17374 (tree_ctz): Likewise.
17375 (int_size_in_bytes): Likewise.
17376 (mem_ref_offset): Return an offset_int rather than a double_int.
17377 (build_type_attribute_qual_variant): Use wide_int interfaces.
17378 (type_hash_eq): Likewise
17379 (tree_int_cst_equal): Likewise.
17380 (tree_int_cst_lt): Delete.
17381 (tree_int_cst_compare): Likewise.
17382 (tree_fits_shwi_p): Use wide_int interfaces.
17383 (tree_fits_uhwi_p): Likewise.
17384 (tree_int_cst_sign_bit): Likewise.
17385 (tree_int_cst_sgn): Likewise.
17386 (tree_int_cst_min_precision): Take a signop rather than a bool.
17387 (simple_cst_equal): Use wide_int interfaces.
17388 (compare_tree_int): Likewise.
17389 (iterative_hash_expr): Likewise.
17390 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17391 INT_CST_LT.
17392 (get_type_static_bounds): Use wide_int interfaces.
17393 (tree_int_cst_elt_check_failed): New.
17394 (build_common_tree_nodes): Reordered to set prec before filling in
17395 value.
17396 (int_cst_value): Check cst_and_fits_in_hwi.
17397 (widest_int_cst_value): Use wide_int interfaces.
17398 (upper_bound_in_type): Likewise.
17399 (lower_bound_in_type): Likewise.
17400 (num_ending_zeros): Likewise.
17401 (drop_tree_overflow): Likewise.
17402 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17403 (gen_conditions_for_pow_cst_base): Likewise.
17404 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17405 (group_case_labels_stmt): Use wide-int interfaces.
17406 (verify_gimple_assign_binary): Likewise.
17407 (print_loop): Likewise.
17408 * tree-chrec.c (tree_fold_binomial): Likewise.
17409 * tree-core.h (struct tree_base): Add int_length.
17410 (struct tree_int_cst): Change rep of value.
17411 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17412 (dr_may_alias_p): Likewise.
17413 (max_stmt_executions_tree): Likewise.
17414 * tree.def (INTEGER_CST): Update comment.
17415 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17416 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17417 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17418 (dequeue_and_dump): Use wide-int interfaces.
17419 * tree.h: Include wide-int.h.
17420 (NULL_TREE): Moved to earlier loc in file.
17421 (TREE_INT_CST_ELT_CHECK): New.
17422 (tree_int_cst_elt_check_failed): New.
17423 (TYPE_SIGN): New.
17424 (TREE_INT_CST): Delete.
17425 (TREE_INT_CST_LOW): Use wide-int interfaces.
17426 (TREE_INT_CST_HIGH): Delete.
17427 (TREE_INT_CST_NUNITS): New.
17428 (TREE_INT_CST_EXT_NUNITS): Likewise.
17429 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17430 (TREE_INT_CST_ELT): Likewise.
17431 (INT_CST_LT): Delete.
17432 (tree_int_cst_elt_check): New (two forms).
17433 (type_code_size): Update comment.
17434 (make_int_cst_stat, make_int_cst): New.
17435 (tree_to_double_int): Delete.
17436 (double_int_fits_to_tree_p): Delete.
17437 (force_fit_type_double): Delete.
17438 (build_int_cstu): Replace with out-of-line function.
17439 (build_int_cst_wide): Delete.
17440 (tree_int_cst_lt): Define inline.
17441 (tree_int_cst_le): New.
17442 (tree_int_cst_compare): Define inline.
17443 (tree_int_cst_min_precision): Take a signop rather than a bool.
17444 (wi::int_traits <const_tree>): New.
17445 (wi::int_traits <tree>): New.
17446 (wi::extended_tree): New.
17447 (wi::int_traits <wi::extended_tree>): New.
17448 (wi::to_widest): New.
17449 (wi::to_offset): New.
17450 (wi::fits_to_tree_p): New.
17451 (wi::min_value): New.
17452 (wi::max_value): New.
17453 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17454 (copy_tree_body_r): Likewise.
17455 * tree-object-size.c (compute_object_offset): Likewise.
17456 (addr_object_size): Likewise.
17457 * tree-predcom.c: Include wide-int-print.h.
17458 (struct dref_d): Change type of offset to widest_int.
17459 (dump_dref): Call wide-int printer.
17460 (aff_combination_dr_offset): Use wide-int interfaces.
17461 (determine_offset): Take a widest_int pointer rather than a
17462 double_int pointer.
17463 (split_data_refs_to_components): Use wide-int interfaces.
17464 (suitable_component_p): Likewise.
17465 (order_drefs): Likewise.
17466 (add_ref_to_chain): Likewise.
17467 (valid_initializer_p): Likewise.
17468 (determine_roots_comp): Likewise.
17469 * tree-pretty-print.c: Include wide-int-print.h.
17470 (dump_generic_node): Use wide-int interfaces.
17471 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17472 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17473 (move_fixed_address_to_symbol): Likewise.
17474 (move_hint_to_base): Likewise.
17475 (move_pointer_to_base): Likewise.
17476 (move_variant_to_index): Likewise.
17477 (most_expensive_mult_to_index): Likewise.
17478 (addr_to_parts): Likewise.
17479 (copy_ref_info): Likewise.
17480 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17481 (indirect_refs_may_alias_p): Likewise.
17482 (stmt_kills_ref_p_1): Likewise.
17483 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17484 * tree-ssa-ccp.c: Update comment at top of file. Include
17485 wide-int-print.h.
17486 (struct prop_value_d): Change type of mask to widest_int.
17487 (extend_mask): New function.
17488 (dump_lattice_value): Use wide-int interfaces.
17489 (get_default_value): Likewise.
17490 (set_constant_value): Likewise.
17491 (set_value_varying): Likewise.
17492 (valid_lattice_transition): Likewise.
17493 (set_lattice_value): Likewise.
17494 (value_to_double_int): Delete.
17495 (value_to_wide_int): New.
17496 (get_value_from_alignment): Use wide-int interfaces.
17497 (get_value_for_expr): Likewise.
17498 (do_dbg_cnt): Likewise.
17499 (ccp_finalize): Likewise.
17500 (ccp_lattice_meet): Likewise.
17501 (bit_value_unop_1): Use widest_ints rather than double_ints.
17502 (bit_value_binop_1): Likewise.
17503 (bit_value_unop): Use wide-int interfaces.
17504 (bit_value_binop): Likewise.
17505 (bit_value_assume_aligned): Likewise.
17506 (evaluate_stmt): Likewise.
17507 (ccp_fold_stmt): Likewise.
17508 (visit_cond_stmt): Likewise.
17509 (ccp_visit_stmt): Likewise.
17510 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17511 (constant_pointer_difference): Likewise.
17512 (associate_pointerplus): Likewise.
17513 (combine_conversions): Likewise.
17514 * tree-ssa-loop.h: Include wide-int.h.
17515 (struct tree_niter_desc): Change type of max to widest_int.
17516 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17517 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17518 (remove_redundant_iv_tests): Likewise.
17519 (canonicalize_loop_induction_variables): Likewise.
17520 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17521 (constant_multiple_of): Take a widest_int pointer instead of
17522 a double_int pointer.
17523 (get_computation_aff): Use wide-int interfaces.
17524 (ptr_difference_cost): Likewise.
17525 (difference_cost): Likewise.
17526 (get_loop_invariant_expr_id): Likewise.
17527 (get_computation_cost_at): Likewise.
17528 (iv_elimination_compare_lt): Likewise.
17529 (may_eliminate_iv): Likewise.
17530 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17531 instead of double_int.
17532 (max_loop_iterations): Likewise.
17533 (max_stmt_executions): Likewise.
17534 (estimated_stmt_executions): Likewise.
17535 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17536 (split_to_var_and_offset): Use wide-int interfaces.
17537 (determine_value_range): Likewise.
17538 (bound_difference_of_offsetted_base): Likewise.
17539 (bounds_add): Take a widest_int instead of a double_int.
17540 (number_of_iterations_ne_max): Use wide-int interfaces.
17541 (number_of_iterations_ne): Likewise.
17542 (number_of_iterations_lt_to_ne): Likewise.
17543 (assert_loop_rolls_lt): Likewise.
17544 (number_of_iterations_lt): Likewise.
17545 (number_of_iterations_le): Likewise.
17546 (number_of_iterations_cond): Likewise.
17547 (number_of_iterations_exit): Likewise.
17548 (finite_loop_p): Likewise.
17549 (derive_constant_upper_bound_assign): Likewise.
17550 (derive_constant_upper_bound): Return a widest_int.
17551 (derive_constant_upper_bound_ops): Likewise.
17552 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17553 (record_estimate): Take a widest_int rather than a double_int.
17554 (record_nonwrapping_iv): Use wide-int interfaces.
17555 (double_int_cmp): Delete.
17556 (wide_int_cmp): New.
17557 (bound_index): Take a widest_int rather than a double_int.
17558 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17559 (maybe_lower_iteration_bound): Likewise.
17560 (estimate_numbers_of_iterations_loop): Likewise.
17561 (estimated_loop_iterations): Take a widest_int pointer than than
17562 a double_int pointer.
17563 (estimated_loop_iterations_int): Use wide-int interfaces.
17564 (max_loop_iterations): Take a widest_int pointer than than
17565 a double_int pointer.
17566 (max_loop_iterations_int): Use wide-int interfaces.
17567 (max_stmt_executions): Take a widest_int pointer than than
17568 a double_int pointer.
17569 (estimated_stmt_executions): Likewise.
17570 (n_of_executions_at_most): Use wide-int interfaces.
17571 (scev_probably_wraps_p): Likewise.
17572 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17573 to real_to_integer.
17574 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17575 interfaces.
17576 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17577 double_ints. Adjust for trailing_wide_ints <3> representation.
17578 (set_nonzero_bits): Likewise.
17579 (get_range_info): Return wide_ints rather than double_ints.
17580 Adjust for trailing_wide_ints <3> representation.
17581 (get_nonzero_bits): Likewise.
17582 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17583 representation.
17584 * tree-ssanames.h (struct range_info_def): Replace min, max and
17585 nonzero_bits with a trailing_wide_ints <3>.
17586 (set_range_info): Use wide_int_refs rather than double_ints.
17587 (set_nonzero_bits): Likewise.
17588 (get_range_info): Return wide_ints rather than double_ints.
17589 (get_nonzero_bits): Likewise.
17590 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17591 * tree-ssa-pre.c (phi_translate_1): Likewise.
17592 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17593 (acceptable_pow_call): Likewise.
17594 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17595 interfaces.
17596 (vn_reference_fold_indirect): Likewise.
17597 (vn_reference_maybe_forwprop_address): Likewise.
17598 (valueize_refs_1): Likewise.
17599 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17600 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17601 tree_int_cst_lt and tree_int_cst_le.
17602 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17603 interfaces.
17604 (streamer_alloc_tree): Likewise.
17605 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17606 (streamer_write_tree_header): Likewise.
17607 (streamer_write_integer_cst): Likewise.
17608 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17609 (build_constructors): Likewise.
17610 (array_value_type): Likewise.
17611 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17612 (vect_check_gather): Likewise.
17613 * tree-vect-generic.c (build_replicated_const): Likewise.
17614 (expand_vector_divmod): Likewise.
17615 * tree-vect-loop.c (vect_transform_loop): Likewise.
17616 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17617 (vect_do_peeling_for_alignment): Likewise.
17618 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17619 * tree-vrp.c: Include wide-int.h.
17620 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17621 (extract_range_from_assert): Use wide-int interfaces.
17622 (vrp_int_const_binop): Likewise.
17623 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17624 double_int pointers.
17625 (ranges_from_anti_range): Use wide-int interfaces.
17626 (quad_int_cmp): Delete.
17627 (quad_int_pair_sort): Likewise.
17628 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17629 (extract_range_from_unary_expr_1): Likewise.
17630 (adjust_range_with_scev): Likewise.
17631 (masked_increment): Take and return wide_ints rather than double_ints.
17632 (register_edge_assert_for_2): Use wide-int interfaces.
17633 (check_array_ref): Likewise.
17634 (search_for_addr_array): Likewise.
17635 (maybe_set_nonzero_bits): Likewise.
17636 (union_ranges): Pass an integer of the correct type instead of
17637 using integer_one_node.
17638 (intersect_ranges): Likewise.
17639 (simplify_truth_ops_using_ranges): Likewise.
17640 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17641 (range_fits_type_p): Likewise.
17642 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17643 a bool.
17644 (simplify_conversion_using_ranges): Use wide-int interfaces.
17645 (simplify_float_conversion_using_ranges): Likewise.
17646 (vrp_finalize): Likewise.
17647 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17648 (gimple_stringops_transform): Likewise.
17649 * varasm.c (decode_addr_const): Likewise.
17650 (const_hash_1): Likewise.
17651 (const_rtx_hash_1): Likewise
17652 (output_constant): Likewise.
17653 (array_size_for_constructor): Likewise.
17654 (output_constructor_regular_field): Likewise.
17655 (output_constructor_bitfield): Likewise.
17656 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17657 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17658 GENERATOR_FILEs.
17659 * gencheck.c: Define BITS_PER_UNIT.
17660 * wide-int.cc: New.
17661 * wide-int.h: New.
17662 * wide-int-print.cc: New.
17663 * wide-int-print.h: New.
17664
17665 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17666
17667 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17668
17669 2014-05-06 Richard Biener <rguenther@suse.de>
17670
17671 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17672 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17673 (TODO_verify_all): Adjust.
17674 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17675 TODO_verify_stmts and TODO_verify_rtl_sharing.
17676 * bb-reorder.c: Likewise.
17677 * cfgexpand.c: Likewise.
17678 * cprop.c: Likewise.
17679 * cse.c: Likewise.
17680 * function.c: Likewise.
17681 * fwprop.c: Likewise.
17682 * gcse.c: Likewise.
17683 * gimple-ssa-isolate-paths.c: Likewise.
17684 * gimple-ssa-strength-reduction.c: Likewise.
17685 * ipa-split.c: Likewise.
17686 * loop-init.c: Likewise.
17687 * loop-unroll.c: Likewise.
17688 * lower-subreg.c: Likewise.
17689 * modulo-sched.c: Likewise.
17690 * postreload-gcse.c: Likewise.
17691 * predict.c: Likewise.
17692 * recog.c: Likewise.
17693 * sched-rgn.c: Likewise.
17694 * store-motion.c: Likewise.
17695 * tracer.c: Likewise.
17696 * trans-mem.c: Likewise.
17697 * tree-call-cdce.c: Likewise.
17698 * tree-cfg.c: Likewise.
17699 * tree-cfgcleanup.c: Likewise.
17700 * tree-complex.c: Likewise.
17701 * tree-eh.c: Likewise.
17702 * tree-emutls.c: Likewise.
17703 * tree-if-conv.c: Likewise.
17704 * tree-into-ssa.c: Likewise.
17705 * tree-loop-distribution.c: Likewise.
17706 * tree-object-size.c: Likewise.
17707 * tree-parloops.c: Likewise.
17708 * tree-pass.h: Likewise.
17709 * tree-sra.c: Likewise.
17710 * tree-ssa-ccp.c: Likewise.
17711 * tree-ssa-copy.c: Likewise.
17712 * tree-ssa-copyrename.c: Likewise.
17713 * tree-ssa-dce.c: Likewise.
17714 * tree-ssa-dom.c: Likewise.
17715 * tree-ssa-dse.c: Likewise.
17716 * tree-ssa-forwprop.c: Likewise.
17717 * tree-ssa-ifcombine.c: Likewise.
17718 * tree-ssa-loop-ch.c: Likewise.
17719 * tree-ssa-loop-ivcanon.c: Likewise.
17720 * tree-ssa-loop.c: Likewise.
17721 * tree-ssa-math-opts.c: Likewise.
17722 * tree-ssa-phiopt.c: Likewise.
17723 * tree-ssa-phiprop.c: Likewise.
17724 * tree-ssa-pre.c: Likewise.
17725 * tree-ssa-reassoc.c: Likewise.
17726 * tree-ssa-sink.c: Likewise.
17727 * tree-ssa-strlen.c: Likewise.
17728 * tree-ssa-tail-merge.c: Likewise.
17729 * tree-ssa-uncprop.c: Likewise.
17730 * tree-switch-conversion.c: Likewise.
17731 * tree-tailcall.c: Likewise.
17732 * tree-vect-generic.c: Likewise.
17733 * tree-vectorizer.c: Likewise.
17734 * tree-vrp.c: Likewise.
17735 * tsan.c: Likewise.
17736 * var-tracking.c: Likewise.
17737 * bt-load.c: Likewise.
17738 * cfgcleanup.c: Likewise.
17739 * combine-stack-adj.c: Likewise.
17740 * combine.c: Likewise.
17741 * compare-elim.c: Likewise.
17742 * config/epiphany/resolve-sw-modes.c: Likewise.
17743 * config/i386/i386.c: Likewise.
17744 * config/mips/mips.c: Likewise.
17745 * config/s390/s390.c: Likewise.
17746 * config/sh/sh_treg_combine.cc: Likewise.
17747 * config/sparc/sparc.c: Likewise.
17748 * dce.c: Likewise.
17749 * dse.c: Likewise.
17750 * final.c: Likewise.
17751 * ifcvt.c: Likewise.
17752 * mode-switching.c: Likewise.
17753 * passes.c: Likewise.
17754 * postreload.c: Likewise.
17755 * ree.c: Likewise.
17756 * reg-stack.c: Likewise.
17757 * regcprop.c: Likewise.
17758 * regrename.c: Likewise.
17759 * web.c: Likewise.
17760
17761 2014-05-06 Richard Biener <rguenther@suse.de>
17762
17763 PR middle-end/61070
17764 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17765 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17766
17767 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17768
17769 PR ipa/60965
17770 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17771
17772 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17773 Tom de Vries <tom@codesourcery.com>
17774
17775 * target.def (call_fusage_contains_non_callee_clobbers): New
17776 DEFHOOKPOD.
17777 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17778 Hooks to @menu.
17779 (@node Miscellaneous Register Hooks): New node.
17780 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17781 * doc/tm.texi: Regenerate.
17782
17783 2014-05-05 Marek Polacek <polacek@redhat.com>
17784
17785 PR driver/61065
17786 * opts.c (common_handle_option): Call error_at instead of warning_at.
17787
17788 2014-05-05 Richard Biener <rguenther@suse.de>
17789
17790 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17791 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17792 under the TODO_verify_il umbrella.
17793
17794 2014-05-05 Richard Biener <rguenther@suse.de>
17795
17796 * passes.c (execute_function_todo): Move TODO_verify_flow under
17797 the TODO_verify_ul umbrella.
17798
17799 2014-05-05 Richard Biener <rguenther@suse.de>
17800
17801 PR middle-end/61010
17802 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17803 X & CST away from a CST that is the mask of a mode.
17804
17805 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17806
17807 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17808 int argument to enum machine_mode.
17809 (picochip_class_max_nregs): Ditto.
17810 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17811 (picochip_class_max_nregs): Ditto.
17812
17813 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17814
17815 * target.def: Add new target hook.
17816 * doc/tm.texi: Regenerate.
17817 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17818 * targhooks.c (default_keep_leaf_when_profiled): New function.
17819
17820 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17821 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17822
17823 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17824
17825 PR tree-optimization/60363
17826 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17827 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17828 (update_destination_phis): New parameter.
17829 (create_edge_and_update_destination_phis): Ditto.
17830 (ssa_fix_duplicate_block_edges): Pass new arguments.
17831 (thread_single_edge): Ditto.
17832
17833 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17834
17835 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17836 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17837 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17838 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17839 Use RS6000_BTM_HARD_FLOAT.
17840 (BU_MISC_2): Likewise.
17841 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17842 RS6000_BTM_HARD_FLOAT.
17843 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17844 is explicitly used.
17845 (rs6000_invalid_builtin): Add hard floating builtin support.
17846 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17847 hard float builtins.
17848 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17849
17850 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17851
17852 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17853 Add missing function* argument.
17854
17855 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17856
17857 * lra-constraints.c (valid_address_p): Move earlier in file.
17858 Add a constraint argument to the address_info version.
17859 (satisfies_memory_constraint_p): New function.
17860 (satisfies_address_constraint_p): Likewise.
17861 (process_alt_operands, curr_insn_transform): Use them.
17862 (process_address): Pass the constraint to valid_address_p when
17863 checking address operands.
17864
17865 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17866
17867 * config/mips/mips.c (mips_isa_rev): New variable.
17868 (mips_set_architecture): Set it.
17869 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17870 from mips_isa_rev.
17871 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17872 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17873 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17874 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17875 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17876 conditions in terms of mips_isa_rev.
17877 (mips_isa_rev): Declare.
17878
17879 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17880
17881 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17882 (prob_unlikely, prob_likely): Make variables const.
17883
17884 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17885
17886 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17887
17888 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17889
17890 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17891
17892 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17893
17894 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17895 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17896 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17897 functions.
17898 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17899 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17900 sh_pass_in_reg_p.
17901 Replace usage of ROUND_REG with sh_round_reg.
17902 Use CEIL instead of ROUND_ADVANCE.
17903
17904 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17905
17906 PR target/61026
17907 * config/sh/sh.c: Include stdlib headers before everything else.
17908
17909 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17910
17911 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17912 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17913 (gimplify_adjust_omp_clauses): Simd region is never
17914 directly nested in combined parallel. Instead, for linear
17915 with copyin/copyout, if in combined for simd loop, make decl
17916 firstprivate/lastprivate on OMP_FOR.
17917 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17918 expand_omp_for_static_chunk): When setting endvar, also set
17919 fd->loop.v to the same value.
17920
17921 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17922
17923 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17924
17925 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17926
17927 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17928 expression.
17929
17930 2014-05-02 Marek Polacek <polacek@redhat.com>
17931
17932 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17933
17934 2014-05-02 Kito Cheng <kito@0xlab.org>
17935
17936 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17937 to a C expression marco.
17938 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17939 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17940 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17941 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17942 HONOR_REG_ALLOC_ORDER.
17943 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17944
17945 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17946
17947 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17948
17949 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17950
17951 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17952
17953 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17954
17955 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17956 (convert_scalar_cond_reduction): Likewise.
17957 (predicate_scalar_phi): Add recognition and transformation
17958 of simple conditioanl reduction to be vectorizable.
17959
17960 2014-05-01 Marek Polacek <polacek@redhat.com>
17961
17962 PR c/43245
17963 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17964
17965 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17966
17967 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17968 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17969 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17970 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17971 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17972 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17973 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17974 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17975
17976 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17977
17978 * config/arc/arc.opt (mlra): Move comment above option name
17979 to avoid mis-parsing as language options.
17980
17981 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17982
17983 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17984 * config/sol2.h: ... here.
17985 * config/sol2-10.h: Remove.
17986
17987 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17988 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17989 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17990 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17991 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17992 * config/sol2.h: ... here.
17993 (SECTION_NAME_FORMAT): Don't redefine.
17994 (STARTFILE_ARCH32_SPEC): Rename to ...
17995 (STARTFILE_ARCH_SPEC): ... this.
17996 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17997 * config/sparc/sol2.h: ... here.
17998 (SECTION_NAME_FORMAT): Don't undef.
17999 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18000 (SUBTARGET_EXTRA_SPECS): Remove.
18001 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18002
18003 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18004 (MD_STARTFILE_PREFIX): Remove.
18005 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18006 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18007 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18008 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18009 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18010 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18011 * config/i386/sol2.h: ... here.
18012 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18013 * config/i386/sol2-bi.h: Remove.
18014 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18015 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18016
18017 * config/i386/t-sol2-64: Rename to ...
18018 * config/i386/t-sol2: ... this.
18019 * config/sparc/t-sol2-64: Rename to ...
18020 * config/sparc/t-sol2: ... this.
18021
18022 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18023 sol2_tm_file_head, sol2_tm_file_tail.
18024 Include ${cpu_type}/sol2.h before sol2.h.
18025 Remove sol2-10.h.
18026 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18027 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18028 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18029 Reflect i386/t-sol2-64 renaming.
18030 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18031 Reflect sparc/t-sol2-64 renaming.
18032
18033 2014-04-30 Richard Biener <rguenther@suse.de>
18034
18035 * passes.c (execute_function_todo): Move TODO_verify_stmts
18036 and TODO_verify_ssa under the TODO_verify_il umbrella.
18037 * tree-ssa.h (verify_ssa): Adjust prototype.
18038 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18039 we should verify SSA operands.
18040 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18041 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18042 whether we should verify whether not throwing stmts have EH info.
18043 * graphite-scop-detection.c (create_sese_edges): Adjust.
18044 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18045 * tree-eh.c (lower_try_finally_switch): Do not add the
18046 default case label twice.
18047
18048 2014-04-30 Marek Polacek <polacek@redhat.com>
18049
18050 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18051 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18052 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18053 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18054
18055 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18056
18057 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18058 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18059 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18060 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18061 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18062 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18063 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18064 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18065
18066 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18067
18068 * tree-cfg.c (dump_function_to_file): Dump the return type of
18069 functions, in a line to itself before the function body, mimicking
18070 the layout of a C function.
18071
18072 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18073
18074 PR tree-optimization/60971
18075 * tree-tailcall.c (process_assignment): Reject conversions which
18076 reduce precision.
18077
18078 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18079
18080 * calls.c (initialize_argument_information): Always treat
18081 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18082 (expand_call): Likewise.
18083 (emit_library_call_calue_1): Likewise.
18084 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18085 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18086 code accordingly.
18087
18088 2014-04-29 Nick Clifton <nickc@redhat.com>
18089
18090 * config/msp430/msp430.md (umulsidi): Fix typo.
18091 (mulhisi3): Enable even inside interrupt handlers.
18092 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18093 bigger return address pushed in large mode.
18094
18095 2014-04-29 Nick Clifton <nickc@redhat.com>
18096
18097 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18098 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18099 available modes.
18100 * config/m32r/m32r.c (init_reg_tables): Likewise.
18101 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18102 enum to hold the modes.
18103
18104 2014-04-29 Richard Biener <rguenther@suse.de>
18105
18106 * dominance.c (free_dominance_info): Add overload with
18107 function parameter.
18108 (dom_info_state): Likewise.
18109 (dom_info_available_p): Likewise.
18110 * basic-block.h (free_dominance_info, dom_info_state,
18111 dom_info_available_p): Declare overloads.
18112 * passes.c (execute_function_todo): Verify that verifiers
18113 don't change dominator info state. Drop dominator info
18114 for IPA pass invocations.
18115 * cgraph.c (release_function_body): Restore asserts that
18116 dominator information is released.
18117
18118 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18119
18120 * doc/invoke.texi: Fix typo.
18121 * tree-vrp.c: Fix typos.
18122 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18123
18124 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18125
18126 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18127
18128 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18129
18130 * config/aarch64/aarch64-builtins.c
18131 (aarch64_types_storestruct_lane_qualifiers): New.
18132 (TYPES_STORESTRUCT_LANE): Likewise.
18133 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18134 (st3_lane): Likewise.
18135 (st4_lane): Likewise.
18136 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18137 (vec_store_lanesci_lane<mode>): Likewise.
18138 (vec_store_lanesxi_lane<mode>): Likewise.
18139 (aarch64_st2_lane<VQ:mode>): Likewise.
18140 (aarch64_st3_lane<VQ:mode>): Likewise.
18141 (aarch64_st4_lane<VQ:mode>): Likewise.
18142 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18143 * config/aarch64/arm_neon.h
18144 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18145 use new macro arguments.
18146 (__ST3_LANE_FUNC): Likewise.
18147 (__ST4_LANE_FUNC): Likewise.
18148 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18149 (V_THREE_ELEM): Likewise.
18150 (V_FOUR_ELEM): Likewise.
18151
18152 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18153
18154 * doc/gimple.texi: Replace the description of the now-defunct
18155 union gimple_statement_d with a diagram showing the
18156 gimple_statement_base class hierarchy and its relationships to
18157 the GSS_ and GIMPLE_ enums.
18158
18159 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18160
18161 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18162 * config/aarch64/aarch64.c
18163 (aarch64_cannot_change_mode_class): Weaken conditions.
18164 (aarch64_modes_tieable_p): New.
18165 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18166
18167 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18168
18169 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18170 (loadsync_<mode>): Change mode.
18171 (load_quadpti, store_quadpti): New.
18172 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18173 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18174
18175 2014-04-28 Martin Jambor <mjambor@suse.cz>
18176
18177 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18178 same alias type as the original statement.
18179 (subreplacement_assignment_data): New type.
18180 (handle_unscalarized_data_in_subtree): New type of parameter,
18181 generate new memory accesses with same alias type as the original
18182 statement.
18183 (load_assign_lhs_subreplacements): Likewise.
18184 (sra_modify_constructor_assign): Generate new memory accesses with
18185 same alias type as the original statement.
18186
18187 2014-04-28 Richard Biener <rguenther@suse.de>
18188
18189 * tree-pass.h (TODO_verify_il): Define.
18190 (TODO_verify_all): Complete properly.
18191 * passes.c (execute_function_todo): Move existing loop-closed
18192 SSA verification under TODO_verify_il.
18193 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18194 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18195 Fix tree sharing issue.
18196
18197 2014-04-28 Richard Biener <rguenther@suse.de>
18198
18199 PR middle-end/60092
18200 * builtins.def (DEF_C11_BUILTIN): Add.
18201 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18202 * coretypes.h (enum function_class): Add function_c11_misc.
18203 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18204 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18205 (call_may_clobber_ref_p_1): Likewise.
18206 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18207 (mark_all_reaching_defs_necessary_1): Likewise.
18208 (propagate_necessity): Likewise.
18209 (eliminate_unnecessary_stmts): Likewise.
18210 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18211
18212 2014-04-28 Richard Biener <rguenther@suse.de>
18213
18214 * tree-vrp.c (vrp_var_may_overflow): Remove.
18215 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18216 with overflow immediately bump to one before that value and
18217 let iteration figure out overflow status.
18218
18219 2014-04-28 Richard Biener <rguenther@suse.de>
18220
18221 * configure.ac: Do valgrind header checks unconditionally.
18222 Add --enable-valgrind-annotations.
18223 * system.h: Guard valgrind header inclusion with
18224 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18225 * alloc-pool.c (pool_alloc, pool_free): Use
18226 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18227 to guard possibly dead code.
18228 * config.in: Regenerated.
18229 * configure: Likewise.
18230
18231 2014-04-28 Jeff Law <law@redhat.com>
18232
18233 PR tree-optimization/60902
18234 * tree-ssa-threadedge.c
18235 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18236 over real defs when invalidating outputs from statements that do not
18237 produce useful outputs for threading.
18238
18239 2014-04-28 Richard Biener <rguenther@suse.de>
18240
18241 PR tree-optimization/60979
18242 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18243 SCOPs that end in a block with a successor with abnormal
18244 predecessors.
18245
18246 2014-04-28 Richard Biener <rguenther@suse.de>
18247
18248 * tree-pass.h (execute_pass_list): Adjust prototype.
18249 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18250 (do_per_function): Change callback signature, push all actual
18251 work to the callbals.
18252 (do_per_function_toporder): Likewise.
18253 (execute_function_dump): Adjust.
18254 (execute_function_todo): Likewise.
18255 (clear_last_verified): Likewise.
18256 (verify_curr_properties): Likewise.
18257 (update_properties_after_pass): Likewise.
18258 (execute_pass_list_1): Split out from ...
18259 (execute_pass_list): ... here. Adjust.
18260 (execute_ipa_pass_list): Likewise.
18261 * cgraphunit.c (cgraph_add_new_function): Adjust.
18262 (analyze_function): Likewise.
18263 (expand_function): Likewise.
18264 * cgraph.c (release_function_body): Free dominance info
18265 here instead of asserting it was magically freed elsewhere.
18266
18267 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18268
18269 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18270 * configure: Regenerate.
18271 * config/sparc/sparc.opt (muser-mode): New option.
18272 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18273 for LEON3.
18274 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18275 * doc/invoke.texi (SPARC options): Document -muser-mode.
18276
18277 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18278
18279 * cselib.c (find_slot_memmode): Delete.
18280 (cselib_hasher): Change compare_type to a struct.
18281 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18282 constants.
18283 (preserve_constants_and_equivs): Adjust for new compare_type.
18284 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18285 (wrap_constant): Delete.
18286 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18287
18288 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18289
18290 * doc/install.texi (Building with profile feedback): Remove
18291 outdated sentence.
18292
18293 2014-04-26 Tom de Vries <tom@codesourcery.com>
18294
18295 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18296 array accesses.
18297
18298 2014-04-25 Cary Coutant <ccoutant@google.com>
18299
18300 PR debug/60929
18301 * dwarf2out.c (should_move_die_to_comdat): A type definition
18302 can contain a subprogram definition, but don't move it to a
18303 comdat unit.
18304 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18305 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18306 from original DIE.
18307 (clone_tree_hash): Rename to...
18308 (clone_tree_partial): ...this; change callers. Copy
18309 DW_TAG_subprogram DIEs as declarations.
18310 (copy_decls_walk): Don't copy children of a declaration into a
18311 type unit.
18312
18313 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18314
18315 PR target/60969
18316 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18317 alternative 12.
18318
18319 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18320
18321 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18322 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18323 reg for long_call.
18324 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18325 restriction.
18326
18327 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18328
18329 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18330
18331 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18332
18333 PR tree-optimization/60930
18334 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18335 creating a multiply candidate by folding two constant
18336 multiplicands when the result overflows.
18337
18338 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18339
18340 PR tree-optimization/60960
18341 * tree-vect-generic.c (expand_vector_operation): Only call
18342 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18343
18344 2014-04-25 Tom de Vries <tom@codesourcery.com>
18345
18346 * expr.c (clobber_reg_mode): New function.
18347 * expr.h (clobber_reg): New function.
18348
18349 2014-04-25 Tom de Vries <tom@codesourcery.com>
18350
18351 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18352 clobbers.
18353
18354 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18355 Tom de Vries <tom@codesourcery.com>
18356
18357 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18358 handle.
18359 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18360 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18361 new argument to find_all_hard_reg_sets call.
18362
18363 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18364
18365 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18366 Use HOST_WIDE_INT_C for mask literal.
18367 (aarch_rev16_shleft_mask_imm_p): Likewise.
18368
18369 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18370
18371 PR target/60941
18372 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18373
18374 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18375
18376 PR preprocessor/56540
18377 * config/i386/i386-c.c (ix86_target_macros): Define
18378 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18379
18380 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18381
18382 * configure.ac (tga_func): Remove.
18383 (LIB_TLS_SPEC): Remove.
18384 * configure: Regenerate.
18385 * config.in: Regenerate.
18386 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18387
18388 2014-04-25 Richard Biener <rguenther@suse.de>
18389
18390 PR ipa/60912
18391 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18392 call stmt use/clobber sets during stmt walk instead of
18393 walking the possibly incomplete set of caller edges.
18394
18395 2014-04-25 Richard Biener <rguenther@suse.de>
18396
18397 PR ipa/60911
18398 * passes.c (apply_ipa_transforms): Inline into only caller ...
18399 (execute_one_pass): ... here. Properly bring in function
18400 bodies for nodes we want to apply IPA transforms to.
18401
18402 2014-04-24 Cong Hou <congh@google.com>
18403
18404 PR tree-optimization/60896
18405 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18406 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18407 (vect_mark_pattern_stmts): Set the def type of all statements in
18408 PATTERN_DEF_SEQ as vect_internal_def.
18409
18410 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18411
18412 * doc/extend.texi (PowerPC Built-in Functions): Document new
18413 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18414 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18415
18416 * config/rs6000/predicates.md (const_0_to_3_operand): New
18417 predicate to match 0..3 integer constants.
18418
18419 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18420 to support adding miscellaneous builtin functions.
18421 (BU_DFP_MISC_2): Likewise.
18422 (BU_P7_MISC_1): Likewise.
18423 (BU_P7_MISC_2): Likewise.
18424 (BU_P8V_MISC_3): Likewise.
18425 (BU_MISC_1): Likewise.
18426 (BU_MISC_2): Likewise.
18427 (DIVWE): Add extended divide builtin functions.
18428 (DIVWEO): Likewise.
18429 (DIVWEU): Likewise.
18430 (DIVWEUO): Likewise.
18431 (DIVDE): Likewise.
18432 (DIVDEO): Likewise.
18433 (DIVDEU): Likewise.
18434 (DIVDEUO): Likewise.
18435 (DXEX): Add decimal floating-point builtin functions.
18436 (DXEXQ): Likewise.
18437 (DDEDPD): Likewise.
18438 (DDEDPDQ): Likewise.
18439 (DENBCD): Likewise.
18440 (DENBCDQ): Likewise.
18441 (DIEX): Likewise.
18442 (DIEXQ): Likewise.
18443 (DSCLI): Likewise.
18444 (DSCLIQ): Likewise.
18445 (DSCRI): Likewise.
18446 (DSCRIQ): Likewise.
18447 (CDTBCD): Add new BCD builtin functions.
18448 (CBCDTD): Likewise.
18449 (ADDG6S): Likewise.
18450 (BCDADD): Likewise.
18451 (BCDADD_LT): Likewise.
18452 (BCDADD_EQ): Likewise.
18453 (BCDADD_GT): Likewise.
18454 (BCDADD_OV): Likewise.
18455 (BCDSUB): Likewise.
18456 (BCDSUB_LT): Likewise.
18457 (BCDSUB_EQ): Likewise.
18458 (BCDSUB_GT): Likewise.
18459 (BCDSUB_OV): Likewise.
18460 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18461 (UNPACK_TD): Likewise.
18462 (PACK_TF): Likewise.
18463 (UNPACK_TF): Likewise.
18464 (UNPACK_TF_0): Likewise.
18465 (UNPACK_TF_1): Likewise.
18466 (PACK_V1TI): Likewise.
18467 (UNPACK_V1TI): Likewise.
18468
18469 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18470 support for decimal floating point builtin functions.
18471 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18472 functions that take constant arguments.
18473 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18474 (rs6000_init_builtins): Setup long double, _Decimal64, and
18475 _Decimal128 types for new builtin functions.
18476 (builtin_function_type): Set the unsigned flags appropriately for
18477 the new builtin functions.
18478 (rs6000_opt_masks): Add support for decimal floating point builtin
18479 functions.
18480
18481 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18482 floating point builtin functions.
18483 (RS6000_BTM_COMMON): Likewise.
18484 (RS6000_BTI_long_double): Likewise.
18485 (RS6000_BTI_dfloat64): Likewise.
18486 (RS6000_BTI_dfloat128): Likewise.
18487 (long_double_type_internal_node): Likewise.
18488 (dfloat64_type_internal_node): Likewise.
18489 (dfloat128_type_internal_node): Likewise.
18490
18491 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18492 2.07 bcd arithmetic instructions.
18493 (UNSPEC_BCDSUB): Likewise.
18494 (UNSPEC_BCD_OVERFLOW): Likewise.
18495 (UNSPEC_BCD_ADD_SUB): Likewise.
18496 (bcd_add_sub): Likewise.
18497 (BCD_TEST): Likewise.
18498 (bcd<bcd_add_sub>): Likewise.
18499 (bcd<bcd_add_sub>_test): Likewise.
18500 (bcd<bcd_add_sub>_test2): Likewise.
18501 (bcd<bcd_add_sub>_<code>): Likewise.
18502 (peephole2 for combined bcd ops): Likewise.
18503
18504 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18505 decimal floating point builtin functions.
18506 (UNSPEC_DENBCD): Likewise.
18507 (UNSPEC_DXEX): Likewise.
18508 (UNSPEC_DIEX): Likewise.
18509 (UNSPEC_DSCLI): Likewise.
18510 (UNSPEC_DSCRI): Likewise.
18511 (D64_D128): Likewise.
18512 (dfp_suffix): Likewise.
18513 (dfp_ddedpd_<mode>): Likewise.
18514 (dfp_denbcd_<mode>): Likewise.
18515 (dfp_dxex_<mode>): Likewise.
18516 (dfp_diex_<mode>): Likewise.
18517 (dfp_dscli_<mode>): Likewise.
18518 (dfp_dscri_<mode>): Likewise.
18519
18520 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18521 builtin functions.
18522 (UNSPEC_CDTBCD): Likewise.
18523 (UNSPEC_CBCDTD): Likewise.
18524 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18525 (UNSPEC_DIVEO): Likewise.
18526 (UNSPEC_DIVEU): Likewise.
18527 (UNSPEC_DIVEUO): Likewise.
18528 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18529 pack/unpack 128-bit types.
18530 (UNSPEC_PACK_128BIT): Likewise.
18531 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18532 (udiv<mode>3): Use idiv_ldiv mode attribute.
18533 (div<mode>3): Likewise.
18534 (addg6s): Add new BCD builtin functions.
18535 (cdtbcd): Likewise.
18536 (cbcdtd): Likewise.
18537 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18538 (div_extend): Likewise.
18539 (div<div_extend>_<mode>"): Likewise.
18540 (FP128_64): Add support for new builtin functions to pack/unpack
18541 128-bit types.
18542 (unpack<mode>): Likewise.
18543 (unpacktf_0): Likewise.
18544 (unpacktf_1): Likewise.
18545 (unpack<mode>_dm): Likewise.
18546 (unpack<mode>_nodm): Likewise.
18547 (pack<mode>): Likewise.
18548 (unpackv1ti): Likewise.
18549 (packv1ti): Likewise.
18550
18551 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18552
18553 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18554 is disabled.
18555
18556 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18557
18558 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18559 * gimplify.c (omp_is_private): Change last argument's type to int.
18560 Only diagnose lastprivate if the simd argument is 1, only diagnose
18561 linear if the simd argument is 2.
18562 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18563 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18564 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18565 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18566 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18567 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18568 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18569 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18570 * tree-nested.c (convert_nonlocal_omp_clauses,
18571 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18572
18573 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18574
18575 PR target/60822
18576 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18577 operand 1.
18578
18579 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18580
18581 * flag-types.h (enum ivar_visibility): Add.
18582
18583 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18584
18585 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18586 function * argument.
18587
18588 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18589
18590 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18591
18592 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18593 Tom de Vries <tom@codesourcery.com>
18594
18595 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18596 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18597 reg-note.
18598 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18599 * emit-rtl.c (try_split): Same.
18600
18601 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18602 Tom de Vries <tom@codesourcery.com>
18603
18604 * common.opt (fuse-caller-save): New option.
18605
18606 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18607
18608 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18609 elements for big-endian.
18610
18611 2014-04-24 Richard Biener <rguenther@suse.de>
18612
18613 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18614 during TER and instead use the sepops interface for expanding
18615 non-GIMPLE_SINGLE_RHS.
18616
18617 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18618
18619 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18620 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18621
18622 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18623
18624 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18625 assembler 64-bit option.
18626 * configure: Regenerate.
18627
18628 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18629
18630 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18631 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18632 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18633 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18634 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18635
18636 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18637
18638 * config/aarch64/aarch64-builtins.c
18639 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18640 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18641 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18642 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18643 builtins.
18644 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18645 (Vrevsuff): New mode attribute.
18646
18647 2014-04-24 Terry Guo <terry.guo@arm.com>
18648
18649 * config/arm/arm.h (machine_function): Define variable
18650 after_arm_reorg here.
18651 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18652 (arm_split_constant): Update the way to access variable
18653 after_arm_reorg.
18654 (arm_reorg): Ditto.
18655 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18656
18657 2014-04-23 Tom de Vries <tom@codesourcery.com>
18658
18659 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18660
18661 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18662
18663 * is-a.h: Update comments to reflect the following changes to the
18664 "pointerness" of the API, making the template parameter match the
18665 return type, allowing use of is-a.h with typedefs of pointers.
18666 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18667 that the return type matches the parameter to the is_a_helper.
18668 (as_a): Likewise.
18669 (dyn_cast): Likewise.
18670
18671 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18672 pointer from the is-a.h API.
18673
18674 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18675 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18676 is-a.h API.
18677 (is_a_helper <varpool_node>::test): Likewise, convert to...
18678 (is_a_helper <varpool_node *>::test): ...this.
18679
18680 (varpool_first_variable): Update for removal of implicit pointer
18681 from the is-a.h API.
18682 (varpool_next_variable): Likewise.
18683 (varpool_first_static_initializer): Likewise.
18684 (varpool_next_static_initializer): Likewise.
18685 (varpool_first_defined_variable): Likewise.
18686 (varpool_next_defined_variable): Likewise.
18687 (cgraph_first_defined_function): Likewise.
18688 (cgraph_next_defined_function): Likewise.
18689 (cgraph_first_function): Likewise.
18690 (cgraph_next_function): Likewise.
18691 (cgraph_first_function_with_gimple_body): Likewise.
18692 (cgraph_next_function_with_gimple_body): Likewise.
18693 (cgraph_alias_target): Likewise.
18694 (varpool_alias_target): Likewise.
18695 (cgraph_function_or_thunk_node): Likewise.
18696 (varpool_variable_node): Likewise.
18697 (symtab_real_symbol_p): Likewise.
18698 * cgraphunit.c (referred_to_p): Likewise.
18699 (analyze_functions): Likewise.
18700 (handle_alias_pairs): Likewise.
18701 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18702 * gimple-ssa.h (gimple_vuse_op): Likewise.
18703 (gimple_vdef_op): Likewise.
18704 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18705 * gimple.c (gimple_build_asm_1): Likewise.
18706 (gimple_build_try): Likewise.
18707 (gimple_build_resx): Likewise.
18708 (gimple_build_eh_dispatch): Likewise.
18709 (gimple_build_omp_for): Likewise.
18710 (gimple_omp_for_set_clauses): Likewise.
18711
18712 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18713 (is_a_helper <gimple_statement_asm *>::test): ...this.
18714 (is_a_helper <gimple_statement_bind>::test): Convert to...
18715 (is_a_helper <gimple_statement_bind *>::test): ...this.
18716 (is_a_helper <gimple_statement_call>::test): Convert to...
18717 (is_a_helper <gimple_statement_call *>::test): ...this.
18718 (is_a_helper <gimple_statement_catch>::test): Convert to...
18719 (is_a_helper <gimple_statement_catch *>::test): ...this.
18720 (is_a_helper <gimple_statement_resx>::test): Convert to...
18721 (is_a_helper <gimple_statement_resx *>::test): ...this.
18722 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18723 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18724 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18725 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18726 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18727 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18728 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18729 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18730 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18731 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18732 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18733 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18734 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18735 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18736 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18737 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18738 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18739 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18740 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18741 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18742 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18743 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18744 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18745 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18746 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18747 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18748 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18749 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18750 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18751 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18752 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18753 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18754 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18755 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18756 (is_a_helper <gimple_statement_phi>::test): Convert to...
18757 (is_a_helper <gimple_statement_phi *>::test): ...this.
18758 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18759 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18760 (is_a_helper <gimple_statement_try>::test): Convert to...
18761 (is_a_helper <gimple_statement_try *>::test): ...this.
18762 (is_a_helper <gimple_statement_wce>::test): Convert to...
18763 (is_a_helper <gimple_statement_wce *>::test): ...this.
18764 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18765 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18766 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18767 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18768 (is_a_helper <const gimple_statement_call>::test): Convert to...
18769 (is_a_helper <const gimple_statement_call *>::test): ...this.
18770 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18771 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18772 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18773 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18774 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18775 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18776 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18777 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18778 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18779 Convert to...
18780 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18781 ...this.
18782 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18783 Convert to...
18784 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18785 ...this.
18786 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18787 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18788 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18789 to...
18790 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18791 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18792 to...
18793 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18794 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18795 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18796 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18797 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18798 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18799 to...
18800 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18801 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18802 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18803 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18804 to...
18805 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18806 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18807 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18808 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18809 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18810 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18811 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18812 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18813 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18814 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18815 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18816 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18817 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18818 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18819 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18820 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18821 to...
18822 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18823 ...this.
18824 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18825 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18826
18827 (gimple_use_ops): Update for removal of implicit pointer from the
18828 is-a.h API.
18829 (gimple_set_use_ops): Likewise.
18830 (gimple_vuse): Likewise.
18831 (gimple_vdef): Likewise.
18832 (gimple_vuse_ptr): Likewise.
18833 (gimple_vdef_ptr): Likewise.
18834 (gimple_set_vuse): Likewise.
18835 (gimple_set_vdef): Likewise.
18836 (gimple_omp_return_set_lhs): Likewise.
18837 (gimple_omp_return_lhs): Likewise.
18838 (gimple_omp_return_lhs_ptr): Likewise.
18839 (gimple_call_fntype): Likewise.
18840 (gimple_call_set_fntype): Likewise.
18841 (gimple_call_set_internal_fn): Likewise.
18842 (gimple_call_use_set): Likewise.
18843 (gimple_call_clobber_set): Likewise.
18844 (gimple_bind_vars): Likewise.
18845 (gimple_bind_set_vars): Likewise.
18846 (gimple_bind_body_ptr): Likewise.
18847 (gimple_bind_set_body): Likewise.
18848 (gimple_bind_add_stmt): Likewise.
18849 (gimple_bind_block): Likewise.
18850 (gimple_bind_set_block): Likewise.
18851 (gimple_asm_ninputs): Likewise.
18852 (gimple_asm_noutputs): Likewise.
18853 (gimple_asm_nclobbers): Likewise.
18854 (gimple_asm_nlabels): Likewise.
18855 (gimple_asm_input_op): Likewise.
18856 (gimple_asm_input_op_ptr): Likewise.
18857 (gimple_asm_output_op): Likewise.
18858 (gimple_asm_output_op_ptr): Likewise.
18859 (gimple_asm_set_output_op): Likewise.
18860 (gimple_asm_clobber_op): Likewise.
18861 (gimple_asm_set_clobber_op): Likewise.
18862 (gimple_asm_label_op): Likewise.
18863 (gimple_asm_set_label_op): Likewise.
18864 (gimple_asm_string): Likewise.
18865 (gimple_catch_types): Likewise.
18866 (gimple_catch_types_ptr): Likewise.
18867 (gimple_catch_handler_ptr): Likewise.
18868 (gimple_catch_set_types): Likewise.
18869 (gimple_catch_set_handler): Likewise.
18870 (gimple_eh_filter_types): Likewise.
18871 (gimple_eh_filter_types_ptr): Likewise.
18872 (gimple_eh_filter_failure_ptr): Likewise.
18873 (gimple_eh_filter_set_types): Likewise.
18874 (gimple_eh_filter_set_failure): Likewise.
18875 (gimple_eh_must_not_throw_fndecl): Likewise.
18876 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18877 (gimple_eh_else_n_body_ptr): Likewise.
18878 (gimple_eh_else_e_body_ptr): Likewise.
18879 (gimple_eh_else_set_n_body): Likewise.
18880 (gimple_eh_else_set_e_body): Likewise.
18881 (gimple_try_eval_ptr): Likewise.
18882 (gimple_try_cleanup_ptr): Likewise.
18883 (gimple_try_set_eval): Likewise.
18884 (gimple_try_set_cleanup): Likewise.
18885 (gimple_wce_cleanup_ptr): Likewise.
18886 (gimple_wce_set_cleanup): Likewise.
18887 (gimple_phi_capacity): Likewise.
18888 (gimple_phi_num_args): Likewise.
18889 (gimple_phi_result): Likewise.
18890 (gimple_phi_result_ptr): Likewise.
18891 (gimple_phi_set_result): Likewise.
18892 (gimple_phi_arg): Likewise.
18893 (gimple_phi_set_arg): Likewise.
18894 (gimple_resx_region): Likewise.
18895 (gimple_resx_set_region): Likewise.
18896 (gimple_eh_dispatch_region): Likewise.
18897 (gimple_eh_dispatch_set_region): Likewise.
18898 (gimple_omp_critical_name): Likewise.
18899 (gimple_omp_critical_name_ptr): Likewise.
18900 (gimple_omp_critical_set_name): Likewise.
18901 (gimple_omp_for_clauses): Likewise.
18902 (gimple_omp_for_clauses_ptr): Likewise.
18903 (gimple_omp_for_set_clauses): Likewise.
18904 (gimple_omp_for_collapse): Likewise.
18905 (gimple_omp_for_index): Likewise.
18906 (gimple_omp_for_index_ptr): Likewise.
18907 (gimple_omp_for_set_index): Likewise.
18908 (gimple_omp_for_initial): Likewise.
18909 (gimple_omp_for_initial_ptr): Likewise.
18910 (gimple_omp_for_set_initial): Likewise.
18911 (gimple_omp_for_final): Likewise.
18912 (gimple_omp_for_final_ptr): Likewise.
18913 (gimple_omp_for_set_final): Likewise.
18914 (gimple_omp_for_incr): Likewise.
18915 (gimple_omp_for_incr_ptr): Likewise.
18916 (gimple_omp_for_set_incr): Likewise.
18917 (gimple_omp_for_pre_body_ptr): Likewise.
18918 (gimple_omp_for_set_pre_body): Likewise.
18919 (gimple_omp_parallel_clauses): Likewise.
18920 (gimple_omp_parallel_clauses_ptr): Likewise.
18921 (gimple_omp_parallel_set_clauses): Likewise.
18922 (gimple_omp_parallel_child_fn): Likewise.
18923 (gimple_omp_parallel_child_fn_ptr): Likewise.
18924 (gimple_omp_parallel_set_child_fn): Likewise.
18925 (gimple_omp_parallel_data_arg): Likewise.
18926 (gimple_omp_parallel_data_arg_ptr): Likewise.
18927 (gimple_omp_parallel_set_data_arg): Likewise.
18928 (gimple_omp_task_clauses): Likewise.
18929 (gimple_omp_task_clauses_ptr): Likewise.
18930 (gimple_omp_task_set_clauses): Likewise.
18931 (gimple_omp_task_child_fn): Likewise.
18932 (gimple_omp_task_child_fn_ptr): Likewise.
18933 (gimple_omp_task_set_child_fn): Likewise.
18934 (gimple_omp_task_data_arg): Likewise.
18935 (gimple_omp_task_data_arg_ptr): Likewise.
18936 (gimple_omp_task_set_data_arg): Likewise.
18937 (gimple_omp_taskreg_clauses): Likewise.
18938 (gimple_omp_taskreg_clauses_ptr): Likewise.
18939 (gimple_omp_taskreg_set_clauses): Likewise.
18940 (gimple_omp_taskreg_child_fn): Likewise.
18941 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18942 (gimple_omp_taskreg_set_child_fn): Likewise.
18943 (gimple_omp_taskreg_data_arg): Likewise.
18944 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18945 (gimple_omp_taskreg_set_data_arg): Likewise.
18946 (gimple_omp_task_copy_fn): Likewise.
18947 (gimple_omp_task_copy_fn_ptr): Likewise.
18948 (gimple_omp_task_set_copy_fn): Likewise.
18949 (gimple_omp_task_arg_size): Likewise.
18950 (gimple_omp_task_arg_size_ptr): Likewise.
18951 (gimple_omp_task_set_arg_size): Likewise.
18952 (gimple_omp_task_arg_align): Likewise.
18953 (gimple_omp_task_arg_align_ptr): Likewise.
18954 (gimple_omp_task_set_arg_align): Likewise.
18955 (gimple_omp_single_clauses): Likewise.
18956 (gimple_omp_single_clauses_ptr): Likewise.
18957 (gimple_omp_single_set_clauses): Likewise.
18958 (gimple_omp_target_clauses): Likewise.
18959 (gimple_omp_target_clauses_ptr): Likewise.
18960 (gimple_omp_target_set_clauses): Likewise.
18961 (gimple_omp_target_child_fn): Likewise.
18962 (gimple_omp_target_child_fn_ptr): Likewise.
18963 (gimple_omp_target_set_child_fn): Likewise.
18964 (gimple_omp_target_data_arg): Likewise.
18965 (gimple_omp_target_data_arg_ptr): Likewise.
18966 (gimple_omp_target_set_data_arg): Likewise.
18967 (gimple_omp_teams_clauses): Likewise.
18968 (gimple_omp_teams_clauses_ptr): Likewise.
18969 (gimple_omp_teams_set_clauses): Likewise.
18970 (gimple_omp_sections_clauses): Likewise.
18971 (gimple_omp_sections_clauses_ptr): Likewise.
18972 (gimple_omp_sections_set_clauses): Likewise.
18973 (gimple_omp_sections_control): Likewise.
18974 (gimple_omp_sections_control_ptr): Likewise.
18975 (gimple_omp_sections_set_control): Likewise.
18976 (gimple_omp_for_set_cond): Likewise.
18977 (gimple_omp_for_cond): Likewise.
18978 (gimple_omp_atomic_store_set_val): Likewise.
18979 (gimple_omp_atomic_store_val): Likewise.
18980 (gimple_omp_atomic_store_val_ptr): Likewise.
18981 (gimple_omp_atomic_load_set_lhs): Likewise.
18982 (gimple_omp_atomic_load_lhs): Likewise.
18983 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18984 (gimple_omp_atomic_load_set_rhs): Likewise.
18985 (gimple_omp_atomic_load_rhs): Likewise.
18986 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18987 (gimple_omp_continue_control_def): Likewise.
18988 (gimple_omp_continue_control_def_ptr): Likewise.
18989 (gimple_omp_continue_set_control_def): Likewise.
18990 (gimple_omp_continue_control_use): Likewise.
18991 (gimple_omp_continue_control_use_ptr): Likewise.
18992 (gimple_omp_continue_set_control_use): Likewise.
18993 (gimple_transaction_body_ptr): Likewise.
18994 (gimple_transaction_label): Likewise.
18995 (gimple_transaction_label_ptr): Likewise.
18996 (gimple_transaction_set_body): Likewise.
18997 (gimple_transaction_set_label): Likewise.
18998
18999 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19000 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19001 * ipa-ref.c (ipa_record_reference): Likewise.
19002 * ipa-reference.c (analyze_function): Likewise.
19003 (ipa_reference_write_optimization_summary): Likewise.
19004 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19005 (address_taken_from_non_vtable_p): Likewise.
19006 (comdat_can_be_unshared_p_1): Likewise.
19007 * lto-cgraph.c (lto_output_ref): Likewise.
19008 (add_references): Likewise.
19009 (compute_ltrans_boundary): Likewise.
19010 (output_symtab): Likewise.
19011 (input_ref): Likewise.
19012 (input_cgraph_1): Likewise.
19013 (output_cgraph_opt_summary): Likewise.
19014 * lto-streamer-out.c (lto_output): Likewise.
19015 (output_symbol_p): Likewise.
19016 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19017 (lsei_start_function_in_partition): Likewise.
19018 (lsei_next_variable_in_partition): Likewise.
19019 (lsei_start_variable_in_partition): Likewise.
19020 * symtab.c (insert_to_assembler_name_hash): Likewise.
19021 (unlink_from_assembler_name_hash): Likewise.
19022 (symtab_unregister_node): Likewise.
19023 (symtab_remove_node): Likewise.
19024 (dump_symtab_node): Likewise.
19025 (verify_symtab_base): Likewise.
19026 (verify_symtab_node): Likewise.
19027 (symtab_make_decl_local): Likewise.
19028 (symtab_alias_ultimate_target): Likewise.
19029 (symtab_resolve_alias): Likewise.
19030 (symtab_get_symbol_partitioning_class): Likewise.
19031 * tree-phinodes.c (allocate_phi_node): Likewise.
19032 (reserve_phi_args_for_new_edge): Likewise.
19033 (remove_phi_args): Likewise.
19034 * varpool.c (varpool_node_for_asm): Likewise.
19035 (varpool_remove_unreferenced_decls): Likewise.
19036
19037 2014-04-23 Jeff Law <law@redhat.com>
19038
19039 PR tree-optimization/60902
19040 * tree-ssa-threadedge.c
19041 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19042 invalidate outputs from statements that do not produce useful
19043 outputs for threading.
19044
19045 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19046
19047 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19048 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19049 machine descriptions for Stack Smashing Protector.
19050
19051 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19052
19053 * aarch64.md (<optab>_rol<mode>3): New pattern.
19054 (<optab>_rolsi3_uxtw): Likewise.
19055 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19056
19057 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19058
19059 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19060 (arm_cortex_a12_tune): Likewise.
19061
19062 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19063
19064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19065
19066 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19067
19068 * config/arm/arm.md (arm_rev16si2): New pattern.
19069 (arm_rev16si2_alt): Likewise.
19070 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19071
19072 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19073
19074 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19075 (rev16<mode>2_alt): Likewise.
19076 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19077 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19078 (aarch_rev16_shleft_mask_imm_p): Likewise.
19079 (aarch_rev16_p_1): Likewise.
19080 (aarch_rev16_p): Likewise.
19081 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19082 (aarch_rev16_shright_mask_imm_p): Likewise.
19083 (aarch_rev16_shleft_mask_imm_p): Likewise.
19084
19085 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19086
19087 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19088 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19089 rev cost.
19090 (cortex_a53_extra_costs): Likewise.
19091 (cortex_a57_extra_costs): Likewise.
19092 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19093 (cortexa7_extra_costs): Likewise.
19094 (cortexa8_extra_costs): Likewise.
19095 (cortexa12_extra_costs): Likewise.
19096 (cortexa15_extra_costs): Likewise.
19097 (v7m_extra_costs): Likewise.
19098 (arm_new_rtx_costs): Handle BSWAP.
19099
19100 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19101
19102 * config/arm/arm.c (cortexa8_extra_costs): New table.
19103 (arm_cortex_a8_tune): New tuning struct.
19104 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19105
19106 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19107
19108 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19109
19110 2014-04-23 Richard Biener <rguenther@suse.de>
19111
19112 * Makefile.in (OBJS): Remove loop-unswitch.o.
19113 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19114 * passes.def (pass_rtl_unswitch): Likewise.
19115 * loop-init.c (gate_rtl_unswitch): Likewise.
19116 (rtl_unswitch): Likewise.
19117 (pass_data_rtl_unswitch): Likewise.
19118 (pass_rtl_unswitch): Likewise.
19119 (make_pass_rtl_unswitch): Likewise.
19120 * rtl.h (reversed_condition): Likewise.
19121 (compare_and_jump_seq): Likewise.
19122 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19123 and make static.
19124 * loop-unroll.c (compare_and_jump_seq): Likewise.
19125
19126 2014-04-23 Richard Biener <rguenther@suse.de>
19127
19128 PR tree-optimization/60903
19129 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19130 commented code block.
19131 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19132 loop flags to newly created BBs and edges.
19133
19134 2014-04-23 Nick Clifton <nickc@redhat.com>
19135
19136 * config/msp430/msp430.c (msp430_handle_option): Move function
19137 to msp430-common.c
19138 (msp430_option_override): Simplify mcu and mcpu option handling.
19139 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19140 support for -mhwmult command line option.
19141 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19142 -mhwmult command line option.
19143 (msp430_hwmult_enabled): Delete.
19144 (msp43o_output_labelref): Add support for -mhwmult command line option.
19145 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19146 (umulsidi3): Likewise.
19147 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19148 (mcpu, mlarge, msmall): Likewise.
19149 (mhwmult): New option.
19150 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19151 prototype.
19152 (msp430_is_f5_mcu): Remove prototype.
19153 (msp430_use_f5_series_hwmult): Add prototype.
19154 * config/msp430/msp430-opts.h: New file.
19155 * common/config/msp430: New directory.
19156 * common/config/msp430/msp430-common.c: New file.
19157 * config.gcc (msp430): Remove target_has_targetm_common.
19158 * doc/invoke.texi: Document -mhwmult command line option.
19159
19160 2014-04-23 Nick Clifton <nickc@redhat.com>
19161
19162 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19163 default-manifest.o if it can be found in the search path.
19164 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19165
19166 2014-04-23 Terry Guo <terry.guo@arm.com>
19167
19168 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19169
19170 2014-04-23 Richard Biener <rguenther@suse.de>
19171
19172 PR middle-end/60895
19173 * tree-inline.c (declare_return_variable): Use mark_addressable.
19174
19175 2014-04-23 Richard Biener <rguenther@suse.de>
19176
19177 PR middle-end/60891
19178 * loop-init.c (loop_optimizer_init): Make sure to apply
19179 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19180
19181 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19182
19183 PR sanitizer/60275
19184 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19185 New options.
19186 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19187 if flag_sanitize_undefined_trap_on_error.
19188 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19189 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19190 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19191 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19192 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19193 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19194 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19195 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19196 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19197 * ubsan.c (ubsan_instrument_unreachable): Return
19198 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19199 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19200 if flag_sanitize_undefined_trap_on_error and
19201 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19202 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19203 instrument_bool_enum_load): Emit __builtin_trap () if
19204 flag_sanitize_undefined_trap_on_error and
19205 __builtin_handle_*_abort () if !flag_sanitize_recover.
19206 * doc/invoke.texi (-fsanitize-recover,
19207 -fsanitize-undefined-trap-on-error): Document.
19208
19209 2014-04-22 Christian Bruel <christian.bruel@st.com>
19210
19211 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19212 Force immediates to SImode.
19213
19214 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19215
19216 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19217 (lroundsfsi2): New.
19218 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19219 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19220 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19221 (nios2_fpu_insn): Add entry for round.
19222 (N2FPU_NO_ERRNO_P): Define.
19223 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19224 flag_errno_math.
19225 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19226
19227 2014-04-22 Richard Henderson <rth@redhat.com>
19228
19229 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19230 (add<GPI>3_compare0): Remove leading * from name.
19231 (add<GPI>3_carryin): Likewise.
19232 (sub<GPI>3_compare0): Likewise.
19233 (sub<GPI>3_carryin): Likewise.
19234 (<su_optab>mulditi3): New expander.
19235 (multi3): New expander.
19236 (madd<GPI>): Remove leading * from name.
19237
19238 2014-04-22 Martin Jambor <mjambor@suse.cz>
19239
19240 * cgraphclones.c (cgraph_function_versioning): Copy
19241 ipa_transforms_to_apply instead of asserting it is empty.
19242
19243 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19244
19245 PR target/60868
19246 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19247 on count_exp to get mode.
19248
19249 2014-04-22 Andrew Pinski <apinski@cavium.com>
19250
19251 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19252 Handle TLS for ILP32.
19253 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19254 (tlsie_small_<mode>): this and handle PTR.
19255 (tlsie_small_sidi): New pattern.
19256 (tlsle_small): Change to an expand to handle ILP32.
19257 (tlsle_small_<mode>): New pattern.
19258 (tlsdesc_small): Rename to ...
19259 (tlsdesc_small_<mode>): this and handle PTR.
19260
19261 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19262
19263 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19264
19265 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19266
19267 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19268 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19269 (aarch64_types_signed_poly_qualifiers): Likewise.
19270 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19271 (aarch64_types_poly_signed_qualifiers): Likewise.
19272 (TYPES_REINTERP_SS): Type macro added.
19273 (TYPES_REINTERP_SU): Likewise.
19274 (TYPES_REINTERP_SP): Likewise.
19275 (TYPES_REINTERP_US): Likewise.
19276 (TYPES_REINTERP_PS): Likewise.
19277 (aarch64_fold_builtin): New expression folding added.
19278 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19279 Declarations removed.
19280 (REINTERP_SS): Declarations added.
19281 (REINTERP_US): Likewise.
19282 (REINTERP_PS): Likewise.
19283 (REINTERP_SU): Likewise.
19284 (REINTERP_SP): Likewise.
19285 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19286 (vreinterpretq_p8_f64): Likewise.
19287 (vreinterpret_p16_f64): Likewise.
19288 (vreinterpretq_p16_f64): Likewise.
19289 (vreinterpret_f32_f64): Likewise.
19290 (vreinterpretq_f32_f64): Likewise.
19291 (vreinterpret_f64_f32): Likewise.
19292 (vreinterpret_f64_p8): Likewise.
19293 (vreinterpret_f64_p16): Likewise.
19294 (vreinterpret_f64_s8): Likewise.
19295 (vreinterpret_f64_s16): Likewise.
19296 (vreinterpret_f64_s32): Likewise.
19297 (vreinterpret_f64_s64): Likewise.
19298 (vreinterpret_f64_u8): Likewise.
19299 (vreinterpret_f64_u16): Likewise.
19300 (vreinterpret_f64_u32): Likewise.
19301 (vreinterpret_f64_u64): Likewise.
19302 (vreinterpretq_f64_f32): Likewise.
19303 (vreinterpretq_f64_p8): Likewise.
19304 (vreinterpretq_f64_p16): Likewise.
19305 (vreinterpretq_f64_s8): Likewise.
19306 (vreinterpretq_f64_s16): Likewise.
19307 (vreinterpretq_f64_s32): Likewise.
19308 (vreinterpretq_f64_s64): Likewise.
19309 (vreinterpretq_f64_u8): Likewise.
19310 (vreinterpretq_f64_u16): Likewise.
19311 (vreinterpretq_f64_u32): Likewise.
19312 (vreinterpretq_f64_u64): Likewise.
19313 (vreinterpret_s64_f64): Likewise.
19314 (vreinterpretq_s64_f64): Likewise.
19315 (vreinterpret_u64_f64): Likewise.
19316 (vreinterpretq_u64_f64): Likewise.
19317 (vreinterpret_s8_f64): Likewise.
19318 (vreinterpretq_s8_f64): Likewise.
19319 (vreinterpret_s16_f64): Likewise.
19320 (vreinterpretq_s16_f64): Likewise.
19321 (vreinterpret_s32_f64): Likewise.
19322 (vreinterpretq_s32_f64): Likewise.
19323 (vreinterpret_u8_f64): Likewise.
19324 (vreinterpretq_u8_f64): Likewise.
19325 (vreinterpret_u16_f64): Likewise.
19326 (vreinterpretq_u16_f64): Likewise.
19327 (vreinterpret_u32_f64): Likewise.
19328 (vreinterpretq_u32_f64): Likewise.
19329
19330 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19331
19332 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19333 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19334 (vreinterpret_p8_s8): Likewise.
19335 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19336 (vreinterpret_p8_s16): Likewise.
19337 (vreinterpret_p8_s32): Likewise.
19338 (vreinterpret_p8_s64): Likewise.
19339 (vreinterpret_p8_f32): Likewise.
19340 (vreinterpret_p8_u8): Likewise.
19341 (vreinterpret_p8_u16): Likewise.
19342 (vreinterpret_p8_u32): Likewise.
19343 (vreinterpret_p8_u64): Likewise.
19344 (vreinterpret_p8_p16): Likewise.
19345 (vreinterpretq_p8_s8): Likewise.
19346 (vreinterpretq_p8_s16): Likewise.
19347 (vreinterpretq_p8_s32): Likewise.
19348 (vreinterpretq_p8_s64): Likewise.
19349 (vreinterpretq_p8_f32): Likewise.
19350 (vreinterpretq_p8_u8): Likewise.
19351 (vreinterpretq_p8_u16): Likewise.
19352 (vreinterpretq_p8_u32): Likewise.
19353 (vreinterpretq_p8_u64): Likewise.
19354 (vreinterpretq_p8_p16): Likewise.
19355 (vreinterpret_p16_s8): Likewise.
19356 (vreinterpret_p16_s16): Likewise.
19357 (vreinterpret_p16_s32): Likewise.
19358 (vreinterpret_p16_s64): Likewise.
19359 (vreinterpret_p16_f32): Likewise.
19360 (vreinterpret_p16_u8): Likewise.
19361 (vreinterpret_p16_u16): Likewise.
19362 (vreinterpret_p16_u32): Likewise.
19363 (vreinterpret_p16_u64): Likewise.
19364 (vreinterpret_p16_p8): Likewise.
19365 (vreinterpretq_p16_s8): Likewise.
19366 (vreinterpretq_p16_s16): Likewise.
19367 (vreinterpretq_p16_s32): Likewise.
19368 (vreinterpretq_p16_s64): Likewise.
19369 (vreinterpretq_p16_f32): Likewise.
19370 (vreinterpretq_p16_u8): Likewise.
19371 (vreinterpretq_p16_u16): Likewise.
19372 (vreinterpretq_p16_u32): Likewise.
19373 (vreinterpretq_p16_u64): Likewise.
19374 (vreinterpretq_p16_p8): Likewise.
19375 (vreinterpret_f32_s8): Likewise.
19376 (vreinterpret_f32_s16): Likewise.
19377 (vreinterpret_f32_s32): Likewise.
19378 (vreinterpret_f32_s64): Likewise.
19379 (vreinterpret_f32_u8): Likewise.
19380 (vreinterpret_f32_u16): Likewise.
19381 (vreinterpret_f32_u32): Likewise.
19382 (vreinterpret_f32_u64): Likewise.
19383 (vreinterpret_f32_p8): Likewise.
19384 (vreinterpret_f32_p16): Likewise.
19385 (vreinterpretq_f32_s8): Likewise.
19386 (vreinterpretq_f32_s16): Likewise.
19387 (vreinterpretq_f32_s32): Likewise.
19388 (vreinterpretq_f32_s64): Likewise.
19389 (vreinterpretq_f32_u8): Likewise.
19390 (vreinterpretq_f32_u16): Likewise.
19391 (vreinterpretq_f32_u32): Likewise.
19392 (vreinterpretq_f32_u64): Likewise.
19393 (vreinterpretq_f32_p8): Likewise.
19394 (vreinterpretq_f32_p16): Likewise.
19395 (vreinterpret_s64_s8): Likewise.
19396 (vreinterpret_s64_s16): Likewise.
19397 (vreinterpret_s64_s32): Likewise.
19398 (vreinterpret_s64_f32): Likewise.
19399 (vreinterpret_s64_u8): Likewise.
19400 (vreinterpret_s64_u16): Likewise.
19401 (vreinterpret_s64_u32): Likewise.
19402 (vreinterpret_s64_u64): Likewise.
19403 (vreinterpret_s64_p8): Likewise.
19404 (vreinterpret_s64_p16): Likewise.
19405 (vreinterpretq_s64_s8): Likewise.
19406 (vreinterpretq_s64_s16): Likewise.
19407 (vreinterpretq_s64_s32): Likewise.
19408 (vreinterpretq_s64_f32): Likewise.
19409 (vreinterpretq_s64_u8): Likewise.
19410 (vreinterpretq_s64_u16): Likewise.
19411 (vreinterpretq_s64_u32): Likewise.
19412 (vreinterpretq_s64_u64): Likewise.
19413 (vreinterpretq_s64_p8): Likewise.
19414 (vreinterpretq_s64_p16): Likewise.
19415 (vreinterpret_u64_s8): Likewise.
19416 (vreinterpret_u64_s16): Likewise.
19417 (vreinterpret_u64_s32): Likewise.
19418 (vreinterpret_u64_s64): Likewise.
19419 (vreinterpret_u64_f32): Likewise.
19420 (vreinterpret_u64_u8): Likewise.
19421 (vreinterpret_u64_u16): Likewise.
19422 (vreinterpret_u64_u32): Likewise.
19423 (vreinterpret_u64_p8): Likewise.
19424 (vreinterpret_u64_p16): Likewise.
19425 (vreinterpretq_u64_s8): Likewise.
19426 (vreinterpretq_u64_s16): Likewise.
19427 (vreinterpretq_u64_s32): Likewise.
19428 (vreinterpretq_u64_s64): Likewise.
19429 (vreinterpretq_u64_f32): Likewise.
19430 (vreinterpretq_u64_u8): Likewise.
19431 (vreinterpretq_u64_u16): Likewise.
19432 (vreinterpretq_u64_u32): Likewise.
19433 (vreinterpretq_u64_p8): Likewise.
19434 (vreinterpretq_u64_p16): Likewise.
19435 (vreinterpret_s8_s16): Likewise.
19436 (vreinterpret_s8_s32): Likewise.
19437 (vreinterpret_s8_s64): Likewise.
19438 (vreinterpret_s8_f32): Likewise.
19439 (vreinterpret_s8_u8): Likewise.
19440 (vreinterpret_s8_u16): Likewise.
19441 (vreinterpret_s8_u32): Likewise.
19442 (vreinterpret_s8_u64): Likewise.
19443 (vreinterpret_s8_p8): Likewise.
19444 (vreinterpret_s8_p16): Likewise.
19445 (vreinterpretq_s8_s16): Likewise.
19446 (vreinterpretq_s8_s32): Likewise.
19447 (vreinterpretq_s8_s64): Likewise.
19448 (vreinterpretq_s8_f32): Likewise.
19449 (vreinterpretq_s8_u8): Likewise.
19450 (vreinterpretq_s8_u16): Likewise.
19451 (vreinterpretq_s8_u32): Likewise.
19452 (vreinterpretq_s8_u64): Likewise.
19453 (vreinterpretq_s8_p8): Likewise.
19454 (vreinterpretq_s8_p16): Likewise.
19455 (vreinterpret_s16_s8): Likewise.
19456 (vreinterpret_s16_s32): Likewise.
19457 (vreinterpret_s16_s64): Likewise.
19458 (vreinterpret_s16_f32): Likewise.
19459 (vreinterpret_s16_u8): Likewise.
19460 (vreinterpret_s16_u16): Likewise.
19461 (vreinterpret_s16_u32): Likewise.
19462 (vreinterpret_s16_u64): Likewise.
19463 (vreinterpret_s16_p8): Likewise.
19464 (vreinterpret_s16_p16): Likewise.
19465 (vreinterpretq_s16_s8): Likewise.
19466 (vreinterpretq_s16_s32): Likewise.
19467 (vreinterpretq_s16_s64): Likewise.
19468 (vreinterpretq_s16_f32): Likewise.
19469 (vreinterpretq_s16_u8): Likewise.
19470 (vreinterpretq_s16_u16): Likewise.
19471 (vreinterpretq_s16_u32): Likewise.
19472 (vreinterpretq_s16_u64): Likewise.
19473 (vreinterpretq_s16_p8): Likewise.
19474 (vreinterpretq_s16_p16): Likewise.
19475 (vreinterpret_s32_s8): Likewise.
19476 (vreinterpret_s32_s16): Likewise.
19477 (vreinterpret_s32_s64): Likewise.
19478 (vreinterpret_s32_f32): Likewise.
19479 (vreinterpret_s32_u8): Likewise.
19480 (vreinterpret_s32_u16): Likewise.
19481 (vreinterpret_s32_u32): Likewise.
19482 (vreinterpret_s32_u64): Likewise.
19483 (vreinterpret_s32_p8): Likewise.
19484 (vreinterpret_s32_p16): Likewise.
19485 (vreinterpretq_s32_s8): Likewise.
19486 (vreinterpretq_s32_s16): Likewise.
19487 (vreinterpretq_s32_s64): Likewise.
19488 (vreinterpretq_s32_f32): Likewise.
19489 (vreinterpretq_s32_u8): Likewise.
19490 (vreinterpretq_s32_u16): Likewise.
19491 (vreinterpretq_s32_u32): Likewise.
19492 (vreinterpretq_s32_u64): Likewise.
19493 (vreinterpretq_s32_p8): Likewise.
19494 (vreinterpretq_s32_p16): Likewise.
19495 (vreinterpret_u8_s8): Likewise.
19496 (vreinterpret_u8_s16): Likewise.
19497 (vreinterpret_u8_s32): Likewise.
19498 (vreinterpret_u8_s64): Likewise.
19499 (vreinterpret_u8_f32): Likewise.
19500 (vreinterpret_u8_u16): Likewise.
19501 (vreinterpret_u8_u32): Likewise.
19502 (vreinterpret_u8_u64): Likewise.
19503 (vreinterpret_u8_p8): Likewise.
19504 (vreinterpret_u8_p16): Likewise.
19505 (vreinterpretq_u8_s8): Likewise.
19506 (vreinterpretq_u8_s16): Likewise.
19507 (vreinterpretq_u8_s32): Likewise.
19508 (vreinterpretq_u8_s64): Likewise.
19509 (vreinterpretq_u8_f32): Likewise.
19510 (vreinterpretq_u8_u16): Likewise.
19511 (vreinterpretq_u8_u32): Likewise.
19512 (vreinterpretq_u8_u64): Likewise.
19513 (vreinterpretq_u8_p8): Likewise.
19514 (vreinterpretq_u8_p16): Likewise.
19515 (vreinterpret_u16_s8): Likewise.
19516 (vreinterpret_u16_s16): Likewise.
19517 (vreinterpret_u16_s32): Likewise.
19518 (vreinterpret_u16_s64): Likewise.
19519 (vreinterpret_u16_f32): Likewise.
19520 (vreinterpret_u16_u8): Likewise.
19521 (vreinterpret_u16_u32): Likewise.
19522 (vreinterpret_u16_u64): Likewise.
19523 (vreinterpret_u16_p8): Likewise.
19524 (vreinterpret_u16_p16): Likewise.
19525 (vreinterpretq_u16_s8): Likewise.
19526 (vreinterpretq_u16_s16): Likewise.
19527 (vreinterpretq_u16_s32): Likewise.
19528 (vreinterpretq_u16_s64): Likewise.
19529 (vreinterpretq_u16_f32): Likewise.
19530 (vreinterpretq_u16_u8): Likewise.
19531 (vreinterpretq_u16_u32): Likewise.
19532 (vreinterpretq_u16_u64): Likewise.
19533 (vreinterpretq_u16_p8): Likewise.
19534 (vreinterpretq_u16_p16): Likewise.
19535 (vreinterpret_u32_s8): Likewise.
19536 (vreinterpret_u32_s16): Likewise.
19537 (vreinterpret_u32_s32): Likewise.
19538 (vreinterpret_u32_s64): Likewise.
19539 (vreinterpret_u32_f32): Likewise.
19540 (vreinterpret_u32_u8): Likewise.
19541 (vreinterpret_u32_u16): Likewise.
19542 (vreinterpret_u32_u64): Likewise.
19543 (vreinterpret_u32_p8): Likewise.
19544 (vreinterpret_u32_p16): Likewise.
19545 (vreinterpretq_u32_s8): Likewise.
19546 (vreinterpretq_u32_s16): Likewise.
19547 (vreinterpretq_u32_s32): Likewise.
19548 (vreinterpretq_u32_s64): Likewise.
19549 (vreinterpretq_u32_f32): Likewise.
19550 (vreinterpretq_u32_u8): Likewise.
19551 (vreinterpretq_u32_u16): Likewise.
19552 (vreinterpretq_u32_u64): Likewise.
19553 (vreinterpretq_u32_p8): Likewise.
19554 (vreinterpretq_u32_p16): Likewise.
19555
19556 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19557
19558 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19559 Pattern extended.
19560 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19561 (sqabs): Likewise.
19562 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19563 (vqnegd_s64): Likewise.
19564 (vqabs_s64): Likewise.
19565 (vqabsd_s64): Likewise.
19566
19567 2014-04-22 Richard Henderson <rth@redhat.com>
19568
19569 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19570 computation to the top of the loop.
19571
19572 2014-04-22 Renlin <renlin.li@arm.com>
19573 Jiong Wang <jiong.wang@arm.com>
19574
19575 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19576 * config/aarch64/aarch64.c (aarch64_layout_frame)
19577 (aarch64_initial_elimination_offset): Likewise.
19578
19579 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19580
19581 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19582 Fix indentation.
19583
19584 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19585
19586 * machmode.h (bitwise_mode_for_mode): Declare.
19587 * stor-layout.h (bitwise_type_for_mode): Likewise.
19588 * stor-layout.c (bitwise_mode_for_mode): New function.
19589 (bitwise_type_for_mode): Likewise.
19590 * builtins.c (fold_builtin_memory_op): Use it instead of
19591 int_mode_for_mode and build_nonstandard_integer_type.
19592
19593 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19594
19595 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19596 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19597 (*-*-solaris2*): Simplify.
19598 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19599 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19600 *-*-solaris2.9* handling.
19601
19602 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19603 as bug.
19604 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19605 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19606 handling, simplify.
19607 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19608 * configure: Regenerate.
19609
19610 * config/i386/sol2-9.h: Remove.
19611
19612 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19613 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19614 Remove Solaris 9 references.
19615
19616 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19617
19618 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19619 (floatuns<GPI:mode><GPF:mode>2): Remove.
19620 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19621 and floatuns conversions.
19622 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19623 and floatuns conversions.
19624 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19625 (w1,w2): New mode attributes for inequal width conversions.
19626
19627 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19628
19629 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19630 the output asm format.
19631
19632 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19633
19634 * config/aarch64/aarch64-simd.md
19635 (aarch64_cm<optab>di): Always split.
19636 (*aarch64_cm<optab>di): New.
19637 (aarch64_cmtstdi): Always split.
19638 (*aarch64_cmtstdi): New.
19639
19640 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19641
19642 PR tree-optimization/60823
19643 * omp-low.c (ipa_simd_modify_function_body): Go through
19644 all SSA_NAMEs and for those refering to vector arguments
19645 which are going to be replaced adjust SSA_NAME_VAR and,
19646 if it is a default definition, change it into a non-default
19647 definition assigned at the beginning of function from new_decl.
19648 (ipa_simd_modify_stmt_ops): Rewritten.
19649 * tree-dfa.c (set_ssa_default_def): When removing default def,
19650 check for NULL loc instead of NULL *loc.
19651
19652 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19653
19654 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19655 restrictions on core registers for DImode values in Thumb2.
19656
19657 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19658
19659 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19660 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19661
19662 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19663
19664 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19665 (*iordi_notzesidi_di): Likewise.
19666 (*iordi_notsesidi_di): Likewise.
19667
19668 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19669
19670 * config/arm/arm-protos.h (tune_params): New struct members.
19671 * config/arm/arm.c: Initialise tune_params per processor.
19672 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19673 for speed, based on new tune_params.
19674
19675 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19676
19677 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19678 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19679 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19680 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19681 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19682 (vrnda_f64): Likewise.
19683 (vrndi_f64): Likewise.
19684 (vrndm_f64): Likewise.
19685 (vrndn_f64): Likewise.
19686 (vrndp_f64): Likewise.
19687 (vrndx_f64): Likewise.
19688
19689 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19690
19691 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19692 GET_MODE_SIZE argument is enum machine_mode.
19693
19694 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19695
19696 PR target/60910
19697 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19698 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19699
19700 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19701
19702 PR middle-end/60281
19703 * asan.c (asan_emit_stack_protection): Force the base to align to
19704 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19705 appropriate bits if STRICT_ALIGNMENT.
19706 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19707 when asan is on.
19708 (expand_used_vars): Leave a space in the stack frame for alignment
19709 if STRICT_ALIGNMENT.
19710
19711 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19712
19713 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19714 than a gimple.
19715 (gimple_store_p): Likewise.
19716 (gimple_assign_load_p): Likewise.
19717 (gimple_assign_cast_p): Likewise.
19718 (gimple_clobber_p): Likewise.
19719
19720 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19721 rather than a gimple.
19722 (gimple_assign_cast_p): Likewise.
19723
19724 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19725
19726 PR target/60735
19727 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19728 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19729
19730 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19731 more debug information for E500 if -mdebug=reg.
19732
19733 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19734
19735 PR target/60909
19736 * config/i386/i386.c (ix86_expand_builtin)
19737 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19738 register for target RTX.
19739 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19740
19741 2014-04-18 Cong Hou <congh@google.com>
19742
19743 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19744 the widen-mult pattern by handling two operands with different sizes,
19745 and operands whose size is smaller than half of the result type.
19746
19747 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19748
19749 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19750 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19751 (do_estimate_edge_time): Compute it.
19752 * ipa-inline.c (want_inline_small_function_p): Bypass
19753 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19754
19755 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19756
19757 * ipa-inline.c (spec_rem): New static variable.
19758 (dump_overall_stats): New function.
19759 (dump_inline_stats): New function.
19760
19761 2014-04-18 Richard Henderson <rth@redhat.com>
19762
19763 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19764 to GET_MODE_SIZE, not a reg_class_t.
19765
19766 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19767
19768 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19769 (vsx_xxmrglw_<mode>): Likewise.
19770
19771 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19772
19773 PR target/60876
19774 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19775 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19776 (rs6000_init_hard_regno_mode_ok): Likewise.
19777
19778 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19779
19780 * ipa-inline.c (inline_small_functions): Account only non-cold
19781 functions.
19782 * doc/invoke.texi (inline-unit-growth): Update documentation.
19783
19784 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19785
19786 * config/rs6000/rs6000.md (addti3, subti3): New.
19787
19788 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19789
19790 PR target/60863
19791 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19792 comment. Check optimize_insn_for_size_p instead of
19793 optimize_insn_for_speed_p.
19794
19795 2014-04-17 Martin Jambor <mjambor@suse.cz>
19796
19797 * gimple-iterator.c (gsi_start_edge): New function.
19798 * gimple-iterator.h (gsi_start_edge): Declare.
19799 * tree-sra.c (single_non_eh_succ): New function.
19800 (disqualify_ops_if_throwing_stmt): Renamed to
19801 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19802 having one non-EH successor BB.
19803 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19804 generate loads into replacements.
19805 (sra_modify_assign): Likewise and and also use the simple path for
19806 such statements.
19807 (sra_modify_function_body): Commit statements on edges.
19808
19809 2014-04-17 Richard Biener <rguenther@suse.de>
19810
19811 PR middle-end/60849
19812 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19813 comparison results and add clarifying comment.
19814
19815 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19816
19817 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19818 (blank_mode): Initialize it.
19819 (emit_mode_size_inline, emit_mode_nunits_inline,
19820 emit_mode_inner_inline): New functions.
19821 (emit_insn_modes_h): Call them and surround their output with
19822 #if GCC_VERSION >= 4001 ... #endif.
19823 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19824 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19825 mode_* arrays if the argument is __builtin_constant_p.
19826 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19827 is enum machine_mode.
19828
19829 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19830
19831 * passes.c (opt_pass::execute): Adjust.
19832 (pass_manager::execute_pass_mode_switching): Likewise.
19833 (early_local_passes::execute): Likewise.
19834 (execute_one_pass): Pass cfun to the pass's execute method.
19835 * tree-pass.h (opt_pass::execute): Add function * argument.
19836 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19837 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19838 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19839 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19840 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19841 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19842 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19843 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19844 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19845 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19846 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19847 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19848 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19849 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19850 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19851 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19852 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19853 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19854 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19855 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19856 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19857 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19858 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19859 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19860 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19861 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19862 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19863 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19864 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19865 Adjust.
19866
19867 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19868
19869 * passes.c (opt_pass::gate): Take function * argument.
19870 (gate_all_early_local_passes): Merge into
19871 (early_local_passes::gate): this.
19872 (gate_all_early_optimizations): Merge into
19873 (all_early_optimizations::gate): this.
19874 (gate_all_optimizations): Mege into
19875 (all_optimizations::gate): this.
19876 (gate_all_optimizations_g): Merge into
19877 (all_optimizations_g::gate): this.
19878 (gate_rest_of_compilation): Mege into
19879 (rest_of_compilation::gate): this.
19880 (gate_postreload): Merge into
19881 (postreload::gate): this.
19882 (dump_one_pass): Pass cfun to the pass's gate method.
19883 (execute_ipa_summary_passes): Likewise.
19884 (execute_one_pass): Likewise.
19885 (ipa_write_summaries_2): Likewise.
19886 (ipa_write_optimization_summaries_1): Likewise.
19887 (ipa_read_summaries_1): Likewise.
19888 (ipa_read_optimization_summaries_1): Likewise.
19889 (execute_ipa_stmt_fixups): Likewise.
19890 * tree-pass.h (opt_pass::gate): Add function * argument.
19891 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19892 combine-stack-adj.c, combine.c, compare-elim.c,
19893 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19894 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19895 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19896 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19897 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19898 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19899 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19900 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19901 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19902 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19903 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19904 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19905 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19906 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19907 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19908 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19909 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19910 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19911 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19912 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19913 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19914 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19915 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19916 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19917 var-tracking.c, vtable-verify.c, web.c: Adjust.
19918
19919 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19920
19921 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19922 * configure: Regenerate.
19923
19924 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19925
19926 * passes.c (dump_one_pass): don't check pass->has_gate.
19927 (execute_ipa_summary_passes): Likewise.
19928 (execute_one_pass): Likewise.
19929 (ipa_write_summaries_2): Likewise.
19930 (ipa_write_optimization_summaries_1): Likewise.
19931 (ipa_read_optimization_summaries_1): Likewise.
19932 (execute_ipa_stmt_fixups): Likewise.
19933 * tree-pass.h (pass_data::has_gate): Remove.
19934 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19935 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19936 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19937 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19938 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19939 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19940 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19941 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19942 gimple-low.c, gimple-ssa-isolate-paths.c,
19943 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19944 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19945 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19946 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19947 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19948 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19949 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19950 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19951 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19952 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19953 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19954 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19955 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19956 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19957 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19958 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19959 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19960 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19961 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19962 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19963 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19964 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19965 Adjust.
19966
19967 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19968
19969 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19970 declaration.
19971 * passes.c (pass_manager::register_dump_files_1): Merge into
19972 (pass_manager::register_dump_files): this, and remove its handling of
19973 properties since the pass always has the properties anyway.
19974 (pass_manager::pass_manager): Adjust.
19975
19976 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19977
19978 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19979 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19980 dealing with properties.
19981 (pass_manager::register_dump_files): Adjust.
19982
19983 2014-03-20 Mark Wielaard <mjw@redhat.com>
19984
19985 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19986 then represent the bound as normal constant value.
19987
19988 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19989
19990 PR target/60847
19991 Forward port from 4.8 branch
19992 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19993
19994 * config/i386/bmiintrin.h (_blsi_u32): New.
19995 (_blsi_u64): Ditto.
19996 (_blsr_u32): Ditto.
19997 (_blsr_u64): Ditto.
19998 (_blsmsk_u32): Ditto.
19999 (_blsmsk_u64): Ditto.
20000 (_tzcnt_u32): Ditto.
20001 (_tzcnt_u64): Ditto.
20002
20003 2014-04-17 Kito Cheng <kito@0xlab.org>
20004
20005 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20006
20007 2014-04-17 Richard Biener <rguenther@suse.de>
20008
20009 PR middle-end/60849
20010 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20011 boolean results for comparisons.
20012
20013 2014-04-17 Richard Biener <rguenther@suse.de>
20014
20015 PR tree-optimization/60836
20016 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20017 initial PHI args to be gimple values.
20018
20019 2014-04-17 Richard Biener <rguenther@suse.de>
20020
20021 PR tree-optimization/60841
20022 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20023 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20024 of stmts to SLP build.
20025 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20026 (vect_analyze_slp): Likewise.
20027 (vect_analyze_slp_instance): Likewise.
20028 (vect_build_slp_tree): Limit overall SLP tree growth.
20029 * tree-vectorizer.h (vect_analyze_data_refs,
20030 vect_analyze_slp): Adjust prototypes.
20031
20032 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20033
20034 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20035 Silvermont.
20036
20037 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20038
20039 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20040 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20041 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20042 for TARGET_SLOW_PSHUFB
20043
20044 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20045
20046 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20047 * config/i386/i386.c (intel_cost): Ditto.
20048
20049 2014-04-17 Joey Ye <joey.ye@arm.com>
20050
20051 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20052
20053 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20054
20055 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20056 with -fuse-profile.
20057
20058 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20059
20060 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20061 (type_all_derivations_known_p): New predicate.
20062 (type_all_ctors_visible_p): New predicate.
20063 (type_possibly_instantiated_p): New predicate.
20064 (get_odr_type): Compute all_derivations_known.
20065 (dump_odr_type): Dump the flag.
20066 (maybe_record_type): Cleanup.
20067 (record_target_from_binfo): Add bases_to_consider array;
20068 record bases for types w/o instances and skip CXX destructor.
20069 (possible_polymorphic_call_targets_1): Add bases_to_consider
20070 and consider_construction parameters; check if type may have instance.
20071 (get_polymorphic_call_info): Set maybe_in_construction to true
20072 when we know nothing.
20073 (record_targets_from_bases): Skip CXX destructors; they are
20074 never called for types in construction.
20075 (possible_polymorphic_call_targets): Do not record target when
20076 type may not have instance.
20077
20078 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20079
20080 PR ipa/60854
20081 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20082 external aliases alive, too.
20083
20084 2014-04-16 Andrew Pinski <apinski@cavium.com>
20085
20086 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20087 definition.
20088
20089 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20090
20091 * final.c (compute_alignments): Do not apply loop alignment to a block
20092 falling through to the exit.
20093
20094 2014-04-16 Catherine Moore <clm@codesourcery.com>
20095
20096 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20097 Adjust constraints for microMIPS store patterns.
20098
20099 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20100
20101 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20102
20103 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20104
20105 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20106 (append_use): Run at -O0.
20107 (append_vdef): Likewise.
20108 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20109 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20110
20111 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20112
20113 PR tree-optimization/60844
20114 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20115 (propagate_op_to_single_use, remove_visited_stmt_chain,
20116 linearize_expr, repropagate_negates, reassociate_bb): Use it
20117 instead of gsi_remove.
20118
20119 2014-04-16 Martin Jambor <mjambor@suse.cz>
20120
20121 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20122 ipa_transforms_to_apply.
20123 (cgraph_function_versioning): Assert that old_node has empty
20124 ipa_transforms_to_apply.
20125 * trans-mem.c (ipa_tm_create_version): Likewise.
20126 * tree-inline.c (tree_function_versioning): Do not duplicate
20127 ipa_transforms_to_apply.
20128
20129 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20130
20131 PR target/60817
20132 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20133 x86_64-*-* cases.
20134 Pass necessary as flags on 64-bit Solaris/x86.
20135 Use lowercase relocs for x86_64-*-*.
20136 * configure: Regenerate.
20137
20138 2014-04-15 Jan Hubicka <jh@suse.cz>
20139
20140 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20141 (maybe_record_node, likely_target_p): Use it.
20142
20143 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20144
20145 PR target/60839
20146 Revert following patch
20147
20148 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20149
20150 PR target/60735
20151 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20152 software floating point or no floating point registers, do not
20153 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20154 in GPRs that occurs after we tested for GPRs that would never be
20155 true.
20156
20157 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20158 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20159 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20160 specifically allow DDmode, since that does not use the SPE SIMD
20161 instructions.
20162
20163 2014-03-21 Mark Wielaard <mjw@redhat.com>
20164
20165 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20166 as unsigned or int depending on type and value used.
20167
20168 2014-04-15 Richard Biener <rguenther@suse.de>
20169
20170 PR rtl-optimization/56965
20171 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20172 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20173 ... here.
20174 * alias.c (true_dependence_1): Do not call
20175 nonoverlapping_component_refs_p.
20176 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20177 nonoverlapping_component_refs_p.
20178 (indirect_refs_may_alias_p): Likewise.
20179
20180 2014-04-15 Teresa Johnson <tejohnson@google.com>
20181
20182 * cfg.c (dump_bb_info): Fix flags check.
20183 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20184
20185 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20186
20187 PR rtl-optimization/60663
20188 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20189 avoid 0 cost.
20190
20191 2014-04-15 Richard Biener <rguenther@suse.de>
20192
20193 * lto-streamer.h (LTO_major_version): Bump to 4.
20194
20195 2014-04-15 Richard Biener <rguenther@suse.de>
20196
20197 * common.opt (lto_partition_model): New enum.
20198 (flto-partition=): Merge separate options with a single with argument,
20199 add -flto-partition=one support.
20200 * flag-types.h (enum lto_partition_model): Declare.
20201 * opts.c (finish_options): Remove duplicate -flto-partition=
20202 option check.
20203 * lto-wrapper.c (run_gcc): Adjust.
20204
20205 2014-04-15 Richard Biener <rguenther@suse.de>
20206
20207 * alias.c (ncr_compar): New function.
20208 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20209
20210 2014-04-15 Richard Biener <rguenther@suse.de>
20211
20212 * alias.c (record_component_aliases): Do not walk BINFOs.
20213
20214 2014-04-15 Richard Biener <rguenther@suse.de>
20215
20216 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20217 Add struct function argument and adjust.
20218 (find_func_aliases_for_call): Likewise.
20219 (find_func_aliases): Likewise.
20220 (find_func_clobbers): Likewise.
20221 (intra_create_variable_infos): Likewise.
20222 (compute_points_to_sets): Likewise.
20223 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20224
20225 2014-04-15 Richard Biener <rguenther@suse.de>
20226
20227 * tree.c (iterative_hash_expr): Use enum tree_code_class
20228 to store TREE_CODE_CLASS.
20229 (tree_block): Likewise.
20230 (tree_set_block): Likewise.
20231 * tree.h (fold_build_pointer_plus_loc): Use
20232 convert_to_ptrofftype_loc.
20233
20234 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20235
20236 PR plugins/59335
20237 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20238 added in 4.9.
20239
20240 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20241
20242 * cfgloop.h (struct loop): Move force_vectorize down.
20243 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20244 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20245 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20246 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20247 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20248 * tree-core.h (enum annot_expr_kind): Add new kind values.
20249 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20250 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20251 kinds.
20252 * tree.def (ANNOTATE_EXPR): Tweak comment.
20253
20254 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20255
20256 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20257 cxa_pure_virtual).
20258
20259 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20260
20261 * tree.h (TYPE_IDENTIFIER): Declare.
20262 * tree.c (subrange_type_for_debug_p): Use it.
20263 * godump.c (go_format_type): Likewise.
20264 * dwarf2out.c (is_cxx_auto, modified_type_die,
20265 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20266 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20267
20268 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20269
20270 PR lto/60820
20271 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20272
20273 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20274
20275 * config/i386/i386.c (examine_argument): Return bool. Return true if
20276 parameter should be passed in memory.
20277 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20278 (construct_container): Update calls to examine_argument.
20279 (function_arg_advance_64): Ditto.
20280 (return_in_memory_32): Merge with ix86_return_in_memory.
20281 (return_in_memory_64): Ditto.
20282 (return_in_memory_ms_64): Ditto.
20283
20284 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20285
20286 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20287 * coverage.c (coverage_compute_profile_id): Handle externally visible
20288 symbols.
20289
20290 2014-04-14 Martin Jambor <mjambor@suse.cz>
20291
20292 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20293 DECL_DISREGARD_INLINE_LIMITS functions.
20294
20295 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20296
20297 PR target/60827
20298 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20299
20300 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20301
20302 PR target/60827
20303 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20304 optimize_insn_for_speed_p instead of
20305 optimize_function_for_speed_p.
20306
20307 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20308
20309 * doc/invoke.texi (free): Document AArch64.
20310
20311 2014-04-14 Richard Biener <rguenther@suse.de>
20312
20313 PR tree-optimization/60042
20314 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20315 (insert_into_preds_of_block): Do not prevent PHI insertion
20316 for REFERENCE exprs here ...
20317 (eliminate_dom_walker::before_dom_children): ... but prevent
20318 their use here under similar conditions when applied to the
20319 IL after PRE optimizations.
20320
20321 2014-04-14 Richard Biener <rguenther@suse.de>
20322
20323 * passes.def: Move early points-to after early SRA.
20324
20325 2014-04-14 Richard Biener <rguenther@suse.de>
20326
20327 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20328 check for which sign-changes we allow when forwarding
20329 a converted value into a switch.
20330
20331 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20332
20333 * stor-layout.c (place_field): Finalize non-constant offset for the
20334 field, if any.
20335
20336 2014-04-14 Richard Biener <rguenther@suse.de>
20337
20338 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20339 as argument.
20340 (expand_switch_using_bit_tests_p): Likewise.
20341 (process_switch): Compute and pass on speed_p based on the
20342 switch stmt.
20343 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20344 optimize_bb_for_speed_p.
20345
20346 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20347
20348 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20349 * function.h (struct function): Rename has_force_vect_loops into
20350 has_force_vectorize_loops.
20351 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20352 (input_struct_function_base): Likewise.
20353 * lto-streamer-out.c (output_cfg): Likewise.
20354 (output_struct_function_base): Likewise.
20355 * omp-low.c (expand_omp_simd): Likewise.
20356 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20357 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20358 (version_loop_for_if_conversion): Likewise.
20359 (tree_if_conversion): Likewise.
20360 (main_tree_if_conversion): Likewise.
20361 (gate_tree_if_conversion): Likewise.
20362 * tree-inline.c (copy_loops): Likewise.
20363 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20364 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20365 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20366 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20367 * tree-vectorizer.c (vectorize_loops): Likewise.
20368 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20369
20370 2014-04-14 Richard Biener <rguenther@suse.de>
20371
20372 PR lto/60720
20373 * lto-streamer-out.c (wrap_refs): New function.
20374 (lto_output): Wrap symbol references in global initializes in
20375 type-preserving MEM_REFs.
20376
20377 2014-04-14 Christian Bruel <christian.bruel@st.com>
20378
20379 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20380
20381 2014-04-14 Christian Bruel <christian.bruel@st.com>
20382
20383 * config/sh/sh.md (setmemqi): New expand pattern.
20384 * config/sh/sh.h (CLEAR_RATIO): Define.
20385 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20386 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20387
20388 2014-04-14 Richard Biener <rguenther@suse.de>
20389
20390 PR middle-end/55022
20391 * fold-const.c (negate_expr_p): Don't negate directional rounding
20392 division.
20393 (fold_negate_expr): Likewise.
20394
20395 2014-04-14 Richard Biener <rguenther@suse.de>
20396
20397 PR tree-optimization/59817
20398 PR tree-optimization/60453
20399 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20400 recursion to catch all CHRECs in the scalar evolution and restrict
20401 the predicate for the remains appropriately.
20402
20403 2014-04-12 Catherine Moore <clm@codesourcery.com>
20404
20405 * config/mips/constraints.md: Add new register constraint "kb".
20406 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20407 (*movhi_internal): Likewise.
20408 (*movqi_internal): Likewise.
20409 * config/mips/mips.h (M16_STORE_REGS): New register class.
20410 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20411 (REG_CLASS_CONTENTS): Likewise.
20412 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20413
20414 2014-04-11 Tobias Burnus <burnus@net-b.de>
20415
20416 PR c/60194
20417 * doc/invoke.texi (-Wformat-signedness): Document it.
20418 (Wformat=2): Mention that this enables -Wformat-signedness.
20419
20420 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20421
20422 * common/config/epiphany/epiphany-common.c
20423 (epiphany_option_optimization_table): Enable section anchors by
20424 default at -O1 or higher.
20425 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20426 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20427 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20428 carries no extra cost.
20429 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20430 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20431 * config/epiphany/predicates.md (memclob_operand): New predicate.
20432 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20433 Use memclob_operand predicate and X constraint for operand 3.
20434
20435 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20436
20437 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20438 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20439 its operands.
20440
20441 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20442
20443 PR rtl-optimization/60651
20444 * mode-switching.c (optimize_mode_switching): Make sure to emit
20445 sets of a lower numbered entity before sets of a higher numbered
20446 entity to a mode of the same or lower priority.
20447 When creating a seginfo for a basic block that starts with a code
20448 label, move the insertion point past the code label.
20449 (new_seginfo): Document and enforce requirement that
20450 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20451 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20452 * doc/tm.texi: Regenerate.
20453
20454 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20455
20456 PR target/60811
20457 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20458
20459 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20460
20461 * BASE-VER: Set to 4.10.0.
20462
20463 2014-04-11 Tobias Burnus <burnus@net-b.de>
20464
20465 PR other/59055
20466 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20467 * doc/gcc.texi (Service): Update description in the @menu
20468 * doc/invoke.texi (Option Summary): Remove misplaced and
20469 duplicated @menu.
20470
20471 2014-04-11 Steve Ellcey <sellcey@mips.com>
20472 Jakub Jelinek <jakub@redhat.com>
20473
20474 PR middle-end/60556
20475 * expr.c (convert_move): Use emit_store_flag_force instead of
20476 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20477 argument to it.
20478
20479 2014-04-11 Richard Biener <rguenther@suse.de>
20480
20481 PR middle-end/60797
20482 * varasm.c (assemble_alias): Avoid endless error reporting
20483 recursion by setting TREE_ASM_WRITTEN.
20484
20485 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20486
20487 * config/s390/s390.md: Add a splitter for NOT rtx.
20488
20489 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20490
20491 PR rtl-optimization/60663
20492 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20493
20494 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20495 Jakub Jelinek <jakub@redhat.com>
20496
20497 PR lto/60567
20498 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20499 flag from decl_node to node.
20500
20501 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20502
20503 PR debug/60655
20504 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20505 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20506 ameliorating the cases where it can be.
20507
20508 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20509
20510 Revert
20511 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20512
20513 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20514 (loadsync_<mode>): Change mode.
20515 (load_quadpti, store_quadpti): New.
20516 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20517 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20518 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20519
20520 2014-04-09 Cong Hou <congh@google.com>
20521
20522 PR testsuite/60773
20523 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20524 documentation.
20525
20526 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20527
20528 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20529 instead of vnor to exploit possible fusion opportunity in the
20530 future.
20531 (altivec_expand_vec_perm_const_le): Likewise.
20532
20533 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20534
20535 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20536 (loadsync_<mode>): Change mode.
20537 (load_quadpti, store_quadpti): New.
20538 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20539 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20540
20541 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20542
20543 PR target/60763
20544 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20545 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20546 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20547
20548 2014-04-08 Richard Biener <rguenther@suse.de>
20549
20550 PR middle-end/60706
20551 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20552 a 64bit widest int print double-int similar to on HWI64 hosts.
20553
20554 2014-04-08 Richard Biener <rguenther@suse.de>
20555
20556 PR tree-optimization/60785
20557 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20558 default defs properly.
20559
20560 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20561
20562 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20563 (Weffc++): Likewise.
20564
20565 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20566
20567 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20568 set completep to false rather than true.
20569
20570 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20571
20572 PR target/60504
20573 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20574 ARM_TARGET2_DWARF_FORMAT.
20575
20576 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20577
20578 PR target/60609
20579 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20580 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20581 ADDR_DIFF_VEC.
20582
20583 2014-04-07 Richard Biener <rguenther@suse.de>
20584
20585 PR tree-optimization/60766
20586 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20587 (may_eliminate_iv): Convert cand_value_at result to desired type.
20588
20589 2014-04-07 Jason Merrill <jason@redhat.com>
20590
20591 PR c++/60731
20592 * common.opt (-fno-gnu-unique): Add.
20593 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20594
20595 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20596
20597 * haifa-sched.c: Fix outdated function reference and minor
20598 grammar errors in introductory comment.
20599
20600 2014-04-07 Richard Biener <rguenther@suse.de>
20601
20602 PR middle-end/60750
20603 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20604 for noreturn calls.
20605 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20606
20607 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20608
20609 PR debug/55794
20610 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20611 size accounting for thunks.
20612 (pa_asm_output_mi_thunk): Use final_start_function() and
20613 final_end_function() to output function start and end directives.
20614
20615 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20616
20617 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20618 device specific ISA/ feature information. Remove short_sp and
20619 errata_skip ds. Add avr_device_specific_features enum to have device
20620 specific info.
20621 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20622 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20623 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20624 updated device specific info.
20625 * config/avr/avr-mcus.def: Merge device specific details to
20626 dev_attribute field.
20627 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20628 errata_skip.
20629 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20630 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20631 assembler if RMW isa supported by current device.
20632 * config/avr/genmultilib.awk: Update as device info structure changed.
20633 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20634
20635 2014-04-04 Cong Hou <congh@google.com>
20636
20637 PR tree-optimization/60656
20638 * tree-vect-stmts.c (supportable_widening_operation):
20639 Fix a bug that elements in a vector with vect_used_by_reduction
20640 property are incorrectly reordered when the operation on it is not
20641 consistant with the one in reduction operation.
20642
20643 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20644
20645 PR rtl-optimization/60155
20646 * gcse.c (record_set_data): New function.
20647 (single_set_gcse): New function.
20648 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20649 (hoist_code): Likewise.
20650 (get_pressure_class_and_nregs): Likewise.
20651
20652 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20653
20654 * explow.c (probe_stack_range): Emit a final optimization blockage.
20655
20656 2014-04-04 Anthony Green <green@moxielogic.com>
20657
20658 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20659 typos.
20660
20661 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20662
20663 PR ipa/59626
20664 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20665 flags are set only during streaming.
20666 * ipa.c (process_references, walk_polymorphic_call_targets,
20667 symtab_remove_unreachable_nodes): Drop bodies of always inline
20668 after early inlining.
20669 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20670
20671 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20672 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20673
20674 PR debug/60655
20675 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20676 containing a NOT.
20677
20678 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20679
20680 PR bootstrap/60743
20681 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20682 duration.
20683 (cortex_a53_fdivd): Likewise.
20684
20685 2014-04-04 Martin Jambor <mjambor@suse.cz>
20686
20687 PR ipa/60640
20688 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20689 Adjust all callers.
20690 * cgraph.c (clone_of_p): Also return true if thunks match.
20691 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20692 cgraph_function_or_thunk_node and an obsolete comment.
20693 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20694 file.
20695 (build_function_decl_skip_args): Likewise.
20696 (set_new_clone_decl_and_node_flags): New function.
20697 (duplicate_thunk_for_node): Likewise.
20698 (redirect_edge_duplicating_thunks): Likewise.
20699 (cgraph_clone_node): New parameter args_to_skip, pass it to
20700 redirect_edge_duplicating_thunks which is called instead of
20701 cgraph_redirect_edge_callee.
20702 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20703 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20704
20705 2014-04-04 Jeff Law <law@redhat.com>
20706
20707 PR target/60657
20708 * config/arm/predicates.md (const_int_I_operand): New predicate.
20709 (const_int_M_operand): Similarly.
20710 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20711 const_int_operand.
20712 (insv_t2, extv_reg, extzv_t2): Likewise.
20713 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20714 (pop_multiple_with_writeback_and_return): Likewise.
20715 (vfp_pop_multiple_with_writeback): Likewise
20716
20717 2014-04-04 Richard Biener <rguenther@suse.de>
20718
20719 PR ipa/60746
20720 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20721 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20722 non-GIMPLE_LABELs.
20723 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20724 * gimplify.c (gimple_add_tmp_var_fn): New function.
20725 * gimple-expr.h (create_tmp_reg_fn): Declare.
20726 * gimple-expr.c (create_tmp_reg_fn): New function.
20727 * gimple-low.c (record_vars_into): Don't change cfun.
20728 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20729 code generation without cfun.
20730
20731 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20732
20733 PR bootstrap/60719
20734 * Makefile.in (install-driver): Fix shell scripting.
20735
20736 2014-04-03 Cong Hou <congh@google.com>
20737
20738 PR tree-optimization/60505
20739 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20740 threshold of number of iterations below which no vectorization
20741 will be done.
20742 * tree-vect-loop.c (new_loop_vec_info):
20743 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20744 * tree-vect-loop.c (vect_analyze_loop_operations):
20745 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20746 * tree-vect-loop.c (vect_transform_loop):
20747 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20748 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20749 of iterations of the loop and see if we should build the epilogue.
20750
20751 2014-04-03 Richard Biener <rguenther@suse.de>
20752
20753 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20754 (streamer_tree_cache_create): Adjust.
20755 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20756 to allow optional nodes array.
20757 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20758 (streamer_tree_cache_append): Likewise.
20759 (streamer_tree_cache_create): Create nodes array optionally
20760 as specified by parameter.
20761 * lto-streamer-out.c (create_output_block): Avoid maintaining
20762 the node array in the writer cache.
20763 (DFS_write_tree): Remove assertion.
20764 (produce_asm_for_decls): Free the out decl state hash table early.
20765 * lto-streamer-in.c (lto_data_in_create): Adjust for
20766 streamer_tree_cache_create prototype change.
20767
20768 2014-04-03 Richard Biener <rguenther@suse.de>
20769
20770 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20771 set TREE_CHAIN to NULL_TREE.
20772
20773 2014-04-03 Richard Biener <rguenther@suse.de>
20774
20775 PR tree-optimization/60740
20776 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20777 over all GIMPLE_COND operands.
20778
20779 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20780
20781 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20782 (Weffc++): Remove Scott's numbering, merge lists and reference
20783 Wnon-virtual-dtor.
20784
20785 2014-04-03 Nick Clifton <nickc@redhat.com>
20786
20787 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20788 properly.
20789
20790 2014-04-03 Martin Jambor <mjambor@suse.cz>
20791
20792 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20793 mention gcc_unreachable before failing.
20794 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20795 removed symbols.
20796
20797 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20798
20799 PR ipa/60659
20800 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20801 inconsistent code and instead mark the context inconsistent.
20802 (possible_polymorphic_call_targets): For inconsistent contexts
20803 return empty complete list.
20804
20805 2014-04-02 Anthony Green <green@moxielogic.com>
20806
20807 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20808 (extendqisi2, extendhisi2): Define.
20809 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20810 (WCHAR_TYPE): Change to unsigned int.
20811
20812 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20813
20814 PR tree-optimization/60733
20815 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20816 insertion point for PHI candidates to be the end of the feeding
20817 block for the PHI argument.
20818
20819 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20820
20821 PR rtl-optimization/60650
20822 * lra-constraints.c (process_alt_operands): Decrease reject for
20823 earlyclobber matching.
20824
20825 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20826
20827 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20828
20829 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20830
20831 * config/spu/spu.c (pad_bb): Do not crash when the last
20832 insn is CODE_FOR_blockage.
20833
20834 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20835
20836 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20837 lies outside the target mode.
20838
20839 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20840
20841 PR target/60735
20842 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20843 software floating point or no floating point registers, do not
20844 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20845 in GPRs that occurs after we tested for GPRs that would never be
20846 true.
20847
20848 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20849 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20850 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20851 specifically allow DDmode, since that does not use the SPE SIMD
20852 instructions.
20853
20854 2014-04-02 Richard Biener <rguenther@suse.de>
20855
20856 PR middle-end/60729
20857 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20858 MODE_INTs. Properly use negv_optab.
20859 (expand_abs): Likewise.
20860
20861 2014-04-02 Richard Biener <rguenther@suse.de>
20862
20863 PR bootstrap/60719
20864 * Makefile.in (install-driver): Guard extra installs with special
20865 names properly.
20866
20867 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20868
20869 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20870 Document vec_vgbbd.
20871
20872 2014-04-01 Richard Henderson <rth@redhat.com>
20873
20874 PR target/60704
20875 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20876 alternative enabled before register allocation.
20877
20878 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20879
20880 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20881 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20882 typo.
20883 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20884 (nios2_got_address): Update nios2_large_got_address call site.
20885 (nios2_delegitimize_address): New function.
20886 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20887 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20888 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20889
20890 2014-04-01 Martin Husemann <martin@duskware.de>
20891
20892 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20893 for -mabi=32.
20894
20895 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20896
20897 PR rtl-optimization/60604
20898 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20899 check from register_operand.
20900 (register_operand): Redefine in terms of general_operand.
20901 (nonmemory_operand): Use register_operand for the non-constant cases.
20902
20903 2014-04-01 Richard Biener <rguenther@suse.de>
20904
20905 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20906
20907 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20908
20909 * doc/invoke.texi (mapp-regs): Clarify.
20910
20911 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20912
20913 * config/i386/avx512fintrin.h (__v32hi): Define type.
20914 (__v64qi): Likewise.
20915 (_mm512_set1_epi8): Define.
20916 (_mm512_set1_epi16): Define.
20917 (_mm512_set4_epi32): Define.
20918 (_mm512_set4_epi64): Define.
20919 (_mm512_set4_pd): Define.
20920 (_mm512_set4_ps): Define.
20921 (_mm512_setr4_epi64): Define.
20922 (_mm512_setr4_epi32): Define.
20923 (_mm512_setr4_pd): Define.
20924 (_mm512_setr4_ps): Define.
20925 (_mm512_setzero_epi32): Define.
20926
20927 2014-03-31 Martin Jambor <mjambor@suse.cz>
20928
20929 PR middle-end/60647
20930 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20931 callsite_arguments_match_p. Updated all callers. Also check types of
20932 corresponding formal parameters and actual arguments.
20933 (not_all_callers_have_enough_arguments_p) Renamed to
20934 some_callers_have_mismatched_arguments_p.
20935
20936 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20937
20938 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20939
20940 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20941
20942 PR target/60034
20943 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20944 section anchor.
20945
20946 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20947
20948 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20949 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20950 Split out
20951 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20952 Use FMAMODE_NOVF512 mode iterator.
20953 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20954 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20955 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20956 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20957 Split out
20958 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20959 Use VF_128_256 mode iterator.
20960 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20961 Ditto.
20962
20963 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20964
20965 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20966 static chain if needed.
20967
20968 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20969
20970 PR target/60697
20971 * lra-constraints.c (index_part_to_reg): New.
20972 (process_address): Use it.
20973
20974 2014-03-27 Jeff Law <law@redhat.com>
20975 Jakub Jelinek <jakub@redhat.com>
20976
20977 PR target/60648
20978 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20979 gen_rtx_{PLUS,MULT} to build up the address expression.
20980
20981 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20982 creating non-canonical RTL.
20983
20984 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20985
20986 PR ipa/60243
20987 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20988 functions; reorganize to make cheap checks first.
20989 (inline_small_functions): Do not estimate growth when dumping;
20990 it is expensive.
20991 * ipa-inline.h (inline_summary): Add min_size.
20992 (growth_likely_positive): New function.
20993 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20994 (set_cond_stmt_execution_predicate): Cleanup.
20995 (estimate_edge_size_and_time): Compute min_size.
20996 (estimate_calls_size_and_time): Likewise.
20997 (estimate_node_size_and_time): Likewise.
20998 (inline_update_overall_summary): Update min_size.
20999 (do_estimate_edge_time): Likewise.
21000 (do_estimate_edge_size): Update.
21001 (do_estimate_edge_hints): Update.
21002 (growth_likely_positive): New function.
21003
21004 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21005
21006 PR target/60693
21007 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21008 also if addr has VOIDmode.
21009
21010 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21011
21012 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21013 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21014 Declare extern.
21015 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21016 instructions as well as AdvancedSIMD loads.
21017
21018 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21019
21020 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21021 Use crypto_aese type.
21022 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21023 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21024 crypto_aese, crypto_aesmc. Move to types.md.
21025 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21026 crypto_aesmc.
21027 * config/arm/iterators.md (crypto_type): Likewise.
21028
21029 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21030
21031 * cgraph.c: Include expr.h and tree-dfa.h.
21032 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21033 remove LHS.
21034
21035 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21036
21037 PR target/60675
21038 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21039 regs from checking multi-reg pseudos.
21040
21041 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21042
21043 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21044
21045 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21046
21047 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21048 if it would clobber the stack pointer, even temporarily.
21049
21050 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21051
21052 * mode-switching.c: Make small adjustments to the top comment.
21053
21054 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21055
21056 * config/rs6000/constraints.md (wD constraint): New constraint to
21057 match the constant integer to get the top DImode/DFmode out of a
21058 vector in a VSX register.
21059
21060 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21061 match the constant integer to get the top DImode/DFmode out of a
21062 vector in a VSX register.
21063
21064 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21065 for ISA 2.07.
21066
21067 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21068 vbpermq builtins.
21069
21070 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21071 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21072
21073 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21074 Optimize vec_extract of 64-bit values, where the value being
21075 extracted is in the top word, where we can use scalar
21076 instructions. Add direct move and store support. Combine the big
21077 endian/little endian vector select load support into a single insn.
21078 (vsx_extract_<mode>_internal1): Likewise.
21079 (vsx_extract_<mode>_internal2): Likewise.
21080 (vsx_extract_<mode>_load): Likewise.
21081 (vsx_extract_<mode>_store): Likewise.
21082 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21083 combined into vsx_extract_<mode>_load.
21084 (vsx_extract_<mode>_one_le): Likewise.
21085
21086 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21087 define the top 64-bit vector element.
21088
21089 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21090 constraint.
21091
21092 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21093 Document vec_vbpermq builtin.
21094
21095 PR target/60672
21096 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21097 enable use of xxsldwi and xxpermdi builtin functions.
21098 (vec_xxpermdi): Likewise.
21099
21100 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21101 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21102
21103 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21104
21105 PR rtl-optimization/60650
21106 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21107 first_p. Use it.
21108 (find_spills_for): New.
21109 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21110 Spill all pseudos on the second iteration.
21111
21112 2014-03-27 Marek Polacek <polacek@redhat.com>
21113
21114 PR c/50347
21115 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21116 types.
21117
21118 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21119
21120 * config/s390/s390.c (s390_can_use_return_insn): Check for
21121 call-saved FPRs on 31 bit.
21122
21123 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21124
21125 PR middle-end/60682
21126 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21127 if they need regimplification, just drop them instead of
21128 calling gimple_regimplify_operands on them.
21129
21130 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21131
21132 PR target/60580
21133 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21134 (aarch64_frame_pointer_required): Adjust logic.
21135 (aarch64_can_eliminate): Adjust logic.
21136 (aarch64_override_options_after_change): Adjust logic.
21137
21138 2014-03-27 Dehao Chen <dehao@google.com>
21139
21140 * ipa-inline.c (early_inliner): Update node's inline info.
21141
21142 2014-03-26 Dehao Chen <dehao@google.com>
21143
21144 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21145 compiler inserted conditional jumps for NAN float check.
21146
21147 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21148
21149 * ubsan.h (ubsan_create_data): Change second argument's type
21150 to const location_t *.
21151 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21152 _("<unknown>").
21153 (ubsan_create_data): Change second argument to const location_t *PLOC.
21154 Create Loc field whenever PLOC is non-NULL.
21155 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21156 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21157 callers.
21158
21159 PR other/59545
21160 * real.c (real_to_integer2): Change type of low to UHWI.
21161
21162 2014-03-26 Tobias Burnus <burnus@net-b.de>
21163
21164 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21165 (CILK_SELF_SPECS): New define.
21166 (driver_self_specs): Use it.
21167
21168 2014-03-26 Richard Biener <rguenther@suse.de>
21169
21170 * tree-pretty-print.c (percent_K_format): Implement special
21171 case for LTO and its stripped down BLOCK tree.
21172
21173 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21174
21175 PR sanitizer/60636
21176 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21177
21178 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21179 one range is range_int_cst_p, but not both, at least optimize
21180 addition/subtraction of 0 and multiplication by 0 or 1.
21181 * gimple-fold.c (gimple_fold_call): Fold
21182 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21183 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21184 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21185
21186 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21187
21188 PR rtl-optimization/60452
21189 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21190 <case REG>: Return 1 for invalid offsets from the frame pointer.
21191
21192 2014-03-26 Marek Polacek <polacek@redhat.com>
21193
21194 PR c/37428
21195 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21196 a structure/union.
21197
21198 2014-03-26 Marek Polacek <polacek@redhat.com>
21199
21200 PR c/39525
21201 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21202 field members.
21203
21204 2014-03-26 Marek Polacek <polacek@redhat.com>
21205
21206 PR other/59545
21207 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21208 multiplication in unsigned type.
21209
21210 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21211
21212 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21213
21214 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21215
21216 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21217
21218 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21219
21220 PR ipa/60315
21221 * cif-code.def (UNREACHABLE) New code.
21222 * ipa-inline.c (inline_small_functions): Skip edges to
21223 __builtlin_unreachable.
21224 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21225 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21226 predicate to __bulitin_unreachable.
21227 (set_cond_stmt_execution_predicate): Fix issue when
21228 invert_tree_comparison returns ERROR_MARK.
21229 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21230 propagate to inline clones.
21231 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21232 to unreachable.
21233 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21234 * cgraphclones.c (cgraph_clone_node): If call destination is already
21235 ureachable, do not redirect it back.
21236 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21237 unreachable.
21238
21239 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21240
21241 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21242 Do not modify inline clones.
21243
21244 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21245
21246 * config/i386/i386.md (general_sext_operand): New mode attr.
21247 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21248 don't generate (sign_extend (const_int)).
21249 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21250 operands[2]. Use We constraint instead of <i> and
21251 <general_sext_operand> predicate instead of <general_operand>.
21252 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21253 * config/i386/constraints.md (We): New constraint.
21254 * config/i386/predicates.md (x86_64_sext_operand,
21255 sext_operand): New predicates.
21256
21257 2014-03-25 Martin Jambor <mjambor@suse.cz>
21258
21259 PR ipa/60600
21260 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21261 inconsistent devirtualizations to __builtin_unreachable.
21262
21263 2014-03-25 Marek Polacek <polacek@redhat.com>
21264
21265 PR c/35449
21266 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21267
21268 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21269
21270 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21271 order of elements for big-endian.
21272
21273 2014-03-25 Richard Biener <rguenther@suse.de>
21274
21275 PR middle-end/60635
21276 * gimplify-me.c (gimple_regimplify_operands): Update the
21277 re-gimplifed stmt.
21278
21279 2014-03-25 Martin Jambor <mjambor@suse.cz>
21280
21281 PR ipa/59176
21282 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21283 (lto_output_varpool_node): Likewise.
21284 (input_overwrite_node): Likewise.
21285 (input_varpool_node): Likewise.
21286
21287 2014-03-25 Richard Biener <rguenther@suse.de>
21288
21289 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21290 (run_gcc): Likewise.
21291
21292 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21293
21294 * combine.c (simplify_compare_const): Add MODE argument.
21295 Handle mode_width 0 as very large mode_width.
21296 (try_combine, simplify_comparison): Adjust callers.
21297
21298 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21299 type to avoid signed integer overflow.
21300 * explow.c (plus_constant): Likewise.
21301
21302 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21303
21304 * doc/generic.texi: Correct typos.
21305
21306 2014-03-24 Tobias Burnus <burnus@net-b.de>
21307
21308 * doc/invoke.texi (-flto): Expand section about
21309 using static libraries with LTO.
21310
21311 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21312
21313 PR rtl-optimization/60501
21314 * optabs.def (addptr3_optab): New optab.
21315 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21316 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21317 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21318
21319 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21320
21321 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21322
21323 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21324
21325 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21326 _mm512_set1_pd.
21327
21328 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21329 (_mm256_undefined_ps): Define.
21330 (_mm256_undefined_pd): Define.
21331 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21332 (_mm_undefined_pd): Define.
21333 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21334 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21335 (_mm512_undefined_ps): Define.
21336 (_mm512_undefined_pd): Define.
21337 Use _mm*_undefined_*.
21338 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21339
21340 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21341
21342 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21343 (lshr_simd): DI mode added.
21344 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21345 (aarch64_ushr_simddi): Likewise.
21346 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21347 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21348 (vshrd_n_u64): Likewise.
21349
21350 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21351
21352 * Makefile.in (s-macro_list): Depend on cc1.
21353
21354 2014-03-23 Teresa Johnson <tejohnson@google.com>
21355
21356 * ipa-utils.c (ipa_print_order): Use specified dump file.
21357
21358 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21359
21360 PR rtl-optimization/60601
21361 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21362
21363 * gcc.c (eval_spec_function): Initialize save_growing_value.
21364
21365 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21366
21367 PR sanitizer/60613
21368 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21369 code == MINUS_EXPR, never swap op0 with op1.
21370
21371 * toplev.c (init_local_tick): Avoid signed integer multiplication
21372 overflow.
21373 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21374 shift by first operand's bitsize.
21375
21376 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21377
21378 PR target/60610
21379 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21380 redefine to 1 or 0.
21381 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21382 TARGET_ISA_64BIT_P(x).
21383
21384 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21385
21386 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21387 pattern for vector nor instead of subtract from splat(-1).
21388 (altivec_expand_vec_perm_const_le): Likewise.
21389
21390 2014-03-21 Richard Henderson <rth@twiddle.net>
21391
21392 PR target/60598
21393 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21394 related insns after epilogue_completed.
21395
21396 2014-03-21 Martin Jambor <mjambor@suse.cz>
21397
21398 PR ipa/59176
21399 * cgraph.h (symtab_node): New flag body_removed.
21400 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21401 when removing bodies.
21402 * symtab.c (dump_symtab_base): Dump body_removed flag.
21403 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21404 had their bodies removed.
21405
21406 2014-03-21 Martin Jambor <mjambor@suse.cz>
21407
21408 PR ipa/60419
21409 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21410 in the border.
21411
21412 2014-03-21 Richard Biener <rguenther@suse.de>
21413
21414 PR tree-optimization/60577
21415 * tree-core.h (struct tree_base): Document nothrow_flag use
21416 in DECL_NONALIASED.
21417 * tree.h (DECL_NONALIASED): New.
21418 (may_be_aliased): Adjust.
21419 * coverage.c (build_var): Set DECL_NONALIASED.
21420
21421 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21422
21423 * expr.c (expand_expr_real_1): Remove outdated comment.
21424
21425 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21426
21427 PR middle-end/60597
21428 * ira.c (adjust_cleared_regs): Call copy_rtx on
21429 *reg_equiv[REGNO (loc)].src_p before passing it to
21430 simplify_replace_fn_rtx.
21431
21432 PR target/60568
21433 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21434 into CONST, put pic register as first operand of PLUS. Use
21435 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21436
21437 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21438
21439 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21440
21441 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21442
21443 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21444 around for store forwarding issue in the FPU on the UT699.
21445 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21446 loads and operations if -mfix-ut699 is specified.
21447 (divtf3_hq): Tweak attribute.
21448 (sqrttf2_hq): Likewise.
21449
21450 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21451
21452 * calls.c (store_one_arg): Remove incorrect const qualification on the
21453 type of the temporary.
21454 * cfgexpand.c (expand_return): Likewise.
21455 * expr.c (expand_constructor): Likewise.
21456 (expand_expr_real_1): Likewise.
21457
21458 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21459
21460 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21461 of parts.
21462
21463 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21464
21465 PR target/60039
21466 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21467
21468 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21469
21470 * config/arm/aarch-common-protos.h
21471 (alu_cost_table): Fix spelling of "extend".
21472 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21473
21474 2014-03-19 Richard Biener <rguenther@suse.de>
21475
21476 PR middle-end/60553
21477 * tree-core.h (tree_type_common): Re-order pointer members
21478 to reduce recursion depth during GC walks.
21479
21480 2014-03-19 Marek Polacek <polacek@redhat.com>
21481
21482 PR sanitizer/60569
21483 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21484 before accessing it.
21485
21486 2014-03-19 Richard Biener <rguenther@suse.de>
21487
21488 PR lto/59543
21489 * lto-streamer-in.c (input_function): In WPA stage do not drop
21490 debug stmts.
21491
21492 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21493
21494 PR tree-optimization/60559
21495 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21496 with build_zero_cst assignment.
21497
21498 2014-03-18 Kai Tietz <ktietz@redhat.com>
21499
21500 PR rtl-optimization/56356
21501 * sdbout.c (sdbout_parms): Verify that parms'
21502 incoming argument is valid.
21503 (sdbout_reg_parms): Likewise.
21504
21505 2014-03-18 Richard Henderson <rth@redhat.com>
21506
21507 PR target/60562
21508 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21509 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21510 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21511
21512 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21513
21514 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21515 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21516 Italicize plugin event names in description. Explain that
21517 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21518 Remind that no GCC functions should be called after PLUGIN_FINISH.
21519 Explain what pragmas with expansion are.
21520
21521 2014-03-18 Martin Liska <mliska@suse.cz>
21522
21523 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21524 gimple call statement is update.
21525 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21526 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21527
21528 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21529
21530 PR sanitizer/60557
21531 * ubsan.c (ubsan_instrument_unreachable): Call
21532 initialize_sanitizer_builtins.
21533 (ubsan_pass): Likewise.
21534
21535 PR sanitizer/60535
21536 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21537 varpool_finalize_decl instead of rest_of_decl_compilation.
21538
21539 2014-03-18 Richard Biener <rguenther@suse.de>
21540
21541 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21542 by using bitmap_and_compl instead of bitmap_and_compl_into.
21543 (df_rd_transfer_function): Likewise.
21544
21545 2014-03-18 Richard Biener <rguenther@suse.de>
21546
21547 * doc/lto.texi (fresolution): Fix typo.
21548
21549 2014-03-18 Richard Biener <rguenther@suse.de>
21550
21551 * doc/invoke.texi (flto): Update for changes in 4.9.
21552
21553 2014-03-18 Richard Biener <rguenther@suse.de>
21554
21555 * doc/loop.texi: Remove section on the removed lambda framework.
21556 Update loop docs with recent changes in preserving loop structure.
21557
21558 2014-03-18 Richard Biener <rguenther@suse.de>
21559
21560 * doc/lto.texi (-fresolution): Document.
21561
21562 2014-03-18 Richard Biener <rguenther@suse.de>
21563
21564 * doc/contrib.texi: Adjust my name.
21565
21566 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21567
21568 PR ipa/58721
21569 * internal-fn.c: Include diagnostic-core.h.
21570 (expand_BUILTIN_EXPECT): New function.
21571 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21572 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21573 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21574 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21575 IFN_BUILTIN_EXPECT.
21576 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21577 Revert 3 argument __builtin_expect code.
21578 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21579 * gimple-fold.c (gimple_fold_call): Likewise.
21580 * tree.h (fold_builtin_expect): New prototype.
21581 * builtins.c (build_builtin_expect_predicate): Add predictor
21582 argument, if non-NULL, create 3 argument __builtin_expect.
21583 (fold_builtin_expect): No longer static. Add ARG2 argument,
21584 pass it through to build_builtin_expect_predicate.
21585 (fold_builtin_2): Adjust caller.
21586 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21587 * internal-fn.def (BUILTIN_EXPECT): New.
21588
21589 2014-03-18 Tobias Burnus <burnus@net-b.de>
21590
21591 PR ipa/58721
21592 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21593 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21594 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21595
21596 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21597
21598 PR ipa/58721
21599 * predict.c (combine_predictions_for_bb): Fix up formatting.
21600 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21601 fill what it points to if non-NULL.
21602 (tree_predict_by_opcode): Adjust caller, use the predictor.
21603 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21604
21605 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21606
21607 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21608 proper constant for the store mode.
21609
21610 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21611
21612 * symtab.c (change_decl_assembler_name): Fix transparent alias
21613 chain construction.
21614
21615 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21616
21617 * config/aarch64/aarch64.c: Correct the comments about the
21618 aarch64 stack layout.
21619
21620 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21621
21622 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21623 check for GF_OMP_FOR_KIND_FOR.
21624
21625 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21626
21627 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21628 ymm and zmm register names.
21629
21630 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21631
21632 PR target/60516
21633 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21634 note creation for the 2010-08-31 changes.
21635
21636 2014-03-17 Marek Polacek <polacek@redhat.com>
21637
21638 PR middle-end/60534
21639 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21640 as -fno-tree-loop-vectorize.
21641 (expand_omp_simd): Likewise.
21642
21643 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21644
21645 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21646 (eligible_for_call_delay): New prototype.
21647 * config/sparc/sparc.c (tls_call_delay): Rename into...
21648 (eligible_for_call_delay): ...this. Return false if the instruction
21649 cannot be put in the delay slot of a branch.
21650 (eligible_for_restore_insn): Simplify.
21651 (eligible_for_return_delay): Return false if the instruction cannot be
21652 put in the delay slot of a branch and simplify.
21653 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21654 put in the delay slot of a branch.
21655 * config/sparc/sparc.md (fix_ut699): New attribute.
21656 (tls_call_delay): Delete.
21657 (in_call_delay): Reimplement.
21658 (eligible_for_sibcall_delay): Rename into...
21659 (in_sibcall_delay): ...this.
21660 (eligible_for_return_delay): Rename into...
21661 (in_return_delay): ...this.
21662 (in_branch_delay): Reimplement.
21663 (in_uncond_branch_delay): Delete.
21664 (in_annul_branch_delay): Delete.
21665
21666 2014-03-14 Richard Henderson <rth@redhat.com>
21667
21668 PR target/60525
21669 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21670 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21671 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21672 (floathi splitters): Remove.
21673 (float<SWI48x>xf2): New pattern.
21674 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21675 code that tried to handle DImode for 32-bit, but which was excluded
21676 by the pattern's condition. Drop allocation of stack temporary.
21677 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21678 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21679 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21680 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21681 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21682 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21683 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21684 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21685 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21686 (*float<SWI48x><X87MODEF>2_i387): Remove.
21687 (all float _with_temp splitters): Remove.
21688 (*float<SWI48x><MODEF>2_i387): New pattern.
21689 (*float<SWI48><MODEF>2_sse): New pattern.
21690 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21691 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21692
21693 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21694 Marek Polacek <polacek@redhat.com>
21695
21696 PR middle-end/60484
21697 * common.opt (dump_base_name_prefixed): New Variable.
21698 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21699 if x_dump_base_name_prefixed is already set, set it at the end.
21700
21701 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21702
21703 PR rtl-optimization/60508
21704 * lra-constraints.c (get_reload_reg): Add new parameter
21705 in_subreg_p.
21706 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21707 Pass the new parameter values.
21708
21709 2014-03-14 Richard Biener <rguenther@suse.de>
21710
21711 * common.opt: Revert unintented changes from r205065.
21712 * opts.c: Likewise.
21713
21714 2014-03-14 Richard Biener <rguenther@suse.de>
21715
21716 PR middle-end/60518
21717 * cfghooks.c (split_block): Properly adjust all loops the
21718 block was a latch of.
21719
21720 2014-03-14 Martin Jambor <mjambor@suse.cz>
21721
21722 PR lto/60461
21723 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21724 and simplify it.
21725
21726 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21727
21728 PR target/59396
21729 * config/avr/avr.c (avr_set_current_function): Pass function name
21730 through default_strip_name_encoding before sanity checking instead
21731 of skipping the first char of the assembler name.
21732
21733 2014-03-13 Richard Henderson <rth@redhat.com>
21734
21735 PR debug/60438
21736 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21737 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21738 * config/i386/i386-protos.h: Likewise.
21739 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21740 in the expander instead of a splitter.
21741 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21742 any possibility of requiring a memory.
21743 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21744 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21745 (fp branch splitters): Update for ix86_split_fp_branch.
21746 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21747 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21748 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21749 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21750 (*fop_<MODEF>_3_i387): Likewise.
21751 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21752 (splitters for the fop_* register patterns): Remove.
21753 (fscalexf4_i387): Rename from *fscalexf4_i387.
21754 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21755
21756 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21757
21758 PR tree-optimization/59779
21759 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21760 type for bitsize and maxsize instead of HOST_WIDE_INT.
21761
21762 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21763
21764 PR rtl-optimization/57320
21765 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21766 the CFG after thread_prologue_and_epilogue_insns.
21767
21768 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21769
21770 PR rtl-optimization/57189
21771 * lra-constraints.c (process_alt_operands): Disfavor spilling
21772 vector pseudos.
21773
21774 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21775
21776 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21777
21778 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21779
21780 PR tree-optimization/59025
21781 PR middle-end/60418
21782 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21783 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21784
21785 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21786
21787 PR target/60486
21788 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21789 calls of avr_out_plus_1.
21790
21791 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21792
21793 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21794 BB's single pred and update the father loop's latch info later.
21795
21796 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21797
21798 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21799 (VEC_M): Likewise.
21800 (VEC_N): Likewise.
21801 (VEC_R): Likewise.
21802 (VEC_base): Likewise.
21803 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21804 registers, we need to swap double words in little endian mode.
21805
21806 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21807 to be a container mode for 128-bit integer operations added in ISA
21808 2.07. Unlike TImode and PTImode, the preferred register set is
21809 the Altivec/VMX registers for the 128-bit operations.
21810
21811 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21812 declarations.
21813 (rs6000_split_128bit_ok_p): Likewise.
21814
21815 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21816 macros for creating ISA 2.07 normal and overloaded builtin
21817 functions with 3 arguments.
21818 (BU_P8V_OVERLOAD_3): Likewise.
21819 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21820 for use as overloaded functions.
21821 (VPERM_1TI_UNS): Likewise.
21822 (VSEL_1TI): Likewise.
21823 (VSEL_1TI_UNS): Likewise.
21824 (ST_INTERNAL_1ti): Likewise.
21825 (LD_INTERNAL_1ti): Likewise.
21826 (XXSEL_1TI): Likewise.
21827 (XXSEL_1TI_UNS): Likewise.
21828 (VPERM_1TI): Likewise.
21829 (VPERM_1TI_UNS): Likewise.
21830 (XXPERMDI_1TI): Likewise.
21831 (SET_1TI): Likewise.
21832 (LXVD2X_V1TI): Likewise.
21833 (STXVD2X_V1TI): Likewise.
21834 (VEC_INIT_V1TI): Likewise.
21835 (VEC_SET_V1TI): Likewise.
21836 (VEC_EXT_V1TI): Likewise.
21837 (EQV_V1TI): Likewise.
21838 (NAND_V1TI): Likewise.
21839 (ORC_V1TI): Likewise.
21840 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21841 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21842 overloaded builtin.
21843 (VADDUQM): Likewise.
21844 (VSUBCUQ): Likewise.
21845 (VADDEUQM): Likewise.
21846 (VADDECUQ): Likewise.
21847 (VSUBEUQM): Likewise.
21848 (VSUBECUQ): Likewise.
21849
21850 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21851 __int128_t and __uint128_t types.
21852 (__uint128_type): Likewise.
21853 (altivec_categorize_keyword): Add support for vector __int128_t,
21854 vector __uint128_t, vector __int128, and vector unsigned __int128
21855 as a container type for TImode operations that need to be done in
21856 VSX/Altivec registers.
21857 (rs6000_macro_to_expand): Likewise.
21858 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21859 to support 128-bit integer instructions vaddcuq, vadduqm,
21860 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21861 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21862
21863 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21864 for V1TImode, and set up preferences to use VSX/Altivec registers.
21865 Setup VSX reload handlers.
21866 (rs6000_debug_reg_global): Likewise.
21867 (rs6000_init_hard_regno_mode_ok): Likewise.
21868 (rs6000_preferred_simd_mode): Likewise.
21869 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21870 (easy_altivec_constant): Likewise.
21871 (output_vec_const_move): Likewise.
21872 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21873 simple move.
21874 (rs6000_expand_vector_extract): Likewise.
21875 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21876 addressing.
21877 (rs6000_const_vec): Add support for V1TImode.
21878 (rs6000_emit_le_vsx_load): Swap double words when loading or
21879 storing TImode/V1TImode.
21880 (rs6000_emit_le_vsx_store): Likewise.
21881 (rs6000_emit_le_vsx_move): Likewise.
21882 (rs6000_emit_move): Add support for V1TImode.
21883 (altivec_expand_ld_builtin): Likewise.
21884 (altivec_expand_st_builtin): Likewise.
21885 (altivec_expand_vec_init_builtin): Likewise.
21886 (altivec_expand_builtin): Likewise.
21887 (rs6000_init_builtins): Add support for V1TImode type. Add
21888 support for ISA 2.07 128-bit integer builtins. Define type names
21889 for the VSX/Altivec vector types.
21890 (altivec_init_builtins): Add support for overloaded vector
21891 functions with V1TImode type.
21892 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21893 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21894 external function.
21895 (rs6000_split_128bit_ok_p): Likewise.
21896 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21897 __int128_t and vector __uint128_t.
21898
21899 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21900 and mode attributes.
21901 (VSX_M): Likewise.
21902 (VSX_M2): Likewise.
21903 (VSm): Likewise.
21904 (VSs): Likewise.
21905 (VSr): Likewise.
21906 (VSv): Likewise.
21907 (VS_scalar): Likewise.
21908 (VS_double): Likewise.
21909 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21910
21911 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21912 we support the ISA 2.07 128-bit integer arithmetic instructions.
21913 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21914 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21915 and TImode types for use with the builtin functions.
21916 (V1TI_type_node): Likewise.
21917 (unsigned_V1TI_type_node): Likewise.
21918 (intTI_type_internal_node): Likewise.
21919 (uintTI_type_internal_node): Likewise.
21920
21921 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21922 128-bit builtin functions.
21923 (UNSPEC_VADDEUQM): Likewise.
21924 (UNSPEC_VADDECUQ): Likewise.
21925 (UNSPEC_VSUBCUQ): Likewise.
21926 (UNSPEC_VSUBEUQM): Likewise.
21927 (UNSPEC_VSUBECUQ): Likewise.
21928 (VM): Add V1TImode to vector mode iterators.
21929 (VM2): Likewise.
21930 (VI_unit): Likewise.
21931 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21932 (altivec_vaddcuq): Likewise.
21933 (altivec_vsubuqm): Likewise.
21934 (altivec_vsubcuq): Likewise.
21935 (altivec_vaddeuqm): Likewise.
21936 (altivec_vaddecuq): Likewise.
21937 (altivec_vsubeuqm): Likewise.
21938 (altivec_vsubecuq): Likewise.
21939
21940 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21941 mode iterators.
21942 (BOOL_128): Likewise.
21943 (BOOL_REGS_OUTPUT): Likewise.
21944 (BOOL_REGS_OP1): Likewise.
21945 (BOOL_REGS_OP2): Likewise.
21946 (BOOL_REGS_UNARY): Likewise.
21947 (BOOL_REGS_AND_CR0): Likewise.
21948
21949 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21950 128-bit integer builtin support.
21951 (vec_vadduqm): Likewise.
21952 (vec_vaddecuq): Likewise.
21953 (vec_vaddeuqm): Likewise.
21954 (vec_vsubecuq): Likewise.
21955 (vec_vsubeuqm): Likewise.
21956 (vec_vsubcuq): Likewise.
21957 (vec_vsubuqm): Likewise.
21958
21959 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21960 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21961 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21962 128-bit integer add/subtract to ISA 2.07.
21963
21964 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21965
21966 * config/arc/arc.c (arc_predicate_delay_insns):
21967 Fix third argument passed to conditionalize_nonjump.
21968
21969 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21970
21971 * config/aarch64/aarch64-builtins.c
21972 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21973 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21974 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21975 instead of __builtin_lfloor.
21976 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21977
21978 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21979
21980 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21981 (tree_ssa_ifcombine_bb_1): New function.
21982 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21983 is an empty forwarder block to then_bb or vice versa and then_bb
21984 and else_bb are effectively swapped.
21985
21986 2014-03-12 Christian Bruel <christian.bruel@st.com>
21987
21988 PR target/60264
21989 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21990 REG_CFA_DEF_CFA note.
21991 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21992 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21993
21994 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21995
21996 PR tree-optimization/60454
21997 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21998
21999 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22000
22001 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22002 Do not define target_cpu_default2 to generic.
22003 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22004 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22005 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22006
22007 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22008 Marc Glisse <marc.glisse@inria.fr>
22009
22010 PR tree-optimization/60502
22011 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22012 instead of build_low_bits_mask.
22013
22014 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22015
22016 PR middle-end/60482
22017 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22018 if there are multiple uses, but op doesn't live on E edge.
22019 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22020 clobber stmts before __builtin_unreachable.
22021
22022 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22023
22024 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22025 hard_frame_pointer_rtx.
22026 * cse.c (cse_insn): Remove volatile check.
22027 * cselib.c (cselib_process_insn): Likewise.
22028 * dse.c (scan_insn): Likewise.
22029
22030 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22031
22032 * config/arc/arc.c (conditionalize_nonjump): New function,
22033 broken out of ...
22034 (arc_ifcvt): ... this.
22035 (arc_predicate_delay_insns): Use it.
22036
22037 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22038
22039 * config/arc/predicates.md (extend_operand): During/after reload,
22040 allow const_int_operand.
22041 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22042 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22043 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22044 to "i".
22045 (umulsi3_highpart_i): Likewise.
22046
22047 2014-03-11 Richard Biener <rguenther@suse.de>
22048
22049 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22050 Add asserts to guard possible wrong-code bugs.
22051
22052 2014-03-11 Richard Biener <rguenther@suse.de>
22053
22054 PR tree-optimization/60429
22055 PR tree-optimization/60485
22056 * tree-ssa-structalias.c (set_union_with_increment): Properly
22057 take into account all fields that overlap the shifted vars.
22058 (do_sd_constraint): Likewise.
22059 (do_ds_constraint): Likewise.
22060 (get_constraint_for_ptr_offset): Likewise.
22061
22062 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22063
22064 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22065 (nios2_compute_frame_layout):
22066 Add calculation of cfun->machine->fp_save_offset.
22067 (nios2_expand_prologue): Correct setting of frame pointer register
22068 in prologue.
22069 (nios2_expand_epilogue): Update recovery of stack pointer from
22070 frame pointer accordingly.
22071 (nios2_initial_elimination_offset): Update calculation of offset
22072 for eliminating to HARD_FRAME_POINTER_REGNUM.
22073
22074 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22075
22076 PR ipa/60457
22077 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22078 cgraph_get_create_node on VAR_DECLs.
22079
22080 2014-03-10 Richard Biener <rguenther@suse.de>
22081
22082 PR middle-end/60474
22083 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22084
22085 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22086
22087 * config/vms/vms.opt (vms_float_format): New variable.
22088
22089 2014-03-08 Tobias Burnus <burnus@net-b.de>
22090
22091 * doc/invoke.texi (-fcilkplus): Update implementation status.
22092
22093 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22094 Richard Biener <rguenther@suse.de>
22095
22096 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22097 consistently accross all TUs.
22098 (run_gcc): Enable -fshort-double automatically at link at link-time
22099 and disallow override.
22100
22101 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22102
22103 PR target/58271
22104 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22105 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22106 if they can't be used.
22107
22108 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22109
22110 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22111 for Solaris 11/x86 ld.
22112 * configure: Regenerate.
22113
22114 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22115
22116 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22117 (LIB_TLS_SPEC): Save as ld_tls_libs.
22118 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22119 (HAVE_AS_IX86_TLSLDM): New test.
22120 * configure, config.in: Regenerate.
22121 * config/i386/i386.c (legitimize_tls_address): Fall back to
22122 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22123 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22124 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22125 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22126
22127 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22128
22129 * common.opt (fira-loop-pressure): Mark as optimization.
22130
22131 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22132
22133 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22134 an OpenMP mappable type.
22135
22136 2014-03-06 Matthias Klose <doko@ubuntu.com>
22137
22138 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22139 MULTILIB_OSDIRNAMES is not defined.
22140
22141 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22142 Meador Inge <meadori@codesourcery.com>
22143
22144 PR target/58595
22145 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22146 (arm_legitimize_address): Call legitimize_tls_address for any
22147 arm_tls_referenced_p expression, handle constant addend. Call it
22148 before testing for !TARGET_ARM.
22149 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22150
22151 2014-03-06 Richard Biener <rguenther@suse.de>
22152
22153 PR middle-end/60445
22154 PR lto/60424
22155 PR lto/60427
22156 Revert
22157 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22158
22159 * tree-streamer.c (record_common_node): Assert we don't record
22160 nodes with type double.
22161 (preload_common_node): Skip type double, complex double and double
22162 pointer since it is now frontend dependent due to fshort-double option.
22163
22164 2014-03-06 Richard Biener <rguenther@suse.de>
22165
22166 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22167 or -fno-lto is specified and the linker has full plugin support.
22168 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22169 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22170 * lto-wrapper.c (merge_and_complain): Merge compile-time
22171 optimization levels.
22172 (run_gcc): And pass it through to the link options.
22173
22174 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22175
22176 PR debug/60381
22177 Revert:
22178 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22179 PR debug/59992
22180 * cselib.c (remove_useless_values): Skip to avoid quadratic
22181 behavior if the condition moved from...
22182 (cselib_process_insn): ... here holds.
22183
22184 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22185
22186 PR plugins/59335
22187 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22188 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22189
22190 PR plugins/59335
22191 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22192 (TM_H): Add x86-tune.def.
22193
22194 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22195
22196 * config/aarch64/aarch64.c (generic_tunings):
22197 Use cortexa57_extra_costs.
22198
22199 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22200
22201 PR lto/60404
22202 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22203 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22204 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22205 cost for in_lto_p.
22206
22207 2014-03-04 Heiher <r@hev.cc>
22208
22209 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22210 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22211
22212 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22213
22214 * config/i386/predicates.md (const2356_operand): Change to ...
22215 (const2367_operand): ... this.
22216 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22217 const2367_operand.
22218 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22219 (*avx512pf_scatterpf<mode>sf): Ditto.
22220 (avx512pf_scatterpf<mode>df): Ditto.
22221 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22222 (*avx512pf_scatterpf<mode>df): Ditto.
22223 * config/i386/i386.c (ix86_expand_builtin): Update
22224 incorrect hint operand error message.
22225
22226 2014-03-04 Richard Biener <rguenther@suse.de>
22227
22228 * lto-section-in.c (lto_get_section_data): Fix const cast.
22229
22230 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22231
22232 * tree-streamer.c (record_common_node): Assert we don't record
22233 nodes with type double.
22234 (preload_common_node): Skip type double, complex double and double
22235 pointer since it is now frontend dependent due to fshort-double option.
22236
22237 2014-03-04 Richard Biener <rguenther@suse.de>
22238
22239 PR lto/60405
22240 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22241 (lto_input_toplevel_asms): Likewise.
22242 * lto-section-in.c (lto_get_section_data): Instead do it here
22243 for every section.
22244
22245 2014-03-04 Richard Biener <rguenther@suse.de>
22246
22247 PR tree-optimization/60382
22248 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22249 dead PHIs a reduction.
22250
22251 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22252
22253 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22254 hint value.
22255 (_mm_prefetch): Move out of GCC target("sse") pragma.
22256 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22257 GCC target("prfchw") pragma.
22258 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22259 for locality <= 2.
22260 * config/i386/i386.c (ix86_option_override_internal): Enable
22261 -mprfchw with -mprefetchwt1.
22262
22263 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22264
22265 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22266 Mark as varying.
22267
22268 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22269
22270 * opts.h (CL_PCH_IGNORE): Define.
22271 * targhooks.c (option_affects_pch_p):
22272 Return false for options that have CL_PCH_IGNORE set.
22273 * opt-functions.awk: Process PchIgnore.
22274 * doc/options.texi: Document PchIgnore.
22275
22276 * config/arc/arc.opt (misize): Add PchIgnore property.
22277
22278 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22279
22280 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22281 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22282 constraint on constants to permit them being loaded into
22283 GENERAL_REGS or BASE_REGS.
22284
22285 2014-03-03 Nick Clifton <nickc@redhat.com>
22286
22287 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22288 anti-cacnonical alternatives.
22289 (negandhi3_real): New pattern.
22290 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22291
22292 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22293
22294 * config/avr/avr-mcus.def: Remove atxmega16x1.
22295 * config/avr/avr-tables.opt: Regenerate.
22296 * config/avr/t-multilib: Regenerate.
22297 * doc/avr-mmcu.texi: Regenerate.
22298
22299 2014-03-03 Tobias Grosser <tobias@grosser.es>
22300 Mircea Namolaru <mircea.namolaru@inria.fr>
22301
22302 PR tree-optimization/58028
22303 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22304 scalar dimensions.
22305
22306 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22307
22308 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22309 not handled by recognizers.
22310
22311 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22312
22313 PR middle-end/60175
22314 * function.c (expand_function_end): Don't emit
22315 clobber_return_register sequence if clobber_after is a BARRIER.
22316 * cfgexpand.c (construct_exit_block): Append instructions before
22317 return_label to prev_bb.
22318
22319 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22320
22321 * config/rs6000/constraints.md: Document reserved use of "wc".
22322
22323 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22324
22325 PR ipa/60150
22326 * ipa.c (function_and_variable_visibility): When dissolving comdat
22327 group, also set all symbols to local.
22328
22329 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22330
22331 PR ipa/60306
22332
22333 Revert:
22334 2013-12-14 Jan Hubicka <jh@suse.cz>
22335 PR middle-end/58477
22336 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22337
22338 2014-03-02 Jon Beniston <jon@beniston.com>
22339
22340 PR bootstrap/48230
22341 PR bootstrap/50927
22342 PR bootstrap/52466
22343 PR target/46898
22344 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22345 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22346 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22347 (simple_return, *simple_return): New patterns
22348 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22349 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22350
22351 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22352
22353 * dwarf2out.c (gen_subprogram_die): Tidy.
22354
22355 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22356
22357 PR target/60071
22358 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22359 (*mov_t_msb_neg_negc): ... this new insn.
22360
22361 2014-02-28 Jason Merrill <jason@redhat.com>
22362
22363 PR c++/58678
22364 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22365 function.
22366
22367 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22368
22369 PR c++/60314
22370 * dwarf2out.c (decltype_auto_die): New static.
22371 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22372 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22373 (is_cxx_auto): Likewise.
22374
22375 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22376
22377 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22378 we are not using general regs only.
22379
22380 2014-02-28 Richard Biener <rguenther@suse.de>
22381
22382 PR target/60280
22383 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22384 previous fix and only allow to remove trivial pre-headers
22385 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22386 (remove_forwarder_block): Properly update the latch of a loop.
22387
22388 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22389
22390 PR debug/59992
22391 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22392 (cselib_preserved_hash_table): New.
22393 (preserve_constants_and_equivs): Move preserved vals to it.
22394 (cselib_find_slot): Look it up first.
22395 (cselib_init): Initialize it.
22396 (cselib_finish): Release it.
22397 (dump_cselib_table): Dump it.
22398
22399 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22400
22401 PR debug/59992
22402 * cselib.c (remove_useless_values): Skip to avoid quadratic
22403 behavior if the condition moved from...
22404 (cselib_process_insn): ... here holds.
22405
22406 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22407
22408 PR debug/57232
22409 * var-tracking.c (vt_initialize): Apply the same condition to
22410 preserve the CFA base value.
22411
22412 2014-02-28 Joey Ye <joey.ye@arm.com>
22413
22414 PR target/PR60169
22415 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22416 if reload in progress or completed.
22417
22418 2014-02-28 Tobias Burnus <burnus@net-b.de>
22419
22420 PR middle-end/60147
22421 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22422 NAMELIST_DECL.
22423
22424 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22425
22426 * doc/tm.texi.in (Condition Code Status): Update documention for
22427 relative locations of cc0-setter and cc0-user.
22428
22429 2014-02-27 Jeff Law <law@redhat.com>
22430
22431 PR rtl-optimization/52714
22432 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22433 into two independent simple sets, if I3 is a jump, ensure the
22434 pattern we place into I3 is a (set (pc) ...).
22435
22436 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22437 Jeff Law <law@redhat.com>
22438
22439 PR rtl-optimization/49847
22440 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22441 are in different blocks.
22442 * doc/tm.texi (Condition Code Status): Update documention for
22443 relative locations of cc0-setter and cc0-user.
22444
22445 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22446
22447 PR target/59222
22448 * lra.c (lra_emit_add): Check SUBREG too.
22449
22450 2014-02-27 Andreas Schwab <schwab@suse.de>
22451
22452 * config/m68k/m68k.c (m68k_option_override): Disable
22453 -flive-range-shrinkage for classic m68k.
22454 (m68k_override_options_after_change): Likewise.
22455
22456 2014-02-27 Marek Polacek <polacek@redhat.com>
22457
22458 PR middle-end/59223
22459 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22460 -Wmaybe-uninitialized.
22461
22462 2014-02-27 Alan Modra <amodra@gmail.com>
22463
22464 PR target/57936
22465 * reload1.c (emit_input_reload_insns): When reload_override_in,
22466 set old to rl->in_reg when rl->in_reg is a subreg.
22467
22468 2014-02-26 Richard Biener <rguenther@suse.de>
22469
22470 PR bootstrap/60343
22471 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22472
22473 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22474
22475 * common/config/i386/predicates.md (const1256_operand): Remove.
22476 (const2356_operand): New.
22477 (const_1_to_2_operand): Remove.
22478 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22479 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22480 (*avx512pf_gatherpf<mode>sf): Ditto.
22481 (avx512pf_gatherpf<mode>df): Ditto.
22482 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22483 (*avx512pf_gatherpf<mode>df): Ditto.
22484 (avx512pf_scatterpf<mode>sf): Ditto.
22485 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22486 (*avx512pf_scatterpf<mode>sf): Ditto.
22487 (avx512pf_scatterpf<mode>df): Ditto.
22488 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22489 (*avx512pf_scatterpf<mode>df): Ditto.
22490 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22491
22492 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22493
22494 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22495 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22496 (_mm512_mask_testn_epi64_mask): Move to ...
22497 * config/i386/avx512cdintrin.h: Here.
22498 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22499 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22500 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22501 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22502 TARGET_AVX512F from TARGET_AVX512CD.
22503
22504 2014-02-26 Richard Biener <rguenther@suse.de>
22505
22506 PR ipa/60327
22507 * ipa.c (walk_polymorphic_call_targets): Properly guard
22508 call to inline_update_overall_summary.
22509
22510 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22511
22512 PR target/60280
22513 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22514 and latches only if requested. Fix latch if it is removed.
22515 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22516 LOOPS_HAVE_PREHEADERS.
22517
22518 2014-02-25 Andrew Pinski <apinski@cavium.com>
22519
22520 * builtins.c (expand_builtin_thread_pointer): Create a new target
22521 when the target is NULL.
22522
22523 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22524
22525 PR rtl-optimization/60317
22526 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22527 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22528 * lra-assigns.c: Include params.h.
22529 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22530 other reload pseudos considerations.
22531
22532 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22533
22534 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22535 to use canonical form for nor<mode>3.
22536
22537 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22538
22539 PR target/55426
22540 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22541 conversions.
22542
22543 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22544
22545 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22546 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22547 (ix86_handle_option): Handle OPT_mprefetchwt1.
22548 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22549 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22550 PREFETCHWT1 CPUID.
22551 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22552 OPTION_MASK_ISA_PREFETCHWT1.
22553 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22554 (PTA_PREFETCHWT1): New.
22555 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22556 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22557 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22558 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22559 (*prefetch_avx512pf_<mode>_: Change into ...
22560 (*prefetch_prefetchwt1_<mode>: This.
22561 * config/i386/i386.opt (mprefetchwt1): New.
22562 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22563 (_mm_prefetch): Handle intent to write.
22564 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22565
22566 2014-02-25 Richard Biener <rguenther@suse.de>
22567
22568 PR middle-end/60291
22569 * emit-rtl.c (mem_attrs_htab): Remove.
22570 (mem_attrs_htab_hash): Likewise.
22571 (mem_attrs_htab_eq): Likewise.
22572 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22573 (init_emit_once): Do not allocate mem_attrs_htab.
22574
22575 2014-02-25 Richard Biener <rguenther@suse.de>
22576
22577 PR lto/60319
22578 * lto-opts.c (lto_write_options): Output non-explicit conservative
22579 -fwrapv, -fno-trapv and -fno-strict-overflow.
22580 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22581 (run_gcc): And pass them through.
22582
22583 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22584
22585 * sel-sched.c (calculate_new_fences): New parameter ptime.
22586 Calculate it as a maximum over all fence cycles.
22587 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22588 Print the final schedule timing when sched_verbose.
22589
22590 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22591
22592 PR rtl-optimization/60292
22593 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22594 bit fot the fence instruction.
22595
22596 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22597
22598 * calls.h: Fix typo in comment.
22599
22600 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22601
22602 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22603 adjusting offsetable addresses.
22604
22605 2014-02-24 Guozhi Wei <carrot@google.com>
22606
22607 * sparseset.h (sparseset_pop): Fix the wrong index.
22608
22609 2014-02-24 Walter Lee <walt@tilera.com>
22610
22611 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22612 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22613 triplet.
22614 * common/config/tilegx/tilegx-common.c
22615 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22616 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22617 (LINK_SPEC): Ditto.
22618 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22619 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22620 (tilegx_gimplify_va_arg_expr): Handle big endian.
22621 (tilegx_expand_unaligned_load): Ditto.
22622 (tilegx_expand_unaligned_store): Ditto.
22623 (TARGET_RETURN_IN_MSB): New.
22624 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22625 (TARGET_ENDIAN_DEFAULT): New.
22626 (TARGET_BIG_ENDIAN): Handle big endian.
22627 (BYTES_BIG_ENDIAN): Ditto.
22628 (WORDS_BIG_ENDIAN): Ditto.
22629 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22630 (ENDIAN_SPEC): New.
22631 (EXTRA_SPECS): New.
22632 * config/tilegx/tilegx.md (extv): Handle big endian.
22633 (extzv): Ditto.
22634 (insn_st<n>): Ditto.
22635 (insn_st<n>_add<bitsuffix>): Ditto.
22636 (insn_stnt<n>): Ditto.
22637 (insn_stnt<n>_add<bitsuffix>):Ditto.
22638 (vec_interleave_highv8qi): Handle big endian.
22639 (vec_interleave_highv8qi_be): New.
22640 (vec_interleave_highv8qi_le): New.
22641 (insn_v1int_h): Handle big endian.
22642 (vec_interleave_lowv8qi): Handle big endian.
22643 (vec_interleave_lowv8qi_be): New.
22644 (vec_interleave_lowv8qi_le): New.
22645 (insn_v1int_l): Handle big endian.
22646 (vec_interleave_highv4hi): Handle big endian.
22647 (vec_interleave_highv4hi_be): New.
22648 (vec_interleave_highv4hi_le): New.
22649 (insn_v2int_h): Handle big endian.
22650 (vec_interleave_lowv4hi): Handle big endian.
22651 (vec_interleave_lowv4hi_be): New.
22652 (vec_interleave_lowv4hi_le): New.
22653 (insn_v2int_l): Handle big endian.
22654 (vec_interleave_highv2si): Handle big endian.
22655 (vec_interleave_highv2si_be): New.
22656 (vec_interleave_highv2si_le): New.
22657 (insn_v4int_h): Handle big endian.
22658 (vec_interleave_lowv2si): Handle big endian.
22659 (vec_interleave_lowv2si_be): New.
22660 (vec_interleave_lowv2si_le): New.
22661 (insn_v4int_l): Handle big endian.
22662 * config/tilegx/tilegx.opt (mbig-endian): New option.
22663 (mlittle-endian): New option.
22664 * doc/install.texi: Document tilegxbe-linux.
22665 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22666
22667 2014-02-24 Martin Jambor <mjambor@suse.cz>
22668
22669 PR ipa/60266
22670 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22671 there are no parameter descriptors.
22672
22673 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22674
22675 PR rtl-optimization/60268
22676 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22677 initialization to ...
22678 (sched_rgn_init): ... here.
22679 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22680
22681 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22682
22683 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22684 names.
22685
22686 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22687
22688 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22689 definition.
22690
22691 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22692
22693 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22694 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22695
22696 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22697
22698 * config/microblaze/predicates.md: Add cmp_op predicate.
22699 * config/microblaze/microblaze.md: Add branch_compare instruction
22700 which uses cmp_op predicate and emits cmp insn before branch.
22701 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22702 to microblaze_expand_conditional_branch and consolidate logic.
22703 (microblaze_expand_conditional_branch): emit branch_compare
22704 insn instead of handling cmp op separate from branch insn.
22705
22706 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22707
22708 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22709 to permit subregs.
22710
22711 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22712
22713 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22714 define_insn with define_expand and new define_insn
22715 *altivec_lve<VI_char>x_internal.
22716 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22717 and new define_insn *altivec_stve<VI_char>x_internal.
22718 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22719 prototype.
22720 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22721 lve*x built-ins.
22722 (altivec_expand_stvex_be): New function.
22723
22724 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22725
22726 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22727 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22728 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22729 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22730
22731 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22732
22733 PR target/60298
22734 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22735 instead of emit_move_insn.
22736
22737 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22738
22739 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22740 vspltw with vsldoi.
22741 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22742 gen_altivec_vsumsws.
22743
22744 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22745
22746 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22747 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22748 (altivec_lvxl_<mode>): New define_expand incorporating
22749 -maltivec=be semantics where needed.
22750 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22751 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22752 semantics where needed.
22753 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22754 (altivec_stvx_<mode>): New define_expand incorporating
22755 -maltivec=be semantics where needed.
22756 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22757 VM2 iterator instead of V4SI.
22758 (altivec_stvxl_<mode>): New define_expand incorporating
22759 -maltivec=be semantics where needed.
22760 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22761 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22762 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22763 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22764 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22765 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22766 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22767 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22768 ALTIVEC_BUILTIN_STVXL.
22769 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22770 (altivec_expand_stvx_be): Likewise.
22771 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22772 (altivec_expand_lvx_be): Likewise.
22773 (altivec_expand_stvx_be): Likewise.
22774 (altivec_expand_builtin): Add cases for
22775 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22776 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22777 (altivec_init_builtins): Add definitions for
22778 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22779 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22780
22781 2014-02-21 Catherine Moore <clm@codesourcery.com>
22782
22783 * doc/invoke.texi (mvirt, mno-virt): Document.
22784 * config/mips/mips.opt (mvirt): New option.
22785 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22786
22787 2014-02-21 Richard Biener <rguenther@suse.de>
22788
22789 PR tree-optimization/60276
22790 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22791 (STMT_VINFO_MIN_NEG_DIST): New macro.
22792 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22793 STMT_VINFO_MIN_NEG_DIST.
22794 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22795 made for negative dependence distances still hold.
22796
22797 2014-02-21 Richard Biener <rguenther@suse.de>
22798
22799 PR middle-end/60291
22800 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22801 DECL_INITIAL for globals not in the current function context.
22802
22803 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22804
22805 PR tree-optimization/56490
22806 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22807 * tree-ssa-uninit.c: Include params.h.
22808 (compute_control_dep_chain): Add num_calls argument, return false
22809 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22810 num_calls to recursive call.
22811 (find_predicates): Change dep_chain into normal array,
22812 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22813 variable and adjust compute_control_dep_chain caller.
22814 (find_def_preds): Likewise.
22815
22816 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22817
22818 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22819 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22820
22821 2014-02-21 Nick Clifton <nickc@redhat.com>
22822
22823 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22824 (pushhi1): Likewise.
22825 (popqi1): Add mode to pre_dec.
22826 (pophi1): Likewise.
22827
22828 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22829
22830 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22831 mode for mask of V8SFmode permutation.
22832
22833 2014-02-20 Richard Henderson <rth@redhat.com>
22834
22835 PR c++/60272
22836 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22837 a new pseudo for OLDVAL.
22838
22839 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22840
22841 PR target/57896
22842 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22843 gen_reg_rtx if d->testing_p.
22844 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22845 if d->testing_p and we will certainly return true.
22846 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22847 if d->testing_p.
22848
22849 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22850
22851 * emit-rtl.c (gen_reg_rtx): Assert that
22852 crtl->emit.regno_pointer_align_length is non-zero.
22853
22854 2014-02-20 Richard Henderson <rth@redhat.com>
22855
22856 PR c++/60272
22857 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22858 on failure the store back into EXPECT.
22859
22860 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22861 Sandra Loosemore <sandra@codesourcery.com>
22862
22863 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22864 * config/nios2/nios2.c (nios2_function_profiler): Add
22865 -fPIC (flag_pic == 2) support.
22866 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22867 (nios2_large_offset_p): New function.
22868 (nios2_unspec_reloc_p): Move up position, update to use
22869 nios2_large_offset_p.
22870 (nios2_unspec_address): Remove function.
22871 (nios2_unspec_offset): New function.
22872 (nios2_large_got_address): New function.
22873 (nios2_got_address): Add large offset support.
22874 (nios2_legitimize_tls_address): Update usage of removed and new
22875 functions.
22876 (nios2_symbol_binds_local_p): New function.
22877 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22878 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22879 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22880 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22881 processing for (const (unspec ...)).
22882 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22883
22884 2014-02-20 Richard Biener <rguenther@suse.de>
22885
22886 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22887 doing the substitution.
22888 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22889
22890 2014-02-20 Martin Jambor <mjambor@suse.cz>
22891
22892 PR ipa/55260
22893 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22894 info when checking whether lattices are bottom.
22895
22896 2014-02-20 Richard Biener <rguenther@suse.de>
22897
22898 PR middle-end/60221
22899 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22900 regions at -O0.
22901
22902 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22903
22904 PR ipa/58555
22905 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22906 parameter specifying the scaling.
22907 (inline_call): Update.
22908 (want_inline_recursively): Guard division by zero.
22909 (recursive_inlining): Update.
22910 * ipa-inline.h (clone_inlined_nodes): Update.
22911
22912 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22913
22914 PR target/60204
22915 * config/i386/i386.c (classify_argument): Pass structures of size
22916 64 bytes or less in register.
22917
22918 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22919 Kirill Yukhin <kirill.yukhin@intel.com>
22920
22921 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22922 (_mm_rcp28_round_ss): Ditto.
22923 (_mm_rsqrt28_round_sd): Ditto.
22924 (_mm_rsqrt28_round_ss): Ditto.
22925 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22926 (_mm_rcp14_round_ss): Ditto.
22927 (_mm_rsqrt14_round_sd): Ditto.
22928 (_mm_rsqrt14_round_ss): Ditto.
22929 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22930 the first input operand, get rid of match_dup.
22931 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22932 attribute to sse.
22933 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22934 Ditto.
22935 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22936 operand as the first input operand, set type attribute.
22937 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22938 Set type attribute.
22939 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22940 operand as the first input operand, set type attribute.
22941
22942 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22943
22944 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22945 bit of zero.
22946
22947 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22948
22949 PR target/60207
22950 * config/i386/i386.c (construct_container): Remove TFmode check
22951 for X86_64_INTEGER_CLASS.
22952
22953 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22954
22955 PR target/59794
22956 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22957 only when -Wpsabi is enabled.
22958
22959 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22960
22961 PR target/59799
22962 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22963 passing arrays in registers are the same as for structs, so remove the
22964 special case for them.
22965
22966 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22967
22968 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22969 destination type, extract only the valid bits if the source type is not
22970 integral and has a different mode.
22971
22972 2014-02-19 Richard Biener <rguenther@suse.de>
22973
22974 PR ipa/60243
22975 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22976 for all calls.
22977
22978 2014-02-19 Richard Biener <rguenther@suse.de>
22979
22980 PR ipa/60243
22981 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22982 (ipa_modify_call_arguments): Emit an argument load explicitely and
22983 preserve virtual SSA form there and for the replacement call.
22984 Do not update SSA form nor free dominance info.
22985
22986 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22987
22988 * ipa.c (function_and_variable_visibility): Also clear WEAK
22989 flag when disolving COMDAT_GROUP.
22990
22991 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22992
22993 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22994 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22995 not devirtualizing.
22996 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22997 do more sanity checks.
22998 (detect_type_change): Return true when giving up early.
22999 (compute_complex_assign_jump_func): Fix type parameter of
23000 ipa_set_ancestor_jf.
23001 (compute_complex_ancestor_jump_func): Likewise.
23002 (update_jump_functions_after_inlining): Fix updating of
23003 ancestor function.
23004 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23005
23006 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23007
23008 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23009 inline clones when edge disappears.
23010
23011 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23012
23013 PR target/60203
23014 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23015 Split 64-bit moves into 2 patterns. Do not allow the use of
23016 direct move for TDmode in little endian, since the decimal value
23017 has little endian bytes within a word, but the 64-bit pieces are
23018 ordered in a big endian fashion, and normal subreg's of TDmode are
23019 not allowed.
23020 (mov<mode>_64bit_dm): Likewise.
23021 (movtd_64bit_nodm): Likewise.
23022
23023 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23024
23025 PR tree-optimization/60174
23026 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23027 statement of an SSA_NAME that occurs in an abnormal PHI node.
23028
23029 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23030
23031 PR sanitizer/60142
23032 * final.c (SEEN_BB): Remove.
23033 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23034 (final_scan_insn): Don't force_source_line on second
23035 NOTE_INSN_BASIC_BLOCK.
23036
23037 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23038
23039 PR target/60205
23040 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23041 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23042 (type_natural_mode): Warn ABI change when %zmm register is not
23043 available for AVX512F vector value passing.
23044
23045 2014-02-18 Kai Tietz <ktietz@redhat.com>
23046
23047 PR target/60193
23048 * config/i386/i386.c (ix86_expand_prologue): Use value in
23049 rax register as displacement when restoring %r10 or %rax.
23050 Fix wrong offset when restoring both registers.
23051
23052 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23053
23054 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23055 assertion with conditional return.
23056
23057 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23058 Uros Bizjak <ubizjak@gmail.com>
23059
23060 PR driver/60233
23061 * config/i386/driver-i386.c (host_detect_local_cpu): If
23062 YMM state is not saved by the OS, also clear has_f16c. Move
23063 CPUID 0x80000001 handling before YMM state saving checking.
23064
23065 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23066
23067 PR rtl-optimization/58960
23068 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23069 factored out from ...
23070 (sched_init): ... here.
23071 (free_global_sched_pressure_data): New, factored out from ...
23072 (sched_finish): ... here.
23073 * sched-int.h (free_global_sched_pressure_data): Declare.
23074 * sched-rgn.c (nr_regions_initial): New static global.
23075 (haifa_find_rgns): Initialize it.
23076 (schedule_region): Disable sched-pressure for the newly
23077 generated regions.
23078
23079 2014-02-17 Richard Biener <rguenther@suse.de>
23080
23081 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23082 release SSA defs of pattern stmts.
23083
23084 2014-02-17 Richard Biener <rguenther@suse.de>
23085
23086 * tree-inline.c (expand_call_inline): Release the virtual
23087 operand defined by the call we are about to inline.
23088
23089 2014-02-17 Richard Biener <rguenther@suse.de>
23090
23091 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23092
23093 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23094 Ilya Tocar <ilya.tocar@intel.com>
23095
23096 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23097 arguments order in builtin.
23098 (_mm512_permutexvar_epi64): Ditto.
23099 (_mm512_mask_permutexvar_epi64): Ditto
23100 (_mm512_maskz_permutexvar_epi32): Ditto
23101 (_mm512_permutexvar_epi32): Ditto
23102 (_mm512_mask_permutexvar_epi32): Ditto
23103
23104 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23105
23106 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23107 (p8_vmrgow): Likewise.
23108
23109 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23110
23111 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23112 endian targets.
23113
23114 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23115
23116 PR target/60203
23117 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23118 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23119 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23120 using direct move instructions on ISA 2.07. Also adjust
23121 instruction length for 64-bit.
23122 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23123 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23124
23125 2014-02-15 Alan Modra <amodra@gmail.com>
23126
23127 PR target/58675
23128 PR target/57935
23129 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23130 find_replacement on parts of insn rtl that might be reloaded.
23131
23132 2014-02-15 Richard Biener <rguenther@suse.de>
23133
23134 PR tree-optimization/60183
23135 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23136 (tree_ssa_phiprop): Calculate and free post-dominators.
23137
23138 2014-02-14 Jeff Law <law@redhat.com>
23139
23140 PR rtl-optimization/60131
23141 * ree.c (get_extended_src_reg): New function.
23142 (combine_reaching_defs): Use it rather than assuming location of REG.
23143 (find_and_remove_re): Verify first operand of extension is
23144 a REG before adding the insns to the copy list.
23145
23146 2014-02-14 Roland McGrath <mcgrathr@google.com>
23147
23148 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23149 * configure: Regenerated.
23150 * config.in: Regenerated.
23151 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23152 instead of ASM_SHORT.
23153
23154 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23155 Richard Earnshaw <rearnsha@arm.com>
23156
23157 PR rtl-optimization/59535
23158 * lra-constraints.c (process_alt_operands): Encourage alternative
23159 when unassigned pseudo class is superset of the alternative class.
23160 (inherit_reload_reg): Don't inherit when optimizing for code size.
23161 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23162 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23163 modes not less than 4 for Thumb1.
23164
23165 2014-02-14 Kyle McMartin <kyle@redhat.com>
23166
23167 PR pch/60010
23168 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23169
23170 2014-02-14 Richard Biener <rguenther@suse.de>
23171
23172 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23173 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23174 Do not strip INDIRECT_REFs.
23175
23176 2014-02-14 Richard Biener <rguenther@suse.de>
23177
23178 PR lto/60179
23179 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23180 DECL_FUNCTION_SPECIFIC_TARGET.
23181 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23182 * tree-streamer-out.c (pack_ts_target_option): Remove.
23183 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23184 (write_ts_function_decl_tree_pointers): Do not stream
23185 DECL_FUNCTION_SPECIFIC_TARGET.
23186 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23187 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23188 (lto_input_ts_function_decl_tree_pointers): Do not stream
23189 DECL_FUNCTION_SPECIFIC_TARGET.
23190
23191 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23192
23193 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23194 (get_initial_def_for_induction, vectorizable_induction): Ignore
23195 debug stmts when looking for exit_phi.
23196 (vectorizable_live_operation): Fix up condition.
23197
23198 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23199
23200 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23201 nreverse() because it changes the content of original tree list.
23202
23203 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23204
23205 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23206 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23207
23208 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23209
23210 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23211 GNU coding standards.
23212
23213 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23214
23215 PR debug/60152
23216 * dwarf2out.c (gen_subprogram_die): Don't call
23217 add_calling_convention_attribute if subr_die is old_die.
23218
23219 2014-02-13 Sharad Singhai <singhai@google.com>
23220
23221 * doc/optinfo.texi: Fix order of nodes.
23222
23223 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23224
23225 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23226 operands[2], not operands[3].
23227
23228 2014-02-13 Richard Biener <rguenther@suse.de>
23229
23230 PR bootstrap/59878
23231 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23232 mention the possibility of an in-tree build.
23233 (CLooG): Update recommended version to 0.18.1, mention the
23234 possibility of an in-tree build and clarify that the ISL
23235 bundled with CLooG does not work.
23236
23237 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23238
23239 PR target/43546
23240 * expr.c (compress_float_constant): If x is a hard register,
23241 extend into a pseudo and then move to x.
23242
23243 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23244
23245 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23246 caused by bad second argument to warning_at() with -mhotpatch and
23247 nested functions (e.g. with gfortran).
23248
23249 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23250
23251 * opts.c (option_name): Remove "enabled by default" rider.
23252
23253 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23254
23255 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23256
23257 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23258 Uros Bizjak <ubizjak@gmail.com>
23259
23260 PR target/60151
23261 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23262 * configure: Regenerated.
23263
23264 2014-02-12 Richard Biener <rguenther@suse.de>
23265
23266 * vec.c (vec_prefix::calculate_allocation): Move as
23267 inline variant to vec.h.
23268 (vec_prefix::calculate_allocation_1): New out-of-line version.
23269 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23270 (vec_prefix::m_has_auto_buf): Rename to ...
23271 (vec_prefix::m_using_auto_storage): ... this.
23272 (vec_prefix::calculate_allocation): Inline the easy cases
23273 and dispatch to calculate_allocation_1 which doesn't need the
23274 prefix address.
23275 (va_heap::reserve): Use gcc_checking_assert.
23276 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23277 m_using_auto_storage.
23278 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23279 member and adjust.
23280 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23281 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23282 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23283
23284 2014-02-12 Richard Biener <rguenther@suse.de>
23285
23286 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23287 when we found a dependence.
23288
23289 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23290
23291 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23292 common code...
23293 (maybe_fold_stmt): ... into this new function.
23294 * omp-low.c (lower_omp): Update comment.
23295
23296 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23297 last use.
23298
23299 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23300 dereference.
23301
23302 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23303
23304 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23305 identifiers in comments.
23306 (cortexa53_extra_costs): Likewise.
23307 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23308 (cortexa7_extra_costs): Likewise.
23309 (cortexa12_extra_costs): Likewise.
23310 (cortexa15_extra_costs): Likewise.
23311 (v7m_extra_costs): Likewise.
23312
23313 2014-02-12 Richard Biener <rguenther@suse.de>
23314
23315 PR middle-end/60092
23316 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23317 of posix_memalign being successful.
23318 (lower_stmt): Restrict lowering of posix_memalign to when
23319 -ftree-bit-ccp is enabled.
23320
23321 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23322
23323 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23324 arg_loc.
23325 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23326
23327 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23328
23329 PR rtl-optimization/60116
23330 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23331 other_insn once the combination has been validated.
23332
23333 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23334
23335 PR lto/59468
23336 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23337 and wrapper.
23338 * ipa-devirt.c: Include demangle.h
23339 (odr_violation_reported): New static variable.
23340 (add_type_duplicate): Update odr_violations.
23341 (maybe_record_node): Add completep parameter; update it.
23342 (record_target_from_binfo): Add COMPLETEP parameter;
23343 update it as needed.
23344 (possible_polymorphic_call_targets_1): Likewise.
23345 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23346 rename FINAL to COMPLETE.
23347 (record_targets_from_bases): Sanity check we found the binfo;
23348 fix COMPLETEP updating.
23349 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23350 parameter, fix computing of COMPLETEP.
23351 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23352 at LTO time do demangling.
23353 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23354 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23355 parameter.
23356 (gimple_get_virt_method_for_binfo): Likewise.
23357 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23358 gimple_get_virt_method_for_vtable): Update prototypes.
23359
23360 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23361
23362 PR target/49008
23363 * genautomata.c (add_presence_absence): Fix typo with
23364 {final_}presence_list.
23365
23366 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23367
23368 PR target/60137
23369 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23370 for VSX/Altivec vectors that land in GPR registers.
23371
23372 2014-02-11 Richard Henderson <rth@redhat.com>
23373 Jakub Jelinek <jakub@redhat.com>
23374
23375 PR debug/59776
23376 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23377 around drhs if type conversion to lacc->type is not useless.
23378
23379 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23380
23381 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23382 tuning struct.
23383 (cortex-a57.cortex-a53): Likewise.
23384 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23385
23386 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23387
23388 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23389 arm_restrict_it.
23390
23391 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23392
23393 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23394 add_options_for_arm_vfp3.
23395
23396 2014-02-11 Jeff Law <law@redhat.com>
23397
23398 PR middle-end/54041
23399 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23400 object with an undesirable mode.
23401
23402 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23403
23404 PR libgomp/60107
23405 * config/i386/sol2-9.h: New file.
23406 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23407 *-*-solaris2.9*): Use it.
23408
23409 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23410
23411 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23412 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23413
23414 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23415
23416 * config/microblaze/microblaze.c: Extend mcpu version format
23417
23418 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23419
23420 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23421
23422 2014-02-10 Richard Henderson <rth@redhat.com>
23423
23424 PR target/59927
23425 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23426 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23427 ms-abi vs -mno-accumulate-outgoing-args.
23428 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23429 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23430 respect to ms-abi.
23431
23432 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23433
23434 PR middle-end/60080
23435 * cfgexpand.c (expand_asm_operands): Attach source location to
23436 ASM_INPUT rtx objects.
23437 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23438
23439 2014-02-10 Nick Clifton <nickc@redhat.com>
23440
23441 * config/mn10300/mn10300.c (popcount): New function.
23442 (mn10300_expand_prologue): Include saved registers in stack usage
23443 count.
23444
23445 2014-02-10 Jeff Law <law@redhat.com>
23446
23447 PR middle-end/52306
23448 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23449 when changing the SET_DEST of a prior insn to avoid an input reload.
23450
23451 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23452
23453 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23454 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23455 -mcall-openbsd, or -mcall-linux.
23456 (CC1_ENDIAN_BIG_SPEC): Remove.
23457 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23458 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23459 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23460 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23461 and %cc1_endian_default.
23462 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23463
23464 2014-02-10 Richard Biener <rguenther@suse.de>
23465
23466 PR tree-optimization/60115
23467 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23468 MEM_REF handling. Properly verify that the accesses are not
23469 out of the objects bound.
23470
23471 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23472
23473 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23474 coretex to cortex.
23475
23476 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23477
23478 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23479 proper constants and fix formatting.
23480 (possible_polymorphic_call_targets): Fix formatting.
23481
23482 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23483 Ilya Tocar <ilya.tocar@intel.com>
23484
23485 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23486 (_mm512_loadu_epi32): Renamed into...
23487 (_mm512_loadu_si512): This.
23488 (_mm512_storeu_epi32): Renamed into...
23489 (_mm512_storeu_si512): This.
23490 (_mm512_maskz_ceil_ps): Removed.
23491 (_mm512_maskz_ceil_pd): Ditto.
23492 (_mm512_maskz_floor_ps): Ditto.
23493 (_mm512_maskz_floor_pd): Ditto.
23494 (_mm512_floor_round_ps): Ditto.
23495 (_mm512_floor_round_pd): Ditto.
23496 (_mm512_ceil_round_ps): Ditto.
23497 (_mm512_ceil_round_pd): Ditto.
23498 (_mm512_mask_floor_round_ps): Ditto.
23499 (_mm512_mask_floor_round_pd): Ditto.
23500 (_mm512_mask_ceil_round_ps): Ditto.
23501 (_mm512_mask_ceil_round_pd): Ditto.
23502 (_mm512_maskz_floor_round_ps): Ditto.
23503 (_mm512_maskz_floor_round_pd): Ditto.
23504 (_mm512_maskz_ceil_round_ps): Ditto.
23505 (_mm512_maskz_ceil_round_pd): Ditto.
23506 (_mm512_expand_pd): Ditto.
23507 (_mm512_expand_ps): Ditto.
23508 * config/i386/i386.c (ix86_builtins): Remove
23509 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23510 (bdesc_args): Ditto.
23511 * config/i386/predicates.md (const1256_operand): New.
23512 (const_1_to_2_operand): Ditto.
23513 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23514 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23515 (*avx512pf_gatherpf<mode>sf): Ditto.
23516 (avx512pf_gatherpf<mode>df): Ditto.
23517 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23518 (*avx512pf_gatherpf<mode>df): Ditto.
23519 (avx512pf_scatterpf<mode>sf): Ditto.
23520 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23521 (*avx512pf_scatterpf<mode>sf): Ditto.
23522 (avx512pf_scatterpf<mode>df): Ditto.
23523 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23524 (*avx512pf_scatterpf<mode>df): Ditto.
23525 (avx512f_expand<mode>): Removed.
23526 (<shift_insn><mode>3<mask_name>): Change predicate type.
23527
23528 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23529
23530 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23531 not at the end of datarefs vector use ordered_remove to avoid
23532 reordering datarefs vector.
23533
23534 PR c/59984
23535 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23536 mark local addressable non-static vars as GOVD_PRIVATE
23537 instead of GOVD_LOCAL.
23538 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23539 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23540 than copying them.
23541
23542 PR middle-end/60092
23543 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23544 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23545 assume_aligned or alloc_align attributes.
23546 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23547 arguments. Handle also assume_aligned and alloc_align attributes.
23548 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23549 calls to functions with assume_aligned or alloc_align attributes.
23550 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23551
23552 2014-02-08 Terry Guo <terry.guo@arm.com>
23553
23554 * doc/invoke.texi: Document ARM -march=armv7e-m.
23555
23556 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23557
23558 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23559 flag on __cilkrts_rethrow builtin.
23560
23561 PR ipa/60026
23562 * ipa-cp.c (determine_versionability): Fail at -O0
23563 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23564 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23565
23566 Revert:
23567 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23568
23569 PR ipa/60026
23570 * tree-inline.c (copy_forbidden): Fail for
23571 __attribute__((optimize (0))) functions.
23572
23573 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23574
23575 * varpool.c: Include pointer-set.h.
23576 (varpool_remove_unreferenced_decls): Variables in other partitions
23577 will not be output; be however careful to not lose information
23578 about partitioning.
23579
23580 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23581
23582 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23583 lookup in the vtable constructor.
23584
23585 2014-02-07 Jeff Law <law@redhat.com>
23586
23587 PR target/40977
23588 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23589 define_insn_and_split.
23590
23591 * ipa-inline.c (inline_small_functions): Fix typos.
23592
23593 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23594
23595 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23596 (s390_can_use_return_insn): Declare.
23597 * config/s390/s390.h (EPILOGUE_USES): Define.
23598 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23599 instructions.
23600 (s390_chunkify_start): Handle return JUMP_LABELs.
23601 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23602 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23603 (s390_can_use_return_insn): New functions.
23604 (s390_fix_long_loop_prediction): Handle conditional returns.
23605 (TARGET_SET_UP_BY_PROLOGUE): Define.
23606 * config/s390/s390.md (ANY_RETURN): New code iterator.
23607 (*creturn, *csimple_return, return, simple_return): New patterns.
23608
23609 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23610
23611 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23612 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23613 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23614 REG_CFA_RESTORE list when deciding not to restore a register.
23615
23616 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23617
23618 * config/s390/s390.c: Include tree-pass.h and context.h.
23619 (s390_early_mach): New function, split out from...
23620 (s390_emit_prologue): ...here.
23621 (pass_data_s390_early_mach): New pass structure.
23622 (pass_s390_early_mach): New class.
23623 (s390_option_override): Create and register early_mach pass.
23624 Move to end of file.
23625
23626 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23627
23628 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23629 to match for the exit block.
23630
23631 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23632
23633 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23634 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23635 Reject misaligned operands.
23636
23637 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23638
23639 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23640
23641 2014-02-07 Richard Biener <rguenther@suse.de>
23642
23643 PR middle-end/60092
23644 * gimple-low.c (lower_builtin_posix_memalign): New function.
23645 (lower_stmt): Call it to lower posix_memalign in a way
23646 to make alignment info accessible.
23647
23648 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23649
23650 PR c++/60082
23651 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23652 __builtin_setjmp_receiver.
23653
23654 2014-02-07 Richard Biener <rguenther@suse.de>
23655
23656 PR middle-end/60092
23657 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23658 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23659 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23660 Handle BUILT_IN_POSIX_MEMALIGN.
23661 (find_func_clobbers): Likewise.
23662 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23663 (call_may_clobber_ref_p_1): Likewise.
23664
23665 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23666
23667 PR ipa/59918
23668 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23669 sanity check.
23670
23671 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23672
23673 PR ipa/59469
23674 * lto-cgraph.c (lto_output_node): Use
23675 symtab_get_symbol_partitioning_class.
23676 (lto_output_varpool_node): likewise.
23677 (symtab_get_symbol_partitioning_class): Move here from
23678 lto/lto-partition.c
23679 * cgraph.h (symbol_partitioning_class): Likewise.
23680 (symtab_get_symbol_partitioning_class): Declare.
23681
23682 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23683
23684 * ggc.h (ggc_internal_cleared_alloc): New macro.
23685 * vec.h (vec_safe_copy): Handle memory stats.
23686 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23687 * target-globals.c (save_target_globals): Likewise.
23688
23689 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23690
23691 PR target/60077
23692 * expr.c (emit_move_resolve_push): Export; be bit more selective
23693 on when to clear alias set.
23694 * expr.h (emit_move_resolve_push): Declare.
23695 * function.h (struct function): Add tail_call_marked.
23696 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23697 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23698 * config/i386/i386.md (TImode move expander): De not call
23699 ix86_expand_push.
23700 (FP push expanders): Preserve memory attributes.
23701 * config/i386/sse.md (push<mode>1): Remove.
23702 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23703 (ix86_expand_push): Remove.
23704 * config/i386/mmx.md (push<mode>1): Remove.
23705
23706 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23707
23708 PR rtl-optimization/60030
23709 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23710 lopart with paradoxical subreg before shifting it up by hprec.
23711
23712 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23713
23714 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23715 Remove extra newline at end of file.
23716 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23717 (arm_issue_rate): Handle cortexa57.
23718 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23719 (cortex-a57.cortex-a53): Likewise.
23720
23721 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23722
23723 PR target/59575
23724 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23725 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23726 bitmask.
23727 (arm_expand_prologue): Adjust all callers.
23728 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23729 info, registers also at the lowest numbered registers side. Use
23730 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23731 XEXP.
23732
23733 PR debug/59992
23734 * var-tracking.c (adjust_mems): Before adding a SET to
23735 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23736
23737 2014-02-06 Alan Modra <amodra@gmail.com>
23738
23739 PR target/60032
23740 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23741 change SDmode to DDmode when lra_in_progress.
23742
23743 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23744
23745 PR middle-end/59150
23746 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23747 free_data_ref on the dr first, and before goto again also set dr
23748 to the next dr. For simd_lane_access, free old datarefs[i] before
23749 overwriting it. For get_vectype_for_scalar_type failure, don't
23750 free_data_ref if simd_lane_access.
23751
23752 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23753
23754 PR target/60062
23755 * tree.h (opts_for_fn): New inline function.
23756 (opt_for_fn): Define.
23757 * config/i386/i386.c (ix86_function_regparm): Use
23758 opt_for_fn (decl, optimize) instead of optimize.
23759
23760 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23761
23762 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23763 for SYMBOL_REF in large memory model.
23764
23765 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23766
23767 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23768 and crypto support.
23769 (cortex-a57): Likewise.
23770 (cortex-a57.cortex-a53): Likewise.
23771
23772 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23773 Kugan Vivekanandarajah <kuganv@linaro.org>
23774
23775 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23776 unaligned_access.
23777 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23778
23779 2014-02-06 Richard Biener <rguenther@suse.de>
23780
23781 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23782 set_loop_copy and initialize_original_copy_tables.
23783
23784 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23785
23786 * config/aarch64/aarch64-simd.md
23787 (aarch64_ashr_simddi): Change QI to SI.
23788
23789 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23790 Jakub Jelinek <jakub@redhat.com>
23791
23792 PR middle-end/60013
23793 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23794 of the dataflow.
23795
23796 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23797
23798 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23799 CODE_FOR_altivec_vpku[hw]um to
23800 CODE_FOR_altivec_vpku[hw]um_direct.
23801 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23802 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23803 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23804 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23805
23806 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23807
23808 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23809 generation for -maltivec=be.
23810 (altivec_vsumsws): Simplify redundant test.
23811
23812 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23813
23814 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23815 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23816 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23817 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23818 gen_altivec_vpkuwum.
23819 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23820 BYTES_BIG_ENDIAN.
23821 (altivec_vpks<VI_char>ss): Likewise.
23822 (altivec_vpks<VI_char>us): Likewise.
23823 (altivec_vpku<VI_char>us): Likewise.
23824 (altivec_vpku<VI_char>um): Likewise.
23825 (altivec_vpku<VI_char>um_direct): New (copy of
23826 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23827 internal use).
23828 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23829 target is little endian and -maltivec=be is not specified.
23830 (*altivec_vupkhs<VU_char>_direct): New (copy of
23831 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23832 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23833 target is little endian and -maltivec=be is not specified.
23834 (*altivec_vupkls<VU_char>_direct): New (copy of
23835 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23836 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23837 little endian and -maltivec=be is not specified.
23838 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23839 little endian and -maltivec=be is not specified.
23840
23841 2014-02-05 Richard Henderson <rth@redhat.com>
23842
23843 PR debug/52727
23844 * combine-stack-adj.c: Revert r206943.
23845 * sched-int.h (struct deps_desc): Add last_args_size.
23846 * sched-deps.c (init_deps): Initialize it.
23847 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23848 contain REG_ARGS_SIZE notes.
23849
23850 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23851
23852 * lto-cgraph.c (asm_nodes_output): Make global.
23853 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23854 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23855 (driver_handle_option): Handle OPT_fwpa.
23856
23857 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23858
23859 PR ipa/59947
23860 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23861 a comment typo and formatting issue. If odr_hash hasn't been
23862 created, return vNULL and set *completep to false.
23863
23864 PR middle-end/57499
23865 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23866 bb with no successors.
23867
23868 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23869
23870 PR target/59718
23871 * doc/invoke.texi (-march): Clarify documentation for ARM.
23872 (-mtune): Likewise.
23873 (-mcpu): Likewise.
23874
23875 2014-02-05 Richard Biener <rguenther@suse.de>
23876
23877 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23878 when not vectorizing because of too many alias checks.
23879 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23880 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23881
23882 2014-02-05 Nick Clifton <nickc@redhat.com>
23883
23884 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23885 accept extended registers in any mode when compiling for the MN10300.
23886
23887 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23888
23889 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23890 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23891 sanitization attributes.
23892 (can_inline_edge_p): Likewise.
23893 (sanitize_attrs_match_for_inline_p): New function.
23894
23895 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23896
23897 * ipa-prop.c (detect_type_change): Shor circuit testing of
23898 type changes on THIS pointer.
23899
23900 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23901
23902 PR target/59777
23903 * config/pa/pa.c (legitimize_tls_address): Return original address
23904 if not passed a SYMBOL_REF rtx.
23905 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23906 addresses.
23907 (pa_emit_move_sequence): Simplify TLS source operands.
23908 (pa_legitimate_constant_p): Reject all TLS constants.
23909 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23910 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23911
23912 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23913
23914 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23915 groups when we know they are controlled by LTO.
23916 * varasm.c (default_binds_local_p_1): If object is in other partition,
23917 it will be resolved locally.
23918
23919 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23920
23921 * config/host-linux.c (linux_gt_pch_use_address): Don't
23922 use SSIZE_MAX because it is not always defined.
23923
23924 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23925
23926 PR bootstrap/59913
23927 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23928 threshold for pseudo splitting.
23929 (update_ebb_live_info): Process call argument hard registers and
23930 hard registers from insn definition too.
23931 (max_small_class_regs_num): New constant.
23932 (inherit_in_ebb): Update live hard regs through EBBs. Update
23933 reloads_num only for small register classes. Don't split for
23934 outputs of jumps.
23935
23936 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23937
23938 PR ipa/60058
23939 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23940 is non-null.
23941
23942 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23943
23944 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23945 visibility is safe.
23946
23947 2014-02-04 Marek Polacek <polacek@redhat.com>
23948
23949 * gdbinit.in (pel): Define.
23950
23951 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23952
23953 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23954 behavior.
23955
23956 2014-02-04 Richard Biener <rguenther@suse.de>
23957
23958 PR lto/59723
23959 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23960 in function context local.
23961 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23962 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23963 similar to LTO_imported_decl_ref.
23964
23965 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23966
23967 PR tree-optimization/60002
23968 * cgraphclones.c (build_function_decl_skip_args): Clear
23969 DECL_LANG_SPECIFIC.
23970
23971 PR tree-optimization/60023
23972 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23973 false to gsi_replace.
23974 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23975 has been in some EH region and vec_stmt could throw, add
23976 vec_stmt into the same EH region.
23977 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23978 has no lhs, ignore it.
23979 * internal-fn.c (expand_MASK_LOAD): Likewise.
23980
23981 PR ipa/60026
23982 * tree-inline.c (copy_forbidden): Fail for
23983 __attribute__((optimize (0))) functions.
23984
23985 PR other/58712
23986 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23987 is set, copy one less argument.
23988 (expand_simd_clones): Don't subtract clone_info->inbranch
23989 from simd_clone_struct_alloc argument.
23990
23991 PR rtl-optimization/57915
23992 * recog.c (simplify_while_replacing): If all unary/binary/relational
23993 operation arguments are constant, attempt to simplify those.
23994
23995 PR middle-end/59261
23996 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23997 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23998
23999 2014-02-04 Richard Biener <rguenther@suse.de>
24000
24001 PR tree-optimization/60012
24002 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24003 TBAA disambiguation to all DDRs.
24004
24005 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24006
24007 PR target/59788
24008 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24009 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24010
24011 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24012
24013 PR ipa/59882
24014 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24015
24016 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24017
24018 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24019 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24020
24021 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24022
24023 PR ipa/59831
24024 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24025 to figure out targets of polymorphic calls with known decl.
24026 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24027 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24028 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24029 (get_polymorphic_call_info): ... here.
24030 (get_polymorphic_call_info_from_invariant): New function.
24031
24032 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24033
24034 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24035 lookup via vtable pointer; check for type consistency
24036 and turn inconsitent facts into UNREACHABLE.
24037 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24038 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24039 type inconsistent querries; return UNREACHABLE instead.
24040
24041 2014-02-03 Richard Henderson <rth@twiddle.net>
24042
24043 PR tree-opt/59924
24044 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24045 already processed this node.
24046 (normalize_one_pred_1): Pass along mark_set.
24047 (normalize_one_pred): Create and destroy a pointer_set_t.
24048 (normalize_one_pred_chain): Likewise.
24049
24050 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24051
24052 PR gcov-profile/58602
24053 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24054
24055 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24056
24057 PR ipa/59831
24058 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24059 -fno-devirtualize; try to devirtualize by the knowledge of
24060 virtual table pointer given by aggregate propagation.
24061 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24062 (ipa_print_node_jump_functions): Dump also offset that
24063 is relevant for polymorphic calls.
24064 (determine_known_aggregate_parts): Add arg_type parameter; use it
24065 instead of determining the type from pointer type.
24066 (ipa_compute_jump_functions_for_edge): Update call of
24067 determine_known_aggregate_parts.
24068 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24069 (gimple_get_virt_method_for_binfo): ... here; simplify using
24070 vtable_pointer_value_to_vtable.
24071 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24072 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24073 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24074 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24075 POINTER_PLUS_EXPR.
24076 (vtable_pointer_value_to_binfo): ... here.
24077 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24078
24079 2014-02-03 Teresa Johnson <tejohnson@google.com>
24080
24081 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24082 redef of outer loop index variable.
24083
24084 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24085
24086 PR c++/53017
24087 PR c++/59211
24088 * doc/extend.texi (Function Attributes): Typo.
24089
24090 2014-02-03 Cong Hou <congh@google.com>
24091
24092 PR tree-optimization/60000
24093 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24094 if the vectorized statement is a store. A store statement can only
24095 appear at the end of pattern statements.
24096
24097 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24098
24099 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24100 (ix86_option_override_internal): Default long double to 64-bit for
24101 32-bit Bionic and to 128-bit for 64-bit Bionic.
24102
24103 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24104 TARGET_LONG_DOUBLE_128 is true.
24105 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24106
24107 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24108 (mlong-double-64): Negate -mlong-double-128.
24109 (mlong-double-128): New option.
24110
24111 * config/i386/i386-c.c (ix86_target_macros): Define
24112 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24113
24114 * doc/invoke.texi: Document -mlong-double-128.
24115
24116 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24117
24118 PR rtl-optimization/60024
24119 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24120
24121 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24122
24123 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24124
24125 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24126
24127 PR rtl-optimization/57662
24128 * sel-sched.c (code_motion_path_driver): Do not mark already not
24129 existing blocks in the visiting bitmap.
24130
24131 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24132
24133 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24134 on the insn being emitted.
24135
24136 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24137 Will Deacon <will.deacon@arm.com>
24138
24139 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24140
24141 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24142
24143 * config/arm/arm-tables.opt: Regenerate.
24144
24145 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24146
24147 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24148 for vector types other than V16QImode.
24149 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24150 define_expand, and call altivec_expand_vec_perm_le when producing
24151 code with little endian element order.
24152 (*altivec_vperm_<mode>_internal): New insn having previous
24153 behavior of altivec_vperm_<mode>.
24154 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24155 altivec_expand_vec_perm_le when producing code with little endian
24156 element order.
24157 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24158 behavior of altivec_vperm_<mode>_uns.
24159
24160 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24161
24162 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24163 (altivec_vsumsws): Add handling for -maltivec=be with a little
24164 endian target.
24165 (altivec_vsumsws_direct): New.
24166 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24167 gen_altivec_vsumsws.
24168
24169 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24170
24171 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24172 vtable_pointer_value_to_binfo): New functions.
24173 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24174 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24175
24176 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24177
24178 * config/nios2/nios2.md (load_got_register): Initialize GOT
24179 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24180 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24181
24182 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24183
24184 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24185 preserverd by passthrough, do not propagate the type.
24186
24187 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24188
24189 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24190 (mips_atomic_assign_expand_fenv): New function.
24191 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24192
24193 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24194
24195 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24196 (__builtin_mips_set_fcsr): Likewise.
24197 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24198 MIPS_USI_FTYPE_VOID.
24199 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24200 (mips16_expand_set_fcsr): Likewise.
24201 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24202 (mips16_set_fcsr_stub): Likewise.
24203 (mips16_get_fcsr_one_only_stub): New class.
24204 (mips16_set_fcsr_one_only_stub): Likewise.
24205 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24206 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24207 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24208 (hard_float): New availability predicate.
24209 (mips_builtins): Add get_fcsr and set_fcsr.
24210 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24211 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24212 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24213 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24214 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24215 patterns.
24216
24217 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24218
24219 * config/mips/mips.c (mips_one_only_stub): New class.
24220 (mips_need_mips16_rdhwr_p): Replace with...
24221 (mips16_rdhwr_stub): ...this new variable.
24222 (mips16_stub_call_address): New function.
24223 (mips16_rdhwr_one_only_stub): New class.
24224 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24225 (mips_output_mips16_rdhwr): Delete.
24226 (mips_finish_stub): New function.
24227 (mips_code_end): Use it to handle rdhwr stubs.
24228
24229 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24230
24231 PR target/60017
24232 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24233 when calculating size of integer atomic types.
24234
24235 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24236
24237 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24238
24239 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24240
24241 PR tree-optimization/60003
24242 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24243 * profile.c (branch_prob): Use gimple_call_builtin_p
24244 to check for BUILT_IN_SETJMP_RECEIVER.
24245 * tree-inline.c (copy_bb): Call notice_special_calls.
24246
24247 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24248
24249 PR bootstrap/59985
24250 * lra-constraints.c (process_alt_operands): Update reload_sum only
24251 on the first pass.
24252
24253 2014-01-31 Richard Henderson <rth@redhat.com>
24254
24255 PR middle-end/60004
24256 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24257 until after else_eh is processed.
24258
24259 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24260
24261 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24262 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24263 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24264 in smmintrin.h, remove them.
24265 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24266 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24267 * config/i386/i386.md (ROUND_SAE): Fix value.
24268 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24269 (const48_operand): New.
24270 * config/i386/subst.md (round), (round_expand): Use
24271 const_4_or_8_to_11_operand.
24272 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24273
24274 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24275
24276 * config/i386/constraints.md (Yk): Swap meaning with k.
24277 * config/i386/i386.md (movhi_internal): Change Yk to k.
24278 (movqi_internal): Ditto.
24279 (*k<logic><mode>): Ditto.
24280 (*andhi_1): Ditto.
24281 (*andqi_1): Ditto.
24282 (kandn<mode>): Ditto.
24283 (*<code>hi_1): Ditto.
24284 (*<code>qi_1): Ditto.
24285 (kxnor<mode>): Ditto.
24286 (kortestzhi): Ditto.
24287 (kortestchi): Ditto.
24288 (kunpckhi): Ditto.
24289 (*one_cmplhi2_1): Ditto.
24290 (*one_cmplqi2_1): Ditto.
24291 * config/i386/sse.md (): Change k to Yk.
24292 (avx512f_load<mode>_mask): Ditto.
24293 (avx512f_blendm<mode>): Ditto.
24294 (avx512f_store<mode>_mask): Ditto.
24295 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24296 (avx512f_storedqu<mode>_mask): Ditto.
24297 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24298 Ditto.
24299 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24300 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24301 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24302 (avx512f_maskcmp<mode>3): Ditto.
24303 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24304 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24305 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24306 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24307 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24308 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24309 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24310 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24311 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24312 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24313 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24314 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24315 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24316 (vec_extract_lo_<mode>_maskm): Ditto.
24317 (vec_extract_hi_<mode>_maskm): Ditto.
24318 (avx512f_vternlog<mode>_mask): Ditto.
24319 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24320 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24321 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24322 (avx512f_<code>v8div16qi2_mask): Ditto.
24323 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24324 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24325 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24326 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24327 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24328 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24329 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24330 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24331 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24332 (avx512cd_maskb_vec_dupv8di): Ditto.
24333 (avx512cd_maskw_vec_dupv16si): Ditto.
24334 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24335 (avx512f_vpermi2var<mode>3_mask): Ditto.
24336 (avx512f_vpermi2var<mode>3_mask): Ditto.
24337 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24338 (*avx512f_gathersi<mode>): Ditto.
24339 (*avx512f_gathersi<mode>_2): Ditto.
24340 (*avx512f_gatherdi<mode>): Ditto.
24341 (*avx512f_gatherdi<mode>_2): Ditto.
24342 (*avx512f_scattersi<mode>): Ditto.
24343 (*avx512f_scatterdi<mode>): Ditto.
24344 (avx512f_compress<mode>_mask): Ditto.
24345 (avx512f_compressstore<mode>_mask): Ditto.
24346 (avx512f_expand<mode>_mask): Ditto.
24347 * config/i386/subst.md (mask): Change k to Yk.
24348 (mask_scalar_merge): Ditto.
24349 (sd): Ditto.
24350
24351 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24352
24353 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24354
24355 2014-01-31 Richard Biener <rguenther@suse.de>
24356
24357 PR middle-end/59990
24358 * builtins.c (fold_builtin_memory_op): Make sure to not
24359 use a floating-point mode or a boolean or enumeral type for
24360 the copy operation.
24361
24362 2014-01-30 DJ Delorie <dj@redhat.com>
24363
24364 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24365 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24366 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24367 whenever main() has an epilogue.
24368
24369 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24370
24371 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24372 unused variable "field".
24373 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24374 (vsx_mergeh_<mode>): Likewise.
24375 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24376 (altivec_vmrghh): Likewise.
24377 (altivec_vmrghw): Likewise.
24378 (altivec_vmrglb): Likewise.
24379 (altivec_vmrglh): Likewise.
24380 (altivec_vmrglw): Likewise.
24381 (altivec_vspltb): Add missing uses.
24382 (altivec_vsplth): Likewise.
24383 (altivec_vspltw): Likewise.
24384 (altivec_vspltsf): Likewise.
24385
24386 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24387
24388 PR target/59923
24389 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24390 frame related instructions.
24391
24392 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24393
24394 PR rtl-optimization/59959
24395 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24396 any reload of register whose subreg is invalid.
24397
24398 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24399
24400 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24401 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24402 Add missing return type - void.
24403
24404 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24405
24406 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24407 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24408 remove element index adjustment for endian (now handled in vsx.md
24409 and altivec.md).
24410 (altivec_expand_vec_perm_const): Use
24411 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24412 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24413 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24414 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24415 define_expand and a new define_insn *altivec_vspltb_internal;
24416 adjust for -maltivec=be on a little endian target.
24417 (altivec_vspltb_direct): New.
24418 (altivec_vsplth): Divide into a define_expand and a new
24419 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24420 little endian target.
24421 (altivec_vsplth_direct): New.
24422 (altivec_vspltw): Divide into a define_expand and a new
24423 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24424 little endian target.
24425 (altivec_vspltw_direct): New.
24426 (altivec_vspltsf): Divide into a define_expand and a new
24427 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24428 a little endian target.
24429
24430 2014-01-30 Richard Biener <rguenther@suse.de>
24431
24432 PR tree-optimization/59993
24433 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24434 can propagate form the earlier stmt and avoid the transform
24435 when the intermediate result is needed.
24436
24437 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24438
24439 * README.Portability: Fix typo.
24440
24441 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24442
24443 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24444 comparison_operator with ordered_comparison_operator.
24445
24446 2014-01-30 Nick Clifton <nickc@redhat.com>
24447
24448 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24449 Rename to mn10300_store_multiple_regs.
24450 * config/mn10300/mn10300.c: Likewise.
24451 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24452 store_multiple_regs.
24453 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24454 Call mn10300_store_multiple_regs.
24455
24456 2014-01-30 Nick Clifton <nickc@redhat.com>
24457 DJ Delorie <dj@redhat.com>
24458
24459 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24460 %fp 2 to keep registers after it properly word-aligned.
24461 (rl78_alloc_physical_registers_umul): Handle the case where both
24462 input operands are the same.
24463
24464 2014-01-30 Richard Biener <rguenther@suse.de>
24465
24466 PR tree-optimization/59903
24467 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24468 check properly.
24469
24470 2014-01-30 Jason Merrill <jason@redhat.com>
24471
24472 PR c++/59633
24473 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24474
24475 PR c++/59645
24476 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24477
24478 2014-01-30 Richard Biener <rguenther@suse.de>
24479
24480 PR tree-optimization/59951
24481 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24482
24483 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24484
24485 PR target/59784
24486 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24487 SFmode to DFmode case.
24488
24489 2014-01-29 DJ Delorie <dj@redhat.com>
24490
24491 * config/msp430/msp430.opt (-minrt): New.
24492 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24493 if -minrt given.
24494 (ENDFILE_SPEC): Likewise.
24495
24496 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24497
24498 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24499 (estimate_function_body_sizes): Use it.
24500
24501 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24502
24503 PR c++/58561
24504 * dwarf2out.c (is_cxx_auto): New.
24505 (is_base_type): Use it.
24506 (gen_type_die_with_usage): Likewise.
24507
24508 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24509
24510 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24511 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24512 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24513 -maltivec=be with LE targets.
24514 (vsx_mergeh_<mode>): Likewise.
24515 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24516 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24517 (altivec_vmrghb): Replace with define_expand and new
24518 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24519 (altivec_vmrghb_direct): New define_insn.
24520 (altivec_vmrghh): Replace with define_expand and new
24521 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24522 (altivec_vmrghh_direct): New define_insn.
24523 (altivec_vmrghw): Replace with define_expand and new
24524 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24525 (altivec_vmrghw_direct): New define_insn.
24526 (*altivec_vmrghsf): Adjust for endianness.
24527 (altivec_vmrglb): Replace with define_expand and new
24528 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24529 (altivec_vmrglb_direct): New define_insn.
24530 (altivec_vmrglh): Replace with define_expand and new
24531 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24532 (altivec_vmrglh_direct): New define_insn.
24533 (altivec_vmrglw): Replace with define_expand and new
24534 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24535 (altivec_vmrglw_direct): New define_insn.
24536 (*altivec_vmrglsf): Adjust for endianness.
24537 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24538 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24539 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24540 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24541 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24542 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24543 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24544 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24545
24546 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24547
24548 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24549 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24550 whitespace.
24551
24552 2014-01-29 Richard Biener <rguenther@suse.de>
24553
24554 PR tree-optimization/58742
24555 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24556 associate_pointerplus_align.
24557 (associate_pointerplus_diff): New function.
24558 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24559 and associate_pointerplus_diff.
24560
24561 2014-01-29 Richard Biener <rguenther@suse.de>
24562
24563 * lto-streamer.h (LTO_major_version): Bump to 3.
24564 (LTO_minor_version): Reset to 0.
24565
24566 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24567
24568 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24569 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24570 (arm_file_start): Generate correct asm header for armv7ve.
24571 * config/arm/bpabi.h: Add multilib support for armv7ve.
24572 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24573 and cortex-a15 to armv7ve.
24574 * config/arm/t-aprofile: Add multilib support for armv7ve.
24575 * doc/invoke.texi: Document -march=armv7ve.
24576
24577 2014-01-29 Richard Biener <rguenther@suse.de>
24578
24579 PR tree-optimization/58742
24580 * tree-ssa-forwprop.c (associate_plusminus): Return true
24581 if we changed sth, defer EH cleanup to ...
24582 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24583 (simplify_mult): New function.
24584
24585 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24586
24587 PR middle-end/59917
24588 PR tree-optimization/59920
24589 * tree.c (build_common_builtin_nodes): Remove
24590 __builtin_setjmp_dispatcher initialization.
24591 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24592 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24593 instead of gsi_after_labels + manually skipping debug stmts.
24594 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24595 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24596 * tree-inline.c (copy_edges_for_bb): Remove
24597 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24598 argument. Ignore computed_goto_p stmts. Don't call
24599 make_abnormal_goto_edges. If a call might need abnormal edges
24600 for non-local gotos, see if it already has an edge to
24601 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24602 with true argument, don't do anything then, otherwise add
24603 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24604 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24605 caller.
24606 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24607 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24608 (lower_stmt): Don't set data->calls_builtin_setjmp.
24609 (lower_builtin_setjmp): Adjust comment.
24610 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24611 * tree-cfg.c (found_computed_goto): Remove.
24612 (factor_computed_gotos): Remove.
24613 (make_goto_expr_edges): Return bool, true for computed gotos.
24614 Don't call make_abnormal_goto_edges.
24615 (build_gimple_cfg): Don't set found_computed_goto, don't call
24616 factor_computed_gotos.
24617 (computed_goto_p): No longer static.
24618 (make_blocks): Don't set found_computed_goto.
24619 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24620 (make_edges): If make_goto_expr_edges returns true, push bb
24621 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24622 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24623 vector. Record mapping between bbs and OpenMP regions if there
24624 are any, adjust make_gimple_omp_edges caller. Call
24625 handle_abnormal_edges.
24626 (make_abnormal_goto_edges): Remove.
24627 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24628 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24629 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24630 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24631 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24632 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24633 filling *region also set *region_idx to (*region)->entry->index.
24634
24635 PR other/58712
24636 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24637 For REGs set ORIGINAL_REGNO.
24638
24639 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24640
24641 * doc/md.texi: Mention that a target shouldn't implement
24642 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24643 than hi/lo pair.
24644
24645 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24646
24647 PR tree-optimization/59594
24648 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24649 a copy of the datarefs vector rather than the vector itself.
24650
24651 2014-01-28 Jason Merrill <jason@redhat.com>
24652
24653 PR c++/53756
24654 * dwarf2out.c (auto_die): New static.
24655 (gen_type_die_with_usage): Handle C++1y 'auto'.
24656 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24657 on definition.
24658
24659 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24660
24661 PR target/59672
24662 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24663 (SPEC_X32): Likewise.
24664 (SPEC_64): Likewise.
24665 * config/i386/i386.c (ix86_option_override_internal): Turn off
24666 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24667 for TARGET_16BIT.
24668 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24669 * config/i386/i386.h (TARGET_16BIT): New macro.
24670 (TARGET_16BIT_P): Likewise.
24671 * config/i386/i386.opt: Add m16.
24672 * doc/invoke.texi: Document -m16.
24673
24674 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24675
24676 PR preprocessor/59935
24677 * input.c (location_get_source_line): Bail out on when line number
24678 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24679
24680 2014-01-28 Richard Biener <rguenther@suse.de>
24681
24682 PR tree-optimization/58742
24683 * tree-ssa-forwprop.c (associate_plusminus): Handle
24684 pointer subtraction of the form (T)(P + A) - (T)P.
24685
24686 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24687
24688 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24689 at const_int_cost.
24690
24691 2014-01-28 Richard Biener <rguenther@suse.de>
24692
24693 Revert
24694 2014-01-28 Richard Biener <rguenther@suse.de>
24695
24696 PR rtl-optimization/45364
24697 PR rtl-optimization/59890
24698 * var-tracking.c (local_get_addr_clear_given_value): Handle
24699 already cleared slot.
24700 (val_reset): Handle not allocated local_get_addr_cache.
24701 (vt_find_locations): Use post-order on the inverted CFG.
24702
24703 2014-01-28 Richard Biener <rguenther@suse.de>
24704
24705 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24706
24707 2014-01-28 Richard Biener <rguenther@suse.de>
24708
24709 PR rtl-optimization/45364
24710 PR rtl-optimization/59890
24711 * var-tracking.c (local_get_addr_clear_given_value): Handle
24712 already cleared slot.
24713 (val_reset): Handle not allocated local_get_addr_cache.
24714 (vt_find_locations): Use post-order on the inverted CFG.
24715
24716 2014-01-28 Alan Modra <amodra@gmail.com>
24717
24718 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24719 * configure.ac <recursive call for build != host>: Define
24720 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24721 and LD_FOR_BUILD too.
24722 * configure: Regenerate.
24723
24724 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24725
24726 * config/i386/i386.c (get_builtin_code_for_version): Separate
24727 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24728 Broadwell from Haswell.
24729
24730 2014-01-27 Steve Ellcey <sellcey@mips.com>
24731
24732 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24733 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24734 * config/mips/mips.c (mips_option_override): Change setting
24735 of TARGET_DSP.
24736 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24737 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24738 Change from Mask to Var.
24739
24740 2014-01-27 Jeff Law <law@redhat.com>
24741
24742 * ipa-inline.c (inline_small_functions): Fix typo.
24743
24744 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24745
24746 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24747 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24748 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24749 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24750 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24751 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24752 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24753 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24754 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24755 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24756 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24757 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24758 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24759 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24760 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24761 (_mm512_storeu_epi64): Ditto.
24762 (_mm512_cmpge_epi32_mask): Ditto.
24763 (_mm512_cmpge_epu32_mask): Ditto.
24764 (_mm512_cmpge_epi64_mask): Ditto.
24765 (_mm512_cmpge_epu64_mask): Ditto.
24766 (_mm512_cmple_epi32_mask): Ditto.
24767 (_mm512_cmple_epu32_mask): Ditto.
24768 (_mm512_cmple_epi64_mask): Ditto.
24769 (_mm512_cmple_epu64_mask): Ditto.
24770 (_mm512_cmplt_epi32_mask): Ditto.
24771 (_mm512_cmplt_epu32_mask): Ditto.
24772 (_mm512_cmplt_epi64_mask): Ditto.
24773 (_mm512_cmplt_epu64_mask): Ditto.
24774 (_mm512_cmpneq_epi32_mask): Ditto.
24775 (_mm512_cmpneq_epu32_mask): Ditto.
24776 (_mm512_cmpneq_epi64_mask): Ditto.
24777 (_mm512_cmpneq_epu64_mask): Ditto.
24778 (_mm512_expand_pd): Ditto.
24779 (_mm512_expand_ps): Ditto.
24780 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24781 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24782 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24783 * config/i386/i386.c (ix86_builtins): Add
24784 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24785 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24786 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24787 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24788 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24789 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24790 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24791 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24792 IX86_BUILTIN_PMOVUSQW512_MEM.
24793 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24794 __builtin_ia32_pmovsqd512mem_mask,
24795 __builtin_ia32_pmovqd512mem_mask,
24796 __builtin_ia32_pmovusqw512mem_mask,
24797 __builtin_ia32_pmovsqw512mem_mask,
24798 __builtin_ia32_pmovqw512mem_mask,
24799 __builtin_ia32_pmovusdw512mem_mask,
24800 __builtin_ia32_pmovsdw512mem_mask,
24801 __builtin_ia32_pmovdw512mem_mask,
24802 __builtin_ia32_pmovqb512mem_mask,
24803 __builtin_ia32_pmovusqb512mem_mask,
24804 __builtin_ia32_pmovsqb512mem_mask,
24805 __builtin_ia32_pmovusdb512mem_mask,
24806 __builtin_ia32_pmovsdb512mem_mask,
24807 __builtin_ia32_pmovdb512mem_mask.
24808 (bdesc_args): Add __builtin_ia32_expanddf512,
24809 __builtin_ia32_expandsf512.
24810 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24811 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24812 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24813 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24814 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24815 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24816 (avx512f_<code>v8div16qi2_mask_store): This.
24817 (avx512f_expand<mode>): New.
24818
24819 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24820
24821 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24822 New.
24823 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24824 (_mm512_prefetch_i32scatter_pd): Ditto.
24825 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24826 (_mm512_prefetch_i64scatter_pd): Ditto.
24827 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24828 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24829 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24830 (_mm512_prefetch_i32scatter_ps): Ditto.
24831 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24832 (_mm512_prefetch_i64scatter_ps): Ditto.
24833 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24834 * config/i386/i386-builtin-types.def: Define
24835 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24836 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24837 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24838 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24839 IX86_BUILTIN_SCATTERPFQPD.
24840 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24841 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24842 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24843 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24844 __builtin_ia32_scatterpfqps.
24845 (ix86_expand_builtin): Expand new built-ins.
24846 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24847 fix memory access data type.
24848 (*avx512pf_gatherpf<mode>_mask): Ditto.
24849 (*avx512pf_gatherpf<mode>): Ditto.
24850 (avx512pf_scatterpf<mode>): Ditto.
24851 (*avx512pf_scatterpf<mode>_mask): Ditto.
24852 (*avx512pf_scatterpf<mode>): Ditto.
24853 (GATHER_SCATTER_SF_MEM_MODE): New.
24854 (avx512pf_gatherpf<mode>df): Ditto.
24855 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24856 (*avx512pf_scatterpf<mode>df): Ditto.
24857
24858 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24859
24860 PR bootstrap/59934
24861 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24862 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24863 reached.
24864
24865 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24866
24867 * common/config/arm/arm-common.c
24868 (arm_rewrite_mcpu): Handle multiple names.
24869 * config/arm/arm.h
24870 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24871
24872 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24873
24874 * gimple-builder.h (create_gimple_tmp): Delete.
24875
24876 2014-01-27 Christian Bruel <christian.bruel@st.com>
24877
24878 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24879 words comparisons.
24880
24881 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24882
24883 * config/pa/pa.md (call): Generate indirect long calls to non-local
24884 functions when outputing 32-bit code.
24885 (call_value): Likewise except for special call to buggy powf function.
24886
24887 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24888 portable runtime and PIC indirect calls.
24889 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24890 and PIC call sequences. Use ldo instead of blr to set return register
24891 in PIC call sequence.
24892
24893 2014-01-25 Walter Lee <walt@tilera.com>
24894
24895 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24896 avoid clobbering a live register.
24897
24898 2014-01-25 Walter Lee <walt@tilera.com>
24899
24900 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24901 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24902 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24903 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24904
24905 2014-01-25 Walter Lee <walt@tilera.com>
24906
24907 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24908 arguments on even registers.
24909 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24910 STACK_BOUNDARY.
24911 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24912 (BIGGEST_ALIGNMENT): Ditto.
24913 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24914
24915 2014-01-25 Walter Lee <walt@tilera.com>
24916
24917 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24918 insns before bundling.
24919 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24920
24921 2014-01-25 Walter Lee <walt@tilera.com>
24922
24923 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24924 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24925 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24926
24927 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24928
24929 * config/mips/constraints.md (kl): Delete.
24930 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24931 define expands, using...
24932 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24933 instructions for MIPS16.
24934 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24935 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24936
24937 2014-01-25 Walter Lee <walt@tilera.com>
24938
24939 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24940 (clzdi2): Ditto.
24941 (ffsdi2): Ditto.
24942
24943 2014-01-25 Walter Lee <walt@tilera.com>
24944
24945 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24946 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24947
24948 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24949
24950 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24951 Handle XOR.
24952
24953 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24954
24955 * print-rtl.c (in_call_function_usage): New var.
24956 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24957 EXPR_LIST mode as mode and not as reg note name.
24958
24959 PR middle-end/59561
24960 * cfgloopmanip.c (copy_loop_info): If
24961 loop->warned_aggressive_loop_optimizations, make sure
24962 the flag is set in target loop too.
24963
24964 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24965
24966 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24967 flag_cilkplus.
24968 * builtins.def: Likewise.
24969 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24970 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24971 * ira.c (ira_setup_eliminable_regset): Likewise.
24972 * omp-low.c (gate_expand_omp): Likewise.
24973 (execute_lower_omp): Likewise.
24974 (diagnose_sb_0): Likewise.
24975 (gate_diagnose_omp_blocks): Likewise.
24976 (simd_clone_clauses_extract): Likewise.
24977 (gate): Likewise.
24978
24979 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24980
24981 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24982 correction for little endian...
24983 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24984 here.
24985
24986 2014-01-24 Jeff Law <law@redhat.com>
24987
24988 PR tree-optimization/59919
24989 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24990 for non-returning calls.
24991
24992 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24993
24994 * common/config/aarch64/aarch64-common.c
24995 (aarch64_rewrite_mcpu): Handle multiple names.
24996 * config/aarch64/aarch64.h
24997 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24998
24999 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25000
25001 * input.c (add_file_to_cache_tab): Handle the case where fopen
25002 returns NULL.
25003
25004 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25005
25006 PR target/59929
25007 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25008 from push operand if code of push isn't PRE_DEC.
25009
25010 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25011
25012 PR target/59909
25013 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25014 -mquad-memory-atomic. Update -mquad-memory documentation to say
25015 it is only used for non-atomic loads/stores.
25016
25017 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25018 -mquad-memory or -mquad-memory-atomic switches.
25019
25020 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25021 -mquad-memory-atomic to ISA 2.07 support.
25022
25023 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25024 to separate support of normal quad word memory operations (ldq, stq)
25025 from the atomic quad word memory operations.
25026
25027 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25028 support to separate non-atomic quad word operations from atomic
25029 quad word operations. Disable non-atomic quad word operations in
25030 little endian mode so that we don't have to swap words after the
25031 load and before the store.
25032 (quad_load_store_p): Add comment about atomic quad word support.
25033 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25034 options printed with -mdebug=reg.
25035
25036 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25037 -mquad-memory-atomic as the test for whether we have quad word
25038 atomic instructions.
25039 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25040 or -mp8-vector are used, allow byte/half-word atomic operations.
25041
25042 * config/rs6000/sync.md (load_lockedti): Insure that the address
25043 is a proper indexed or indirect address for the lqarx instruction.
25044 On little endian systems, swap the hi/lo registers after the lqarx
25045 instruction.
25046 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25047 insure the address is valid for the lqarx instruction.
25048 (store_conditionalti): Insure that the address is a proper indexed
25049 or indirect address for the stqcrx. instruction. On little endian
25050 systems, swap the hi/lo registers before doing the stqcrx.
25051 instruction.
25052 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25053 insure the address is valid for the stqcrx. instruction.
25054
25055 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25056 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25057 type of quad memory support is available.
25058
25059 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25060
25061 PR regression/59915
25062 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25063 there is a danger of looping.
25064
25065 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25066
25067 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25068 force flag_ira_loop_pressure if set via command line.
25069
25070 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25071
25072 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25073 (ashr_simd): New builtin handling DI mode.
25074 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25075 (aarch64_sshr_simddi): New match pattern.
25076 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25077 (vshrd_n_s64): Likewise.
25078 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25079
25080 2014-01-23 Nick Clifton <nickc@redhat.com>
25081
25082 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25083 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25084 favour of mcu specific scripts.
25085 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25086 430x multilibs.
25087
25088 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25089 Alex Velenko <Alex.Velenko@arm.com>
25090
25091 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25092 (vaddv_s16): Likewise.
25093 (vaddv_s32): Likewise.
25094 (vaddv_u8): Likewise.
25095 (vaddv_u16): Likewise.
25096 (vaddv_u32): Likewise.
25097 (vaddvq_s8): Likewise.
25098 (vaddvq_s16): Likewise.
25099 (vaddvq_s32): Likewise.
25100 (vaddvq_s64): Likewise.
25101 (vaddvq_u8): Likewise.
25102 (vaddvq_u16): Likewise.
25103 (vaddvq_u32): Likewise.
25104 (vaddvq_u64): Likewise.
25105 (vaddv_f32): Likewise.
25106 (vaddvq_f32): Likewise.
25107 (vaddvq_f64): Likewise.
25108 (vmaxv_f32): Likewise.
25109 (vmaxv_s8): Likewise.
25110 (vmaxv_s16): Likewise.
25111 (vmaxv_s32): Likewise.
25112 (vmaxv_u8): Likewise.
25113 (vmaxv_u16): Likewise.
25114 (vmaxv_u32): Likewise.
25115 (vmaxvq_f32): Likewise.
25116 (vmaxvq_f64): Likewise.
25117 (vmaxvq_s8): Likewise.
25118 (vmaxvq_s16): Likewise.
25119 (vmaxvq_s32): Likewise.
25120 (vmaxvq_u8): Likewise.
25121 (vmaxvq_u16): Likewise.
25122 (vmaxvq_u32): Likewise.
25123 (vmaxnmv_f32): Likewise.
25124 (vmaxnmvq_f32): Likewise.
25125 (vmaxnmvq_f64): Likewise.
25126 (vminv_f32): Likewise.
25127 (vminv_s8): Likewise.
25128 (vminv_s16): Likewise.
25129 (vminv_s32): Likewise.
25130 (vminv_u8): Likewise.
25131 (vminv_u16): Likewise.
25132 (vminv_u32): Likewise.
25133 (vminvq_f32): Likewise.
25134 (vminvq_f64): Likewise.
25135 (vminvq_s8): Likewise.
25136 (vminvq_s16): Likewise.
25137 (vminvq_s32): Likewise.
25138 (vminvq_u8): Likewise.
25139 (vminvq_u16): Likewise.
25140 (vminvq_u32): Likewise.
25141 (vminnmv_f32): Likewise.
25142 (vminnmvq_f32): Likewise.
25143 (vminnmvq_f64): Likewise.
25144
25145 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25146
25147 * config/aarch64/aarch64-simd.md
25148 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25149 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25150 (*aarch64_mul3_elt<mode>): Likewise.
25151 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25152 (*aarch64_mul3_elt_to_64v2df): Likewise.
25153 (*aarch64_mla_elt<mode>): Likewise.
25154 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25155 (*aarch64_mls_elt<mode>): Likewise.
25156 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25157 (*aarch64_fma4_elt<mode>): Likewise.
25158 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25159 (*aarch64_fma4_elt_to_64v2df): Likewise.
25160 (*aarch64_fnma4_elt<mode>): Likewise.
25161 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25162 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25163 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25164 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25165 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25166 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25167 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25168 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25169 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25170
25171 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25172
25173 * config/aarch64/aarch64-simd.md
25174 (aarch64_be_checked_get_lane<mode>): New define_expand.
25175 * config/aarch64/aarch64-simd-builtins.def
25176 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25177 New builtin definition.
25178 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25179 Use new safe be builtin.
25180
25181 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25182
25183 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25184 New define_insn.
25185 (aarch64_be_st1<mode>): Likewise.
25186 (aarch_ld1<VALL:mode>): Define_expand modified.
25187 (aarch_st1<VALL:mode>): Likewise.
25188 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25189 (UNSPEC_ST1): Likewise.
25190
25191 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25192
25193 * config/microblaze/microblaze.md: Add trap insn and attribute
25194
25195 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25196
25197 PR preprocessor/58580
25198 * input.h (location_get_source_line): Take an additional line_size
25199 parameter.
25200 (void diagnostics_file_cache_fini): Declare new function.
25201 * input.c (struct fcache): New type.
25202 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25203 New static constants.
25204 (diagnostic_file_cache_init, total_lines_num)
25205 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25206 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25207 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25208 (get_next_line, read_next_line, goto_next_line, read_line_num):
25209 New static function definitions.
25210 (diagnostic_file_cache_fini): New function.
25211 (location_get_source_line): Take an additional output line_len
25212 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25213 read_line_num.
25214 * diagnostic.c (diagnostic_finish): Call
25215 diagnostic_file_cache_fini.
25216 (adjust_line): Take an additional input parameter for the length
25217 of the line, rather than calculating it with strlen.
25218 (diagnostic_show_locus): Adjust the use of
25219 location_get_source_line and adjust_line with respect to their new
25220 signature. While displaying a line now, do not stop at the first
25221 null byte. Rather, display the zero byte as a space and keep
25222 going until we reach the size of the line.
25223 * Makefile.in: Add vec.o to OBJS-libcommon
25224
25225 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25226 Ilya Tocar <ilya.tocar@intel.com>
25227
25228 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25229 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25230 (__builtin_ia32_kmov16): Ditto.
25231 * config/i386/i386.md (UNSPEC_KMOV): New.
25232 (kmovw): Ditto.
25233
25234 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25235
25236 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25237 (_mm512_storeu_si512): Ditto.
25238
25239 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25240
25241 PR target/52125
25242 * rtl.h (get_referenced_operands): Declare.
25243 * recog.c (get_referenced_operands): New function.
25244 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25245 operands have been referenced when recording LO_SUM references.
25246
25247 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25248
25249 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25250
25251 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25252
25253 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25254 Enable for generic and recent AMD targets.
25255
25256 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25257
25258 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25259 ARG_SIZE note when adjustment was eliminated.
25260
25261 2014-01-22 Jeff Law <law@redhat.com>
25262
25263 PR tree-optimization/59597
25264 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25265 in file. Accept new argument REGISTERING and use it to modify
25266 dump output appropriately.
25267 (register_jump_thread): Corresponding changes.
25268 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25269 thread paths involving joiner blocks. Add code to dump cancelled
25270 jump threading paths.
25271
25272 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25273
25274 PR rtl-optimization/59477
25275 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25276 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25277
25278 2014-01-22 Tom Tromey <tromey@redhat.com>
25279
25280 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25281 PARAMS.
25282 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25283
25284 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25285
25286 PR rtl-optimization/59896
25287 * lra-constraints.c (process_alt_operands): Check unused note for
25288 matched operands of insn with no output reloads.
25289
25290 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25291
25292 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25293 (mips_move_from_gpr_cost): Likewise.
25294
25295 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25296
25297 PR rtl-optimization/59858
25298 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25299 ira_class_hard_regs_num.
25300 (process_alt_operands): Increase reject for dying matched operand.
25301
25302 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25303
25304 PR target/59003
25305 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25306 smaller than size, perform several stores or loads and stores
25307 at dst + count - size to store or copy all of size bytes, rather
25308 than just last modesize bytes.
25309
25310 2014-01-20 DJ Delorie <dj@redhat.com>
25311
25312 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25313 that CLOBBERs are REGs before propogating their values.
25314
25315 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25316
25317 PR middle-end/59789
25318 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25319 (cgraph_inline_failed_type): New function.
25320 * cgraph.h (DEFCIFCODE): Add type.
25321 (cgraph_inline_failed_type_t): New enum.
25322 (cgraph_inline_failed_type): New prototype.
25323 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25324 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25325 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25326 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25327 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25328 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25329 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25330 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25331 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25332 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25333 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25334 OPTIMIZATION_MISMATCH.
25335 * tree-inline.c (expand_call_inline): Emit errors during
25336 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25337
25338 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25339
25340 PR target/59685
25341 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25342 mode attribute in insn output.
25343
25344 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25345
25346 * output.h (output_constant): Delete.
25347 * varasm.c (output_constant): Make private.
25348
25349 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25350
25351 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25352
25353 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25354
25355 PR middle-end/59860
25356 * tree.h (fold_builtin_strcat): New prototype.
25357 * builtins.c (fold_builtin_strcat): No longer static. Add len
25358 argument, if non-NULL, don't call c_strlen. Optimize
25359 directly into __builtin_memcpy instead of __builtin_strcpy.
25360 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25361 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25362
25363 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25364
25365 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25366 for SImode_address_operand operands, having only a REG argument.
25367
25368 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25369
25370 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25371 loader name using mbig-endian.
25372 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25373
25374 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25375
25376 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25377 (-mtune): Likewise.
25378 (-mcpu): Likewise.
25379
25380 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25381
25382 * config/aarch64/aarch64-protos.h
25383 (aarch64_cannot_change_mode_class_ptr): Declare.
25384 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25385 aarch64_cannot_change_mode_class_ptr): New.
25386 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25387 backend hook aarch64_cannot_change_mode_class.
25388
25389 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25390
25391 * common/config/aarch64/aarch64-common.c
25392 (aarch64_handle_option): Don't handle any option order logic here.
25393 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25394 selected_cpu, warn on architecture version mismatch.
25395 (aarch64_override_options): Fix parsing order for option strings.
25396
25397 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25398 Iain Sandoe <iain@codesourcery.com>
25399
25400 PR bootstrap/59496
25401 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25402 warning. Amend comment to reflect current functionality.
25403
25404 2014-01-20 Richard Biener <rguenther@suse.de>
25405
25406 PR middle-end/59860
25407 * builtins.c (fold_builtin_strcat): Remove case better handled
25408 by tree-ssa-strlen.c.
25409
25410 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25411
25412 * config/aarch64/aarch64.opt
25413 (mcpu, march, mtune): Make case-insensitive.
25414
25415 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25416
25417 PR target/59880
25418 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25419 if operands[1] is a REG or ZERO_EXTEND of a REG.
25420
25421 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25422
25423 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25424
25425 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25426
25427 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25428 long non-pic millicode calls.
25429
25430 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25431
25432 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25433
25434 2014-01-19 Kito Cheng <kito@0xlab.org>
25435
25436 * builtins.c (expand_movstr): Check movstr expand done or fail.
25437
25438 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25439 H.J. Lu <hongjiu.lu@intel.com>
25440
25441 PR target/59379
25442 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25443 to DImode for zero-extended addresses.
25444
25445 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25446
25447 PR rtl-optimization/57763
25448 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25449 on the new indirect jump_insn and increment LABEL_NUSES (label).
25450
25451 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25452
25453 PR bootstrap/59580
25454 PR bootstrap/59583
25455 * config.gcc (x86_archs): New variable.
25456 (x86_64_archs): Likewise.
25457 (x86_cpus): Likewise.
25458 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25459 --with-arch/--with-cpu= options.
25460 Support --with-arch=/--with-cpu={nehalem,westmere,
25461 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25462
25463 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25464
25465 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25466 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25467
25468 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25469
25470 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25471
25472 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25473
25474 PR target/58944
25475 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25476 clear cpp_get_options (parse_in)->warn_unused_macros for
25477 ix86_target_macros_internal with cpp_define.
25478
25479 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25480
25481 * jump.c (delete_related_insns): Keep (use (insn))s.
25482 * reorg.c (redundant_insn): Check for barriers too.
25483
25484 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25485
25486 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25487
25488 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25489
25490 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25491 call to $$dyncall when TARGET_LONG_CALLS is true.
25492
25493 2014-01-17 Jeff Law <law@redhat.com>
25494
25495 * ree.c (combine_set_extension): Temporarily disable test for
25496 changing number of hard registers.
25497
25498 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25499
25500 PR middle-end/58125
25501 * ipa-inline-analysis.c (inline_free_summary):
25502 Do not free summary of aliases.
25503
25504 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25505
25506 PR middle-end/59706
25507 * gimplify.c (gimplify_expr): Use create_tmp_var
25508 instead of create_tmp_var_raw. If cond doesn't have
25509 integral type, don't add the IFN_ANNOTATE builtin at all.
25510
25511 2014-01-17 Martin Jambor <mjambor@suse.cz>
25512
25513 PR ipa/59736
25514 * ipa-cp.c (prev_edge_clone): New variable.
25515 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25516 Also resize prev_edge_clone vector.
25517 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25518 (ipcp_edge_removal_hook): New function.
25519 (ipcp_driver): Register ipcp_edge_removal_hook.
25520
25521 2014-01-17 Andrew Pinski <apinski@cavium.com>
25522 Steve Ellcey <sellcey@mips.com>
25523
25524 PR target/59462
25525 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25526 of operator mode.
25527
25528 2014-01-17 Jeff Law <law@redhat.com>
25529
25530 PR middle-end/57904
25531 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25532 so that pass_ccp runs first.
25533
25534 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25535
25536 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25537 (ix86_adjust_cost): Use !TARGET_XXX.
25538 (do_reorder_for_imul): Likewise.
25539 (swap_top_of_ready_list): Likewise.
25540 (ix86_sched_reorder): Likewise.
25541
25542 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25543
25544 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25545 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25546 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25547 (intel_memset): New. Duplicate slm_memset.
25548 (intel_cost): New. Duplicate slm_cost.
25549 (m_INTEL): New macro.
25550 (processor_target_table): Add "intel".
25551 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25552 with PROCESSOR_INTEL for "intel".
25553 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25554 PROCESSOR_SILVERMONT.
25555 (ix86_issue_rate): Likewise.
25556 (ix86_adjust_cost): Likewise.
25557 (ia32_multipass_dfa_lookahead): Likewise.
25558 (swap_top_of_ready_list): Likewise.
25559 (ix86_sched_reorder): Likewise.
25560 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25561 instead of TARGET_OPT_AGU.
25562 * config/i386/i386.h (TARGET_INTEL): New.
25563 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25564 (processor_type): Add PROCESSOR_INTEL.
25565 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25566 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25567
25568 2014-01-17 Marek Polacek <polacek@redhat.com>
25569
25570 PR c/58346
25571 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25572 size is zero.
25573
25574 2014-01-17 Richard Biener <rguenther@suse.de>
25575
25576 PR tree-optimization/46590
25577 * opts.c (default_options_table): Add entries for
25578 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25579 all enabled at -O1 but not for -Og.
25580 * common.opt (fbranch-count-reg): Remove Init(1).
25581 (fmove-loop-invariants): Likewise.
25582 (ftree-pta): Likewise.
25583
25584 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25585
25586 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25587 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25588 decls to at least the GCC 4.8 used alignments.
25589
25590 PR fortran/59440
25591 * tree-nested.c (convert_nonlocal_reference_stmt,
25592 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25593 of GIMPLE_BIND stmts, adjust associated decls.
25594
25595 2014-01-17 Richard Biener <rguenther@suse.de>
25596
25597 PR tree-optimization/46590
25598 * vec.h (vec<>::bseach): New member function implementing
25599 binary search according to C89 bsearch.
25600 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25601 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25602 bitmap pointer again. Make accesses_in_loop a flat array.
25603 (mem_ref_obstack): New global.
25604 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25605 (mark_ref_stored): Likewise.
25606 (ref_indep_loop_p_2): Likewise.
25607 (set_ref_stored_in_loop): New helper function.
25608 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25609 (memref_free): Adjust.
25610 (record_mem_ref_loc): Simplify.
25611 (gather_mem_refs_stmt): Adjust.
25612 (sort_locs_in_loop_postorder_cmp): New function.
25613 (analyze_memory_references): Sort accesses_in_loop after
25614 loop postorder number.
25615 (find_ref_loc_in_loop_cmp): New function.
25616 (for_all_locs_in_loop): Find relevant cluster of locs in
25617 accesses_in_loop and iterate without recursion.
25618 (execute_sm): Avoid uninit warning.
25619 (struct ref_always_accessed): Simplify.
25620 (ref_always_accessed::operator ()): Likewise.
25621 (ref_always_accessed_p): Likewise.
25622 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25623 loop postorder numbers here.
25624 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25625 numbers.
25626
25627 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25628
25629 PR c++/57945
25630 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25631 on decls for which assemble_alias has been called.
25632
25633 2014-01-17 Nick Clifton <nickc@redhat.com>
25634
25635 * config/msp430/msp430.opt: (mcpu): New option.
25636 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25637 (msp430_option_override): Parse target_cpu. If the MCU name
25638 matches a generic string, clear target_mcu.
25639 (msp430_attr): Allow numeric interrupt values up to 63.
25640 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25641 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25642 option.
25643 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25644 Add mcpu matches.
25645 * config/msp430/msp430.md (popm): Use %J rather than %I.
25646 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25647 (addhi_cy_i): Use immediate_operand for operand 2.
25648 * doc/invoke.texi: Document -mcpu option.
25649
25650 2014-01-17 Richard Biener <rguenther@suse.de>
25651
25652 PR rtl-optimization/38518
25653 * df.h (df_analyze_loop): Declare.
25654 * df-core.c: Include cfgloop.h.
25655 (df_analyze_1): Split out main part of df_analyze.
25656 (df_analyze): Adjust.
25657 (loop_inverted_post_order_compute): New function.
25658 (loop_post_order_compute): Likewise.
25659 (df_analyze_loop): New function avoiding whole-function
25660 postorder computes.
25661 * loop-invariant.c (find_defs): Use df_analyze_loop.
25662 (find_invariants): Adjust.
25663 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25664
25665 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25666
25667 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25668 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25669
25670 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25671
25672 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25673 traversal when removing references.
25674
25675 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25676
25677 PR ipa/59775
25678 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25679
25680 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25681
25682 PR middle-end/56791
25683 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25684 pushing a reload for an autoinc when we had previously reloaded an
25685 inner part of the address.
25686
25687 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25688
25689 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25690 field.
25691 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25692 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25693 when not giving up or versioning for alias only because of
25694 loop->safelen.
25695 (vect_analyze_data_ref_dependences): Set to true.
25696 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25697 is a GIMPLE_PHI.
25698 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25699 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25700 to the condition.
25701
25702 PR middle-end/58344
25703 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25704
25705 PR target/59839
25706 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25707 operand 0 predicate for gathers, use a new pseudo as subtarget.
25708
25709 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25710
25711 PR middle-end/59609
25712 * lra-constraints.c (process_alt_operands): Add printing debug info.
25713 Check absence of input/output reloads for matched operands too.
25714
25715 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25716
25717 PR rtl-optimization/59835
25718 * ira.c (ira_init_register_move_cost): Increase cost for
25719 impossible modes.
25720
25721 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25722
25723 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25724
25725 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25726
25727 PR target/59780
25728 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25729 non-register objects. Use gen_(high/low)part more consistently.
25730 Fix assertions.
25731
25732 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25733
25734 PR target/59844
25735 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25736 endian support, remove tests for WORDS_BIG_ENDIAN.
25737 (p8_mfvsrd_3_<mode>): Likewise.
25738 (reload_gpr_from_vsx<mode>): Likewise.
25739 (reload_gpr_from_vsxsf): Likewise.
25740 (p8_mfvsrd_4_disf): Likewise.
25741
25742 2014-01-16 Richard Biener <rguenther@suse.de>
25743
25744 PR rtl-optimization/46590
25745 * lcm.c (compute_antinout_edge): Use postorder iteration.
25746 (compute_laterin): Use inverted postorder iteration.
25747
25748 2014-01-16 Nick Clifton <nickc@redhat.com>
25749
25750 PR middle-end/28865
25751 * varasm.c (output_constant): Return the number of bytes actually
25752 emitted.
25753 (output_constructor_array_range): Update the field size with the
25754 number of bytes emitted by output_constant.
25755 (output_constructor_regular_field): Likewise. Also do not
25756 complain if the total number of bytes emitted is now greater
25757 than the expected fieldpos.
25758 * output.h (output_constant): Update prototype and descriptive comment.
25759
25760 2014-01-16 Marek Polacek <polacek@redhat.com>
25761
25762 PR middle-end/59827
25763 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25764 it is error_mark_node.
25765
25766 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25767
25768 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25769 VALID_AVX256_REG_OR_OI_MODE.
25770
25771 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25772
25773 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25774 current procedure should be profiled.
25775
25776 2014-01-15 Andrew Pinski <apinski@cavium.com>
25777
25778 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25779 of moving from/to the STACK_REG register class.
25780
25781 2014-01-15 Richard Henderson <rth@redhat.com>
25782
25783 PR debug/54694
25784 * reginfo.c (global_regs_decl): Globalize.
25785 * rtl.h (global_regs_decl): Declare.
25786 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25787 reserved via global_regs.
25788
25789 2014-01-15 Teresa Johnson <tejohnson@google.com>
25790
25791 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25792
25793 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25794
25795 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25796 and vmulosh rather than call gen_vec_widen_smult_*.
25797 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25798 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25799 (vec_widen_smult_even_v16qi): Likewise.
25800 (vec_widen_umult_even_v8hi): Likewise.
25801 (vec_widen_smult_even_v8hi): Likewise.
25802 (vec_widen_umult_odd_v16qi): Likewise.
25803 (vec_widen_smult_odd_v16qi): Likewise.
25804 (vec_widen_umult_odd_v8hi): Likewise.
25805 (vec_widen_smult_odd_v8hi): Likewise.
25806 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25807 vmuloub rather than call gen_vec_widen_umult_*.
25808 (vec_widen_umult_lo_v16qi): Likewise.
25809 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25810 vmulosb rather than call gen_vec_widen_smult_*.
25811 (vec_widen_smult_lo_v16qi): Likewise.
25812 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25813 rather than call gen_vec_widen_umult_*.
25814 (vec_widen_umult_lo_v8hi): Likewise.
25815 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25816 rather than call gen_vec_widen_smult_*.
25817 (vec_widen_smult_lo_v8hi): Likewise.
25818
25819 2014-01-15 Jeff Law <law@redhat.com>
25820
25821 PR tree-optimization/59747
25822 * ree.c (find_and_remove_re): Properly handle case where a second
25823 eliminated extension requires widening a copy created for elimination
25824 of a prior extension.
25825 (combine_set_extension): Ensure that the number of hard regs needed
25826 for a destination register does not change when we widen it.
25827
25828 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25829
25830 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25831 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25832 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25833 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25834 (avr-*-rtems*): Likewise.
25835 (bfin*-rtems*): Likewise.
25836 (moxie-*-rtems*): Likewise.
25837 (h8300-*-rtems*): Likewise.
25838 (i[34567]86-*-rtems*): Likewise.
25839 (lm32-*-rtems*): Likewise.
25840 (m32r-*-rtems*): Likewise.
25841 (m68k-*-rtems*): Likewise.
25842 (microblaze*-*-rtems*): Likewise.
25843 (mips*-*-rtems*): Likewise.
25844 (powerpc-*-rtems*): Likewise.
25845 (sh-*-rtems*): Likewise.
25846 (sparc-*-rtems*): Likewise.
25847 (sparc64-*-rtems*): Likewise.
25848 (v850-*-rtems*): Likewise.
25849 (m32c-*-rtems*): Likewise.
25850
25851 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25852
25853 PR rtl-optimization/59511
25854 * ira.c (ira_init_register_move_cost): Use memory costs for some
25855 cases of register move cost calculations.
25856 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25857 instead of BB frequency.
25858 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25859 * lra-assigns.c (find_hard_regno_for): Ditto.
25860
25861 2014-01-15 Richard Biener <rguenther@suse.de>
25862
25863 PR tree-optimization/59822
25864 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25865 (vectorizable_load): Use it to hoist defs of uses of invariant
25866 loads out of the loop.
25867
25868 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25869 Kugan Vivekanandarajah <kuganv@linaro.org>
25870
25871 PR target/59695
25872 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25873 truncation.
25874
25875 2014-01-15 Richard Biener <rguenther@suse.de>
25876
25877 PR rtl-optimization/59802
25878 * lcm.c (compute_available): Use inverted postorder to seed
25879 the initial worklist.
25880
25881 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25882
25883 PR target/59803
25884 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25885 ADDR_REGS for invalid symrefs in non-PIC code.
25886
25887 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25888
25889 PR other/58712
25890 * builtins.c (determine_block_size): Initialize *probable_max_size
25891 even if len_rtx is CONST_INT.
25892
25893 2014-01-14 Andrew Pinski <apinski@cavium.com>
25894
25895 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25896 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25897 (cortexa53_tunings): Likewise.
25898 (aarch64_sched_issue_rate): New function.
25899 (TARGET_SCHED_ISSUE_RATE): Define.
25900
25901 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25902
25903 * ira-costs.c (find_costs_and_classes): Add missed
25904 ira_init_register_move_cost_if_necessary.
25905
25906 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25907
25908 PR target/59787
25909 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25910
25911 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25912
25913 PR target/59794
25914 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25915 to indicate if type is used for function return value. Warn ABI
25916 change if the vector mode isn't available for function return value.
25917 (ix86_function_arg_advance): Pass false to type_natural_mode.
25918 (ix86_function_arg): Likewise.
25919 (ix86_gimplify_va_arg): Likewise.
25920 (function_arg_32): Don't warn ABI change.
25921 (ix86_function_value): Pass true to type_natural_mode.
25922 (ix86_return_in_memory): Likewise.
25923 (ix86_struct_value_rtx): Removed.
25924 (TARGET_STRUCT_VALUE_RTX): Likewise.
25925
25926 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25927
25928 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25929 converting a conditional jump into a conditional return.
25930
25931 2014-01-14 Richard Biener <rguenther@suse.de>
25932
25933 PR tree-optimization/58921
25934 PR tree-optimization/59006
25935 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25936 hoisting invariant stmts.
25937 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25938 invariant loads on the preheader edge if possible.
25939
25940 2014-01-14 Joey Ye <joey.ye@arm.com>
25941
25942 * doc/plugin.texi (Building GCC plugins): Update to C++.
25943
25944 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25945
25946 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25947 (_mm_rcp28_round_ss): Ditto.
25948 (_mm_rsqrt28_round_sd): Ditto.
25949 (_mm_rsqrt28_round_ss): Ditto.
25950 (_mm_rcp28_sd): Ditto.
25951 (_mm_rcp28_ss): Ditto.
25952 (_mm_rsqrt28_sd): Ditto.
25953 (_mm_rsqrt28_ss): Ditto.
25954 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25955 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25956 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25957 (IX86_BUILTIN_RCP28SD): Ditto.
25958 (IX86_BUILTIN_RCP28SS): Ditto.
25959 (IX86_BUILTIN_RSQRT28SD): Ditto.
25960 (IX86_BUILTIN_RSQRT28SS): Ditto.
25961 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25962 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25963 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25964 (ix86_expand_special_args_builtin): Expand new FTYPE.
25965 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25966 (srcp14<mode>): Make insn unary.
25967 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25968 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25969 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25970 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25971 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25972 Fix rounding: make it SAE only.
25973 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25974 Ditto.
25975 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25976 Ditto.
25977 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25978 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25979 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25980 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25981 (round_saeonly_mask_scalar_operand4): Ditto.
25982 (round_saeonly_mask_scalar_op3): Ditto.
25983 (round_saeonly_mask_scalar_op4): Ditto.
25984
25985 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25986
25987 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25988 Implement -maltivec=be for vec_insert and vec_extract.
25989
25990 2014-01-10 DJ Delorie <dj@redhat.com>
25991
25992 * config/msp430/msp430.md (call_internal): Don't allow memory
25993 references with SP as the base register.
25994 (call_value_internal): Likewise.
25995 * config/msp430/constraints.md (Yc): New. For memory references
25996 that don't use SP as a base register.
25997
25998 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25999 "an integer without a # prefix"
26000 * config/msp430/msp430.md (epilogue_helper): Use it.
26001
26002 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26003
26004 PR target/59617
26005 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26006 AVX512F gather builtins.
26007 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26008 on gather decls with INTEGER_TYPE masktype.
26009 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26010 directly into the builtin rather than hoisting it before loop.
26011
26012 PR tree-optimization/59387
26013 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26014 (scev_const_prop): If folded_casts and type has undefined overflow,
26015 use force_gimple_operand instead of force_gimple_operand_gsi and
26016 for each added stmt if it is assign with
26017 arith_code_with_undefined_signed_overflow, call
26018 rewrite_to_defined_overflow.
26019 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26020 gimple-fold.h instead.
26021 (arith_code_with_undefined_signed_overflow,
26022 rewrite_to_defined_overflow): Moved to ...
26023 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26024 rewrite_to_defined_overflow): ... here. No longer static.
26025 Include gimplify-me.h.
26026 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26027 rewrite_to_defined_overflow): New prototypes.
26028
26029 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26030
26031 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26032
26033 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26034
26035 * builtins.c (get_object_alignment_2): Minor tweak.
26036 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26037
26038 2014-01-13 Christian Bruel <christian.bruel@st.com>
26039
26040 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26041 optimized non constant lengths.
26042
26043 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26044
26045 PR libgomp/59194
26046 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26047 load as __atomic_load_N if possible.
26048
26049 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26050
26051 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26052 target parameter.
26053 (rs6000_expand_builtin): Adjust call.
26054
26055 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26056
26057 PR target/58115
26058 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26059 * config/rs6000/rs6000.c: Include target-globals.h.
26060 (rs6000_set_current_function): Instead of doing target_reinit
26061 unconditionally, use save_target_globals_default_opts and
26062 restore_target_globals.
26063
26064 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26065 FPSCR.
26066 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26067 (rs6000_expand_builtin): Handle mffs and mtfsf.
26068 (rs6000_init_builtins): Define mffs and mtfsf.
26069 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26070 (rs6000_mffs): New pattern.
26071 (rs6000_mtfsf): New pattern.
26072
26073 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26074
26075 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26076 Start narrowing with START. Apply candidate-use pair
26077 and check overall cost in narrowing.
26078 (iv_ca_prune): Pass new argument.
26079
26080 2014-01-10 Jeff Law <law@redhat.com>
26081
26082 PR middle-end/59743
26083 * ree.c (combine_reaching_defs): Ensure the defining statement
26084 occurs before the extension when optimizing extensions with
26085 different source and destination hard registers.
26086
26087 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26088
26089 PR ipa/58585
26090 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26091 vtables into the type inheritance graph.
26092
26093 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26094
26095 PR rtl-optimization/59754
26096 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26097 modes in the REGNO != REGNO case.
26098
26099 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26100
26101 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26102
26103 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26104
26105 PR tree-optimization/59745
26106 * tree-predcom.c (tree_predictive_commoning_loop): Call
26107 free_affine_expand_cache if giving up because components is NULL.
26108
26109 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26110 GC in payload of target_globals struct instead of allocating them on
26111 the heap and the larger structs separately using GC.
26112 * target-globals.h (struct target_globals): Make regs, hard_regs,
26113 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26114 of GTY((skip)) and change type to void *.
26115 (reset_target_globals): Cast loads from those fields to corresponding
26116 types.
26117
26118 2014-01-10 Steve Ellcey <sellcey@mips.com>
26119
26120 PR plugins/59335
26121 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26122 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26123 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26124
26125 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26126
26127 PR target/59744
26128 * aarch64-modes.def (CC_Zmode): New flags mode.
26129 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26130 represents an equality.
26131 (aarch64_get_condition_code): Handle CC_Zmode.
26132 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26133
26134 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26135
26136 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26137 extraction in good case.
26138
26139 2014-01-10 Richard Biener <rguenther@suse.de>
26140
26141 PR tree-optimization/59374
26142 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26143 checking after SLP discovery. Mark stmts not participating
26144 in any SLP instance properly.
26145
26146 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26147
26148 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26149 when handling a SET rtx.
26150
26151 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26152
26153 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26154 (cortex-a57): Likewise.
26155 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26156
26157 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26158
26159 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26160 non-iwmmxt builtins.
26161
26162 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26163
26164 PR ipa/58252
26165 PR ipa/59226
26166 * ipa-devirt.c record_target_from_binfo): Take as argument
26167 stack of binfos and lookup matching one for virtual inheritance.
26168 (possible_polymorphic_call_targets_1): Update.
26169
26170 2014-01-10 Huacai Chen <chenhc@lemote.com>
26171
26172 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26173 kernel strings for Loongson-2E/2F/3A.
26174
26175 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26176
26177 PR middle-end/59670
26178 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26179 is_gimple_call before calling gimple_call_internal_p.
26180
26181 2014-01-09 Steve Ellcey <sellcey@mips.com>
26182
26183 * Makefile.in (TREE_FLOW_H): Remove.
26184 (TREE_SSA_H): Add file names from tree-flow.h.
26185 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26186 * tree.h: Remove tree-flow.h reference.
26187 * hash-table.h: Remove tree-flow.h reference.
26188 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26189 reference with tree-ssa-loop.h.
26190
26191 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26192
26193 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26194 default element-order behavior for -maltivec.
26195 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26196 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26197 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26198 when targeting big endian, at least for now.
26199 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26200
26201 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26202
26203 PR middle-end/47735
26204 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26205 var satisfies use_register_for_decl, just take into account type
26206 alignment, rather than decl alignment.
26207
26208 PR tree-optimization/59622
26209 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26210 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26211 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26212 Don't devirtualize for inplace at all. For targets.length () == 1,
26213 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26214
26215 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26216
26217 * config/i386/i386.md (cpu): Remove the unused btver1.
26218
26219 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26220
26221 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26222
26223 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26224
26225 PR target/58115
26226 * tree-core.h (struct target_globals): New forward declaration.
26227 (struct tree_target_option): Add globals field.
26228 * tree.h (TREE_TARGET_GLOBALS): Define.
26229 (prepare_target_option_nodes_for_pch): New prototype.
26230 * target-globals.h (struct target_globals): Define even if
26231 !SWITCHABLE_TARGET.
26232 * tree.c (prepare_target_option_node_for_pch,
26233 prepare_target_option_nodes_for_pch): New functions.
26234 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26235 * config/i386/i386.c: Include target-globals.h.
26236 (ix86_set_current_function): Instead of doing target_reinit
26237 unconditionally, use save_target_globals_default_opts and
26238 restore_target_globals.
26239
26240 2014-01-09 Richard Biener <rguenther@suse.de>
26241
26242 PR tree-optimization/59715
26243 * tree-cfg.h (split_critical_edges): Declare.
26244 * tree-cfg.c (split_critical_edges): Export.
26245 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26246
26247 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26248
26249 * cfgexpand.c (expand_stack_vars): Optionally disable
26250 asan stack protection.
26251 (expand_used_vars): Likewise.
26252 (partition_stack_vars): Likewise.
26253 * asan.c (asan_emit_stack_protection): Optionally disable
26254 after return stack usage.
26255 (instrument_derefs): Optionally disable memory access instrumentation.
26256 (instrument_builtin_call): Likewise.
26257 (instrument_strlen_call): Likewise.
26258 (asan_protect_global): Optionally disable global variables protection.
26259 * doc/invoke.texi: Added doc for new options.
26260 * params.def: Added new options.
26261 * params.h: Likewise.
26262
26263 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26264
26265 PR rtl-optimization/59724
26266 * ifcvt.c (cond_exec_process_if_block): Don't call
26267 flow_find_head_matching_sequence with 0 longest_match.
26268 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26269 non-active insns if !stop_after.
26270 (try_head_merge_bb): Revert 2014-01-07 changes.
26271
26272 2014-01-08 Jeff Law <law@redhat.com>
26273
26274 * ree.c (get_sub_rtx): New function, extracted from...
26275 (merge_def_and_ext): Here.
26276 (combine_reaching_defs): Use get_sub_rtx.
26277
26278 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26279
26280 * cgraph.h (varpool_variable_node): Do not choke on null node.
26281
26282 2014-01-08 Catherine Moore <clm@codesourcery.com>
26283
26284 * config/mips/mips.md (simple_return): Attempt to use JRC
26285 for microMIPS.
26286 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26287
26288 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26289
26290 PR rtl-optimization/59137
26291 * reorg.c (steal_delay_list_from_target): Call update_block for
26292 elided insns.
26293 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26294
26295 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26296
26297 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26298 two duplicate entries.
26299
26300 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26301
26302 Revert:
26303 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26304
26305 * config/mips/mips.c (mips_truncated_op_cost): New function.
26306 (mips_rtx_costs): Adjust test for BADDU.
26307 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26308
26309 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26310
26311 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26312 (*baddu_si): ...this new pattern.
26313
26314 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26315
26316 PR ipa/59722
26317 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26318
26319 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26320
26321 PR middle-end/57748
26322 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26323 inner_reference_p.
26324 (expand_expr, expand_normal): Adjust.
26325 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26326 inner_reference_p. Use inner_reference_p to expand inner references.
26327 (store_expr): Adjust.
26328 * cfgexpand.c (expand_call_stmt): Adjust.
26329
26330 2014-01-08 Rong Xu <xur@google.com>
26331
26332 * gcov-io.c (gcov_var): Move from gcov-io.h.
26333 (gcov_position): Ditto.
26334 (gcov_is_error): Ditto.
26335 (gcov_rewrite): Ditto.
26336 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26337 only part to libgcc/libgcov.h.
26338
26339 2014-01-08 Marek Polacek <polacek@redhat.com>
26340
26341 PR middle-end/59669
26342 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26343
26344 2014-01-08 Marek Polacek <polacek@redhat.com>
26345
26346 PR sanitizer/59667
26347 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26348
26349 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26350
26351 PR rtl-optimization/59649
26352 * stor-layout.c (get_mode_bounds): For BImode return
26353 0 and STORE_FLAG_VALUE.
26354
26355 2014-01-08 Richard Biener <rguenther@suse.de>
26356
26357 PR middle-end/59630
26358 * gimple.h (is_gimple_builtin_call): Remove.
26359 (gimple_builtin_call_types_compatible_p): New.
26360 (gimple_call_builtin_p): New overload.
26361 * gimple.c (is_gimple_builtin_call): Remove.
26362 (validate_call): Rename to ...
26363 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26364 check return types.
26365 (validate_type): New static function.
26366 (gimple_call_builtin_p): New overload and adjust.
26367 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26368 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26369 (gimple_fold_stmt_to_constant_1): Likewise.
26370 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26371
26372 2014-01-08 Richard Biener <rguenther@suse.de>
26373
26374 PR middle-end/59471
26375 * gimplify.c (gimplify_expr): Gimplify register-register type
26376 VIEW_CONVERT_EXPRs to separate stmts.
26377
26378 2014-01-07 Jeff Law <law@redhat.com>
26379
26380 PR middle-end/53623
26381 * ree.c (combine_set_extension): Handle case where source
26382 and destination registers in an extension insn are different.
26383 (combine_reaching_defs): Allow source and destination registers
26384 in extension to be different under limited circumstances.
26385 (add_removable_extension): Remove restriction that the
26386 source and destination registers in the extension are the same.
26387 (find_and_remove_re): Emit a copy from the extension's
26388 destination to its source after the defining insn if
26389 the source and destination registers are different.
26390
26391 PR middle-end/59285
26392 * ifcvt.c (merge_if_block): If we are merging a block with more than
26393 one successor with a block with no successors, remove any BARRIER
26394 after the second block.
26395
26396 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26397
26398 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26399
26400 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26401
26402 PR target/59652
26403 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26404 for 14-bit register offsets when INT14_OK_STRICT is false.
26405
26406 2014-01-07 Roland Stigge <stigge@antcom.de>
26407 Michael Meissner <meissner@linux.vnet.ibm.com>
26408
26409 PR 57386/target
26410 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26411 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26412
26413 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26414
26415 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26416 -mcpu.
26417
26418 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26419
26420 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26421 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26422 rtx is const0_rtx or not.
26423
26424 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26425
26426 PR target/58115
26427 * target-globals.c (save_target_globals): Remove this_fn_optab
26428 handling.
26429 * toplev.c: Include optabs.h.
26430 (target_reinit): Temporarily restore the global options if another
26431 set of options are in force.
26432
26433 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26434
26435 PR rtl-optimization/58668
26436 * cfgcleanup.c (flow_find_cross_jump): Don't count
26437 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26438 to determine what is counted.
26439 (flow_find_head_matching_sequence): Use active_insn_p to determine
26440 what is counted.
26441 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26442 counting change.
26443 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26444 determine what is counted.
26445
26446 PR tree-optimization/59643
26447 * tree-predcom.c (split_data_refs_to_components): If one dr is
26448 read and one write, determine_offset fails and the write isn't
26449 in the bad component, just put the read into the bad component.
26450
26451 2014-01-07 Mike Stump <mikestump@comcast.net>
26452 Jakub Jelinek <jakub@redhat.com>
26453
26454 PR pch/59436
26455 * tree-core.h (struct tree_optimization_option): Change optabs
26456 type from unsigned char * to void *.
26457 * optabs.c (init_tree_optimization_optabs): Adjust
26458 TREE_OPTIMIZATION_OPTABS initialization.
26459
26460 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26461
26462 PR target/59644
26463 * config/i386/i386.h (struct machine_function): Add
26464 no_drap_save_restore field.
26465 * config/i386/i386.c (ix86_save_reg): Use
26466 !cfun->machine->no_drap_save_restore instead of
26467 crtl->stack_realign_needed.
26468 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26469 this function clears frame_pointer_needed. Set
26470 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26471 and DRAP reg is needed.
26472
26473 2014-01-06 Marek Polacek <polacek@redhat.com>
26474
26475 PR c/57773
26476 * doc/implement-c.texi: Mention that other integer types are
26477 permitted as bit-field types in strictly conforming mode.
26478
26479 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26480
26481 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26482 is newly allocated.
26483
26484 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26485
26486 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26487
26488 2014-01-06 Martin Jambor <mjambor@suse.cz>
26489
26490 PR ipa/59008
26491 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26492 to int.
26493 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26494
26495 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26496
26497 PR debug/59350
26498 PR debug/59510
26499 * var-tracking.c (add_stores): Preserve the value of the source even if
26500 we don't record the store.
26501
26502 2014-01-06 Terry Guo <terry.guo@arm.com>
26503
26504 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26505
26506 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26507
26508 PR bootstrap/59541
26509 * config/darwin.c (darwin_function_section): Adjust return values to
26510 correspond to optimisation changes made in r206070.
26511
26512 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26513
26514 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26515 from prefetch_block tune setting.
26516 (nocona_cost): Correct size of prefetch block to 64.
26517
26518 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26519
26520 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26521 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26522 used to save the static chain register in the computation of the offset
26523 from which the FP registers need to be restored.
26524
26525 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26526
26527 PR tree-optimization/59519
26528 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26529 ICE if get_current_def (current_new_name) is already non-NULL, as long
26530 as it is a phi result of some other phi in *new_exit_bb that has
26531 the same argument.
26532
26533 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26534 or vmovdqu* for misaligned_operand.
26535 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26536 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26537 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26538 aligned_mem for AVX512F masked aligned load and store builtins and for
26539 non-temporal moves.
26540
26541 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26542
26543 PR tree-optimization/59651
26544 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26545 Address range for negative step should be added by TYPE_SIZE_UNIT.
26546
26547 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26548
26549 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26550 overlapping registers also for registers other than the stack pointer.
26551
26552 2014-01-03 Marek Polacek <polacek@redhat.com>
26553
26554 PR other/59661
26555 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26556 __builtin_FILE.
26557
26558 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26559
26560 PR target/59625
26561 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26562 asm goto as jump.
26563
26564 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26565 (push splitter): Use <P:MODE_SIZE> instead of
26566 GET_MODE_SIZE (<P:MODE>mode).
26567 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26568 (mov -1, reg peephole2): Likewise.
26569 * config/i386/sse.md (*mov<mode>_internal,
26570 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26571 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26572 *<code><mode>3, *andnot<mode>3<mask_name>,
26573 <mask_codefor><code><mode>3<mask_name>): Likewise.
26574 * config/i386/subst.md (mask_mode512bit_condition,
26575 sd_mask_mode512bit_condition): Likewise.
26576
26577 2014-01-02 Xinliang David Li <davidxl@google.com>
26578
26579 PR tree-optimization/59303
26580 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26581 (dump_predicates): Better output format.
26582 (pred_equal_p): New function.
26583 (is_neq_relop_p): Ditto.
26584 (is_neq_zero_form_p): Ditto.
26585 (pred_expr_equal_p): Ditto.
26586 (pred_neg_p): Ditto.
26587 (simplify_pred): Ditto.
26588 (simplify_preds_2): Ditto.
26589 (simplify_preds_3): Ditto.
26590 (simplify_preds_4): Ditto.
26591 (simplify_preds): Ditto.
26592 (push_pred): Ditto.
26593 (push_to_worklist): Ditto.
26594 (get_pred_info_from_cmp): Ditto.
26595 (is_degenerated_phi): Ditto.
26596 (normalize_one_pred_1): Ditto.
26597 (normalize_one_pred): Ditto.
26598 (normalize_one_pred_chain): Ditto.
26599 (normalize_preds): Ditto.
26600 (normalize_cond_1): Remove function.
26601 (normalize_cond): Ditto.
26602 (is_gcond_subset_of): Ditto.
26603 (is_subset_of_any): Ditto.
26604 (is_or_set_subset_of): Ditto.
26605 (is_and_set_subset_of): Ditto.
26606 (is_norm_cond_subset_of): Ditto.
26607 (pred_chain_length_cmp): Ditto.
26608 (convert_control_dep_chain_into_preds): Type change.
26609 (find_predicates): Ditto.
26610 (find_def_preds): Ditto.
26611 (destroy_predicates_vecs): Ditto.
26612 (find_matching_predicates_in_rest_chains): Ditto.
26613 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26614 (is_pred_expr_subset): Ditto.
26615 (is_pred_chain_subset_of): Ditto.
26616 (is_included_in): Ditto.
26617 (is_superset_of): Ditto.
26618
26619 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26620
26621 Update copyright years.
26622
26623 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26624
26625 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26626 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26627 config/arc/arc.md, config/arc/arc.opt,
26628 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26629 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26630 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26631 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26632 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26633 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26634 vtable-verify.c, vtable-verify.h: Use the standard form for the
26635 copyright notice.
26636
26637 2014-01-02 Tobias Burnus <burnus@net-b.de>
26638
26639 * gcc.c (process_command): Update copyright notice dates.
26640 * gcov-dump.c: Ditto.
26641 * gcov.c: Ditto.
26642 * doc/cpp.texi: Bump @copying's copyright year.
26643 * doc/cppinternals.texi: Ditto.
26644 * doc/gcc.texi: Ditto.
26645 * doc/gccint.texi: Ditto.
26646 * doc/gcov.texi: Ditto.
26647 * doc/install.texi: Ditto.
26648 * doc/invoke.texi: Ditto.
26649
26650 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26651
26652 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26653
26654 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26655
26656 * config/i386/sse.md (*mov<mode>_internal): Guard
26657 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26658
26659 PR rtl-optimization/59647
26660 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26661 new_rtx into UNSIGNED_FLOAT rtxes.
26662 \f
26663 Copyright (C) 2014 Free Software Foundation, Inc.
26664
26665 Copying and distribution of this file, with or without modification,
26666 are permitted in any medium without royalty provided the copyright
26667 notice and this notice are preserved.