Introduce rtx_sequence subclass of rtx_def
[gcc.git] / gcc / ChangeLog
1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2
3 * coretypes.h (class rtx_sequence): Add forward declaration.
4 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
5 invariant: GET_CODE (X) == SEQUENCE.
6 (is_a_helper <rtx_sequence *>::test): New.
7 (is_a_helper <const rtx_sequence *>::test): New.
8 (rtx_sequence::len): New.
9 (rtx_sequence::element): New.
10 (rtx_sequence::insn): New.
11
12 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13
14 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
15 rtx_insn_list **.
16 (alloc_INSN_LIST): Strengthen return type from rtx to
17 rtx_insn_list *.
18 (copy_INSN_LIST): Likewise for return type and param.
19 (concat_INSN_LIST): Likewise for both params and return type.
20 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
21 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
22 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
23 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
24
25 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
26 "implicit_sets", "control_uses", "clobbers" from rtx to
27 rtx_insn_list *.
28 (struct deps_desc): Likewise for fields "pending_read_insns",
29 "pending_write_insns", "pending_jump_insns",
30 "last_pending_memory_flush", "last_function_call",
31 "last_function_call_may_noreturn", "sched_before_next_call",
32 "sched_before_next_jump".
33 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
34 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
35
36 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
37 from rtx to rtx_insn_list *.
38 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
39 rtx_insn_list *.
40
41 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
42 to rtx_insn_list **.
43 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
44 rtx_insn_list *.
45 (queue_insn): Likewise for local "link".
46 (struct haifa_saved_data): Strengthen field "insn_queue" from
47 rtx * to rtx_insn_list **.
48 (save_backtrack_point): Update allocation of save->insn_queue to
49 reflect the strengthening of elements from rtx to rtx_insn_list *.
50 (queue_to_ready): Strengthen local "link" from rtx to
51 rtx_insn_list *; use methods "next" and "insn" when traversing the
52 list.
53 (early_queue_to_ready): Likewise for locals "link", "next_link",
54 "prev_link".
55 (schedule_block): Update allocation of insn_queue to reflect the
56 strengthening of elements from rtx to rtx_insn_list *. Strengthen
57 local "link" from rtx to rtx_insn_list *, and use methods when
58 working it.
59 (add_to_speculative_block): Strengthen locals "twins" and
60 "next_node" from rtx to rtx_insn_list *, and use methods when
61 working with them. Strengthen local "twin" from rtx to
62 rtx_insn *, eliminating a checked cast.
63 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
64 from rtx to rtx_insn_list *, and use methods when working with
65 them.
66
67 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
68 from rtx to rtx_insn_list *, adding a checked cast.
69 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
70 rtx_insn_list **.
71 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
72 "newlink" from rtx to rtx_insn_list *. Strengthen local
73 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
74 from rtx to rtx_insn *.
75 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
76 from rtx to rtx_insn_list *. Use methods of the latter class.
77 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
78 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
79 (remove_free_INSN_LIST_node): Strengthen return type and local
80 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
81 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
82 rtx_insn_list *, using "insn" method.
83
84 * sched-deps.c (add_dependence_list): Strengthen param "list"
85 from rtx to rtx_insn_list *, and use methods when working with it.
86 (add_dependence_list_and_free): Strengthen param "listp" from
87 rtx * to rtx_insn_list **.
88 (remove_from_dependence_list): Strenghten param "listp" from rtx *
89 to rtx_insn_list **, and use methods when working with *listp.
90 (remove_from_both_dependence_lists): Strengthen param "listp" from
91 rtx * to rtx_insn_list **
92 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
93 to rtx_insn_list **. Eliminate local "link", in favor of two new
94 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
95 respectively.
96 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
97 by introducing local "cond_deps".
98 (remove_from_deps): Strengthen param "insn" from rtx to
99 rtx_insn *.
100
101 * sched-rgn.c (concat_insn_mem_list): Strengthen param
102 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
103 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
104 Use methods of rtx_insn_list.
105
106 * store-motion.c (struct st_expr): Strengthen fields
107 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
108 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
109 rtx_insn_list *.
110 (find_moveable_store): Split out "tmp" into multiple more-tightly
111 scoped locals. Use methods of rtx_insn_list *.
112 (compute_store_table): Strengthen local "tmp" from rtx to
113 rtx_insn *. Use methods of rtx_insn_list *.
114
115 2014-08-27 David Malcolm <dmalcolm@redhat.com>
116
117 * coretypes.h (class rtx_insn_list): Add forward declaration.
118 * rtl.h (class rtx_insn_list): New subclass of rtx_def
119 (is_a_helper <rtx_insn_list *>::test): New.
120 (rtx_insn_list::next): New.
121 (rtx_insn_list::insn): New.
122 (gen_rtx_INSN_LIST): Add prototype.
123 * emit-rtl.c (gen_rtx_INSN_LIST): New.
124 * gengenrtl.c (special_rtx): Add INSN_LIST.
125
126 2014-08-27 David Malcolm <dmalcolm@redhat.com>
127
128 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
129 "prev" from rtx to rtx_insn *.
130
131 2014-08-27 David Malcolm <dmalcolm@redhat.com>
132
133 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
134 functions. Require merely an rtx for now, not an rtx_insn *.
135 (BLOCK_FOR_INSN): Likewise.
136 (INSN_LOCATION): Likewise.
137 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
138
139 2014-08-27 David Malcolm <dmalcolm@redhat.com>
140
141 * rtl.h (PATTERN): Convert this macro into a pair of inline
142 functions, for now, requiring const_rtx and rtx.
143
144 2014-08-27 David Malcolm <dmalcolm@redhat.com>
145
146 * target.def (unwind_emit): Strengthen param "insn" from rtx to
147 rtx_insn *.
148 (final_postscan_insn): Likewise.
149 (adjust_cost): Likewise.
150 (adjust_priority): Likewise.
151 (variable_issue): Likewise.
152 (macro_fusion_pair_p): Likewise.
153 (dfa_post_cycle_insn): Likewise.
154 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
155 (first_cycle_multipass_issue): Likewise.
156 (dfa_new_cycle): Likewise.
157 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
158 (speculate_insn): Likewise for param "insn".
159 (gen_spec_check): Likewise for params "insn" and "label".
160 (get_insn_spec_ds): Likewise for param "insn".
161 (get_insn_checked_ds): Likewise.
162 (dispatch_do): Likewise.
163 (dispatch): Likewise.
164 (cannot_copy_insn_p): Likewise.
165 (invalid_within_doloop): Likewise.
166 (legitimate_combined_insn): Likewise.
167 (needed): Likewise.
168 (after): Likewise.
169
170 * doc/tm.texi: Automatically updated to reflect changes to
171 target.def.
172
173 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
174 working with insn.
175 (schedule_block): Likewise.
176 (sched_init): Likewise.
177 (sched_speculate_insn): Strengthen param "insn" from rtx to
178 rtx_insn *.
179 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
180 working with insn.
181 * hooks.c (hook_bool_rtx_true): Rename to...
182 hook_bool_rtx_insn_true): ...this, and strengthen first param from
183 rtx to rtx_insn *.
184 (hook_constcharptr_const_rtx_null): Rename to...
185 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
186 first param from const_rtx to const rtx_insn *.
187 (hook_bool_rtx_int_false): Rename to...
188 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
189 param from rtx to rtx_insn *.
190 (hook_void_rtx_int): Rename to...
191 (hook_void_rtx_insn_int): ...this, and strengthen first param from
192 rtx to rtx_insn *.
193
194 * hooks.h (hook_bool_rtx_true): Rename to...
195 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
196 rtx to rtx_insn *.
197 (hook_bool_rtx_int_false): Rename to...
198 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
199 param from rtx to rtx_insn *.
200 (hook_void_rtx_int): Rename to...
201 (hook_void_rtx_insn_int): ...this, and strengthen first param from
202 rtx to rtx_insn *.
203 (hook_constcharptr_const_rtx_null): Rename to...
204 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
205 first param from const_rtx to const rtx_insn *.
206
207 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
208 and local "prev" from rtx to rtx_insn *.
209
210 * sched-int.h (sched_speculate_insn): Strengthen first param from
211 rtx to rtx_insn *.
212
213 * sel-sched.c (create_speculation_check): Likewise for local "label".
214 * targhooks.c (default_invalid_within_doloop): Strengthen param
215 "insn" from const_rtx to const rtx_insn *.
216 * targhooks.h (default_invalid_within_doloop): Strengthen param
217 from const_rtx to const rtx_insn *.
218
219 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
220 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
221
222 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
223 "insn".
224 (arc_invalid_within_doloop): Likewise, with const.
225
226 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
227 (arm_cannot_copy_insn_p): Likewise for param "insn".
228 (arm_unwind_emit): Likewise.
229
230 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
231 "dep_insn".
232
233 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
234 (c6x_variable_issue): Likewise. Removed now-redundant checked
235 cast.
236 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
237
238 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
239 Likewise for param "insn".
240 (epiphany_mode_after): Likewise.
241 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
242 params "insn", "dep_insn".
243 (epiphany_mode_needed): Likewise for param "insn".
244 (epiphany_mode_after): Likewise.
245
246 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
247 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
248 (ix86_avx_u128_mode_needed): Likewise.
249 (ix86_i387_mode_needed): Likewise.
250 (ix86_mode_needed): Likewise.
251 (ix86_avx_u128_mode_after): Likewise.
252 (ix86_mode_after): Likewise.
253 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
254 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
255 (ix86_adjust_priority): Likewise for param "insn".
256 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
257 (do_dispatch): Likewise.
258 (has_dispatch): Likewise.
259 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
260
261 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
262 reflect renaming of default hook implementation from
263 hook_constcharptr_const_rtx_null to
264 hook_constcharptr_const_rtx_insn_null.
265 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
266 rtx to rtx_insn *.
267 (ia64_variable_issue): Likewise for param "insn".
268 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
269 (ia64_dfa_new_cycle): Likewise.
270 (ia64_get_insn_spec_ds): Likewise.
271 (ia64_get_insn_checked_ds): Likewise.
272 (ia64_speculate_insn): Likewise.
273 (ia64_gen_spec_check): Likewise for params "insn", "label".
274 (ia64_asm_unwind_emit): Likewise for param "insn".
275
276 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
277
278 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
279 "insn", "def_insn".
280 (m68k_sched_variable_issue): Likewise for param "insn".
281
282 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
283 "def_insn".
284
285 * config/microblaze/microblaze.c (microblaze_adjust_cost):
286 Likewise for params "insn", "dep".
287
288 * config/mips/mips.c (mips_adjust_cost): Likewise.
289 (mips_variable_issue): Likewise for param "insn".
290 (mips_final_postscan_insn): Likewise.
291
292 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
293 for params "insn", "dep".
294
295 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
296 "dep_insn".
297 (pa_adjust_priority): Likewise for param "insn".
298
299 * config/picochip/picochip.c (picochip_sched_adjust_cost):
300 Likewise for params "insn", "dep_insn".
301
302 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
303 param "insn".
304 (rs6000_variable_issue): Likewise.
305 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
306 (rs6000_debug_adjust_cost): Likewise.
307 (rs6000_adjust_priority): Likewise for param "insn".
308 (rs6000_use_sched_lookahead_guard): Likewise.
309 (get_next_active_insn): Likewise for return type and both params.
310 (redefine_groups): Likewise for params "prev_head_insn", "tail"
311 and locals "insn", "next_insn".
312 (pad_groups): Likewise.
313
314 * config/s390/s390.c (s390_adjust_priority): Likewise for param
315 "insn".
316 (s390_cannot_copy_insn_p): Likewise.
317 (s390_sched_variable_issue): Likewise for third param, eliminating
318 checked cast.
319 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
320 default hook implementation from hook_constcharptr_const_rtx_null
321 to hook_constcharptr_const_rtx_insn_null.
322
323 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
324 from rtx to rtx_insn *.
325 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
326 (sh_variable_issue): Likewise for param "insn".
327 (sh_dfa_new_cycle): Likewise.
328 (sh_mode_needed): Likewise.
329 (sh_mode_after): Likewise.
330
331 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
332 params "insn", "dep_insn".
333 (hypersparc_adjust_cost): Likewise.
334 (sparc_adjust_cost): Likewise.
335
336 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
337 param, eliminated checked cast.
338 (spu_sched_adjust_cost): Likewise for first and third params.
339
340 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
341 params "insn" and "dep_insn" from rtx to rtx_insn *.
342
343 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
344
345 2014-08-27 David Malcolm <dmalcolm@redhat.com>
346
347 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
348 (set_is_load_p): ...this, updating to work on a SET pattern rather
349 than an insn.
350 (is_store_insn): Rename to...
351 (set_is_store_p): ...this, updating to work on a SET pattern
352 rather than an insn.
353 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
354 top of function to where it is needed. Rewrite the bogus
355 condition that checks for "insn" and "dep" being PARALLEL to
356 instead use single_set, introducing locals "insn_set" and
357 "dep_set". Given that we only ever returned "cost" for a non-pair
358 of SETs, bail out early if we don't have a pair of SET.
359 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
360 use the new locals "insn_set" and "dep_set", and update calls to
361 is_load_insn and is_store_insn to be calls to set_is_load_p and
362 set_is_store_p.
363
364 2014-08-27 Guozhi Wei <carrot@google.com>
365
366 PR target/62262
367 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
368 amount before using it.
369
370 2014-08-27 Richard Biener <rguenther@suse.de>
371
372 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
373 get_maxval_strlen inside a more useful API.
374 (gimple_fold_builtin_with_strlen): Remove and fold into ...
375 (gimple_fold_builtin): ... caller.
376 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
377 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
378 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
379 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
380 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
381 gimple_fold_builtin_sprintf): Adjust to compute maxval
382 themselves.
383
384 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
385
386 PR other/62248
387 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
388
389 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
390 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
391 Anna Tikhonova <anna.tikhonova@intel.com>
392 Ilya Tocar <ilya.tocar@intel.com>
393 Andrey Turetskiy <andrey.turetskiy@intel.com>
394 Ilya Verbin <ilya.verbin@intel.com>
395 Kirill Yukhin <kirill.yukhin@intel.com>
396 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
397
398 * config/i386/sse.md
399 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
400 Use `concat_tg_mode' attribute to determine asm register size.
401
402 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
403 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
404 Anna Tikhonova <anna.tikhonova@intel.com>
405 Ilya Tocar <ilya.tocar@intel.com>
406 Andrey Turetskiy <andrey.turetskiy@intel.com>
407 Ilya Verbin <ilya.verbin@intel.com>
408 Kirill Yukhin <kirill.yukhin@intel.com>
409 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
410
411 * config/i386/sse.md
412 (define_mode_iterator VI48_AVX512VL): New.
413 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
414 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
415 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
416 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
417 with VI1): Change mode iterator.
418 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
419 with VI_ULOADSTORE_BW_AVX512VL): New.
420 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
421 with VI_ULOADSTORE_F_AVX512VL): Ditto.
422 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
423 with VI1): Change mode iterator.
424 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
425 with VI_ULOADSTORE_BW_AVX512VL): New.
426 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
427 with VI_ULOADSTORE_F_AVX512VL): Ditto.
428 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
429 with VI1): Change mode iterator.
430 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
431 with VI_ULOADSTORE_BW_AVX512VL): New.
432 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
433 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
434 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
435 (define_insn "<avx512>_storedqu<mode>_mask" with
436 VI48_AVX512VL): New.
437 (define_insn "<avx512>_storedqu<mode>_mask" with
438 VI12_AVX512VL): Ditto.
439
440 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
441 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
442 Anna Tikhonova <anna.tikhonova@intel.com>
443 Ilya Tocar <ilya.tocar@intel.com>
444 Andrey Turetskiy <andrey.turetskiy@intel.com>
445 Ilya Verbin <ilya.verbin@intel.com>
446 Kirill Yukhin <kirill.yukhin@intel.com>
447 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
448
449 * config/i386/sse.md
450 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
451 (define_mode_iterator VI48_AVX512BW): New.
452 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
453 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
454 with VI48_AVX2_48_AVX512F): New.
455 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
456 with VI2_AVX512VL): Ditto.
457
458 2014-08-27 Richard Biener <rguenther@suse.de>
459
460 PR middle-end/62239
461 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
462 (fold_builtin_3): Do not fold strcat_chk here.
463 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
464 from builtins.c.
465 (gimple_fold_builtin): Fold strcat_chk here.
466
467 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
468
469 * dwarf2out.h (dwarf2out_decl): Remove prototype.
470 * dwarf2out.c (dwarf2out_decl): Make static.
471
472 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
473
474 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
475
476 2014-08-26 David Malcolm <dmalcolm@redhat.com>
477
478 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
479 from rtx to rtx_insn *.
480 (cselib_lookup_from_insn): Likewise for final param.
481 (cselib_subst_to_values_from_insn): Likewise.
482 (cselib_add_permanent_equiv): Likewise.
483
484 * cselib.c (cselib_current_insn): Likewise for this variable.
485 (cselib_subst_to_values_from_insn): Likewise for param "insn".
486 (cselib_lookup_from_insn): Likewise.
487 (cselib_add_permanent_equiv): Likewise for param "insn" and local
488 "save_cselib_current_insn".
489 (cselib_process_insn): Replace use of NULL_RTX with NULL.
490
491 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
492 from rtx to rtx_insn *.
493
494 2014-08-26 David Malcolm <dmalcolm@redhat.com>
495
496 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
497 rtx_insn *.
498
499 2014-08-26 David Malcolm <dmalcolm@redhat.com>
500
501 * df.h (df_dump_insn_problem_function): Strengthen first param of
502 this callback from const_rtx to const rtx_insn *.
503 (struct df_insn_info): Strengthen field "insn" from rtx to
504 rtx_insn *.
505 (DF_REF_INSN): Eliminate this function, reinstating the older
506 macro definition.
507 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
508 (df_reg_defined): Likewise.
509 (df_find_use): Likewise.
510 (df_reg_used): Likewise.
511 (df_dump_insn_top): Strengthen param 1 from const_rtx to
512 const rtx_insn *.
513 (df_dump_insn_bottom): Likewise.
514 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
515 (df_insn_debug_regno): Likewise.
516 (debug_df_insn): Likewise.
517 (df_rd_simulate_one_insn): Likewise for param 2.
518 (df_word_lr_simulate_defs): Likewise for param 1.
519 (df_word_lr_simulate_uses): Likewise.
520 (df_md_simulate_one_insn): Likewise for param 2.
521 (df_simulate_find_noclobber_defs): Likewise for param 1.
522 (df_simulate_find_defs): Likewise.
523 (df_simulate_defs): Likewise.
524 (df_simulate_uses): Likewise.
525 (df_simulate_one_insn_backwards): Likewise for param 2.
526 (df_simulate_one_insn_forwards): Likewise.
527 (df_uses_create): Likewise for param 2.
528 (df_insn_create_insn_record): Likewise for param 1.
529 (df_insn_delete): Likewise.
530 (df_insn_rescan): Likewise.
531 (df_insn_rescan_debug_internal): Likewise.
532 (df_insn_change_bb): Likewise.
533 (df_notes_rescan): Likewise.
534 * rtl.h (remove_death): Likewise for param 2.
535 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
536 const rtx_insn *.
537 * sched-int.h (reemit_notes): Strengthen param from rtx to
538 rtx_insn *.
539 * valtrack.h (propagate_for_debug): Likewise for param 1.
540
541 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
542 local "tmp_rtx" from const_rtx to const rtx_insn *.
543 * combine.c (remove_death): Strengthen param "insn" from rtx to
544 rtx_insn *.
545 (move_deaths): Likewise for local "where_dead".
546 * cse.c (delete_trivially_dead_insns): Introduce local
547 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
548 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
549 rtx_insn *.
550 (df_reg_defined): Likewise.
551 (df_find_use): Likewise.
552 (df_reg_used): Likewise.
553 (df_dump_insn_problem_data): Strengthen param "insn" from
554 const_rtx to const rtx_insn *.
555 (df_dump_insn_top): Likewise.
556 (df_dump_insn_bottom): Likewise.
557 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
558 (df_insn_debug_regno): Likewise.
559 (debug_df_insn): Likewise.
560 (DF_REF_INSN): Delete.
561 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
562 from rtx to rtx_insn *.
563 (df_chain_insn_top_dump): Strengthen param "insn" from
564 const_rtx to const rtx_insn *.
565 (df_chain_insn_bottom_dump): Likewise.
566 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
567 rtx_insn *.
568 (df_word_lr_simulate_uses): Likewise.
569 (df_print_note): Likewise.
570 (df_remove_dead_and_unused_notes): Likewise.
571 (df_set_unused_notes_for_mw): Likewise.
572 (df_set_dead_notes_for_mw): Likewise.
573 (df_create_unused_note): Likewise.
574 (df_simulate_find_defs): Likewise.
575 (df_simulate_find_uses): Likewise.
576 (df_simulate_find_noclobber_defs): Likewise.
577 (df_simulate_defs): Likewise.
578 (df_simulate_uses): Likewise.
579 (df_simulate_one_insn_backwards): Likewise.
580 (df_simulate_one_insn_forwards): Likewise.
581 (df_md_simulate_one_insn): Likewise.
582 * df-scan.c (df_uses_create): Likewise.
583 (df_insn_create_insn_record): Likewise.
584 (df_insn_delete): Likewise.
585 (df_insn_rescan): Likewise.
586 (df_insn_rescan_debug_internal): Likewise.
587 (df_insn_change_bb): Likewise.
588 (df_notes_rescan): Likewise.
589 (df_refs_add_to_chains): Likewise.
590 (df_insn_refs_verify): Likewise.
591 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
592 when invoking df_insn_delete.
593 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
594 (set_unique_reg_note): Add checked cast.
595 * final.c (cleanup_subreg_operands): Likewise.
596 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
597 "insn" from rtx to rtx_insn *.
598 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
599 "last" from rtx to rtx_insn *.
600 * ira-emit.c (change_regs_in_insn): New function.
601 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
602 Invoke change_regs_in_insn rather than change_regs.
603 * ira.c (update_equiv_regs): Strengthen locals "insn",
604 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
605 for_each_rtx_in_insn rather than for_each_rtx.
606 * recog.c (confirm_change_group): Add checked casts.
607 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
608 Add checked cast.
609 (peep2_fill_buffer): Add checked cast.
610 * rtlanal.c (remove_note): Likewise.
611 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
612 locals "next" "end" from rtx to rtx_insn *.
613
614 2014-08-26 David Malcolm <dmalcolm@redhat.com>
615
616 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
617 to rtx_insn *.
618 (struct reg_use_data): Likewise for field "insn".
619 (insn_cost): Likewise for param.
620 (real_insn_for_shadow): Likewise for return type and param.
621 (increase_insn_priority): Likewise for param 1.
622 (debug_dependencies): Likewise for both params.
623
624 * haifa-sched.c (insn_delay): Likewise for param "insn".
625 (real_insn_for_shadow): Likewise for return type and param "insn".
626 (update_insn_after_change): Likewise for param "insn".
627 (recompute_todo_spec): Likewise for param "next" and locals "pro",
628 "other".
629 (insn_cost): Likewise for param "insn".
630 (increase_insn_priority): Likewise.
631 (calculate_reg_deaths): Likewise.
632 (setup_insn_reg_pressure_info): Likewise.
633 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
634 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
635 (model_recompute): Likewise.
636 (must_restore_pattern_p): Likewise for param "next".
637 (model_excess_cost): Likewise for param "insn".
638 (queue_remove): Likewise.
639 (adjust_priority): Likewise for param "prev".
640 (update_register_pressure): Likewise for param "insn".
641 (setup_insn_max_reg_pressure): Likewise for local "insn".
642 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
643 (model_add_to_schedule): Likewise.
644 (model_reset_queue_indices): Likewise for local "insn".
645 (unschedule_insns_until): Strengthen local "recompute_vec" from
646 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
647 "con" from rtx to rtx_insn *.
648 (restore_last_backtrack_point): Likewise for both locals "x". Add
649 checked casts.
650 (estimate_insn_tick): Likewise for param "insn".
651 (commit_schedule): Likewise for params "prev_head", "tail" and
652 local "x".
653 (verify_shadows): Likewise for locals "i1", "i2".
654 (dump_insn_stream): Likewise for params "head", "tail" and locals
655 "next_tail", "insn".
656 (schedule_block): Likewise for locals "insn", "x". Add a checked
657 cast.
658 (fix_inter_tick): Likewise for params "head", "tail".
659 (create_check_block_twin): Likewise for local "jump".
660 (haifa_change_pattern): Likewise for param "insn".
661 (haifa_speculate_insn): Likewise.
662 (dump_new_block_header): Likewise for params "head", "tail".
663 (fix_jump_move): Likewise for param "jump".
664 (move_block_after_check): Likewise.
665 (sched_init_insn_luid): Likewise for param "insn".
666 (sched_init_luids): Likewise for local "insn".
667 (insn_luid): Likewise for param "insn".
668 (init_h_i_d): Likewise.
669 (haifa_init_h_i_d): Likewise for local "insn".
670 (haifa_init_insn): Likewise for param "insn".
671 * sched-deps.c (add_dependence): Likewise for local "real_pro",
672 "other".
673 (create_insn_reg_use): Likewise for param "insn".
674 (setup_insn_reg_uses): Likewise. Add a checked cast.
675 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
676 "tail" from rtx to rtx_insn *.
677 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
678 "insn", "next_tail".
679
680 2014-08-26 David Malcolm <dmalcolm@redhat.com>
681
682 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
683 from rtx to rtx_insn *.
684 (model_add_to_schedule): Likewise for locals "start", "end",
685 "iter".
686
687 2014-08-26 David Malcolm <dmalcolm@redhat.com>
688
689 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
690 rtx_insn *.
691 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
692 "to" and locals "insn", "next", "copy". Remove now-redundant
693 checked cast.
694
695 2014-08-26 David Malcolm <dmalcolm@redhat.com>
696
697 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
698 rtx_insn * and param 4 from rtx * to rtx_insn **.
699 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
700 param 2 from rtx * to rtx_insn **.
701
702 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
703 rtx_insn * and final param from rtx * to rtx_insn **.
704
705 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
706 from rtx to rtx_insn *.
707 (try_head_merge_bb): Likewise for both locals named "move_upto".
708 * df-problems.c (can_move_insns_across): Likewise for params
709 "from", "to", "across_from", "across_to" and locals "insn",
710 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
711 rtx_insn **.
712 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
713 from rtx to rtx_insn *.
714 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
715 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
716 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
717 rtx_insn *.
718 (noce_try_abs): Likewise.
719 (noce_get_condition): Likewise for param "jump". Strengthen param
720 "earliest" from rtx * to rtx_insn **.
721 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
722 rtx_insn *.
723 (find_cond_trap): Likewise.
724 (dead_or_predicable): Likewise for local "earliest".
725 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
726 checked cast.
727 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
728 and local "prev". Strengthen param "earliest" from rtx * to
729 rtx_insn **.
730 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
731 Strengthen param "earliest" from rtx * to rtx_insn **.
732
733 2014-08-26 David Malcolm <dmalcolm@redhat.com>
734
735 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
736 "to" and local "insn" from rtx to rtx_insn *.
737
738 2014-08-26 David Malcolm <dmalcolm@redhat.com>
739
740 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
741 from rtx to rtx_insn *.
742 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
743 (code_motion_path_driver): Likewise for local "last_insn".
744 (simplify_changed_insns): Likewise for local "insn".
745
746 2014-08-26 David Malcolm <dmalcolm@redhat.com>
747
748 * rtl.h (push_to_sequence): Strengthen param from rtx to
749 rtx_insn *.
750 (push_to_sequence2): Likewise for both params.
751 (delete_insns_since): Likewise for param.
752 (reorder_insns_nobb): Likewise for all three params.
753 (set_new_first_and_last_insn): Likewise for both params.
754
755 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
756 rtx_insn *. Remove now-redundant cast.
757 (set_last_insn): Likewise.
758
759 * builtins.c (expand_builtin_return): Strengthen local
760 "call_fusage" from rtx to rtx_insn *.
761 * cfgrtl.c (create_basic_block_structure): Likewise for local
762 "after".
763 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
764 "first", "last" and local "insn".
765 (delete_insns_since): Likewise for param "from".
766 (reorder_insns_nobb): Likewise for params "from", "to", "after"
767 and local "x".
768 (push_to_sequence): Likewise for param "first" and local "last".
769 (push_to_sequence2): Likewise for params "first" and "last".
770 * lra.c (emit_add3_insn): Likewise for local "last".
771 (lra_emit_add): Likewise.
772 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
773 "last_insn".
774 (process_address_1): Likewise for locals "insn", last".
775 * modulo-sched.c (ps_first_note): Likewise for return type.
776 * optabs.c (expand_binop_directly): Likewise for param "last".
777
778 2014-08-26 David Malcolm <dmalcolm@redhat.com>
779
780 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
781 to rtx_insn*.
782 * emit-rtl.c (get_last_insn_anywhere): Likewise.
783
784 2014-08-26 David Malcolm <dmalcolm@redhat.com>
785
786 * function.h (struct sequence_stack): Strengthen fields "first"
787 and "last" from rtx to rtx_insn *.
788 (struct emit_status): Likewise for fields "x_first_insn" and
789 "x_last_insn".
790
791 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
792 (set_first_insn): Add checked cast.
793 (get_last_insn): Remove now-redundant checked cast.
794 (set_last_insn): Add checked cast.
795
796 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
797 "saved_first" and "saved_last" from rtx to rtx_insn *.
798
799 2014-08-26 David Malcolm <dmalcolm@redhat.com>
800
801 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
802 (unlink_insn_chain): Strengthen both params from rtx to
803 rtx_insn *.
804
805 * cfgrtl.c (cfg_layout_function_header): Likewise for this
806 variable.
807 (unlink_insn_chain): Likewise for params "first" and "last".
808 Remove now-redundant checked cast.
809 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
810 (fixup_reorder_chain): Strengthen local "insn" from rtx to
811 rtx_insn *.
812 * emit-rtl.c (link_insn_into_chain): Likewise for all three
813 params.
814 (add_insn): Likewise for param "insn" and local "prev".
815 (add_insn_after_nobb): Likewise for both params and local "next".
816 (add_insn_before_nobb): Likewise for both params and local "prev".
817 (add_insn_after): Rename param "after" to "uncast_after",
818 introducing local "after" with another checked cast.
819 (add_insn_before): Rename params "insn" and "before", giving them
820 "uncast_" prefixes, adding the old names back using checked casts.
821 (emit_note_after): Likewise for param "after".
822 (emit_note_before): Likewise for param "before".
823 (emit_label): Add a checked cast.
824
825 2014-08-26 David Malcolm <dmalcolm@redhat.com>
826
827 * cselib.h (cselib_record_sets_hook): Strengthen initial param
828 "insn" from rtx to rtx_insn *.
829
830 * cselib.c (cselib_record_sets_hook): Likewise.
831
832 * var-tracking.c (add_with_sets): Likewise, renaming back from
833 "uncast_insn" to "insn" and eliminating the checked cast from rtx
834 to rtx_insn *.
835
836 2014-08-26 David Malcolm <dmalcolm@redhat.com>
837
838 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
839 and "header_" from rtx to rtx_insn *.
840 (struct basic_block_d): Likewise for field "head_" within "x"
841 field of union basic_block_il_dependent.
842 (BB_HEAD): Drop function...
843 (SET_BB_HEAD): ...and this function in favor of...
844 (BB_HEAD): ...reinstate macro.
845 (BB_END): Drop function...
846 (SET_BB_END): ...and this function in favor of...
847 (BB_END): ...reinstate macro.
848 (BB_HEADER): Drop function...
849 (SET_BB_HEADER): ...and this function in favor of...
850 (BB_HEADER): ...reinstate macro.
851
852 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
853 (fix_crossing_unconditional_branches): Likewise.
854 * caller-save.c (save_call_clobbered_regs): Likewise.
855 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
856 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
857 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
858 (merge_blocks_move_successor_nojumps): Likewise.
859 (outgoing_edges_match): Update use of for_each_rtx to
860 for_each_rtx_in_insn.
861 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
862 (expand_gimple_cond): Likewise.
863 (expand_gimple_tailcall): Likewise.
864 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
865 SET_BB_END.
866 (construct_exit_block): Drop use of SET_BB_END.
867 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
868 rtx_insn *.
869 (delete_insn): Rename param "insn" to "uncast_insn", introducing
870 a new local "insn" with a checked cast to rtx_insn *. Drop use of
871 SET_BB_HEAD and SET_BB_END.
872 (create_basic_block_structure): Drop use of SET_BB_HEAD and
873 SET_BB_END.
874 (rtl_delete_block): Drop use of SET_BB_HEAD.
875 (rtl_split_block): Drop use of SET_BB_END.
876 (emit_nop_for_unique_locus_between): Likewise.
877 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
878 (block_label): Drop use of SET_BB_HEAD.
879 (fixup_abnormal_edges): Drop use of SET_BB_END.
880 (record_effective_endpoints): Drop use of SET_BB_HEADER.
881 (relink_block_chain): Likewise.
882 (fixup_reorder_chain): Drop use of SET_BB_END.
883 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
884 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
885 rtx_insn **. Drop use of SET_BB_HEADER.
886 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
887 SET_BB_HEAD.
888 (BB_HEAD): Delete this function.
889 (SET_BB_HEAD): Likewise.
890 (BB_END): Likewise.
891 (SET_BB_END): Likewise.
892 (BB_HEADER): Likewise.
893 (SET_BB_HEADER): Likewise.
894 * emit-rtl.c (add_insn_after): Rename param "insn" to
895 "uncast_insn", adding a new local "insn" and a checked cast to
896 rtx_insn *. Drop use of SET_BB_END.
897 (remove_insn): Strengthen locals "next" and "prev" from rtx to
898 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
899 (reorder_insns): Drop use of SET_BB_END.
900 (emit_insn_after_1): Strengthen param "first" and locals "last",
901 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
902 (emit_pattern_after_noloc): Add checked cast.
903 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
904 (restore_other_notes): Likewise.
905 (move_insn): Likewise.
906 (sched_extend_bb): Likewise.
907 (fix_jump_move): Likewise.
908 * ifcvt.c (noce_process_if_block): Likewise.
909 (dead_or_predicable): Likewise.
910 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
911 * reg-stack.c (change_stack): Drop use of SET_BB_END.
912 * sel-sched-ir.c (sel_move_insn): Likewise.
913 * sel-sched.c (move_nop_to_previous_block): Likewise.
914
915 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
916 SET_BB_END.
917 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
918
919 2014-08-26 David Malcolm <dmalcolm@redhat.com>
920
921 * basic-block.h (create_basic_block_structure): Strengthen params
922 1 "head" and 2 "end" from rtx to rtx_insn *.
923 * cfgrtl.c (create_basic_block_structure): Likewise.
924 (rtl_create_basic_block): Update casts from void * to rtx to
925 rtx_insn *, so that we can pass them as rtx_insn * to
926 create_basic_block_structure.
927 * sel-sched-ir.c (sel_create_basic_block): Likewise.
928
929 2014-08-26 David Malcolm <dmalcolm@redhat.com>
930
931 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
932 rtx_insn **.
933 (check_for_inc_dec): Strengthen param "insn" from rtx to
934 rtx_insn *.
935
936 * cselib.h (cselib_process_insn): Likewise.
937
938 * cselib.c (cselib_record_sets): Likewise.
939 (cselib_process_insn): Likewise.
940
941 * dse.c (struct insn_info): Likewise for field "insn".
942 (check_for_inc_dec_1): Likewise for local "insn".
943 (check_for_inc_dec): Likewise for param "insn".
944 (scan_insn): Likewise.
945 (dse_step1): Likewise for local "insn".
946
947 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
948 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
949
950 2014-08-26 David Malcolm <dmalcolm@redhat.com>
951
952 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
953 from rtx to rtx_insn *.
954 (DEP_PRO): Delete this function and...
955 (SET_DEP_PRO): ...this function in favor of...
956 (DEP_PRO): ...reinstate this macro.
957 (DEP_CON): Delete this function and...
958 (SET_DEP_CON): ...this function in favor of...
959 (DEP_CON): ...reinstate this old macro.
960 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
961 (init_dep): Likewise.
962 (set_priorities): Likewise for both params.
963 (sd_copy_back_deps): Likewise for params 1 and 2.
964
965 * haifa-sched.c (priority): Likewise for param "insn" and local
966 "next".
967 (set_priorities): Likewise for params "head" and "tail" and local
968 "insn".
969 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
970 local "consumer".
971 (add_to_speculative_block): Add a checked cast.
972 (create_check_block_twin): Drop use of SET_DEP_CON.
973 (add_jump_dependencies): Strengthen params "insn" and "jump" from
974 rtx to rtx_insn *.
975
976 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
977 Drop use of SET_DEP_PRO
978 (init_dep): Strengthen params "pro" and "con" from rtx to
979 rtx_insn *.
980 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
981 use of SET_DEP_CON.
982 (DEP_PRO): Delete.
983 (DEP_CON): Delete.
984 (SET_DEP_PRO): Delete.
985 (SET_DEP_CON): Delete.
986
987 2014-08-26 David Malcolm <dmalcolm@redhat.com>
988
989 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
990 from rtx to rtx_insn *.
991 (VINSN_INSN_RTX): Eliminate rvalue function and...
992 (SET_VINSN_INSN): ...lvalue function in favor of...
993 (VINSN_INSN_RTX): reinstate this old macro.
994
995 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
996 in favor of VINSN_INSN_RTX.
997 (VINSN_INSN_RTX): Delete this function.
998 (SET_VINSN_INSN_RTX): Likewise.
999
1000 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1001
1002 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1003 (BND_TO): Delete this function and...
1004 (SET_BND_TO): ...this functions in favor of...
1005 (BND_TO): ...reinstating this macro.
1006 (struct _fence): Strengthen field "executing_insns" from
1007 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1008 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1009 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1010 and param "insn" from rtx to insn_t.
1011 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1012 rtx_insn *.
1013
1014 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1015 vec<rtx_insn *> .
1016 (rtx_vec_t): Likewise.
1017 (struct sched_deps_info_def): Strengthen param of "start_insn"
1018 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1019 "note_mem_dep" callback and first param of "note_dep" callback.
1020
1021 * haifa-sched.c (add_to_speculative_block): Strengthen param
1022 "insn" from rtx to rtx_insn *.
1023 (clear_priorities): Likewise.
1024 (calc_priorities): Likewise for local "insn".
1025
1026 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1027 Remove redundant checked cast.
1028 (haifa_note_mem_dep): Likewise for param "pending_insn".
1029 (haifa_note_dep): Likewise for param "elem".
1030 (note_mem_dep): Likewise for param "e".
1031 (sched_analyze_1): Add checked casts.
1032 (sched_analyze_2): Likewise.
1033
1034 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1035 from rtx to rtx_insn *.
1036 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1037 from vec<rtx> * to vec<rtx_insn *> *.
1038
1039 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1040 scaffolding.
1041 (flist_add): Strengthen param "executing_insns" from
1042 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1043 (advance_deps_context): Remove now-redundant checked cast.
1044 (init_fences): Replace uses of NULL_RTX with NULL.
1045 (merge_fences): Strengthen params "last_scheduled_insn" and
1046 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1047 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1048 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1049 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1050 an instruction, rather than doing double-duty as a pattern.
1051 (return_nop_to_pool): Update for change of insn_t.
1052 (deps_init_id): Remove now-redundant checked cast.
1053 (struct sched_scan_info_def): Strengthen param of "init_insn"
1054 callback from rtx to insn_t.
1055 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1056 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1057 NULL.
1058 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1059 "end" from rtx to rtx_insn *.
1060 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1061 (rtx insn_rtx, bool force_unique_p)
1062 (BND_TO): Delete function.
1063 (SET_BND_TO): Delete function.
1064
1065 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1066 rtx to rtx_insn *.
1067 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1068 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1069 rtx to rtx_insn *.
1070 (undo_transformations): Likewise for param "insn".
1071 (update_liveness_on_insn): Likewise.
1072 (compute_live_below_insn): Likewise for param "insn" and local
1073 "succ".
1074 (update_data_sets): Likewise for param "insn".
1075 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1076 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1077 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1078 rtx_insn *.
1079 (move_cond_jump): Likewise for param "insn".
1080 (move_cond_jump): Drop use of SET_BND_TO.
1081 (compute_av_set_on_boundaries): Likewise.
1082 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1083 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1084 from rtx to rtx_insn *.
1085 (maybe_emit_renaming_copy): Likewise for param "insn".
1086 (maybe_emit_speculative_check): Likewise.
1087 (handle_emitting_transformations): Likewise.
1088 (remove_insn_from_stream): Likewise.
1089 (code_motion_process_successors): Strengthen local "succ" from rtx
1090 to insn_t.
1091
1092 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1093
1094 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1095 ilist_t, not _xlist_t;
1096 (ILIST_INSN): Define in terms of new union field "insn".
1097 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1098 _XLIST_NEXT.
1099 (struct _list_node): Add new field "insn" to the union, of type
1100 insn_t.
1101 (ilist_add): Replace macro with an inline function, requiring an
1102 insn_t.
1103 (ilist_remove): Define this macro directly in terms of
1104 _list_remove, rather than indirectly via _xlist_remove.
1105 (ilist_clear): Likewise, in terms of _list_clear rather than
1106 _xlist_clear.
1107 (ilist_is_in_p): Replace macro with an inline function, requiring
1108 an insn_t.
1109 (_list_iter_cond_insn): New function.
1110 (ilist_iter_remove): Define this macro directly in terms of
1111 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1112 (ilist_iterator): Define directly in terms of _list_iterator
1113 rather than indirectly through _xlist_iterator.
1114 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1115 than in terms of _FOR_EACH_X.
1116 (FOR_EACH_INSN_1): Likewise.
1117
1118 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1119
1120 PR target/60606
1121 PR target/61330
1122 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1123 DECL_HARD_REGISTER and return for invalid register specifications.
1124 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1125 DECL_HARD_REGISTER, call expand_one_error_var.
1126 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1127 CC_REGNUM with non-MODE_CC modes.
1128 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1129
1130 2014-08-26 Marek Polacek <polacek@redhat.com>
1131
1132 PR c/61271
1133 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1134
1135 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1136
1137 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1138 qi cost; add di cost.
1139 (cortexa57_addrcost_table): Likewise.
1140
1141 2014-08-26 Marek Polacek <polacek@redhat.com>
1142
1143 PR c/61271
1144 * expr.c (is_aligning_offset): Remove logical not.
1145
1146 2014-08-26 Marek Polacek <polacek@redhat.com>
1147
1148 PR c/61271
1149 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1150 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1151
1152 2014-08-26 Richard Biener <rguenther@suse.de>
1153
1154 PR tree-optimization/62175
1155 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1156 expand possibly trapping operations.
1157
1158 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1159
1160 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1161 "insn" from rtx to rtx_insn *.
1162 (permute_load): Likewise for param "insn".
1163 (permute_store): Likewise.
1164 (handle_special_swappables): Likewise for local "insn".
1165 (replace_swap_with_copy): Likewise for locals "insn" and
1166 "new_insn".
1167 (rs6000_analyze_swaps): Likewise for local "insn".
1168
1169 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1170
1171 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1172 to rtx_insn *.
1173
1174 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1175
1176 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1177 "note_list" from rtx to rtx_insn *.
1178 (BB_NOTE_LIST): Replace this function and...
1179 (SET_BB_NOTE_LIST): ...this function with...
1180 (BB_NOTE_LIST): ...the former macro implementation.
1181
1182 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1183 local "from_start" from rtx to rtx_insn *. Strengthen param
1184 "to_endp" from rtx * to rtx_insn **.
1185
1186 * haifa-sched.c (concat_note_lists): Likewise.
1187 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1188 BB_NOTE_LIST.
1189 (sel_restore_notes): Likewise.
1190 (move_bb_info): Likewise.
1191 (BB_NOTE_LIST): Delete this function.
1192 (SET_BB_NOTE_LIST): Delete this function.
1193 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1194 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1195
1196 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1197
1198 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1199 from rtx * to rtx_insn **.
1200 (reorder2): Likewise.
1201 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1202 from rtx to rtx_insn *.
1203
1204 * doc/tm.texi: Update mechanically for above change to target.def.
1205
1206 * sched-int.h (note_list): Strengthen this variable from rtx to
1207 rtx_insn *.
1208 (remove_notes): Likewise for both params.
1209 (restore_other_notes): Likewise for return type and first param.
1210 (struct ready_list): Strengthen field "vec" from rtx * to
1211 rtx_insn **.
1212 (struct dep_replacement): Strenghten field "insn" from rtx to
1213 rtx_insn *.
1214 (struct deps_desc): Likewise for fields "last_debug_insn",
1215 "last_args_size".
1216 (struct haifa_sched_info): Likewise for callback field
1217 "can_schedule_ready_p"'s param, for first param of "new_ready"
1218 callback field, for both params of "rank" callback field, for
1219 first field of "print_insn" callback field (with a const), for
1220 both params of "contributes_to_priority" callback, for param
1221 of "insn_finishes_block_p" callback, for fields "prev_head",
1222 "next_tail", "head", "tail", for first param of "add_remove_insn"
1223 callback, for first param of "begin_schedule_ready" callback, for
1224 both params of "begin_move_insn" callback, and for second param
1225 of "advance_target_bb" callback.
1226 (add_dependence): Likewise for params 1 and 2.
1227 (sched_analyze): Likewise for params 2 and 3.
1228 (deps_analyze_insn): Likewise for param 2.
1229 (ready_element): Likewise for return type.
1230 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1231 (try_ready): Strenghten param from rtx to rtx_insn *.
1232 (sched_emit_insn): Likewise for return type.
1233 (record_delay_slot_pair): Likewise for params 1 and 2.
1234 (add_delay_dependencies): Likewise for param.
1235 (contributes_to_priority): Likewise for both params.
1236 (find_modifiable_mems): Likewise.
1237
1238 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1239 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1240 "first_older_only_insn" from rtx to rtx_insn *.
1241 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1242 rtx_insn **.
1243
1244 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1245 "last_scheduled_iter0" from rtx to rtx_insn *.
1246 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1247 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1248 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1249 "insn" from rtx to rtx_insn *.
1250 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1251 rtx_insn **.
1252 (c6x_sched_reorder2): Strengthen param "ready" and locals
1253 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1254 "insn" from rtx to rtx_insn *.
1255 (c6x_variable_issue): Add a checked cast when assigning from insn
1256 to ss.last_scheduled_iter0.
1257 (split_delayed_branch): Strengthen param "insn" and local "i1"
1258 from rtx to rtx_insn *.
1259 (split_delayed_nonbranch): Likewise.
1260 (undo_split_delayed_nonbranch): Likewise for local "insn".
1261 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1262 "entry_after", "end_packet", "head_insn", "tail_insn",
1263 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1264 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1265 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1266 but add a checked cast on loop->start_label. Consolidate calls to
1267 avoid assigning result of gen_spkernel to "insn", now an
1268 rtx_insn *.
1269
1270 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1271 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1272 rtx to rtx_insn *.
1273 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1274 rtx_insn **. Strengthen locals "top", "next" from rtx to
1275 rtx_insn *.
1276 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1277 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1278 (add_parameter_dependencies): Strengthen params "call", "head" and
1279 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1280 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1281 (add_dependee_for_func_arg): Likewise for param "arg" and local
1282 "insn".
1283 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1284 "tail" and locals "insn", "first_arg".
1285
1286 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1287 for params "head", "tail" and locals "insn", "next", "next_tail".
1288 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1289 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1290 "insn", "lowest", "highest" from rtx to rtx_insn *.
1291 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1292 rtx_insn **.
1293 (ia64_sched_reorder2): Likewise.
1294
1295 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1296 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1297 from rtx * to rtx_insn **.
1298 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1299 rtx_insn **.
1300 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1301 rtx_insn *.
1302 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1303 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1304 to rtx_insn *.
1305
1306 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1307 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1308 to rtx_insn *.
1309 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1310 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1311 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1312 rtx_insn **.
1313 (vr4130_reorder): Likewise.
1314 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1315 rtx to rtx_insn *.
1316 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1317 rtx_insn **.
1318 (mips_sched_reorder): Likewise.
1319 (mips_sched_reorder2): Likewise.
1320
1321 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1322
1323 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1324 Strengthen local "tmp" from rtx to rtx_insn *.
1325 (rs6000_sched_reorder2): Likewise.
1326
1327 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1328 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1329 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1330 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1331
1332 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1333 "tmp2" from rtx to rtx_insn *.
1334 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1335 Strengthen local "insn" from rtx to rtx_insn *.
1336 (ready_reorder): Strengthen param "ready" from rtx * to
1337 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1338 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1339 (sh_reorder2): Likewise.
1340
1341 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1342 local "insn" from rtx to rtx_insn *.
1343
1344 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1345 rtx_insn *.
1346 (scheduled_insns): Strengthen this variable from vec<rtx> to
1347 vec<rtx_insn *>.
1348 (set_modulo_params): Likewise for locals "i1", "i2".
1349 (record_delay_slot_pair): Likewise for params "i1", "i2".
1350 (add_delay_dependencies): Likewise for param "insn".
1351 (cond_clobbered_p): Likewise.
1352 (recompute_todo_spec): Likewise for local "prev".
1353 (last_scheduled_insn): Likewise for this variable.
1354 (nonscheduled_insns_begin): Likewise.
1355 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1356 rtx_insn **.
1357 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1358 rtx_insn *.
1359 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1360 Strengthen local "insn" from rtx to rtx_insn *.
1361 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1362 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1363 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1364 (ready_remove_first): Likewise for return type and local "t".
1365 (ready_element): Likewise for return type.
1366 (ready_remove): Likewise for return type and local "t".
1367 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1368 (check_clobbered_conditions): Strengthen local "x" from rtx to
1369 rtx_insn *, adding a checked cast.
1370 (schedule_insn): Likewise for param "insn".
1371 (remove_notes): Likewise for params "head", "tail" and locals
1372 "next_tail", "insn", "next".
1373 (struct haifa_saved_data): Likewise for fields
1374 "last_scheduled_insn", "nonscheduled_insns_begin".
1375 (save_backtrack_point): Update for change to field "vec" of
1376 struct ready_list.
1377 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1378 rtx_insn **.
1379 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1380 from rtx to rtx_insn *
1381 (resolve_dependencies): Strengthen param "insn" from rtx to
1382 rtx_insn *
1383 (restore_other_notes): Likewise for return type, for param "head"
1384 and local "note_head".
1385 (undo_all_replacements): Likewise for local "insn".
1386 (first_nonscheduled_insn): Likewise for return type and local "insn".
1387 (queue_to_ready): Likewise for local "insn", adding checked casts.
1388 (early_queue_to_ready): Likewise for local "insn".
1389 (debug_ready_list_1): Strengthen local "p" from rtx * to
1390 rtx_insn **.
1391 (move_insn): Strengthen param "insn" and local "note" from rtx to
1392 rtx_insn *
1393 (insn_finishes_cycle_p): Likewise for param "insn".
1394 (max_issue): Likewise for local "insn".
1395 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1396 to rtx_insn **.
1397 (commit_schedule): Strengthen param "prev_head" and local "insn"
1398 from rtx to rtx_insn *
1399 (prune_ready_list): Likewise for local "insn".
1400 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1401 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1402 (set_priorities): Likewise for local "prev_head".
1403 (try_ready): Likewise for param "next".
1404 (fix_tick_ready): Likewise.
1405 (change_queue_index): Likewise.
1406 (sched_extend_ready_list): Update for change to field "vec" of
1407 struct ready_list.
1408 (generate_recovery_code): Strengthen param "insn" from rtx to
1409 rtx_insn *.
1410 (begin_speculative_block): Likewise.
1411 (create_check_block_twin): Likewise for param "insn" and locals
1412 "label", "check", "twin". Introduce local "check_pat" to avoid
1413 "check" being used as a plain rtx before being used as an insn.
1414 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1415 extracting elements from ready_list.
1416 (sched_remove_insn): Strengthen param "insn" from rtx to
1417 rtx_insn *.
1418 (sched_emit_insn): Likewise for return type.
1419 (ready_remove_first_dispatch): Likewise for return type and local
1420 "insn".
1421
1422 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1423
1424 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1425 const rtx_insn *.
1426
1427 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1428 from rtx to rtx_insn *.
1429 (add_dependence_list): Likewise for param "insn". Add a checked
1430 cast.
1431 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1432 to rtx_insn *. Strengthen param "list_p" from rtx * to
1433 rtx_insn **.
1434 (chain_to_prev_insn): Strengthen param "insn" and locals
1435 "prec_nonnote", "i" from rtx to rtx_insn *.
1436 (flush_pending_lists): Likewise for param "insn".
1437 (cur_insn): Likewise for this variable.
1438 (haifa_start_insn): Add a checked cast.
1439 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1440 (sched_analyze_reg): Likewise for param "insn".
1441 (sched_analyze_1): Likewise.
1442 (sched_analyze_2): Likewise. Add checked casts.
1443 (sched_analyze_insn): Likewise. Also for local "prev".
1444 (deps_analyze_insn): Likewise for param "insn".
1445 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1446 (add_dependence_1): Likewise for params "insn", "elem".
1447 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1448 (parse_add_or_inc): Likewise for param "insn".
1449 (find_inc): Likewise for local "inc_cand".
1450 (find_modifiable_mems): Likewise for params "head", "tail" and
1451 locals "insn", "next_tail".
1452
1453 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1454 (begin_schedule_ready): Likewise for param "insn".
1455 (begin_move_insn): Likewise for params "insn" and "last".
1456 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1457 const rtx_insn *.
1458 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1459 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1460 (ebb_add_remove_insn): Likewise for param "insn".
1461 (advance_target_bb): Likewise.
1462
1463 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1464 "insn".
1465 (check_live): Likewise for param "insn".
1466 (init_ready_list): Likewise for local "insn".
1467 (can_schedule_ready_p): Likewise for param "insn".
1468 (begin_schedule_ready): Likewise.
1469 (new_ready): Likewise for param "next".
1470 (rgn_print_insn): Likewise for param "insn".
1471 (rgn_rank): Likewise for params "insn1", "insn2".
1472 (contributes_to_priority): Likewise for params "next", "insn".
1473 (rgn_insn_finishes_block_p): Likewise for param "insn".
1474 (add_branch_dependences): Likewise for params "head", "tail" and
1475 locals "insn", "last".
1476 (rgn_add_remove_insn): Likewise for param "insn".
1477 (advance_target_bb): Likewise.
1478
1479 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1480 const_rtx to const rtx_insn *.
1481
1482 * sel-sched-dump.h (sel_print_insn): Likewise.
1483
1484 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1485 (deps_init_id): Likewise.
1486
1487 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1488 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1489 rtx_insn **.
1490
1491 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1492
1493 * output.h (final_start_function): Strengthen param 1 from rtx to
1494 rtx_insn *.
1495
1496 * final.c (final_start_function): Likewise, renaming back from
1497 "uncast_first" to "first", and dropping the checked cast from rtx
1498 to rtx_insn *.
1499
1500 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1501
1502 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1503 * final.c (final): Likewise. Rename param back from
1504 "uncast_first" to "first" and eliminate the checked cast from rtx
1505 to rtx_insn *.
1506
1507 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1508
1509 * output.h (shorten_branches): Strengthen param from rtx to
1510 rtx_insn *.
1511
1512 * final.c (shorten_branches): Likewise, renaming param back from
1513 "uncast_first" to "first", and dropping the checked cast from rtx
1514 to rtx_insn *.
1515
1516 * genattr.c (gen_attr): Likewise when writing out the prototype of
1517 shorten_branches.
1518
1519 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1520
1521 * sched-int.h (struct haifa_sched_info): Strengthen fields
1522 "prev_head" and "next_tail" from rtx to rtx_insn *.
1523
1524 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1525
1526 * rtl.h (rtx_jump_table_data::get_labels): New method.
1527 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1528 with use of the new rtx_jump_table_data::get_labels method.
1529 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1530 to rtx_jump_table_data *. Simplify by using get_labels method.
1531 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1532 a dyn_cast, introducing local "table", using it to replace
1533 label-lookup logic with a get_labels method call.
1534 (patch_jump_insn): Simplify using get_labels method.
1535 * dwarf2cfi.c (create_trace_edges): Likewise.
1536 * rtlanal.c (label_is_jump_target_p): Likewise.
1537
1538 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1539
1540 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1541 to rtx_insn *.
1542
1543 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1544 (unshare_all_rtl_again): Likewise, also for local "p".
1545
1546 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1547
1548 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1549 to rtx_insn *.
1550 * cfgrtl.c (delete_insn_and_edges): Likewise.
1551
1552 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1553
1554 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1555 from rtx to rtx_insn *.
1556
1557 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1558
1559 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1560
1561 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1562 locals "returnjump", "epilogue_end", "insn", "next".
1563
1564 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1565 "returnjump" from rtx * to rtx_insn **.
1566 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1567
1568 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1569
1570 * basic-block.h (struct edge_def). Strengthen "r" within
1571 union edge_def_insns from rtx to rtx_insn *.
1572
1573 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1574 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1575 rtx_insn *.
1576 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1577 from rtx to rtx_insn *.
1578 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1579 rtx_insn *.
1580 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1581 (reg_used_on_edge): Likewise.
1582 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1583 (gt_pch_nx): New overload for rtx_insn *&.
1584 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1585 from rtx to rtx_insn *.
1586
1587 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1588
1589 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1590 from rtx to rtx_insn *.
1591 (BB_FOOTER): Replace function with access macro.
1592 (SET_BB_FOOTER): Delete.
1593
1594 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1595 with BB_FOOTER.
1596 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1597 (emit_barrier_after_bb): Likewise.
1598 (record_effective_endpoints): Likewise.
1599 (relink_block_chain): Likewise.
1600 (fixup_fallthru_exit_predecessor): Likewise.
1601 (cfg_layout_duplicate_bb): Likewise.
1602 (cfg_layout_split_block): Likewise.
1603 (cfg_layout_delete_block): Likewise.
1604 (cfg_layout_merge_blocks): Likewise.
1605 (BB_FOOTER): Delete function.
1606 (SET_BB_FOOTER): Delete function.
1607 * combine.c (update_cfg_for_uncondjump): Replace uses of
1608 SET_BB_FOOTER with BB_FOOTER.
1609
1610 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1611
1612 * except.h (struct eh_landing_pad_d): Strengthen field
1613 "landing_pad" from rtx to rtx_code_label *.
1614
1615 * except.c (sjlj_emit_dispatch_table): Likewise for param
1616 "dispatch_label"
1617 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1618
1619 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1620
1621 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1622 first param from rtx to rtx_insn *.
1623 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1624 field "set_frame_ptr_insn".
1625 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1626 "csend" from rtx to rtx_code_label *.
1627 (xtensa_expand_atomic): Likewise for local "csloop".
1628 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1629 rtx_insn *.
1630 (xtensa_call_tls_desc): Likewise for return type and locals
1631 "call_insn", "insns".
1632 (xtensa_legitimize_tls_address): Likewise for local "insns".
1633 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1634
1635 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1636
1637 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1638 first param from rtx to rtx_insn *.
1639 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1640 "insn".
1641
1642 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1643
1644 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1645 Strengthen param 1 from rtx to rtx_insn *.
1646 (tilepro_output_cbranch): Likewise.
1647 (tilepro_adjust_insn_length): Likewise.
1648 (tilepro_final_prescan_insn): Likewise for sole param.
1649
1650 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1651 Likewise for local "last".
1652 (cbranch_predicted_p): Likewise for param "insn".
1653 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1654 (tilepro_output_cbranch_with_opcode): Likewise.
1655 (tilepro_output_cbranch): Likewise.
1656 (frame_emit_load): Likewise for return type and locals "seq",
1657 "insn".
1658 (emit_sp_adjust): Likewise for return type and local "insn".
1659 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1660 "insn".
1661 (tilepro_adjust_insn_length): Likewise for param "insn".
1662 (next_insn_to_bundle): Likewise for return type and params
1663 "r", "end".
1664 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1665 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1666 local "new_insns".
1667 (match_addli_pcrel): Likewise for param "insn".
1668 (replace_addli_pcrel): Likewise.
1669 (match_auli_pcrel): Likewise.
1670 (replace_auli_pcrel): Likewise.
1671 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1672 "next_insn".
1673 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1674 "queue", "next_queue", "prev".
1675 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1676 (tilepro_final_prescan_insn): Likewise for param "insn".
1677
1678 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1679
1680 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1681 Strengthen param 1 from rtx to rtx_insn *.
1682 (tilegx_output_cbranch): Likewise.
1683 (tilegx_adjust_insn_length): Likewise.
1684 (tilegx_final_prescan_insn): Likewise for sole param.
1685
1686 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1687 or local "last".
1688 (cbranch_predicted_p): Likewise for param "insn".
1689 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1690 (tilegx_output_cbranch_with_opcode): Likewise.
1691 (tilegx_output_cbranch): Likewise.
1692 (frame_emit_load): Likewise for return type.
1693 (set_frame_related_p): Likewise for locals "seq", "insn".
1694 (emit_sp_adjust): Likewise for return type, and for local "insn".
1695 Introduce local "pat" for use in place of "insn" where the latter
1696 isn't an instruction.
1697 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1698 from rtx to rtx_insn *.
1699 (tilegx_adjust_insn_length): Likewise for param "insn".
1700 (next_insn_to_bundle): Likewise for return type and params "r" and
1701 "end".
1702 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1703 "end".
1704 (replace_insns): Likewise for params "old_insn", "new_insns".
1705 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1706 "new_insns".
1707 (replace_mov_pcrel_step2): Likewise.
1708 (replace_mov_pcrel_step3): Likewise.
1709 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1710 "next_insn".
1711 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1712 "queue", "next_queue", "prev".
1713 (tilegx_output_mi_thunk): Likewise for local "insn".
1714 (tilegx_final_prescan_insn): Likewise for param "insn".
1715
1716 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1717
1718 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1719 rtx to rtx_insn *.
1720 (frame_emit_load): Likewise.
1721 (frame_emit_add_imm): Likewise, also for local "insn".
1722 (spu_expand_prologue): Likewise for local "insn".
1723 (struct spu_bb_info): Likewise for field "prop_jump".
1724 (emit_nop_for_insn): Likewise for param "insn" and local
1725 "new_insn".
1726 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1727 "hbr_insn".
1728 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1729 locals "hint", "insn".
1730 (get_branch_target): Likewise for param "branch".
1731 (insn_clobbers_hbr): Likewise for param "insn".
1732 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1733 locals "insn", "before_4", "before_16".
1734 (insert_hbrp): Likewise for local "insn".
1735 (spu_machine_dependent_reorg): Likewise for locals "branch",
1736 "insn", "next", "bbend".
1737 (uses_ls_unit): Likewise for param "insn".
1738 (get_pipe): Likewise.
1739 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1740 introducing a checked cast.
1741 (spu_sched_adjust_cost): Likewise for params "insn" and
1742 "dep_insn".
1743 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1744 (spu_sms_res_mii): Likewise.
1745
1746 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1747
1748 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1749 from rtx to rtx_insn *.
1750 (output_cbranch): Likewise for param 6.
1751 (output_return): Likewise for param 1.
1752 (output_sibcall): Likewise.
1753 (output_v8plus_shift): Likewise.
1754 (output_v8plus_mult): Likewise.
1755 (output_v9branch): Likewise for param 7.
1756 (output_cbcond): Likewise for param 3.
1757
1758 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1759 for local "insn".
1760 (sparc_legitimize_pic_address): Likewise.
1761 (sparc_emit_call_insn): Likewise.
1762 (emit_save_or_restore_regs): Likewise.
1763 (emit_window_save): Likewise for return type and local "insn".
1764 (sparc_expand_prologue): Likewise for local "insn".
1765 (sparc_flat_expand_prologue): Likewise.
1766 (output_return): Likewise for param "insn".
1767 (output_sibcall): Likewise for param "insn" and local "delay".
1768 (output_ubranch): Likewise for param "insn".
1769 (output_cbranch): Likewise.
1770 (output_cbcond): Likewise.
1771 (output_v9branch): Likewise.
1772 (output_v8plus_shift): Likewise.
1773 (sparc_output_mi_thunk): Likewise for local "insn".
1774 (get_some_local_dynamic_name): Likewise.
1775 (output_v8plus_mult): Likewise for param "insn".
1776
1777 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1778
1779 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1780 from rtx to rtx_insn *.
1781 (output_branchy_insn): Likewise for param 3.
1782 (output_far_jump): Likewise for param 1.
1783 (final_prescan_insn): Likewise.
1784 (sh_insn_length_adjustment): Likewise for sole param.
1785
1786 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1787 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1788 rtx_code_label *.
1789 (sh_emit_compare_and_set): Likewise for local "lab".
1790 (output_far_jump): Strengthen param "insn" and local "prev" from
1791 rtx to rtx_insn *.
1792 (output_branchy_insn): Likewise for param "insn" and local
1793 "next_insn".
1794 (output_ieee_ccmpeq): Likewise for param "insn".
1795 (struct label_ref_list_d): Strengthen field "label" from rtx to
1796 rtx_code_label *.
1797 (pool_node): Likewise.
1798 (pool_window_label): Likewise for this global.
1799 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1800 (dump_table): Strengthen params "start", "barrier" and local
1801 "scan" from rtx to rtx_insn *.
1802 (broken_move): Likewise for param "insn".
1803 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1804 Strengthen param "first_mova" from rtx * to rtx_insn **.
1805 (mova_p): Likewise for param "insn".
1806 (fixup_mova): Likewise for param "mova".
1807 (find_barrier): Likewise for return type, params "mova" and
1808 "from", and locals "barrier_before_mova", "found_barrier",
1809 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1810 "label" from rtx to rtx_code_label *.
1811 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1812 rtx to rtx_insn *.
1813 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1814 (split_branches): Likewise for param "first" and local "insn".
1815 (final_prescan_insn): Likewise for param "insn".
1816 (sequence_insn_p): Likewise for locals "prev", "next".
1817 (sh_insn_length_adjustment): Likewise for param "insn".
1818 (sh_can_redirect_branch): Likewise for local "insn".
1819 (find_r0_life_regions): Likewise for locals "end", "insn".
1820 (sh_output_mi_thunk): Likewise for local "insns".
1821
1822 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1823
1824 * config/score/score.c (score_output_mi_thunk): Strengthen local
1825 "insn" from rtx to rtx_insn *.
1826 (score_prologue): Likewise.
1827
1828 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1829
1830 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1831 1 from rtx to rtx_insn *.
1832 (s390_emit_jump): Likewise for return type.
1833 (s390_emit_call): Likewise.
1834 (s390_load_got): Likewise.
1835
1836 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1837 variable.
1838 (s390_match_ccmode): Likewise for param "insn".
1839 (s390_emit_jump): Likewise for return type.
1840 (s390_split_branches): Likewise for local "label".
1841 (struct constant): Strengthen field "label" from rtx to
1842 rtx_code_label *.
1843 (struct constant_pool): Likewise for field "label". Strengthen
1844 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1845 rtx_insn *.
1846 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1847 insns.
1848 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1849 (s390_end_pool): Likewise.
1850 (s390_dump_pool): Likewise for local "insn".
1851 (s390_mainpool_start): Likewise.
1852 (s390_chunkify_start): Likewise.
1853 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1854 with insns. Strengthen locals "label", "jump", "barrier", "next",
1855 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1856 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1857 rtx_insn *.
1858 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1859 "jump", "label", "next_insn".
1860 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1861 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1862 "tbegin_insn".
1863 (s390_load_got): Likewise for return type and local "insns".
1864 (s390_save_gprs_to_fprs): Likewise for local "insn".
1865 (s390_restore_gprs_from_fprs): Likewise.
1866 (pass_s390_early_mach::execute): Likewise.
1867 (s390_emit_prologue): Likewise for local "insns".
1868 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1869 rtx_code_label *.
1870 (s390_emit_call): Strengthen return type and local "insn" from
1871 rtx to rtx_insn *.
1872 (s390_emit_tpf_eh_return): Likewise for local "insn".
1873 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1874 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1875 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1876 local "cur_insn".
1877 (s390_non_addr_reg_read_p): Likewise for param "insn".
1878 (find_cond_jump): Likewise for return type and param "insn".
1879 (s390_swap_cmp): Likewise for param "insn".
1880 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1881 "prev_insn", "next_insn".
1882 (s390_reorg): Likewise for locals "insn", "target".
1883 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1884 (s390_sched_variable_issue): For now, rename param "insn" to
1885 "uncast_insn", introducing a checked cast.
1886 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1887 insn.
1888 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1889 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1890
1891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1892
1893 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1894 param from rtx to rtx_insn *.
1895 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1896
1897 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1898
1899 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1900 4 from rtx to rtx_insn *.
1901 (rs6000_final_prescan_insn): Likewise for first param.
1902 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1903 local "insn".
1904 (rs6000_get_some_local_dynamic_name): Likewise.
1905 (output_cbranch): Likewise for param "insn".
1906 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1907 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1908 (rs6000_emit_allocate_stack): Likewise for local "insn".
1909 (load_cr_save): Likewise.
1910 (restore_saved_cr): Likewise.
1911 (restore_saved_lr): Likewise.
1912 (emit_cfa_restores): Likewise.
1913 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1914 "deleted_debug_label".
1915 (rs6000_output_mi_thunk): Likewise for local "insn".
1916 (rs6000_final_prescan_insn): Likewise for param "insn".
1917
1918 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1919
1920 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1921 Strengthen param "insn" from rtx to rtx_insn *.
1922 * config/picochip/picochip.c (picochip_current_prescan_insn):
1923 Likewise for this variable.
1924 (picochip_final_prescan_insn): Likewise for param "insn".
1925
1926 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1927
1928 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1929 from rtx to rtx_insn *.
1930 (pa_output_indirect_call): Likewise.
1931 (pa_adjust_insn_length): Likewise.
1932 (pa_attr_length_millicode_call): Likewise.
1933 (pa_attr_length_call): Likewise.
1934 (pa_attr_length_indirect_call): Likewise.
1935
1936 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1937 "insn".
1938 (pa_attr_length_millicode_call): Likewise.
1939 (pa_attr_length_call): Likewise.
1940 (pa_output_call): Likewise.
1941 (pa_attr_length_indirect_call): Likewise.
1942 (pa_output_indirect_call): Likewise.
1943
1944 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1945
1946 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1947 Strengthen first param from rtx to rtx_insn *.
1948 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1949 param "insn".
1950
1951 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1952
1953 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1954 type from rtx to rtx_insn *.
1955 (mips_expand_call): Likewise.
1956 (mips_adjust_insn_length): Likewise for first param.
1957 (mips_output_conditional_branch): Likewise.
1958 (mips_output_order_conditional_branch): Likewise.
1959 (mips_final_prescan_insn): Likewise.
1960
1961 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1962 rtx_insn * for the SEQUENCE case.
1963 (SEQ_END): Likewise.
1964 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1965 (mips_emit_call_insn): Likewise, also for local "insn".
1966 (mips16_gp_pseudo_reg): Likewise for local "scan".
1967 (mips16_build_call_stub): Likewise for return type and for local
1968 "insn". Introduce a new local "pattern" so that "insn" can indeed
1969 be an insn.
1970 (mips_expand_call): Strengthen return type and local "insn" from
1971 rtx to rtx_insn *.
1972 (mips_block_move_loop): Strengthen local "label" from rtx to
1973 rtx_code_label *.
1974 (mips_expand_synci_loop): Likewise for locals "label",
1975 "end_label".
1976 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1977 rtx_insn *.
1978 (mips16e_collect_argument_saves): Likewise for locals "insn",
1979 "next".
1980 (mips_find_gp_ref): Likewise for param of callback for "pred"
1981 param, and for local "insn".
1982 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1983 (mips_insn_has_flexible_gp_ref_p): Likewise.
1984 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1985 local "insn".
1986 (mips_epilogue_set_cfa): Likewise for local "insn".
1987 (mips_expand_epilogue): Likewise.
1988 (mips_adjust_insn_length): Likewise for param "insn".
1989 (mips_output_conditional_branch): Likewise.
1990 (mips_output_order_conditional_branch): Likewise.
1991 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1992 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1993 "falu2_turn_enabled_insn".
1994 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1995 "done_label" from rtx to rtx_code_label *.
1996 (struct mips16_constant): Likewise for field "label".
1997 (mips16_add_constant): Likewise for return type.
1998 (mips16_emit_constants_1): Strengthen return type and param "insn"
1999 from rtx to rtx_insn *.
2000 (mips16_emit_constants): Likewise for param "insn".
2001 (mips16_insn_length): Likewise.
2002 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2003 to rtx_code_label *.
2004 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2005 from rtx to rtx_insn *.
2006 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2007 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2008 (r10k_simplify_address): Strengthen param "insn" and local
2009 "def_insn" from rtx to rtx_insn *.
2010 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2011 rtx_insn *.
2012 (r10k_needs_protection_p_1): Update target type of cast of data
2013 from to rtx to rtx_insn *.
2014 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2015 rtx * to rtx_insn **.
2016 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2017 rtx_insn *.
2018 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2019 (mips_call_expr_from_insn): Likewise for param "insn".
2020 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2021 (mips_find_pic_call_symbol): Likewise for param "insn".
2022 (mips_annotate_pic_calls): Likewise for local "insn".
2023 (mips_sim_insn): Likewise for this variable.
2024 (struct mips_sim): Likewise for field "insn" within elements of
2025 last_set array.
2026 (mips_sim_wait_reg): Likewise for param "insn".
2027 (mips_sim_wait_regs): Likewise.
2028 (mips_sim_wait_units): Likewise.
2029 (mips_sim_wait_insn): Likewise.
2030 (mips_sim_issue_insn): Likewise.
2031 (mips_sim_finish_insn): Likewise.
2032 (mips_seq_time): Likewise for param "seq" and local "insn".
2033 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2034 locals "first", "second".
2035 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2036 "last", "last2", "next".
2037 (mips_avoid_hazard): Likewise for params "after", "insn".
2038 (mips_reorg_process_insns): Likewise for locals "insn",
2039 "last_insn", "subinsn", "next_insn".
2040 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2041 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2042 "jump_sequence".
2043 (mips_output_mi_thunk): Likewise for local "insn".
2044 (mips_final_prescan_insn): Likewise for param "insn".
2045
2046 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2047
2048 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2049 Strengthen return type and local "insns" from rtx to rtx_insn *.
2050 (microblaze_legitimize_tls_address): Likewise for local "insns".
2051 (microblaze_block_move_loop): Strengthen local "label" from rtx
2052 to rtx_code_label *.
2053 (microblaze_expand_prologue): Strengthen two locals named "insn"
2054 from rtx to rtx_insn *.
2055 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2056 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2057 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2058 to rtx_code_label *.
2059
2060 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2061
2062 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2063 param from rtx to rtx_insn *.
2064 (mep_reuse_lo): Likewise for third param.
2065 (mep_use_post_modify_p): Likewise for first param.
2066 (mep_core_address_length): Likewise.
2067 (mep_cop_address_length): Likewise.
2068 (mep_final_prescan_insn): Likewise.
2069 (mep_store_data_bypass_p): Likewise for both params.
2070 (mep_mul_hilo_bypass_p): Likewise.
2071 (mep_ipipe_ldc_p): Likewise for param.
2072
2073 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2074 (mep_rewrite_mult): Likewise.
2075 (mep_rewrite_mulsi3): Likewise.
2076 (mep_rewrite_maddsi3): Likewise.
2077 (mep_reuse_lo_p_1): Likewise.
2078 (mep_reuse_lo_p): Likewise.
2079 (mep_frame_expr): Likewise.
2080 (mep_make_parallel): Likewise for both params.
2081 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2082 local "insn".
2083 (mep_use_post_modify_p): Likewise for param "insn".
2084 (mep_core_address_length): Likewise.
2085 (mep_cop_address_length): Likewise.
2086 (mep_reg_set_in_function): Likewise for local "insn".
2087 (mep_asm_without_operands_p): Likewise.
2088 (F): Likewise for return type and param "x".
2089 (add_constant): Likewise for local "insn".
2090 (maybe_dead_move): Likewise for return type and local "insn".
2091 (mep_expand_prologue): Likewise for local "insn".
2092 (mep_final_prescan_insn): Likewise for param "insn".
2093 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2094 "next", "follow", "x".
2095 (mep_insert_repeat_label_last): Likewise for return type, param
2096 "last_insn", and locals "next", "prev". Strengthen param "label"
2097 from rtx to rtx_code_label *.
2098 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2099 rtx_insn *.
2100 (struct mep_doloop_end): Likewise for fields "insn" and
2101 "fallthrough".
2102 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2103 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2104 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2105 rtx_insn *.
2106 (mep_invert_branch): Likewise for params "insn" and "after".
2107 (mep_reorg_erepeat): Likewise for param "insns" and locals
2108 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2109 "l" from rtx to rtx_code_label *.
2110 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2111 from rtx to rtx_insn *.
2112 (mep_reorg_addcombine): Likewise for param "insns" and locals
2113 "i", "n".
2114 (add_sp_insn_p): Likewise for param "insn".
2115 (mep_reorg_noframe): Likewise for param "insns" and locals
2116 "start_frame_insn", "end_frame_insn", "next".
2117 (mep_reorg): Likewise for local "insns".
2118 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2119 cast.
2120 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2121 (mep_mul_hilo_bypass_p): Likewise.
2122 (mep_ipipe_ldc_p): Likewise for param "insn".
2123 (mep_make_bundle): Likewise for return type, param "cop" and local
2124 "insn", splitting out the latter into a new local "seq" for when it
2125 is a SEQUENCE rather than an insn.
2126 (core_insn_p): Likewise for param "insn".
2127 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2128 "last", "first", "note", "prev", "core_insn".
2129
2130 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2131
2132 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2133 rtx to rtx_insn *.
2134 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2135 (m68k_final_prescan_insn): Likewise for first param.
2136
2137 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2138 (m68k_set_frame_related): Likewise for param "insn".
2139 (output_btst): Likewise for param "insn".
2140 (m68k_final_prescan_insn): Likewise.
2141 (m68k_move_to_reg): Likewise for local "insn".
2142 (m68k_call_tls_get_addr): Likewise for local "insns".
2143 (m68k_call_m68k_read_tp): Likewise.
2144 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2145 (m68k_output_mi_thunk): Likewise for local "insn".
2146
2147 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2148
2149 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2150 first param from rtx to rtx_insn *.
2151 (iq2000_adjust_insn_length): Likewise.
2152 (iq2000_output_conditional_branch): Likewise.
2153 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2154 "insn" and local "nop_insn".
2155 (iq2000_annotate_frame_insn): Likewise for param "insn".
2156 (iq2000_expand_prologue): Likewise for both locals "insn".
2157 (iq2000_adjust_insn_length): Likewise for param "insn".
2158 (iq2000_output_conditional_branch): Likewise.
2159
2160 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2161
2162 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2163 "insns" from rtx to rtx_insn *.
2164 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2165 (struct spill_fill_data): Likewise for field "init_after" and for
2166 elements of array field "prev_insn".
2167 (spill_restore_mem): Likewise for locals "insn", "first".
2168 (do_spill): Likewise for local "insn".
2169 (do_restore): Likewise.
2170 (ia64_expand_prologue): Likewise.
2171 (ia64_expand_epilogue): Likewise.
2172 (emit_insn_group_barriers): Likewise for locals "insn",
2173 "last_label".
2174 (emit_all_insn_group_barriers): Likewise for locals "insn",
2175 "last".
2176 (dfa_stop_insn): Likewise for this global.
2177 (dfa_pre_cycle_insn): Likewise.
2178 (ia64_nop): Likewise.
2179 (final_emit_insn_group_barriers): Likewise for locals "insn",
2180 "last".
2181 (emit_predicate_relation_info): Likewise for locals "head", "n",
2182 "insn", "b", "a".
2183 (ia64_reorg): Likewise for local "insn".
2184 (ia64_output_mi_thunk): Likewise.
2185 (expand_vec_perm_interleave_2): Likewise for local "seq".
2186
2187 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2188
2189 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2190 param 1 "insn" from rtx to rtx_insn *.
2191 (ix86_use_lea_for_mov): Likewise.
2192 (ix86_avoid_lea_for_addr): Likewise.
2193 (ix86_split_lea_for_addr): Likewise.
2194 (ix86_lea_for_add_ok): Likewise.
2195 (ix86_output_call_insn): Likewise.
2196
2197 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2198 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2199 (ix86_output_function_epilogue): Likewise for locals "insn",
2200 "deleted_debug_label".
2201 (legitimize_tls_address): Likewise for local "insn".
2202 (get_some_local_dynamic_name): Likewise.
2203 (increase_distance): Likewise for params "prev", "next".
2204 (distance_non_agu_define_in_bb): Likewise for params "insn",
2205 "start" and locals "prev", "next".
2206 (distance_non_agu_define): Likewise for param "insn".
2207 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2208 locals "next", "prev".
2209 (distance_agu_use): Likewise for param "insn".
2210 (ix86_lea_outperforms): Likewise.
2211 (ix86_ok_to_clobber_flags): Likewise.
2212 (ix86_avoid_lea_for_add): Likewise.
2213 (ix86_use_lea_for_mov): Likewise.
2214 (ix86_avoid_lea_for_addr): Likewise.
2215 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2216 (ix86_split_lea_for_addr): Likewise for param "insn".
2217 (ix86_lea_for_add_ok): Likewise for param "insn".
2218 (ix86_expand_carry_flag_compare): Likewise for local
2219 "compare_seq".
2220 (ix86_expand_int_movcc): Likewise.
2221 (ix86_output_call_insn): Likewise for param "insn".
2222 (ix86_output_call_insn): Likewise for local "i".
2223 (x86_output_mi_thunk): Introduce local "insn", using it in place
2224 of "tmp" when dealing with insns.
2225 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2226 "start".
2227 (ix86_pad_returns): Likewise for locals "ret", "prev".
2228 (ix86_count_insn_bb): Likewise for local "insn".
2229 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2230 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2231 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2232 (expand_vec_perm_interleave2): Likewise for local "seq".
2233 (expand_vec_perm_vperm2f128_vblend): Likewise.
2234 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2235 call to for_each_rtx with for_each_rtx_in_insn.
2236
2237 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2238
2239 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2240 "label" from rtx to rtx_code_label *.
2241 (ix86_expand_prologue): Likewise.
2242 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2243 "varargs_label".
2244 (ix86_split_idivmod): Likewise for locals "end_label" and
2245 "qimode_label".
2246 (ix86_expand_branch): Likewise for local "label2".
2247 (ix86_expand_aligntest): Likewise for return type and local "label".
2248 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2249 "top_label".
2250 (expand_movmem_epilogue): Likewise for the various locals named
2251 "label".
2252 (expand_setmem_epilogue): Likewise.
2253 (expand_small_movmem_or_setmem): Likewise for local "label".
2254 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2255 Strengthen param "done_label" from rtx * to rtx_code_label **.
2256 Strengthen locals "loop_label" and "label" from rtx to
2257 rtx_code_label *.
2258 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2259 Likewise for locals "loop_label", "label".
2260 (ix86_expand_set_or_movmem): Likewise for locals "label",
2261 "jump_around_label", "hot_label".
2262 (ix86_expand_strlensi_unroll_1): Likewise for locals
2263 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2264 "end_2_label".
2265 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2266 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2267 "label2", "jump_label".
2268 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2269 local "label".
2270 (ix86_expand_lfloorceil): Likewise for local "label".
2271 (ix86_expand_rint): Likewise.
2272 (ix86_expand_floorceildf_32): Likewise.
2273 (ix86_expand_floorceil): Likewise.
2274 (ix86_expand_rounddf_32): Likewise.
2275 (ix86_expand_trunc): Likewise.
2276 (ix86_expand_truncdf_32): Likewise.
2277 (ix86_expand_round): Likewise.
2278
2279 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2280
2281 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2282 first param from rtx to rtx_insn *.
2283 (h8300_insn_length_from_table): Likewise.
2284 * config/h8300/h8300.c (F): Likewise for return type and param
2285 "x".
2286 (Fpa): Add a checked cast to rtx_insn *.
2287 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2288 rtx_insn *.
2289 (final_prescan_insn): Likewise for param "insn".
2290 (h8300_binary_length): Likewise.
2291 (h8300_insn_length_from_table): Likewise.
2292
2293 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2294
2295 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2296 Strengthen first param "insn" from rtx to rtx_insn *.
2297
2298 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2299 Likewise.
2300 (frame_insn): Likewise for return type. Introduce local "insn"
2301 for use in place of local "x" for use as an rtx_insn *.
2302 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2303 (epiphany_expand_prologue): Likewise for local "insn".
2304 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2305 * config/epiphany/resolve-sw-modes.c
2306 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2307 "seq".
2308
2309 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2310
2311 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2312 param from rtx to rtx_insn *.
2313 (c6x_final_prescan_insn): Likewise for first param.
2314
2315 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2316 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2317 (c6x_expand_compare): Strengthen local "insns" from rtx to
2318 rtx_insn *.
2319 (c6x_get_unit_specifier): Likewise for param "insn".
2320 (c6x_print_unit_specifier_field): Likewise.
2321 (c6x_final_prescan_insn): Likewise.
2322 (emit_add_sp_const): Likewise for local "insn".
2323 (c6x_expand_prologue): Likewise.
2324
2325 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2326
2327 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2328 param 1 from rtx to rtx_insn *.
2329 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2330 the various locals named "insn".
2331 (expand_epilogue_reg_restore): Likewise.
2332 (frame_related_constant_load): Likewise.
2333 (add_to_reg): Likewise.
2334 (emit_link_insn): Likewise.
2335 (do_link): Likewise.
2336 (expand_interrupt_handler_prologue): Likewise.
2337 (branch_dest): Likewise for param "branch".
2338 (asm_conditional_branch): Likewise for param "insn".
2339 (gen_one_bundle): Likewise for elements of param "slot" and local
2340 "t".
2341 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2342 elements of local "slot".
2343 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2344 "queue", "next_queue", "prev".
2345 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2346 (add_sched_insns_for_speculation): Likewise for local "insn".
2347
2348 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2349
2350 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2351 from rtx to rtx_insn *.
2352 (output_movhi): Likewise.
2353 (output_movsisf): Likewise.
2354 (avr_out_tstsi): Likewise.
2355 (avr_out_tsthi): Likewise.
2356 (avr_out_tstpsi): Likewise.
2357 (avr_out_compare): Likewise.
2358 (avr_out_compare64): Likewise.
2359 (avr_out_movpsi): Likewise.
2360 (ashlqi3_out): Likewise.
2361 (ashlhi3_out): Likewise.
2362 (ashlsi3_out): Likewise.
2363 (ashrqi3_out): Likewise.
2364 (ashrhi3_out): Likewise.
2365 (ashrsi3_out): Likewise.
2366 (lshrqi3_out): Likewise.
2367 (lshrhi3_out): Likewise.
2368 (lshrsi3_out): Likewise.
2369 (avr_out_ashlpsi3): Likewise.
2370 (avr_out_ashrpsi3): Likewise.
2371 (avr_out_lshrpsi3): Likewise.
2372 (avr_out_fract): Likewise.
2373 (avr_out_sbxx_branch): Likewise.
2374 (avr_out_round): Likewise.
2375 (avr_out_xload): Likewise.
2376 (avr_out_movmem): Likewise.
2377 (adjust_insn_length): Likewise.
2378 (avr_out_lpm): Likewise.
2379 (reg_unused_after): Likewise.
2380 (_reg_unused_after): Likewise.
2381 (avr_jump_mode): Likewise for second param.
2382 (jump_over_one_insn): Likewise for first param.
2383 (avr_final_prescan_insn): Likewise.
2384 (out_shift_with_cnt): Likewise for second param.
2385
2386 * config/avr/avr.c (get_sequence_length): Likewise for param
2387 "insns" and local "insn".
2388 (emit_push_byte): Likewise for local "insn".
2389 (emit_push_sfr): Likewise.
2390 (avr_prologue_setup_frame): Likewise for locals "insn",
2391 "fp_plus_insns", "sp_plus_insns".
2392 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2393 "sp_plus_insns".
2394 (avr_jump_mode): Likewise for param "insn".
2395 (avr_final_prescan_insn): Likewise.
2396 (avr_find_unused_d_reg): Likewise.
2397 (avr_out_lpm_no_lpmx): Likewise.
2398 (avr_out_lpm): Likewise.
2399 (avr_out_xload): Likewise.
2400 (output_movqi): Likewise.
2401 (output_movhi): Likewise.
2402 (out_movqi_r_mr): Likewise.
2403 (out_movhi_r_mr): Likewise.
2404 (out_movsi_r_mr): Likewise.
2405 (out_movsi_mr_r): Likewise.
2406 (output_movsisf): Likewise.
2407 (avr_out_load_psi): Likewise.
2408 (avr_out_store_psi): Likewise.
2409 (avr_out_movpsi): Likewise.
2410 (out_movqi_mr_r): Likewise.
2411 (avr_out_movhi_mr_r_xmega): Likewise.
2412 (out_movhi_mr_r): Likewise.
2413 (compare_condition): Likewise for param "insn" and local "next".
2414 (compare_sign_p): Likewise for param "insn".
2415 (compare_diff_p): Likewise.
2416 (compare_eq_p): Likewise.
2417 (avr_out_compare): Likewise.
2418 (avr_out_compare64): Likewise.
2419 (avr_out_tsthi): Likewise.
2420 (avr_out_tstpsi): Likewise.
2421 (avr_out_tstsi): Likewise.
2422 (out_shift_with_cnt): Likewise.
2423 (ashlqi3_out): Likewise.
2424 (ashlhi3_out): Likewise.
2425 (avr_out_ashlpsi3): Likewise.
2426 (ashlsi3_out): Likewise.
2427 (ashrqi3_out): Likewise.
2428 (ashrhi3_out): Likewise.
2429 (avr_out_ashrpsi3): Likewise.
2430 (ashrsi3_out): Likewise.
2431 (lshrqi3_out): Likewise.
2432 (lshrhi3_out): Likewise.
2433 (avr_out_lshrpsi3): Likewise.
2434 (lshrsi3_out): Likewise.
2435 (avr_out_fract): Likewise.
2436 (avr_out_round): Likewise.
2437 (avr_adjust_insn_length): Likewise.
2438 (reg_unused_after): Likewise.
2439 (_reg_unused_after): Likewise.
2440 (avr_compare_pattern): Likewise.
2441 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2442 and locals "branch1", "branch2", "insn2", "jump".
2443 (avr_reorg): Likewise for local "insn".
2444 (avr_2word_insn_p): Likewise for param "insn".
2445 (jump_over_one_insn_p): Likewise.
2446 (avr_out_sbxx_branch): Likewise.
2447 (avr_out_movmem): Likewise.
2448
2449 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2450
2451 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2452 param from rtx to rtx_insn *.
2453 (thumb1_final_prescan_insn): Likewise.
2454 (thumb2_final_prescan_insn): Likewise.
2455
2456 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2457 rtx to rtx_insn *.
2458 (struct minipool_node): Likewise for field "insn".
2459 (dump_minipool): Likewise for param "scan".
2460 (create_fix_barrier): Likewise for local "from". Strengthen local
2461 "label" from rtx to rtx_code_label *.
2462 (push_minipool_barrier): Strengthen param "insn" from rtx to
2463 rtx_insn *.
2464 (push_minipool_fix): Likewise.
2465 (note_invalid_constants): Likewise.
2466 (thumb2_reorg): Likewise for local "insn".
2467 (arm_reorg): Likewise.
2468 (thumb2_final_prescan_insn): Likewise for param
2469 "insn" and local "first_insn".
2470 (arm_final_prescan_insn): Likewise for param "insn" and locals
2471 "start_insn", "this_insn".
2472 (arm_debugger_arg_offset): Likewise for param "insn".
2473 (thumb1_emit_multi_reg_push): Likewise for return type and local
2474 "insn".
2475 (thumb1_final_prescan_insn): Likewise for param "insn".
2476 (thumb_far_jump_used_p): Likewise for local "insn".
2477 (thumb1_expand_prologue): Likewise.
2478 (arm_expand_epilogue_apcs_frame): Likewise.
2479 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2480 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2481 from rtx to rtx_code_label *.
2482 (arm_split_atomic_op): Likewise for local "label".
2483 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2484
2485 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2486
2487 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2488 first param from rtx to rtx_insn *.
2489 (arc_verify_short): Likewise.
2490 (arc_short_long): Likewise.
2491 (arc_need_delay): Likewise.
2492
2493 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2494 "target_insn".
2495 (arc_ccfsm_advance): Likewise for param "insn" and locals
2496 "start_insn", "this_insn".
2497 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2498 (arc_ccfsm_post_advance): Likewise for param "insn".
2499 (arc_next_active_insn): Likewise for return type and param "insn".
2500 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2501 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2502 (output_short_suffix): Likewise for local "insn".
2503 (arc_final_prescan_insn): Likewise for param "insn". Remove
2504 now-redundant checked cast.
2505 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2506 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2507 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2508 for use where lc_set became an insn.
2509 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2510 rtx to rtx_insn *.
2511 (arc_get_insn_variants): Likewise for local "prev".
2512 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2513 "next".
2514 (arc_predicate_delay_insns): Likewise for local "insn".
2515 (arc_pad_return): Likewise for local "prev". For now, add a
2516 checked cast when extracting the insn from "final_sequence".
2517 (arc_short_long): Likewise for param "insn".
2518 (arc_need_delay): Likewise for param "insn" and local "next".
2519 (arc_label_align): Likewise for locals "prev", "next".
2520
2521 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2522
2523 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2524 "insn" from rtx to rtx_insn *.
2525 (alpha_gp_save_rtx): Likewise for local "seq".
2526 (alpha_instantiate_decls): Likewise for local "top".
2527 (get_some_local_dynamic_name): Likewise for local "insn".
2528 (alpha_does_function_need_gp): Likewise.
2529 (set_frame_related_p): Likewise for return type and for locals
2530 "seq" and "insn".
2531 (emit_frame_store_1): Likewise for local "insn".
2532 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2533 (alpha_end_function): Likewise for local "insn".
2534 (alpha_output_mi_thunk_osf): Likewise.
2535 (alphaev4_insn_pipe): Likewise for param "insn".
2536 (alphaev5_insn_pipe): Likewise.
2537 (alphaev4_next_group): Likewise for return type and param 1
2538 "insn".
2539 (alphaev5_next_group): Likewise.
2540 (alpha_align_insns_1): Likewise for return type and param 1 of
2541 callback param "next_group", and for locals "i", "next", "prev",
2542 "where", "where2", "insn".
2543
2544 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2545
2546 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2547 rather than modifying the stmt.
2548
2549 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2550
2551 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2552 cgraph_state conversion.
2553
2554 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2555
2556 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2557 Strengthen local "insns" from rtx to rtx_insn *.
2558 (aarch64_set_frame_expr): Likewise for local "insn".
2559 (aarch64_save_or_restore_fprs): Likewise.
2560 (aarch64_save_or_restore_callee_save_registers): Likewise.
2561 (aarch64_expand_prologue): Likewise.
2562 (aarch64_expand_epilogue): Likewise.
2563 (aarch64_output_mi_thunk): Likewise.
2564 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2565 "label2" from rtx to rtx_code_label *.
2566 (aarch64_split_atomic_op): Likewise for local "label".
2567
2568 2014-08-25 Martin Liska <mliska@suse.cz>
2569
2570 * cgraph.h (symtab_node):
2571 (bool needed_p (void)): created from decide_is_symbol_needed
2572 (bool referred_to_p (void)): created from referred_to_p
2573 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2574 * cgraph.h (cgraph_node):
2575 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2576 (void expand (void)): created from expand_function
2577 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2578 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2579 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2580 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2581 * cgraph.h (varpool_node):
2582 (static void add (tree decl): created from varpool_add_new_variable
2583 * cgraph.h (cgraph_edge):
2584 void remove (void);
2585 (void remove_caller (void)): created from cgraph_edge_remove_caller
2586 (void remove_callee (void)): created from cgraph_edge_remove_callee
2587 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2588 created from cgraph_set_call_stmt
2589 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2590 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2591 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2592 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2593 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2594 created from cgraph_speculative_call_info
2595 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2596 int freq_scale, bool update_original)): created from cgraph_clone_edge
2597 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2598 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2599 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2600 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2601 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2602 (static void rebuild_references (void)): created from cgraph_rebuild_references
2603 * cgraph.h (symbol_table):
2604 (create_reference): renamed from add_reference
2605 (maybe_create_reference): renamed from maybe_add_reference
2606 (void register_symbol (symtab_node *node)): new function
2607 (void clear_asm_symbols (void)): new function
2608 (void unregister (symtab_node *node)): new function
2609 (void release_symbol (cgraph_node *node, int uid)): new function
2610 (cgraph_node * allocate_cgraph_symbol (void)): new function
2611 (void initialize (void)): created from cgraph_init
2612 (symtab_node *first_symbol (void)):new function
2613 (asm_node *first_asm_symbol (void)):new function
2614 (symtab_node *first_defined_symbol (void)):new function
2615 (varpool_node *first_variable (void)):new function
2616 (varpool_node *next_variable (varpool_node *node)):new function
2617 (varpool_node *first_static_initializer (void)):new function
2618 (varpool_node *next_static_initializer (varpool_node *node)):new function
2619 (varpool_node *first_defined_variable (void)):new function
2620 (varpool_node *next_defined_variable (varpool_node *node)):new function
2621 (cgraph_node *first_defined_function (void)):new function
2622 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2623 (cgraph_node *first_function (void)):new function
2624 (cgraph_node *next_function (cgraph_node *node)):new function
2625 (cgraph_node *first_function_with_gimple_body (void)):new function
2626 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2627 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2628 created from symtab_remove_unreachable_nodes
2629 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2630 (void process_new_functions (void)): created from cgraph_process_new_functions
2631 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2632 (bool output_variables (void)): created from varpool_node::output_variables
2633 (void output_asm_statements (void)): created from output_asm_statements
2634 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2635 (void compile (void)): created from compile
2636 (void output_weakrefs (void)): created from output_weakrefs
2637 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2638 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2639 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2640 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2641 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2642 created from cgraph_next_function_with_gimple_body
2643 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2644 created from cgraph_remove_edge_removal_hook
2645 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2646 created from cgraph_add_node_removal_hook
2647 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2648 created from cgraph_remove_node_removal_hook
2649 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2650 created from varpool_add_node_removal_hook
2651 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2652 created from varpool_remove_node_removal_hook
2653 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2654 created from cgraph_add_function_insertion_hook
2655 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2656 created from cgraph_remove_function_insertion_hook
2657 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2658 created from varpool_add_variable_insertion_hook
2659 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2660 created from varpool_remove_variable_insertion_hook
2661 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2662 created from cgraph_add_edge_duplication_hook
2663 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2664 created from cgraph_remove_edge_duplication_hook
2665 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2666 created from cgraph_add_node_duplication_hook
2667 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2668 created from cgraph_remove_node_duplication_hook
2669 (void call_edge_removal_hooks (cgraph_edge *e)):
2670 created from cgraph_call_edge_removal_hooks
2671 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2672 created from call_function_insertion_hooks
2673 (void call_cgraph_removal_hooks (cgraph_node *node)):
2674 created from cgraph_call_node_removal_hooks
2675 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2676 created from cgraph_node::call_duplication_hooks
2677 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2678 created from cgraph_call_edge_duplication_hooks
2679 (void call_varpool_removal_hooks (varpool_node *node)):
2680 created from varpool_call_node_removal_hooks
2681 (void call_varpool_insertion_hooks (varpool_node *node)):
2682 created from varpool_call_variable_insertion_hooks
2683 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2684 created from insert_to_assembler_name_hash
2685 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2686 created from unlink_from_assembler_name_hash
2687 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2688 created from symtab_prevail_in_asm_name_hash
2689 (void symtab_initialize_asm_name_hash (void)):
2690 created from symtab_initialize_asm_name_hash
2691 (void change_decl_assembler_name (tree decl, tree name)):
2692 created from change_decl_assembler_name
2693 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2694 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2695 created from decl_assembler_name_hash
2696 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2697 created from decl_assembler_name_equal
2698 (static hashval_t hash_node_by_assembler_name (const void *p)):
2699 created from hash_node_by_assembler_name
2700 (static int eq_assembler_name (const void *p1, const void *p2)):
2701 created from eq_assembler_name
2702
2703 2014-08-25 Marek Polacek <polacek@redhat.com>
2704
2705 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2706
2707 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2708
2709 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2710 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2711 SWI1248_AVX512BW mode iterator.
2712
2713 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2714
2715 PR target/62111
2716 * config/sh/predicates.md (general_extend_operand): Disable
2717 TRUNCATE before reload completes.
2718
2719 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2720
2721 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2722
2723 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2724
2725 PR target/61996
2726 * config/sh/sh.opt (musermode): Allow negative form.
2727 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2728 targets that don't support it.
2729 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2730 Document -mno-usermode option.
2731
2732 2014-08-24 Kito Cheng <kito@0xlab.org>
2733
2734 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2735 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2736 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2737 * doc/tm.texi: Regenerate.
2738
2739 2014-08-24 Kito Cheng <kito@0xlab.org>
2740
2741 * ira.c: Fix typo in comment.
2742
2743 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2744
2745 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2746 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2747
2748 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2749
2750 PR target/62038
2751 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2752 last_address when the current function is a thunk.
2753 (pa_asm_output_mi_thunk): When we don't have named sections or they
2754 are not being used, check that thunk can reach the stub table with a
2755 short branch.
2756
2757 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2758
2759 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2760 rtx_insn *.
2761 (pass_web::execute): Likewise for local "insn".
2762
2763 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2764
2765 * var-tracking.c (struct micro_operation_def): Strengthen field
2766 "insn" from rtx to rtx_insn *.
2767 (struct emit_note_data_def): Likewise.
2768 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2769 (vt_stack_adjustments): Likewise for local "insn".
2770 (adjust_insn): Likewise for param "insn".
2771 (val_store): Likewise.
2772 (val_resolve): Likewise.
2773 (struct count_use_info): Likewise for field "insn".
2774 (log_op_type): Likewise for param "insn".
2775 (reverse_op): Likewise.
2776 (prepare_call_arguments): Likewise.
2777 (add_with_sets): The initial param takes an insn, but we can't
2778 yet strengthen it from rtx to rtx_insn * since it's used as a
2779 cselib_record_sets_hook callback. For now rename initial param
2780 from "insn" to "uncast_insn", and introduce a local "insn" of
2781 the stronger rtx_insn * type, with a checked cast.
2782 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2783 rtx_insn *.
2784 (emit_note_insn_var_location): Likewise.
2785 (emit_notes_for_changes): Likewise.
2786 (emit_notes_for_differences): Likewise.
2787 (next_non_note_insn_var_location): Likewise for return type and
2788 for param "insn".
2789 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2790 (vt_initialize): Likewise for local "insn".
2791 (delete_debug_insns): Likewise for locals "insn" and "next".
2792
2793 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2794
2795 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2796 rtx_insn *.
2797 (mark_constant_pool): Likewise for local "insn".
2798
2799 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2800
2801 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2802 rtx to rtx_insn *.
2803 (dead_debug_promote_uses): Likewise.
2804 (dead_debug_insert_temp): Likewise.
2805
2806 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2807
2808 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2809 from const_rtx to const rtx_insn *.
2810 (store_killed_after): Likewise. Strengthen locals "last", "act"
2811 from rtx to rtx_insn *.
2812 (store_killed_before): Strengthen param "insn" from const_rtx to
2813 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2814 (find_moveable_store): Strengthen param "insn" from rtx to
2815 rtx_insn *.
2816 (compute_store_table): Likewise for local "insn".
2817 (insert_insn_start_basic_block): Likewise for param "insn" and
2818 locals "prev", "before", "insn".
2819 (insert_store): For now, add a checked cast to rtx_insn * on the
2820 result of gen_move_insn.
2821 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2822 to rtx_insn *.
2823 (replace_store_insn): Likewise. For now, add a checked cast to
2824 rtx_insn * on the result of gen_move_insn.
2825
2826 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2827
2828 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2829 rtx_insn *.
2830 (expand_sjlj_dispatch_table): Likewise.
2831
2832 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2833
2834 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2835 "insn" from rtx to rtx_insn *.
2836
2837 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2838
2839 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2840 "insn" from rtx to rtx_insn *.
2841 (dup_block_and_redirect): Likewise for param 3 "before".
2842
2843 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2844 from rtx to rtx_insn *.
2845 (move_insn_for_shrink_wrap): Likewise.
2846 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2847 (dup_block_and_redirect): Likewise for param "before" and local
2848 "insn".
2849 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2850 "end".
2851 (convert_to_simple_return): Likewise for local "start".
2852
2853 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2854 Strengthen local "insn" from rtx to rtx_insn *, for use when
2855 invoking requires_stack_frame_p.
2856
2857 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2858
2859 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2860 rtx_insn *.
2861 (speculate_expr): Likewise for locals "orig_insn_rtx",
2862 "spec_insn_rtx".
2863 (eq_transformed_insns): Likewise for locals "i1", "i2".
2864 (check_for_new_jump): Likewise for return type and local "end".
2865 (find_new_jump): Likewise for return type and local "jump".
2866 (sel_split_edge): Likewise for local "jump".
2867 (sel_create_recovery_block): Likewise.
2868 (sel_redirect_edge_and_branch_force): Likewise.
2869 (sel_redirect_edge_and_branch): Likewise.
2870
2871 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2872
2873 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2874 "new_insn" from rtx to rtx_insn *.
2875 (create_insn_rtx_with_rhs): Likewise for return type and for local
2876 "insn_rtx".
2877 (create_insn_rtx_with_lhs): Likewise.
2878 (create_speculation_check): Likewise for local "insn_rtx".
2879 (implicit_clobber_conflict_p): Likewise for local "insn".
2880 (get_expr_cost): Likewise.
2881 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2882 (move_cond_jump): Likewise for locals "next", "prev", "link",
2883 "head", "from", "to".
2884
2885 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2886
2887 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2888 "next" from rtx to rtx_insn *.
2889 (find_conditional_protection): Likewise for local "next".
2890 (is_conditionally_protected): Likewise for local "insn1".
2891 (is_pfree): Likewise for locals "insn1", "insn2".
2892
2893 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2894
2895 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2896 from rtx to rtx_insn *.
2897
2898 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2899 locals "insn1", "insn2" from rtx to rtx_insn *.
2900 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2901 locals "insn", "prev", "last_jump", "next_tail".
2902 (schedule_ebb): Likewise for params "head", "tail".
2903 (schedule_ebbs): Likewise for locals "tail", "head".
2904
2905 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2906 to rtx_insn on "last_insn" in one of the invocations of
2907 schedule_ebb.
2908
2909 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2910
2911 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2912 "elem", "insn" from rtx to rtx_insn *.
2913 (change_spec_dep_to_hard): Likewise.
2914 (get_back_and_forw_lists): Likewise for local "con".
2915 (sd_add_dep): Likewise for locals "elem", "insn".
2916 (sd_resolve_dep): Likewise for locals "pro", "con".
2917 (sd_unresolve_dep): Likewise.
2918 (sd_delete_dep): Likewise.
2919 (chain_to_prev_insn): Likewise for local "pro".
2920 (find_inc): Likewise for locals "pro", "con".
2921
2922 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2923
2924 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2925 to rtx_insn *.
2926 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2927 const rtx_insn *.
2928 (modified_between_p): Strengthen local "insn" from rtx to
2929 rtx_insn *.
2930 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2931 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2932 const rtx_insn *.
2933
2934 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2935
2936 * resource.c (next_insn_no_annul): Strengthen local "next" from
2937 rtx to rtx_insn *.
2938 (mark_referenced_resources): Likewise for local "insn".
2939
2940 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2941
2942 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2943 to rtx_insn *.
2944 (find_reloads): Likewise for param 1.
2945 (subst_reloads): Likewise for sole param.
2946 (find_equiv_reg): Likwise for param 2.
2947 (regno_clobbered_p): Likwise for param 2.
2948 (reload): Likewise for param 1.
2949
2950 * caller-save.c (save_call_clobbered_regs): Strengthen local
2951 "insn" from rtx to rtx_insn *.
2952 (insert_one_insn): Likewise for local "insn".
2953
2954 * reload.c (this_insn): Likewise for this global.
2955 (find_reloads): Likewise for param "insn".
2956 (find_reloads_toplev): Likewise.
2957 (find_reloads_address): Likewise.
2958 (subst_reg_equivs): Likewise.
2959 (update_auto_inc_notes): Likewise.
2960 (find_reloads_address_1): Likewise.
2961 (find_reloads_subreg_address): Likewise.
2962 (subst_reloads): Likewise.
2963 (find_equiv_reg): Likewise, also for local "p".
2964 (regno_clobbered_p): Likewise for param "insn".
2965
2966 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2967 array.
2968 (spill_reg_store): Likewise for the elements of this array.
2969 (remove_init_insns): Likewise for local "equiv_insn".
2970 (will_delete_init_insn_p): Likewise for param "insn".
2971 (reload): Likewise for param ""first" and local "insn".
2972 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2973 rtx_insn *.
2974 (calculate_elim_costs_all_insns): Likewise.
2975 (delete_caller_save_insns): Likewise.
2976 (spill_failure): Likewise for param "insn".
2977 (delete_dead_insn): Likewise.
2978 (set_label_offsets): Likewise.
2979 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2980 "prev_insn".
2981 (elimination_costs_in_insn): Likewise for param "insn".
2982 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2983 when referring to an insn.
2984 (set_initial_label_offsets): Likewise.
2985 (set_offsets_for_label): Strengthen param "insn" from rtx to
2986 rtx_insn *.
2987 (init_eliminable_invariants): Likewise for param "first" and local
2988 "insn".
2989 (fixup_eh_region_note): Likewise for param "insn".
2990 (reload_as_needed): Likewise for locals "prev", "insn",
2991 "old_next", "old_prev", "next".
2992 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2993 "last".
2994 (reload_inheritance_insn): Strengthen elements of this array from
2995 rtx to rtx_insn *.
2996 (failed_reload): Likewise for param "insn".
2997 (choose_reload_regs): Likewise for local "insn". Replace use of
2998 NULL_RTX with NULL when referring to an insn.
2999 (input_reload_insns): Strengthen elements of this array from rtx
3000 to rtx_insn *.
3001 (other_input_address_reload_insns): Likewise for this global.
3002 (other_input_reload_insns): Likewise for this global.
3003 (input_address_reload_insns): Likwise for the elements of this
3004 array.
3005 (inpaddr_address_reload_insns): Likwise for the elements of this
3006 array.
3007 (output_reload_insns): Likewise for the elements of this array.
3008 (output_address_reload_insns): Likewise for the elements of this
3009 array.
3010 (outaddr_address_reload_insns): Likewise for the elements of this
3011 array.
3012 (operand_reload_insns): Likewise for this global.
3013 (other_operand_reload_insns): Likewise for this global.
3014 (other_output_reload_insns): Likewise for the elements of this
3015 array.
3016 (new_spill_reg_store): Likewise for the elements of this
3017 array.
3018 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3019 Strengthen local "where" from rtx * to rtx_insn **.
3020 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3021 from rtx to rtx_insn *.
3022 (do_input_reload): Likewise for local "insn".
3023 (do_output_reload): Likewise for local "insn".
3024 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3025 (emit_insn_if_valid_for_reload): Likewise for return type and local
3026 "last". Add checked cast to rtx_insn when returning "insn" since
3027 this has been through emit_insn.
3028 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3029 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3030 returning "insn" since it's been through
3031 emit_insn_if_valid_for_reload at this point.
3032 (delete_output_reload): Strengthen param "insn" and locals
3033 "output_reload_insn", "i2" from rtx to rtx_insn *.
3034 (delete_address_reloads): Likewise for params "dead_insn",
3035 "current_insn" and locals "prev", "next".
3036 (delete_address_reloads_1): Likewise for params "dead_insn",
3037 "current_insn" and locals "prev", "i2".
3038 (inc_for_reload): Likewise for locals "last", "add_insn".
3039 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3040 rtx_insn *.
3041
3042 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3043 param of this duplicate of the prototype from reload.h
3044
3045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3046
3047 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3048 rtx to rtx_insn *.
3049 (regstat_bb_compute_calls_crossed): Likewise.
3050
3051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3052
3053 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3054 to rtx_insn *.
3055 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3056 with an insn.
3057 (regrename_analyze): Strengthen local "insn" from rtx to
3058 rtx_insn *.
3059 (scan_rtx_reg): Likewise for param "insn".
3060 (scan_rtx_address): Likewise.
3061 (scan_rtx): Likewise.
3062 (restore_operands): Likewise.
3063 (record_out_operands): Likewise.
3064 (build_def_use): Likewise for local "insn". Replace use of
3065 NULL_RTX with NULL when dealing with an insn.
3066
3067 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3068
3069 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3070 * reginfo.c (reg_scan): Likewise, also for local "insn".
3071 (reg_scan_mark_refs): Likewise for param "insn".
3072 (init_subregs_of_mode): Likewise for local "insn".
3073
3074 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3075
3076 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3077 "insn" from rtx to rtx_insn *.
3078 (replace_oldest_value_reg): Likewise for param "insn".
3079 (replace_oldest_value_addr): Likewise.
3080 (replace_oldest_value_mem): Likewise.
3081 (apply_debug_insn_changes): Likewise for local "last_insn".
3082 (copyprop_hardreg_forward_1): Likewise for local "insn".
3083
3084 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3085
3086 * reg-stack.c (next_flags_user): Strengthen return type and param
3087 "insn" from rtx to rtx_insn *.
3088 (straighten_stack): Likewise for param "insn".
3089 (check_asm_stack_operands): Likewise.
3090 (remove_regno_note): Likewise.
3091 (emit_pop_insn): Likewise for return type, param "insn", local
3092 "pop_insn".
3093 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3094 "limit" from rtx to rtx_insn *.
3095 (swap_to_top): Likewise for param "insn".
3096 (move_for_stack_reg): Likewise.
3097 (move_nan_for_stack_reg): Likewise.
3098 (swap_rtx_condition): Likewise.
3099 (compare_for_stack_reg): Likewise.
3100 (subst_all_stack_regs_in_debug_insn): Likewise.
3101 (subst_stack_regs_pat): Likewise, and local "insn2".
3102 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3103 rtx_insn *.
3104 (subst_stack_regs): Likewise.
3105 (change_stack): Likewise.
3106 (convert_regs_1): Likewise for locals "insn", "next".
3107
3108 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3109
3110 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3111 rtx_insn *.
3112 (combine_set_extension): Likewise for param "curr_insn".
3113 (transform_ifelse): Likewise for param "def_insn".
3114 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3115 from vec<rtx> * to vec<rtx_insn *> *.
3116 (is_cond_copy_insn): Likewise for param "insn".
3117 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3118 to vec<rtx_insn *>.
3119 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3120 local "def_insn" from rtx to rtx_insn *.
3121 (get_sub_rtx): Likewise for param "def_insn".
3122 (merge_def_and_ext): Likewise.
3123 (combine_reaching_defs): Likewise.
3124 (add_removable_extension): Likewise for param "insn".
3125 (find_removable_extensions): Likewise for local "insn".
3126 (find_and_remove_re): Likewise for locals "curr_insn" and
3127 "def_insn". Strengthen locals "reinsn_del_list" and
3128 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3129
3130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3131
3132 * recog.c (split_insn): Strengthen param "insn" and locals
3133 "first", "last" from rtx to rtx_insn *.
3134 (split_all_insns): Likewise for locals "insn", "next".
3135 (split_all_insns_noflow): Likewise.
3136
3137 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3138
3139 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3140 const rtx_insn *.
3141 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3142 (debug_rtx_find): Likewise for param 1 "x".
3143
3144 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3145 const_rtx to const rtx_insn *. Likewise for local "insn".
3146 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3147 (debug_rtx_find): Likewise for param 1 "x".
3148 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3149 from const_rtx to const rtx_insn * within the appropriate cases of
3150 the switch statement.
3151
3152 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3153 Strengthen local "insns" from rtx to rtx_insn * since this is
3154 passed to a call to debug_rtx_list.
3155
3156 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3157
3158 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3159 to rtx_insn *.
3160
3161 * function.c (stack_protect_epilogue): Add checked cast to
3162 rtx_insn for now when invoking predict_insn_def.
3163
3164 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3165 rtx_insn *.
3166 (predict_insn_def): Likewise.
3167 (rtl_predict_edge): Likewise for local "last_insn".
3168 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3169 const rtx_insn *.
3170 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3171 to rtx_insn *.
3172 (bb_estimate_probability_locally): Likewise for local "last_insn".
3173 (expensive_function_p): Likewise for local "insn".
3174
3175 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3176 local "jmp", since this is used when invoking predict_insn_def.
3177
3178 2014-08-22 Marek Polacek <polacek@redhat.com>
3179
3180 PR c++/62199
3181 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3182
3183 2014-08-22 Marek Polacek <polacek@redhat.com>
3184
3185 PR c/61271
3186 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3187 a comparison in parens.
3188 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3189 in parens.
3190
3191 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3192
3193 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3194 rtx_insn *.
3195
3196 * cprop.c (fis_get_condition): Likewise.
3197
3198 * postreload.c (reload_cse_regs): Likewise for param "first".
3199 (reload_cse_simplify): Likewise for param "insn".
3200 (reload_cse_regs_1): Likewise for local "insn".
3201 (reload_cse_simplify_set): Likewise for param "insn".
3202 (reload_cse_simplify_operands): Likewise.
3203 (struct reg_use): Likewise for field "insn".
3204 (reload_combine_purge_insn_uses): Likewise for param "insn".
3205 (fixup_debug_insns): Likewise for params "from", "to" and local
3206 "insn".
3207 (try_replace_in_use): Likewise for local "use_insn".
3208 (reload_combine_recognize_const_pattern): Likewise for param
3209 "insn" and locals "add_moved_after_insn", "use_insn".
3210 (reload_combine_recognize_pattern): Likewise for param "insn" and
3211 local "prev".
3212 (reload_combine): Likewise for locals "insn", "prev".
3213 (reload_combine_note_use): Likewise for param "insn".
3214 (move2add_use_add2_insn): Likewise.
3215 (move2add_use_add3_insn): Likewise.
3216 (reload_cse_move2add): Likewise, also for local "next".
3217 (move2add_note_store): Likewise for local "insn".
3218
3219 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3220
3221 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3222 rtx to rtx_insn *.
3223 (struct unoccr): Likewise.
3224 (struct modifies_mem): Likewise.
3225 (alloc_mem): Likewise for local "insn".
3226 (insert_expr_in_table): Likewise for param "insn".
3227 (dump_expr_hash_table_entry): Likewise for local "insn".
3228 (oprs_unchanged_p): Likewise for param "insn".
3229 (load_killed_in_block_p): Likewise for local "setter".
3230 (record_last_reg_set_info): Likewise for param "insn".
3231 (record_last_reg_set_info_regno): Likewise.
3232 (record_last_mem_set_info): Likewise.
3233 (record_last_set_info): Likewise for local "last_set_insn".
3234 (record_opr_changes): Likewise for param "insn".
3235 (hash_scan_set): Likewise.
3236 (compute_hash_table): Likewise for local "insn".
3237 (get_avail_load_store_reg): Likewise for param "insn".
3238 (eliminate_partially_redundant_load): Likewise, also for locals
3239 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3240 RTX for insns.
3241 (eliminate_partially_redundant_loads): Likewise for local "insn".
3242
3243 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3244
3245 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3246 rtx to rtx_insn *.
3247 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3248 (expand_twoval_unop): Likewise for locals entry_last", "last".
3249 (expand_twoval_binop): Likewise.
3250 (expand_twoval_binop_libfunc): Likewise for local "insns".
3251 (widen_leading): Likewise for local "last".
3252 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3253 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3254 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3255 (expand_parity): Likewise for locals "last" and "seq".
3256 (expand_ffs): Likewise for local "seq". Strengthen local
3257 "nonzero_label" from rtx to rtx_code_label *.
3258 (expand_absneg_bit): Strengthen local "insns" from rtx to
3259 rtx_insn *.
3260 (expand_unop_direct): Likewise for local "last".
3261 (expand_unop): Likewise for locals "last", "insns".
3262 (expand_abs_nojump): Likewise for local "last".
3263 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3264 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3265 rtx_insn *.
3266 (expand_copysign_absneg): Strengthen local "label" from rtx to
3267 rtx_code_label *.
3268 (expand_copysign_bit): Strengthen local "insns" from rtx to
3269 rtx_insn *.
3270 (struct no_conflict_data): Likewise for fields "first", "insn".
3271 (emit_libcall_block_1): Likewise for param "insns" and locals
3272 "next", "last", "insn".
3273 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3274 on "insns" when invoking emit_libcall_block_1. Ultimately we
3275 want to strengthen insns itself.
3276 (prepare_cmp_insn): Strengthen local "last" from rtx to
3277 rtx_insn *.
3278 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3279 (prepare_float_lib_cmp): Likewise for local "insns".
3280 (emit_conditional_move): Likewise for local "last".
3281 (emit_conditional_add): Likewise.
3282 (have_sub2_insn): Likewise for local "seq".
3283 (expand_float): Likewise for local "insns". Strengthen locals
3284 "label", "neglabel" from rtx to rtx_code_label *.
3285 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3286 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3287 (expand_fixed_convert): Likewise for local "insns" (to
3288 rtx_insn *).
3289 (expand_sfix_optab): Likewise for local "last".
3290 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3291 to rtx_code_label *.
3292 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3293 from rtx to rtx_insn *.
3294 (expand_atomic_fetch_op): Likewise for local "insn".
3295 (maybe_legitimize_operand_same_code): Likewise for local "last".
3296 (maybe_legitimize_operands): Likewise.
3297
3298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3299
3300 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3301 "insn" from rtx to rtx_insn *.
3302 (ps_rtl_insn): Likewise for return type.
3303 (doloop_register_get): Likewise for params "head", "tail" and
3304 locals "insn", "first_insn_not_to_check".
3305 (schedule_reg_move): Likewise for local "this_insn".
3306 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3307 of gen_move_insn for now.
3308 (reset_sched_times): Strengthen local "insn" from rtx to
3309 rtx_insn *.
3310 (permute_partial_schedule): Likewise.
3311 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3312 (dump_insn_location): Likewise for param "insn".
3313 (loop_canon_p): Likewise for local "insn".
3314 (sms_schedule): Likewise.
3315 (print_partial_schedule): Likewise.
3316 (ps_has_conflicts): Likewise.
3317
3318 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3319
3320 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3321 "tailp" from rtx * to rtx_insn **.
3322
3323 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3324 from rtx to rtx_insn *.
3325 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3326 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3327 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3328 rtx to rtx_insn *.
3329 * modulo-sched.c (const_iteration_count): Strengthen return type
3330 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3331 use of NULL_RTX with NULL when working with insns.
3332 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3333 to rtx_insn *.
3334 (sms_schedule): Likewise.
3335 * sched-rgn.c (init_ready_list): Likewise, also for locals
3336 "src_head" and "src_next_tail".
3337 (compute_block_dependences): Likewise.
3338 (free_block_dependencies): Likewise.
3339 (debug_rgn_dependencies): Likewise.
3340 (free_rgn_deps): Likewise.
3341 (compute_priorities): Likewise.
3342 (schedule_region): Likewise.
3343 * sel-sched.c (find_ebb_boundaries): Likewise.
3344
3345 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3346 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3347
3348 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3349
3350 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3351 from rtx to rtx_insn *.
3352 (new_seginfo): Likewise for param "insn".
3353 (create_pre_exit): Likewise for locals "last_insn",
3354 "before_return_copy", "return_copy".
3355 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3356 "mode_set".
3357
3358 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3359
3360 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3361 from rtx to rtx_insn *.
3362 (lra_push_insn): Likewise for 1st param.
3363 (lra_push_insn_and_update_insn_regno_info): Likewise.
3364 (lra_pop_insn): Likewise for return type.
3365 (lra_invalidate_insn_data): Likewise for 1st param.
3366 (lra_set_insn_deleted): Likewise.
3367 (lra_delete_dead_insn): Likewise.
3368 (lra_process_new_insns): Likewise for first 3 params.
3369 (lra_set_insn_recog_data): Likewise for 1st param.
3370 (lra_update_insn_recog_data): Likewise.
3371 (lra_set_used_insn_alternative): Likewise.
3372 (lra_invalidate_insn_regno_info): Likewise.
3373 (lra_update_insn_regno_info): Likewise.
3374 (lra_former_scratch_operand_p): Likewise.
3375 (lra_eliminate_regs_1): Likewise.
3376 (lra_get_insn_recog_data): Likewise.
3377
3378 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3379 rtx to rtx_insn *.
3380
3381 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3382 "mv1" and "mv2".
3383 (substitute_within_insn): New.
3384 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3385 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3386 Replace call to "substitute" with call to substitute_within_insn.
3387
3388 * lra-constraints.c (curr_insn): Strengthen from rtx to
3389 rtx_insn *.
3390 (get_equiv_with_elimination): Likewise for param "insn".
3391 (match_reload): Strengthen params "before" and "after" from rtx *
3392 to rtx_insn **.
3393 (emit_spill_move): Likewise for return type. Add a checked cast
3394 to rtx_insn * on result of gen_move_insn for now.
3395 (check_and_process_move): Likewise for local "before". Replace
3396 NULL_RTX with NULL when referring to insns.
3397 (process_addr_reg): Strengthen params "before" and "after" from
3398 rtx * to rtx_insn **.
3399 (insert_move_for_subreg): Likewise.
3400 (simplify_operand_subreg): Strengthen locals "before" and "after"
3401 from rtx to rtx_insn *.
3402 (process_address_1): Strengthen params "before" and "after" from
3403 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3404 rtx to rtx_insn *.
3405 (process_address): Strengthen params "before" and "after" from
3406 rtx * to rtx_insn **.
3407 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3408 (curr_insn_transform): Strengthen locals "before" and "after"
3409 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3410 to insns.
3411 (loc_equivalence_callback): Update cast of "data", changing
3412 resulting type from rtx to rtx_insn *.
3413 (substitute_pseudo_within_insn): New.
3414 (inherit_reload_reg): Strengthen param "insn" from rtx to
3415 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3416 NULL when referring to insns. Add a checked cast to rtx_insn *
3417 when using usage_insn to invoke lra_update_insn_regno_info.
3418 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3419 likewise for locals "restore", "save". Add checked casts to
3420 rtx_insn * when using usage_insn to invoke
3421 lra_update_insn_regno_info and lra_process_new_insns. Replace
3422 NULL_RTX with NULL when referring to insns.
3423 (split_if_necessary): Strengthen param "insn" from rtx to
3424 rtx_insn *.
3425 (update_ebb_live_info): Likewise for params "head", "tail" and local
3426 "prev_insn".
3427 (get_last_insertion_point): Likewise for return type and local "insn".
3428 (get_live_on_other_edges): Likewise for local "last".
3429 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3430 "prev_insn", "next_insn", "restore".
3431 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3432 (undo_optional_reloads): Likewise for local "insn".
3433
3434 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3435 "insn".
3436 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3437 insns.
3438 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3439 rtx_insn *.
3440 (spill_pseudos): Likewise for local "insn".
3441 (init_elimination): Likewise.
3442 (process_insn_for_elimination): Likewise for param "insn".
3443
3444 * lra-lives.c (curr_insn): Likewise.;
3445
3446 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3447 (remove_pseudos): Likewise for param "insn".
3448 (spill_pseudos): Likewise for local "insn".
3449 (lra_final_code_change): Likewise for locals "insn", "curr".
3450
3451 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3452 (lra_set_insn_deleted): Likewise.
3453 (lra_delete_dead_insn): Likewise, and for local "prev".
3454 (new_insn_reg): Likewise for param "insn".
3455 (lra_set_insn_recog_data): Likewise.
3456 (lra_update_insn_recog_data): Likewise.
3457 (lra_set_used_insn_alternative): Likewise.
3458 (get_insn_freq): Likewise.
3459 (invalidate_insn_data_regno_info): Likewise.
3460 (lra_invalidate_insn_regno_info): Likewise.
3461 (lra_update_insn_regno_info): Likewise.
3462 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3463 vec<rtx_insn *>.
3464 (lra_push_insn_1): Strengthen param "insn" from rtx to
3465 rtx_insn *.
3466 (lra_push_insn): Likewise.
3467 (lra_push_insn_and_update_insn_regno_info): Likewise.
3468 (lra_pop_insn): Likewise for return type and local "insn".
3469 (push_insns): Likewise for params "from", "to", and local "insn".
3470 (setup_sp_offset): Likewise for params "from", "last" and locals
3471 "before", "insn".
3472 (lra_process_new_insns): Likewise for params "insn", "before",
3473 "after" and local "last".
3474 (struct sloc): Likewise for field "insn".
3475 (lra_former_scratch_operand_p): Likewise for param "insn".
3476 (remove_scratches): Likewise for locals "insn", "last".
3477 (check_rtl): Likewise for local "insn".
3478 (add_auto_inc_notes): Likewise for param "insn".
3479 (update_inc_notes): Likewise for local "insn".
3480 (lra): Replace NULL_RTX with NULL when referring to insn.
3481
3482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3483
3484 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3485 to rtx_insn *.
3486 (resolve_reg_notes): Likewise.
3487 (resolve_simple_move): Likewise for return type, param "insn", and
3488 locals "insns", "minsn".
3489 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3490 (resolve_use): Likewise.
3491 (resolve_debug): Likewise.
3492 (find_decomposable_shift_zext): Likewise.
3493 (resolve_shift_zext): Likewise for return type, param "insn", and
3494 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3495 (decompose_multiword_subregs): Likewise for local "insn",
3496 "orig_insn", "decomposed_shift", "end".
3497
3498 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3499
3500 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3501 param "insns" from rtx to rtx_insn *.
3502
3503 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3504 rtx to rtx_insn *.
3505 (struct iv_to_split): Likewise.
3506 (loop_exit_at_end_p): Likewise for local "insn".
3507 (split_edge_and_insert): Likewise for param "insns".
3508 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3509 and locals "seq", "jump".
3510 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3511 "branch_code"; update invocations of compare_and_jump_seq to
3512 eliminate NULL_RTX in favor of NULL.
3513 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3514 rtx to rtx_insn *.
3515 (reset_debug_uses_in_loop): Likewise.
3516 (analyze_insn_to_expand_var): Likewise for param "insn".
3517 (analyze_iv_to_split_insn): Likewise.
3518 (analyze_insns_in_loop): Likewise for local "insn".
3519 (insert_base_initialization): Likewise for param
3520 "insn" and local "seq".
3521 (split_iv): Likewise for param "insn" and local "seq".
3522 (expand_var_during_unrolling): Likewise for param "insn".
3523 (insert_var_expansion_initialization): Likewise for local "seq".
3524 (combine_var_copies_in_loop_exit): Likewise.
3525 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3526 "insn".
3527 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3528 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3529 "next".
3530
3531 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3532
3533 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3534 rtx_insn *.
3535 (iv_analyze_result): Likewise.
3536 (iv_analyze_expr): Likewise.
3537 (biv_p): Likewise.
3538
3539 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3540 local "def_insn" from rtx to rtx_insn *.
3541 (get_biv_step_1): Likewise for local "insn".
3542 (iv_analyze_expr): Likewise for param "insn".
3543 (iv_analyze_def): Likewise for local "insn".
3544 (iv_analyze_op): Likewise for param "insn".
3545 (iv_analyze): Likewise.
3546 (iv_analyze_result): Likewise.
3547 (biv_p): Likewise.
3548 (suitable_set_for_replacement): Likewise.
3549 (simplify_using_initial_values): Likewise for local "insn".
3550 (iv_number_of_iterations): Likewise for param "insn".
3551 (check_simple_exit): Add checked cast to rtx_insn when invoking
3552 iv_number_of_iterations for now (until get_condition is
3553 strengthened).
3554
3555 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3556 "insn" from rtx to rtx_insn *.
3557 (analyze_insns_in_loop): Likewise for local "insn".
3558
3559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3560
3561 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3562 to rtx_insn *.
3563 (struct invariant): Likewise.
3564 (hash_invariant_expr_1): Likewise for param "insn".
3565 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3566 (find_exits): Likewise for local "insn".
3567 (create_new_invariant): Likewise for param "insn".
3568 (check_dependencies): Likewise.
3569 (find_invariant_insn): Likewise.
3570 (record_uses): Likewise.
3571 (find_invariants_insn): Likewise.
3572 (find_invariants_bb): Likewise for local "insn".
3573 (get_pressure_class_and_nregs): Likewise for param "insn".
3574 (calculate_loop_reg_pressure): Likewise for local "insn".
3575
3576 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3577
3578 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3579 to rtx_insn *.
3580 (add_test): Likewise for locals "seq", "jump".
3581 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3582
3583 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3584
3585 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3586 rtx_insn *.
3587 (rebuild_jump_labels_chain): Likewise for param "chain".
3588
3589 * cfgexpand.c (pass_expand::execute): Add checked cast to
3590 rtx_insn * when calling rebuild_jump_labels_chain in region where
3591 we know e->insns.r is non-NULL.
3592
3593 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3594 rtx_insn *.
3595 (rebuild_jump_labels): Likewise.
3596 (rebuild_jump_labels_chain): Likewise for param "chain".
3597 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3598 (init_label_info): Likewise for param "f".
3599 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3600 "prev_nonjump_insn".
3601 (mark_all_labels): Likewise for param "f" and locals "insn",
3602 "prev_nonjump_insn".
3603
3604 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3605
3606 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3607 from rtx to rtx_insn *insn.
3608 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3609 (ira_add_allocno_copy): Likewise.
3610 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3611 rtx to rtx_insn *.
3612 (ira_create_copy): Likewise.
3613 (ira_add_allocno_copy): Likewise.
3614 (create_bb_allocnos): Likewise for local "insn".
3615 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3616 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3617 process_regs_for_copy for rtx_insn * param.
3618 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3619 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3620 process_regs_for_copy for rtx_insn * param.
3621 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3622 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3623 (record_operand_costs): Likewise.
3624 (scan_one_insn): Likewise for return type, and for param "insn".
3625 (process_bb_for_costs): Likewise for local "insn".
3626 (process_bb_node_for_hard_reg_moves): Likewise.
3627 * ira-emit.c (struct move): Likewise for field "insn".
3628 (create_move): Eliminate use of NULL_RTX when dealing with an
3629 rtx_insn *.
3630 (emit_move_list): Strengthen return type and locals "result",
3631 "insn" from rtx to rtx_insn *insn.
3632 (emit_moves): Likewise for locals "insns", "tmp".
3633 (ira_emit): Likewise for local "insn".
3634 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3635 "insn".
3636 (find_call_crossed_cheap_reg): Likewise.
3637 (process_bb_node_lives): Likewise for local "insn".
3638 * ira.c (decrease_live_ranges_number): Likewise.
3639 (compute_regs_asm_clobbered): Likewise.
3640 (build_insn_chain): Likewise.
3641 (find_moveable_pseudos): Likewise, also locals "def_insn",
3642 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3643 to rtx_insn **. Add a checked cast when assigning from
3644 "closest_use" into closest_uses array in a region where we know
3645 it's a non-NULL insn.
3646 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3647 to rtx_insn *.
3648 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3649 "last_interesting_insn", "uin".
3650 (move_unallocated_pseudos): Likewise for locals "def_insn",
3651 "move_insn", "newinsn".
3652
3653 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3654
3655 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3656 Strengthen locals "done_label", "do_error" from rtx to
3657 rtx_code_label *.
3658 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3659 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3660 rtx_code_label *.
3661 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3662 "done_label", "do_error" to rtx_code_label * and local "last" to
3663 rtx_insn *.
3664 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3665 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3666 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3667 "after_lopart_neg", "do_overflow", "hipart_different" to
3668 rtx_code_label * and local "last" to rtx_insn *.
3669
3670 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3671
3672 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3673 "insn" and "move_insn" from rtx to rtx_insn *.
3674
3675 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3676
3677 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3678 rtx_insn *.
3679 (cheap_bb_rtx_cost_p): Likewise.
3680 (first_active_insn): Likewise for return type and local "insn".
3681 (last_active_insn): Likewise for return type and locals "insn",
3682 "head".
3683 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3684 "insn_b".
3685 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3686 "seq".
3687 (noce_try_move): Likewise for local "seq".
3688 (noce_try_store_flag): Likewise.
3689 (noce_try_store_flag_constants): Likewise.
3690 (noce_try_addcc): Likewise.
3691 (noce_try_store_flag_mask): Likewise.
3692 (noce_try_cmove): Likewise.
3693 (noce_try_minmax): Likewise.
3694 (noce_try_abs): Likewise.
3695 (noce_try_sign_mask): Likewise.
3696 (noce_try_bitop): Likewise.
3697 (noce_can_store_speculate_p): Likewise for local "insn".
3698 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3699 seq".
3700 (check_cond_move_block): Likewise for local "insn".
3701 (cond_move_convert_if_block): Likewise.
3702 (cond_move_process_if_block): Likewise for locals "seq",
3703 "loc_insn".
3704 (noce_find_if_block): Likewise for local "jump".
3705 (merge_if_block): Likewise for local "last".
3706 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3707 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3708 (block_has_only_trap): Likewise for return type and local "trap".
3709 (find_if_case_1): Likewise for local "jump".
3710 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3711 "insn".
3712
3713 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3714
3715 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3716 "last_insn", "loop_end" from rtx to rtx_insn *.
3717
3718 * hw-doloop.c (scan_loop): Likewise for local "insn".
3719 (discover_loop): Likewise for param "tail_insn".
3720 (discover_loops): Likewise for local "tail".
3721
3722 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3723 cast to rtx_insn * when assigning from an rtx local to a
3724 hwloop_info's "last_insn" field.
3725
3726 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3727
3728 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3729 (add_delay_dependencies): Strengthen local "pro" from rtx to
3730 rtx_insn *.
3731 (recompute_todo_spec): Likewise.
3732 (dep_cost_1): Likewise for locals "insn", "used".
3733 (schedule_insn): Likewise for local "dbg".
3734 (schedule_insn): Likewise for locals "pro", "next".
3735 (unschedule_insns_until): Likewise for local "con".
3736 (restore_pattern): Likewise for local "next".
3737 (estimate_insn_tick): Likewise for local "pro".
3738 (resolve_dependencies): Likewise for local "next".
3739 (fix_inter_tick): Likewise.
3740 (fix_tick_ready): Likewise for local "pro".
3741 (add_to_speculative_block): Likewise for locals "check", "twin",
3742 "pro".
3743 (sched_extend_bb): Likewise for locals "end", "insn".
3744 (init_before_recovery): Likewise for local "x".
3745 (sched_create_recovery_block): Likewise for local "barrier".
3746 (create_check_block_twin): Likewise for local "pro".
3747 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3748 "consumer".
3749 (unlink_bb_notes): Update for change to type of bb_header.
3750 Strengthen locals "prev", "label", "note", "next" from rtx to
3751 rtx_insn *.
3752 (clear_priorities): Likewise for local "pro".
3753
3754 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3755
3756 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3757 rtx_insn *.
3758 (test_insn): Likewise for this global.
3759 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3760 const rtx_insn *.
3761 (oprs_anticipatable_p): Likewise.
3762 (oprs_available_p): Likewise.
3763 (insert_expr_in_table): Strengthen param "insn" from rtx to
3764 rtx_insn *.
3765 (hash_scan_set): Likewise.
3766 (hash_scan_clobber): Likewise.
3767 (hash_scan_call): Likewise.
3768 (hash_scan_insn): Likewise.
3769 (compute_hash_table_work): Likewise for local "insn".
3770 (process_insert_insn): Likewise for return type and local "pat".
3771 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3772 "pat", "pat_end", "maybe_cc0_setter".
3773 (pre_edge_insert): Likewise for local "insn".
3774 (pre_insert_copy_insn): Likewise for param "insn".
3775 (pre_insert_copies): Likewise for local "insn".
3776 (struct set_data): Likewise for field "insn".
3777 (single_set_gcse): Likewise for param "insn".
3778 (gcse_emit_move_after): Likewise.
3779 (pre_delete): Likewise for local "insn".
3780 (update_bb_reg_pressure): Likewise for param "from" and local
3781 "insn".
3782 (should_hoist_expr_to_dom): Likewise for param "from".
3783 (hoist_code): Likewise for local "insn".
3784 (get_pressure_class_and_nregs): Likewise for param "insn".
3785 (calculate_bb_reg_pressure): Likewise for local "insn".
3786 (compute_ld_motion_mems): Likewise.
3787
3788 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3789
3790 * genpeep.c (main): Rename param back from "uncast_ins1" to
3791 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3792 checked cast.
3793
3794 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3795
3796 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3797
3798 PR target/62195
3799 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3800 documentation to state it is only for VSX operations.
3801
3802 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3803 constraint only active if VSX.
3804
3805 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3806 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3807 (lfiwzx): Likewise.
3808
3809 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3810
3811 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3812 Strengthen local "insn" from rtx to rtx_insn *.
3813 (use_killed_between): Likewise for param "target_insn".
3814 (all_uses_available_at): Likewise for param "target_insn" and
3815 local "next".
3816 (update_df_init): Likewise for params "def_insn", "insn".
3817 (update_df): Likewise for param "insn".
3818 (try_fwprop_subst): Likewise for param "def_insn" and local
3819 "insn".
3820 (free_load_extend): Likewise for param "insn".
3821 (forward_propagate_subreg): Likewise for param "def_insn" and
3822 local "use_insn".
3823 (forward_propagate_asm): Likewise for param "def_insn" and local
3824 "use_insn".
3825 (forward_propagate_and_simplify): Likewise for param "def_insn"
3826 and local "use_insn".
3827 (forward_propagate_into): Likewise for locals "def_insn" and
3828 "use_insn".
3829
3830 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3831
3832 * function.c (emit_initial_value_sets): Strengthen local "seq"
3833 from rtx to rtx_insn *.
3834 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3835 local "seq".
3836 (instantiate_virtual_regs): Likewise for local "insn".
3837 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3838 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3839 (expand_function_end): Likewise for locals "insn" and "seq".
3840 (epilogue_done): Likewise for local "insn".
3841 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3842 "last", "trial".
3843 (reposition_prologue_and_epilogue_notes): Likewise for locals
3844 "insn", "last", "note", "first".
3845 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3846 (pass_match_asm_constraints::execute): Likewise for local "insn".
3847
3848 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3849
3850 * output.h (final_scan_insn): Strengthen return type from rtx to
3851 rtx_insn *.
3852 (final_forward_branch_p): Likewise for param.
3853 (current_output_insn): Likewise for this global.
3854
3855 * final.c (rtx debug_insn): Likewise for this variable.
3856 (current_output_insn): Likewise.
3857 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3858 adding "insn" back in as an rtx_insn * with a checked cast, so
3859 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3860 first param.
3861 (compute_alignments): Strengthen local "label" from rtx to
3862 rtx_insn *.
3863 (shorten_branches): Rename param from "first" to "uncast_first",
3864 introducing a new local rtx_insn * "first" using a checked cast to
3865 effectively strengthen "first" from rtx to rtx_insn * without
3866 affecting the type signature. Strengthen locals "insn", "seq",
3867 "next", "label" from rtx to rtx_insn *.
3868 (change_scope): Strengthen param "orig_insn" and local "insn" from
3869 rtx to rtx_insn *.
3870 (final_start_function): 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 local "insn" from rtx to
3874 rtx_insn *.
3875 (dump_basic_block_info): Strengthen param "insn" from rtx to
3876 rtx_insn *.
3877 (final): 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 locals "insn", "next"
3881 from rtx to rtx_insn *.
3882 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3883 rtx_insn *.
3884 (call_from_call_insn): Strengthen param "insn" from rtx to
3885 rtx_call_insn *.
3886 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3887 introducing a new local rtx_insn * "insn" using a checked cast to
3888 effectively strengthen "insn" from rtx to rtx_insn * without
3889 affecting the type signature. Strengthen return type and locals
3890 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3891 now-redundant checked cast to rtx_insn * from both invocations of
3892 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3893 introducing a local "call_insn" for use when invoking
3894 call_from_call_insn.
3895 (notice_source_line): Strengthen param "insn" from rtx to
3896 rtx_insn *.
3897 (leaf_function_p): Likewise for local "insn".
3898 (final_forward_branch_p): Likewise.
3899 (leaf_renumber_regs): Likewise for param "first".
3900 (rest_of_clean_state): Likewise for locals "insn" and "next".
3901 (self_recursive_call_p): Likewise for param "insn".
3902 (collect_fn_hard_reg_usage): Likewise for local "insn".
3903 (get_call_fndecl): Likewise for param "insn".
3904 (get_call_cgraph_rtl_info): Likewise.
3905 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3906 introducing a new local rtx_insn * "insn" using a checked cast to
3907 effectively strengthen "insn" from rtx to rtx_insn * without
3908 affecting the type signature.
3909
3910 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3911 cast when assigning from param "insn" to current_output_insn.
3912 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3913 so that we can assign it back to current_output_insn.
3914
3915 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3916
3917 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3918 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3919 atmxt540s and atmxt540sreva devices.
3920 * config/avr/avr-tables.opt: Regenerate.
3921 * config/avr/t-multilib: Regenerate.
3922 * doc/avr-mmcu.texi: Regenerate.
3923
3924 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3925
3926 * expr.c (convert_move): Strengthen local "insns" from rtx to
3927 rtx_insn *.
3928 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3929 "top_label" from rtx to rtx_code_label *.
3930 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3931 rtx_insn *.
3932 (emit_single_push_insn): Likewise for locals "prev", "last".
3933 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3934 to rtx_code_label *.
3935 (store_constructor): Likewise for locals "loop_start", "loop_end".
3936 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3937 rtx_insn *.
3938 (expand_expr_real_2): Likewise.
3939 (expand_expr_real_1): Strengthen local "label" from rtx to
3940 rtx_code_label *.
3941
3942 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3943
3944 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3945 from rtx to rtx_insn *.
3946 (store_bit_field_1): Likewise.
3947 (extract_bit_field_1): Likewise.
3948 (expand_mult_const): Likewise for local "insns".
3949 (expmed_mult_highpart): Strengthen local "label" from rtx to
3950 rtx_code_label *.
3951 (expand_smod_pow2): Likewise.
3952 (expand_sdiv_pow2): Likewise.
3953 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3954 rtx_insn *. Strengthen locals "label", "label1", "label2",
3955 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3956 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3957 (emit_store_flag): Likewise.
3958 (emit_store_flag_force): Strengthen local "label" from rtx to
3959 rtx_code_label *.
3960 (do_cmp_and_jump): Likewise for param "label".
3961
3962 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3963
3964 * explow.c (force_reg): Strengthen local "insn" from rtx to
3965 rtx_insn *.
3966 (adjust_stack_1): Likewise.
3967 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3968 "final_label", "available_label", "space_available" from rtx to
3969 rtx_code_label *.
3970 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3971 (anti_adjust_stack_and_probe): Likewise.
3972
3973 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3974
3975 * except.h (sjlj_emit_function_exit_after): Strengthen param
3976 "after" from rtx to rtx_insn *. This is only called with
3977 result of get_last_insn (in function.c) so type-change should be
3978 self-contained.
3979
3980 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3981 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3982 to rtx_insn *. These fields are only used from except.c so this
3983 type-change should be self-contained to this patch.
3984
3985 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3986 local "last" from rtx to rtx_insn *.
3987 (dw2_build_landing_pads): Likewise for local "seq".
3988 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3989 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3990 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3991 rtx to rtx_insn *.
3992 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3993 to rtx_insn *.
3994 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3995 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3996 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3997 referring to an insn. Strengthen local "dispatch_label" from
3998 rtx to rtx_code_label *.
3999 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4000 rtx_insn *.
4001 (expand_eh_return): Strengthen local "around_label" from
4002 rtx to rtx_code_label *.
4003 (convert_to_eh_region_ranges): Strengthen locals "iter",
4004 "last_action_insn", "first_no_action_insn",
4005 "first_no_action_insn_before_switch",
4006 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4007
4008 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4009
4010 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4011 from rtx to rtx_insn *.
4012 (cached_next_real_insn): Likewise.
4013 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4014 working with insns.
4015 (dwarf2out_var_location): Strengthen locals "next_real",
4016 "next_note", "expected_next_loc_note", "last_start", "insn" from
4017 rtx to rtx_insn *.
4018
4019 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4020
4021 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4022 from rtx to rtx_insn *.
4023 (create_pseudo_cfg): Likewise for local "insn".
4024
4025 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4026
4027 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4028 from rtx to rtx_insn *.
4029 (df_bb_regno_last_def_find): Likewise.
4030
4031 * df-problems.c (df_rd_bb_local_compute): Likewise.
4032 (df_lr_bb_local_compute): Likewise.
4033 (df_live_bb_local_compute): Likewise.
4034 (df_chain_remove_problem): Likewise.
4035 (df_chain_create_bb): Likewise.
4036 (df_word_lr_bb_local_compute): Likewise.
4037 (df_remove_dead_eq_notes): Likewise for param "insn".
4038 (df_note_bb_compute): Likewise for local "insn".
4039 (simulate_backwards_to_point): Likewise.
4040 (df_md_bb_local_compute): Likewise.
4041
4042 * df-scan.c (df_scan_free_bb_info): Likewise.
4043 (df_scan_start_dump): Likewise.
4044 (df_scan_start_block): Likewise.
4045 (df_install_ref_incremental): Likewise for local "insn".
4046 (df_insn_rescan_all): Likewise.
4047 (df_reorganize_refs_by_reg_by_insn): Likewise.
4048 (df_reorganize_refs_by_insn_bb): Likewise.
4049 (df_recompute_luids): Likewise.
4050 (df_bb_refs_record): Likewise.
4051 (df_update_entry_exit_and_calls): Likewise.
4052 (df_bb_verify): Likewise.
4053
4054 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4055
4056 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4057 "first_note" from rtx to rtx_insn *.
4058 (get_node_of_insn): Likewise for param 2 "insn".
4059 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4060
4061 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4062 rtx_insn *.
4063 (mem_write_insn_p): Likewise.
4064 (mem_access_insn_p): Likewise.
4065 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4066 (def_has_ccmode_p): Likewise for param "insn".
4067 (add_cross_iteration_register_deps): Likewise for locals
4068 "def_insn" and "use_insn".
4069 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4070 (build_intra_loop_deps): Likewise for local "src_insn".
4071 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4072 to rtx_insn *.
4073 (get_node_of_insn): Likewise for param "insn".
4074
4075 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4076
4077 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4078 (deletable_insn_p): Strengthen param "insn" from rtx to
4079 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4080 find_call_stack_args, since this is guarded by CALL_P (insn).
4081 (marked_insn_p): Strengthen param "insn" from rtx to
4082 rtx_insn *.
4083 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4084 invoking find_call_stack_args, since this is guarded by
4085 CALL_P (insn).
4086 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4087 rtx_insn *; we know this is an insn since this was called by
4088 mark_nonreg_stores.
4089 (mark_nonreg_stores_2): Likewise.
4090 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4091 rtx_insn *.
4092 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4093 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4094 to rtx_insn *.
4095 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4096 from rtx to rtx_insn *.
4097 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4098 "next", "ref_insn".
4099 (delete_unmarked_insns): Likewise for locals "insn", "next".
4100 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4101 (mark_reg_dependencies): Likewise for param "insn".
4102 (rest_of_handle_ud_dce): Likewise for local "insn".
4103 (word_dce_process_block): Likewise.
4104 (dce_process_block): Likewise.
4105
4106 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4107
4108 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4109 from rtx to rtx_insn *.
4110 (struct change_cc_mode_args): Likewise for field "insn".
4111 (this_insn): Strengthen from rtx to rtx_insn *.
4112 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4113 with insn.
4114 (validate_canon_reg): Strengthen param "insn" from rtx to
4115 rtx_insn *.
4116 (canon_reg): Likewise.
4117 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4118 dealing with insn.
4119 (record_jump_equiv): Strengthen param "insn" from rtx to
4120 rtx_insn *.
4121 (try_back_substitute_reg): Likewise, also for locals "prev",
4122 "bb_head".
4123 (find_sets_in_insn): Likewise for param "insn".
4124 (canonicalize_insn): Likewise.
4125 (cse_insn): Likewise. Add a checked cast.
4126 (invalidate_from_clobbers): Likewise for param "insn".
4127 (invalidate_from_sets_and_clobbers): Likewise.
4128 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4129 dealing with insn.
4130 (cse_prescan_path): Strengthen local "insn" from rtx to
4131 rtx_insn *.
4132 (cse_extended_basic_block): Likewise for locals "insn" and
4133 "prev_insn".
4134 (cse_main): Likewise for param "f".
4135 (check_for_label_ref): Likewise for local "insn".
4136 (set_live_p): Likewise for second param ("insn").
4137 (insn_live_p): Likewise for first param ("insn") and for local
4138 "next".
4139 (cse_change_cc_mode_insn): Likewise for first param "insn".
4140 (cse_change_cc_mode_insns): Likewise for first and second params
4141 "start" and "end".
4142 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4143 and "end".
4144 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4145 "cc_src_insn".
4146
4147 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4148 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4149 Anna Tikhonova <anna.tikhonova@intel.com>
4150 Ilya Tocar <ilya.tocar@intel.com>
4151 Andrey Turetskiy <andrey.turetskiy@intel.com>
4152 Ilya Verbin <ilya.verbin@intel.com>
4153 Kirill Yukhin <kirill.yukhin@intel.com>
4154 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4155
4156 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4157 New.
4158 * config/i386/sse.md
4159 (define_mode_iterator VI248_AVX2): Delete.
4160 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4161 (define_mode_iterator VI48_AVX2): Ditto.
4162 (define_insn <shift_insn><mode>3): Delete.
4163 (define_insn "<shift_insn><mode>3<mask_name>" with
4164 VI2_AVX2_AVX512BW): New.
4165 (define_insn "<shift_insn><mode>3<mask_name>" with
4166 VI48_AVX2): Ditto.
4167
4168 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4169 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4170 Anna Tikhonova <anna.tikhonova@intel.com>
4171 Ilya Tocar <ilya.tocar@intel.com>
4172 Andrey Turetskiy <andrey.turetskiy@intel.com>
4173 Ilya Verbin <ilya.verbin@intel.com>
4174 Kirill Yukhin <kirill.yukhin@intel.com>
4175 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4176
4177 * config/i386/sse.md
4178 (define_mode_iterator VI4F_BRCST32x2): New.
4179 (define_mode_attr 64x2_mode): Ditto.
4180 (define_mode_attr 32x2mode): Ditto.
4181 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4182 with VI4F_BRCST32x2): Ditto.
4183 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4184 with V16FI mode iterator): Ditto.
4185 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4186 with V16FI): Ditto.
4187 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4188 with VI8F_BRCST64x2): Ditto.
4189
4190 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4191 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4192 Anna Tikhonova <anna.tikhonova@intel.com>
4193 Ilya Tocar <ilya.tocar@intel.com>
4194 Andrey Turetskiy <andrey.turetskiy@intel.com>
4195 Ilya Verbin <ilya.verbin@intel.com>
4196 Kirill Yukhin <kirill.yukhin@intel.com>
4197 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4198
4199 * config/i386/sse.md
4200 (define_mode_iterator VI8_AVX512VL): New.
4201 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4202
4203 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4204
4205 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4206 (define_mode_iterator V48_AVX512VL): New.
4207 (define_mode_iterator V12_AVX512VL): Ditto.
4208 (define_insn <avx512>_load<mode>_mask): Split into two similar
4209 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4210 Refactor output template.
4211 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4212
4213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4214
4215 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4216 rtx_insn *.
4217 (reg_available_p): Likewise for param "insn".
4218 (insert_set_in_table): Likewise.
4219 (hash_scan_set): Likewise.
4220 (hash_scan_insn): Likewise.
4221 (make_set_regs_unavailable): Likewise.
4222 (compute_hash_table_work): Likewise for local "insn".
4223 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4224 const rtx_insn *.
4225 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4226 (try_replace_reg): Likewise.
4227 (find_avail_set): Likewise.
4228 (cprop_jump): Likewise for params "setcc", "jump".
4229 (constprop_register): Likewise for param "insn".
4230 (cprop_insn): Likewise.
4231 (do_local_cprop): Likewise.
4232 (local_cprop_pass): Likewise for local "insn".
4233 (bypass_block): Likewise for params "setcc" and "jump".
4234 (bypass_conditional_jumps): Likewise for locals "setcc" and
4235 "insn".
4236 (one_cprop_pass): Likewise for local "insn".
4237
4238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4239
4240 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4241 from rtx to rtx_insn *.
4242 (struct comparison): Likewise, also for field "prev_clobber".
4243 (conforming_compare): Likewise for param "insn".
4244 (arithmetic_flags_clobber_p): Likewise.
4245 (find_flags_uses_in_insn): Likewise.
4246 (find_comparison_dom_walker::before_dom_children): Likewise for
4247 locals "insn", "next", "last_clobber".
4248 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4249
4250 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4251
4252 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4253 "insn" from rtx to rtx_insn *.
4254 (single_set_for_csa): Likewise for param "insn".
4255 (record_one_stack_ref): Likewise.
4256 (try_apply_stack_adjustment): Likewise.
4257 (struct record_stack_refs_data): Likewise for field "insn".
4258 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4259 (prev_active_insn_bb): Likewise for return type and param "insn".
4260 (next_active_insn_bb): Likewise.
4261 (force_move_args_size_note): Likewise for params "prev" and "last"
4262 and locals "test", "next_candidate", "prev_candidate".
4263 (combine_stack_adjustments_for_block): Strengthen locals
4264 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4265 rtx_insn *.
4266
4267 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4268
4269 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4270 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4271 (subst_insn): Likewise for this variable.
4272 (added_links_insn): Likewise.
4273 (struct insn_link): Likewise for field "insn".
4274 (alloc_insn_link): Likewise for param "insn".
4275 (struct undobuf): Likewise for field "other_insn".
4276 (find_single_use): Likewise for param "insn" and local "next".
4277 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4278 (delete_noop_moves): Likewise for locals "insn", "next".
4279 (create_log_links): Likewise for locals "insn", "use_insn".
4280 Strengthen local "next_use" from rtx * to rtx_insn **.
4281 (insn_a_feeds_b): Likewise for params "a", "b".
4282 (combine_instructions): Likewise for param "f" and locals "insn",
4283 "next", "prev", "first", "last_combined_insn", "link", "link1",
4284 "temp". Replace use of NULL_RTX with NULL when referring to
4285 insns.
4286 (setup_incoming_promotions): Likewise for param "first"
4287 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4288 (can_combine_p): Likewise for params "insn", "i3", "pred",
4289 "pred2", "succ", "succ2" and for local "p".
4290 (combinable_i3pat): Likewise for param "i3".
4291 (cant_combine_insn_p): Likewise for param "insn".
4292 (likely_spilled_retval_p): Likewise.
4293 (adjust_for_new_dest): Likewise.
4294 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4295 (try_combine): Likewise for return type and for params "i3", "i2",
4296 "i1", "i0", "last_combined_insn", and for locals "insn",
4297 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4298 "i0_insn". Eliminate local "tem" in favor of new locals
4299 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4300 checked cast for now to rtx_insn * on the return type of
4301 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4302 insns.
4303 (find_split_point): Strengthen param "insn" from rtx to
4304 rtx_insn *.
4305 (simplify_set): Likewise for local "other_insn".
4306 (recog_for_combine): Likewise for param "insn".
4307 (record_value_for_reg): Likewise.
4308 (record_dead_and_set_regs_1): Likewise for local
4309 "record_dead_insn".
4310 (record_dead_and_set_regs): Likewise for param "insn".
4311 (record_promoted_value): Likewise.
4312 (check_promoted_subreg): Likewise.
4313 (get_last_value_validate): Likewise.
4314 (reg_dead_at_p): Likewise.
4315 (move_deaths): Likewise for param "to_insn".
4316 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4317 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4318 in favor of new locals "tem_note" and "tem_insn", the latter being
4319 an rtx_insn *.
4320 (distribute_links): Strengthen locals "place", "insn" from rtx to
4321 rtx_insn *.
4322
4323 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4324
4325 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4326 than a const_rtx.
4327 (can_delete_label_p): Require a const rtx_code_label * rather than
4328 a const_rtx.
4329 (delete_insn): Add checked cast to rtx_code_label * when we know
4330 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4331 rtx to rtx_insn *.
4332 (delete_insn_chain): Strengthen locals "prev" and "current" from
4333 rtx to rtx_insn *. Add a checked cast when assigning from
4334 "finish" (strengthening the params will come later). Add a
4335 checked cast to rtx_note * in region where we know
4336 NOTE_P (current).
4337 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4338 rtx_insn *.
4339 (compute_bb_for_insn): Likewise.
4340 (free_bb_for_insn): Likewise for local "insn".
4341 (compute_bb_for_insn): Likewise.
4342 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4343 local "insn" from rtx to rtx_insn *
4344 (flow_active_insn_p): Require a const rtx_insn * rather than a
4345 const_rtx.
4346 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4347 rtx_insn *.
4348 (can_fallthru): Likewise for locals "insn" and "insn2".
4349 (bb_note): Likewise for local "note".
4350 (first_insn_after_basic_block_note): Likewise for local "note" and
4351 for return type.
4352 (rtl_split_block): Likewise for locals "insn" and "next".
4353 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4354 "end".
4355 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4356 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4357 "prev", "tmp".
4358 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4359 them), "kill_from", "barrier", "new_insn".
4360 (patch_jump_insn): Likewise for params "insn", "old_label".
4361 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4362 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4363 "old_label", "new_label".
4364 (rtl_tidy_fallthru_edge): Likewise for local "q".
4365 (rtl_split_edge): Likewise for locals "before", "last".
4366 (commit_one_edge_insertion): Likewise for locals "before",
4367 "after", "insns", "tmp", "last", adding a checked cast where
4368 currently necessary.
4369 (commit_edge_insertions): Likewise.
4370 (rtl_dump_bb): Likewise for locals "insn", "last".
4371 (print_rtl_with_bb): Likewise for local "x".
4372 (rtl_verify_bb_insns): Likewise for local "x".
4373 (rtl_verify_bb_pointers): Likewise for local "insn".
4374 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4375 "head", "end".
4376 (rtl_verify_fallthru): Likewise for local "insn".
4377 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4378 (purge_dead_edges): Likewise for local "insn".
4379 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4380 (skip_insns_after_block): Likewise for return type and for locals
4381 "insn", "last_insn", "next_head", "prev".
4382 (record_effective_endpoints): Likewise for locals "next_insn",
4383 "insn", "end".
4384 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4385 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4386 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4387 (duplicate_insn_chain): For now, add checked cast from rtx to
4388 rtx_insn * when returning insn.
4389 (cfg_layout_duplicate_bb): Likewise for local "insn".
4390 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4391 "prev", "remaints".
4392 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4393 (rtl_block_empty_p): Likewise.
4394 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4395 "split_point", "last".
4396 (rtl_block_ends_with_call_p): Likewise for local "insn".
4397 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4398 const rtx_insn *.
4399 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4400 "split_at_insn" from rtx to rtx_insn *.
4401 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4402 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4403 to const rtx_insn *.
4404 (rtl_account_profile_record): Likewise.
4405
4406 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4407
4408 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4409 rtx to rtx_insn *.
4410 (average_num_loop_insns): Likewise.
4411 (init_set_costs): Likewise for local "seq".
4412 (seq_cost): Likewise for param "seq", from const_rtx to const
4413 rtx_insn *.
4414
4415 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4416
4417 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4418 rtx to rtx_insn *.
4419
4420 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4421
4422 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4423 "f1" and "f2" from rtx * to rtx_insn **.
4424 (flow_find_head_matching_sequence): Likewise.
4425
4426 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4427 "cbranch_insn" from rtx to rtx_insn *.
4428 (thread_jump): Likewise for local "insn".
4429 (try_forward_edges): Likewise for local "last".
4430 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4431 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4432 "real_b_end".
4433 (can_replace_by): Likewise for params "i1", "i2".
4434 (old_insns_match_p): Likewise.
4435 (merge_notes): Likewise.
4436 (walk_to_nondebug_insn): Likewise for param "i1".
4437 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4438 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4439 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4440 (flow_find_head_matching_sequence): Strengthen params "f1" and
4441 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4442 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4443 rtx_insn *.
4444 (outgoing_edges_match): Likewise for locals "last1", "last2".
4445 (try_crossjump_to_edge): Likewise for local "insn".
4446 Replace call to for_each_rtx with for_each_rtx_in_insn.
4447
4448 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4449 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4450 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4451 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4452 (try_optimize_cfg): Strengthen local "last" from rtx to
4453 rtx_insn *.
4454 (delete_dead_jumptables): Likewise for locals "insn", "next",
4455 "label".
4456
4457 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4458 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4459 "rtx else_first_tail", to reflect the basic-block.h changes above.
4460
4461 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4462
4463 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4464 rtx_insn *.
4465 (purge_dead_tablejump_edges): Likewise.
4466 (find_bb_boundaries): Likewise for locals "insn", "end",
4467 "flow_transfer_insn".
4468
4469 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4470
4471 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4472 "ins" and "prev" from rtx to rtx_insn *.
4473
4474 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4475
4476 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4477 rtx_insn *.
4478 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4479 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4480 "scan_start".
4481 (load_register_parameters): Likewise for local "before_arg".
4482 (check_sibcall_argument_overlap): Likewise for param "insn".
4483 (expand_call): Likewise for locals "normal_call_insns",
4484 "tail_call_insns", "insns", "before_call", "after_args",
4485 "before_arg", "last", "prev". Strengthen one of the "last" from
4486 rtx to rtx_call_insn *.
4487 (fixup_tail_calls): Strengthen local "insn" from rtx to
4488 rtx_insn *.
4489 (emit_library_call_value_1): Likewise for locals "before_call" and
4490 "last".
4491
4492 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4493
4494 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4495 and "last" from rtx to rtx_insn *.
4496 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4497 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4498 rtx_call_insn *.
4499 (expand_errno_check): Strengthen local "lab" from rtx to
4500 rtx_code_label *.
4501 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4502 rtx_insn *.
4503 (expand_builtin_mathfn_2): Likewise.
4504 (expand_builtin_mathfn_ternary): Likewise.
4505 (expand_builtin_mathfn_3): Likewise.
4506 (expand_builtin_interclass_mathfn): Likewise for local "last".
4507 (expand_builtin_int_roundingfn): Likewise for local "insns".
4508 (expand_builtin_int_roundingfn_2): Likewise.
4509 (expand_builtin_strlen): Likewise for local "before_strlen".
4510 (expand_builtin_strncmp): Likewise for local "seq".
4511 (expand_builtin_signbit): Likewise for local "last".
4512 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4513 from rtx to rtx_code_label *.
4514 (expand_stack_restore): Strengthen local "prev" from rtx to
4515 rtx_insn *.
4516
4517 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4518
4519 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4520 to rtx_insn *.
4521 (struct btr_def_s): Likewise.
4522 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4523 const rtx_insn *.
4524 (add_btr_def): Likewise.
4525 (new_btr_user): Likewise.
4526 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4527 rtx to rtx_insn *.
4528 (link_btr_uses): Likewise.
4529 (move_btr_def): Likewise for locals "insp", "old_insn",
4530 "new_insn". Add checked cast to rtx_insn * for now on result of
4531 gen_move_insn.
4532 (can_move_up): Strengthen param "insn" from const_rtx to
4533 const rtx_insn *.
4534
4535 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4536
4537 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4538 rtx_insn *.
4539 (get_uncond_jump_length): Likewise for locals "label", "jump".
4540 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4541 "jump", "insn".
4542 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4543 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4544 (find_jump_block): Likewise for local "insn".
4545 (fix_crossing_conditional_branches): Likewise for locals
4546 "old_jump", "new_jump".
4547 (fix_crossing_unconditional_branches): Likewise for locals
4548 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4549 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4550
4551 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4552
4553 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4554 rtx to rtx_insn *.
4555 (struct mem_insn): Likewise for field "insn".
4556 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4557 (reg_next_inc_use): Likewise.
4558 (reg_next_def): Likewise.
4559 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4560 from rtx to rtx_insn *.
4561 (move_insn_before): Likewise for param "next_insn" and local "insns".
4562 (attempt_change): Likewise for local "mov_insn".
4563 (try_merge): Likewise for param "last_insn".
4564 (get_next_ref): Likewise for return type and local "insn".
4565 Strengthen param "next_array" from rtx * to rtx_insn **.
4566 (parse_add_or_inc): Strengthen param "insn" from rtx to
4567 rtx_insn *.
4568 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4569 the latter).
4570 (merge_in_block): Likewise for locals "insn", "curr",
4571 "other_insn".
4572 (pass_inc_dec::execute): Update allocations of the arrays to
4573 reflect the stronger types.
4574
4575 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4576
4577 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4578 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4579 from rtx to rtx_code_label *.
4580
4581 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4582
4583 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4584 to rtx_insn *.
4585
4586 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4587
4588 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4589 generated a warning and prevented bootstrapping the compiler.
4590
4591 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4592
4593 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4594 rtx_insn *.
4595
4596 * jump.c (delete_related_insns): Likewise, also for locals "next"
4597 and "prev".
4598
4599 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4600
4601 * genautomata.c (output_internal_insn_latency_func): When writing
4602 the function "internal_insn_latency" to insn-automata.c,
4603 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4604 allowing the optional guard function of (define_bypass) clauses to
4605 expect a pair of rtx_insn *, rather than a pair of rtx.
4606 (output_insn_latency_func): When writing the function
4607 "insn_latency", add an "uncast_" prefix to params "insn" and
4608 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4609 using checked casts from the params, thus enabling the above
4610 change to the generated "internal_insn_latency" function.
4611
4612 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4613
4614 PR tree-optimization/62091
4615 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4616 handle correctly arrays.
4617 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4618 inheritance binfos.
4619 (record_known_type): Walk into inner type.
4620 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4621 condition on no type changes.
4622
4623 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4624
4625 * genattrtab.c (write_attr_get): Within the generated get_attr_
4626 functions, rename param "insn" to "uncast_insn" and reintroduce
4627 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4628 is an rtx_insn * within insn-attrtab.c
4629
4630 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4631
4632 * output.h (peephole): Strengthen return type from rtx to
4633 rtx_insn *.
4634 * rtl.h (delete_for_peephole): Likewise for both params.
4635 * genpeep.c (main): In generated "peephole" function, strengthen
4636 return type and local "insn" from rtx to rtx_insn *. For now,
4637 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4638 rtx_insn *, with a checked cast.
4639 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4640 locals "insn", "next", "prev" from rtx to rtx_insn *.
4641
4642 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4643
4644 PR tree-optimization/62112
4645 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4646 * gimple-iterator.h (gsi_replace): Return bool.
4647 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4648 moved from ref_may_alias_global_p.
4649 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4650 New overloads.
4651 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4652 (stmt_kills_ref_p_1): Rename...
4653 (stmt_kills_ref_p): ... to this.
4654 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4655 stmt_kills_ref_p): Declare.
4656 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4657 Move the self-assignment case...
4658 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4659
4660 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4661
4662 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4663
4664 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4665 "after". For now, don't strengthen param "trial", which requires
4666 adding checked casts when returning it.
4667
4668 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4669
4670 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4671 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4672 "var_location" hook from rtx to rtx_insn *.
4673 (debug_nothing_rtx): Delete in favor of...
4674 (debug_nothing_rtx_code_label): New prototype.
4675 (debug_nothing_rtx_rtx): Delete unused prototype.
4676 (debug_nothing_rtx_insn): New prototype.
4677
4678 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4679 invoking debug_hooks->var_location (in two places, one in a NOTE
4680 case of a switch statement, the other guarded by a CALL_P
4681 conditional. Add checked cast to rtx_code_label * when invoking
4682 debug_hooks->label (within CODE_LABEL case of switch statement).
4683
4684 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4685 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4686 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4687 (xcoff_debug_hooks): Likewise.
4688 * debug.c (do_nothing_debug_hooks): Likewise.
4689 (debug_nothing_rtx): Delete in favor of...
4690 (debug_nothing_rtx_insn): New function.
4691 (debug_nothing_rtx_rtx): Delete unused function.
4692 (debug_nothing_rtx_code_label): New function.
4693 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4694 debug_nothing_rtx to debug_nothing_rtx_code_label.
4695 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4696 to rtx_insn *.
4697 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4698 debug_nothing_rtx to debug_nothing_rtx_insn.
4699 (sdbout_label): Strengthen param "insn" from rtx to
4700 rtx_code_label *.
4701 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4702 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4703 "var_location" hook from debug_nothing_rtx to
4704 debug_nothing_rtx_insn.
4705
4706 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4707
4708 * recog.h (insn_output_fn): Update this function typedef to match
4709 the changes below to the generated output functions, strengthening
4710 the 2nd param from rtx to rtx_insn *.
4711
4712 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4713 insn when invoking an output function, to match the new signature
4714 of insn_output_fn with a stronger second param.
4715
4716 * genconditions.c (write_header): In the generated code for
4717 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4718 to match the other changes in this patch.
4719
4720 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4721 the generated "gen_" functions from rtx to rtx_insn * within their
4722 implementations.
4723
4724 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4725 the subfunctions within the generated "recog_", "split", "peephole2"
4726 function trees from rtx to rtx_insn *. For now, the top-level
4727 generated functions ("recog", "split", "peephole2") continue to
4728 take a plain rtx for "insn", to avoid introducing dependencies on
4729 other patches. Rename this 2nd param from "insn" to
4730 "uncast_insn", and reintroduce "insn" as a local variable of type
4731 rtx_insn *, initialized at the top of the generated function with
4732 a checked cast on "uncast_insn".
4733 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4734 the generated "gen_" functions from rtx to rtx_insn * within their
4735 prototypes.
4736
4737 * genoutput.c (process_template): Strengthen the 2nd param within
4738 the generated "output_" functions "insn" from rtx to rtx_insn *.
4739
4740 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4741
4742 * tree-profile.c (tree_profiling): Skip external functions
4743 when doing coverage instrumentation.
4744 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4745
4746 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4747
4748 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4749 (vec_mergee): Likewise.
4750 (vec_mergeo): Likewise.
4751 (vec_cntlz): Likewise.
4752 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4753 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4754 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4755 VMRGEW, and VMRGOW.
4756 * doc/extend.texi: Document various forms of vec_cpsgn,
4757 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4758 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4759 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4760 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4761 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4762
4763 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4764
4765 * config/rs6000/rs6000.c (context.h): New include.
4766 (tree-pass.h): Likewise.
4767 (make_pass_analyze_swaps): New decl.
4768 (rs6000_option_override): Register pass_analyze_swaps.
4769 (swap_web_entry): New subsclass of web_entry_base (df.h).
4770 (special_handling_values): New enum.
4771 (union_defs): New function.
4772 (union_uses): Likewise.
4773 (insn_is_load_p): Likewise.
4774 (insn_is_store_p): Likewise.
4775 (insn_is_swap_p): Likewise.
4776 (rtx_is_swappable_p): Likewise.
4777 (insn_is_swappable_p): Likewise.
4778 (chain_purpose): New enum.
4779 (chain_contains_only_swaps): New function.
4780 (mark_swaps_for_removal): Likewise.
4781 (swap_const_vector_halves): Likewise.
4782 (adjust_subreg_index): Likewise.
4783 (permute_load): Likewise.
4784 (permute_store): Likewise.
4785 (handle_special_swappables): Likewise.
4786 (replace_swap_with_copy): Likewise.
4787 (dump_swap_insn_table): Likewise.
4788 (rs6000_analyze_swaps): Likewise.
4789 (pass_data_analyze_swaps): New pass_data.
4790 (pass_analyze_swaps): New rtl_opt_pass.
4791 (make_pass_analyze_swaps): New function.
4792 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4793
4794 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4795
4796 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4797 type from rtx to rtx_insn *.
4798 (create_copy_of_insn_rtx): Likewise.
4799 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4800 (create_copy_of_insn_rtx): Likewise, also for local "res".
4801
4802 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4803
4804 * rtl.h (find_first_parameter_load): Strengthen return type from
4805 rtx to rtx_insn *.
4806 * rtlanal.c (find_first_parameter_load): Strengthen return type
4807 from rtx to rtx_insn *. Add checked cast for now, to postpone
4808 strengthening the params.
4809
4810 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4811
4812 PR fortran/44054
4813 * diagnostic.c: Set default caret.
4814 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4815 line is needed.
4816 * diagnostic.h (struct diagnostic_context):
4817
4818 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4819
4820 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4821 (sel_bb_head): Strengthen return type insn_t (currently just an
4822 rtx) to rtx_insn *.
4823 (sel_bb_end): Likewise.
4824
4825 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4826 (sel_bb_head): Strengthen return type and local "head" from
4827 insn_t (currently just an rtx) to rtx_insn *.
4828 (sel_bb_end): Likewise for return type.
4829 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4830 working with insn.
4831
4832 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4833
4834 * basic-block.h (get_last_bb_insn): Strengthen return type from
4835 rtx to rtx_insn *.
4836 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4837 end".
4838
4839 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4840
4841 PR fortran/44054
4842 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4843 to here ...
4844 (diagnostic_report_diagnostic): ... from here.
4845 * toplev.c (general_init): Move code to c-family.
4846
4847 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4848
4849 * df.h (web_entry_base): Replace existing struct web_entry with a
4850 new class web_entry_base with only the predecessor member.
4851 (unionfind_root): Remove declaration and move to class member.
4852 (unionfind_union): Remove declaration and move to friend
4853 function.
4854 (union_defs): Remove declaration.
4855 * web.c (web_entry_base::unionfind_root): Modify to be member
4856 function and adjust accessors.
4857 (unionfind_union): Modify to be friend function and adjust
4858 accessors.
4859 (web_entry): New subclass of web_entry_base containing the reg
4860 member.
4861 (union_match_dups): Modify for struct -> class changes.
4862 (union_defs): Likewise.
4863 (entry_register): Likewise.
4864 (pass_web::execute): Likewise.
4865
4866 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4867
4868 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4869 builtin define __VEC_ELEMENT_REG_ORDER__.
4870
4871 2014-08-20 Martin Jambor <mjambor@suse.cz>
4872 Wei Mi <wmi@google.com>
4873
4874 PR ipa/60449
4875 PR middle-end/61776
4876 * tree-ssa-operands.c (update_stmt_operands): Remove
4877 MODIFIED_NORETURN_CALLS.
4878 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4879 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4880 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4881 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4882 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4883 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4884 (gimple_call_set_ctrl_altering): New func.
4885 (gimple_call_ctrl_altering_p): Ditto.
4886 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4887 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4888 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4889 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4890 remove MODIFIED_NORETURN_CALLS.
4891
4892 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4893
4894 * coverage.c (coverage_compute_profile_id): Return non-0;
4895 also handle symbols with unique name.
4896 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4897
4898 2014-08-20 Steve Ellcey <sellcey@mips.com>
4899
4900 PR middle-end/49191
4901 * doc/sourcebuild.texi (non_strict_align): New.
4902
4903 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4904
4905 * cgraphunit.c (ipa_passes, compile): Reshedule
4906 symtab_remove_unreachable_nodes passes; update comments.
4907 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4908 TODO_remove_functions before the pass; the functions ought to be
4909 already removed.
4910 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4911 TODO_remove_functions.
4912 * passes.c (pass_data_early_local_passes): Do not schedule function
4913 removal.
4914 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4915
4916 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4917
4918 PR c/59304
4919 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4920 before setting the option.
4921 * diagnostic.c (diagnostic_classify_diagnostic): Record
4922 command-line status.
4923
4924 2014-08-20 Richard Biener <rguenther@suse.de>
4925
4926 PR lto/62190
4927 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4928 to build uint{16,32,64}_type_node.
4929
4930 2014-08-20 Terry Guo <terry.guo@arm.com>
4931
4932 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4933 with immediate_operand.
4934
4935 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4936
4937 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4938 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4939 NULL.
4940
4941 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4942
4943 PR preprocessor/51303
4944 * incpath.c (remove_duplicates): Use cpp_warning.
4945
4946 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4947
4948 PR c/60975
4949 PR c/53063
4950 * doc/options.texi (CPP): Document it.
4951 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4952 * optc-gen.awk: Handle CPP.
4953 * opth-gen.awk: Likewise.
4954
4955 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4956
4957 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4958 rtx_insn *.
4959 (duplicate_insn_chain): Likewise.
4960 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4961 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4962 checked cast for now (until we can strengthen the params in the
4963 same way).
4964 (duplicate_insn_chain): Likewise.
4965
4966 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4967
4968 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4969 rtx_insn *.
4970 (prev_cc0_setter): Likewise.
4971
4972 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4973 rtx_insn *, adding checked casts for now as necessary.
4974 (prev_cc0_setter): Likewise.
4975
4976 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4977
4978 * expr.h (emit_move_insn): Strengthen return type from rtx to
4979 rtx_insn *.
4980 (emit_move_insn_1): Likewise.
4981 (emit_move_complex_push): Likewise.
4982 (emit_move_complex_parts): Likewise.
4983
4984 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4985 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4986 with insns.
4987 (emit_move_complex_push): Strengthen return type from rtx to
4988 rtx_insn *.
4989 (emit_move_complex): Likewise, also for local "ret".
4990 (emit_move_ccmode): Likewise.
4991 (emit_move_multi_word): Likewise for return type and locals
4992 "last_insn", "seq".
4993 (emit_move_insn_1): Likewise for return type and locals "result",
4994 "ret".
4995 (emit_move_insn): Likewise for return type and local "last_insn".
4996 (compress_float_constant): Likewise.
4997
4998 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4999
5000 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5001 from rtx to rtx_insn *.
5002
5003 * rtl.h (emit_insn_before): Likewise.
5004 (emit_insn_before_noloc): Likewise.
5005 (emit_insn_before_setloc): Likewise.
5006 (emit_jump_insn_before): Likewise.
5007 (emit_jump_insn_before_noloc): Likewise.
5008 (emit_jump_insn_before_setloc): Likewise.
5009 (emit_call_insn_before): Likewise.
5010 (emit_call_insn_before_noloc): Likewise.
5011 (emit_call_insn_before_setloc): Likewise.
5012 (emit_debug_insn_before): Likewise.
5013 (emit_debug_insn_before_noloc): Likewise.
5014 (emit_debug_insn_before_setloc): Likewise.
5015 (emit_label_before): Likewise.
5016 (emit_insn_after): Likewise.
5017 (emit_insn_after_noloc): Likewise.
5018 (emit_insn_after_setloc): Likewise.
5019 (emit_jump_insn_after): Likewise.
5020 (emit_jump_insn_after_noloc): Likewise.
5021 (emit_jump_insn_after_setloc): Likewise.
5022 (emit_call_insn_after): Likewise.
5023 (emit_call_insn_after_noloc): Likewise.
5024 (emit_call_insn_after_setloc): Likewise.
5025 (emit_debug_insn_after): Likewise.
5026 (emit_debug_insn_after_noloc): Likewise.
5027 (emit_debug_insn_after_setloc): Likewise.
5028 (emit_label_after): Likewise.
5029 (emit_insn): Likewise.
5030 (emit_debug_insn): Likewise.
5031 (emit_jump_insn): Likewise.
5032 (emit_call_insn): Likewise.
5033 (emit_label): Likewise.
5034 (gen_clobber): Likewise.
5035 (emit_clobber): Likewise.
5036 (gen_use): Likewise.
5037 (emit_use): Likewise.
5038 (emit): Likewise.
5039
5040 (emit_barrier_before): Strengthen return type from rtx to
5041 rtx_barrier *.
5042 (emit_barrier_after): Likewise.
5043 (emit_barrier): Likewise.
5044
5045 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5046 from rtx to rtx_insn *. Add checked casts for now when converting
5047 "last" from rtx to rtx_insn *.
5048 (emit_insn_before_noloc): Likewise for return type.
5049 (emit_jump_insn_before_noloc): Likewise.
5050 (emit_call_insn_before_noloc): Likewise.
5051 (emit_debug_insn_before_noloc): Likewise.
5052 (emit_barrier_before): Strengthen return type and local "insn"
5053 from rtx to rtx_barrier *.
5054 (emit_label_before): Strengthen return type from rtx to
5055 rtx_insn *. Add checked cast for now when returning param
5056 (emit_pattern_after_noloc): Strengthen return type from rtx to
5057 rtx_insn *. Add checked casts for now when converting "last" from
5058 rtx to rtx_insn *.
5059 (emit_insn_after_noloc): Strengthen return type from rtx to
5060 rtx_insn *.
5061 (emit_jump_insn_after_noloc): Likewise.
5062 (emit_call_insn_after_noloc): Likewise.
5063 (emit_debug_insn_after_noloc): Likewise.
5064 (emit_barrier_after): Strengthen return type from rtx to
5065 rtx_barrier *.
5066 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5067 Add checked cast for now when converting "label" from rtx to
5068 rtx_insn *.
5069 (emit_pattern_after_setloc): Strengthen return type from rtx to
5070 rtx_insn *. Add checked casts for now when converting "last" from
5071 rtx to rtx_insn *.
5072 (emit_pattern_after): Strengthen return type from rtx to
5073 rtx_insn *.
5074 (emit_insn_after_setloc): Likewise.
5075 (emit_insn_after): Likewise.
5076 (emit_jump_insn_after_setloc): Likewise.
5077 (emit_jump_insn_after): Likewise.
5078 (emit_call_insn_after_setloc): Likewise.
5079 (emit_call_insn_after): Likewise.
5080 (emit_debug_insn_after_setloc): Likewise.
5081 (emit_debug_insn_after): Likewise.
5082 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5083 when converting "last" from rtx to rtx_insn *.
5084 (emit_pattern_before): Strengthen return type from rtx to
5085 rtx_insn *.
5086 (emit_insn_before_setloc): Likewise.
5087 (emit_insn_before): Likewise.
5088 (emit_jump_insn_before_setloc): Likewise.
5089 (emit_jump_insn_before): Likewise.
5090 (emit_call_insn_before_setloc): Likewise.
5091 (emit_call_insn_before): Likewise.
5092 (emit_debug_insn_before_setloc): Likewise.
5093 (emit_debug_insn_before): Likewise.
5094 (emit_insn): Strengthen return type and locals "last", "insn",
5095 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5096 within cases where we know we have an insn.
5097 (emit_debug_insn): Likewise.
5098 (emit_jump_insn): Likewise.
5099 (emit_call_insn): Strengthen return type and local "insn" from rtx
5100 to rtx_insn *.
5101 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5102 a checked cast to rtx_insn * for now on "label".
5103 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5104 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5105 (emit_use): Likewise.
5106 (gen_use): Likewise, also for local "seq".
5107 (emit): Likewise for return type and local "insn".
5108 (rtx_insn): Likewise for return type and local "new_rtx".
5109
5110 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5111 from rtx to rtx_barrier *.
5112
5113 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5114 changed return type from rtx to rtx_insn *, we must update
5115 "emit_fn" type, and this in turn means updating...
5116 (frame_insn): ...this. Strengthen return type from rtx to
5117 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5118
5119 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5120
5121 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5122 rtx to rtx_jump_table_data *. Also for local.
5123 * rtl.h (emit_jump_table_data): Likewise.
5124
5125 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5126
5127 * basic-block.h (create_basic_block_structure): Strengthen third
5128 param "bb_note" from rtx to rtx_note *.
5129 * rtl.h (emit_note_before): Strengthen return type from rtx to
5130 rtx_note *.
5131 (emit_note_after): Likewise.
5132 (emit_note): Likewise.
5133 (emit_note_copy): Likewise. Also, strengthen param similarly.
5134 * function.h (struct rtl_data): Strengthen field
5135 "x_stack_check_probe_note" from rtx to rtx_note *.
5136
5137 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5138 from rtx to rtx_note *.
5139 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5140 "bb_note" from rtx to rtx_note *.
5141 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5142 when calling emit_note_copy.
5143 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5144 rtx_note *.
5145 (emit_note_after): Likewise.
5146 (emit_note_before): Likewise.
5147 (emit_note_copy): Likewise. Also, strengthen param similarly.
5148 (emit_note): Likewise.
5149 * except.c (emit_note_eh_region_end): Likewise for return type.
5150 Strengthen local "next" from rtx to rtx_insn *.
5151 (convert_to_eh_region_ranges): Strengthen local "note"
5152 from rtx to rtx_note *.
5153 * final.c (change_scope): Likewise.
5154 (reemit_insn_block_notes): Likewise, for both locals named "note".
5155 Also, strengthen local "insn" from rtx to rtx_insn *.
5156 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5157 rtx to rtx_note *.
5158 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5159 strengthen local "seq" from rtx to rtx_insn *.
5160 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5161 to rtx_note *.
5162 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5163 vec<rtx_note *>.
5164 (get_bb_note_from_pool): Strengthen return type from rtx to
5165 rtx_note *.
5166 (sel_create_basic_block): Strengthen local "new_bb_note" from
5167 insn_t to rtx_note *.
5168 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5169 "note" from rtx to rtx_note *.
5170 (emit_notes_in_bb): Likewise.
5171
5172 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5173
5174 * function.h (struct rtl_data): Strengthen field
5175 "x_parm_birth_insn" from rtx to rtx_insn *.
5176 * function.c (struct assign_parm_data_all): Strengthen fields
5177 "first_conversion_insn" and "last_conversion_insn" from rtx to
5178 rtx_insn *.
5179
5180 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5181
5182 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5183 to rtx_insn *; also for local "var_end_seq".
5184 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5185 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5186 "insn".
5187 (expand_gimple_cond): Likewise for locals "last2" and "last".
5188 (mark_transaction_restart_calls): Likewise for local "insn".
5189 (expand_gimple_stmt): Likewise for return type and locals "last"
5190 and "insn".
5191 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5192 (avoid_complex_debug_insns): Likewise for param "insn".
5193 (expand_debug_locations): Likewise for locals "insn", "last",
5194 "prev_insn" and "insn2".
5195 (expand_gimple_basic_block): Likewise for local "last".
5196 (construct_exit_block): Likewise for locals "head", "end",
5197 "orig_end".
5198 (pass_expand::execute): Likewise for locals "var_seq",
5199 "var_ret_seq", "next".
5200
5201 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5202
5203 * asan.h (asan_emit_stack_protection): Strengthen return type from
5204 rtx to rtx_insn *.
5205 * asan.c (asan_emit_stack_protection): Likewise. Add local
5206 "insns" to hold the return value.
5207
5208 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5209
5210 * basic-block.h (bb_note): Strengthen return type from rtx to
5211 rtx_note *.
5212 * sched-int.h (bb_note): Likewise.
5213 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5214
5215 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5216
5217 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5218 rtx_insn *.
5219
5220 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5221 "insn" from rtx to rtx_insn *.
5222 (make_debug_insn_raw): Strengthen return type from rtx to
5223 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5224 (make_jump_insn_raw): Strengthen return type from rtx to
5225 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5226 (make_call_insn_raw): Strengthen return type from rtx to
5227 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5228 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5229 callback from rtx to rtx_insn *; likewise for local "insn" and
5230 "next", adding a checked cast to rtx_insn in the relevant cases of
5231 the switch statement.
5232 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5233 callback from rtx to rtx_insn *.
5234 (emit_pattern_after_setloc): Likewise.
5235 (emit_pattern_after): Likewise.
5236 (emit_pattern_before_setloc): Likewise.
5237 (emit_pattern_before): Likewise.
5238
5239 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5240
5241 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5242 rtx_call_insn *.
5243 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5244 accepting an rtx_insn *.
5245 (last_call_insn): Strengthen return type from rtx to
5246 rtx_call_insn *.
5247
5248 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5249
5250 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5251 "insns" from rtx to rtx_insn *.
5252 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5253 locals "insn" and "prev".
5254
5255 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5256
5257 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5258 rtx_jump_table_data **.
5259
5260 * cfgbuild.c (make_edges): Introduce local "table", using it in
5261 place of "tmp" for jump table data.
5262 (find_bb_boundaries): Strengthen local "table" from rtx to
5263 rtx_jump_table_data *.
5264 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5265 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5266 (try_crossjump_to_edge): Likewise.
5267 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5268 "table".
5269 (patch_jump_insn): Introduce local "table", using it in place of
5270 "tmp" for jump table data.
5271 (force_nonfallthru_and_redirect): Introduce local "table", so that
5272 call to tablejump_p can receive an rtx_jump_table_data **. Update
5273 logic around the call to overwrite "note" appropriately if
5274 tablejump_p returns non-zero.
5275 (get_last_bb_insn): Introduce local "table", using it in place of
5276 "tmp" for jump table data.
5277 * dwarf2cfi.c (create_trace_edges): Likewise.
5278
5279 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5280 from rtx to rtx_jump_table_data *.
5281 (create_fix_barrier): Strengthen local "tmp" from rtx to
5282 rtx_jump_table_data *.
5283 (arm_reorg): Likewise for local "table".
5284
5285 * config/s390/s390.c (s390_chunkify_start): Likewise.
5286
5287 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5288
5289 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5290 rtx to rtx_jump_table_data *.
5291
5292 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5293 rtx_jump_table_data **. Add a checked cast when writing through
5294 the pointer: we know there that local "table" is non-NULL and that
5295 JUMP_TABLE_DATA_P (table) holds.
5296 (label_is_jump_target_p): Introduce local "table", using it in
5297 place of "tmp" for jump table data.
5298
5299 2014-08-19 Marek Polacek <polacek@redhat.com>
5300
5301 PR c++/62153
5302 * doc/invoke.texi: Document -Wbool-compare.
5303
5304 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5305
5306 * rtl.h (entry_of_function): Strengthen return type from rtx to
5307 rtx_insn *.
5308 * cfgrtl.c (entry_of_function): Likewise.
5309
5310 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5311
5312 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5313 rtx_insn *, adding a checked cast for now.
5314 (get_last_insn): Likewise.
5315
5316 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5317
5318 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5319 rtx_code_label *.
5320
5321 * emit-rtl.c (gen_label_rtx): Likewise.
5322
5323 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5324
5325 * rtl.h (previous_insn): Strengthen return type from rtx to
5326 rtx_insn *.
5327 (next_insn): Likewise.
5328 (prev_nonnote_insn): Likewise.
5329 (prev_nonnote_insn_bb): Likewise.
5330 (next_nonnote_insn): Likewise.
5331 (next_nonnote_insn_bb): Likewise.
5332 (prev_nondebug_insn): Likewise.
5333 (next_nondebug_insn): Likewise.
5334 (prev_nonnote_nondebug_insn): Likewise.
5335 (next_nonnote_nondebug_insn): Likewise.
5336 (prev_real_insn): Likewise.
5337 (next_real_insn): Likewise.
5338 (prev_active_insn): Likewise.
5339 (next_active_insn): Likewise.
5340
5341 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5342 rtx_insn *, adding a checked cast.
5343 (previous_insn): Likewise.
5344 (next_nonnote_insn): Likewise.
5345 (next_nonnote_insn_bb): Likewise.
5346 (prev_nonnote_insn): Likewise.
5347 (prev_nonnote_insn_bb): Likewise.
5348 (next_nondebug_insn): Likewise.
5349 (prev_nondebug_insn): Likewise.
5350 (next_nonnote_nondebug_insn): Likewise.
5351 (prev_nonnote_nondebug_insn): Likewise.
5352 (next_real_insn): Likewise.
5353 (prev_real_insn): Likewise.
5354 (next_active_insn): Likewise.
5355 (prev_active_insn): Likewise.
5356
5357 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5358 param "stepfunc" so that it returns an rtx_insn * rather than an
5359 rtx, to track the change to prev_nonnote_insn_bb, which is the
5360 only function this is called with.
5361 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5362
5363 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5364
5365 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5366 assert.
5367
5368 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5369
5370 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5371 (class rtx_nonjump_insn): Likewise.
5372 (class rtx_jump_insn): Likewise.
5373 (class rtx_call_insn): Likewise.
5374 (class rtx_jump_table_data): Likewise.
5375 (class rtx_barrier): Likewise.
5376 (class rtx_code_label): Likewise.
5377 (class rtx_note): Likewise.
5378
5379 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5380 adding the invariant DEBUG_INSN_P (X).
5381 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5382 the invariant NONJUMP_INSN_P (X).
5383 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5384 the invariant JUMP_P (X).
5385 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5386 the invariant CALL_P (X).
5387 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5388 invariant JUMP_TABLE_DATA_P (X).
5389 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5390 invariant BARRIER_P (X).
5391 (class rtx_code_label): New, a subclass of rtx_insn, adding
5392 the invariant LABEL_P (X).
5393 (class rtx_note): New, a subclass of rtx_insn, adding
5394 the invariant NOTE_P(X).
5395 (is_a_helper <rtx_debug_insn *>::test): New.
5396 (is_a_helper <rtx_nonjump_insn *>::test): New.
5397 (is_a_helper <rtx_jump_insn *>::test): New.
5398 (is_a_helper <rtx_call_insn *>::test): New.
5399 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5400 overloaded for both rtx and rtx_insn *.
5401 (is_a_helper <rtx_barrier *>::test): New.
5402 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5403 for both rtx and rtx_insn *.
5404 (is_a_helper <rtx_note *>::test): New.
5405
5406 2014-08-19 Marek Polacek <polacek@redhat.com>
5407
5408 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5409 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5410 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5411 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5412
5413 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5414
5415 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5416 rtx_insn *. To help with transition, for now, convert from an
5417 access macro into a pair of functions: BND_TO, returning an
5418 rtx_insn *, and...
5419 (SET_BND_TO): New function, for use where BND_TO is used as an
5420 lvalue.
5421
5422 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5423 SET_BND_TO.
5424 (BND_TO): New function, adding a checked cast.
5425 (SET_BND_TO): New function.
5426
5427 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5428 SET_BND_TO.
5429 (compute_av_set_on_boundaries): Likewise.
5430
5431 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5432
5433 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5434 destination if it is used in source.
5435 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5436 (*popcount<mode>2_falsedep_1): Likewise.
5437
5438 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5439
5440 PR other/62168
5441 * configure.ac: Set install_gold_as_default to no first.
5442 * configure: Regenerated.
5443
5444 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5445
5446 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5447 "note_list" field will eventually be an rtx_insn *. To help with
5448 transition, for now, convert from an access macro into a pair of
5449 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5450 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5451 used as an lvalue.
5452
5453 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5454 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5455
5456 * sel-sched-ir.c (init_bb): Likewise.
5457 (sel_restore_notes): Likewise.
5458 (move_bb_info): Likewise.
5459 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5460 (SET_BB_NOTE_LIST): New function.
5461
5462 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5463
5464 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5465 field will eventually be an rtx_insn *. To help with transition,
5466 for now, convert from an access macro into a pair of functions:
5467 VINSN_INSN_RTX, returning an rtx_insn *, and...
5468 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5469 is used as an lvalue.
5470
5471 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5472 SET_VINSN_INSN_RTX where it's used as an lvalue.
5473 (VINSN_INSN_RTX): New function.
5474 (SET_VINSN_INSN_RTX): New function.
5475
5476 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5477
5478 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5479 eventually be rtx_insn *, but to help with transition, for now,
5480 convert from an access macro into a pair of functions: DEP_PRO
5481 returning an rtx_insn * and...
5482 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5483 lvalue, returning an rtx&.
5484 (DEP_CON): Analogous changes to DEP_PRO above.
5485 (SET_DEP_CON): Likewise.
5486
5487 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5488 an lvalue to SET_DEP_CON.
5489 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5490 (sd_copy_back_deps): Likewise for DEP_CON.
5491 (DEP_PRO): New function, adding a checked cast for now.
5492 (DEP_CON): Likewise.
5493 (SET_DEP_PRO): New function.
5494 (SET_DEP_CON): Likewise.
5495
5496 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5497
5498 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5499 (extra_options): Add i386/cygwin.opt.
5500 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5501 (CPP_SPEC): Accept -pthread.
5502 (LINK_SPEC): Ditto.
5503 (GOMP_SELF_SPECS): Update comment.
5504 * config/i386/cygwin.opt: New file for -pthread flag.
5505
5506 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5507
5508 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5509 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5510 that we can return an rtx_insn *.
5511
5512 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5513
5514 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5515 when building executables, not DLLs. Add --large-address-aware
5516 under the same conditions.
5517 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5518 when building executables, not DLLs. Add --large-address-aware
5519 under the same conditions when using -m32.
5520
5521 * config/i386/cygwin-stdint.h: Throughout, make type
5522 definitions dependent on target architecture, not host.
5523
5524 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5525
5526 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5527 the return type from rtx to rtx_insn *, which will enable various
5528 conversions in followup patches. For now this is is done by a
5529 checked cast.
5530 (NEXT_INSN): Likewise.
5531 (SET_PREV_INSN): Convert to an inline function. This is intended
5532 for use as an lvalue, and so returns an rtx& to allow in-place
5533 modification.
5534 (SET_NEXT_INSN): Likewise.
5535
5536 2014-07-08 Mark Wielaard <mjw@redhat.com>
5537
5538 PR debug/59051
5539 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5540
5541 2014-08-19 Marek Polacek <polacek@redhat.com>
5542
5543 PR c/61271
5544 * cgraphunit.c (handle_alias_pairs): Fix condition.
5545
5546 2014-08-19 Richard Biener <rguenther@suse.de>
5547
5548 * gimple-fold.c (fold_gimple_assign): Properly build a
5549 null-pointer constant when devirtualizing addresses.
5550
5551 2014-07-07 Mark Wielaard <mjw@redhat.com>
5552
5553 * dwarf2out.c (decl_quals): New function.
5554 (modified_type_die): Take one cv_quals argument instead of two,
5555 one for const and one for volatile.
5556 (add_type_attribute): Likewise.
5557 (generic_parameter_die): Call add_type_attribute with one modifier
5558 argument.
5559 (base_type_for_mode): Likewise.
5560 (add_bounds_info): Likewise.
5561 (add_subscript_info): Likewise.
5562 (gen_array_type_die): Likewise.
5563 (gen_descr_array_type_die): Likewise.
5564 (gen_entry_point_die): Likewise.
5565 (gen_enumeration_type_die): Likewise.
5566 (gen_formal_parameter_die): Likewise.
5567 (gen_subprogram_die): Likewise.
5568 (gen_variable_die): Likewise.
5569 (gen_const_die): Likewise.
5570 (gen_field_die): Likewise.
5571 (gen_pointer_type_die): Likewise.
5572 (gen_reference_type_die): Likewise.
5573 (gen_ptr_to_mbr_type_die): Likewise.
5574 (gen_inheritance_die): Likewise.
5575 (gen_subroutine_type_die): Likewise.
5576 (gen_typedef_die): Likewise.
5577 (force_type_die): Likewise.
5578
5579 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5580
5581 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5582 if unset.
5583 * configure: Regenerate.
5584
5585 2014-08-19 Richard Biener <rguenther@suse.de>
5586
5587 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5588 DECL_EXTERNALs in BLOCKs as non-references.
5589 * tree-streamer-out.c (streamer_write_chain): Likewise.
5590
5591 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5592 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5593 Anna Tikhonova <anna.tikhonova@intel.com>
5594 Ilya Tocar <ilya.tocar@intel.com>
5595 Andrey Turetskiy <andrey.turetskiy@intel.com>
5596 Ilya Verbin <ilya.verbin@intel.com>
5597 Kirill Yukhin <kirill.yukhin@intel.com>
5598 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5599
5600 * config/i386/sse.md
5601 (define_mode_iterator VI48_AVX512F): Delete.
5602 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5603 (define_mode_iterator VI2_AVX512VL): Ditto.
5604 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5605 Delete.
5606 (define_insn
5607 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5608 New.
5609 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5610 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5611 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5612 with VI48_AVX512F_AVX512VL): New.
5613 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5614 with VI2_AVX512VL): Ditto.
5615
5616 2014-08-19 Marek Polacek <polacek@redhat.com>
5617
5618 * doc/invoke.texi: Document -Wc99-c11-compat.
5619
5620 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5621
5622 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5623 for rvalues, and...
5624 (SET_PREV_INSN): New macro, for use as an lvalue.
5625 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5626
5627 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5628 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5629 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5630 (fixup_abnormal_edges): Likewise.
5631 (unlink_insn_chain): Likewise.
5632 (fixup_reorder_chain): Likewise.
5633 (cfg_layout_delete_block): Likewise.
5634 (cfg_layout_merge_blocks): Likewise.
5635 * combine.c (update_cfg_for_uncondjump): Likewise.
5636 * emit-rtl.c (link_insn_into_chain): Likewise.
5637 (remove_insn): Likewise.
5638 (delete_insns_since): Likewise.
5639 (reorder_insns_nobb): Likewise.
5640 (emit_insn_after_1): Likewise.
5641 * final.c (rest_of_clean_state): Likewise.
5642 (final_scan_insn): Likewise.
5643 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5644 * haifa-sched.c (concat_note_lists): Likewise.
5645 (remove_notes): Likewise.
5646 (restore_other_notes): Likewise.
5647 (move_insn): Likewise.
5648 (unlink_bb_notes): Likewise.
5649 (restore_bb_notes): Likewise.
5650 * jump.c (delete_for_peephole): Likewise.
5651 * optabs.c (emit_libcall_block_1): Likewise.
5652 * reorg.c (emit_delay_sequence): Likewise.
5653 (fill_simple_delay_slots): Likewise.
5654 * sel-sched-ir.c (sel_move_insn): Likewise.
5655 (sel_remove_insn): Likewise.
5656 (get_bb_note_from_pool): Likewise.
5657 * sel-sched.c (move_nop_to_previous_block): Likewise.
5658
5659 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5660 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5661 (c6x_gen_bundles): Likewise.
5662 (hwloop_optimize): Likewise.
5663 * config/frv/frv.c (frv_function_prologue): Likewise.
5664 (frv_register_nop): Likewise.
5665 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5666 (ia64_reorg): Likewise.
5667 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5668 (mep_make_bundle): Likewise.
5669 (mep_bundle_insns): Likewise.
5670 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5671 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5672 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5673
5674 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5675
5676 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5677 return type from rtx to rtx_insn *.
5678 (BB_END): Likewise.
5679 (BB_HEADER): Likewise.
5680 (BB_FOOTER): Likewise.
5681 (SET_BB_HEAD): Convert to a function.
5682 (SET_BB_END): Likewise.
5683 (SET_BB_HEADER): Likewise.
5684 (SET_BB_FOOTER): Likewise.
5685
5686 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5687 Strengthen the return type from rtx to rtx_insn *. For now, this
5688 is done by adding a checked cast, but this will eventually
5689 become a field lookup.
5690 (BB_END): Likewise.
5691 (BB_HEADER): Likewise.
5692 (BB_FOOTER): Likewise.
5693 (SET_BB_HEAD): New function, from macro of same name. This is
5694 intended for use as an lvalue, and so returns an rtx& to allow
5695 in-place modification.
5696 (SET_BB_END): Likewise.
5697 (SET_BB_HEADER): Likewise.
5698 (SET_BB_FOOTER): Likewise.
5699
5700 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5701
5702 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5703 for rvalues, and...
5704 (SET_BB_HEAD): New macro, for use as a lvalue.
5705 (BB_END, SET_BB_END): Likewise.
5706 (BB_HEADER, SET_BB_HEADER): Likewise.
5707 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5708
5709 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5710 of BB_* macros into SET_BB_* macros.
5711 (fix_crossing_unconditional_branches): Likewise.
5712 * caller-save.c (save_call_clobbered_regs): Likewise.
5713 (insert_one_insn): Likewise.
5714 * cfgbuild.c (find_bb_boundaries): Likewise.
5715 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5716 (outgoing_edges_match): Likewise.
5717 (try_optimize_cfg): Likewise.
5718 * cfgexpand.c (expand_gimple_cond): Likewise.
5719 (expand_gimple_tailcall): Likewise.
5720 (expand_gimple_basic_block): Likewise.
5721 (construct_exit_block): Likewise.
5722 * cfgrtl.c (delete_insn): Likewise.
5723 (create_basic_block_structure): Likewise.
5724 (rtl_delete_block): Likewise.
5725 (rtl_split_block): Likewise.
5726 (emit_nop_for_unique_locus_between): Likewise.
5727 (rtl_merge_blocks): Likewise.
5728 (block_label): Likewise.
5729 (try_redirect_by_replacing_jump): Likewise.
5730 (emit_barrier_after_bb): Likewise.
5731 (fixup_abnormal_edges): Likewise.
5732 (record_effective_endpoints): Likewise.
5733 (relink_block_chain): Likewise.
5734 (fixup_reorder_chain): Likewise.
5735 (fixup_fallthru_exit_predecessor): Likewise.
5736 (cfg_layout_duplicate_bb): Likewise.
5737 (cfg_layout_split_block): Likewise.
5738 (cfg_layout_delete_block): Likewise.
5739 (cfg_layout_merge_blocks): Likewise.
5740 * combine.c (update_cfg_for_uncondjump): Likewise.
5741 * emit-rtl.c (add_insn_after): Likewise.
5742 (remove_insn): Likewise.
5743 (reorder_insns): Likewise.
5744 (emit_insn_after_1): Likewise.
5745 * haifa-sched.c (get_ebb_head_tail): Likewise.
5746 (restore_other_notes): Likewise.
5747 (move_insn): Likewise.
5748 (sched_extend_bb): Likewise.
5749 (fix_jump_move): Likewise.
5750 * ifcvt.c (noce_process_if_block): Likewise.
5751 (dead_or_predicable): Likewise.
5752 * ira.c (update_equiv_regs): Likewise.
5753 * reg-stack.c (change_stack): Likewise.
5754 * sel-sched-ir.c (sel_move_insn): Likewise.
5755 * sel-sched.c (move_nop_to_previous_block): Likewise.
5756
5757 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5758 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5759
5760 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5761
5762 * rtl.h (for_each_rtx_in_insn): New function.
5763 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5764
5765 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5766
5767 * coretypes.h (class rtx_insn): Add forward declaration.
5768
5769 * rtl.h: Include is-a.h.
5770 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5771 workaround to ensure gengtype knows inheritance is occurring,
5772 whilst continuing to use the pre-existing special-casing for
5773 rtx_def.
5774 (class rtx_insn): New subclass of rtx_def, adding the
5775 invariant that we're dealing with something we can sanely use
5776 INSN_UID, NEXT_INSN, PREV_INSN on.
5777 (is_a_helper <rtx_insn *>::test): New.
5778 (is_a_helper <const rtx_insn *>::test): New.
5779
5780 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5781
5782 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5783
5784 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5785
5786 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5787 comdats as extern.
5788
5789 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5790
5791 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5792 to BUILT_IN_UNREACHABLE.
5793
5794 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5795
5796 PR target/62011
5797 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5798 New tune flag.
5799 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5800 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5801 (ffs<mode>2): Do not expand with tzcnt for
5802 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5803 (ffssi2_no_cmove): Ditto.
5804 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5805 (ctz<mode>2): New expander.
5806 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5807 (*ctz<mode>2_falsedep): New insn.
5808 (*ctz<mode>2): Rename from ctz<mode>2.
5809 (clz<mode>2_lzcnt): New expander.
5810 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5811 (*clz<mode>2_lzcnt_falsedep): New insn.
5812 (*clz<mode>2): Rename from ctz<mode>2.
5813 (popcount<mode>2): New expander.
5814 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5815 (*popcount<mode>2_falsedep): New insn.
5816 (*popcount<mode>2): Rename from ctz<mode>2.
5817 (*popcount<mode>2_cmp): Remove.
5818 (*popcountsi2_cmp_zext): Ditto.
5819
5820 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5821
5822 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5823 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5824 * config/microblaze/microblaze.h
5825 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5826
5827 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5828
5829 PR other/62168
5830 * configure.ac: Set install_gold_as_default to no for
5831 --enable-gold=no.
5832 * configure: Regenerated.
5833
5834 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5835
5836 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5837 * config.in: Add undef of HAVE_isl.
5838 * configure: Regenerate.
5839 * configure.ac: Add definition of HAVE_isl.
5840 * graphite-blocking.c: Add checking of HAVE_isl.
5841 * graphite-dependences.c: Likewise.
5842 * graphite-interchange.c: Likewise.
5843 * graphite-isl-ast-to-gimple.c: Likewise.
5844 * graphite-optimize-isl.c: Likewise.
5845 * graphite-poly.c: Likewise.
5846 * graphite-scop-detection.c: Likewise.
5847 * graphite-sese-to-poly.c: Likewise.
5848 * graphite.c: Likewise.
5849 * toplev.c: Replace the checking of HAVE_cloog with the checking
5850 of HAVE_isl.
5851
5852 2014-08-18 Richard Biener <rguenther@suse.de>
5853
5854 PR tree-optimization/62090
5855 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5856 (fold_builtin_3): Do not fold snprintf.
5857 (fold_builtin_4): Likewise.
5858 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5859 moved from builtins.c.
5860 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5861 (gimple_fold_builtin): Do not fold sprintf here.
5862
5863 2014-08-18 Richard Biener <rguenther@suse.de>
5864
5865 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5866 code to ...
5867 (maybe_canonicalize_mem_ref_addr): ... this function.
5868 (fold_stmt_1): Apply it here before all simplification.
5869
5870 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5871
5872 PR ipa/61800
5873 * cgraph.h (cgraph_node::create_indirect_edge): Add
5874 compute_indirect_info param.
5875 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5876 indirect_info only when it is required.
5877 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5878 indirect_info fore cloned indirect edge.
5879
5880 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5882 Anna Tikhonova <anna.tikhonova@intel.com>
5883 Ilya Tocar <ilya.tocar@intel.com>
5884 Andrey Turetskiy <andrey.turetskiy@intel.com>
5885 Ilya Verbin <ilya.verbin@intel.com>
5886 Kirill Yukhin <kirill.yukhin@intel.com>
5887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5888
5889 * config/i386/sse.md
5890 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5891 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5892
5893 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5894 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5895 Anna Tikhonova <anna.tikhonova@intel.com>
5896 Ilya Tocar <ilya.tocar@intel.com>
5897 Andrey Turetskiy <andrey.turetskiy@intel.com>
5898 Ilya Verbin <ilya.verbin@intel.com>
5899 Kirill Yukhin <kirill.yukhin@intel.com>
5900 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5901
5902 * config/i386/sse.md
5903 (define_mode_iterator VF1_AVX512VL): New.
5904 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5905 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5906 New.
5907
5908 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5909 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5910 Anna Tikhonova <anna.tikhonova@intel.com>
5911 Ilya Tocar <ilya.tocar@intel.com>
5912 Andrey Turetskiy <andrey.turetskiy@intel.com>
5913 Ilya Verbin <ilya.verbin@intel.com>
5914 Kirill Yukhin <kirill.yukhin@intel.com>
5915 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5916
5917 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5918 * config/i386/i386.md
5919 (define_code_iterator any_float): New.
5920 (define_code_attr floatsuffix): New.
5921 * config/i386/sse.md
5922 (define_mode_iterator VF1_128_256VL): New.
5923 (define_mode_iterator VF2_512_256VL): New.
5924 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5925 TARGET check.
5926 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5927 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5928 New.
5929 (define_mode_attr qq2pssuff): New.
5930 (define_mode_attr sselongvecmode): New.
5931 (define_mode_attr sselongvecmodelower): New.
5932 (define_mode_attr sseintvecmode3): New.
5933 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5934 New.
5935 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5936 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5937 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5938 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5939
5940 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5941 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5942 Anna Tikhonova <anna.tikhonova@intel.com>
5943 Ilya Tocar <ilya.tocar@intel.com>
5944 Andrey Turetskiy <andrey.turetskiy@intel.com>
5945 Ilya Verbin <ilya.verbin@intel.com>
5946 Kirill Yukhin <kirill.yukhin@intel.com>
5947 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5948
5949 * config/i386/sse.md
5950 (define_mode_iterator VF2_AVX512VL): New.
5951 (define_mode_attr sseintvecmode2): New.
5952 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5953 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5954 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5955 (define_insn
5956 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5957 Ditto.
5958 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5959 Ditto.
5960 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5961 Ditto.
5962
5963 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5964 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5965 Anna Tikhonova <anna.tikhonova@intel.com>
5966 Ilya Tocar <ilya.tocar@intel.com>
5967 Andrey Turetskiy <andrey.turetskiy@intel.com>
5968 Ilya Verbin <ilya.verbin@intel.com>
5969 Kirill Yukhin <kirill.yukhin@intel.com>
5970 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5971
5972 * config/i386/i386.md
5973 (define_insn "*movoi_internal_avx"): Add evex version.
5974 (define_insn "*movti_internal"): Ditto.
5975
5976 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5977 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5978 Anna Tikhonova <anna.tikhonova@intel.com>
5979 Ilya Tocar <ilya.tocar@intel.com>
5980 Andrey Turetskiy <andrey.turetskiy@intel.com>
5981 Ilya Verbin <ilya.verbin@intel.com>
5982 Kirill Yukhin <kirill.yukhin@intel.com>
5983 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5984
5985 * config/i386/i386.md
5986 (define_attr "isa"): Add avx512dq, noavx512dq.
5987 (define_attr "enabled"): Ditto.
5988 * config/i386/sse.md
5989 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5990
5991 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5993 Anna Tikhonova <anna.tikhonova@intel.com>
5994 Ilya Tocar <ilya.tocar@intel.com>
5995 Andrey Turetskiy <andrey.turetskiy@intel.com>
5996 Ilya Verbin <ilya.verbin@intel.com>
5997 Kirill Yukhin <kirill.yukhin@intel.com>
5998 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5999
6000 * config/i386/i386.c
6001 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6002 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6003 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6004 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6005 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6006 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6007 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6008 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6009 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6010 * config/i386/sse.md
6011 (define_mode_iterator VMOVE): Allow V4TI mode.
6012 (define_mode_iterator V_AVX512VL): New.
6013 (define_mode_iterator V): New handling for AVX512VL.
6014 (define_insn "avx512f_load<mode>_mask"): Delete.
6015 (define_insn "<avx512>_load<mode>_mask"): New.
6016 (define_insn "avx512f_store<mode>_mask"): Delete.
6017 (define_insn "<avx512>_store<mode>_mask"): New.
6018
6019
6020 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6021
6022 PR sanitizer/62089
6023 * asan.c (instrument_derefs): Fix bitfield check.
6024
6025 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6026
6027 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6028 * config/rs6000/htm.md (ttest): Remove clobber.
6029 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6030 (and_operand): Reformat.
6031 (and_2rld_operand): New predicate.
6032 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6033 parameter.
6034 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6035 parameter. Handle AND directly.
6036 (rs6000_split_logical_di): Remove last parameter.
6037 (rs6000_split_logical): Remove last parameter. Remove obsolete
6038 comment.
6039 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6040 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6041 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6042 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6043 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6044 and 5 anonymous splitters): Delete.
6045 (and<mode>3): New expander.
6046 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6047 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6048 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6049 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6050 (floatdisf2_internal1): Remove clobbers.
6051 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6052 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6053 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6054 (and<mode>3 for BOOL_128): Remove clobber.
6055 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6056 rs6000_split_logical.
6057 (*bool<mode>3_internal for BOOL_128): Adjust call of
6058 rs6000_split_logical.
6059 (*boolc<mode>3_internal1 for BOOL_128,
6060 *boolc<mode>3_internal2 for BOOL_128,
6061 *boolcc<mode>3_internal1 for BOOL_128,
6062 *boolcc<mode>3_internal2 for BOOL_128,
6063 *eqv<mode>3_internal1 for BOOL_128,
6064 *eqv<mode>3_internal2 for BOOL_128,
6065 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6066 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6067 clobber.
6068 (*vec_reload_and_reg_<mptrsize>): Delete.
6069
6070 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6071
6072 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6073 and split, *boolccsi3_internal3 and split): Delete.
6074 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6075 *boolccdi3_internal3 and split): Delete.
6076 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6077 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6078
6079 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6080
6081 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6082 and split, *boolcsi3_internal3 and split): Delete.
6083 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6084 *boolcdi3_internal3 and split): Delete.
6085 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6086
6087 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6088
6089 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6090 <'u'>: Also support printing the low-order 16 bits.
6091 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6092 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6093 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6094 *booldi3_internal3 and split): Delete.
6095 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6096 *bool<mode>3_dot2): New.
6097 (two anonymous define_splits for non_logical_cint_operand): Merge.
6098
6099 2014-08-17 Marek Polacek <polacek@redhat.com>
6100 Manuel López-Ibáñez <manu@gcc.gnu.org>
6101
6102 PR c/62059
6103 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6104 (diagnostic_show_locus): Don't print caret diagnostic
6105 if a column is larger than the line_width.
6106
6107 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6108
6109 * common.opt: Make the ISL AST generator to be the main code generator
6110 of Graphite.
6111
6112 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6113
6114 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6115
6116 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6117
6118 PR target/61641
6119 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6120 Declare.
6121 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6122 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6123 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6124 Define.
6125 * config/pa/pa.md (begin_brtab): Delete insn.
6126 (end_brtab): Likewise.
6127
6128 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6129
6130 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6131
6132 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6133
6134 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6135 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6136 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6137 (get_dynamic_type): Remove.
6138 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6139 (clear_speculation): Bring to ipa-deivrt.h
6140 (get_class_context): Rename to ...
6141 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6142 (contains_type_p): Update.
6143 (get_dynamic_type): Rename to ...
6144 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6145 (possible_polymorphic_call_targets): UPdate.
6146 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6147 * ipa-prop.c (ipa_analyze_call_uses): Update.
6148
6149 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6150
6151 * doc/invoke.texi (SH options): Document missing processor variant
6152 options. Remove references to Hitachi. Undocument deprecated mspace
6153 option.
6154
6155 2014-08-15 Jason Merrill <jason@redhat.com>
6156
6157 * tree.c (type_hash_canon): Uncomment assert.
6158
6159 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6160
6161 * input.h (in_system_header_at): Add comment.
6162
6163 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6164
6165 PR fortran/44054
6166 * diagnostic.c (build_message_string): Make it extern.
6167 * diagnostic.h (build_message_string): Make it extern.
6168
6169 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6170
6171 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6172 load/store from/to non-floating class pseudo.
6173
6174 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6175
6176 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6177
6178 2014-08-15 Richard Biener <rguenther@suse.de>
6179
6180 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6181 (get_constraint_for_ssa_var): Remove dead code.
6182 (get_constraint_for_1): Adjust.
6183 (find_what_var_points_to): Likewise.
6184 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6185
6186 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6187
6188 PR target/61878
6189 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6190 (_mm512_mask_cmpge_epu32_mask): Ditto.
6191 (_mm512_cmpge_epu32_mask): Ditto.
6192 (_mm512_mask_cmpge_epi64_mask): Ditto.
6193 (_mm512_cmpge_epi64_mask): Ditto.
6194 (_mm512_mask_cmpge_epu64_mask): Ditto.
6195 (_mm512_cmpge_epu64_mask): Ditto.
6196 (_mm512_mask_cmple_epi32_mask): Ditto.
6197 (_mm512_cmple_epi32_mask): Ditto.
6198 (_mm512_mask_cmple_epu32_mask): Ditto.
6199 (_mm512_cmple_epu32_mask): Ditto.
6200 (_mm512_mask_cmple_epi64_mask): Ditto.
6201 (_mm512_cmple_epi64_mask): Ditto.
6202 (_mm512_mask_cmple_epu64_mask): Ditto.
6203 (_mm512_cmple_epu64_mask): Ditto.
6204 (_mm512_mask_cmplt_epi32_mask): Ditto.
6205 (_mm512_cmplt_epi32_mask): Ditto.
6206 (_mm512_mask_cmplt_epu32_mask): Ditto.
6207 (_mm512_cmplt_epu32_mask): Ditto.
6208 (_mm512_mask_cmplt_epi64_mask): Ditto.
6209 (_mm512_cmplt_epi64_mask): Ditto.
6210 (_mm512_mask_cmplt_epu64_mask): Ditto.
6211 (_mm512_cmplt_epu64_mask): Ditto.
6212 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6213 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6214 (_mm512_cmpneq_epu32_mask): Ditto.
6215 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6216 (_mm512_cmpneq_epi64_mask): Ditto.
6217 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6218 (_mm512_cmpneq_epu64_mask): Ditto.
6219 (_mm512_castpd_ps): Ditto.
6220 (_mm512_castpd_si512): Ditto.
6221 (_mm512_castps_pd): Ditto.
6222 (_mm512_castps_si512): Ditto.
6223 (_mm512_castsi512_ps): Ditto.
6224 (_mm512_castsi512_pd): Ditto.
6225 (_mm512_castpd512_pd128): Ditto.
6226 (_mm512_castps512_ps128): Ditto.
6227 (_mm512_castsi512_si128): Ditto.
6228 (_mm512_castpd512_pd256): Ditto.
6229 (_mm512_castps512_ps256): Ditto.
6230 (_mm512_castsi512_si256): Ditto.
6231 (_mm512_castpd128_pd512): Ditto.
6232 (_mm512_castps128_ps512): Ditto.
6233 (_mm512_castsi128_si512): Ditto.
6234 (_mm512_castpd256_pd512): Ditto.
6235 (_mm512_castps256_ps512): Ditto.
6236 (_mm512_castsi256_si512): Ditto.
6237 (_mm512_cmpeq_epu32_mask): Ditto.
6238 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6239 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6240 (_mm512_cmpeq_epu64_mask): Ditto.
6241 (_mm512_cmpgt_epu32_mask): Ditto.
6242 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6243 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6244 (_mm512_cmpgt_epu64_mask): Ditto.
6245 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6246 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6247 * config/i386/i386.c (enum ix86_builtins): Add
6248 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6249 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6250 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6251 (bdesc_args): Add __builtin_ia32_si512_256si,
6252 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6253 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6254 __builtin_ia32_pd512_pd.
6255 (ix86_expand_args_builtin): Handle new FTYPEs.
6256 * config/i386/sse.md (castmode): Add 512-bit modes.
6257 (AVX512MODE2P): New.
6258 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6259 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6260
6261 2014-08-15 Richard Biener <rguenther@suse.de>
6262
6263 * fold-const.c (tree_swap_operands_p): Put all constants
6264 last, also strip sign-changing NOPs when considering further
6265 canonicalization. Canonicalize also when optimizing for size.
6266
6267 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6268
6269 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6270 one_match > zero_match case to just before simple_sequence.
6271
6272 2014-08-15 Richard Biener <rguenther@suse.de>
6273
6274 * data-streamer.h (streamer_string_index, string_for_index):
6275 Remove.
6276 * data-streamer-out.c (streamer_string_index): Make static.
6277 * data-streamer-in.c (string_for_index): Likewise.
6278 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6279 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6280
6281 2014-08-15 Richard Biener <rguenther@suse.de>
6282
6283 PR tree-optimization/62031
6284 * tree-data-ref.c (dr_analyze_indices): Do not set
6285 DR_UNCONSTRAINED_BASE.
6286 (dr_may_alias_p): All indirect accesses have to go the
6287 formerly DR_UNCONSTRAINED_BASE path.
6288 * tree-data-ref.h (struct indices): Remove
6289 unconstrained_base member.
6290 (DR_UNCONSTRAINED_BASE): Remove.
6291
6292 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6293
6294 PR middle-end/62092
6295 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6296 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6297 in OMP_CLAUSE_MAP in some outer target region.
6298
6299 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6300
6301 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6302 name_expansion_cache.
6303 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6304 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6305 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6306 (difference_cannot_overflow_p): New parameter. Use affine
6307 expansion for equality check.
6308 (iv_elimination_compare_lt): Pass new argument.
6309
6310 2014-08-14 DJ Delorie <dj@redhat.com>
6311
6312 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6313 variables to the accumulator.
6314
6315 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6316 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6317 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6318 with far-far moves.
6319
6320 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6321 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6322 (umulqihi3_virt): Likewise.
6323 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6324 (umulqihi3_real): Likewise.
6325
6326 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6327
6328 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6329
6330 PR tree-optimization/62091
6331 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6332 function_entry_reached.
6333 (walk_aliased_vdefs): Clear it here.
6334 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6335
6336 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6337
6338 * ipa-utils.h (compare_virtual_tables): Declare.
6339 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6340
6341 2014-08-14 Marek Polacek <polacek@redhat.com>
6342
6343 DR 458
6344 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6345 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6346
6347 2014-08-14 Tom de Vries <tom@codesourcery.com>
6348
6349 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6350
6351 2014-08-14 Tom de Vries <tom@codesourcery.com>
6352
6353 PR rtl-optimization/62004
6354 PR rtl-optimization/62030
6355 * ifcvt.c (rtx_interchangeable_p): New function.
6356 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6357 * emit-rtl.h (mem_attrs_eq_p): Declare.
6358
6359 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6360
6361 * graphite-scop-detection.c:
6362 Add inclusion of cp-tree.h.
6363 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6364 in case they are pointers to object types
6365
6366 2014-08-14 Richard Biener <rguenther@suse.de>
6367
6368 * BASE-VER: Change to 5.0.0
6369
6370 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6371 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6372 Anna Tikhonova <anna.tikhonova@intel.com>
6373 Ilya Tocar <ilya.tocar@intel.com>
6374 Andrey Turetskiy <andrey.turetskiy@intel.com>
6375 Ilya Verbin <ilya.verbin@intel.com>
6376 Kirill Yukhin <kirill.yukhin@intel.com>
6377 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6378
6379 * config/i386/sse.md (define_mode_attr avx512): New.
6380 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6381 V4DI modes.
6382 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6383 (define_mode_attr ssse3_avx2): Ditto.
6384 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6385 (define_mode_attr avx2_avx512bw): New.
6386 (define_mode_attr ssedoublemodelower): New.
6387 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6388 V32HI, V64QI modes.
6389 (define_mode_attr ssebytemode): Allow V8DI modes.
6390 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6391 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6392 (define_mode_attr ssePSmode2): New.
6393 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6394 V16HI, V32HI modes.
6395 (define_mode_attr dbpsadbwmode): New.
6396 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6397 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6398 (vi8_sse4_1_avx2_avx512): New.
6399 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6400 mode attribute.
6401 (define_mode_attr blendbits): Move before its immediate use.
6402
6403 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6404 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6405 Anna Tikhonova <anna.tikhonova@intel.com>
6406 Ilya Tocar <ilya.tocar@intel.com>
6407 Andrey Turetskiy <andrey.turetskiy@intel.com>
6408 Ilya Verbin <ilya.verbin@intel.com>
6409 Kirill Yukhin <kirill.yukhin@intel.com>
6410 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6411
6412 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6413 * config/i386/subst.md
6414 (define_mode_iterator SUBST_V): Update.
6415 (define_mode_iterator SUBST_A): Ditto.
6416 (define_subst_attr "mask_operand7"): New.
6417 (define_subst_attr "mask_operand10"): New.
6418 (define_subst_attr "mask_operand_arg34") : New.
6419 (define_subst_attr "mask_expand_op3"): New.
6420 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6421 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6422 (define_subst_attr "mask_avx512vl_condition"): New.
6423 (define_subst_attr "round_mask_operand4"): Ditto.
6424 (define_subst_attr "round_mask_scalar_op3"): Delete.
6425 (define_subst_attr "round_mask_op4"): New.
6426 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6427 V16SImode.
6428 (define_subst_attr "round_modev8sf_condition"): New.
6429 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6430 <MODE>mode.
6431 (define_subst_attr "round_saeonly_mask_operand4"): New.
6432 (define_subst_attr "round_saeonly_mask_op4"): New.
6433 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6434 V8DImode, V16SImode.
6435 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6436 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6437 (define_subst_attr "mask_expand4_args"): New.
6438 (define_subst "mask_expand4"): New.
6439
6440 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6441 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6442 Anna Tikhonova <anna.tikhonova@intel.com>
6443 Ilya Tocar <ilya.tocar@intel.com>
6444 Andrey Turetskiy <andrey.turetskiy@intel.com>
6445 Ilya Verbin <ilya.verbin@intel.com>
6446 Kirill Yukhin <kirill.yukhin@intel.com>
6447 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6448
6449 * config/i386/i386.md
6450 (define_attr "isa"): Add avx512bw,noavx512bw.
6451 (define_attr "enabled"): Ditto.
6452 (define_split): Add 32/64-bit mask logic.
6453 (define_insn "*k<logic>qi"): New.
6454 (define_insn "*k<logic>hi"): New.
6455 (define_insn "*anddi_1"): Add mask version.
6456 (define_insn "*andsi_1"): Ditto.
6457 (define_insn "*<code><mode>_1"): Ditto.
6458 (define_insn "*<code>hi_1"): Ditto.
6459 (define_insn "kxnor<mode>"): New.
6460 (define_insn "kunpcksi"): New.
6461 (define_insn "kunpckdi"): New.
6462 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6463 (define_insn "*one_cmplhi2_1"): Ditto.
6464
6465 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6467 Anna Tikhonova <anna.tikhonova@intel.com>
6468 Ilya Tocar <ilya.tocar@intel.com>
6469 Andrey Turetskiy <andrey.turetskiy@intel.com>
6470 Ilya Verbin <ilya.verbin@intel.com>
6471 Kirill Yukhin <kirill.yukhin@intel.com>
6472 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6473
6474 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6475 V32HImode.
6476
6477 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6478 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6479 Anna Tikhonova <anna.tikhonova@intel.com>
6480 Ilya Tocar <ilya.tocar@intel.com>
6481 Andrey Turetskiy <andrey.turetskiy@intel.com>
6482 Ilya Verbin <ilya.verbin@intel.com>
6483 Kirill Yukhin <kirill.yukhin@intel.com>
6484 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6485
6486 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6487 registers.
6488 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6489 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6490 xmm/ymm16+ when availble.
6491 * config/i386/i386.h
6492 (HARD_REGNO_NREGS): Add mask regs.
6493 (VALID_AVX512F_REG_MODE): Ditto.
6494 (VALID_AVX512F_REG_MODE) : Define.
6495 (VALID_MASK_AVX512BW_MODE): Ditto.
6496 (reg_class) (MASK_REG_P(X)): Define.
6497 * config/i386/i386.md: Do not split long moves with mask register,
6498 use kmovb if avx512bw is availible.
6499 (movdi_internal): Handle mask registers.
6500
6501 2014-08-14 Richard Biener <rguenther@suse.de>
6502
6503 PR tree-optimization/62081
6504 * tree-ssa-loop.c (pass_fix_loops): New pass.
6505 (pass_tree_loop::gate): Do not fixup loops here.
6506 * tree-pass.h (make_pass_fix_loops): Declare.
6507 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6508
6509 2014-08-14 Richard Biener <rguenther@suse.de>
6510
6511 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6512 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6513
6514 2014-08-14 Richard Biener <rguenther@suse.de>
6515
6516 PR tree-optimization/62090
6517 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6518 (fold_builtin_2): Do not fold sprintf.
6519 (fold_builtin_3): Likewise.
6520 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6521 moved from builtins.c.
6522 (gimple_fold_builtin): Fold sprintf.
6523
6524 2014-08-14 Richard Biener <rguenther@suse.de>
6525
6526 PR rtl-optimization/62079
6527 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6528 run cleanup_cfg.
6529
6530 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6531
6532 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6533 current_function_decl.
6534
6535 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6536
6537 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6538 cgraph_function_node to cgraph_node::function_symbol
6539 refactoring.
6540
6541 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6542
6543 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6544 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6545
6546 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6547
6548 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6549 warning.
6550
6551 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6552
6553 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6554 generator.
6555
6556 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6557
6558 PR target/62025
6559 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6560 any registers that are used in mem_insn.
6561
6562 2014-08-12 Steve Ellcey <sellcey@mips.com>
6563
6564 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6565
6566 2014-08-12 Steve Ellcey <sellcey@mips.com>
6567
6568 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6569 (MULTILIB_DIRNAMES): Ditto.
6570 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6571 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6572 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6573 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6574 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6575 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6576
6577 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6578
6579 PR target/61413
6580 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6581 of __ARM_SIZEOF_WCHAR_T.
6582
6583 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6584
6585 PR target/62098
6586 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6587 Remove unnecessary attributes.
6588
6589 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6590
6591 * internal-fn.c (init_internal_fns): Fix off-by-one.
6592
6593 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6594 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6595 Anna Tikhonova <anna.tikhonova@intel.com>
6596 Ilya Tocar <ilya.tocar@intel.com>
6597 Andrey Turetskiy <andrey.turetskiy@intel.com>
6598 Ilya Verbin <ilya.verbin@intel.com>
6599 Kirill Yukhin <kirill.yukhin@intel.com>
6600 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6601
6602 * config/i386/i386.c (standard_sse_constant_opcode): Use
6603 vpxord/vpternlog if avx512 is availible.
6604
6605 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6606
6607 PR middle-end/62103
6608 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6609 bitfields, that is when size doesn't match the size of type or the
6610 size of the constructor.
6611
6612 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6613
6614 * config/rs6000/constraints.md (wh constraint): New constraint,
6615 for FP registers if direct move is available.
6616 (wi constraint): New constraint, for VSX/FP registers that can
6617 handle 64-bit integers.
6618 (wj constraint): New constraint for VSX/FP registers that can
6619 handle 64-bit integers for direct moves.
6620 (wk constraint): New constraint for VSX/FP registers that can
6621 handle 64-bit doubles for direct moves.
6622 (wy constraint): Make documentation match implementation.
6623
6624 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6625 scalar_in_vmx_p field to simplify tests of whether SFmode or
6626 DFmode can go in the Altivec registers.
6627 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6628 (rs6000_setup_reg_addr_masks): Likewise.
6629 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6630 field, and wh/wi/wj/wk constraints.
6631 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6632 the wh/wi/wj/wk constraints.
6633 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6634 upper registers, prefer VSX registers unless the operation is a
6635 memory operation with REG+OFFSET addressing.
6636
6637 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6638 DImode. Change SFmode to use ww constraint instead of d to allow
6639 SF registers in the upper registers.
6640 (VSr2): Likewise.
6641 (VSr3): Likewise.
6642 (VSr5): Fix thinko in comment.
6643 (VSa): New mode attribute that is an alternative to wa, that
6644 returns the VSX register class that a mode can go in, but may not
6645 be the preferred register class.
6646 (VS_64dm): New mode attribute for appropriate register classes for
6647 referencing 64-bit elements of vectors for direct moves and normal
6648 moves.
6649 (VS_64reg): Likewise.
6650 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6651 register allocator to only registers the data type can handle.
6652 (vsx_le_perm_load_<mode>): Likewise.
6653 (vsx_le_perm_store_<mode>): Likewise.
6654 (vsx_xxpermdi2_le_<mode>): Likewise.
6655 (vsx_xxpermdi4_le_<mode>): Likewise.
6656 (vsx_lxvd2x2_le_<mode>): Likewise.
6657 (vsx_lxvd2x4_le_<mode>): Likewise.
6658 (vsx_stxvd2x2_le_<mode>): Likewise.
6659 (vsx_add<mode>3): Likewise.
6660 (vsx_sub<mode>3): Likewise.
6661 (vsx_mul<mode>3): Likewise.
6662 (vsx_div<mode>3): Likewise.
6663 (vsx_tdiv<mode>3_internal): Likewise.
6664 (vsx_fre<mode>2): Likewise.
6665 (vsx_neg<mode>2): Likewise.
6666 (vsx_abs<mode>2): Likewise.
6667 (vsx_nabs<mode>2): Likewise.
6668 (vsx_smax<mode>3): Likewise.
6669 (vsx_smin<mode>3): Likewise.
6670 (vsx_sqrt<mode>2): Likewise.
6671 (vsx_rsqrte<mode>2): Likewise.
6672 (vsx_tsqrt<mode>2_internal): Likewise.
6673 (vsx_fms<mode>4): Likewise.
6674 (vsx_nfma<mode>4): Likewise.
6675 (vsx_eq<mode>): Likewise.
6676 (vsx_gt<mode>): Likewise.
6677 (vsx_ge<mode>): Likewise.
6678 (vsx_eq<mode>_p): Likewise.
6679 (vsx_gt<mode>_p): Likewise.
6680 (vsx_ge<mode>_p): Likewise.
6681 (vsx_xxsel<mode>): Likewise.
6682 (vsx_xxsel<mode>_uns): Likewise.
6683 (vsx_copysign<mode>3): Likewise.
6684 (vsx_float<VSi><mode>2): Likewise.
6685 (vsx_floatuns<VSi><mode>2): Likewise.
6686 (vsx_fix_trunc<mode><VSi>2): Likewise.
6687 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6688 (vsx_x<VSv>r<VSs>i): Likewise.
6689 (vsx_x<VSv>r<VSs>ic): Likewise.
6690 (vsx_btrunc<mode>2): Likewise.
6691 (vsx_b2trunc<mode>2): Likewise.
6692 (vsx_floor<mode>2): Likewise.
6693 (vsx_ceil<mode>2): Likewise.
6694 (vsx_<VS_spdp_insn>): Likewise.
6695 (vsx_xscvspdp): Likewise.
6696 (vsx_xvcvspuxds): Likewise.
6697 (vsx_float_fix_<mode>2): Likewise.
6698 (vsx_set_<mode>): Likewise.
6699 (vsx_extract_<mode>_internal1): Likewise.
6700 (vsx_extract_<mode>_internal2): Likewise.
6701 (vsx_extract_<mode>_load): Likewise.
6702 (vsx_extract_<mode>_store): Likewise.
6703 (vsx_splat_<mode>): Likewise.
6704 (vsx_xxspltw_<mode>): Likewise.
6705 (vsx_xxspltw_<mode>_direct): Likewise.
6706 (vsx_xxmrghw_<mode>): Likewise.
6707 (vsx_xxmrglw_<mode>): Likewise.
6708 (vsx_xxsldwi_<mode>): Likewise.
6709 (vsx_xscvdpspn): Tighten constraints to only use register classes
6710 the types use.
6711 (vsx_xscvspdpn): Likewise.
6712 (vsx_xscvdpspn_scalar): Likewise.
6713
6714 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6715 wj, and wk constraints.
6716 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6717 general purpose registers.
6718
6719 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6720 direct moves.
6721 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6722 DImode instead of wm. Use wk constraint for direct move of DFmode
6723 instead of wm.
6724 (extendsidi2_lfiwax): Likewise.
6725 (lfiwax): Likewise.
6726 (lfiwzx): Likewise.
6727 (movdi_internal64): Likewise.
6728
6729 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6730 wk constraints. Make the wy constraint documentation match them
6731 implementation.
6732
6733 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6734
6735 Replacement of isl_int by isl_val
6736 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6737 (compute_bounds_for_param): use isl_val instead of isl_int
6738 (compute_bounds_for_loop): likewise
6739 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6740 (build_linearized_memory_access): use isl_val instead of isl_int
6741 (pdr_stride_in_loop): likewise
6742 * graphite-optimize-isl.c:
6743 (getPrevectorMap): use isl_val instead of isl_int
6744 * graphite-poly.c:
6745 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6746 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6747 (extern the_isl_ctx): declare
6748 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6749 (extract_affine_gmp): likewise
6750 (wrap): likewise
6751 (build_loop_iteration_domains): likewise
6752 (add_param_constraints): likewise
6753
6754 2014-08-11 Richard Biener <rguenther@suse.de>
6755
6756 PR tree-optimization/62075
6757 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6758 handle uses in patterns.
6759
6760 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6761 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6762 Anna Tikhonova <anna.tikhonova@intel.com>
6763 Ilya Tocar <ilya.tocar@intel.com>
6764 Andrey Turetskiy <andrey.turetskiy@intel.com>
6765 Ilya Verbin <ilya.verbin@intel.com>
6766 Kirill Yukhin <kirill.yukhin@intel.com>
6767 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6768
6769 * common/config/i386/i386-common.c
6770 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6771 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6772 (ix86_handle_option): Handle OPT_mavx512vl.
6773 * config/i386/cpuid.h (bit_AVX512VL): Define.
6774 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6775 set -mavx512vl accordingly.
6776 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6777 OPTION_MASK_ISA_AVX512VL.
6778 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6779 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6780 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6781 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6782 * config/i386/i386.h (TARGET_AVX512VL): Define.
6783 (TARGET_AVX512VL_P(x)): Ditto.
6784 * config/i386/i386.opt: Add mavx512vl.
6785
6786 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6787
6788 PR tree-optimization/62073
6789 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6790 a basic block.
6791
6792 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6793 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6794 Anna Tikhonova <anna.tikhonova@intel.com>
6795 Ilya Tocar <ilya.tocar@intel.com>
6796 Andrey Turetskiy <andrey.turetskiy@intel.com>
6797 Ilya Verbin <ilya.verbin@intel.com>
6798 Kirill Yukhin <kirill.yukhin@intel.com>
6799 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6800
6801 * common/config/i386/i386-common.c
6802 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6803 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6804 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6805 (ix86_handle_option): Handle OPT_mavx512bw.
6806 * config/i386/cpuid.h (bit_AVX512BW): Define.
6807 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6808 set -mavx512bw accordingly.
6809 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6810 OPTION_MASK_ISA_AVX512BW.
6811 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6812 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6813 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6814 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6815 * config/i386/i386.h (TARGET_AVX512BW): Define.
6816 (TARGET_AVX512BW_P(x)): Ditto.
6817 * config/i386/i386.opt: Add mavx512bw.
6818
6819 2014-08-11 Richard Biener <rguenther@suse.de>
6820
6821 PR tree-optimization/62070
6822 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6823 Remove SSA checking.
6824
6825 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6826
6827 * asan.c (asan_check_flags): New enum.
6828 (build_check_stmt_with_calls): Removed function.
6829 (build_check_stmt): Split inlining logic to
6830 asan_expand_check_ifn.
6831 (instrument_derefs): Rename parameter.
6832 (instrument_mem_region_access): Rename parameter.
6833 (instrument_strlen_call): Likewise.
6834 (asan_expand_check_ifn): New function.
6835 (asan_instrument): Remove old code.
6836 (pass_sanopt::execute): Change handling of
6837 asan-instrumentation-with-call-threshold.
6838 (asan_clear_shadow): Fix formatting.
6839 (asan_function_start): Likewise.
6840 (asan_emit_stack_protection): Likewise.
6841 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6842 Update description.
6843 * internal-fn.c (expand_ASAN_CHECK): New function.
6844 * internal-fn.def (ASAN_CHECK): New internal function.
6845 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6846 Update description.
6847 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6848 * tree.c: Small comment fix.
6849
6850 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6851
6852 * gimple.c (gimple_call_fnspec): Support internal functions.
6853 (gimple_call_return_flags): Use const.
6854 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6855 * internal-fn.def: Add fnspec information.
6856 * internal-fn.h (internal_fn_fnspec): New function.
6857 (init_internal_fns): Declare new function.
6858 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6859 (init_internal_fns): New function.
6860 * tree-core.h: Update macro call.
6861 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6862
6863 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6864
6865 * lto-streamer.h (struct output_block::symbol): Change from
6866 struct symtab_node to plain symtab_node.
6867 (referenced_from_this_partition_p): Change first parameter
6868 from struct symtab_node to plain symtab_node.
6869
6870 2014-08-10 Marek Polacek <polacek@redhat.com>
6871
6872 PR c/51849
6873 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6874
6875 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6876
6877 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6878 DECL correctly; do not give up on types in static storage.
6879
6880 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6881
6882 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6883
6884 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6885
6886 * graphite-isl-ast-to-gimple.c:
6887 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6888
6889 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6890
6891 2014-08-08 Guozhi Wei <carrot@google.com>
6892
6893 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6894
6895 2014-08-08 Cary Coutant <ccoutant@google.com>
6896
6897 * dwarf2out.c (get_skeleton_type_unit): Remove.
6898 (output_skeleton_debug_sections): Remove skeleton type units.
6899 (output_comdat_type_unit): Likewise.
6900 (dwarf2out_finish): Likewise.
6901
6902 2014-08-07 Yi Yang <ahyangyi@google.com>
6903
6904 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6905
6906 2014-08-08 Richard Biener <rguenther@suse.de>
6907
6908 * lto-streamer.h (struct lto_input_block): Make it a class
6909 with a constructor.
6910 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6911 (struct lto_function_header, struct lto_simple_header,
6912 struct lto_simple_header_with_strings,
6913 struct lto_decl_header, struct lto_function_header): Make
6914 a simple inheritance hieararchy. Remove unused fields.
6915 (struct lto_asm_header): Remove.
6916 * lto-streamer-out.c (produce_asm): Adjust.
6917 (lto_output_toplevel_asms): Likewise.
6918 (produce_asm_for_decls): Likewise.
6919 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6920 * data-streamer-in.c (string_for_index): Likewise.
6921 * ipa-inline-analysis.c (inline_read_section): Likewise.
6922 * ipa-prop.c (ipa_prop_read_section): Likewise.
6923 (read_replacements_section): Likewise.
6924 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6925 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6926 (lto_destroy_simple_input_block): Likewise.
6927 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6928 (lto_input_toplevel_asms): Likewise.
6929
6930 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6931 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6932 Anna Tikhonova <anna.tikhonova@intel.com>
6933 Ilya Tocar <ilya.tocar@intel.com>
6934 Andrey Turetskiy <andrey.turetskiy@intel.com>
6935 Ilya Verbin <ilya.verbin@intel.com>
6936 Kirill Yukhin <kirill.yukhin@intel.com>
6937 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6938
6939 * common/config/i386/i386-common.c
6940 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6941 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6942 (ix86_handle_option): Handle OPT_mavx512dq.
6943 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6944 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6945 set -mavx512dq accordingly.
6946 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6947 OPTION_MASK_ISA_AVX512DQ.
6948 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6949 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6950 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6951 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6952 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6953 (TARGET_AVX512DQ_P(x)): Ditto.
6954 * config/i386/i386.opt: Add mavx512dq.
6955
6956 2014-08-08 Richard Biener <rguenther@suse.de>
6957
6958 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6959 target_percent, target_percent_s): Export.
6960 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6961 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6962 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6963 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6964 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6965 Move to gimple-fold.c.
6966 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6967 strcat and strcpy.
6968 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6969 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6970 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6971 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6972 (rewrite_call_expr_array): Remove.
6973 (fold_builtin_sprintf_chk): Likewise.
6974 (fold_builtin_snprintf_chk): Likewise.
6975 (fold_builtin_varargs): Remove handling of sprintf_chk,
6976 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6977 (gimple_fold_builtin_sprintf_chk): Remove.
6978 (gimple_fold_builtin_snprintf_chk): Likewise.
6979 (gimple_fold_builtin_varargs): Likewise.
6980 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6981 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6982 * gimple.c (gimple_seq_add_seq_without_update): New function.
6983 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6984 * gimple-fold.c: Include output.h.
6985 (gsi_replace_with_seq_vops): New function, split out from ...
6986 (gimplify_and_update_call_from_tree): ... here.
6987 (replace_call_with_value): New function.
6988 (replace_call_with_call_and_fold): Likewise.
6989 (var_decl_component_p): Moved from builtins.c.
6990 (gimple_fold_builtin_memory_op): Moved from builtins.c
6991 fold_builtin_memory_op and rewritten to GIMPLE.
6992 (gimple_fold_builtin_memset): Likewise.
6993 (gimple_fold_builtin_strcpy): Likewise.
6994 (gimple_fold_builtin_strncpy): Likewise.
6995 (gimple_fold_builtin_strcat): Likewise.
6996 (gimple_fold_builtin_fputs): Likewise.
6997 (gimple_fold_builtin_memory_chk): Likewise.
6998 (gimple_fold_builtin_stxcpy_chk): Likewise.
6999 (gimple_fold_builtin_stxncpy_chk): Likewise.
7000 (gimple_fold_builtin_snprintf_chk): Likewise.
7001 (gimple_fold_builtin_sprintf_chk): Likewise.
7002 (gimple_fold_builtin_strlen): New function.
7003 (gimple_fold_builtin_with_strlen): New function split out from
7004 gimple_fold_builtin.
7005 (gimple_fold_builtin): Change signature and handle
7006 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7007 here. Call gimple_fold_builtin_with_strlen.
7008 (gimple_fold_call): Adjust.
7009
7010 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7011
7012 * calls.c (precompute_arguments): Check
7013 promoted_for_signed_and_unsigned_p and set the promoted mode.
7014 (promoted_for_signed_and_unsigned_p): New function.
7015 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7016 and set the promoted mode.
7017 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7018 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7019 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7020
7021
7022 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7023
7024 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7025 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7026 (expand_call): Likewise.
7027 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7028 to get promoted mode.
7029 * combine.c (record_promoted_value): Skip > 0 comparison with
7030 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7031 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7032 of SUBREG_PROMOTED_UNSIGNED_P.
7033 (convert_modes): Likewise.
7034 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7035 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7036 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7037 SUBREG_PROMOTED_UNSIGNED_SET.
7038 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7039 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7040 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7041 SUBREG_PROMOTED_SET.
7042 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7043 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7044 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7045 of SUBREG_PROMOTED_UNSIGNED_P.
7046 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7047 (SUBREG_PROMOTED_SET): New define.
7048 (SUBREG_PROMOTED_GET): Likewise.
7049 (SUBREG_PROMOTED_SIGN): Likewise.
7050 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7051 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7052 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7053 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7054 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7055 (nonzero_bits1): Skip > 0 comparison with the results as
7056 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7057 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7058 of !SUBREG_PROMOTED_UNSIGNED_P.
7059 * simplify-rtx.c (simplify_unary_operation_1): Use new
7060 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7061 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7062 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7063 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7064
7065 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7066
7067 * ipa-devirt.c: Include gimple-pretty-print.h
7068 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7069 further tests.
7070 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7071 (get_polymorphic_call_info): Fix return value
7072 (type_change_info): New sturcture based on ipa-prop
7073 variant.
7074 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7075 based on ipa-prop variant.
7076 (extr_type_from_vtbl_ptr_store): New function
7077 based on ipa-prop variant.
7078 (record_known_type): New function.
7079 (check_stmt_for_type_change): New function.
7080 (get_dynamic_type): New function.
7081 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7082 * tree-ssa-pre.c: ipa-utils.h
7083 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7084 machinery; sanity check with ipa-prop devirtualization.
7085 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7086 polymorphic flag.
7087
7088 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7089
7090 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7091 * alias.c, cfgexpand.c, cgraphbuild.c,
7092 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7093 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7094 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7095 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7096 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7097 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7098 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7099 dse.c, except.c, gengtype.c, gimple-expr.c,
7100 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7101 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7102 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7103 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7104 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7105 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7106 pointer-set.h.
7107 * pointer-set.c: Remove file.
7108 * pointer-set.h: Remove file.
7109
7110 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7111
7112 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7113 * config/arm/types.md (f_sels, f_seld): Delete.
7114
7115 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7116
7117 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7118 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7119 (aarch64_movdi_<mode>high): Likewise.
7120 (aarch64_mov<mode>high_di): Likewise.
7121 (aarch64_movdi_<mode>low): Likewise.
7122 (aarch64_mov<mode>low_di): Likewise.
7123 (aarch64_movtilow_tilow): Likewise.
7124 Add comment explaining usage of fp,simd attributes and of
7125 TARGET_FLOAT and TARGET_SIMD.
7126
7127 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7128 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7129
7130 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7131 Use MOVN when one of the half-words is 0xffff.
7132
7133 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7134
7135 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7136
7137 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7138
7139 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7140 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7141 (rfs_str): String corresponding to RFS_* constants.
7142 (rank_for_schedule_stats_t): New typedef.
7143 (rank_for_schedule_stats): New static variable.
7144 (rfs_result): New static function.
7145 (rank_for_schedule): Track statistics for deciding heuristics.
7146 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7147 static functions.
7148 (ready_sort): Use them for debug printouts.
7149 (schedule_block): Init statistics state. Print statistics on
7150 rank_for_schedule decisions.
7151
7152 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7153
7154 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7155
7156 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7157
7158 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7159 constraint.
7160
7161 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7162
7163 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7164 function to not conflict.
7165 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7166 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7167 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7168 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7169 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7170 of pointer_map.
7171
7172 2014-08-07 Marek Polacek <polacek@redhat.com>
7173
7174 * fold-const.c (fold_binary_loc): Add folding of
7175 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7176
7177 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7178
7179 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7180 instead of type size.
7181 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7182
7183 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7184
7185 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7186 (*thumb1_movqi_insn): Likewise.
7187 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7188
7189 2014-08-07 Tom de Vries <tom@codesourcery.com>
7190
7191 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7192 (glibc_2_11_or_earlier): Remove effective-target keywords.
7193
7194 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7195
7196 * config/arm/arm.c (bdesc_2arg): Fix typo.
7197 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7198
7199 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7200
7201 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7202
7203 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7204
7205 PR debug/61923
7206 * haifa-sched.c (advance_one_cycle): Fix dump.
7207 (schedule_block): Don't advance cycle if we are already at the
7208 beginning of the cycle.
7209
7210 2014-08-06 Martin Jambor <mjambor@suse.cz>
7211
7212 PR ipa/61393
7213 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7214
7215 2014-08-06 Richard Biener <rguenther@suse.de>
7216
7217 PR lto/62034
7218 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7219 SCCs here.
7220 (lto_input_tree): Pop SCCs here.
7221
7222 2014-08-06 Richard Biener <rguenther@suse.de>
7223
7224 PR tree-optimization/61320
7225 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7226 handle misaligned loads.
7227
7228 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7229
7230 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7231 (aarch64_expand_vec_perm_const): Check for dup before zip.
7232
7233 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7234
7235 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7236 CONST_INT_P instead of GET_CODE and compare.
7237 (aarch64_select_cc_mode): Likewise.
7238 (aarch64_print_operand): Likewise.
7239 (aarch64_rtx_costs): Likewise.
7240 (aarch64_simd_valid_immediate): Likewise.
7241 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7242 (aarch64_simd_emit_pair_result_insn): Likewise.
7243
7244 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7245
7246 * gdbhooks.py (find_gcc_source_dir): New helper function.
7247 (class PassNames): New class, locating and parsing passes.def.
7248 (class BreakOnPass): New command "break-on-pass".
7249
7250 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7251
7252 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7253 getting olde.
7254
7255 2014-08-05 Richard Biener <rguenther@suse.de>
7256
7257 PR rtl-optimization/61672
7258 * emit-rtl.h (mem_attrs_eq_p): Declare.
7259 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7260 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7261 * cfgcleanup.c (merge_memattrs): Likewise.
7262 Include emit-rtl.h.
7263
7264 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7265
7266 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7267 rather than singleton vectors.
7268 (vqdmlsls_lane_s32): Likewise.
7269
7270 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7271
7272 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7273 Use VSDQ_HSI mode iterator.
7274 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7275 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7276 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7277 Use BUILTIN_VDQHS macro.
7278 (sqrdmulh_laneq): Likewise.
7279 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7280 (vqdmlals_laneq_s32): Likewise.
7281 (vqdmlslh_laneq_s16): Likewise.
7282 (vqdmlsls_laneq_s32): Likewise.
7283 (vqdmulhh_laneq_s16): Likewise.
7284 (vqdmulhs_laneq_s32): Likewise.
7285 (vqrdmulhh_laneq_s16): Likewise.
7286 (vqrdmulhs_laneq_s32): Likewise.
7287
7288 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7289
7290 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7291 (vmuld_laneq_f64): Likewise.
7292 (vmuls_laneq_f32): Likewise.
7293 (vmul_n_f64): Likewise.
7294 (vmuld_lane_f64): Reimplement in C.
7295 (vmuls_lane_f32): Likewise.
7296
7297 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7298
7299 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7300 to reservation.
7301 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7302
7303 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7304
7305 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7306 (rbitsi2): Likewise.
7307 (*arm_rev): Set predicable and predicable_short_it attributes.
7308
7309 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7310
7311 * convert.c (convert_to_integer): Guard transformation to lrint by
7312 -fno-math-errno.
7313
7314 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7315
7316 * config/aarch64/aarch64-builtins.c
7317 (aarch64_simd_builtin_type_mode): Delete.
7318 (v8qi_UP): Remap to V8QImode.
7319 (v4hi_UP): Remap to V4HImode.
7320 (v2si_UP): Remap to V2SImode.
7321 (v2sf_UP): Remap to V2SFmode.
7322 (v1df_UP): Remap to V1DFmode.
7323 (di_UP): Remap to DImode.
7324 (df_UP): Remap to DFmode.
7325 (v16qi_UP):V16QImode.
7326 (v8hi_UP): Remap to V8HImode.
7327 (v4si_UP): Remap to V4SImode.
7328 (v4sf_UP): Remap to V4SFmode.
7329 (v2di_UP): Remap to V2DImode.
7330 (v2df_UP): Remap to V2DFmode.
7331 (ti_UP): Remap to TImode.
7332 (ei_UP): Remap to EImode.
7333 (oi_UP): Remap to OImode.
7334 (ci_UP): Map to CImode.
7335 (xi_UP): Remap to XImode.
7336 (si_UP): Remap to SImode.
7337 (sf_UP): Remap to SFmode.
7338 (hi_UP): Remap to HImode.
7339 (qi_UP): Remap to QImode.
7340 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7341 (VAR1): Build builtin name.
7342 (aarch64_init_simd_builtins): Remove dead code.
7343
7344 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7345
7346 * graphite-isl-ast-to-gimple.c:
7347 (set_options): New function.
7348 (scop_to_isl_ast): Add calling of set_options.
7349
7350 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7351
7352 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7353 (analyze_iv_to_split_insn): Don't initialize them.
7354 (get_ivts_expr): Removed.
7355 (allocate_basic_variable, insert_base_initialization): Use
7356 SET_SRC instead of *get_ivts_expr.
7357 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7358
7359 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7360
7361 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7362 (translate_isl_ast_for_loop): Add checking of the
7363 flag_loop_parallelize_all.
7364 (ast_build_before_for): New function.
7365 (scop_to_isl_ast): Add checking of the
7366 flag_loop_parallelize_all.
7367 * graphite-dependences.c: Move the defenition of the
7368 scop_get_dependences from graphite-optimize-isl.c to this file.
7369 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7370 (carries_deps): Add checking of the x's value.
7371 * graphite-optimize-isl.c: Move the defenition of the
7372 scop_get_dependences to graphite-dependences.c.
7373 * graphite-poly.h: Add declarations of scop_get_dependences
7374 and carries_deps.
7375
7376 2014-08-04 Rohit <rohitarulraj@freescale.com>
7377
7378 PR target/60102
7379 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7380 names.
7381 (alt_reg_names): Likewise.
7382 (rs6000_dwarf_register_span): For SPE high registers, replace
7383 dwarf register numbers with GCC hard register numbers.
7384 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7385 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7386 register number for the corresponding GCC hard register number.
7387 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7388 newly added GCC hard register numbers for SPE high registers.
7389 (DWARF_FRAME_REGISTERS): Likewise.
7390 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7391 (DWARF_FRAME_REGNUM): Likewise.
7392 (FIXED_REGISTERS): Likewise.
7393 (CALL_USED_REGISTERS): Likewise.
7394 (CALL_REALLY_USED_REGISTERS): Likewise.
7395 (REG_ALLOC_ORDER): Likewise.
7396 (enum reg_class): Likewise.
7397 (REG_CLASS_NAMES): Likewise.
7398 (REG_CLASS_CONTENTS): Likewise.
7399 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7400
7401 2014-08-04 Richard Biener <rguenther@suse.de>
7402
7403 * gimple-fold.h (gimple_fold_builtin): Remove.
7404 * gimple-fold.c (gimple_fold_builtin): Make static.
7405 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7406 fold_stmt, not gimple_fold_builtin.
7407
7408 2014-08-04 Martin Liska <mliska@suse.cz>
7409
7410 * cgraph.h (csi_end_p): Removed.
7411 (csi_next): Likewise.
7412 (csi_node): Likewise.
7413 (csi_start): Likewise.
7414 (cgraph_node_in_set_p): Likewise.
7415 (cgraph_node_set_size): Likewise.
7416 (vsi_end_p): Likewise.
7417 (vsi_next): Likewise.
7418 (vsi_node): Likewise.
7419 (vsi_start): Likewise.
7420 (varpool_node_set_size): Likewise.
7421 (cgraph_node_set_nonempty_p): Likewise.
7422 (varpool_node_set_nonempty_p): Likewise.
7423 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7424 cgraph_node_set.
7425 * ipa-inline-transform.c: Likewise.
7426 * ipa-utils.c (cgraph_node_set_new): Removed.
7427 (cgraph_node_set_add): Likewise.
7428 (cgraph_node_set_remove): Likewise.
7429 (cgraph_node_set_find): Likewise.
7430 (dump_cgraph_node_set): Likewise.
7431 (debug_cgraph_node_set): Likewise.
7432 (free_cgraph_node_set): Likewise.
7433 (varpool_node_set_new): Likewise.
7434 (varpool_node_set_add): Likewise.
7435 (varpool_node_set_remove): Likewise.
7436 (varpool_node_set_find): Likewise.
7437 (dump_varpool_node_set): Likewise.
7438 (free_varpool_node_set): Likewise.
7439 (debug_varpool_node_set): Likewise.
7440 * tree-emutls.c (struct tls_var_data):
7441 (emutls_index): Removed.
7442 (emutls_decl): Likewise.
7443 (gen_emutls_addr): Function implementation uses newly added
7444 hash_map<varpool_node *, tls_var_data>.
7445 (clear_access_vars): Likewise.
7446 (create_emultls_var): Likewise.
7447 (ipa_lower_emutls): Likewise.
7448 (reset_access): New function.
7449
7450 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7451
7452 * config/i386/i386.c (ix86_option_override_internal): Add
7453 PTA_RDRND and PTA_MOVBE for bdver4.
7454
7455 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7456 James Greenhalgh <james.greenhalgh@arm.com>
7457
7458 * doc/md.texi (clrsb): Document.
7459 (clz): Change reference to x into operand 1.
7460 (ctz): Likewise.
7461 (popcount): Likewise.
7462
7463 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7464
7465 PR target/61713
7466 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7467 move to subtarget in serial version if result is ignored.
7468
7469 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7470 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7471
7472 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7473 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7474 (sched_analyze_insn): Update use of try_group_insn to
7475 sched_macro_fuse_insns.
7476 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7477 arguments that are not conditional jumps.
7478
7479 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7480
7481 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7482 family information. Handle BTVER2 cpu with cpuid family value.
7483
7484 2014-08-04 Tom de Vries <tom@codesourcery.com>
7485
7486 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7487 (glibc_2_11_or_earlier): Document effective-target keywords.
7488
7489 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7490
7491 * ipa-devirt.c (odr_type_warn_count): Add type.
7492 (possible_polymorphic_call_targets): Set it.
7493 (ipa_devirt): Use it.
7494
7495 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7496
7497 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7498 Document.
7499 * ipa-devirt.c: Include hash-map.h
7500 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7501 (clear_speculation): Break out of ...
7502 (get_class_context): ... here; speed up handling obviously useless
7503 speculations.
7504 (odr_type_warn_count, decl_warn_count): New structures.
7505 (final_warning_record): New structure.
7506 (final_warning_records): New static variable.
7507 (possible_polymorphic_call_targets): Cleanup handling of
7508 speculative info; do not build speculation when user do not care;
7509 record info about warnings when asked for.
7510 (add_decl_warning): New function.
7511 (type_warning_cmp): New function.
7512 (decl_warning_cmp): New function.
7513 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7514 (gate): Enable pass when warnings are requested.
7515 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7516 options.
7517
7518 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7519
7520 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7521 Fix cast.
7522 (hash_map::remove): New method.
7523 (hash_map::traverse): New method.
7524 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7525 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7526 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7527 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7528 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7529 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7530 pointer_map.
7531
7532 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7533
7534 * hash-set.h: new File.
7535 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7536 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7537 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7538 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7539 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7540 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7541 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7542 varpool.c: Use hash_set instead of pointer_set.
7543
7544 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7545
7546 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7547
7548 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7549
7550 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7551 for frame access when strict_p is false.
7552
7553 2014-08-01 Renlin Li <renlin.li@arm.com>
7554 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7555
7556 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7557 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7558 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7559 Declaration.
7560 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7561 predicate.
7562 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7563 aarch64_mem_pair_offset.
7564
7565 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7566
7567 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7568 offset.
7569 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7570 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7571
7572 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7573
7574 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7575
7576 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7577
7578 PR regression/61510
7579 * cgraphunit.c (analyze_functions): Use get_create rather than get
7580 for decls which are clones of abstract functions.
7581
7582 2014-08-01 Martin Liska <mliska@suse.cz>
7583
7584 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7585 * ipa-prop.h (count_formal_params): Global function created from static.
7586 * ipa-prop.c (count_formal_params): Likewise.
7587 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7588 profiles for semantically equivalent functions.
7589 * passes.c (do_per_function): If we load body of a function
7590 during WPA, this condition should behave same.
7591 * varpool.c (ctor_for_folding): More tolerant assert for variable
7592 aliases created during WPA.
7593
7594 2014-08-01 Martin Liska <mliska@suse.cz>
7595
7596 * doc/invoke.texi (Options That Control Optimization): Documentation
7597 for -foptimize-strlen introduced. Optimization levels default options
7598 fixed.
7599
7600 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7601
7602 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7603 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7604 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7605 type to bool.
7606 * stor-layout.h (min_align_of_type): New prototype.
7607 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7608 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7609 check.
7610 * ubsan.c: Include builtins.h.
7611 (ubsan_expand_bounds_ifn): Change return type to bool,
7612 always return true.
7613 (ubsan_expand_null_ifn): Change return type to bool, change
7614 argument to gimple_stmt_iterator *. Handle both null and alignment
7615 sanitization, take type from ckind argument's type rather than
7616 first argument.
7617 (instrument_member_call): Removed.
7618 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7619 Handle both null and alignment sanitization, don't say whole
7620 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7621 call instead of 2 argument.
7622 (instrument_null): Adjust instrument_mem_ref caller. Don't
7623 instrument calls here.
7624 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7625 like SANITIZE_NULL.
7626 * stor-layout.c (min_align_of_type): New function.
7627 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7628 Or it into SANITIZE_UNDEFINED.
7629 * doc/invoke.texi (-fsanitize=alignment): Document.
7630
7631 2014-07-31 Andi Kleen <ak@linux.intel.com>
7632
7633 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7634
7635 2014-07-31 Andi Kleen <ak@linux.intel.com>
7636
7637 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7638 inchash.
7639 (vn_reference_compute_hash): Dito.
7640 (vn_nary_op_compute_hash): Dito.
7641 (vn_phi_compute_hash): Dito.
7642 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7643
7644 2014-07-31 Andi Kleen <ak@linux.intel.com>
7645
7646 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7647 Rename to inchash:add_expr_commutative. Convert to inchash.
7648 (iterative_hash_hashable_expr): Rename to
7649 inchash:add_hashable_expr. Convert to inchash.
7650 (avail_expr_hash): Dito.
7651
7652 2014-07-31 Andi Kleen <ak@linux.intel.com>
7653
7654 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7655 Convert to inchash.
7656
7657 2014-07-31 Andi Kleen <ak@linux.intel.com>
7658
7659 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7660
7661 2014-07-31 Andi Kleen <ak@linux.intel.com>
7662
7663 * Makefile.in (OBJS): Add rtlhash.o
7664 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7665 (loc_checksum): Dito.
7666 (loc_checksum_ordered): Dito.
7667 (hash_loc_operands): Dito.
7668 (hash_locs): Dito.
7669 (hash_loc_list): Dito.
7670 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7671 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7672 * rtlhash.c: New file.
7673 * rtlhash.h: New file.
7674
7675 2014-07-31 Andi Kleen <ak@linux.intel.com>
7676
7677 * inchash.h (inchash): Change inchash class to namespace.
7678 (class hash): ... Rename from inchash.
7679 (add_object): Move from macro to class template.
7680 * lto-streamer-out.c (hash_tree): Change inchash
7681 to inchash::hash.
7682 * tree.c (build_type_attribute_qual_variant): Dito.
7683 (type_hash_list): Dito.
7684 (attribute_hash_list): Dito.
7685 (iterative_hstate_expr): Rename to inchash::add_expr
7686 (build_range_type_1): Change inchash to inchash::hash
7687 and use hash::add_expr.
7688 (build_array_type_1): Dito.
7689 (build_function_type): Dito
7690 (build_method_type_directly): Dito.
7691 (build_offset_type): Dito.
7692 (build_complex_type): Dito.
7693 (make_vector_type): Dito.
7694 * tree.h (iterative_hash_expr): Dito.
7695
7696 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7697
7698 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7699
7700 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7701
7702 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7703 correct alphabetical position.
7704 (vpaddd_f64): Rewrite using builtins.
7705 (vpaddd_s64): Move to correct alphabetical position.
7706 (vpaddd_u64): New.
7707
7708 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7709
7710 PR target/61844
7711 * config/sh/sh.c (sh_legitimate_address_p,
7712 sh_legitimize_reload_address): Handle reg+reg address modes when
7713 ALLOW_INDEXED_ADDRESS is false.
7714 * config/sh/predicates.md (general_movsrc_operand,
7715 general_movdst_operand): Likewise.
7716
7717 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7718
7719 * config/aarch64/aarch64-builtins.c
7720 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7721 BYTES_BIG_ENDIAN.
7722
7723 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7724
7725 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7726 the generated mask based on BYTES_BIG_ENDIAN.
7727 (aarch64_simd_check_vect_par_cnst_half): New.
7728 * config/aarch64/aarch64-protos.h
7729 (aarch64_simd_check_vect_par_cnst_half): New.
7730 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7731 the check out to aarch64_simd_check_vect_par_cnst_half.
7732 (vect_par_cnst_lo_half): Likewise.
7733 * config/aarch64/aarch64-simd.md
7734 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7735 (move_hi_quad_<mode>): Always generate a low mask.
7736
7737 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7738
7739 * doc/invoke.texi (AVR Options): Add documentation about
7740 __AVR_DEVICE_NAME__ built-in macro.
7741
7742 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7743
7744 PR target/61948
7745 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7746 constraints are satisfied.
7747 (<shift>di3_neon): Likewise.
7748
7749 2014-07-31 Richard Biener <rguenther@suse.de>
7750
7751 PR tree-optimization/61964
7752 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7753 by structural equality.
7754
7755 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7756
7757 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7758 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7759 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7760 New enums.
7761 * gcc.c (sanitize_spec_function): Support new option.
7762 (SANITIZER_SPEC): Remove now redundant check.
7763 * opts.c (common_handle_option): Support new option.
7764 (finish_options): Check for incompatibilities.
7765 * toplev.c (process_options): Split userspace-specific checks.
7766
7767 2014-07-31 Richard Biener <rguenther@suse.de>
7768
7769 * lto-streamer.h (struct output_block): Remove global.
7770 (struct data_in): Remove labels, num_named_labels and
7771 num_unnamed_labels.
7772 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7773 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7774
7775 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7776
7777 PR c++/60517
7778 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7779 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7780 (isolate_path): New argument to avoid inserting a trap.
7781 (find_implicit_erroneous_behaviour): Handle returning the address
7782 of a local variable.
7783 (find_explicit_erroneous_behaviour): Likewise.
7784
7785 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7786
7787 PR lto/61868
7788 * toplev.c (init_random_seed): Move piece of code never called to
7789 set_random_seed.
7790 (set_random_seed): see above.
7791
7792 2014-07-31 Tom de Vries <tom@codesourcery.com>
7793
7794 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7795
7796 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7797
7798 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7799 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7800
7801 2014-07-31 Richard Biener <rguenther@suse.de>
7802
7803 * data-streamer.h (streamer_write_data_stream): Declare here,
7804 renamed from ...
7805 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7806 * lto-cgraph.c (lto_output_node): Adjust.
7807 (lto_output_varpool_node): Likewise.
7808 * data-streamer-out.c (streamer_string_index): Likewise.
7809 (streamer_write_data_stream, lto_append_block): Move from ...
7810 * lto-section-out.c (lto_output_data_stream,
7811 lto_append_block): ... here.
7812
7813 2014-07-30 Mike Stump <mikestump@comcast.net>
7814
7815 * configure.ac: Also check for popen.
7816 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7817 * configure: Regenerate.
7818 * config.in: Regenerate.
7819
7820 2014-07-30 Martin Jambor <mjambor@suse.cz>
7821
7822 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7823 parameter to gimple.
7824
7825 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7826
7827 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7828 address as second parameter to __tpf_eh_return routine.
7829
7830 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7831
7832 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7833 Thumb2.
7834
7835 2014-07-30 Tom Tromey <tromey@redhat.com>
7836
7837 PR c/59855
7838 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7839 * doc/extend.texi (Type Attributes): Document designated_init
7840 attribute.
7841
7842 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7843
7844 * graphite-isl-ast-to-gimple.c:
7845 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7846 (gcc_expression_from_isl_expression): Pass type to
7847 gcc_expression_from_isl_ast_expr_id.
7848
7849 2014-07-30 Richard Biener <rguenther@suse.de>
7850
7851 * lto-streamer.h (lto_write_data): New function.
7852 * langhooks.c (lhd_append_data): Do not free block.
7853 * lto-section-out.c (lto_write_data): New function writing
7854 raw data to the current section.
7855 (lto_write_stream): Adjust for langhook semantic change.
7856 (lto_destroy_simple_output_block): Write header directly.
7857 * lto-opts.c (lto_write_options): Write options directly.
7858 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7859 (lto_output_toplevel_asms): Likewise.
7860 (copy_function_or_variable): Copy data directly.
7861 (write_global_references): Output index table directly.
7862 (lto_output_decl_state_refs): Likewise.
7863 (write_symbol): Write data directly.
7864 (produce_symtab): Adjust.
7865 (produce_asm_for_decls): Output header and refs directly.
7866
7867 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7868
7869 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7870 to speculative_targets
7871 (get_class_context): Fix handling of contextes without outer type;
7872 avoid matching non-polymorphic types in LTO.
7873 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7874 parameter to speculative_targetsp; handle speculation.
7875 (dump_possible_polymorphic_call_targets): Update dumping.
7876
7877 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7878
7879 * common.opt (Wodr): Enable by default.
7880
7881 2014-07-29 Olivier Hainque <hainque@adacore.com>
7882
7883 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7884
7885 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7886
7887 PR bootstrap/61914
7888 * gengtype.c (strtoken): New function.
7889 (create_user_defined_type): Replace strtok with strtoken.
7890
7891 2014-07-29 Nathan Sidwell <nathan@acm.org>
7892
7893 * gcov-io.c (gcov_var): Make hidden.
7894 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7895 (gcov_do_dump): Declare.
7896 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7897
7898 2014-07-29 Martin Jambor <mjambor@suse.cz>
7899
7900 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7901 parameter to gimple.
7902 (sra_modify_assign): Likewise.
7903
7904 2014-07-29 Richard Biener <rguenther@suse.de>
7905
7906 PR middle-end/52478
7907 * expr.c (expand_expr_real_2): Revert last change.
7908
7909 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7910
7911 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7912 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7913 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7914 call.
7915 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7916 (contains_type_p): Forward declare.
7917 (polymorphic_call_target_hasher::hash): Hash speculative info.
7918 (polymorphic_call_target_hasher::equal): Compare speculative info.
7919 (get_class_context): Handle speuclation.
7920 (contains_type_p): Update.
7921 (get_polymorphic_call_info_for_decl): Update.
7922 (walk_ssa_copies): Break out from ...
7923 (get_polymorphic_call_info): ... here; set speculative context
7924 before giving up.
7925 * ipa-prop.c (ipa_write_indirect_edge_info,
7926 ipa_read_indirect_edge_info): Stream speculative context.
7927 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7928 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7929 SPECULATIVE_MAYBE_DERIVED_TYPE).
7930 (possible_polymorphic_call_targets overriders): Update.
7931 (dump_possible_polymorphic_call_targets overriders): Update.
7932 (dump_possible_polymorphic_call_target_p overriders): Update.
7933
7934 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7935
7936 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7937 ipa-devirt path; fix thinko there.
7938
7939 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7940
7941 * config/i386/i386.c (ix86_return_in_memory): Replace one
7942 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7943
7944 2014-07-28 Marek Polacek <polacek@redhat.com>
7945
7946 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7947
7948 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7949
7950 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7951 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7952 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7953 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7954 (USE_LD_AS_NEEDED): Likewise.
7955 (ASM_APP_ON): Likewise.
7956 (ASM_APP_OFF): Likewise.
7957 (TARGET_POSIX_IO): Likewise.
7958 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7959 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7960 (USE_LD_AS_NEEDED): Likewise.
7961 (ASM_APP_ON): Likewise.
7962 (ASM_APP_OFF): Likewise.
7963 (TARGET_POSIX_IO): Likewise.
7964
7965 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7966
7967 PR middle-end/61734
7968 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7969 operators other than the equality operators.
7970
7971 2014-07-28 Richard Biener <rguenther@suse.de>
7972
7973 PR middle-end/52478
7974 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7975 sure to register SImode ones, not only >= word_mode ones.
7976 * expr.c (expand_expr_real_2): When expanding -ftrapv
7977 binops do not use OPTAB_LIB_WIDEN.
7978
7979 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7980
7981 PR middle-end/61919
7982 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7983 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7984 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7985 inserting them in the insn stream.
7986
7987 2014-07-28 Marek Polacek <polacek@redhat.com>
7988
7989 PR middle-end/61913
7990 * common.opt (Wodr): Add Var.
7991
7992 2014-07-28 Richard Biener <rguenther@suse.de>
7993
7994 PR tree-optimization/61921
7995 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7996 if there is a varpool node before dereferencing it.
7997
7998 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7999
8000 * graphite-sese-to-poly.c:
8001 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8002 id of the pbb), which contains pointer to the pbb1.
8003
8004 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8005
8006 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8007
8008 * graphite-isl-ast-to-gimple.c:
8009 (graphite_create_new_guard): New function.
8010 (translate_isl_ast_node_if): New function.
8011 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8012
8013 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8014
8015 2014-07-27 Anthony Green <green@moxielogic.com>
8016
8017 * config.gcc: Add moxie-*-moxiebox* configuration.
8018 * config/moxie/moxiebox.h: New file.
8019
8020 2014-07-26 Andrew Pinski <apinski@cavium.com>
8021
8022 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8023 from the read only register.
8024
8025 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8026
8027 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8028 as the allocation class if it isn't likely to be spilled.
8029
8030 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8031
8032 * rtl.h (tls_referenced_p): Declare.
8033 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8034 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8035 (mips_cannot_force_const_mem): Use tls_referenced_p.
8036 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8037 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8038 instead of pa_tls_referenced_p.
8039 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8040 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8041 (pa_legitimate_constant_p): Likewise.
8042 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8043 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8044 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8045 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8046 rs6000_tls_referenced_p.
8047 (rs6000_tls_symbol_ref_1): Delete.
8048
8049 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8050
8051 PR target/44551
8052 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8053 Optimize inverse of a VEC_CONCAT.
8054
8055 2014-07-25 Xinliang David Li <davidxl@google.com>
8056
8057 * params.def: New parameter.
8058 * coverage.c (get_coverage_counts): Check new flag.
8059 (coverage_compute_profile_id): Check new flag.
8060 (coverage_begin_function): Check new flag.
8061 (coverage_end_function): Check new flag.
8062 * value-prof.c (coverage_node_map_initialized_p): New function.
8063 (init_node_map): Populate map with all functions.
8064 * doc/invoke.texi: Document new parameter.
8065
8066 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8067 Richard Biener <rguenther@suse.de>
8068
8069 * lto-streamer-out.c (struct sccs): Turn to ...
8070 (class DFS): ... this one; refactor the DFS walk so it can
8071 be re-done on per-SCC basis.
8072 (DFS::DFS): New constructor.
8073 (DFS::~DFS): New destructor.
8074 (hash_tree): Add new MAP argument holding in-SCC hash values;
8075 remove POINTER_TYPE hashing hack.
8076 (scc_entry_compare): Rename to ...
8077 (DFS::scc_entry_compare): ... this one.
8078 (hash_scc): Rename to ...
8079 (DFS::hash_scc): ... this one; pass output_block instead
8080 of streamer_cache; work harder to get unique and stable SCC
8081 hashes.
8082 (DFS_write_tree): Rename to ...
8083 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8084 (lto_output_tree): Update.
8085
8086 2014-07-25 Andi Kleen <ak@linux.intel.com>
8087
8088 * lto-streamer-out.c (hash_tree): Convert to inchash.
8089
8090 2014-07-25 Andi Kleen <ak@linux.intel.com>
8091
8092 * tree.c (build_type_attribute_qual_variant): Use inchash.
8093 (type_hash_list): Dito.
8094 (attribute_hash_list): Dito
8095 (iterative_hstate_expr): Dito.
8096 (iterative_hash_expr): Dito.
8097 (build_range_type_1): Dito.
8098 (build_array_type_1): Dito.
8099 (build_function_type): Dito.
8100 (build_method_type_directly): Dito.
8101 (build_offset_type): Dito.
8102 (build_complex_type): Dito.
8103 (make_vector_type): Dito.
8104 * tree.h (iterative_hash_expr): Add compat wrapper.
8105 (iterative_hstate_expr): Add.
8106
8107 2014-07-25 Andi Kleen <ak@linux.intel.com>
8108
8109 * Makefile.in (OBJS): Add inchash.o.
8110 (PLUGIN_HEADERS): Add inchash.h.
8111 * ipa-devirt.c: Include inchash.h.
8112 * lto-streamer-out.c: Dito.
8113 * tree-ssa-dom.c: Dito.
8114 * tree-ssa-pre.c: Dito.
8115 * tree-ssa-sccvn.c: Dito.
8116 * tree-ssa-tail-merge.c: Dito.
8117 * asan.c: Dito.
8118 * tree.c (iterative_hash_hashval_t): Move to ...
8119 (iterative_hash_host_wide_int): Move to ...
8120 * inchash.c: Here. New file.
8121 * tree.h (iterative_hash_hashval_t): Move to ...
8122 (iterative_hash_host_wide_int): Move to ...
8123 * inchash.h: Here. New file.
8124
8125 2014-07-25 Richard Biener <rguenther@suse.de>
8126
8127 PR middle-end/61762
8128 PR middle-end/61894
8129 * fold-const.c (native_encode_int): Add and handle offset
8130 parameter to do partial encodings of expr.
8131 (native_encode_fixed): Likewise.
8132 (native_encode_real): Likewise.
8133 (native_encode_complex): Likewise.
8134 (native_encode_vector): Likewise.
8135 (native_encode_string): Likewise.
8136 (native_encode_expr): Likewise.
8137 * fold-const.c (native_encode_expr): Add offset parameter
8138 defaulting to -1.
8139 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8140 (fold_ctor_reference): Handle all reads from tcc_constant
8141 ctors.
8142
8143 2014-07-25 Richard Biener <rguenther@suse.de>
8144
8145 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8146 as possibly unused.
8147
8148 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8149
8150 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8151
8152 2014-07-24 Kyle McMartin <kyle@redhat.com>
8153
8154 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8155
8156 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8157
8158 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8159 Add prototype.
8160 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8161 function.
8162 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8163 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8164 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8165
8166 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8167
8168 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8169 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8170 aggregate types. Instead, *all* aggregate types, except for single-
8171 element or homogeneous float/vector aggregates, are quadword-aligned
8172 if required by their type alignment. Issue -Wpsabi note when a type
8173 is now treated differently than before.
8174
8175 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8176
8177 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8178 does not fit fully into floating-point registers, and there is still
8179 space in the register parameter area, use GPRs to pass those parts
8180 of the argument. Issue -Wpsabi note if any parameter is now treated
8181 differently than before.
8182 (rs6000_arg_partial_bytes): Update.
8183
8184 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8185
8186 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8187
8188 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8189
8190 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8191 * toplev.c (initialize_rtl): Don't use it. Move previously
8192 "language-dependent" calls to...
8193 (backend_init): ...here.
8194 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8195 Assert that RTL initialization hasn't happend yet.
8196
8197 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8198
8199 PR rtl-optimization/61629
8200 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8201 they have already been initialized.
8202
8203 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8204
8205 PR middle-end/61268
8206 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8207 DECL_INCOMING_RTL and entry_parm.
8208 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8209 * calls.c (load_register_parameters): Likewise argument values.
8210 (emit_library_call_value_1, store_one_arg): Likewise argument
8211 save areas.
8212 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8213 stack slot.
8214 * explow.c (validize_mem): Modify the argument in-place.
8215
8216 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8217
8218 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8219 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8220
8221 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8222
8223 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8224 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8225
8226 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8227
8228 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8229 (aarch64_save_callee_saves): New parameter "skip_wb".
8230 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8231
8232 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8233
8234 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8235 "wb_candidate2".
8236 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8237
8238 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8239
8240 * graphite-isl-ast-to-gimple.c:
8241 (graphite_create_new_loop): Add calling of isl_id_free to properly
8242 decrement reference counts.
8243
8244 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8245
8246 2014-07-24 Martin Liska <mliska@suse.cz>
8247 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8248 function used.
8249 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8250 (rs6000_code_end): Likewise.
8251
8252 2014-07-24 Martin Liska <mliska@suse.cz>
8253
8254 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8255 symtab_node funtion used.
8256 (rs6000_xcoff_declare_object_name): Likewise.
8257
8258 2014-07-24 Martin Liska <mliska@suse.cz>
8259
8260 * cgraphunit.c (compile): Correct function used.
8261
8262 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8263
8264 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8265 as non-indexable.
8266
8267 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8268
8269 PR lto/61802
8270 * varasm.c (bss_initializer_p): Handle offlined ctors.
8271 (align_variable, get_variable_align): Likewise.
8272 (make_decl_one_only): Likewise.
8273 (default_binds_local_p_1): Likewise.
8274 (decl_binds_to_current_def_p): Likewise.
8275 (get_variable_section): Get constructor if it is offlined.
8276 (assemble_variable_contents): Sanity check that the caller
8277 streamed in the ctor in LTO.
8278
8279 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8280
8281 * graphite-isl-ast-to-gimple.c:
8282 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8283 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8284 isl_ast_op_pdiv_r to the different case.
8285
8286 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8287
8288 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8289
8290 PR middle-end/61876
8291 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8292 when flag_errno_math is on.
8293
8294 2014-07-24 Martin Liska <mliska@suse.cz>
8295
8296 * cgraph.h (varpool_node):
8297 (availability get_availability (void)):
8298 created from cgraph_variable_initializer_availability
8299 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8300 created from: cgraph_variable_initializer_availability
8301 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8302 (void finalize_named_section_flags (void)):
8303 created from varpool_finalize_named_section_flags
8304 (bool assemble_decl (void)): created from varpool_assemble_decl
8305 (void analyze (void)): created from varpool_analyze_node
8306 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8307 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8308 (void remove_initializer (void)): created from varpool_remove_initializer
8309 (tree get_constructor (void)): created from varpool_get_constructor
8310 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8311 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8312 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8313 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8314 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8315 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8316 (static bool output_variables (void)): created from varpool_output_variables
8317 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8318 created from varpool_extra_name_alias
8319 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8320 (static void dump_varpool (FILE *f)): created from dump_varpool
8321 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8322 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8323 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8324 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8325 (void assemble_aliases (void)): created from assemble_aliases
8326
8327 2014-07-24 Martin Liska <mliska@suse.cz>
8328
8329 * cgraph.h (symtab_node):
8330 (void register_symbol (void)): created from symtab_register_node
8331 (void remove (void)): created from symtab_remove_node
8332 (void dump (FILE *f)): created from dump_symtab_node
8333 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8334 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8335 (struct ipa_ref *add_reference (symtab_node *referred_node,
8336 enum ipa_ref_use use_type)): created from add_reference
8337 (struct ipa_ref *add_reference (symtab_node *referred_node,
8338 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8339 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8340 gimple stmt)): created from maybe_add_reference
8341 (bool semantically_equivalent_p (symtab_node *target)): created from
8342 symtab_semantically_equivalent_p
8343 (void remove_from_same_comdat_group (void)): created from
8344 remove_from_same_comdat_group
8345 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8346 symtab_add_to_same_comdat_group
8347 (void dissolve_same_comdat_group_list (void)): created from
8348 symtab_dissolve_same_comdat_group_list
8349 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8350 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8351 created from symtab_alias_ultimate_target
8352 (inline symtab_node *next_defined_symbol (void)): created from
8353 symtab_next_defined_symbol
8354 (bool resolve_alias (symtab_node *target)): created from
8355 symtab_resolve_alias
8356 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8357 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8358 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8359 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8360 (void set_section (const char *section)): created from set_section_1
8361 (enum availability get_availability (void)): created from symtab_node_availability
8362 (void make_decl_local (void)): created from symtab_make_decl_local
8363 (bool real_symbol_p (void)): created from symtab_read_node
8364 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8365 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8366 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8367 symtab_in_same_comdat_p;
8368 (bool address_taken_from_non_vtable_p (void)): created from
8369 address_taken_from_non_vtable_p
8370 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8371 (static void dump_table (FILE *)): created from dump_symtab
8372 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8373 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8374 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8375 symtab_used_from_object_file_p
8376 (void dump_base (FILE *)): created from dump_symtab_base
8377 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8378 (void unregister (void)): created from symtab_unregister_node
8379 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8380 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8381 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8382 symtab_nonoverwritable_alias_1
8383 * cgraph.h (cgraph_node):
8384 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8385 created from cgraph_remove_node_and_inline_clones
8386 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8387 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8388 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8389 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8390 created from cgraph_function_node
8391 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8392 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8393 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8394 created from cgraph_create_clone
8395 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8396 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8397 created from cgraph_create_virtual_clone
8398 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8399 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8400 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8401 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8402 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8403 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8404 created from cgraph_function_version_info
8405 (struct cgraph_function_version_info *insert_new_function_version (void)):
8406 created from insert_new_cgraph_node_version
8407 (struct cgraph_function_version_info *function_version (void)): created from
8408 get_cgraph_node_version
8409 (void analyze (void)): created from analyze_function
8410 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8411 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8412 tree real_alias) cgraph_add_thunk
8413 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8414 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8415 created from cgraph_function_or_thunk_node
8416 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8417 created from expand_thunk
8418 (void reset (void)): created from cgraph_reset_node
8419 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8420 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8421 (void remove (void)): created from cgraph_remove_node
8422 (void dump (FILE *f)): created from dump_cgraph_node
8423 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8424 (bool get_body (void)): created from cgraph_get_body
8425 (void release_body (void)): created from cgraph_release_function_body
8426 (void unnest (void)): created from cgraph_unnest_node
8427 (void make_local (void)): created from cgraph_make_node_local
8428 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8429 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8430 gcov_type count, int freq)): created from cgraph_create_edge
8431 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8432 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8433 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8434 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8435 created from cgraph_create_edge_including_clones
8436 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8437 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8438 (void remove_callers (void)): created from cgraph_node_remove_callers
8439 (void remove_callees (void)): created from cgraph_node_remove_callees
8440 (enum availability get_availability (void)): created from cgraph_function_body_availability
8441 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8442 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8443 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8444 (void call_duplication_hooks (cgraph_node *node2)): created from
8445 cgraph_call_node_duplication_hooks
8446 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8447 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8448 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8449 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8450 (void call_function_insertion_hooks (void)):
8451 created from cgraph_call_function_insertion_hooks
8452 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8453 (bool local_p (void)): created from cgraph_local_node
8454 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8455 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8456 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8457 (inline bool only_called_directly_or_aliased_p (void)):
8458 created from cgraph_only_called_directly_or_aliased_p
8459 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8460 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8461 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8462 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8463 (bool can_remove_if_no_direct_calls_p (void)):
8464 created from cgraph_can_remove_if_no_direct_calls_p
8465 (inline bool has_gimple_body_p (void)):
8466 created from cgraph_function_with_gimple_body_p
8467 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8468 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8469 (static inline void debug_cgraph (void)): created from debug_cgraph
8470 (static void record_function_versions (tree decl1, tree decl2)):
8471 created from record_function_versions
8472 (static void delete_function_version (tree decl)):
8473 created from delete_function_version
8474 (static void add_new_function (tree fndecl, bool lowered)):
8475 created from cgraph_add_new_function
8476 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8477 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8478 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8479 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8480 (static cgraph_node *get_for_asmname (tree asmname)):
8481 created from cgraph_node_for_asm
8482 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8483 created from cgraph_same_body_alias
8484 (static bool used_from_object_file_p_worker (cgraph_node *node,
8485 void *): new function
8486 (static bool non_local_p (cgraph_node *node, void *)):
8487 created from cgraph_non_local_node_p_1
8488 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8489 created from verify_cgraph
8490 (static bool make_local (cgraph_node *node, void *)):
8491 created from cgraph_make_node_local
8492 (static cgraph_node *create_alias (tree alias, tree target)):
8493 created from cgraph_create_function_alias
8494 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8495 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8496 created from cgraph_create_edge_1
8497 * cgraph.h (varpool_node):
8498 (void remove (void)): created from varpool_remove_node
8499 (void dump (FILE *f)): created from dump_varpool_node
8500
8501 2014-07-24 Richard Biener <rguenther@suse.de>
8502
8503 PR ipa/61823
8504 * tree-ssa-structalias.c (create_variable_info_for_1):
8505 Use varpool_get_constructor.
8506 (create_variable_info_for): Likewise.
8507
8508 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8509
8510 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8511 subtract outgoing area size when restoring stack_pointer_rtx.
8512
8513 2014-07-24 Nick Clifton <nickc@redhat.com>
8514
8515 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8516 that operations are taking place in parallel.
8517 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8518
8519 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8520
8521 * omp-low.c (extract_omp_for_data): Add missing break statement.
8522
8523 2014-07-24 Richard Biener <rguenther@suse.de>
8524
8525 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8526 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8527 and adjust MOVE_RATIO query accordingly.
8528 (estimate_num_insns): Adjust callers.
8529 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8530 * ipa-cp.c (gather_context_independent_values,
8531 estimate_local_effects): Likewise.
8532 * ipa-split.c (consider_split): Likewise.
8533
8534 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8535
8536 * config/i386/driver-i386.c: Remove names of unused arguments and
8537 unnecessary unused attributes.
8538 * config/i386/host-mingw32.c: Likewise.
8539 * config/i386/i386.c: Likewise.
8540 * config/i386/winnt-stubs.c: Likewise.
8541 * config/i386/winnt.c: Likewise.
8542
8543 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8544
8545 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8546 (aarch64_gen_loadwb_pair): New helper function.
8547 (aarch64_expand_epilogue): Simplify code using new helper functions.
8548 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8549
8550 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8551
8552 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8553 (aarch64_gen_storewb_pair): New helper function.
8554 (aarch64_expand_prologue): Simplify code using new helper functions.
8555 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8556
8557 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8558
8559 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8560 Rename to aarch64_save_callee_saves, remove restore code.
8561 (aarch64_restore_callee_saves): New function.
8562
8563 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8564
8565 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8566 (aarch64_save_callee_saves): New function to handle reg save
8567 for both core and vectore regs.
8568
8569 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8570
8571 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8572 (aarch64_gen_store_pair): New helper function.
8573 (aarch64_save_or_restore_callee_save_registers)
8574 (aarch64_save_or_restore_fprs): Use new helper functions.
8575
8576 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8577
8578 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8579 (aarch64_save_or_restore_callee_save_registers)
8580 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8581
8582 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8583
8584 * config/aarch64/aarch64.c
8585 (aarch64_save_or_restore_callee_save_registers)
8586 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8587
8588 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8589
8590 * config/aarch64/aarch64.c
8591 (aarch64_save_or_restore_callee_save_registers)
8592 (aarch64_save_or_restore_fprs): Remove 'increment'.
8593
8594 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8595
8596 * config/aarch64/aarch64.c
8597 (aarch64_save_or_restore_callee_save_registers)
8598 (aarch64_save_or_restore_fprs): Use register offset in
8599 cfun->machine->frame.reg_offset.
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): Remove base_rtx.
8606
8607 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8608
8609 * config/aarch64/aarch64.c
8610 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8611 to 'start_offset'. Remove local variable 'start_offset'.
8612
8613 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8614
8615 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8616 type to HOST_WIDE_INT.
8617
8618 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8619
8620 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8621 (aarch64_save_or_restore_fprs)
8622 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8623
8624 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8625
8626 * config/arm/t-rtems-eabi: Add
8627 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8628 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8629 mbig-endian/mthumb/march=armv7-r, and
8630 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8631 multilibs.
8632
8633 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8634 Chris Johns <chrisj@rtems.org>
8635 Joel Sherrill <joel.sherrill@oarcorp.com>
8636
8637 * config.gcc: Add nios2-*-rtems*.
8638 * config/nios2/rtems.h: New file.
8639 * gcc/config/nios2/t-rtems: New file.
8640
8641 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8642
8643 PR target/61396
8644 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8645 constant numbers, not general constants.
8646 (rs6000_expand_vector_init): Ditto.
8647
8648 2014-07-23 Nathan Sidwell <nathan@acm.org>
8649
8650 * gcov-tool.c (gcov_list): Declare here.
8651 (set_gcov_list): Remove.
8652 (gcov_output_files): Set gcov_list directly.
8653
8654 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8655
8656 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8657
8658 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8659
8660 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8661 callee-saved registers are available for padding purpose
8662 and r3 is not mandatory, then prefer use those callee-saved
8663 instead of r3.
8664
8665 2014-07-23 Richard Biener <rguenther@suse.de>
8666
8667 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8668 * combine.c: Include statistics.h and params.h.
8669 (combine_instructions): Guard three and four insn combines
8670 with max-combine-insns value. Record statistics for combines
8671 performed.
8672 * doc/invoke.texi (max-combine-insns): Document new param.
8673
8674 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8675
8676 * graphite-isl-ast-to-gimple.c:
8677 (translate_isl_ast_node_block): New function.
8678 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8679
8680 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8681 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8682
8683 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8684
8685 * graphite-isl-ast-to-gimple.c:
8686 (get_max_schedule_dimensions): New function.
8687 (extend_schedule): Likewise.
8688 (generate_isl_schedule): Add calling of extend_schedule and
8689 get_max_schedule_dimensions.
8690
8691 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8692
8693 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8694 (case UNSPEC): Handle UNSPEC_RBIT.
8695
8696 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8697
8698 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8699 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8700
8701 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8702
8703 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8704
8705 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8706
8707 * graphite-isl-ast-to-gimple.c:
8708 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8709 (ivs_params_clear):
8710 (build_iv_mapping): New function.
8711 (translate_isl_ast_node_user): Likewise.
8712 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8713
8714 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8715 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8716 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8717
8718 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8719
8720 PR target/55701
8721 * config/arm/arm.md (setmem): New pattern.
8722 * config/arm/arm-protos.h (struct tune_params): New fields.
8723 (arm_gen_setmem): New prototype.
8724 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8725 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8726 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8727 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8728 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8729 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8730 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8731 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8732 (arm_const_inline_cost): New function.
8733 (arm_block_set_max_insns): New function.
8734 (arm_block_set_non_vect_profit_p): New function.
8735 (arm_block_set_vect_profit_p): New function.
8736 (arm_block_set_unaligned_vect): New function.
8737 (arm_block_set_aligned_vect): New function.
8738 (arm_block_set_unaligned_non_vect): New function.
8739 (arm_block_set_aligned_non_vect): New function.
8740 (arm_block_set_vect, arm_gen_setmem): New functions.
8741
8742 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8743
8744 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8745
8746 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8747
8748 PR target/61855
8749 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8750 out of #ifdef __OPTIMIZE__.
8751
8752 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8753
8754 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8755 different trapping status if -fnon-call-exceptions is enabled.
8756
8757 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8758
8759 * expr.c (store_field): Handle VOIDmode for calls that return values
8760 in multiple locations.
8761
8762 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8763
8764 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8765 (altivec_vsldoi_<mode>): Likewise.
8766
8767 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8768
8769 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8770 to the number of characters in the line.
8771
8772 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8773
8774 * graphite-isl-ast-to-gimple.c: Add using of
8775 build_nonstandard_integer_type instead of int128_integer_type_node.
8776
8777 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8778
8779 * toplev.c (output_stack_usage): Adjust the location of the warning.
8780
8781 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8782
8783 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8784 (*membar_storeload): Disable for LEON3.
8785
8786 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8787
8788 PR rtl-optimization/61461
8789 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8790
8791 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8792
8793 PR target/61794
8794 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8795 Fix instruction constraint.
8796 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8797
8798 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8799
8800 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8801
8802 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8803
8804 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8805 GNU coding standards.
8806 (nds32_register_move_cost): Likewise.
8807 (nds32_memory_move_cost): Likewise.
8808 (nds32_address_cost): Likewise.
8809
8810 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8811
8812 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8813
8814 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8815
8816 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8817 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8818 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8819 (HAVE_sync_compare_and_swapqi): Define.
8820 (HAVE_sync_compare_and_swaphi): Likewise.
8821 (HAVE_sync_compare_and_swapsi): Likewise.
8822
8823 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8824
8825 * config/mips/p5600.md: Add missing cpu tests.
8826
8827 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8828
8829 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8830 (vmla_f64): Likewise.
8831 (vfms_f64): Likewise.
8832 (vmls_f64): Likewise.
8833
8834 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8835
8836 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8837 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8838
8839 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8840
8841 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8842 (vmlal_high_lane_s32): Likewise.
8843 (vmlal_high_lane_u16): Likewise.
8844 (vmlal_high_lane_u32): Likewise.
8845 (vmlsl_high_lane_s16): Likewise.
8846 (vmlsl_high_lane_s32): Likewise.
8847 (vmlsl_high_lane_u16): Likewise.
8848 (vmlsl_high_lane_u32): Likewise.
8849
8850 2014-07-17 Terry Guo <terry.guo@arm.com>
8851
8852 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8853 (alus_reg): Renamed to alus_sreg.
8854 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8855 from alu_reg to alu_sreg. Change type of dsp instructions from
8856 alu_reg to alu_dsp_reg.
8857 * config/arm/thumb1.md: Likewise.
8858 * config/arm/thumb2.md: Likewise.
8859 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8860 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8861 with alu_sreg and alus_sreg.
8862 * config/arm/arm1026ejs.md (alu_op): Likewise.
8863 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8864 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8865 * config/arm/fa526.md (526_alu_op): Likewise.
8866 * config/arm/fa606te.md (606te_alu_op): Likewise.
8867 * config/arm/fa626te.md (626te_alu_op): Likewise.
8868 * config/arm/fa726te.md (726te_alu_op): Likewise.
8869 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8870 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8871 alu_sreg, alu_dsp_reg and alus_sreg.
8872 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8873 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8874 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8875 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8876 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8877 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8878 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8879 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8880 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8881 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8882 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8883 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8884 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8885 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8886 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8887 alus_reg to alus_sreg.
8888
8889 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8890
8891 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8892 infinity format.
8893
8894 2014-07-17 Richard Biener <rguenther@suse.de>
8895
8896 PR rtl-optimization/61801
8897 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8898 don't set reg_pending_barrier if it appears in a debug-insn.
8899
8900 2014-07-16 DJ Delorie <dj@redhat.com>
8901
8902 * config/rx/rx.c (rx_option_override): Fix alignment values.
8903 (rx_align_for_label): Likewise.
8904
8905 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8906
8907 PR target/61737.
8908 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8909 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8910 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8911 functions.
8912 (cris_print_index, cris_print_operand, cris_constant_index_p)
8913 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8914 (cris_address_cost): Ditto last CONSTANT_P.
8915 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8916 callers changed. Yield cris_offsettable_symbol for non-PIC
8917 constant symbolic expressions including labels. Yield cris_unspec
8918 for all unspecs.
8919 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8920 target to pic_offset_table_rtx for calls that will likely go
8921 through PLT, const0_rtx when they can't. All callers changed.
8922 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8923 symbolic expressions to be PICified. Remove second, redundant,
8924 assert on can_create_pseudo_p returning non-zero. Use
8925 replace_equiv_address_nv, not replace_equiv_address, for final
8926 operand update.
8927 * config/cris/cris.md ("movsi"): Move variable t to pattern
8928 toplevel. Adjust assert for new cris_symbol_type member. Use
8929 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8930 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8931 for lapc stricter.
8932 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8933 ("call", "call_value"): Use second incoming operand as a marker
8934 for pic-offset-table-register being used.
8935 ("*expanded_call_non_v32", "*expanded_call_v32")
8936 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8937 second incoming operand to CALL, match cris_call_type_marker.
8938 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8939 ("*expanded_call_side"): Ditto. Fix typo in comment.
8940 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8941 CONSTANT_P.
8942 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8943 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8944 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8945 users changed. Add members cris_offsettable_symbol and cris_unspec.
8946 (cris_symbol_type): Rename from cris_pic_symbol_type.
8947 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8948 just CONSTANT_P.
8949 * config/cris/cris-protos.h (cris_symbol_type_of,
8950 cris_expand_pic_call_address): Adjust prototypes.
8951 (cris_legitimate_constant_p): New prototype.
8952
8953 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8954 an existing tmake_file. Don't add t-slibgcc and t-linux.
8955
8956 2014-07-17 Jason Merrill <jason@redhat.com>
8957
8958 PR c++/61623
8959 * symtab.c (symtab_remove_from_same_comdat_group): Also
8960 set_comdat_group to NULL_TREE.
8961 (verify_symtab): Fix diagnostic.
8962
8963 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8964
8965 PR target/61662
8966 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8967
8968 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8969
8970 Support location tracking for built-in macro tokens
8971 * input.h (is_location_from_builtin_token): New function declaration.
8972 * input.c (is_location_from_builtin_token): New function definition.
8973 * toplev.c (general_init): Tell libcpp what the pre-defined
8974 spelling location for built-in tokens is.
8975
8976 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8977
8978 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8979 on the FUNCTION_DECL.
8980
8981 2014-07-16 Richard Biener <rguenther@suse.de>
8982
8983 PR other/61782
8984 * doc/extend.texi (always_inline): Clarify.
8985
8986 2014-07-15 Eric Christopher <echristo@gmail.com>
8987
8988 * doc/invoke.texi (Link Options): Document -z option.
8989
8990 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8991
8992 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8993 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8994
8995 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8996
8997 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8998
8999 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9000
9001 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9002 varpool_assemble_decl.
9003 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9004 true.
9005
9006 2014-07-15 Michael Matz <matz@suse.de>
9007
9008 PR rtl-optimization/61772
9009 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9010
9011 2014-07-15 Richard Biener <rguenther@suse.de>
9012
9013 * opts.c (default_options_table): Disable bit-ccp at -Og.
9014
9015 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9016
9017 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9018
9019 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9020
9021 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9022 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9023 call langhook for unknown declaration.
9024 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9025 * tree.h (DECL_ARGUMENTS): Update.
9026 * print-tree.c (print_node): Update.
9027 * tree-core.h (tree_decl_non_common): Remove arguments.
9028 (tree_function_decl): Add arguments.
9029
9030 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9031
9032 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9033
9034 2014-07-14 Richard Biener <rguenther@suse.de>
9035
9036 PR tree-optimization/61779
9037 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9038 simplifying a condition.
9039
9040 2014-07-14 Richard Biener <rguenther@suse.de>
9041
9042 * builtins.c (c_strlen): Make only_value == 2 really only
9043 affect warning generation.
9044
9045 2014-07-14 Richard Biener <rguenther@suse.de>
9046
9047 PR tree-optimization/61757
9048 PR tree-optimization/61783
9049 PR tree-optimization/61787
9050 * tree-ssa-dom.c (record_equality): Revert canonicalization
9051 change and add comment.
9052 (propagate_rhs_into_lhs): Revert previous fix, removing
9053 loop depth restriction again.
9054
9055 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9056
9057 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9058 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9059 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9060 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9061 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9062 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9063 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9064
9065 2014-07-14 Richard Biener <rguenther@suse.de>
9066
9067 * cgraph.h (decl_in_symtab_p): Make inline.
9068
9069 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9070
9071 PR middle-end/61294
9072 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9073
9074 PR target/61656
9075 * config/i386/i386.c (classify_argument): Don't merge classes above
9076 number of words.
9077
9078 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9079
9080 * cgraph.h (symtab_node): Add nonzero_address.
9081 (decl_in_symtab_p): Break out from ...
9082 (symtab_get_node): ... here.
9083 * fold-const.c: Include cgraph.h
9084 (tree_single_nonzero_warnv_p): Use symtab to determine
9085 if symbol is non-zero.
9086 * symtab.c (symtab_node::nonzero_address): New method.
9087
9088 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9089
9090 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9091 forgotten in previous commit.
9092
9093 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9094
9095 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9096 on builtin types.
9097 * ipa-devirt.c: Include stor-layout.h and intl.h
9098 (odr_subtypes_equivalent_p): New function.
9099 (warn_odr): New function.
9100 (warn_type_mismatch): New function.
9101 (odr_types_equivalent_p): New function.
9102 (add_type_duplicate): Use it.
9103 * common.opt (Wodr): New flag.
9104 * doc/invoke.texi (Wodr): Document new warning.
9105
9106 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9107
9108 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9109 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9110 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9111 (varpool_get_constructor): Push CTORS_IN timevar.
9112 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9113
9114 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9115
9116 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9117 Remove VOID_FTYPE_PUSHORT.
9118 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9119 Change code to USHORT_FTYPE_VOID.
9120 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9121 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9122 (ix86_atomic_assign_expand_fenv): Update for
9123 __builtin_ia32_fnstsw changes.
9124 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9125 (fnstsw): Change operand 0 to nonimmediate operand.
9126
9127 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9128
9129 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9130 (varpool_get_constructor): New function.
9131 (varpool_ctor_useable_for_folding_p): Break out from ...
9132 (ctor_for_folding): ... here; use varpool_get_constructor.
9133 (varpool_assemble_decl): Likewise.
9134 * lto-streamer.h (struct output_block): Turn cgraph_node
9135 to symbol filed.
9136 (lto_input_variable_constructor): Declare.
9137 * ipa-visibility.c (function_and_variable_visibility): Use
9138 varpool_get_constructor.
9139 * cgraph.h (varpool_get_constructor): Declare.
9140 (varpool_ctor_useable_for_folding_p): New function.
9141 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9142 parameter; return error_mark_node for non-trivial constructors.
9143 (lto_write_tree_1, DFS_write_tree): Update use of
9144 get_symbol_initial_value.
9145 (output_function): Update initialization of symbol.
9146 (output_constructor): New function.
9147 (copy_function): Rename to ..
9148 (copy_function_or_variable): ... this one; handle vars too.
9149 (lto_output): Output variable sections.
9150 * lto-streamer-in.c (input_constructor): New function.
9151 (lto_read_body): Rename from ...
9152 (lto_read_body_or_constructor): ... this one; handle vars too.
9153 (lto_input_variable_constructor): New function.
9154 * ipa-prop.c (ipa_prop_write_jump_functions,
9155 ipa_prop_write_all_agg_replacement): Update.
9156 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9157 (output_cgraph_opt_summary): Set symbol to NULL.
9158
9159 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9160
9161 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9162 non-polymorphic types.
9163 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9164 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9165 of types is not polymorphic.
9166
9167 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9168
9169 * lra-constraints.c (remove_inheritance_pseudos): Process
9170 destination pseudo too.
9171
9172 2014-07-11 Rong Xu <xur@google.com>
9173
9174 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9175 commit r212448.
9176
9177 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9178
9179 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9180 * config/avr/avr-devices.c (AVR_MCU): Same.
9181 (avr_mcu_types): add text start value to end of device list.
9182 * config/avr/avr-mcus.def: Add text section start for all devices.
9183 (ata5782): Add new avr5 device.
9184 (ata5831): Same.
9185 * config/avr/avr-tables.opt: Regenerate.
9186 * config/avr/avr.h: Add declaration for text section start handler.
9187 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9188 SPEC functions.
9189 (LINK_SPEC): Include text section start handler to linker spec.
9190 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9191 pass -Ttext option to linker if the text section start for the device
9192 is not zero.
9193 * config/avr/t-multilib: Regenerate.
9194 * doc/avr-mmcu.texi: Regenerate.
9195
9196 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9197
9198 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9199 * config/rs6000/aix52.h (LINK_SPEC): Same.
9200 * config/rs6000/aix53.h (LINK_SPEC): Same.
9201 * config/rs6000/aix61.h (LINK_SPEC): Same.
9202 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9203
9204 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9205
9206 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9207 (graphite_verify): New function.
9208 (ivs_params_clear): New function.
9209 (gcc_expression_from_isl_ast_expr_id): New function.
9210 (gcc_expression_from_isl_expr_int): New function.
9211 (binary_op_to_tree): New function.
9212 (ternary_op_to_tree): New function.
9213 (unary_op_to_tree): New function.
9214 (nary_op_to_tree): New function.
9215 (gcc_expression_from_isl_expr_op): New function.
9216 (gcc_expression_from_isl_expression): New function.
9217 (graphite_create_new_loop): New function.
9218 (translate_isl_ast_for_loop): New function.
9219 (get_upper_bound): New function.
9220 (graphite_create_new_loop_guard): New function.
9221 (translate_isl_ast_node_for): New function.
9222 (translate_isl_ast): New function.
9223 (add_parameters_to_ivs_params): New function.
9224 (scop_to_isl_ast): New parameter ip.
9225 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9226
9227 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9228
9229 * config/xtensa/predicates.md (call expander): Update for
9230 DECL_SECTION_NAME being string.
9231
9232 2014-07-11 Richard Biener <rguenther@suse.de>
9233
9234 PR middle-end/61473
9235 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9236 can be implemented with a single load followed by a single store.
9237 (c_strlen): Only warn when only_value is not 2.
9238
9239 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9240
9241 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9242
9243 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9244
9245 PR target/61561
9246 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9247 (*movhi_bytes): Likewise.
9248 (*arm_movqi_insn): Likewise.
9249
9250 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9251
9252 PR target/56858
9253 * config/alpha/alpha.c: Include tree-pass.h, context.h
9254 and pass_manager.h.
9255 (pass_data_handle_trap_shadows): New pass.
9256 (pass_handle_trap_shadows::gate): New pass gate function.
9257 (make_pass_handle_trap_shadows): New function.
9258 (rest_of_handle_trap_shadows): Ditto.
9259
9260 (alpha_align_insns_1): Rename from alpha_align_insns.
9261 (pass_data_align_insns): New pass.
9262 (pass_align_insns::gate): New pass gate function.
9263 (make_pass_aling_insns): New function.
9264 (rest_of_align_insns): Ditto.
9265 (alpha_align_insns): Ditto.
9266
9267 (alpha_option_override): Declare handle_trap_shadows info
9268 and align_insns_info. Register handle_trap_shadows and align_insns
9269 passes here.
9270 (alpha_reorg): Do not call alpha_trap_shadows and
9271 alpha_align_insn from here.
9272
9273 (alpha_pad_function_end): Do not skip BARRIERs.
9274
9275 2014-07-10 Rong Xu <xur@google.com>
9276
9277 Add gcov-tool: an offline gcda profile processing tool support.
9278 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9279 (gcov_is_error): Ditto.
9280 (gcov_read_string): Ditto.
9281 (gcov_read_sync): Ditto.
9282 * gcov-io.h: Move counter defines to gcov-counter.def.
9283 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9284 * coverage.c: Ditto.
9285 * gcov-tool.c: Offline gcda profile processing tool.
9286 (unlink_gcda_file): Remove one gcda file.
9287 (unlink_profile_dir): Remove gcda files from the profile path.
9288 (gcov_output_files): Output gcda files to an output dir.
9289 (profile_merge): Merge two profiles in directory.
9290 (print_merge_usage_message): Print merge usage.
9291 (merge_usage): Print merge usage and exit.
9292 (do_merge): Driver for profile merge sub-command.
9293 (profile_rewrite): Rewrite profile.
9294 (print_rewrite_usage_message): Print rewrite usage.
9295 (rewrite_usage): Print rewrite usage and exit.
9296 (do_rewrite): Driver for profile rewrite sub-command.
9297 (print_usage): Print gcov-info usage and exit.
9298 (print_version): Print gcov-info version.
9299 (process_args): Process arguments.
9300 (main): Main routine for gcov-tool.
9301 * Makefile.in: Build and install gcov-tool.
9302 * gcov-counter.def: New file split from gcov-io.h.
9303 * doc/gcc.texi: Include gcov-tool.texi.
9304 * doc/gcov-tool.texi: Document for gcov-tool.
9305
9306 2014-07-10 Richard Biener <rguenther@suse.de>
9307
9308 PR tree-optimization/61757
9309 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9310 (propagate_rhs_into_lhs): Revert part of last change.
9311
9312 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9313
9314 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9315 FUNCTION_DECLs.
9316
9317 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9318
9319 PR middle-end/53590
9320 * function.c (allocate_struct_function): Revert r188667 change.
9321
9322 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9323
9324 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9325
9326 * doc/install.texi: Remove links to defunct package providers for
9327 Solaris.
9328
9329 2014-07-09 Tom de Vries <tom@codesourcery.com>
9330
9331 * final.c (get_call_fndecl): Declare.
9332 (self_recursive_call_p): New function.
9333 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9334
9335 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9336
9337 * ipa-devirt.c (record_node): Walk through aliases.
9338
9339 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9340
9341 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9342
9343 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9344
9345 Revert:
9346 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9347
9348 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9349
9350 * ipa-visibility.c (function_and_variable_visibility): Remove
9351 temporary hack disabling local aliases on AIX.
9352
9353 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9354
9355 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9356 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9357
9358 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9359
9360 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9361 * rs6000/rs6000.c: Inline output of .set instruction.
9362 (declare_alias_data): New struct.
9363 (rs6000_declare_alias): New function.
9364 (rs6000_xcoff_declare_function_name): Use it.
9365 (rs6000_xcoff_declare_object_name): New function.
9366 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9367 (ASM_OUTPUT_DEF): Turn to empty definition.
9368
9369 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9370
9371 PR bootstrap/61679
9372 * hash-table.h: use hash_table::value_type instead of
9373 Descriptor::value_type in the return types of several methods.
9374
9375 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9376
9377 * tree-pass.h (pass_data): Remove has_execute member.
9378 * passes.c (execute_one_pass): Don't check pass->has_execute.
9379 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9380 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9381 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9382 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9383 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9384 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9385 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9386 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9387 gimple-low.c, gimple-ssa-isolate-paths.c,
9388 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9389 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9390 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9391 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9392 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9393 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9394 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9395 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9396 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9397 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9398 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9399 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9400 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9401 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9402 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9403 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9404 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9405 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9406 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9407 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9408 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9409 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9410 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9411 web.c: Remove initializer for pass_data::has_execute.
9412
9413 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9414
9415 * graphite-htab.h: Use hash_map instead of hash_table.
9416 * graphite-clast-to-gimple.c: Adjust.
9417 * passes.c: Use hash_map instead of hash_table.
9418 * sese.c: Likewise.
9419 * sese.h: Remove now unused code.
9420
9421 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9422
9423 PR target/61599
9424 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9425 than zero.
9426
9427 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9428
9429 PR rtl-optimization/61673
9430 * combine.c (simplify_comparison): Test just mode's sign bit
9431 in tmode rather than the sign bit and any bits above it.
9432
9433 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9434
9435 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9436 Add __isl_give to the declaration.
9437 (generate_isl_schedule): Likewise.
9438 (scop_to_isl_ast): Likewise.
9439
9440 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9441
9442 * config/arm/arm.c (cortexa5_extra_costs): New table.
9443 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9444
9445 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9446
9447 PR tree-optimization/61725
9448 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9449 range, use range_includes_zerop_p instead of integer_zerop on
9450 vr0->min, only use log2 of max if min is not negative.
9451
9452 2014-07-08 Richard Biener <rguenther@suse.de>
9453
9454 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9455 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9456 restriction on loop depth difference.
9457 (record_equality): Likewise.
9458 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9459 (loop_depth_of_name): Remove.
9460 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9461 restriction on loop depth difference.
9462 (init_copy_prop): Likewise.
9463
9464 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9465
9466 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9467 parameter.
9468 (walk_aliased_vdefs): Likewise.
9469 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9470 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9471 (detect_type_change_from_memory_writes): Check if entry was reached.
9472
9473 2014-07-08 Richard Biener <rguenther@suse.de>
9474
9475 PR tree-optimization/61681
9476 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9477 NONLOCAL inside ESCAPED.
9478
9479 2014-07-08 Richard Biener <rguenther@suse.de>
9480
9481 PR tree-optimization/61680
9482 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9483 Handle properly all read-write dependences with group accesses.
9484
9485 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9486
9487 PR tree-optimization/61576
9488 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9489 block containing reduction statement is predecessor of phi basi block.
9490
9491 2014-07-08 Marek Polacek <polacek@redhat.com>
9492
9493 PR c/60226
9494 * fold-const.c (round_up_loc): Change the parameter type.
9495 Remove assert.
9496 * fold-const.h (round_up_loc): Adjust declaration.
9497 * stor-layout.c (finalize_record_size): Check for too large types.
9498
9499 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9500
9501 * symtab.c: Include calls.h.
9502 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9503
9504 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9505
9506 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9507 little-endian code generation.
9508 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9509 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9510 (spe_evmergehilo): Rename to...
9511 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9512 (spe_evmergelo): Rename to...
9513 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9514 (spe_evmergelohi): Rename to...
9515 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9516 (spe_evmergehi, spe_evmergehilo): New expanders.
9517 (spe_evmergelo, spe_evmergelohi): Likewise.
9518 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9519 (*frob_tf_ti): Likewise.
9520 (*frob_<mode>_di_2): Likewise.
9521 (*frob_tf_di_8_2): Likewise.
9522 (*frob_di_<mode>): Likewise.
9523 (*frob_ti_tf): Likewise.
9524 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9525 (*frob_ti_<mode>_8_2): Likewise.
9526 (*frob_ti_tf_2): Likewise.
9527 (mov_si<mode>_e500_subreg0): Rename to...
9528 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9529 endianness only.
9530 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9531 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9532 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9533 the big endianness only.
9534 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9535 (*mov_si<mode>_e500_subreg0_2): Rename to...
9536 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9537 big big endianness only.
9538 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9539 (*mov_si<mode>_e500_subreg4): Rename to...
9540 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9541 endianness only.
9542 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9543 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9544 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9545 the big endianness only.
9546 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9547 pattern.
9548 (*mov_si<mode>_e500_subreg4_2): Rename to...
9549 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9550 endianness only.
9551 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9552 (*mov_sitf_e500_subreg8): Rename to...
9553 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9554 endianness only.
9555 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9556 (*mov_sitf_e500_subreg8_2): Rename to...
9557 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9558 endianness only.
9559 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9560 (*mov_sitf_e500_subreg12): Rename to...
9561 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9562 endianness only.
9563 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9564 (*mov_sitf_e500_subreg12_2): Rename to...
9565 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9566 endianness only.
9567 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9568
9569 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9570
9571 * asan.c (instrument_strlen_call): Do not instrument first byte
9572 in strlen if already instrumented.
9573
9574 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9575
9576 * config/arm/arm.opt (mwords-little-endian): Delete.
9577 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9578 of TARGET_LITTLE_WORDS.
9579 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9580 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9581 warning.
9582 * doc/invoke.texi: Remove references to -mwords-little-endian.
9583
9584 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9585
9586 * expmed.c (struct init_expmed_rtl): Change all fields but
9587 pow2 and cint from struct rtx_def to rtx.
9588 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9589 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9590 at the end again.
9591
9592 2014-07-06 Marek Polacek <polacek@redhat.com>
9593
9594 PR c/6940
9595 * doc/invoke.texi: Document -Wsizeof-array-argument.
9596
9597 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9598
9599 * wide-int.h (wide_int_storage): Change declaration from struct
9600 to class.
9601
9602 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9603
9604 * cgraph.c (cgraph_create_indirect_edge): Update call of
9605 get_polymorphic_call_info.
9606 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9607 (possible_polymorphic_call_targets): Add parameter call.
9608 (decl_maybe_in_construction_p): New predicate.
9609 (get_polymorphic_call_info): Add parameter call;
9610 use decl_maybe_in_construction_p.
9611 * gimple-fold.c (fold_gimple_assign): Update use of
9612 possible_polymorphic_call_targets.
9613 (gimple_fold_call): Likewise.
9614 * ipa-prop.c: Inlcude calls.h
9615 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9616 (param_type_may_change_p): New predicate.
9617 (detect_type_change_from_memory_writes): Break out from ...
9618 (detect_type_change): ... this one; use param_type_may_change_p.
9619 (detect_type_change_ssa): Use param_type_may_change_p.
9620 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9621
9622 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9623
9624 PR target/49423
9625 * config/arm/arm-protos.h (arm_legitimate_address_p,
9626 arm_is_constant_pool_ref): Add prototypes.
9627 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9628 (arm_is_constant_pool_ref) New function.
9629 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9630 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9631 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9632 operand. Remove pool_range and neg_pool_range attributes.
9633 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9634 pool_range and neg_pool_range attributes.
9635 * config/arm/constraints.md (Uh): New constraint.
9636 (Uq): Don't allow constant pool references.
9637
9638 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9639
9640 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9641 (move_lo_quad_internal_be_<mode>): Likewise.
9642 (move_lo_quad_<mode>): Convert to define_expand.
9643 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9644 (aarch64_simd_move_hi_quad_be_<mode>): New.
9645 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9646 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9647 (aarch64_combinez_be<mode>): New.
9648 (aarch64_combine<mode>): Convert to define_expand.
9649 (aarch64_combine_internal<mode>): New.
9650 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9651
9652 2014-07-04 Tom de Vries <tom@codesourcery.com>
9653
9654 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9655 combination of earlyclobber and read/write modifiers.
9656
9657 2014-07-04 Tom de Vries <tom@codesourcery.com>
9658
9659 * config/aarch64/aarch64-simd.md
9660 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9661
9662 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9663
9664 PR target/61714
9665 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9666
9667 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9668
9669 PR middle-end/61654
9670 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9671
9672 PR tree-optimization/61684
9673 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9674 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9675
9676 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9677 Kito Cheng <kito@0xlab.org>
9678 Monk Chiang <sh.chiang04@gmail.com>
9679
9680 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9681 (nds32_symbol_load_store_p): Move to ...
9682 (nds32_fp_as_gp_check_available): Move to ...
9683 * config/nds32/nds32-fp-as-gp.c: ... here.
9684 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9685 extern declaration.
9686
9687 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9688 Kito Cheng <kito@0xlab.org>
9689 Monk Chiang <sh.chiang04@gmail.com>
9690
9691 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9692 (nds32_expand_store_multiple): Move to ...
9693 (nds32_expand_movmemqi): Move to ...
9694 * config/nds32/nds32-memory-manipulation.c: ... here.
9695
9696 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9697 Kito Cheng <kito@0xlab.org>
9698 Monk Chiang <sh.chiang04@gmail.com>
9699
9700 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9701 (nds32_output_casesi_pc_relative): Move to ...
9702 (nds32_output_casesi): Move to ...
9703 (nds32_mem_format): Move to ...
9704 (nds32_output_16bit_store): Move to ...
9705 (nds32_output_16bit_load): Move to ...
9706 (nds32_output_32bit_store): Move to ...
9707 (nds32_output_32bit_load): Move to ...
9708 (nds32_output_32bit_load_s): Move to ...
9709 (nds32_output_stack_push): Move to ...
9710 (nds32_output_stack_pop): Move to ...
9711 * config/nds32/nds32-md-auxiliary.c: ... here.
9712
9713 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9714 Ling-Hua Tseng <uranus@tinlans.org>
9715
9716 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9717 the purpose of this file.
9718
9719 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9720 Kito Cheng <kito@0xlab.org>
9721 Monk Chiang <sh.chiang04@gmail.com>
9722
9723 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9724 (nds32_address_cost): Move implementation to ...
9725 * config/nds32/nds32-cost.c: ... here.
9726 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9727 (nds32_address_cost_impl): Declare.
9728
9729 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9730 Kito Cheng <kito@0xlab.org>
9731 Monk Chiang <sh.chiang04@gmail.com>
9732
9733 * config/nds32/nds32.c
9734 (nds32_consecutive_registers_load_store_p): Move to ...
9735 (nds32_valid_multiple_load_store): Move to ...
9736 (nds32_valid_stack_push_pop): Move to ...
9737 (nds32_can_use_bclr_p): Move to ...
9738 (nds32_can_use_bset_p): Move to ...
9739 (nds32_can_use_btgl_p): Move to ...
9740 (nds32_can_use_bitci_p): Move to ...
9741 * config/nds32/nds32-predicates.c: ... here.
9742
9743 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9744 Kito Cheng <kito@0xlab.org>
9745 Monk Chiang <sh.chiang04@gmail.com>
9746
9747 * config/nds32/nds32.c
9748 (nds32_expand_builtin_null_ftype_reg): Move to ...
9749 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9750 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9751 (nds32_init_builtins): Move implementation to ...
9752 (nds32_expand_builtin): Move implementation to ...
9753 * config/nds32/nds32-intrinsic.c: ... here.
9754 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9755 (nds32_expand_builtin_impl): Declare.
9756
9757 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9758 Kito Cheng <kito@0xlab.org>
9759 Monk Chiang <sh.chiang04@gmail.com>
9760
9761 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9762 (nds32_emit_section_tail_template): Move to ...
9763 (nds32_emit_isr_jmptbl_section): Move to ...
9764 (nds32_emit_isr_vector_section): Move to ...
9765 (nds32_emit_isr_reset_conten): Move to ...
9766 (nds32_check_isr_attrs_conflict): Move to ...
9767 (nds32_construct_isr_vectors_information): Move to ...
9768 (nds32_asm_file_start): Move implementation to ...
9769 (nds32_asm_file_end): Move implementation to ...
9770 * config/nds32/nds32-isr.c: ... here.
9771 * config/nds32/nds32-protos.h
9772 (nds32_check_isr_attrs_conflict): Declare.
9773 (nds32_construct_isr_vectors_information): Declare.
9774 (nds32_asm_file_start_for_isr): Declare.
9775 (nds32_asm_file_end_for_isr): Declare.
9776
9777 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9778 Kito Cheng <kito@0xlab.org>
9779 Monk Chiang <sh.chiang04@gmail.com>
9780
9781 * config.gcc (nds32*): Add new modules to extra_objs.
9782 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9783 (nds32be-*-*): Likewise.
9784 * config/nds32/nds32-cost.c: New file.
9785 * config/nds32/nds32-fp-as-gp.c: New file.
9786 * config/nds32/nds32-intrinsic.c: New file.
9787 * config/nds32/nds32-isr.c: New file.
9788 * config/nds32/nds32-md-auxiliary.c: New file.
9789 * config/nds32/nds32-memory-manipulation.c: New file.
9790 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9791 * config/nds32/nds32-predicates.c: New file.
9792 * config/nds32/t-nds32: New file.
9793
9794 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9795
9796 PR tree-optimization/61682
9797 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9798 using cases and when one of the operands is equal to 1.
9799
9800 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9801
9802 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9803 ashr<mode>3): Correct mode of operands[2].
9804 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9805 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9806 Correct mode of operands[2]. Fix split condition.
9807
9808 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9809
9810 * arm.md (arch): Add armv6_or_vfpv3.
9811 (arch_enabled): Add test for the above.
9812 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9813 on VFP9.
9814 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9815
9816 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9817
9818 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9819 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9820 HWI 1 and negate the unsigned value.
9821 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9822 use AND instead of shift.
9823 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9824
9825 2014-07-03 Marek Polacek <polacek@redhat.com>
9826
9827 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9828 (-fsanitize=float-divide-by-zero): Move to the table with
9829 -fsanitize=undefined suboptions.
9830 (-fsanitize=float-cast-overflow): Likewise.
9831
9832 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9833
9834 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9835 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9836 endianness.
9837
9838 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9839
9840 * loop-invariant.c (struct invariant): Add a new member: eqno;
9841 (find_identical_invariants): Update eqno;
9842 (create_new_invariant): Init eqno;
9843 (get_inv_cost): Compute comp_cost with eqno;
9844
9845 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9846
9847 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9848 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9849 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9850 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9851 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9852
9853 2014-07-02 Christian Bruel <christian.bruel@st.com>
9854
9855 PR target/29349
9856 PR target/53513
9857 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9858 (make_preds_opaque): Delete.
9859 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9860 (commit_mode_sets): New function.
9861 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9862 Process all modes at once.
9863 * basic-block.h (pre_edge_lcm_avs): Declare.
9864 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9865 Call clear_aux_for_edges. Fix comments.
9866 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9867 (pre_edge_rev_lcm): Idem.
9868 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9869 parameter.
9870 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9871 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9872 Idem.
9873 * config/i386/i386.c (x96_emit_mode_set): Idem.
9874 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9875 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9876 (fpscr_toggle) Disallow from delay slot.
9877 * target.def (emit_mode_set): Add prev_mode parameter.
9878 * doc/tm.texi: Regenerate.
9879
9880 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9881
9882 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9883 variable i.
9884
9885 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9886
9887 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9888 vtable_pointer_value_to_vtable): Constify.
9889 (contains_polymorphic_type_p): Declare.
9890 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9891 vtable_pointer_value_to_vtable): Constify.
9892 (contains_polymorphic_type_p): New predicate.
9893 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9894 polymorphic types.
9895 (ipa_set_ancestor_jf): Likewise.
9896 (detect_type_change): Return false in easy cases.
9897 (compute_complex_assign_jump_func): Require type to contain
9898 polymorphic type.
9899 (compute_known_type_jump_func): Likewise.
9900
9901 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9902
9903 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9904 Remove.
9905 (type_in_anonymous_namespace_p): Constify argument.
9906 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9907 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9908 (main_odr_variant): New function.
9909 (hash_type_name): Make static; update assert; do not ICE on
9910 non-records.
9911 (types_same_for_odr): Bring here from tree.c; simplify and remove
9912 old structural comparing code that doesn't work for templates.
9913 (odr_hasher::equal): Update assert.
9914 (add_type_duplicate): Return true when bases should be computed;
9915 replace incomplete loader by complete; do not output duplicated
9916 warnings; do not ICE on non-records; set odr_violated flag.
9917 (get_odr_type): Be ready to replace incomplete type by complete
9918 one; work on ODR variants instead of main variants; reorder item
9919 in array so bases have still smaller indexes.
9920 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9921 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9922
9923 2014-07-01 Cary Coutant <ccoutant@google.com>
9924
9925 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9926 lookup.
9927 (resolve_addr_in_expr): When replacing the rtx in a location list
9928 entry, get a new address table entry.
9929 (dwarf2out_finish): Call index_location_lists even if there are no
9930 addr_index_table entries yet.
9931
9932 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9933
9934 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9935 change for not being obvious.
9936
9937 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9938
9939 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9940 unused argument.
9941
9942 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9943
9944 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9945 (vcagt_f64): Likewise.
9946 (vcale_f64): Likewise.
9947 (vcaled_f64): Likewise.
9948 (vcales_f32): Likewise.
9949 (vcalt_f64): Likewise.
9950 (vcaltd_f64): Likewise.
9951 (vcalts_f32): Likewise.
9952
9953 2014-07-01 Marek Polacek <polacek@redhat.com>
9954
9955 * doc/invoke.texi: Document -Wint-conversion.
9956
9957 2014-07-01 Marek Polacek <polacek@redhat.com>
9958
9959 PR c/58286
9960 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9961
9962 2014-07-01 Martin Liska <mliska@suse.cz>
9963
9964 IPA REF alias refactoring
9965 * cgraph.h (iterate_direct_aliases): New function.
9966 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9967 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9968 FOR_EACH_ALIAS added.
9969 (cgraph_for_node_and_aliases): Likewise.
9970 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9971 * ipa-inline.c (reset_edge_caches): Likewise.
9972 (update_caller_keys): Likewise.
9973 * trans-mem.c (ipa_tm_execute): Likewise.
9974 *varpool.c (varpool_analyze_node): Likewise.
9975 (varpool_for_node_and_aliases): Likewise.
9976 * ipa-ref.h (first_alias): New function.
9977 (last_alias): Likewise.
9978 (has_aliases_p): Likewise.
9979 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9980 is sensitive to IPA_REF_ALIASes.
9981 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9982 are put at the beginning of the list.
9983 (symtab_node::iterate_direct_aliases): New function.
9984
9985 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9986
9987 Revert:
9988 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9989 type is complete.
9990 (write_ts_type_common_tree_pointers): Do not stream fields not set
9991 for incomplete types; do not stream duplicated fields for variants;
9992 sanity check that variant and type match.
9993 (write_ts_type_non_common_tree_pointers): Likewise.
9994 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9995 TYPE_SIZE whether type is complete.
9996 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9997 write_ts_type_common_tree_pointers
9998 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9999
10000 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10001
10002 * var-tracking.c (add_stores): Return instead of asserting if old
10003 and new values for conditional store are the same.
10004
10005 2014-06-30 Richard Henderson <rth@redhat.com>
10006
10007 PR rtl-opt/61608
10008 PR target/39284
10009 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10010 the cfg if there were any changes.
10011 * passes.def: Revert move of peephole2 after reorder_blocks;
10012 move duplicate_computed_gotos before peephole2.
10013
10014 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10015
10016 * except.c (emit_note_eh_region_end): New helper function.
10017 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10018 emit EH_REGION_END note.
10019 * jump.c (cleanup_barriers): Do not split a call and its
10020 corresponding CALL_ARG_LOCATION note.
10021
10022 2014-06-30 Jeff Law <law@redhat.com>
10023
10024 PR tree-optimization/61607
10025 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10026 deeper into the SSA_NAME_VALUE chain.
10027
10028 2014-06-30 Marek Polacek <polacek@redhat.com>
10029
10030 * convert.c (convert_to_integer): Don't instrument conversions if the
10031 function has no_sanitize_undefined attribute.
10032 * ubsan.c: Don't run the ubsan pass if the function has
10033 no_sanitize_undefined attribute.
10034
10035 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10036
10037 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10038 -fsanitize=undefined suboptions.
10039
10040 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10041
10042 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10043 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10044 against bigendian and adjust indices.
10045
10046 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10047
10048 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10049
10050 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10051
10052 PR target/61633
10053 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10054 Add alternative; make early clobber. Adjust both split patterns
10055 to use operand 0 as the working register.
10056
10057 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10058
10059 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10060 as ira_object_id_map might be NULL, or 1.
10061
10062 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10063
10064 * loop-invariant.c (get_inv_cost): Handle register class.
10065 (gain_for_invariant): Check the register pressure of the inv
10066 and its overlapped register class, other than all.
10067
10068 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10069
10070 * doc/invoke.texi (Optimize Options): Fix descriptions of
10071 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10072
10073 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10074
10075 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10076 documentation.
10077
10078 2014-06-29 Tobias Grosser <tobias@grosser.es>
10079
10080 PR bootstrap/61650
10081 * graphite-isl-ast-to-gimple.c: Add missing guards.
10082
10083 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10084
10085 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10086 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10087 * flag-types.h: Add new enum fgraphite_generator.
10088 * graphite-isl-ast-to-gimple.c: New.
10089 * graphite-isl-ast-to-gimple.h: New.
10090 * graphite.c (graphite_transform_loops): Add choice of Graphite
10091 code generator, which depends on flag_graphite_code_gen.
10092
10093 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10094
10095 * graphite-dependences.c (subtract_commutative_associative_deps):
10096 Add NULL checking of the following variables: must_raw_no_source,
10097 may_raw_no_source, must_war_no_source, may_war_no_source,
10098 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10099 must_war, may_war, must_waw, may_waw.
10100
10101 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10102
10103 * graphite-clast-to-gimple.c: gloog is renamed to
10104 graphite_regenerate_ast_cloog. gloog_error is renamed to
10105 graphite_regenerate_error.
10106 * graphite-clast-to-gimple.h: The definition of the struct
10107 bb_pbb_def is moved to graphite-htab.h.
10108 Add inclusion of the hash-table.h.
10109 * graphite-htab.h: The declaration of the function gloog is moved
10110 to graphite-clast-to-gimple.h and renamed to
10111 graphite_regenerate_ast_cloog.
10112 * graphite.c (graphite_transform_loops): gloog is renamed
10113 to graphite_regenerate_ast_cloog.
10114
10115 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10116
10117 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10118 type is complete.
10119 (write_ts_type_common_tree_pointers): Do not stream fields not set
10120 for incomplete types; do not stream duplicated fields for variants;
10121 sanity check that variant and type match.
10122 (write_ts_type_non_common_tree_pointers): Likewise.
10123 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10124 TYPE_SIZE whether type is complete.
10125 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10126 write_ts_type_common_tree_pointers
10127 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10128
10129 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10130
10131 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10132
10133 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10134
10135 * tree-inline.c (remap_type_1): Do not duplicate fields
10136 that are shared in between type and its main variant.
10137
10138 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10139
10140 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10141 of the type.
10142 (ipa_set_ancestor_jf) Likewise.
10143 (check_stmt_for_type_change): Check that we work on main variant.
10144 (detect_type_change): Look into main variant.
10145 (compute_known_type_jump_func): Check that main variant has BINFO.
10146
10147 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10148
10149 * ipa-devirt.c (set_type_binfo): New function.
10150 (add_type_duplicate): Use it.
10151 (get_odr_type): Sanity check that binfos points to main variants.
10152 (get_class_context): Be sure the context's outer_type is main variant.
10153 (contains_type_p): Walk main variant.
10154 (get_polymorphic_call_info_for_decl): Set outer_type to be
10155 main variant.
10156 (get_polymorphic_call_info): Likewise.
10157 (possible_polymorphic_call_targets): Sanity check that we operate
10158 on main variant.
10159
10160 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10161
10162 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10163
10164 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10165
10166 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10167 accidental change due to wide-int branch merge.
10168
10169 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10170
10171 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10172 compressed debug support.
10173 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10174 * configure: Regenerate.
10175 * config.in: Regenerate.
10176 * common.opt (compressed_debug_sections): New enum.
10177 (gz, gz=): New options.
10178 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10179 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10180 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10181 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10182 LINK_COMPRESS_DEBUG_SPEC.
10183 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10184 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10185 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10186 (Debugging Options): Document -gz[=type].
10187
10188 2014-06-27 Martin Jambor <mjambor@suse.cz>
10189
10190 PR ipa/61160
10191 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10192 args_to_skip, use those from node instead. Copy args_to_skip and
10193 combined_args_to_skip from node to the new thunk.
10194 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10195 (cgraph_create_virtual_clone): Moved computation of
10196 combined_args_to_skip...
10197 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10198
10199 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10200
10201 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10202 redundant diagnostic machinary.
10203
10204 2014-06-27 Richard Biener <rguenther@suse.de>
10205
10206 * tree-ssa-math-opts.c (bswap_replace): Fix
10207 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10208
10209 2014-06-27 Martin Liska <mliska@suse.cz>
10210
10211 * gimple.h (gimple_location_safe): New function introduced.
10212 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10213 of gimple_location_safe replaces gimple_location.
10214 (gimple_fold_call): Likewise.
10215 * ipa-devirt.c (ipa_devirt): Likewise.
10216 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10217 * ipa.c (walk_polymorphic_call_targets): Likewise.
10218 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10219
10220 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10221
10222 PR tree-optimization/57233
10223 PR tree-optimization/61299
10224 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10225 functions.
10226 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10227 would be lowered to scalar shifts, check if corresponding
10228 shifts and vector BIT_IOR_EXPR are supported and don't lower
10229 or lower just to narrower vector type in that case.
10230 * expmed.c (expand_shift_1): Fix up handling of vector
10231 shifts and rotates.
10232
10233 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10234
10235 PR target/61586
10236 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10237
10238 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10239
10240 * doc/invoke.texi (-fsemantic-interposition): Document.
10241 * common.opt (fsemantic-interposition): New flag.
10242 * varasm.c (decl_replaceable_p): Use it.
10243
10244 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10245
10246 PR target/61542
10247 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10248 extraction other than index 3.
10249
10250 2014-06-26 Teresa Johnson <tejohnson@google.com>
10251
10252 * doc/invoke.texi: Fix typo.
10253 * dumpfile.c: Add support for documented -fdump-* options
10254 optimized/missed/note/optall.
10255
10256 2014-06-26 Martin Jambor <mjambor@suse.cz>
10257
10258 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10259 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10260 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10261 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10262 * opts.c (default_options_optimization): Set
10263 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10264 * doc/invoke.texi (allow-load-data-races)
10265 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10266 (allow-store-data-races): Document the new default.
10267
10268 2014-06-26 Martin Jambor <mjambor@suse.cz>
10269
10270 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10271 renamed to ipa_impossible_devirt_target. Fix typo.
10272 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10273 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10274 ipa_impossible_devirt_target.
10275
10276 2014-06-26 Richard Biener <rguenther@suse.de>
10277
10278 PR tree-optimization/61607
10279 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10280 explaining why we restrict copies on loop depth.
10281 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10282 on loop depth.
10283 (record_equivalences_from_phis): Instead add it here.
10284
10285 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10286
10287 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10288 (LTO_WRAPPER_OBJS): New variable.
10289 (lto-wrapper$(exeext)): Use it.
10290 * collect2.c: Include "collect-utils.h".
10291 (verbose, debug): Remove variables.
10292 (at_file_supplied): No longer static.
10293 (tool_name): New variable.
10294 (do_wait, fork_execute, maybe_unlink): Don't declare.
10295 (tool_cleanup): No longer static.
10296 (notice): Remove function.
10297 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10298 fork_execute calls.
10299 (collect_wait, do_wait, collect_execute): Remove functions.
10300 (maybe_unlink): No longer static.
10301 * collect2.h (verbose, debug): Don't declare.
10302 (at_file_supplied): Declare.
10303 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10304 changed.
10305 (collect_execute): Replace with implementation from collect2, plus a
10306 new arg use_atfile. All callers changed.
10307 (collect_wait): Replace with implementation from collect2.
10308 (maybe_unlink_file): Remove function.
10309 (fork_execute): Replace with implementation from collect2, plus a
10310 new arg use_atfile. All callers changed.
10311 (do_wait): Add call to utils_cleanup to the error path.
10312 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10313 (tool_cleanup): Adjust declarations.
10314 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10315 * tlink.c: Include "collect-utils.h".
10316 (tlink_execute): New arg use_atfile. All callers changed.
10317 (tlink_init, tlink_execute): Remove declarations.
10318
10319 * collect-utils.c (save_temps): New variable.
10320 (do_wait): Use it instead of debug. Use fatal_error.
10321 * collect-utils.h (save_temps): Declare.
10322 * collect2.c (verbose): Rename from vflag. All uses changed.
10323 (tool_cleanup): New function, copied from collect_atexit.
10324 (collect_atexit, handler): Just call it.
10325 * collect2.h (verbose): Declaration renamed from vflag.
10326 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10327 debug.
10328
10329 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10330 (lto-wrapper$(exeext)): Link with collect-utils.o.
10331 * collect-utils.c: New file.
10332 * collect-utils.h: New file.
10333 * lto-wrapper.c: Include "collect-utils.h".
10334 (args_name): Delete variable.
10335 (tool_name): New variable.
10336 (tool_cleanup): New function.
10337 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10338 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10339 (fork_execute): Remove functions.
10340
10341 2014-06-26 Nick Clifton <nickc@redhat.com>
10342
10343 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10344
10345 * doc/extend.texi (Function Attributes): Fix typo in description
10346 of RX vector attribute.
10347
10348 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10349
10350 * config.gcc (supported_defaults): Error when passing either
10351 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10352
10353 2014-06-26 Richard Biener <rguenther@suse.de>
10354
10355 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10356 propagating volatile pointers.
10357
10358 2014-06-26 Richard Biener <rguenther@suse.de>
10359
10360 PR tree-optimization/61607
10361 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10362 loop if we redirected its latch edge.
10363 (thread_block_1): Do not cancel loops prematurely.
10364
10365 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10366
10367 * toplev.c (backend_init_target): Move init_emit_regs and
10368 init_regs to...
10369 (backend_init) ... here; skip ira_init_once and backend_init_target.
10370 (target_reinit) ... and here; clear
10371 this_target_rtl->lang_dependent_initialized.
10372 (lang_dependent_init_target): Clear
10373 this_target_rtl->lang_dependent_initialized;
10374 break out rtl initialization to ...
10375 (initialize_rtl): ... here; call also backend_init_target
10376 and ira_init_once.
10377 * toplev.h (initialize_rtl): New function.
10378 * function.c: Include toplev.h
10379 (init_function_start): Call initialize_rtl.
10380 * rtl.h (target_rtl): Add target_specific_initialized,
10381 lang_dependent_initialized.
10382
10383 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10384 Jakub Jelinek <jakub@redhat.com>
10385
10386 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10387
10388 2014-06-25 Tom de Vries <tom@codesourcery.com>
10389
10390 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10391
10392 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10393
10394 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10395 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10396 Issue a strict overflow warning if appropriate.
10397
10398 2014-06-25 Martin Liska <mliska@suse.cz>
10399
10400 IPA REF refactoring
10401 * Makefile.in: Removed header file (ipa-ref-inline.h).
10402 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10403 called.
10404 (cgraph_speculative_call_info): Likewise.
10405 (cgraph_for_node_thunks_and_aliases): Likewise.
10406 (cgraph_for_node_and_aliases): Likewise.
10407 (verify_cgraph_node): Likewise.
10408 * cgraph.h: Batch of IPA REF functions become member functions of
10409 symtab_node: add_reference, maybe_add_reference, clone_references,
10410 clone_referring, clone_reference, find_reference,
10411 remove_stmt_references, remove_all_references,
10412 remove_all_referring, dump_references, dump_referring,
10413 has_alias_p, iterate_reference, iterate_referring.
10414 * cgraphbuild.c (record_reference): New IPA REF function used.
10415 (record_type_list): Likewise.
10416 (record_eh_tables): Likewise.
10417 (mark_address): Likewise.
10418 (mark_load): Likewise.
10419 (mark_store): Likewise.
10420 (pass_build_cgraph_edges): Likewise.
10421 (rebuild_cgraph_edge): Likewise.
10422 (cgraph_rebuild_references): Likewise.
10423 (pass_remove_cgraph_callee_edges): Likewise.
10424 * cgraphclones.c (cgraph_clone_node): Likewise.
10425 (cgraph_create_virtual_clone): Likewise.
10426 (cgraph_materialize_clone): Likewise.
10427 (cgraph_materialize_all_clones): Likewise.
10428 * cgraphunit.c (cgraph_reset_node): Likewise.
10429 (cgraph_reset_node): Likewise.
10430 (analyze_function): Likewise.
10431 (assemble_thunks_and_aliases): Likewise.
10432 (expand_function): Likewise.
10433 * ipa-comdats.c (propagate_comdat_group): Likewise.
10434 (enqueue_references): Likewise.
10435 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10436 (create_specialized_node): Likewise.
10437 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10438 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10439 * ipa-inline.c (reset_edge_caches): Likewise.
10440 (update_caller_keys): Likewise.
10441 (execute): Likewise.
10442 * ipa-prop.c (remove_described_reference): Likewise.
10443 (propagate_controlled_uses): Likewise.
10444 (ipa_edge_duplication_hook): Likewise.
10445 (ipa_modify_call_arguments): Likewise.
10446 * ipa-pure-const.c (propagate_pure_const): Likewise.
10447 * ipa-ref-inline.h: Header file removed, functions moved
10448 to symtab_node class.
10449 * ipa-ref.c (remove_reference): New class member function.
10450 (cannot_lead_to_return): New class member function.
10451 (referring_ref_list): Likewise.
10452 (referred_ref_list): Likewise.
10453 Rest of functions moved to symtab_node class.
10454 * ipa-ref.h: New member functions remove_reference,
10455 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10456 to ipa_ref class.
10457 ipa_ref_list class has new member functions: first_reference,
10458 first_referring, clear, nreferences.
10459 * ipa-reference.c (analyze_function): New IPA REF function used.
10460 (write_node_summary_p): Likewise.
10461 (ipa_reference_write_optimization_summary): Likewise.
10462 * ipa-split.c (split_function): Likewise.
10463 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10464 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10465 (function_and_variable_visibility): Likewise.
10466 * ipa.c (has_addr_references_p): Likewise.
10467 (process_references): Argument type changed.
10468 (symtab_remove_unreachable_nodes): New IPA REF function used.
10469 (process_references): Likewise.
10470 (set_writeonly_bit): Likewise.
10471 * lto-cgraph.c: Implementation of new symtab_node member functions
10472 that uses new IPA REF functions.
10473 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10474 function used.
10475 * lto-streamer-out.c (output_symbol_p): Likewise.
10476 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10477 changed.
10478 * symtab.c: Implementation of new IPA REF API.
10479 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10480 (ipa_tm_create_version): Likewise.
10481 (ipa_tm_execute): Likewise.
10482 * tree-emutls.c (gen_emutls_addr): Likewise.
10483 * tree-inline.c (copy_bb): Likewise.
10484 (delete_unreachable_blocks_update_callgraph): Likewise.
10485 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10486 (varpool_for_node_and_aliases): Likewise.
10487
10488 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10489
10490 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10491
10492 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10493
10494 PR bootstrap/61598
10495 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10496 tree_node * instead of tree_node *.
10497 (fold): Adjust.
10498 (print_fold_checksum): Likewise.
10499 (fold_check_failed): Likewise.
10500 (debug_fold_checksum): Likewise.
10501 (fold_build1_stat_loc): Likewise.
10502 (fold_build2_stat_loc): Likewise.
10503 (fold_build3_stat_loc): Likewise.
10504 (fold_build_call_array_loc): Likewise.
10505
10506 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10507
10508 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10509 implementation with call to...
10510 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10511 function.
10512 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10513 Declare.
10514
10515 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10516
10517 PR tree-optimization/57742
10518 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10519 after replacing the statement.
10520
10521 2014-06-25 Nick Clifton <nickc@redhat.com>
10522
10523 * config/v850/v850.c (GHS_default_section_names): Change to const
10524 char * type.
10525 (GHS_current_section_names): Likewise.
10526 (v850_insert_attributes): Do not build strings, just assign the
10527 names directly. Change the type of 'chosen_section' to const
10528 char*.
10529 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10530 directly to the array entry.
10531 * config/v850/v850.h (GHS_default_section_names): Change to const
10532 char * type.
10533 (GHS_current_section_names): Likewise.
10534
10535 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10536
10537 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10538 (LANG_HOOKS_DECLS): Add it.
10539 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10540 has correct type.
10541 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10542 * langhooks.h (struct lang_hooks_for_decls): Add
10543 omp_clause_linear_ctor hook.
10544 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10545 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10546 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10547 combined simd loop use omp_clause_linear_ctor hook.
10548
10549 2014-06-24 Cong Hou <congh@google.com>
10550
10551 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10552 pattern recognition.
10553 (type_conversion_p): PROMOTION is true if it's a type promotion
10554 conversion, and false otherwise. Return true if the given expression
10555 is a type conversion one.
10556 * tree-vectorizer.h: Adjust the number of patterns.
10557 * tree.def: Add SAD_EXPR.
10558 * optabs.def: Add sad_optab.
10559 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10560 * expr.c (expand_expr_real_2): Likewise.
10561 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10562 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10563 * optabs.c (optab_for_tree_code): Likewise.
10564 * tree-cfg.c (estimate_operator_cost): Likewise.
10565 * tree-ssa-operands.c (get_expr_operands): Likewise.
10566 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10567 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10568 * doc/generic.texi: Add document for SAD_EXPR.
10569 * doc/md.texi: Add document for ssad and usad.
10570
10571 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10572
10573 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10574 qualification in cast.
10575
10576 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10577
10578 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10579 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10580 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10581 (tree_function_decl): ... here.
10582 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10583 streaming of vindex to ...
10584 (write_ts_function_decl_tree_pointers): ... here.
10585 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10586 Do not stream DECL_VINDEX.
10587 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10588
10589 2014-06-24 Catherine Moore <clm@codesourcery.com>
10590 Sandra Loosemore <sandra@codesourcery.com>
10591
10592 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10593 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10594 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10595
10596 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10597
10598 * doc/invoke.texi (Warning Options): Remove duplicated
10599 -Wmaybe-uninitialized.
10600
10601 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10602
10603 PR tree-optimization/57742
10604 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10605 (handle_builtin_malloc, handle_builtin_memset): New functions.
10606 (strlen_optimize_stmt): Call them.
10607 * passes.def: Move strlen after loop+dom but before vrp.
10608
10609 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10610
10611 PR target/61570
10612 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10613 model family 6 CPU with has_longmode never use a CPU without
10614 64-bit support.
10615
10616 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10617
10618 PR target/61570
10619 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10620 the last change.
10621
10622 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10623
10624 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10625 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10626 pointer_map.
10627 * hash-map.h: New file.
10628 * ipa-comdats.c: Use hash_map instead of pointer_map.
10629 * ipa.c: Likewise.
10630 * lto-section-out.c: Adjust.
10631 * lto-streamer.h: Replace pointer_map with hash_map.
10632 * symtab.c (verify_symtab): Likewise.
10633 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10634 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10635 * tree-streamer.h: Likewise.
10636 * tree-streamer.c: Adjust.
10637 * pointer-set.h: Remove pointer_map.
10638
10639 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10640
10641 * hash-table.h: Add a template arg to choose between storing values
10642 and storing pointers to values, and then provide partial
10643 specializations for both.
10644 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10645 should store, not the type values should point to.
10646 * tree-into-ssa.c (var_info_hasher): Likewise.
10647 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10648 * tree-complex.c: Adjust.
10649 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10650 table instead of int_tree_map *.
10651 * tree-parloops.c: Adjust.
10652 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10653 type is being stored.
10654 * tree-vectorizer.c: Adjust.
10655
10656 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10657
10658 * hash-table.h: Remove a layer of indirection from hash_table so that
10659 it contains the hash table's data instead of a pointer to the data.
10660 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10661 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10662 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10663 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10664 fold-const.c, gcse.c, ggc-common.c,
10665 gimple-ssa-strength-reduction.c, gimplify.c,
10666 graphite-clast-to-gimple.c, graphite-dependences.c,
10667 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10668 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10669 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10670 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10671 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10672 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10673 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10674 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10675 tree-ssa-live.c, tree-ssa-loop-im.c,
10676 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10677 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10678 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10679 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10680 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10681 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10682 vtable-verify.c, vtable-verify.h: Adjust.
10683
10684 2014-06-24 Richard Biener <rguenther@suse.de>
10685
10686 PR tree-optimization/61572
10687 * tree-ssa-sink.c (statement_sink_location): Do not sink
10688 loads from hard registers.
10689
10690 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10691
10692 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10693 not mentioned in clauses use private clause if the iterator is
10694 declared in #pragma omp for simd, and when adding lastprivate
10695 instead, add it to the outer #pragma omp for too. Diagnose
10696 if the variable is private in outer context. For simd collapse > 1
10697 loops, replace all iterators with temporaries.
10698 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10699 same even in collapse > 1 loops.
10700
10701 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10702 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10703 non-NULL.
10704 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10705 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10706 non-NULL.
10707 (gimplify_adjust_omp_clauses): Likewise.
10708 * omp-low.c (lower_rec_simd_input_clauses,
10709 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10710 safelen the same as safelen(1).
10711 * tree-nested.c (convert_nonlocal_omp_clauses,
10712 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10713 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10714 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10715 Fixup handling of GIMPLE_OMP_TARGET.
10716 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10717 GIMPLE_OMP_TARGET.
10718
10719 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10720
10721 PR tree-optimization/61554
10722 * tree-ssa-propagate.c: Include "bitmap.h".
10723 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10724 properly update constructor/destructor.
10725 (substitute_and_fold_dom_walker::before_dom_children):
10726 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10727 need_eh_cleaup instead.
10728 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10729 need_eh_cleanup.
10730
10731 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10732
10733 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10734 * tree-pass.h (make_pass_ipa_single_use): New pass.
10735 * cgraph.h (used_by_single_function): New flag.
10736 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10737 Stream it.
10738 * passes.def (pass_ipa_single_use): Scedule.
10739 * ipa.c (BOTTOM): New macro.
10740 (meet): New function
10741 (propagate_single_user): New function.
10742 (ipa_single_use): New function.
10743 (pass_data_ipa_single_use): New pass.
10744 (pass_ipa_single_use): New pass.
10745 (pass_ipa_single_use::gate): New gate.
10746 (make_pass_ipa_single_use): New function.
10747
10748 2014-06-23 Kai Tietz <ktietz@redhat.com>
10749
10750 PR target/39284
10751 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10752 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10753
10754 2014-06-23 Richard Biener <rguenther@suse.de>
10755
10756 * tree-ssa-loop.c (gate_loop): New function.
10757 (pass_tree_loop::gate): Call it.
10758 (pass_data_tree_no_loop, pass_tree_no_loop,
10759 make_pass_tree_no_loop): New.
10760 * tree-vectorizer.c: Include tree-scalar-evolution.c
10761 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10762 required.
10763 (pass_slp_vectorize::clone): New method.
10764 * timevar.def (TV_TREE_NOLOOP): New.
10765 * tree-pass.h (make_pass_tree_no_loop): Declare.
10766 * passes.def (pass_tree_no_loop): New pass group with
10767 SLP vectorizer.
10768
10769 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10770
10771 PR target/61570
10772 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10773 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10774
10775 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10776
10777 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10778 "yes" where needed.
10779
10780 2014-06-23 Alan Modra <amodra@gmail.com>
10781
10782 PR bootstrap/61583
10783 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10784 to zero on debug statements.
10785
10786 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10787
10788 PR target/60825
10789 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10790 Ignore third operand if present by marking qualifier_internal.
10791
10792 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10793
10794 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10795 vector extension.
10796 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10797 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10798 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10799 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10800 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10801 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10802 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10803 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10804 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10805 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10806 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10807 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10808 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10809 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10810 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10811 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10812 logic in GCC vector extensions
10813
10814 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10815 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10816 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10817 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10818 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10819 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10820 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10821 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10822 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10823 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10824
10825 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10826
10827 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10828 extensions.
10829
10830 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10831 (vget_low_s64): Use __GET_LOW macro.
10832 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10833 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10834 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10835 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10836 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10837
10838 (vcombine_s64): Use GCC vector extensions; remove cast.
10839 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10840 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10841 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10842 Fix type signature; remove cast.
10843
10844 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10845
10846 PR target/60825
10847 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10848 V1DFmode.
10849 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10850 add V1DFmode
10851 (BUILTIN_VD1): New.
10852 (BUILTIN_VD_RE): Remove.
10853 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10854 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10855 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10856 variant but not df.
10857 (vreinterpretv1df*, vreinterpret*v1df): New.
10858 (vreinterpretdf*, vreinterpret*df): Remove.
10859 * config/aarch64/aarch64-simd.md (aarch64_create,
10860 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10861 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10862 (VD1): New.
10863 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10864 (vcreate_f64): Remove cast, use v1df builtin.
10865 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10866 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10867 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10868 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10869 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10870 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10871 add range check using __builtin_aarch64_im_lane_boundsi.
10872 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10873 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10874 type signature, use gcc vector extensions.
10875 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10876 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10877 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10878 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10879 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10880 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10881 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10882 vreinterpret_u64_f64): Use v1df builtin not df.
10883
10884 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10885
10886 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10887 vector registers.
10888
10889 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10890
10891 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10892 priority directly.
10893
10894 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10895
10896 * loop-invariant.c (pre_check_invariant_p): New function.
10897 (find_invariant_insn): Call pre_check_invariant_p.
10898
10899 2014-06-22 Richard Henderson <rth@redhat.com>
10900
10901 PR target/61565
10902 * compare-elim.c (struct comparison): Add eh_note.
10903 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10904 a redundant comparison in a different EH region. Purge EH edges if
10905 necessary.
10906
10907 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10908
10909 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10910 (var_shift): Use it.
10911 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10912 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10913 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10914 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10915 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10916 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10917 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10918 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10919 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10920 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10921 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10922 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10923 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10924 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10925 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10926 *rotldi3_internal15be): Use the new attribute. Merge register and
10927 integer alternatives.
10928
10929 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10930
10931 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10932 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10933 split, *ashrdi3_internal3 and split): Delete, merge into...
10934 (ashr<mode>3): New expander.
10935 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10936 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10937
10938 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10939
10940 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10941 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10942 *rotldi3_internal3 and split): Delete, merge into...
10943 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10944 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10945 Use "rotlw" extended mnemonic.
10946
10947 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10948
10949 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10950 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10951 and split, *ashldi3_internal3 and split): Delete, merge into...
10952 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10953 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10954
10955 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10956
10957 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10958 (lshrsi3, two anonymous define_insns and define_splits,
10959 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10960 *lshrdi3_internal3 and split): Delete, merge into...
10961 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10962 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10963
10964 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10965
10966 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10967 Remove "O" alternative.
10968
10969 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10970
10971 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10972 (mips_move_from_gpr_cost): Likewise.
10973 (mips_register_move_cost): Update accordingly.
10974 (mips_secondary_reload_class): Remove name of in_p.
10975
10976 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10977
10978 PR target/61503
10979 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10980 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10981
10982 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10983
10984 * config/nios2/nios2.c: Include "builtins.h".
10985
10986 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10987
10988 * cgraph.h (tls_model_names): New variable.
10989 * print-tree.c (print_node): Simplify.
10990 * varpool.c (tls_model_names): New variable.
10991 (dump_varpool_node): Output tls model.
10992
10993 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10994
10995 * ipa-visibility.c (function_and_variable_visibility): Disable
10996 temporarily local aliases for some targets.
10997
10998 2014-06-20 Marek Polacek <polacek@redhat.com>
10999
11000 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11001 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11002 into SANITIZE_UNDEFINED.
11003 * doc/invoke.texi: Describe -fsanitize=bounds.
11004 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11005 functions created in the FEs.
11006 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11007 (expand_UBSAN_BOUNDS): New function.
11008 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11009 * internal-fn.h: Don't define internal functions here.
11010 * opts.c (common_handle_option): Add -fsanitize=bounds.
11011 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11012 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11013 * tree-core.h: Define internal functions here.
11014 (struct tree_base): Add ifn field.
11015 * tree-pretty-print.c: Include "internal-fn.h".
11016 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11017 * tree.c (get_callee_fndecl): Likewise.
11018 (build_call_expr_internal_loc): New function.
11019 * tree.def (CALL_EXPR): Update description.
11020 * tree.h (CALL_EXPR_IFN): Define.
11021 (build_call_expr_internal_loc): Declare.
11022 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11023 types.
11024 (ubsan_type_descriptor): Change bool parameter to enum
11025 ubsan_print_style. Adjust the code. Add handling of
11026 UBSAN_PRINT_ARRAY.
11027 (ubsan_expand_bounds_ifn): New function.
11028 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11029 (ubsan_build_overflow_builtin): Likewise.
11030 (instrument_bool_enum_load): Likewise.
11031 (ubsan_instrument_float_cast): Likewise.
11032 * ubsan.h (enum ubsan_print_style): New enum.
11033 (ubsan_expand_bounds_ifn): Declare.
11034 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11035
11036 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11037
11038 * config/rs6000/rs6000.md: Append `DONE' to preparation
11039 statements of `bswap' pattern splitters.
11040
11041 2014-06-20 Tom de Vries <tom@codesourcery.com>
11042
11043 * target.def (call_fusage_contains_non_callee_clobbers): Update
11044 definition.
11045 * doc/tm.texi: Regenerate.
11046
11047 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11048 Max Ostapenko <m.ostapenko@partner.samsung.com>
11049
11050 PR sanitizer/61547
11051 * asan.c (instrument_strlen_call): Fixed instrumentation of
11052 trailing byte.
11053
11054 2014-06-20 Martin Jambor <mjambor@suse.cz>
11055
11056 PR ipa/61540
11057 * ipa-prop.c (impossible_devirt_target): New function.
11058 (try_make_edge_direct_virtual_call): Use it, also instead of
11059 asserting.
11060
11061 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11062 Max Ostapenko <m.ostapenko@partner.samsung.com>
11063
11064 PR sanitizer/61530
11065 * asan.c (build_check_stmt): Add condition.
11066
11067 2014-06-20 Martin Jambor <mjambor@suse.cz>
11068
11069 PR ipa/61211
11070 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11071 expanded clones.
11072
11073 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11074
11075 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11076 Update comments.
11077 (VCONQ): Make comment more helpful.
11078 (VCON): Delete.
11079 * config/aarch64/aarch64-simd.md
11080 (aarch64_sqdmulh_lane<mode>):
11081 Use VCOND for operands 2. Update lane checking and flipping logic.
11082 (aarch64_sqrdmulh_lane<mode>): Likewise.
11083 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11084 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11085 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11086 attribute of operand 3 to VCOND.
11087 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11088 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11089 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11090 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11091 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11092 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11093 define_insn.
11094 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11095 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11096 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11097 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11098 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11099 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11100 operand to VCOND. Update lane flipping and bounds checking logic.
11101 (aarch64_sqdmlal2_lane<mode>): Likewise.
11102 (aarch64_sqdmlsl_lane<mode>): Likewise.
11103 (aarch64_sqdmull_lane<mode>): Likewise.
11104 (aarch64_sqdmull2_lane<mode>): Likewise.
11105 (aarch64_sqdmlal_laneq<mode>):
11106 Replace VCON usage with VCONQ.
11107 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11108 (aarch64_sqdmlal2_laneq<mode>): Emit
11109 aarch64_sqdmlal2_laneq<mode>_internal insn.
11110 Replace VCON with VCONQ.
11111 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11112 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11113 (aarch64_sqdmull_laneq<mode>): Emit
11114 aarch64_sqdmull_laneq<mode>_internal insn.
11115 Replace VCON with VCONQ.
11116 (aarch64_sqdmull2_laneq<mode>): Emit
11117 aarch64_sqdmull2_laneq<mode>_internal insn.
11118 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11119 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11120 of 3rd argument to int16x4_t.
11121 (vqdmlalh_lane_s16): Likewise.
11122 (vqdmlslh_lane_s16): Likewise.
11123 (vqdmull_high_lane_s16): Likewise.
11124 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11125 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11126 (vqdmlsl_lane_s16): Likewise.
11127 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11128 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11129 (vqdmlals_lane_s32): Likewise.
11130 (vqdmlsls_lane_s32): Likewise.
11131 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11132 (vqdmulls_lane_s32): Likewise.
11133 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11134 (vqdmlsl_lane_s32): Likewise.
11135 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11136 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11137 (vqrdmulhh_lane_s16): Likewise.
11138 (vqdmlsl_high_lane_s16): Likewise.
11139 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11140 (vqdmlsl_high_lane_s32): Likewise.
11141 (vqrdmulhs_lane_s32): Likewise.
11142
11143 2014-06-20 Tom de Vries <tom@codesourcery.com>
11144
11145 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11146 get_call_reg_set_usage.
11147
11148 2014-06-20 Tom de Vries <tom@codesourcery.com>
11149
11150 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11151 it contains all call_used_regs.
11152
11153 2014-06-20 Tom de Vries <tom@codesourcery.com>
11154
11155 * final.c (collect_fn_hard_reg_usage): Add and use variable
11156 function_used_regs.
11157
11158 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11159
11160 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11161 (set_init_priority, get_init_priority, set_fini_priority,
11162 get_fini_priority): New methods.
11163 * tree.c (init_priority_for_decl): Remove.
11164 (init_ttree): Do not initialize init priority.
11165 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11166 (decl_priority_info): Remove.
11167 (decl_init_priority_insert): Rewrite.
11168 (decl_fini_priority_insert): Rewrite.
11169 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11170 tree_priority_map_marked_p): Remove.
11171 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11172 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11173 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11174 not output priorities.
11175 (pack_ts_function_decl_value_fields): Likewise.
11176 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11177 not input priorities.
11178 (unpack_ts_function_decl_value_fields): Likewise.
11179 * symtab.c (symbol_priority_map): Declare.
11180 (init_priority_hash): Declare.
11181 (symtab_unregister_node): Unregister from priority hash, too.
11182 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11183 New methods.
11184 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11185 (symbol_priority_info): New function.
11186 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11187 New methods.
11188 * tree-core.h (tree_priority_map): Remove.
11189
11190 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11191
11192 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11193 0xff to uint64_t before shifting it up.
11194
11195 2014-06-20 Julian Brown <julian@codesourcery.com>
11196 Chung-Lin Tang <cltang@codesourcery.com>
11197
11198 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11199 TARGET_THUMB1_ONLY. Add comments.
11200
11201 2014-06-19 Tom de Vries <tom@codesourcery.com>
11202
11203 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11204 return type to void.
11205 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11206
11207 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11208
11209 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11210 as "move", from depends_on.
11211
11212 2014-06-19 Terry Guo <terry.guo@arm.com>
11213
11214 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11215 stage.
11216
11217 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11218
11219 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11220 Remove cr5.
11221 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11222
11223 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11224
11225 PR target/61550
11226 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11227 addresses here if reload in progress or completed.
11228
11229 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11230
11231 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11232 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11233 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11234 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11235 (mips_register_priority): New function that implements the target
11236 hook TARGET_REGISTER_PRIORITY.
11237 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11238 (mips_lra_p): Likewise for TARGET_LRA_P.
11239 (TARGET_REGISTER_PRIORITY): Define macro.
11240 (TARGET_SPILL_CLASS): Likewise.
11241 (TARGET_LRA_P): Likewise.
11242 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11243 classes.
11244 (REG_CLASS_NAMES): Likewise.
11245 (REG_CLASS_CONTENTS): Likewise.
11246 (BASE_REG_CLASS): Use M16_SP_REGS.
11247 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11248 New set attribute to enable alternatives depending on the register
11249 allocator used.
11250 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11251 (*lea64): Disable pattern for MIPS16.
11252 * config/mips/mips.opt (mlra): New option.
11253
11254 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11255
11256 * lra-constraints.c (base_to_reg): New function.
11257 (process_address): Use new function.
11258
11259 2014-06-18 Tom de Vries <tom@codesourcery.com>
11260
11261 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11262 * config/aarch64/aarch64.c
11263 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11264 (aarch64_emit_call_insn): New function.
11265 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11266 of emit_call_insn.
11267 * config/aarch64/aarch64.md (define_expand "call_internal")
11268 (define_expand "call_value_internal", define_expand "sibcall_internal")
11269 (define_expand "sibcall_value_internal"): New.
11270 (define_expand "call", define_expand "call_value")
11271 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11272 expand variant and aarch64_emit_call_insn.
11273
11274 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11275 Tom de Vries <tom@codesourcery.com>
11276
11277 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11278 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11279 Redefine to true.
11280 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11281 clobbers to CALL_INSN_FUNCTION_USAGE.
11282 (define_expand "sibcall_internal")
11283 (define_expand "sibcall_value_internal"): New.
11284 (define_expand "call", define_expand "call_value"): Add argument to
11285 arm_emit_call_insn.
11286 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11287 (define_expand "sibcall_value"): Use sibcall_value_internal and
11288 arm_emit_call_insn.
11289
11290 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11291
11292 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11293
11294 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11295
11296 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11297 __udivmoddi4.
11298
11299 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11300
11301 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11302 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11303 annotations. Fix DWARF information.
11304
11305 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11306
11307 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11308 __udivmoddi4, and fixups for negative operands.
11309
11310 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11311
11312 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11313
11314 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11315
11316 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11317 to __udivmoddi4.
11318
11319 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11320
11321 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11322 manipulation.
11323
11324 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11325
11326 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11327 describing register usage on function entry and exit.
11328
11329 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11330
11331 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11332 (__aeabi_ldivmod): Fix whitespace.
11333
11334 2014-06-18 Andreas Schwab <schwab@suse.de>
11335
11336 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11337 Remove blank line after @item.
11338
11339 2014-06-18 Richard Henderson <rth@redhat.com>
11340
11341 PR target/61545
11342 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11343
11344 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11345
11346 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11347 POST_MODIFY for neon loads and stores.
11348 (arm_print_operand): Output post-index register for neon loads and
11349 stores.
11350
11351 2014-06-18 Richard Biener <rguenther@suse.de>
11352
11353 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11354
11355 2014-06-18 Richard Biener <rguenther@suse.de>
11356
11357 * tree-pass.h (make_pass_dce_loop): Remove.
11358 * passes.def: Replace pass_dce_loop with pass_dce.
11359 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11360 changed free niter estimates and reset the scev cache.
11361 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11362 make_pass_dce_loop): Remove.
11363 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11364 (fini_copy_prop): Return whether something changed. Always
11365 let substitute_and_fold perform DCE and free niter estimates
11366 and reset the scev cache if so.
11367 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11368 (pass_data_copy_prop): Do not unconditionally schedule
11369 cleanup-cfg or update-ssa.
11370
11371 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11372
11373 PR tree-optimization/61518
11374 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11375 reduction var is used in reduction stmt or phi-function only.
11376
11377 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11378
11379 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11380
11381 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11382
11383 PR tree-optimization/61517
11384 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11385 whose rhs's first tree is the source expression instead of the
11386 expression itself.
11387 (find_bswap_or_nop): Likewise.
11388 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11389 gimple stmt whose rhs's first tree is the source. In the memory source
11390 case, move the stmt to be replaced close to one of the original load to
11391 avoid the problem of a store between the load and the stmt's original
11392 location.
11393 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11394 signature.
11395
11396 2014-06-18 Andreas Schwab <schwab@suse.de>
11397
11398 PR rtl-optimization/54555
11399 * postreload.c (move2add_use_add2_insn): Substitute
11400 STRICT_LOW_PART only if it is cheaper.
11401
11402 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11403
11404 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11405 Do not use unspec as call operand. Use memory_operand instead of
11406 memory_nox32_operand and add "m" operand constraint. Disable
11407 pattern for TARGET_X32.
11408 (*sibcall_pop_memory): Ditto.
11409 (*sibcall_value_memory): Ditto.
11410 (*sibcall_value_pop_memory): Ditto.
11411 (sibcall peepholes): Merge SImode and DImode patterns using
11412 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11413 Disable pattern for TARGET_X32. Check if eliminated register is
11414 really dead after call insn. Generate call RTX without unspec operand.
11415 (sibcall_value peepholes): Ditto.
11416 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11417 instead of memory_nox32_operand. Check if eliminated register is
11418 really dead after call insn. Generate call RTX without unspec operand.
11419 (sibcall_value_pop peepholes): Ditto.
11420 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11421
11422 2014-06-18 Terry Guo <terry.guo@arm.com>
11423
11424 PR target/61544
11425 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11426 reach the head.
11427
11428 2014-06-18 Olivier Hainque <hainque@adacore.com>
11429
11430 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11431 memorization of the end of block source location.
11432 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11433 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11434 end source location info we have on the block entry/exit code we
11435 generate.
11436
11437 2014-06-18 Richard Biener <rguenther@suse.de>
11438
11439 * common.opt (fssa-phiopt): New option.
11440 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11441 but not with -Og.
11442 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11443 * doc/invoke.texi (-fssa-phiopt): Document.
11444
11445 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11446
11447 * genattrtab.c (n_bypassed): New variable.
11448 (process_bypasses): Initialise n_bypassed.
11449 Count number of bypassed reservations.
11450 (make_automaton_attrs): Allocate space for bypassed reservations
11451 rather than number of bypasses.
11452
11453 2014-06-18 Richard Biener <rguenther@suse.de>
11454
11455 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11456 we propagated anything.
11457 (substitute_and_fold_dom_walker::before_dom_children): Something
11458 changed if we propagated into PHI arguments.
11459 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11460 we removed a stmt.
11461
11462 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11463
11464 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11465 vector case.
11466 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11467 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11468 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11469 Introduces alternative way of loads group permutaions.
11470 (vect_transform_grouped_load): Try alternative way of permutations.
11471
11472 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11473
11474 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11475 changed in ORT_TARGET region, don't jump to do_outer.
11476 (struct gimplify_adjust_omp_clauses_data): New type.
11477 (gimplify_adjust_omp_clauses_1): Adjust for data being
11478 a struct gimplify_adjust_omp_clauses_data pointer instead
11479 of tree *. Pass pre_p as a new argument to
11480 lang_hooks.decls.omp_finish_clause hook.
11481 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11482 splay_tree_foreach to pass both list_p and pre_p.
11483 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11484 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11485 gimplify_adjust_omp_clauses callers.
11486 * langhooks.c (lhd_omp_finish_clause): New function.
11487 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11488 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11489 * langhooks.h (struct lang_hooks_for_decls): Add a new
11490 gimple_seq * argument to omp_finish_clause hook.
11491 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11492 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11493 (scan_omp_parallel, lower_omp_for): When adding
11494 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11495 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11496 * tree-nested.c (convert_nonlocal_omp_clauses,
11497 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11498 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11499
11500 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11501
11502 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11503 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11504
11505 2014-06-17 Xinliang David Li <davidxl@google.com>
11506
11507 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11508 * passes.c (pass_init_dump_file): Do not set initialize
11509 flag to false unconditionally.
11510
11511 2014-06-17 Richard Biener <rguenther@suse.de>
11512
11513 * genopinit.c (main): Use vec<>::qsort method.
11514 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11515 Likewise.
11516 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11517
11518 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11519
11520 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11521 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11522 (mips_move_to_gpr_cost): Remove ST_REGS case.
11523 (mips_move_from_gpr_cost): Likewise.
11524 (mips_register_move_cost): Likewise.
11525 (mips_secondary_reload_class): Likewise.
11526
11527 2014-06-17 Richard Biener <rguenther@suse.de>
11528
11529 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11530 (pass_all_optimizations): Move 3rd copy-prop pass from after
11531 fre to before ifcombine/phiopt.
11532
11533 2014-06-17 Richard Biener <rguenther@suse.de>
11534
11535 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11536 and allow all blocks to be forwarders.
11537
11538 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11539
11540 PR target/61483
11541 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11542 variable 'size'; calculate 'size' right in the front; use
11543 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11544 pcum->aapcs_stack_words.
11545
11546 2014-06-17 Nick Clifton <nickc@redhat.com>
11547
11548 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11549 (umulhi3, mulsidi3, umulsidi3): Likewise.
11550
11551 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11552
11553 PR middle-end/61508
11554 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11555 check for section name.
11556
11557 2014-06-17 Richard Biener <rguenther@suse.de>
11558
11559 * tree-ssa-propagate.c: Include domwalk.h.
11560 (substitute_and_fold): Outline main worker into a domwalker ...
11561 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11562 Schedule stmts we can fully propagate for removal. Remove
11563 poor-mans DCE.
11564 (substitute_and_fold): Apply a dominator walk to perform
11565 substitution. Process stmts scheduled for removal here.
11566
11567 2014-06-17 Richard Biener <rguenther@suse.de>
11568
11569 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11570 of PHI node moving.
11571
11572 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11573
11574 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11575 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11576 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11577 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11578 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11579 TARGET_HARD_FLOAT.
11580 (get_fpscr) : Likewise.
11581
11582 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11583
11584 PR rtl-optimization/61325
11585 * lra-constraints.c (valid_address_p): Add forward declaration.
11586 (simplify_operand_subreg): Check address validity before and after
11587 alter_reg of memory subreg.
11588
11589 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11590
11591 * config/i386/i386.c (decide_alg): Correctly handle
11592 maximum size of stringop algorithm.
11593
11594 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11595
11596 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11597
11598 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11599
11600 PR rtl-optimization/61522
11601 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11602
11603 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11604
11605 Revert:
11606 * symtab.c (symtab_node::reset_section): New method.
11607 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11608 for localization.
11609 * cgraph.h (reset_section): Declare.
11610 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11611 do not consider comdat locals.
11612 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11613 for new symbol.
11614 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11615 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11616 reset sections of symbols dragged out of the comdats.
11617 (function_and_variable_visibility): Reset sections of
11618 localized symbols.
11619
11620 2014-06-16 Richard Biener <rguenther@suse.de>
11621
11622 PR tree-optimization/61482
11623 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11624 [-INF(OVF), +INF(OVF)] range.
11625
11626 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11627
11628 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11629 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11630 handling 32-bit multiplication.
11631
11632 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11633
11634 PR middle-end/61430
11635 * lra-lives.c (process_bb_lives): Skip creating copy during
11636 insn scan when src/dest has constrained to same regno.
11637
11638 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11639
11640 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11641 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11642
11643 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11644
11645 * asan.c (check_func): New function.
11646 (maybe_create_ssa_name): Likewise.
11647 (build_check_stmt_with_calls): Likewise.
11648 (use_calls_p): Likewise.
11649 (report_error_func): Change interface.
11650 (build_check_stmt): Allow non-integer lengths; add support
11651 for new parameter.
11652 (asan_instrument): Likewise.
11653 (instrument_mem_region_access): Moved code to build_check_stmt.
11654 (instrument_derefs): Likewise.
11655 (instrument_strlen_call): Likewise.
11656 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11657 * doc/invoke.texi: Describe new parameter.
11658 * params.def: Define new parameter.
11659 * params.h: Likewise.
11660 * sanitizer.def: Describe new builtins.
11661
11662 2014-06-16 Richard Biener <rguenther@suse.de>
11663
11664 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11665 Make all defs available at the end.
11666 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11667
11668 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11669
11670 PR plugins/45078
11671 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11672
11673 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11674
11675 PR bootstrap/61516
11676 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11677 initialization. Replace remaining use of uid.
11678
11679 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11680
11681 * c-family/c-common.c (handle_tls_model_attribute): Use
11682 set_decl_tls_model.
11683 * c-family/c-common.c (handle_tls_model_attribute): Use
11684 set_decl_tls_model.
11685 * cgraph.h (struct varpool_node): Add tls_model.
11686 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11687 * tree.h (DECL_TLS_MODEL): Update.
11688 (DECL_THREAD_LOCAL_P): Check that variable is static.
11689 (decl_tls_model): Declare.
11690 (set_decl_tls_model): Declare.
11691 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11692 set symbol prorperties.
11693 (get_emutls_init_templ_addr): Cleanup.
11694 (new_emutls_decl): Update.
11695 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11696 (lto_input_varpool_node): Likewise.
11697 * lto-streamer-out.c (hash_tree): Likewise.
11698 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11699 not stream DECL_TLS_MODEL.
11700 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11701 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11702
11703 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11704
11705 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11706
11707 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11708
11709 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11710 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11711 lists.
11712 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11713 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11714 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11715 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11716 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11717 (df_get_artificial_defs, df_get_artificial_uses)
11718 (df_single_def, df_single_use): Update accordingly.
11719 (df_refs_chain_dump): Take the first element in a linked list as
11720 parameter, rather than a pointer to an array of pointers.
11721 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11722 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11723 (df_chain_create_bb_process_use): Likewise.
11724 (df_md_bb_local_compute_process_def): Likewise.
11725 * fwprop.c (process_defs, process_uses): Likewise.
11726 (register_active_defs, update_uses): Likewise.
11727 (forward_propagate_asm): Update for new df_ref linking.
11728 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11729 (df_null_ref_rec, df_null_mw_rec): Likewise.
11730 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11731 explicitly.
11732 (df_scan_free_bb_info): Remove check for null artificial_defs.
11733 (df_install_ref_incremental): Adjust for new df_ref linking.
11734 Use a single-element insertion rather than a full sort.
11735 (df_ref_chain_delete_du_chain): Take the first element
11736 in a linked list as parameter, rather than a pointer to an array of
11737 pointers.
11738 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11739 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11740 (df_insn_info_delete): Remove check for null defs and call to
11741 df_scan_free_mws_vec.
11742 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11743 null rather than df_null_*_rec.
11744 (df_insn_rescan_debug_internal): Likewise, and update null
11745 checks in the same way. Remove check for null defs.
11746 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11747 Move a single element rather doing a full sort.
11748 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11749 linking.
11750 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11751 Initialize df_ref and df_mw_hardreg lists to null rather than
11752 df_null_*_rec.
11753 (df_ref_compare): Take df_refs as parameter, transferring the
11754 old interface to...
11755 (df_ref_ptr_compare): ...this new function.
11756 (df_sort_and_compress_refs): Update accordingly.
11757 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11758 old interface to...
11759 (df_mw_ptr_compare): ...this new function.
11760 (df_sort_and_compress_mws): Update accordingly.
11761 (df_install_refs, df_install_mws): Return a linked list rather than
11762 an array of pointers.
11763 (df_refs_add_to_chains): Assert that old lists are empty rather
11764 than freeing them.
11765 (df_insn_refs_verify): Don't handle null defs speciailly.
11766 * web.c (union_match_dups): Update for new df_ref linking.
11767
11768 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11769
11770 * df.h (df_ref_create, df_ref_remove): Delete.
11771 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11772 (df_ref_remove): Likewise.
11773
11774 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11775
11776 * df.h (df_single_def, df_single_use): New functions.
11777 * ira.c (find_moveable_pseudos): Use them.
11778
11779 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11780
11781 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11782 * df-problems.c (df_note_bb_compute): Use it.
11783 * regstat.c (regstat_bb_compute_ri): Likewise.
11784
11785 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11786
11787 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11788 * cse.c (cse_extended_basic_block): Use them.
11789 * dce.c (mark_artificial_use): Likewise.
11790 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11791 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11792 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11793 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11794 (df_simulate_initialize_backwards): Likewise.
11795 (df_simulate_finalize_backwards): Likewise.
11796 (df_simulate_initialize_forwards): Likewise.
11797 (df_md_simulate_artificial_defs_at_top): Likewise.
11798 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11799 * regrename.c (init_rename_info): Likewise.
11800 * regstat.c (regstat_bb_compute_ri): Likewise.
11801 (regstat_bb_compute_calls_crossed): Likewise.
11802
11803 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11804
11805 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11806 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11807 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11808 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11809 * combine.c (create_log_links): Likewise.
11810 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11811 (try_eliminate_compare): Likewise.
11812 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11813 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11814 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11815 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11816 (word_dce_process_block, dce_process_block): Likewise.
11817 * ddg.c (def_has_ccmode_p): Likewise.
11818 * df-core.c (df_bb_regno_first_def_find): Likewise.
11819 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11820 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11821 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11822 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11823 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11824 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11825 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11826 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11827 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11828 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11829 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11830 * fwprop.c (local_ref_killed_between_p): Likewise.
11831 (all_uses_available_at, free_load_extend): Likewise.
11832 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11833 * hw-doloop.c (scan_loop): Likewise.
11834 * ifcvt.c (dead_or_predicable): Likewise.
11835 * init-regs.c (initialize_uninitialized_regs): Likewise.
11836 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11837 (process_bb_node_lives): Likewise.
11838 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11839 (find_moveable_pseudos): Likewise.
11840 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11841 * recog.c (peep2_find_free_register): Likewise.
11842 * ree.c (get_defs): Likewise.
11843 * regstat.c (regstat_bb_compute_ri): Likewise.
11844 (regstat_bb_compute_calls_crossed): Likewise.
11845 * sched-deps.c (find_inc, find_mem): Likewise.
11846 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11847 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11848 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11849 (prepare_shrink_wrap): Likewise.
11850 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11851 * web.c (union_defs, pass_web::execute): Likewise.
11852 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11853 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11854
11855 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11856
11857 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11858 to inheritance pseudos.
11859 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11860
11861 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11862
11863 PR target/61415
11864 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11865 (BU_MISC_2): Rename to ...
11866 (BU_LDBL128_2): ... this.
11867 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11868 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11869 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11870 RS6000_BTM_LDBL128.
11871 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11872 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11873 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11874 (unpacktf_1): Likewise.
11875 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11876 (__builtin_longdouble_dw1): Likewise.
11877 * doc/sourcebuild.texi (longdouble128): Document.
11878
11879 2014-06-13 Jeff Law <law@redhat.com>
11880
11881 PR rtl-optimization/61094
11882 PR rtl-optimization/61446
11883 * ree.c (combine_reaching_defs): Get the mode for the copy from
11884 the extension insn rather than the defining insn.
11885
11886 2014-06-13 Dehao Chen <dehao@google.com>
11887
11888 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11889
11890 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11891
11892 * doc/install.texi (--enable-linker-plugin-configure-flags)
11893 (--enable-linker-plugin-flags): Document new flags.
11894
11895 2014-06-13 Martin Jambor <mjambor@suse.cz>
11896
11897 PR ipa/61186
11898 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11899 cache_token if returning early.
11900
11901 2014-06-13 Nick Clifton <nickc@redhat.com>
11902
11903 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11904 requested alignment is active.
11905 (LABEL_ALIGN): Likewise.
11906 (LOOP_ALIGN): Likewise.
11907
11908 2014-06-13 Richard Biener <rguenther@suse.de>
11909
11910 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11911 Rewrite to propagate the VN result into all uses where
11912 possible and to remove stmts becoming dead because of that.
11913 (eliminate): Generalize stmt removal handling, remove in
11914 reverse dominator order to support proper debug stmt
11915 generation. Update stmts before removing stmts.
11916 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11917
11918 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11919
11920 PR tree-optimization/61375
11921 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11922 symbolic number cannot be represented in an uint64_t.
11923 (find_bswap_or_nop_1): Likewise.
11924
11925 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11926
11927 * symtab.c (symtab_node::reset_section): New method.
11928 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11929 for localization.
11930 * cgraph.h (reset_section): Declare.
11931 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11932 do not consider comdat locals.
11933 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11934 for new symbol.
11935 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11936 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11937 reset sections of symbols dragged out of the comdats.
11938 (function_and_variable_visibility): Reset sections of
11939 localized symbols.
11940
11941 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11942
11943 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11944 to use symtab and decl_binds_to_current_def_p
11945 * tree-vectorizer.c (increase_alignment): Increase alignment
11946 of alias target, too.
11947
11948 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11949
11950 PR middle-end/61486
11951 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11952 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11953 if outer combined construct is distribute.
11954 (gimplify_omp_for): For OMP_DISTRIBUTE set
11955 gimplify_omp_ctxp->distribute.
11956 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11957 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11958 mapping into decl map.
11959
11960 2014-06-12 Jason Merrill <jason@redhat.com>
11961
11962 * common.opt (fabi-version): Change default to 0.
11963
11964 2014-06-12 Jason Merrill <jason@redhat.com>
11965
11966 * toplev.c (process_options): Reject -fabi-version=1.
11967
11968 2014-06-12 Jeff Law <law@redhat.com>
11969
11970 PR tree-optimization/61009
11971 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11972 value when we stop processing a block due to problematic PHIs.
11973
11974 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11975
11976 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11977 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11978 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11979 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11980 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11981 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11982 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11983 are not in the spec.
11984
11985 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11986
11987 PR target/59843
11988 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11989 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11990 Support V1DFmode.
11991
11992 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11993
11994 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11995
11996 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11997
11998 PR target/61443
11999 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12000 loading from address spaces.
12001
12002 2014-06-12 Martin Liska <mliska@suse.cz>
12003
12004 PR ipa/61462
12005 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12006 statement is reachable.
12007
12008 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12009
12010 * symtab.c (section_hash): New hash.
12011 (symtab_unregister_node): Clear section before freeing.
12012 (hash_section_hash_entry): New haser.
12013 (eq_sections): New function.
12014 (symtab_node::set_section_for_node): New method.
12015 (set_section_1): Update.
12016 (symtab_node::set_section): Take string instead of tree as parameter.
12017 (symtab_resolve_alias): Update.
12018 * cgraph.h (section_hash_entry_d): New structure.
12019 (section_hash_entry): New typedef.
12020 (cgraph_node): Change comdat_group_ to x_comdat_group,
12021 change section_ to x_section and turn into section_hash_entry;
12022 update accestors; put set_section_for_node offline.
12023 * tree.c (decl_section_name): Turn into string.
12024 (set_decl_section_name): Change parameter to be string.
12025 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12026 * sdbout.c (sdbout_one_type): Update.
12027 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12028 * varasm.c (IN_NAMED_SECTION, get_named_section,
12029 resolve_unique_section, hot_function_section, get_named_text_section,
12030 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12031 make_decl_rtl, default_unique_section): Update.
12032 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12033 (c6x_elf_unique_section): Update.
12034 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12035 * config/pa/pa.c (pa_function_section): Update.
12036 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12037 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12038 * config/arc/arc.c (arc_in_small_data_p): Update.
12039 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12040 * config/mcore/mcore.c (mcore_unique_section): Update.
12041 * config/mips/mips.c (mips16_build_function_stub): Update.
12042 (mips16_build_call_stub): Update.
12043 (mips_function_rodata_section): Update.
12044 (mips_in_small_data_p): Update.
12045 * config/score/score.c (score_in_small_data_p): Update.
12046 * config/rx/rx.c (rx_in_small_data): Update.
12047 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12048 (rs6000_xcoff_asm_named_section): Update.
12049 (rs6000_xcoff_unique_section): Update.
12050 * config/frv/frv.c (frv_string_begins_with): Update.
12051 (frv_in_small_data_p): Update.
12052 * config/v850/v850.c (v850_encode_data_area): Update.
12053 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12054 (bfin_handle_l1_data_attribute): Update.
12055 (bfin_handle_l2_attribute): Update.
12056 * config/mep/mep.c (mep_unique_section): Update.
12057 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12058 Update.
12059 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12060 (h8300_handle_tiny_data_attribute): Update.
12061 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12062 (m32r_in_small_data_p): Update.
12063 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12064 * config/i386/i386.c (ix86_in_large_data_p): Update.
12065 * config/i386/winnt.c (i386_pe_unique_section): Update.
12066 * config/darwin.c (darwin_function_section): Update.
12067 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12068 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12069 (new_emutls_decl): Update.
12070 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12071 input_varpool_node): Update.
12072 (ead_string_cst): Turn to ...
12073 (read_string): ... this one.
12074 * dwarf2out.c (secname_for_decl): Update.
12075 * asan.c (asan_protect_global): Update.
12076
12077 2014-06-11 DJ Delorie <dj@redhat.com>
12078
12079 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12080 cache lines.
12081 * config/rx/rx.c (rx_option_override): Likewise.
12082 (rx_align_for_label): Likewise.
12083
12084 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12085
12086 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12087
12088 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12089 prototype.
12090
12091 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12092
12093 * common.md: New file.
12094 * doc/md.texi: Update description of generic, machine-independent
12095 constraints.
12096 * config/s390/constraints.md (e): Delete.
12097 * Makefile.in (md_file): Include common.md.
12098 * config/m32c/t-m32c (md_file): Likewise.
12099 * genpreds.c (general_mem): New array.
12100 (generic_constraint_letters): Remove constraints now defined by
12101 common.md.
12102 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12103 Allow the first character to be '<' or '>' as well.
12104 * genoutput.c (general_mem): New array.
12105 (indep_constraints): Remove constraints now defined by common.md.
12106 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12107 Remove special handling of 'm'.
12108 * ira-costs.c (record_reg_classes): Remove special handling of
12109 constraints now defined by common.md.
12110 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12111 * ira-lives.c (single_reg_class): Likewise.
12112 (ira_implicitly_set_insn_hard_regs): Likewise.
12113 * lra-constraints.c (reg_class_from_constraints): Likewise.
12114 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12115 * postreload.c (reload_cse_simplify_operands): Likewise.
12116 * reload.c (push_secondary_reload, scratch_reload_class)
12117 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12118 * reload1.c (maybe_fix_stack_asms): Likewise.
12119 * targhooks.c (default_secondary_reload): Likewise.
12120 * stmt.c (parse_output_constraint): Likewise.
12121 * recog.c (preprocess_constraints): Likewise.
12122 (constrain_operands, peep2_find_free_register): Likewise.
12123 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12124 must be handled specially.
12125
12126 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12127
12128 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12129 * genpreds.c (have_const_dbl_constraints): Delete.
12130 (add_constraint): Don't set it.
12131 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12132 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12133 constraints using the lookup_constraint logic.
12134 * ira-lives.c (single_reg_class): Likewise.
12135 * ira.c (ira_setup_alts): Likewise.
12136 * lra-constraints.c (process_alt_operands): Likewise.
12137 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12138 * reload.c (find_reloads): Likewise.
12139
12140 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12141
12142 * genpreds.c (const_int_start, const_int_end): New variables.
12143 (choose_enum_order): Output CONST_INT constraints before memory
12144 constraints.
12145 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12146 Add CT_CONST_INT.
12147 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12148 * ira.c (ira_setup_alts): Likewise.
12149 * lra-constraints.c (process_alt_operands): Likewise.
12150 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12151 * reload.c (find_reloads): Likewise.
12152
12153 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12154
12155 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12156 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12157 * recog.c (preprocess_constraints): Update accordingly.
12158
12159 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12160
12161 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12162 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12163 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12164 * genpreds.c (print_type_tree): New function.
12165 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12166 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12167 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12168 Write out enum constraint_type and get_constraint_type.
12169 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12170 constraint_num rather than a constraint string.
12171 (satisfies_address_constraint_p): Likewise.
12172 (reg_class_from_constraints): Avoid old constraint macros.
12173 (process_alt_operands, process_address_1): Likewise.
12174 (curr_insn_transform): Likewise.
12175 * ira-costs.c (record_reg_classes): Likewise.
12176 (record_operand_costs): Likewise.
12177 * ira-lives.c (single_reg_class): Likewise.
12178 (ira_implicitly_set_insn_hard_regs): Likewise.
12179 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12180 * postreload.c (reload_cse_simplify_operands): Likewise.
12181 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12182 (constrain_operands, peep2_find_free_register): Likewise.
12183 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12184 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12185 * reload1.c (maybe_fix_stack_asms): Likewise.
12186 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12187 * targhooks.c (default_secondary_reload): Likewise.
12188 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12189 to EXTRA_CONSTRAINT_STR.
12190 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12191
12192 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12193
12194 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12195 (write_constraint_satisfied_p_array): ...this new function.
12196 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12197 an array.
12198 (write_insn_preds_c): Update accordingly.
12199
12200 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12201
12202 * genpreds.c (write_lookup_constraint): Rename to...
12203 (write_lookup_constraint_1): ...this.
12204 (write_lookup_constraint_array): New function.
12205 (write_tm_preds_h): Define lookup_constraint as an inline function
12206 that uses write_lookup_constraint_array where possible.
12207 (write_insn_preds_c): Update for the changes above.
12208
12209 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12210
12211 * doc/md.texi (regclass_for_constraint): Rename to...
12212 (reg_class_for_constraint): ...this.
12213 * genpreds.c (num_constraints, enum_order, register_start)
12214 (register_end, satisfied_start, memory_start, memory_end)
12215 (address_start, address_end): New variables.
12216 (add_constraint): Count the number of constraints.
12217 (choose_enum_order): New function.
12218 (write_enum_constraint_num): Iterate over enum_order.
12219 (write_regclass_for_constraint): Rename to...
12220 (write_reg_class_for_constraint_1): ...this and update output
12221 accordingly.
12222 (write_constraint_satisfied_p): Rename to...
12223 (write_constraint_satisfied_p_1): ...this and update output
12224 accordingly. Do nothing if all extra constraints are register
12225 constraints.
12226 (write_insn_extra_memory_constraint): Delete.
12227 (write_insn_extra_address_constraint): Delete.
12228 (write_range_function): New function.
12229 (write_tm_preds_h): Define constraint_satisfied_p and
12230 reg_class_for_constraint as inline functions that do a range check
12231 before calling the out-of-line function. Use write_range_function
12232 to implement insn_extra_{register,memory,address}_constraint,
12233 the first of which is new.
12234 (write_insn_preds_c): Update after above changes to write_* functions.
12235 (main): Call choose_enum_order.
12236
12237 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12238
12239 PR tree-optimization/61306
12240 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12241 expression instead of its size.
12242 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12243 false to prevent optimization when the result is unpredictable due to
12244 arithmetic right shift of signed type with highest byte is set.
12245 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12246 (init_symbolic_number): Likewise.
12247 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12248 when the result is unpredictable due to sign extension.
12249
12250 2014-06-11 Terry Guo <terry.guo@arm.com>
12251
12252 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12253 (*thumb1_addsi3): Ditto.
12254 (*thumb_subdi3): Ditto.
12255 (thumb1_subsi3_insn): Ditto.
12256 (*thumb_mulsi3): Ditto.
12257 (*thumb_mulsi3_v6): Ditto.
12258 (*thumb1_andsi3_insn): Ditto.
12259 (thumb1_bicsi3): Ditto.
12260 (*thumb1_iorsi3_insn): Ditto.
12261 (*thumb1_xorsi3_insn): Ditto.
12262 (*thumb1_ashlsi3): Ditto.
12263 (*thumb1_ashrsi3): Ditto.
12264 (*thumb1_lshrsi3): Ditto.
12265 (*thumb1_rotrsi3): Ditto.
12266 (*thumb1_negdi2): Ditto.
12267 (*thumb1_negsi2): Ditto.
12268 (*thumb1_abssi2): Ditto.
12269 (*thumb1_neg_abssi2): Ditto.
12270 (*thumb1_one_cmplsi2): Ditto.
12271 (*thumb1_zero_extendhisi2): Ditto.
12272 (*thumb1_zero_extendqisi2): Ditto.
12273 (*thumb1_zero_extendqisi2_v6): Ditto.
12274 (thumb1_extendhisi2): Ditto.
12275 (thumb1_extendqisi2): Ditto.
12276 (*thumb1_movdi_insn): Ditto.
12277 (*thumb1_movsi_insn): Ditto.
12278 (*thumb1_movhi_insn): Ditto.
12279 (thumb_movhi_clobber): Ditto.
12280 (*thumb1_movqi_insn): Ditto.
12281 (*thumb1_movhf): Ditto.
12282 (*thumb1_movsf_insn): Ditto.
12283 (*thumb_movdf_insn): Ditto.
12284 (movmem12b): Ditto.
12285 (movmem8b): Ditto.
12286 (cbranchqi4): Ditto.
12287 (cbranchsi4_insn): Ditto.
12288 (cbranchsi4_scratch): Ditto.
12289 (*negated_cbranchsi4): Ditto.
12290 (*tbit_cbranch): Ditto.
12291 (*tlobits_cbranch): Ditto.
12292 (*tstsi3_cbranch): Ditto.
12293 (*cbranchne_decr1): Ditto.
12294 (*addsi3_cbranch): Ditto.
12295 (*addsi3_cbranch_scratch): Ditto.
12296 (*thumb_cmpdi_zero): Ditto.
12297 (cstoresi_eq0_thumb1): Ditto.
12298 (cstoresi_ne0_thumb1): Ditto.
12299 (*cstoresi_eq0_thumb1_insn): Ditto.
12300 (*cstoresi_ne0_thumb1_insn): Ditto.
12301 (cstoresi_nltu_thumb1): Ditto.
12302 (cstoresi_ltu_thumb1): Ditto.
12303 (thumb1_addsi3_addgeu): Ditto.
12304 (*thumb_jump): Ditto.
12305 (*call_reg_thumb1_v5): Ditto.
12306 (*call_reg_thumb1): Ditto.
12307 (*call_value_reg_thumb1_v5): Ditto.
12308 (*call_value_reg_thumb1): Ditto.
12309 (*call_insn): Ditto.
12310 (*call_value_insn): Ditto.
12311 (thumb1_casesi_internal_pic): Ditto.
12312 (thumb1_casesi_dispatch): Ditto.
12313 (*thumb1_indirect_jump): Ditto.
12314 (prologue_thumb1_interwork): Ditto.
12315 (*epilogue_insns): Ditto.
12316 (consttable_1): Ditto.
12317 (consttable_2): Ditto.
12318 (tablejump): Ditto.
12319 (*thumb1_tablejump): Ditto.
12320 (thumb_eh_return): Ditto.
12321 (define_peephole2): Two of them are thumb1 only and got moved into
12322 new file thumb1.md.
12323 (define_split): Six of them are thumb1 only and got moved into new
12324 file thumb1.md.
12325 * config/arm/thumb1.md: New file comprised of above thumb1 only
12326 patterns.
12327
12328 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12329
12330 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12331 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12332 dependencies.
12333 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12334 (aarch64_crc_builtin_datum): New struct.
12335 (aarch64_crc_builtin_data): New.
12336 (aarch64_init_crc32_builtins): New function.
12337 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12338 (aarch64_crc32_expand_builtin): New.
12339 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12340 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12341 __ARM_FEATURE_CRC32 when appropriate.
12342 (TARGET_CRC32): Define.
12343 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12344 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12345 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12346 (aarch64_<crc_variant>): New pattern.
12347 * config/aarch64/arm_acle.h: New file.
12348 * config/aarch64/iterators.md (CRC): New int iterator.
12349 (crc_variant, crc_mode): New int attributes.
12350 * doc/aarch64-acle-intrinsics.texi: New file.
12351 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12352 Include aarch64-acle-intrinsics.texi.
12353
12354 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12355
12356 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12357 check for stores group of length 3.
12358 (vect_permute_store_chain): New permutations for stores group of
12359 length 3.
12360 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12361 of vec_perm_shuffle for the new permutations.
12362
12363 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12364
12365 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12366 table rewriting temporarily on targets not supporting ONE_ONLY.
12367
12368 2014-06-11 Richard Biener <rguenther@suse.de>
12369
12370 PR middle-end/61437
12371 Revert
12372 2014-06-04 Richard Biener <rguenther@suse.de>
12373
12374 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12375 TREE_PUBLIC and DECL_EXTERNAL decls.
12376
12377 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12378
12379 * varasm.c (set_implicit_section): New function.
12380 (resolve_unique_section): Use it to set implicit section
12381 for aliases, too.
12382 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12383 (default_function_section): Likewise.
12384 (decl_binds_to_current_def_p): Constify argument.
12385 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12386 * asan.c (asan_protect_global): Use
12387 symtab_get_node (decl)->implicit_section.
12388 * symtab.c (dump_symtab_base): Dump implicit sections.
12389 (verify_symtab_base): Verify sanity of sectoins and comdats.
12390 (symtab_resolve_alias): Alias share the section of its target.
12391 (set_section_1): New function.
12392 (symtab_node::set_section): Move here, recurse to aliases.
12393 (verify_symtab): Check for duplicated symtab lists.
12394 * tree-core.h (implicit_section_name_p): Remove.
12395 * tree-vect-data-refs.c: Include varasm.h.
12396 (vect_can_force_dr_alignment_p): Fix conditional on when
12397 decl bints to current definition; use
12398 symtab_get_node (decl)->implicit_section.
12399 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12400 * cgraph.h (struct symtab_node): Add implicit_section.
12401 (set_section): Rename to ...
12402 (set_section_for_node): ... this one.
12403 (set_section): Declare.
12404 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12405 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12406 input_overwrite_node, input_varpool_node): Stream implicit_section.
12407 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12408 removal; it will fail in LTO.
12409
12410 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12411
12412 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12413 Change second alternative type to f_mcr.
12414 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12415 and 12th alternatives' types to f_mcr and f_mrc.
12416 (*movdi_aarch64): Same for 12th and 13th alternatives.
12417 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12418 (aarch64_movtilow_tilow): Change type to fmov.
12419
12420 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12421
12422 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12423 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12424
12425 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12426
12427 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12428 New expander.
12429 (aarch64_sqrdmulh_lane<mode>): Likewise.
12430 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12431 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12432 (aarch64_sqdmulh_laneq<mode>): New expander.
12433 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12434 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12435 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12436 (aarch64_sqdmulh_lane<mode>): New expander.
12437 (aarch64_sqrdmulh_lane<mode>): Likewise.
12438 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12439 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12440 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12441 (aarch64_sqdmlal_laneq<mode>): Likewise.
12442 (aarch64_sqdmlsl_lane<mode>): Likewise.
12443 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12444 (aarch64_sqdmlal2_lane<mode>): Likewise.
12445 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12446 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12447 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12448 (aarch64_sqdmull_lane<mode>): Likewise.
12449 (aarch64_sqdmull_laneq<mode>): Likewise.
12450 (aarch64_sqdmull2_lane<mode>): Likewise.
12451 (aarch64_sqdmull2_laneq<mode>): Likewise.
12452
12453 2014-06-10 Richard Biener <rguenther@suse.de>
12454
12455 PR tree-optimization/61438
12456 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12457 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12458 insertion of IVs if running PRE.
12459 (eliminate): Adjust.
12460 (pass_pre::execute): Likewise.
12461 (pass_fre::execute): Likewise.
12462
12463 2014-06-10 Richard Biener <rguenther@suse.de>
12464
12465 PR middle-end/61456
12466 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12467 Do not use the main variant for the type comparison.
12468 (ncr_compar): Likewise.
12469 (nonoverlapping_component_refs_p): Likewise.
12470
12471 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12472
12473 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12474 REG_CFA_RESTORE mode.
12475
12476 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12477
12478 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12479 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12480 expand_vec_perm_pblendv.
12481
12482 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12483
12484 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12485 available.
12486 Simplify description of __crc32d and __crc32cd intrinsics.
12487 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12488 availability.
12489
12490 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12491
12492 PR lto/61334
12493 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12494 * config.in: Regenerate.
12495 * configure: Likewise.
12496
12497 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12498
12499 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12500 and public vars.
12501 (intersect_static_var_sets): Remove.
12502 (propagate): Do not prune local statics.
12503
12504 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12505
12506 PR fortran/60928
12507 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12508 Set lastprivate_firstprivate even if omp_private_outer_ref
12509 langhook returns true.
12510 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12511 langhook, call unshare_expr on new_var and call
12512 build_outer_var_ref to get the last argument.
12513
12514 2014-06-10 Marek Polacek <polacek@redhat.com>
12515
12516 PR c/60988
12517 * doc/extend.texi: Add cindex for transparent_union.
12518
12519 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12520
12521 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12522 init_symbolic_number ().
12523
12524 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12525
12526 PR middle-end/61141
12527 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12528 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12529 (verify_rtl_sharing): Likewise.
12530
12531 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12532
12533 PR c++/54442
12534 * tree.c (build_qualified_type): Use a canonical type for
12535 TYPE_CANONICAL.
12536
12537 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12538
12539 * config/arm/arm-modes.def: Remove XFmode.
12540
12541 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12542
12543 PR target/61062
12544 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12545 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12546 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12547 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12548 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12549 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12550 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12551 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12552 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12553
12554 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12555
12556 * tree-core.h (tree_decl_with_vis): Remove section_name.
12557
12558 2014-06-09 Kito Cheng <kito@0xlab.org>
12559
12560 * ira.c (ira): Don't call init_caller_save if LRA enabled
12561 since LRA use its own infrastructure to handle that.
12562
12563 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12564
12565 * symtab.c (dump_symtab_base): Update dumping.
12566 (symtab_make_decl_local): Clear only DECL_COMDAT.
12567 * tree-vect-data-refs.c (Check that variable is static before
12568 tampering with sections.
12569 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12570 (cgraph_create_virtual_clone): Likewise.
12571 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12572 (decl_section_name, set_decl_section_name): New accessors.
12573 (find_decls_types_r): Do not walk section name
12574 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12575 (decl_comdat_group, decl_comdat_group_id): Constify.
12576 (decl_section_name, set_decl_section_name): Update.
12577 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12578 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12579 (cgraph_make_node_local_1): Clear section and comdat group.
12580 * cgraph.h (set_comdat_group): Sanity check.
12581 (get_section, set_section): New.
12582 * ipa-comdats.c (ipa_comdats): Use get_section.
12583 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12584 * lto-streamer-out.c: Do not follow section names.
12585 * c-family/c-common.c (handle_section_attribute): Update.
12586 * lto-cgraph.c (lto_output_node): Output section.
12587 (lto_output_varpool_node): Likewise.
12588 (read_comdat_group): Rename to ...
12589 (read_identifier): ... this one.
12590 (read_string_cst): New function.
12591 (input_node, input_varpool_node): Input section names.
12592 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12593 (new_emutls_decl): Update.
12594 (secname_for_decl): Check section names only of static vars.
12595 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12596 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12597 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12598 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12599 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12600 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12601 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12602 * config/v850/v850.c (v850_insert_attributes): Likewise.
12603 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12604 Likewise.
12605 (h8300_handle_tiny_data_attribute): Likewise.
12606 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12607 (bfin_handle_l2_attribute): Likewise.
12608
12609 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12610
12611 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12612 remove static initializer.
12613
12614 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12615
12616 * varasm.c (use_blocks_for_decl_p): Check symbol table
12617 instead of alias attribute.
12618 (place_block_symbol): Recurse on aliases.
12619
12620 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12621
12622 * ipa-visibility.c: Include varasm.h
12623 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12624
12625 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12626
12627 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12628 outputting aliases.
12629
12630 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12631
12632 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12633 from test_insn into GGC space escape via SET_SRC.
12634
12635 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12636
12637 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12638 call statement, if any.
12639 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12640 statements, if any. Tidy up.
12641
12642 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12643
12644 PR target/61431
12645 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12646 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12647 handles swapping the two 64-bit double words on little endian
12648 systems. Include V1TImode and optionally TImode in VSX_LE so that
12649 these types are properly swapped. Change all of the insns and
12650 splits that do the 64-bit swaps to use VSX_LE.
12651 (vsx_le_perm_load_<mode>): Likewise.
12652 (vsx_le_perm_store_<mode>): Likewise.
12653 (splitters for little endian memory operations): Likewise.
12654 (vsx_xxpermdi2_le_<mode>): Likewise.
12655 (vsx_lxvd2x2_le_<mode>): Likewise.
12656 (vsx_stxvd2x2_le_<mode>): Likewise.
12657
12658 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12659
12660 PR target/61423
12661 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12662 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12663 and corresponding splitters. Zero extend general register
12664 or memory input operand to XMM temporary. Enable for
12665 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12666 (floatunssi<mode>2): Update expander predicate.
12667
12668 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12669
12670 PR rtl-optimization/61325
12671 * lra-constraints.c (process_address_1): Check scale equal to one
12672 to prevent transformation: base + scale * index => base + new_reg.
12673
12674 2014-06-06 Richard Biener <rguenther@suse.de>
12675
12676 PR tree-optimization/59299
12677 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12678 a def operand.
12679 (nearest_common_dominator_of_uses): Likewise.
12680 (statement_sink_location): Adjust. Support sinking loads.
12681
12682 2014-06-06 Martin Jambor <mjambor@suse.cz>
12683
12684 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12685 (build_agg_jump_func_from_list): Likewise.
12686 (determine_known_aggregate_parts): Renamed to
12687 determine_locally_known_aggregate_parts. Moved some functionality
12688 to the two functions above, removed bound checks.
12689
12690 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12691
12692 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12693 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12694 (aarch64_progress_pointer): Likewise.
12695 (aarch64_copy_one_part_and_move_pointers): Likewise.
12696 (aarch64_expand_movmen): Likewise.
12697 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12698 * config/aarch64/aarch64.md (movmem<mode>): New.
12699
12700 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12701
12702 * targhooks.c (default_add_stmt_cost): Call target specific
12703 hook instead of default one.
12704
12705 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12706
12707 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12708 endianness instead of host endianness.
12709 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12710 comments.
12711
12712 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12713
12714 PR debug/53927
12715 * function.c (instantiate_decls): Process the saved static chain.
12716 (expand_function_start): If not optimizing, save the static chain
12717 onto the stack.
12718 * tree-nested.c (convert_all_function_calls): Always create the static
12719 chain for nested functions if not optimizing.
12720
12721 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12722
12723 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12724
12725 2014-06-06 Richard Biener <rguenther@suse.de>
12726
12727 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12728 (construct_init_block): Likewise.
12729 (construct_exit_block): Likewise.
12730 (pass_expand::execute): Likewise.
12731 * graphite.c (graphite_transforms): Replace check for current_loops
12732 with a check for > 1 loops.
12733 (pass_graphite_transforms::execute): Adjust.
12734 * ipa-split.c (split_function): Remove check for current_loops.
12735 * omp-low.c (expand_parallel_call): Likewise.
12736 (expand_omp_for_init_counts): Likewise.
12737 (extract_omp_for_update_vars): Likewise.
12738 (expand_omp_for_generic): Likewise.
12739 (expand_omp_sections): Likewise.
12740 (expand_omp_target): Likewise.
12741 * tracer.c (tail_duplicate): Likewise.
12742 (pass_tracer::execute): Likewise.
12743 * trans-mem.c (expand_transaction): Likewise.
12744 * tree-complex.c (expand_complex_div_wide): Likewise.
12745 * tree-eh.c (lower_resx): Likewise.
12746 (cleanup_empty_eh_merge_phis): Likewise.
12747 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12748 current_loops with a check for > 1 loops.
12749 (pass_predcom::execute): Adjust.
12750 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12751 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12752 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12753 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12754 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12755 * tree-switch-conversion.c (process_switch): Likewise.
12756 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12757 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12758 (execute_vrp): Likewise.
12759 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12760
12761 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12762
12763 * rtl.h (insn_location): Declare.
12764 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12765 with UNKNOWN_LOCATION.
12766 * emit-rtl.c (insn_location): New function.
12767 * final.c (notice_source_line): Check that the instruction has a
12768 location before retrieving it and use insn_location.
12769 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12770 * print-rtl.c (print_rtx): Likewise.
12771
12772 2014-06-06 Richard Biener <rguenther@suse.de>
12773
12774 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12775
12776 2014-06-06 Christian Bruel <christian.bruel@st.com>
12777
12778 PR tree-optimization/43934
12779 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12780 cost.
12781
12782 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12783
12784 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12785 return NO_REGS for extra address and memory constraints. Handle
12786 operands that match (or are equivalent to something that matches)
12787 extra constant constraints. Ignore other non-register operands.
12788
12789 2014-06-06 Alan Modra <amodra@gmail.com>
12790
12791 PR target/61300
12792 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12793 * doc/tm.texi: Regenerate.
12794 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12795 Use throughout in place of REG_PARM_STACK_SPACE.
12796 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12797 "incoming" param. Pass to rs6000_function_parms_need_stack.
12798 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12799 prototype_p when incoming. Use function decl when incoming
12800 to handle K&R style functions.
12801 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12802 (INCOMING_REG_PARM_STACK_SPACE): Define.
12803
12804 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12805
12806 PR target/52472
12807 * cfgexpand.c (expand_debug_expr): Use address space of nested
12808 TREE_TYPE for ADDR_EXPR and MEM_REF.
12809
12810 2014-06-05 Jeff Law <law@redhat.com>
12811
12812 PR tree-optimization/61289
12813 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12814 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12815 looking for those which match LHS. All callers changed.
12816 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12817 parameters and code which manipulated them. All callers changed.
12818 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12819 and DST_MAP parameters. Simplify invalidation code by just calling
12820 invalidate_equivalences. All callers changed.
12821 (thread_across_edge): Simplify now that we don't need to maintain
12822 the map of equivalences to invalidate.
12823
12824 2014-06-05 Kai Tietz <ktietz@redhat.com>
12825 Richard Henderson <rth@redhat.com>
12826
12827 PR target/46219
12828 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12829 checking for !TARGET_X32.
12830 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12831 (sibcall_intern): New define_insn, plus required peepholes.
12832 (sibcall_pop_intern): Likewise.
12833 (sibcall_value_intern): Likewise.
12834 (sibcall_value_pop_intern): Likewise.
12835
12836 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12837
12838 * tree-inline.c (tree_function_versioning): Check DF info existence
12839 before accessing it.
12840
12841 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12842
12843 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12844 frame_size.
12845 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12846 aarch64_frame hard_fp_offset and frame_size.
12847 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12848 frame_size; remove original_frame_size.
12849 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12850 (aarch64_initial_elimination_offset): Remove frame_size and
12851 offset. Use aarch64_frame frame_size.
12852
12853 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12854 Jiong Wang <jiong.wang@arm.com>
12855 Renlin <renlin.li@arm.com>
12856
12857 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12858 initialization of R30 offset. Update offset. Iterate core
12859 regisers upto X30. Remove X29, X30 specific code.
12860
12861 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12862 Jiong Wang <jiong.wang@arm.com>
12863
12864 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12865 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12866 (aarch64_register_saved_on_entry): Adjust test.
12867
12868 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12869
12870 * config/aarch64/aarch64.h (machine_function): Move
12871 saved_varargs_size from here...
12872 (aarch64_frame): ... to here.
12873
12874 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12875 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12876 (aarch64_initial_elimination_offset)
12877 (aarch64_setup_incoming_varargs): Adjust location of
12878 saved_varargs_size.
12879
12880 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12881
12882 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12883 layout comment.
12884
12885 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12886 Prachi Godbole <Prachi.Godbole@imgtec.com>
12887
12888 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12889 mips32r5 entry to use PROCESSOR_P5600.
12890 * config/mips/mips-tables.opt: Regenerate.
12891 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12892 * config/mips/mips.c (mips_fmadd_bypass): New function.
12893 (mips_rtx_cost_data): Add costs for p5600.
12894 (mips_issue_rate): Add support for p5600.
12895 (mips_multipass_dfa_lookahead): Likewise.
12896 * config/mips/mips.h (TUNE_P5600): New define.
12897 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12898 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12899 * config/mips/mips.md: Include p5600.md.
12900 (processor): Add p5600.
12901 * config/mips/p5600.md: New file.
12902
12903 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12904
12905 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12906 * config/i386/predicates.md (palignr_operand): New.
12907 Indicates if permutation is suitable for palignr instruction.
12908
12909 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12910
12911 PR tree-optimization/61319
12912 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12913 stmt belongs to loop.
12914
12915 2014-06-05 Richard Biener <rguenther@suse.de>
12916
12917 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12918 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12919 (lookup_tmp_var): Adjust.
12920 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12921
12922 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12923
12924 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12925
12926 2014-06-05 Marek Polacek <polacek@redhat.com>
12927
12928 PR c/49706
12929 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12930
12931 2014-06-04 Tom de Vries <tom@codesourcery.com>
12932
12933 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12934 CONST_INT.
12935
12936 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12937
12938 PR tree-optimization/61385
12939 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12940
12941 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12942
12943 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12944 changed to use fatal_error.
12945 (main): Ensure lto_wrapper_cleanup is run atexit.
12946
12947 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12948
12949 * lra-constraints.c (valid_address_p): Move earlier in file.
12950 (address_eliminator): New structure.
12951 (satisfies_memory_constraint_p): New function.
12952 (satisfies_address_constraint_p): Likewise.
12953 (process_alt_operands, process_address, curr_insn_transform): Use them.
12954
12955 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12956
12957 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12958 const pointer.
12959 (target_lra_int, default_target_lra_int, this_target_lra_int)
12960 (op_alt_data): Delete.
12961 * lra.h (lra_init): Delete.
12962 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12963 (init_insn_code_data_once): Remove op_alt_data handling.
12964 (finish_insn_code_data_once): Likewise.
12965 (init_op_alt_data): Delete.
12966 (get_static_insn_data): Initialize operand_alternative to null.
12967 (free_insn_recog_data): Cast operand_alternative before freeing it.
12968 (setup_operand_alternative): Take the operand_alternative as
12969 parameter and assume it isn't already cached in the static
12970 insn data.
12971 (lra_set_insn_recog_data): Update accordingly.
12972 (lra_init): Delete.
12973 * ira.c (ira_init): Don't call lra_init.
12974 * target-globals.h (this_target_lra_int): Declare.
12975 (target_globals): Remove lra_int.
12976 (restore_target_globals): Update accordingly.
12977 * target-globals.c: Don't include lra-int.h.
12978 (default_target_globals, save_target_globals): Remove lra_int.
12979
12980 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12981
12982 * recog.h (operand_alternative): Convert reg_class, reject,
12983 matched and matches into bitfields.
12984 (preprocess_constraints): New overload.
12985 (preprocess_insn_constraints): New function.
12986 (preprocess_constraints): Take the insn as parameter.
12987 (recog_op_alt): Change into a pointer.
12988 (target_recog): Add x_op_alt.
12989 * recog.c (asm_op_alt): New variable.
12990 (recog_op_alt): Change into a pointer.
12991 (preprocess_constraints): New overload, replacing the old function
12992 definition with one that doesn't use global state.
12993 (preprocess_insn_constraints): New function.
12994 (preprocess_constraints): Use them. Take the insn as parameter.
12995 Use asm_op_alt for asms.
12996 (recog_init): Free existing x_op_alt entries.
12997 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12998 pointer const.
12999 (make_early_clobber_and_input_conflicts): Likewise.
13000 (process_bb_node_lives): Pass the insn to process_constraints.
13001 * reg-stack.c (check_asm_stack_operands): Likewise.
13002 (subst_asm_stack_regs): Likewise.
13003 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13004 * regrename.c (build_def_use): Likewise.
13005 * sched-deps.c (sched_analyze_insn): Likewise.
13006 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13007 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13008 (note_invalid_constants): Likewise.
13009 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13010 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13011 const.
13012
13013 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13014
13015 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13016 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13017 alternatives.
13018 (make_early_clobber_and_input_conflicts): Likewise.
13019 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13020
13021 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13022
13023 * recog.h (alternative_class): New function.
13024 (which_op_alt): Return a const recog_op_alt.
13025 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13026 (subst_asm_stack_regs): Likewise.
13027 * config/arm/arm.c (note_invalid_constants): Likewise.
13028 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13029 the operand_alternative; use alternative class instead.
13030 * sel-sched.c (get_reg_class): Likewise.
13031 * regrename.c (build_def_use): Likewise.
13032 (hide_operands, restore_operands, record_out_operands): Update type
13033 accordingly.
13034
13035 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13036
13037 * recog.h (recog_op_alt): Convert to a flat array.
13038 (which_op_alt): New function.
13039 * recog.c (recog_op_alt): Convert to a flat array.
13040 (preprocess_constraints): Update accordingly, grouping all
13041 operands of the same alternative together, rather than the
13042 other way around.
13043 * ira-lives.c (check_and_make_def_conflict): Likewise.
13044 (make_early_clobber_and_input_conflicts): Likewise.
13045 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13046 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13047 (subst_asm_stack_regs): Likewise.
13048 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13049 * regrename.c (hide_operands, record_out_operands): Likewise.
13050 (build_def_use): Likewise.
13051 * sel-sched.c (get_reg_class): Likewise.
13052 * config/arm/arm.c (note_invalid_constants): Likewise.
13053
13054 2014-06-04 Jason Merrill <jason@redhat.com>
13055
13056 PR c++/51253
13057 PR c++/61382
13058 * gimplify.c (gimplify_arg): Non-static.
13059 * gimplify.h: Declare it.
13060
13061 2014-06-04 Richard Biener <rguenther@suse.de>
13062
13063 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13064 TREE_PUBLIC and DECL_EXTERNAL decls.
13065
13066 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13067
13068 * regcprop.c (copyprop_hardreg_forward_1): Account for
13069 HARD_REGNO_CALL_PART_CLOBBERED.
13070
13071 2014-06-04 Richard Biener <rguenther@suse.de>
13072
13073 * configure.ac: Check whether the underlying type of int64_t
13074 is long or long long.
13075 * configure: Regenerate.
13076 * config.in: Likewise.
13077 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13078 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13079
13080 2014-06-04 Richard Biener <rguenther@suse.de>
13081
13082 PR tree-optimization/60098
13083 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13084 we hit a kill.
13085 (dse_optimize_stmt): Simplify, now that we found a kill
13086 earlier.
13087
13088 2014-06-04 Richard Biener <rguenther@suse.de>
13089
13090 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13091 of accesses with non-invariant address.
13092
13093 2014-06-04 Martin Liska <mliska@suse.cz>
13094
13095 * cgraph.h (cgraph_make_wrapper): New function introduced.
13096 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13097 * ipa-inline.h (inline_analyze_function): The function is global.
13098 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13099
13100 2014-06-04 Martin Liska <mliska@suse.cz>
13101
13102 * tree.h (private_lookup_attribute_starting): New function.
13103 (lookup_attribute_starting): Likewise.
13104 * tree.c (private_lookup_attribute_starting): Likewise.
13105
13106 2014-06-04 Martin Liska <mliska@suse.cz>
13107
13108 * cgraph.h (expand_thunk): New argument added.
13109 (address_taken_from_non_vtable_p): New global function.
13110 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13111 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13112 * cgraphunit.c (analyze_function): Likewise.
13113 (assemble_thunks_and_aliases): Argument added to call.
13114 (expand_thunk): New argument forces to produce GIMPLE thunk.
13115
13116 2014-06-04 Martin Liska <mliska@suse.cz>
13117
13118 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13119 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13120 * profile.c (branch_prob): Likewise.
13121
13122 2014-06-04 Martin Jambor <mjambor@suse.cz>
13123
13124 PR ipa/61340
13125 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13126 handler for switch on an ipa_ref_use enum.
13127 * ipa-reference.c (analyze_function): Likewise.
13128
13129 2014-06-04 Kai Tietz <ktietz@redhat.com>
13130
13131 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13132 from old call-instruction.
13133
13134 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13135
13136 * config/aarch64/aarch64.c (aarch64_classify_address)
13137 (aarch64_legitimize_reload_address): Support full addressing modes
13138 for vector modes.
13139 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13140 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13141
13142 2014-06-03 Andrew Pinski <apinski@cavium.com>
13143
13144 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13145 for OP0.
13146
13147 2014-06-03 Andrew Pinski <apinski@cavium.com>
13148
13149 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13150 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13151
13152 2014-06-03 Kai Tietz <ktietz@redhat.com>
13153
13154 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13155 for 64-bit ms-abi.
13156
13157 2014-06-03 Dehao Chen <dehao@google.com>
13158
13159 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13160 the same loop.
13161
13162 2014-06-03 Marek Polacek <polacek@redhat.com>
13163
13164 PR c/60439
13165 * doc/invoke.texi: Document -Wswitch-bool.
13166 * function.c (stack_protect_epilogue): Cast controlling expression of
13167 the switch to int.
13168 * gengtype.c (walk_type): Generate switch expression with its
13169 controlling expression cast to int.
13170
13171 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13172
13173 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13174 and attiny841.
13175 * config/avr/avr-tables.opt: Regenerate.
13176 * config/avr/t-multilib: Regenerate.
13177 * doc/avr-mmcu.texi: Regenerate.
13178
13179 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13180 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13181
13182 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13183 (ata6617c, ata664251): Add new avr35 devices.
13184 (ata6612c): Add new avr4 device.
13185 (ata6613c, ata6614q): Add new avr5 devices.
13186 * config/avr/avr-tables.opt: Regenerate.
13187 * config/avr/t-multilib: Regenerate.
13188 * doc/avr-mmcu.texi: Regenerate.
13189
13190 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13191
13192 * gcc/config/aarch64/aarch64-builtins.c
13193 (aarch64_types_binop_ssu_qualifiers): New static data.
13194 (TYPES_BINOP_SSU): Define.
13195 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13196 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13197 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13198 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13199 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13200 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13201 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13202 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13203 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13204 suffix to builtin function name, remove cast.
13205 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13206 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13207 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13208
13209 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13210
13211 * gcc/config/aarch64/aarch64-builtins.c
13212 (aarch64_types_binop_uus_qualifiers,
13213 aarch64_types_shift_to_unsigned_qualifiers,
13214 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13215 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13216 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13217 sqshlu_n, uqshl_n): Update qualifiers.
13218 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13219 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13220 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13221 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13222 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13223 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13224 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13225 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13226 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13227 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13228 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13229 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13230 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13231 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13232 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13233 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13234 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13235 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13236 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13237 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13238 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13239 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13240 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13241 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13242 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13243 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13244 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13245
13246 2014-06-03 Teresa Johnson <tejohnson@google.com>
13247
13248 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13249
13250 2014-06-02 Jason Merrill <jason@redhat.com>
13251
13252 PR c++/61020
13253 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13254
13255 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13256
13257 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13258 location == 0.
13259
13260 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13261
13262 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13263 New pattern.
13264 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13265 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13266 * config/aarch64/iterators.md (REVERSE): New iterator.
13267 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13268 (rev_op): New int_attribute.
13269 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13270 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13271 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13272 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13273 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13274 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13275 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13276 Replace temporary __asm__ with __builtin_shuffle.
13277
13278 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13279
13280 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13281 mips64r5.
13282 * config/mips/mips-tables.opt: Regenerate.
13283 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13284 to use mips_isa_rev rather than ISA_MIPS32R2.
13285 * config/mips/mips.h (ISA_MIPS32R3): New define.
13286 (ISA_MIPS32R5): New define.
13287 (ISA_MIPS64R3): New define.
13288 (ISA_MIPS64R5): New define.
13289 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13290 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13291 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13292 and mips64r5.
13293 (MIPS_ISA_SYNCI_SPEC): Likewise.
13294 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13295 (LINK_SPEC): Added mips32r3 and mips32r5.
13296 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13297 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13298 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13299 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13300 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13301 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13302 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13303
13304 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13305
13306 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13307 options.
13308 * config/mips/mips.opt (mxpa): New option.
13309 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13310 assembler.
13311
13312 2014-06-03 Martin Jambor <mjambor@suse.cz>
13313
13314 PR ipa/61160
13315 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13316 thunks.
13317
13318 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13319
13320 PR tree-optimization/61328
13321 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13322 initialization from find_bswap_or_nop_1.
13323 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13324 in source_expr2 before using the size value the function sets. Also
13325 make use of init_symbolic_number () in both the old place and
13326 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13327 doing recursion in the GIMPLE_BINARY_RHS case.
13328
13329 2014-06-03 Richard Biener <rguenther@suse.de>
13330
13331 PR tree-optimization/61383
13332 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13333 stmts can't trap.
13334
13335 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13336
13337 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13338 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13339 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13340 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13341 in this file.
13342 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13343 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13344 * system.h: ...here and make it unconditional.
13345 * target.def (conditional_register_usage): Mention
13346 define_register_constraint instead of old-style constraint macros.
13347 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13348 * doc/tm.texi: Regenerate.
13349 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13350 protected by !USE_MD_CONSTRAINTS.
13351 * config/frv/frv.md: Remove quote from old version of documentation.
13352 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13353 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13354 CONST_DOUBLE_OK_FOR_LETTER.
13355 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13356
13357 2014-06-02 Andrew Pinski <apinski@cavium.com>
13358
13359 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13360 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13361 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13362 file whose name depends on -mabi= and -mbig-endian.
13363 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13364 Handle LP64 better and handle ilp32 too.
13365 (MULTILIB_OPTIONS): Delete.
13366 (MULTILIB_DIRNAMES): Delete.
13367
13368 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13369
13370 * expr.h: Remove prototypes of functions defined in builtins.c.
13371 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13372 Remove prototypes of functions defined in builtins.c.
13373 * builtins.h: Update prototype list to include all exported functions.
13374 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13375 no_c99_libc_has_function): Move to targhooks.c
13376 (build_string_literal, build_call_expr_loc_array,
13377 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13378 to tree.c.
13379 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13380 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13381 no_c99_libc_has_function): Relocate from builtins.c.
13382 * tree.c: Include builtins.h.
13383 (build_call_expr_loc_array, build_call_expr_loc_vec,
13384 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13385 from builtins.c.
13386 * fold-const.h (fold_fma): Move prototype to builtins.h.
13387 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13388 * asan.c: Include builtins.h.
13389 * cfgexpand.c: Likewise.
13390 * convert.c: Likewise.
13391 * emit-rtl.c: Likewise.
13392 * except.c: Likewise.
13393 * expr.c: Likewise.
13394 * fold-const.c: Likewise.
13395 * gimple-fold.c: Likewise.
13396 * gimple-ssa-strength-reduction.c: Likewise.
13397 * gimplify.c: Likewise.
13398 * ipa-inline.c: Likewise.
13399 * ipa-prop.c: Likewise.
13400 * lto-streamer-out.c: Likewise.
13401 * stmt.c: Likewise.
13402 * tree-inline.c: Likewise.
13403 * tree-object-size.c: Likewise.
13404 * tree-sra.c: Likewise.
13405 * tree-ssa-ccp.c: Likewise.
13406 * tree-ssa-forwprop.c: Likewise.
13407 * tree-ssa-loop-ivcanon.c: Likewise.
13408 * tree-ssa-loop-ivopts.c: Likewise.
13409 * tree-ssa-math-opts.c: Likewise.
13410 * tree-ssa-reassoc.c: Likewise.
13411 * tree-ssa-threadedge.c: Likewise.
13412 * tree-streamer-in.c: Likewise.
13413 * tree-vect-data-refs.c: Likewise.
13414 * tree-vect-patterns.c: Likewise.
13415 * tree-vect-stmts.c: Likewise.
13416 * config/aarch64/aarch64.c: Likewise.
13417 * config/alpha/alpha.c: Likewise.
13418 * config/arc/arc.c: Likewise.
13419 * config/arm/arm.c: Likewise.
13420 * config/avr/avr.c: Likewise.
13421 * config/bfin/bfin.c: Likewise.
13422 * config/c6x/c6x.c: Likewise.
13423 * config/cr16/cr16.c: Likewise.
13424 * config/cris/cris.c: Likewise.
13425 * config/epiphany/epiphany.c: Likewise.
13426 * config/fr30/fr30.c: Likewise.
13427 * config/frv/frv.c: Likewise.
13428 * config/h8300/h8300.c: Likewise.
13429 * config/i386/i386.c: Likewise.
13430 * config/i386/winnt.c: Likewise.
13431 * config/ia64/ia64.c: Likewise.
13432 * config/iq2000/iq2000.c: Likewise.
13433 * config/lm32/lm32.c: Likewise.
13434 * config/m32c/m32c.c: Likewise.
13435 * config/m32r/m32r.c: Likewise.
13436 * config/m68k/m68k.c: Likewise.
13437 * config/mcore/mcore.c: Likewise.
13438 * config/mep/mep.c: Likewise.
13439 * config/microblaze/microblaze.c: Likewise.
13440 * config/mips/mips.c: Likewise.
13441 * config/mmix/mmix.c: Likewise.
13442 * config/mn10300/mn10300.c: Likewise.
13443 * config/moxie/moxie.c: Likewise.
13444 * config/msp430/msp430.c: Likewise.
13445 * config/nds32/nds32.c: Likewise.
13446 * config/pa/pa.c: Likewise.
13447 * config/pdp11/pdp11.c: Likewise.
13448 * config/picochip/picochip.c: Likewise.
13449 * config/rl78/rl78.c: Likewise.
13450 * config/rs6000/rs6000.c: Likewise.
13451 * config/rx/rx.c: Likewise.
13452 * config/s390/s390.c: Likewise.
13453 * config/score/score.c: Likewise.
13454 * config/sh/sh.c: Likewise.
13455 * config/sparc/sparc.c: Likewise.
13456 * config/spu/spu.c: Likewise.
13457 * config/stormy16/stormy16.c: Likewise.
13458 * config/tilegx/tilegx.c: Likewise.
13459 * config/tilepro/tilepro.c: Likewise.
13460 * config/v850/v850.c: Likewise.
13461 * config/vax/vax.c: Likewise.
13462 * config/xtensa/xtensa.c: Likewise.
13463
13464 2014-06-02 Jeff Law <law@redhat.com>
13465
13466 PR rtl-optimization/61094
13467 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13468 was marked as do_no_reextend. If a copy is needed to eliminate
13469 an extension, then mark it as do_not_reextend.
13470
13471 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13472
13473 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13474
13475 2014-06-02 Richard Henderson <rth@redhat.com>
13476
13477 PR target/61336
13478 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13479 addresses inside asms. Use output_operand_lossage instead of
13480 gcc_unreachable.
13481
13482 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13483
13484 PR target/61239
13485 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13486 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13487
13488 2014-06-02 Tom de Vries <tom@codesourcery.com>
13489
13490 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13491 case that x has VOIDmode.
13492
13493 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13494
13495 * varasm.c (copy_constant): Delete function.
13496 (build_constant_desc): Don't call it.
13497
13498 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13499
13500 PR target/61154
13501 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13502 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13503 with immediate_operand.
13504
13505 2014-06-02 Andreas Schwab <schwab@suse.de>
13506
13507 * config/ia64/ia64.c
13508 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13509 pending_data_specs first.
13510
13511 2014-06-02 Richard Biener <rguenther@suse.de>
13512
13513 PR tree-optimization/61378
13514 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13515 valueized_anything.
13516
13517 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13518
13519 * config/i386/constraints.md (Bw): Rename from 'w'.
13520 (Bz): Rename from 'z'.
13521 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13522
13523 2014-06-01 Kai Tietz <ktietz@redhat.com>
13524
13525 PR target/61377
13526 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13527 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13528 instead of m constraint.
13529
13530 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13531
13532 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13533 a separate alternative where the scratch operand 2 is marked as
13534 early clobber.
13535
13536 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13537
13538 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13539 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13540 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13541 and __builtins_arm_get_fpscr.
13542 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13543 __builtins_arm_get_fpscr.
13544 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13545 __builtins_arm_ldfpscr.
13546 (arm_atomic_assign_expand_fenv): New function.
13547 * config/arm/vfp.md (set_fpscr): New pattern.
13548 (get_fpscr) : Likewise.
13549 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13550 VUNSPEC_SET_FPSCR.
13551 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13552 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13553
13554 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13555
13556 * asan.c (report_error_func): Add SLOW_P argument, use
13557 BUILT_IN_ASAN_*_N if set.
13558 (build_check_stmt): Likewise.
13559 (instrument_derefs): If T has insufficient alignment,
13560 force same handling as for odd sizes.
13561
13562 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13563 BUILT_IN_ASAN_REPORT_STORE_N): New.
13564 * asan.c (struct asan_mem_ref): Change access_size type to
13565 HOST_WIDE_INT.
13566 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13567 update_mem_ref_hash_table): Likewise.
13568 (asan_mem_ref_hasher::hash): Hash in a HWI.
13569 (report_error_func): Change size_in_bytes argument to HWI.
13570 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13571 two.
13572 (build_shadow_mem_access): New function.
13573 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13574 Handle size_in_bytes not power of two or larger than 16.
13575 (instrument_derefs): Don't give up if size_in_bytes is not
13576 power of two or is larger than 16.
13577
13578 2014-05-30 Kai Tietz <ktietz@redhat.com>
13579
13580 PR target/60104
13581 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13582 for sibling-tail-calls.
13583 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13584 to its use.
13585 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13586 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13587
13588 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13589
13590 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13591 * config/avr/avr-tables.opt: Regenerate.
13592 * config/avr/t-multilib: Regenerate.
13593 * doc/avr-mmcu.texi: Regenerate.
13594
13595 2014-05-30 Ian Lance Taylor <iant@google.com>
13596
13597 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13598 target("sse").
13599
13600 2014-05-30 Tom de Vries <tom@codesourcery.com>
13601
13602 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13603 Redefine as true.
13604
13605 2014-05-30 Tom de Vries <tom@codesourcery.com>
13606
13607 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13608 * lra.c (initialize_lra_reg_info_element): Add init of
13609 actual_call_used_reg_set field.
13610 (lra): Call lra_create_live_ranges before lra_inheritance for
13611 -fuse-caller-save.
13612 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13613 -fuse-caller-save.
13614 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13615 instead of call_used_reg_set for -fuse-caller-save.
13616 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13617
13618 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13619
13620 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13621 to mov_imm.
13622 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13623
13624 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13625
13626 * ira.c (ira_get_dup_out_num): Check for output operands at
13627 the start of the loop. Handle cases where an included alternative
13628 follows an excluded one.
13629
13630 2014-05-29 Mike Stump <mikestump@comcast.net>
13631
13632 PR debug/61352
13633 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13634 post ld passes when lto is used.
13635
13636 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13637
13638 PR rtl-optimization/61325
13639 * lra-constraints.c (process_address): Rename to process_address_1.
13640 (process_address): New function.
13641
13642 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13643
13644 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13645 TYPES_BINOPV): New static data.
13646 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13647 New builtin.
13648 * config/aarch64/aarch64-simd.md (aarch64_ext,
13649 aarch64_im_lane_boundsi): New patterns.
13650 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13651 patterns for EXT.
13652 (aarch64_evpc_ext): New function.
13653
13654 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13655
13656 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13657 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13658 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13659 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13660 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13661
13662 2014-05-29 Tom de Vries <tom@codesourcery.com>
13663
13664 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13665
13666 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13667 Richard Sandiford <rdsandiford@googlemail.com>
13668
13669 * arm/iterators.md (shiftable_ops): New code iterator.
13670 (t2_binop0, arith_shift_insn): New code attributes.
13671 * arm/predicates.md (shift_nomul_operator): New predicate.
13672 * arm/arm.md (insn_enabled): Delete.
13673 (enabled): Remove insn_enabled test.
13674 (*arith_shiftsi): Delete. Replace with ...
13675 (*<arith_shift_insn>_multsi): ... new pattern.
13676 (*<arith_shift_insn>_shiftsi): ... new pattern.
13677 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13678
13679 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13680 Tom de Vries <tom@codesourcery.com>
13681
13682 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13683 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13684 clobber.
13685 (mips_split_call): Use POST_CALL_TMP_REG.
13686 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13687
13688 2014-05-29 Tom de Vries <tom@codesourcery.com>
13689
13690 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13691 with #ifdef STACK_REGS.
13692
13693 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13694
13695 * varasm.c (get_variable_section): Walk aliases.
13696 (place_block_symbol): Walk aliases.
13697
13698 2014-05-28 Tom de Vries <tom@codesourcery.com>
13699
13700 Revert:
13701 2014-05-28 Tom de Vries <tom@codesourcery.com>
13702
13703 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13704 * lra.c (initialize_lra_reg_info_element): Add init of
13705 actual_call_used_reg_set field.
13706 (lra): Call lra_create_live_ranges before lra_inheritance for
13707 -fuse-caller-save.
13708 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13709 -fuse-caller-save.
13710 * lra-constraints.c (need_for_call_save_p): Use
13711 actual_call_used_reg_set instead of call_used_reg_set for
13712 -fuse-caller-save.
13713 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13714
13715 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13716
13717 * doc/md.texi: Document that the % constraint character must
13718 be at the beginning of the string.
13719 * genoutput.c (validate_insn_alternatives): Check that '=',
13720 '+' and '%' only appear at the beginning of a constraint.
13721 * ira.c (commutative_constraint_p): Delete.
13722 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13723 at the start of the string.
13724 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13725 duplicate '='s.
13726 * config/arm/neon.md (bicdi3_neon): Likewise.
13727 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13728 (slt_si, sltu_si): Likewise.
13729 * config/vax/vax.md (sbcdi3): Likewise.
13730 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13731 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13732 (mul64): Move '%' to beginning of constraint.
13733 * config/arm/arm.md (*xordi3_insn): Likewise.
13734 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13735 (xorsi3): Likewise.
13736
13737 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13738
13739 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13740
13741 2014-05-28 Jason Merrill <jason@redhat.com>
13742
13743 PR c++/47202
13744 * cgraph.h (symtab_node::get_comdat_group_id): New.
13745 * cgraphunit.c (analyze_functions): Call it.
13746 * symtab.c (dump_symtab_node): Likewise.
13747 * tree.c (decl_comdat_group_id): New.
13748 * tree.h: Declare it.
13749 * lto-streamer-out.c (write_symbol): Use it.
13750 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13751
13752 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13753
13754 PR bootstrap/PR61146
13755 * wide-int.cc: Do not include longlong.h when compiling with clang.
13756
13757 2014-05-28 Richard Biener <rguenther@suse.de>
13758
13759 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13760 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13761 (vrp_visit_assignment_or_call): Print less vertical space.
13762 (vrp_visit_stmt): Likewise.
13763 (vrp_visit_phi_node): Likewise. For a PHI argument with
13764 VR_VARYING range consider recording it as copy.
13765
13766 2014-05-28 Richard Biener <rguenther@suse.de>
13767
13768 Revert
13769 2014-05-28 Richard Biener <rguenther@suse.de>
13770
13771 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13772
13773 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13774
13775 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13776 sufficiently aligned and an offset is used at the same time.
13777 (expand_expr_real_1): Likewise.
13778
13779 2014-05-28 Richard Biener <rguenther@suse.de>
13780
13781 PR middle-end/61045
13782 * fold-const.c (fold_comparison): When folding
13783 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13784 the sign of the remaining constant operand stays the same.
13785
13786 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13787
13788 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13789 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13790 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13791 to the assembler.
13792 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13793 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13794 (m32bit-doubles) Likewise.
13795 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13796 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13797 option for RL78.
13798
13799 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13800
13801 * configure.ac ($gcc_cv_ld_clearcap): New test.
13802 * configure: Regenerate.
13803 * config.in: Regenerate.
13804 * config/sol2.opt (mclear-hwcap): New option.
13805 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13806 * config/sol2-clearcap.map: Moved here from
13807 testsuite/gcc.target/i386/clearcap.map.
13808 * config/sol2-clearcapv2.map: Move here from
13809 gcc.target/i386/clearcapv2.map.
13810 * config/t-sol2 (install): Depend on install-clearcap-map.
13811 (install-clearcap-map): New target.
13812 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13813 -mclear-hwcap.
13814
13815 2014-05-28 Richard Biener <rguenther@suse.de>
13816
13817 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13818 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13819 ... here and remove the rest.
13820 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13821
13822 2014-05-28 Richard Biener <rguenther@suse.de>
13823
13824 PR tree-optimization/61335
13825 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13826 new range fails, drop to varying.
13827
13828 2014-05-28 Olivier Hainque <hainque@adacore.com>
13829
13830 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13831 (CPP_SPEC): Add entry for -mcpu=8548.
13832 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13833 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13834
13835 2014-05-28 Tom de Vries <tom@codesourcery.com>
13836
13837 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13838 * lra.c (initialize_lra_reg_info_element): Add init of
13839 actual_call_used_reg_set field.
13840 (lra): Call lra_create_live_ranges before lra_inheritance for
13841 -fuse-caller-save.
13842 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13843 -fuse-caller-save.
13844 * lra-constraints.c (need_for_call_save_p): Use
13845 actual_call_used_reg_set instead of call_used_reg_set for
13846 -fuse-caller-save.
13847 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13848
13849 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13850 Tom de Vries <tom@codesourcery.com>
13851
13852 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13853 to gccoptlist.
13854 (@item -fuse-caller-save): New item.
13855
13856 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13857 Tom de Vries <tom@codesourcery.com>
13858
13859 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13860 OPT_fuse_caller_save.
13861
13862 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13863 Tom de Vries <tom@codesourcery.com>
13864
13865 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13866 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13867 get_call_reg_set_usage.
13868 * resource.c (mark_set_resources, mark_target_live_regs): Use
13869 get_call_reg_set_usage.
13870 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13871 field.
13872 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13873 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13874 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13875 * ira-build.c (ira_create_allocno): Init
13876 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13877 (create_cap_allocno, propagate_allocno_info)
13878 (propagate_some_info_from_allocno)
13879 (copy_info_to_removed_store_destinations): Handle
13880 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13881 * ira-costs.c (ira_tune_allocno_costs): Use
13882 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13883
13884 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13885 Tom de Vries <tom@codesourcery.com>
13886
13887 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13888 and function_used_regs_valid fields.
13889 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13890 find_all_hard_reg_sets.
13891 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13892 (get_call_reg_set_usage): New function.
13893 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13894 * regs.h (get_call_reg_set_usage): Declare.
13895
13896 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13897
13898 PR libgcc/61152
13899 * config/dbx.h (License): Add Runtime Library Exception.
13900 * config/newlib-stdint.h (License): Same.
13901 * config/rtems.h (License): Same
13902 * config/initfini-array.h (License): Same
13903 * config/v850/v850.h (License): Same.
13904 * config/v850/v850-opts.h (License): Same
13905 * config/v850/rtems.h (License): Same.
13906
13907 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13908
13909 PR target/61044
13910 * doc/extend.texi (Local Labels): Note that label differences are
13911 not supported for AVR.
13912
13913 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13914 Olivier Hainque <hainque@adacore.com>
13915
13916 * rtl.h (set_for_reg_notes): Declare.
13917 * emit-rtl.c (set_for_reg_notes): New function.
13918 (set_unique_reg_note): Use it.
13919 * optabs.c (add_equal_note): Likewise
13920
13921 2014-05-27 Andrew Pinski <apinski@cavium.com>
13922
13923 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13924 Use <w> for the register in assembly template.
13925 (stack_protect_test): Use the mode of operands[0] for the result.
13926 (stack_protect_test_<mode>): Use <w> for the register
13927 in assembly template.
13928
13929 2014-05-27 DJ Delorie <dj@redhat.com>
13930
13931 * config/rx/rx.c (add_vector_labels): New.
13932 (rx_output_function_prologue): Call it.
13933 (rx_handle_func_attribute): Don't require empty arguments.
13934 (rx_handle_vector_attribute): New.
13935 (rx_attribute_table): Add "vector" attribute.
13936 * doc/extend.texi (interrupt, vector): Document new/changed
13937 RX-specific attributes.
13938
13939 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13940
13941 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13942
13943 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13944 predicate to detect a negative quotient.
13945
13946 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13947
13948 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13949 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13950 Add X - Y CMP 0 to X CMP Y transformation.
13951 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13952
13953 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13954
13955 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13956 before printing.
13957
13958 2014-05-27 Steve Ellcey <sellcey@mips.com>
13959
13960 * config/mips/mips.c: Add include of cgraph.h.
13961
13962 2014-05-27 Richard Biener <rguenther@suse.de>
13963
13964 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13965
13966 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13967
13968 PR libgcc/61152
13969 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13970 * config/arm/arm-cores.def (License): Same.
13971 * config/arm/arm-opts.h (License): Same.
13972 * config/arm/aout.h (License): Same.
13973 * config/arm/bpabi.h (License): Same.
13974 * config/arm/elf.h (License): Same.
13975 * config/arm/linux-elf.h (License): Same.
13976 * config/arm/linux-gas.h (License): Same.
13977 * config/arm/netbsd-elf.h (License): Same.
13978 * config/arm/uclinux-eabi.h (License): Same.
13979 * config/arm/uclinux-elf.h (License): Same.
13980 * config/arm/vxworks.h (License): Same.
13981
13982 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13983
13984 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13985 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13986 (arm_init_neon_builtins): Handle NEON_BSWAP.
13987 Define required type nodes.
13988 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13989 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13990 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13991 * config/arm/iterators.md (VDQHSD): New mode iterator.
13992
13993 2014-05-27 Richard Biener <rguenther@suse.de>
13994
13995 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13996 Try using literal operands when comparing value-ranges failed.
13997
13998 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13999
14000 * ira.c (commutative_operand): Adjust for change to recog_data.
14001 [Missing from previous commit.]
14002
14003 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14004
14005 * system.h (TEST_BIT): New macro.
14006 * recog.h (alternative_mask): New type.
14007 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14008 (recog_data_d): Replace alternative_enabled_p array with
14009 enabled_alternatives.
14010 (target_recog): New structure.
14011 (default_target_recog, this_target_recog): Declare.
14012 (get_enabled_alternatives, recog_init): Likewise.
14013 * recog.c (default_target_recog, this_target_recog): New variables.
14014 (get_enabled_alternatives): New function.
14015 (extract_insn): Use it.
14016 (recog_init): New function.
14017 (preprocess_constraints, constrain_operands): Adjust for change to
14018 recog_data.
14019 * postreload.c (reload_cse_simplify_operands): Likewise.
14020 * reload.c (find_reloads): Likewise.
14021 * ira-costs.c (record_reg_classes): Likewise.
14022 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14023 all alternatives after a disabled one would be skipped.
14024 (ira_implicitly_set_insn_hard_regs): Likewise.
14025 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14026 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14027 with enabled_alternatives.
14028 * lra.c (free_insn_recog_data): Update accordingly.
14029 (lra_update_insn_recog_data): Likewise.
14030 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14031 * lra-constraints.c (process_alt_operands): Likewise. Handle
14032 only_alternative as part of the enabled mask.
14033 * target-globals.h (this_target_recog): Declare.
14034 (target_globals): Add a recog field.
14035 (restore_target_globals): Restore this_target_recog.
14036 * target-globals.c: Include recog.h.
14037 (default_target_globals): Initialize recog field.
14038 (save_target_globals): Likewise.
14039 * reginfo.c (reinit_regs): Call recog_init.
14040 * toplev.c (backend_init_target): Likewise.
14041
14042 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14043
14044 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14045 rather than any named insn's code.
14046
14047 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14048
14049 PR libgcc/61152
14050 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14051 * config/arm/arm-cores.def (License): Same.
14052
14053 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14054
14055 * tree.h (decl_comdat_group): Declare.
14056 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14057 * tree.c (decl_comdat_group): Here.
14058
14059 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14060
14061 PR rtl-optimization/61222
14062 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14063 the shift, truncate the PLUS operand to the result mode.
14064
14065 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14066
14067 PR target/61271
14068 * config/i386/i386.c (ix86_rtx_costs)
14069 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14070 Fix condition.
14071
14072 2014-05-26 Martin Jambor <mjambor@suse.cz>
14073
14074 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14075 subreg uses.
14076
14077 2014-05-26 Richard Biener <rguenther@suse.de>
14078
14079 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14080 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14081 Provide specializations.
14082 (wi::int_traits <HOST_WIDE_INT>,
14083 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14084
14085 2014-05-26 Alan Modra <amodra@gmail.com>
14086
14087 PR target/61098
14088 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14089 params and return a bool. Remove dead code. Update comment.
14090 Assert we have a const_int source. Remove bogus code from
14091 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14092 handling of constants > 2G and reg_equal note, from..
14093 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14094 return value. Update comment. If we can, use a new pseudo
14095 for intermediate calculations.
14096 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14097 prototype.
14098 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14099 call to rs6000_emit_set_const in splitter.
14100 (movdi_internal64+2, +3): Likewise.
14101
14102 2014-05-26 Richard Biener <rguenther@suse.de>
14103
14104 * system.h: Define __STDC_FORMAT_MACROS before
14105 including inttypes.h.
14106 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14107 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14108 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14109 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14110 HOST_WIDEST_INT_C): Remove.
14111 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14112 if C99 inttypes.h is not available.
14113 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14114 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14115 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14116 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14117 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14118 (struct output_info): Likewise.
14119 (print_statistics): Adjust.
14120 (dump_bitmap_statistics): Likewise.
14121 * bt-load.c (migrate_btr_defs): Print with PRId64.
14122 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14123 (MAX_SAFE_MULTIPLIER): Adjust.
14124 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14125 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14126 dump_cgraph_node): Likewise.
14127 * final.c (dump_basic_block_info): Likewise.
14128 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14129 * gcov.c (format_gcov): Likewise.
14130 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14131 for calculation.
14132 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14133 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14134 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14135 Use PRId64 for dumping.
14136 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14137 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14138 (add_allocno_hard_regs): Adjust.
14139 * loop-doloop.c (doloop_modify): Print using PRId64.
14140 * loop-iv.c (inverse): Compute in uint64_t.
14141 (determine_max_iter, iv_number_of_iterations): Likewise.
14142 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14143 Print using PRId64.
14144 * lto-streamer-out.c (write_symbol): Use uint64_t.
14145 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14146 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14147 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14148 * modulo-sched.c (const_iteration_count): Use int64_t.
14149 (sms_schedule): Dump using PRId64.
14150 * predict.c (dump_prediction): Likewise.
14151 * pretty-print.h (pp_widest_integer): Remove.
14152 * profile.c (get_working_sets, is_edge_inconsistent,
14153 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14154 * tree-pretty-print.c (pp_double_int): Remove case handling
14155 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14156 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14157 and adjust users.
14158 (pass_optimize_bswap::execute): Remove restriction on hosts.
14159 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14160 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14161 * tree.c (widest_int_cst_value): Remove.
14162 * tree.h (widest_int_cst_value): Likewise.
14163 * value-prof.c (dump_histogram_value): Print using PRId64.
14164 * gengtype.c (main): Also inject int64_t.
14165 * ggc-page.c (struct max_alignment): Use int64_t.
14166 * alloc-pool.c (struct allocation_object_def): Likewise.
14167 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14168 for computation.
14169 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14170 * doc/tm.texi: Regenerated.
14171 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14172 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14173 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14174 mmix_output_register_setting): Use [u]int64_t in prototypes.
14175 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14176 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14177 mmix_output_octa, mmix_output_shifted_value): Adjust.
14178 (mmix_intval): Adjust. Remove unreachable case.
14179 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14180
14181 2014-05-26 Richard Biener <rguenther@suse.de>
14182
14183 * configure.ac: Drop __int64 type check. Insist that we
14184 found uint64_t and int64_t.
14185 * hwint.h (HOST_BITS_PER___INT64): Remove.
14186 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14187 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14188 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14189 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14190 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14191 for dst_q_src_df_rms_cdt.
14192 * configure: Regenerate.
14193 * config.in: Likewise.
14194
14195 2014-05-26 Michael Tautschnig <mt@debian.org>
14196
14197 PR target/61249
14198 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14199 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14200
14201 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14202
14203 PR rtl-optimization/61278
14204 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14205
14206 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14207
14208 PR rtl-optimization/61220
14209 Part of PR rtl-optimization/61225
14210 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14211 insn; skip split_edge for a block with only one successor.
14212
14213 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14214
14215 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14216 for variables.
14217
14218 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14219
14220 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14221 (update_vtable_references): New function.
14222 (function_and_variable_visibility): Rewrite also vtable initializers.
14223 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14224
14225 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14226
14227 * ggc.h (ggc_grow): New function.
14228 * ggc-none.c (ggc_grow): New function.
14229 * ggc-page.c (ggc_grow): Likewise.
14230
14231 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14232
14233 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14234 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14235 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14236 varpool_externally_visible_p, can_replace_by_local_alias,
14237 update_visibility_by_resolution_info, function_and_variable_visibility,
14238 pass_data_ipa_function_and_variable_visibility,
14239 make_pass_ipa_function_and_variable_visibility,
14240 whole_program_function_and_variable_visibility,
14241 pass_data_ipa_whole_program_visibility,
14242 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14243 * cgraph.h (cgraph_local_node_p): Declare.
14244 * ipa-visibility.c: New file.
14245 * Makefile.in (OBJS): Add ipa-visiblity.o
14246
14247 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14248
14249 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14250 that var decl is available.
14251
14252 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14253
14254 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14255 symtab_node pointer.
14256 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14257 (find_decls_types_r): Do not walk COMDAT_GROUP.
14258 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14259 * varasm.c (make_decl_one_only): Use set_comdat_group;
14260 create node if needed.
14261 * ipa-inline-transform.c (save_inline_function_body): Update
14262 way we decl->symtab mapping.
14263 * symtab.c (symtab_hash, hash_node, eq_node
14264 symtab_insert_node_to_hashtable): Remove.
14265 (symtab_register_node): Update.
14266 (symtab_unregister_node): Update.
14267 (symtab_get_node): Reimplement as inline function.
14268 (symtab_add_to_same_comdat_group): Update.
14269 (symtab_dissolve_same_comdat_group_list): Update.
14270 (dump_symtab_base): Update.
14271 (verify_symtab_base): Update.
14272 (symtab_make_decl_local): Update.
14273 (fixup_same_cpp_alias_visibility): Update.
14274 (symtab_nonoverwritable_alias): Update.
14275 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14276 * ipa.c (update_visibility_by_resolution_info): UPdate.
14277 * bb-reorder.c: Include cgraph.h
14278 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14279 with comdat groups.
14280 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14281 * cgraph.c (cgraph_get_create_node): Update.
14282 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14283 and comdat_group_.
14284 (symtab_get_node): Make inline.
14285 (symtab_insert_node_to_hashtable): Remove.
14286 (symtab_can_be_discarded): Update.
14287 (decl_comdat_group): New function.
14288 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14289 Update.
14290 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14291 comdat group name.
14292 (read_comdat_group): New function.
14293 (input_node, input_varpool_node): Use it.
14294 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14295 comdat groups.
14296 * mips.c (mips_start_unique_function): Likewise.
14297 (ix86_code_end): Likewise.
14298 (rs6000_code_end): Likweise.
14299 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14300
14301 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14302
14303 * gengtype-state.c (fatal_reading_state): Bring offline.
14304 * optabs.c (widening_optab_handler): Bring offline.
14305 * optabs.h (widening_optab_handler): Likewise.
14306 * final.c (get_attr_length_1): Likewise.
14307
14308 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14309
14310 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14311
14312 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14313
14314 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14315 (ppc440-compare): Include shift with dot.
14316 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14317 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14318 without dot.
14319 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14320 without dot.
14321 (e6500_sfx2): Include it.
14322 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14323 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14324 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14325 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14326 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14327 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14328 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14329 *lshiftrt_internal1le, *lshiftrt_internal1be,
14330 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14331 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14332 *rotldi3_internal10le, *rotldi3_internal10be,
14333 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14334 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14335 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14336 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14337 define_insns): Use type "shift" in the appropriate alternatives.
14338
14339 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14340
14341 * config/rs6000/rs6000.md (type): Add "logical". Delete
14342 "fast_compare".
14343 (dot): Adjust comment.
14344 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14345 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14346 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14347 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14348 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14349 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14350 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14351 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14352
14353 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14354 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14355 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14356 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14357 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14358 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14359 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14360 * config/rs6000/8540.md (ppc8540_su): Adjust.
14361 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14362 cell-cmp-microcoded): Adjust.
14363 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14364 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14365 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14366 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14367 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14368 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14369 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14370 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14371 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14372 Adjust.
14373 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14374 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14375 Adjust. Adjust comment.
14376 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14377 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14378
14379 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14380
14381 * config/rs6000/rs6000.md (type): Add "add".
14382 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14383 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14384 define_insns): Use it.
14385 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14386
14387 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14388 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14389 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14390 * config/rs6000/601.md (ppc601-integer): Adjust.
14391 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14392 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14393 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14394 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14395 * config/rs6000/8540.md (ppc8540_su): Adjust.
14396 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14397 cell-cmp-microcoded): Adjust.
14398 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14399 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14400 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14401 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14402 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14403 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14404 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14405 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14406 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14407 Adjust.
14408 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14409 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14410 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14411 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14412
14413 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14414
14415 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14416 "delayed_compare", "var_delayed_compare".
14417 (var_shift): New attribute.
14418 (cell_micro): Adjust.
14419 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14420 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14421 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14422 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14423 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14424 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14425 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14426 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14427 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14428 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14429 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14430 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14431 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14432 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14433 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14434 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14435 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14436 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14437 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14438 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14439 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14440 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14441 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14442 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14443 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14444
14445 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14446 * config/rs6000/440.md (ppc440-integer): Adjust.
14447 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14448 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14449 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14450 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14451 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14452 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14453 * config/rs6000/8540.md (ppc8540_su): Adjust.
14454 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14455 cell-cmp-microcoded): Adjust.
14456 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14457 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14458 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14459 e500mc64_delayed): Adjust.
14460 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14461 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14462 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14463 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14464 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14465 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14466 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14467 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14468 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14469 Adjust comment.
14470 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14471 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14472
14473 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14474
14475 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14476 (bits): New mode_attr.
14477 (idiv_ldiv): Delete mode_attr.
14478 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14479 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14480 rs6000_adjust_priority, is_nonpipeline_insn,
14481 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14482
14483 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14484 * config/rs6000/440.md (ppc440-idiv): Adjust.
14485 * config/rs6000/476.md (ppc476-idiv): Adjust.
14486 * config/rs6000/601.md (ppc601-idiv): Adjust.
14487 * config/rs6000/603.md (ppc603-idiv): Adjust.
14488 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14489 ppc620-ldiv): Adjust.
14490 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14491 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14492 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14493 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14494 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14495 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14496 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14497 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14498 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14499 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14500 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14501 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14502 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14503 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14504 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14505 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14506 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14507 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14508
14509 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14510
14511 * config/rs6000/rs6000.md (type): Delete "insert_word",
14512 "insert_dword". Add "insert".
14513 (size): Update comment.
14514 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14515 insn_must_be_first_in_group): Adjust.
14516 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14517 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14518 *insvsi_internal6, insvdi_internal): Adjust.
14519
14520 * config/rs6000/40x.md (ppc403-integer): Adjust.
14521 * config/rs6000/440.md (ppc440-integer): Adjust.
14522 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14523 * config/rs6000/601.md (ppc601-integer): Adjust.
14524 * config/rs6000/603.md (ppc603-integer): Adjust.
14525 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14526 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14527 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14528 * config/rs6000/8540.md (ppc8540_su): Adjust.
14529 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14530 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14531 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14532 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14533 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14534 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14535 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14536 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14537 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14538 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14539 * config/rs6000/power7.md (power7-integer): Adjust.
14540 * config/rs6000/power8.md (power8-1cyc): Adjust.
14541 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14542 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14543
14544 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14545
14546 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14547 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14548 (size): New attribute.
14549 (dot): New attribute.
14550 (cell_micro): Adjust.
14551 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14552 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14553 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14554 umuldi3_highpart): Adjust.
14555 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14556 rs6000_adjust_priority, is_nonpipeline_insn,
14557 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14558
14559 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14560 ppc405-imul3): Adjust.
14561 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14562 * config/rs6000/476.md (ppc476-imul): Adjust.
14563 * config/rs6000/601.md (ppc601-imul): Adjust.
14564 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14565 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14566 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14567 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14568 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14569 Adjust.
14570 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14571 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14572 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14573 cell-imul): Adjust.
14574 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14575 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14576 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14577 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14578 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14579 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14580 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14581 power4-lmul, power4-imul, power4-imul3): Adjust.
14582 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14583 power5-lmul, power5-imul, power5-imul3): Adjust.
14584 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14585 power6-lmul, power6-imul, power6-imul3): Adjust.
14586 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14587 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14588
14589 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14590 rs64a-lmul): Adjust.
14591 * config/rs6000/titan.md (titan_imul): Adjust.
14592
14593 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14594
14595 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14596 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14597 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14598 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14599 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14600 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14601 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14602 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14603 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14604 * config/rs6000/titan.md: Delete nonsensical comment.
14605 (titan_imul): Add type imul3.
14606 (titan_mulhw): Remove type imul3; add type halfmul.
14607
14608 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14609
14610 * config/rs6000/rs6000.md (type): Reorder, reformat.
14611
14612 2014-05-23 Martin Jambor <mjambor@suse.cz>
14613
14614 PR tree-optimization/53787
14615 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14616 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14617 analysis_done, update all uses.
14618 * ipa-prop.c: Include domwalk.h
14619 (param_analysis_info): Removed.
14620 (param_aa_status): New type.
14621 (ipa_bb_info): Likewise.
14622 (func_body_info): Likewise.
14623 (ipa_get_bb_info): New function.
14624 (aa_overwalked): Likewise.
14625 (find_dominating_aa_status): Likewise.
14626 (parm_bb_aa_status_for_bb): Likewise.
14627 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14628 (load_from_unmodified_param): Accept func_body_info as a parameter
14629 instead of parms_ainfo.
14630 (parm_ref_data_preserved_p): Changed to use new param AA info.
14631 (parm_ref_data_pass_through_p): Likewise.
14632 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14633 (compute_complex_assign_jump_func): Changed to use new param AA info.
14634 (compute_complex_ancestor_jump_func): Likewise.
14635 (ipa_compute_jump_functions_for_edge): Likewise.
14636 (ipa_compute_jump_functions): Removed.
14637 (ipa_compute_jump_functions_for_bb): New function.
14638 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14639 declarations down.
14640 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14641 and info, moved variable declarations down.
14642 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14643 node and info.
14644 (ipa_analyze_stmt_uses): Likewise.
14645 (ipa_analyze_params_uses): Removed.
14646 (ipa_analyze_params_uses_in_bb): New function.
14647 (ipa_analyze_controlled_uses): Likewise.
14648 (free_ipa_bb_info): Likewise.
14649 (analysis_dom_walker): New class.
14650 (ipa_analyze_node): Handle node-specific forbidden analysis,
14651 initialize and free func_body_info, use dominator walker.
14652 (ipcp_modif_dom_walker): New class.
14653 (ipcp_transform_function): Create and free func_body_info, use
14654 ipcp_modif_dom_walker, moved a lot of functionality there.
14655
14656 2014-05-23 Marek Polacek <polacek@redhat.com>
14657 Jakub Jelinek <jakub@redhat.com>
14658
14659 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14660 * gcc.c (sanitize_spec_function): Likewise.
14661 * convert.c (convert_to_integer): Include "ubsan.h". Add
14662 floating-point to integer instrumentation.
14663 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14664 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14665 SANITIZE_NONDEFAULT.
14666 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14667 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14668 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14669 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14670 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14671 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14672 float/double/long double.
14673 (ubsan_instrument_float_cast): New function.
14674 * ubsan.h (ubsan_instrument_float_cast): Declare.
14675
14676 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14677
14678 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14679 predicate.
14680 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14681 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14682 Adjust for tailcalling through registers.
14683 * config/aarch64/aarch64.h (enum reg_class): New caller save
14684 register class.
14685 (REG_CLASS_NAMES): Likewise.
14686 (REG_CLASS_CONTENTS): Likewise.
14687 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14688 Allow tailcalling without decls.
14689
14690 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14691
14692 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14693 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14694
14695 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14696 gsi, and variables v_* to v*.
14697
14698 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14699
14700 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14701
14702 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14703
14704 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14705 * omp-low.c: Update accordingly.
14706
14707 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14708 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14709 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14710 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14711 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14712 GF_OMP_TARGET_KIND_UPDATE.
14713
14714 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14715 Explicitly enumerate the expected region types.
14716
14717 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14718
14719 PR other/56955
14720 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14721 documentation; the old documentation didn't clearly state the
14722 constraints on the contents of the pointed-to storage.
14723
14724 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14725
14726 Fix bootstrap error on ia64
14727 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14728 Return default value.
14729
14730 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14731
14732 PR tree-optimization/54733
14733 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14734 (CMPNOP): Define.
14735 (find_bswap_or_nop_load): New.
14736 (find_bswap_1): Renamed to ...
14737 (find_bswap_or_nop_1): This. Also add support for memory source.
14738 (find_bswap): Renamed to ...
14739 (find_bswap_or_nop): This. Also add support for memory source and
14740 detection of bitwise operations equivalent to load in target
14741 endianness.
14742 (execute_optimize_bswap): Likewise. Also move its leading comment back
14743 in place and split statement transformation into ...
14744 (bswap_replace): This.
14745
14746 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14747
14748 PR rtl-optimization/61215
14749 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14750 simplify_gen_subreg until final substitution.
14751
14752 2014-05-23 Alan Modra <amodra@gmail.com>
14753
14754 PR target/61231
14755 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14756 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14757 Use "Y" constraint rather than "m".
14758
14759 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14760
14761 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14762 define.
14763 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14764 New function declaration.
14765 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14766 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14767 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14768 (aarch64_init_builtins) : Initialize builtins
14769 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14770 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14771 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14772 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14773 and __builtins_aarch64_set_fpsr.
14774 (aarch64_atomic_assign_expand_fenv): New function.
14775 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14776 (get_fpcr) : Likewise.
14777 (set_fpsr) : Likewise.
14778 (get_fpsr) : Likewise.
14779 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14780 and UNSPECV_SET_FPSR.
14781 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14782 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14783 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14784
14785 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14786
14787 PR rtl-optimization/60969
14788 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14789 constraints. Set up mem cost for NO_REGS case.
14790
14791 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14792
14793 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14794
14795 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14796
14797 * config/darwin.c: Include "lto-section-names.h".
14798 (LTO_SEGMENT_NAME): Don't define.
14799 * config/i386/winnt.c: Include "lto-section-names.h".
14800 * lto-streamer.c: Include "lto-section-names.h".
14801 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14802 * lto-wrapper.c: Include "lto-section-names.h".
14803 (LTO_SECTION_NAME_PREFIX): Don't define.
14804 * lto-section-names.h: New file.
14805 * cgraphunit.c: Include "lto-section-names.h".
14806
14807 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14808
14809 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14810
14811 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14812
14813 PR target/61208
14814 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14815
14816 2014-05-22 Nick Clifton <nickc@redhat.com>
14817
14818 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14819
14820 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14821
14822 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14823 -> (T)A transformation to integer types.
14824
14825 2014-05-22 Teresa Johnson <tejohnson@google.com>
14826
14827 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14828 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14829 (gcov_rewrite): Use gcov_nonruntime_assert.
14830 (gcov_open): Ditto.
14831 (gcov_write_words): Ditto.
14832 (gcov_write_length): Ditto.
14833 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14834 gcc_assert from IN_LIBGCOV code.
14835 (gcov_read_summary): Use gcov_error to flag profile corruption.
14836 (gcov_sync): Use gcov_nonruntime_assert.
14837 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14838 (gcov_histo_index): Use gcov_nonruntime_assert.
14839 (static void gcov_histogram_merge): Ditto.
14840 (compute_working_sets): Ditto.
14841 * gcov-io.h (gcov_nonruntime_assert): Define.
14842 (gcov_error): Define for !IN_LIBGCOV
14843
14844 2014-05-22 Richard Biener <rguenther@suse.de>
14845
14846 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14847 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14848 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14849 and deallocation site.
14850 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14851 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14852 passing through the incoming points-to set.
14853 (handle_lhs_call): Use flags argument instead of recomputing it.
14854 (find_func_aliases_for_call): Call handle_lhs_call with proper
14855 call return flags.
14856
14857 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14858
14859 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14860 all padding bits in REAL_VALUE_TYPE are cleared.
14861
14862 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14863
14864 Cleanup and improve multipass_dfa_lookahead_guard
14865 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14866 (core2i7_first_cycle_multipass_begin,)
14867 (core2i7_first_cycle_multipass_issue,)
14868 (core2i7_first_cycle_multipass_backtrack): Update signature.
14869 * config/ia64/ia64.c
14870 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14871 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14872 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14873 hook definition.
14874 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14875 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14876 values.
14877 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14878 return values.
14879 * doc/tm.texi: Regenerate.
14880 * doc/tm.texi.in
14881 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14882 * haifa-sched.c (ready_try): Make signed to allow negative values.
14883 (rebug_ready_list_1): Update.
14884 (choose_ready): Simplify.
14885 (sched_extend_ready_list): Update.
14886
14887 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14888
14889 Remove IA64 speculation tweaking flags
14890 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14891 speculation tuning flags.
14892 (msched-prefer-non-data-spec-insns,)
14893 (msched-prefer-non-control-spec-insns): Obsolete options.
14894 * haifa-sched.c (choose_ready): Remove handling of
14895 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14896 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14897 and PREFER_NON_DATA_SPEC.
14898 * sel-sched.c (process_spec_exprs): Remove handling of
14899 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14900
14901 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14902
14903 Improve scheduling debug output
14904 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14905 (advance_one_cycle): Update.
14906 (schedule_insn, queue_to_ready): Add debug printouts.
14907 (debug_ready_list_1): New static function.
14908 (debug_ready_list): Update.
14909 (max_issue): Add debug printouts.
14910 (dump_insn_stream): New static function.
14911 (schedule_block): Use it. Also better indent printouts.
14912
14913 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14914
14915 Fix sched_insn debug counter
14916 * haifa-sched.c (schedule_insn): Update.
14917 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14918 (save_backtrack_point, restore_backtrack_point): Update.
14919 (first_nonscheduled_insn): New static function.
14920 (queue_to_ready, choose_ready): Use it.
14921 (schedule_block): Init nonscheduled_insns_begin.
14922 (sched_emit_insn): Update.
14923
14924
14925 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14926
14927 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14928 to GENERAL_REGS.
14929 (aarch64_secondary_reload) : LikeWise.
14930 (aarch64_class_max_nregs) : Remove CORE_REGS.
14931 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14932 (REG_CLASS_NAMES) : Likewise.
14933 (REG_CLASS_CONTENTS) : LikeWise.
14934 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14935
14936 2014-05-21 Guozhi Wei <carrot@google.com>
14937
14938 PR target/61202
14939 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14940 constraint.
14941 (vqdmulhq_n_s16): Likewise.
14942
14943 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14944
14945 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14946
14947 2014-05-21 Marek Polacek <polacek@redhat.com>
14948
14949 PR sanitizer/61272
14950 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14951
14952 2014-05-21 Martin Jambor <mjambor@suse.cz>
14953
14954 * doc/invoke.texi (Optimize Options): Document parameters
14955 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14956 ipa-cp-array-index-hint-bonus.
14957
14958 2014-05-21 Mark Wielaard <mjw@redhat.com>
14959
14960 PR debug/16063
14961 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14962 version >= 3 or not strict DWARF.
14963 * langhooks.h (struct lang_hooks_for_types): Add
14964 enum_underlying_base_type.
14965 * langhooks.c (lhd_enum_underlying_base_type): New function.
14966 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14967 enum_underlying_base_type.
14968 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14969 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14970 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14971
14972 2014-05-21 Richard Biener <rguenther@suse.de>
14973
14974 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14975
14976 2014-05-21 John Marino <gnugcc@marino.st>
14977
14978 * config.gcc (*-*-dragonfly*): New target.
14979 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14980 * configure: Regenerate.
14981 * config/dragonfly-stdint.h: New.
14982 * config/dragonfly.h: New.
14983 * config/dragonfly.opt: New.
14984 * config/i386/dragonfly.h: New.
14985 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14986
14987 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14988
14989 * tree.def (VOID_CST): New.
14990 * tree-core.h (TI_VOID): New.
14991 * tree.h (void_node): New.
14992 * tree.c (tree_node_structure_for_code, tree_code_size)
14993 (iterative_hash_expr): Handle VOID_CST.
14994 (build_common_tree_nodes): Initialize void_node.
14995
14996 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14997
14998 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14999 functions.
15000 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15001
15002 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15003 more places.
15004
15005 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15006 flag_reorder_blocks_and_partition.
15007 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15008
15009 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15010
15011 PR target/54236
15012 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15013 constraints.
15014 (*addc_r_t): Add new insn_and_split.
15015
15016 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15017
15018 PR middle-end/61252
15019 * omp-low.c (handle_simd_reference): New function.
15020 (lower_rec_input_clauses): Use it. Defer adding reference
15021 initialization even for reduction without placeholder if in simd,
15022 handle it properly later on.
15023
15024 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15025
15026 PR tree-optimization/60899
15027 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15028 assume all static symbols will have definition wile parsing and
15029 check the do have definition later in compilation; check that
15030 variable referring symbol will be output before concluding that
15031 reference is safe; be conservative for referring local statics;
15032 be more precise about when comdat is output in other partition.
15033
15034 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15035
15036 PR bootstrap/60984
15037 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15038 parameter.
15039 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15040 (ipa_inline): Loop inline_to_all_callers until no more aliases
15041 are removed.
15042
15043 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15044
15045 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15046 set writeonly flag only for vars actually written to.
15047
15048 2014-05-20 Dehao Chen <dehao@google.com>
15049
15050 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15051 and callee count to get clone count.
15052 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15053 count in copy_body.
15054
15055 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15056
15057 PR rtl-optimization/61243
15058 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15059
15060 2014-05-20 Xinliang David Li <davidxl@google.com>
15061
15062 * cgraphunit.c (walk_polymorphic_call_targets): Add
15063 dbgcnt and fopt-info support.
15064 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15065 * ipa-devirt.c (ipa_devirt): Ditto.
15066 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15067 * ipa.c (walk_polymorphic_call_targets): Ditto.
15068 * gimple-fold.c (fold_gimple_assign): Ditto.
15069 (gimple_fold_call): Ditto.
15070 * dbgcnt.def: New counter.
15071
15072 2014-05-20 DJ Delorie <dj@redhat.com>
15073
15074 * config/msp430/msp430.md (split): Don't allow subregs when
15075 splitting SImode adds.
15076 (andneghi): Fix subtraction logic.
15077 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15078
15079 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15080
15081 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15082 symbols.
15083 * except.c (switch_to_exception_section, resolve_unique_section,
15084 get_named_text_section, default_function_rodata_section,
15085 align_variable, get_block_for_decl, default_section_type_flags):
15086 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15087 * symtab.c (symtab_add_to_same_comdat_group,
15088 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15089 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15090 Likewise.
15091 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15092 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15093 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15094 (c6x_function_in_section_p): Likewise.
15095 * config/darwin.c (machopic_select_section): Likewise.
15096 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15097 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15098 * config/mep/mep.c (mep_select_section): LIkewise.
15099 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15100
15101 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15102
15103 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15104 EH region of calls to pure functions that can throw an exception.
15105 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15106 (copy_reference_ops_from_call): Also copy the EH region of the call if
15107 it can throw an exception.
15108
15109 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15110
15111 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15112 nested VEC_SELECTs that are inverses of each other.
15113
15114 2014-05-20 Richard Biener <rguenther@suse.de>
15115
15116 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15117 (extract_and_process_scc_for_name): not here.
15118 (cond_dom_walker::before_dom_children): Only process
15119 stmts that end the BB in interesting ways.
15120 (run_scc_vn): Mark param uses as visited.
15121
15122 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15123
15124 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15125 arm_restrict_it.
15126
15127 2014-05-20 Nick Clifton <nickc@redhat.com>
15128
15129 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15130 (msp430_gimplify_va_arg_expr): New function.
15131 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15132
15133 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15134 operand 0 in order to prevent confusion about the number of
15135 registers involved.
15136
15137 2014-05-20 Richard Biener <rguenther@suse.de>
15138
15139 PR tree-optimization/61221
15140 * tree-ssa-pre.c (el_to_update): Remove.
15141 (eliminate_dom_walker::before_dom_children): Handle released
15142 VDEFs by value-numbering them to the associated VUSE. Update
15143 stmt immediately for substituted call address.
15144 (eliminate): Remove delayed stmt updating code.
15145 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15146 possibly late re-numbered vuses.
15147 (vn_reference_lookup_2): Adjust.
15148 (vn_reference_lookup_pieces): Likewise.
15149 (vn_reference_lookup): Likewise.
15150
15151 2014-05-20 Richard Biener <rguenther@suse.de>
15152
15153 * config.gcc: Remove need_64bit_hwint.
15154 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15155 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15156 it to be true.
15157 * config.in: Regenerate.
15158 * configure: Likewise.
15159
15160 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15161
15162 * doc/extend.texi: Create Label Attributes section,
15163 move all label attributes into it and reference it.
15164
15165 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15166
15167 * arm.c (thumb1_reorg): When scanning backwards skip anything
15168 that's not a proper insn.
15169
15170 2014-05-19 Richard Biener <rguenther@suse.de>
15171
15172 PR tree-optimization/61221
15173 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15174 Do nothing for unreachable blocks.
15175 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15176 Improve unreachability detection.
15177
15178 2014-05-19 Richard Biener <rguenther@suse.de>
15179
15180 PR tree-optimization/61209
15181 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15182
15183 2014-05-19 Nick Clifton <nickc@redhat.com>
15184
15185 * except.c (init_eh): Fix computation of builtin setjmp buffer
15186 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15187
15188 2014-05-19 Richard Biener <rguenther@suse.de>
15189
15190 PR tree-optimization/61184
15191 * tree-vrp.c (is_negative_overflow_infinity): Use
15192 TREE_OVERFLOW_P and do that check first.
15193 (is_positive_overflow_infinity): Likewise.
15194 (is_overflow_infinity): Likewise.
15195 (vrp_operand_equal_p): Properly treat operands with
15196 differing overflow as not equal.
15197
15198 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15199
15200 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15201 shift simplification where it was intended.
15202
15203 2014-05-19 Christian Bruel <christian.bruel@st.com>
15204
15205 PR target/61195
15206 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15207
15208 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15209
15210 PR target/61084
15211 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15212 than wide_int.
15213
15214 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15215
15216 * reg-notes.def (CROSSING_JUMP): Likewise.
15217 * rtl.h (rtx_def): Update comment for jump flag.
15218 (CROSSING_JUMP_P): Define.
15219 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15220 of a REG_CROSSING_JUMP note.
15221 * cfghooks.c (tidy_fallthru_edges): Likewise.
15222 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15223 * emit-rtl.c (try_split): Likewise.
15224 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15225 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15226 * jump.c (redirect_jump_2): Likewise.
15227 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15228 (relax_delay_slots): Likewise.
15229 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15230 (bbit_di): Likewise.
15231 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15232 * config/sh/sh.md (jump_compact): Likewise.
15233 * bb-reorder.c (rotate_loop): Likewise.
15234 (pass_duplicate_computed_gotos::execute): Likewise.
15235 (add_reg_crossing_jump_notes): Rename to...
15236 (update_crossing_jump_flags): ...this.
15237 (pass_partition_blocks::execute): Update accordingly.
15238
15239 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15240
15241 * tree.h: Remove extraneous template <>.
15242
15243 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15244
15245 * ipa.c (symtab_remove_unreachable_nodes): Remove
15246 symbol from comdat group if its body was eliminated.
15247 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15248 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15249 (symtab_unregister_node): ... this one.
15250 (verify_symtab_base): More strict checking of comdats.
15251 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15252
15253 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15254
15255 * tree-pass.h (make_pass_ipa_comdats): New pass.
15256 * timevar.def (TV_IPA_COMDATS): New timevar.
15257 * passes.def (pass_ipa_comdats): Add.
15258 * Makefile.in (OBJS): Add ipa-comdats.o
15259 * ipa-comdats.c: New file.
15260
15261 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15262
15263 * ipa.c (update_visibility_by_resolution_info): New function.
15264 (function_and_variable_visibility): Use it.
15265
15266 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15267
15268 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15269 New functions.
15270 (FOR_EACH_DEFINED_SYMBOL): New macro.
15271 (varpool_first_static_initializer, varpool_next_static_initializer,
15272 varpool_first_defined_variable, varpool_next_defined_variable):
15273 Fix comments.
15274 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15275
15276 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15277
15278 * ggc-page.c (ggc_handle_finalizers): Add comment.
15279
15280 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15281
15282 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15283 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15284 (ggc_internal_cleared_alloc): Likewise.
15285 * ggc-page.c (finalizer): New class.
15286 (vec_finalizer): Likewise.
15287 (globals::finalizers): New member.
15288 (globals::vec_finalizers): Likewise.
15289 (ggc_internal_alloc): Record the finalizer if any for the block being
15290 allocated.
15291 (ggc_handle_finalizers): New function.
15292 (ggc_collect): Call ggc_handle_finalizers.
15293 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15294 finalizer.
15295 (ggc_internal_cleared_alloc): Likewise.
15296 (finalize): New function.
15297 (need_finalization_p): Likewise.
15298 (ggc_alloc): Install the type's destructor as the finalizer if it
15299 might do something.
15300 (ggc_cleared_alloc): Likewise.
15301 (ggc_vec_alloc): Likewise.
15302 (ggc_cleared_vec_alloc): Likewise.
15303
15304 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15305
15306 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15307
15308 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15309
15310 * alias.c (record_alias_subset): Adjust.
15311 * bitmap.c (bitmap_element_allocate): Likewise.
15312 (bitmap_gc_alloc_stat): Likewise.
15313 * cfg.c (init_flow): Likewise.
15314 (alloc_block): Likewise.
15315 (unchecked_make_edge): Likewise.
15316 * cfgloop.c (alloc_loop): Likewise.
15317 (flow_loops_find): Likewise.
15318 (rescan_loop_exit): Likewise.
15319 * cfgrtl.c (init_rtl_bb_info): Likewise.
15320 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15321 (cgraph_allocate_node): Likewise.
15322 (cgraph_create_edge_1): Likewise.
15323 (cgraph_allocate_init_indirect_info): Likewise.
15324 * cgraphclones.c (cgraph_clone_edge): Likewise.
15325 * cgraphunit.c (add_asm_node): Likewise.
15326 (init_lowered_empty_function): Likewise.
15327 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15328 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15329 (alpha_use_linkage): Likewise.
15330 * config/arc/arc.c (arc_init_machine_status): Likewise.
15331 * config/arm/arm.c (arm_init_machine_status): Likewise.
15332 * config/avr/avr.c (avr_init_machine_status): Likewise.
15333 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15334 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15335 * config/cris/cris.c (cris_init_machine_status): Likewise.
15336 * config/darwin.c (machopic_indirection_name): Likewise.
15337 (darwin_build_constant_cfstring): Likewise.
15338 (darwin_enter_string_into_cfstring_table): Likewise.
15339 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15340 * config/frv/frv.c (frv_init_machine_status): Likewise.
15341 * config/i386/i386.c (get_dllimport_decl): Likewise.
15342 (ix86_init_machine_status): Likewise.
15343 (assign_386_stack_local): Likewise.
15344 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15345 (i386_pe_maybe_record_exported_symbol): Likewise.
15346 (i386_pe_record_stub): Likewise.
15347 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15348 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15349 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15350 (m32c_note_pragma_address): Likewise.
15351 * config/mep/mep.c (mep_init_machine_status): Likewise.
15352 (mep_note_pragma_flag): Likewise.
15353 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15354 (mips16_local_alias): Likewise.
15355 (mips_init_machine_status): Likewise.
15356 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15357 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15358 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15359 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15360 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15361 * config/pa/pa.c (pa_init_machine_status): Likewise.
15362 (pa_get_deferred_plabel): Likewise.
15363 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15364 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15365 (rs6000_init_machine_status): Likewise.
15366 (output_toc): Likewise.
15367 * config/s390/s390.c (s390_init_machine_status): Likewise.
15368 * config/score/score.c (score_output_external): Likewise.
15369 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15370 * config/spu/spu.c (spu_init_machine_status): Likewise.
15371 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15372 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15373 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15374 * coverage.c (coverage_end_function): Likewise.
15375 * dbxout.c (dbxout_init): Likewise.
15376 * doc/gty.texi: Don't mention variable_size attribute.
15377 * dwarf2cfi.c (new_cfi): Adjust.
15378 (new_cfi_row): Likewise.
15379 (copy_cfi_row): Likewise.
15380 (create_cie_data): Likewise.
15381 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15382 (new_loc_descr): Likewise.
15383 (find_AT_string_in_table): Likewise.
15384 (add_addr_table_entry): Likewise.
15385 (new_die): Likewise.
15386 (add_var_loc_to_decl): Likewise.
15387 (clone_die): Likewise.
15388 (clone_as_declaration): Likewise.
15389 (break_out_comdat_types): Likewise.
15390 (new_loc_list): Likewise.
15391 (add_loc_descr_to_each): Likewise.
15392 (add_location_or_const_value_attribute): Likewise.
15393 (add_linkage_name): Likewise.
15394 (lookup_filename): Likewise.
15395 (dwarf2out_var_location): Likewise.
15396 (new_line_info_table): Likewise.
15397 (dwarf2out_init): Likewise.
15398 (mem_loc_descriptor): Likewise.
15399 (loc_descriptor): Likewise.
15400 (add_const_value_attribute): Likewise.
15401 (tree_add_const_value_attribute): Likewise.
15402 (comp_dir_string): Likewise.
15403 (dwarf2out_vms_debug_main_pointer): Likewise.
15404 (string_cst_pool_decl): Likewise.
15405 * emit-rtl.c (set_mem_attrs): Likewise.
15406 (get_reg_attrs): Likewise.
15407 (start_sequence): Likewise.
15408 (init_emit): Likewise.
15409 (init_emit_regs): Likewise.
15410 * except.c (init_eh_for_function): Likewise.
15411 (gen_eh_region): Likewise.
15412 (gen_eh_region_catch): Likewise.
15413 (gen_eh_landing_pad): Likewise.
15414 (add_call_site): Likewise.
15415 * function.c (add_frame_space): Likewise.
15416 (insert_temp_slot_address): Likewise.
15417 (assign_stack_temp_for_type): Likewise.
15418 (get_hard_reg_initial_val): Likewise.
15419 (allocate_struct_function): Likewise.
15420 (prepare_function_start): Likewise.
15421 (types_used_by_var_decl_insert): Likewise.
15422 * gengtype.c (variable_size_p): Remove function.
15423 (enum alloc_quantity): Remove enum.
15424 (write_typed_alloc_def): Remove function.
15425 (write_typed_struct_alloc_def): Likewise.
15426 (write_typed_typedef_alloc_def): Likewise.
15427 (write_typed_alloc_defns): Likewise.
15428 (main): Adjust.
15429 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15430 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15431 * ggc.h (ggc_alloc): new function.
15432 (ggc_cleared_alloc): Likewise.
15433 (ggc_vec_alloc): Template on type of vector element, and remove
15434 element size argument.
15435 (ggc_cleared_vec_alloc): Likewise.
15436 * gimple.c (gimple_build_omp_for): Adjust.
15437 (gimple_copy): Likewise.
15438 * ipa-cp.c (get_replacement_map): Likewise.
15439 (find_aggregate_values_for_callers_subset): Likewise.
15440 (known_aggs_to_agg_replacement_list): Likewise.
15441 * ipa-devirt.c (get_odr_type): Likewise.
15442 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15443 (read_agg_replacement_chain): Likewise.
15444 * loop-iv.c (get_simple_loop_desc): Likewise.
15445 * lto-cgraph.c (input_node_opt_summary): Likewise.
15446 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15447 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15448 (input_eh_region): Likewise.
15449 (input_eh_lp): Likewise.
15450 (input_cfg): Likewise.
15451 * optabs.c (set_optab_libfunc): Likewise.
15452 (init_tree_optimization_optabs): Likewise.
15453 (set_conv_libfunc): Likewise.
15454 * passes.c (do_per_function_toporder): Likewise.
15455 * rtl.h: Don't use variable_size gty attribute.
15456 * sese.c (if_region_set_false_region): Adjust.
15457 * stringpool.c (gt_pch_save_stringpool): Likewise.
15458 * target-globals.c (save_target_globals): Likewise.
15459 * toplev.c (general_init): Likewise.
15460 * trans-mem.c (record_tm_replacement): Likewise.
15461 (split_bb_make_tm_edge): Likewise.
15462 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15463 * tree-data-ref.h (lambda_vector_new): Likewise.
15464 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15465 * tree-iterator.c (tsi_link_before): Likewise.
15466 (tsi_link_after): Likewise.
15467 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15468 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15469 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15470 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15471 * tree-ssa.c (init_tree_ssa): Adjust.
15472 * tree-ssanames.c (set_range_info): Likewise.
15473 (get_ptr_info): Likewise.
15474 (duplicate_ssa_name_ptr_info): Likewise.
15475 (duplicate_ssa_name_range_info): Likewise.
15476 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15477 (unpack_ts_fixed_cst_value_fields): Likewise.
15478 * tree.c (build_fixed): Likewise.
15479 (build_real): Likewise.
15480 (build_string): Likewise.
15481 (decl_priority_info): Likewise.
15482 (decl_debug_expr_insert): Likewise.
15483 (decl_value_expr_insert): Likewise.
15484 (decl_debug_args_insert): Likewise.
15485 (type_hash_add): Likewise.
15486 (build_omp_clause): Likewise.
15487 * ubsan.c (decl_for_type_insert): Likewise.
15488 * varasm.c (get_unnamed_section): Likewise.
15489 (get_noswitch_section): Likewise.
15490 (get_section): Likewise.
15491 (get_block_for_section): Likewise.
15492 (create_block_symbol): Likewise.
15493 (build_constant_desc): Likewise.
15494 (create_constant_pool): Likewise.
15495 (force_const_mem): Likewise.
15496 (record_tm_clone_pair): Likewise.
15497 * varpool.c (varpool_create_empty_node): Likewise.
15498
15499 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15500
15501 * dwarf2out.c (tree_add_const_value_attribute): Call
15502 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15503 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15504 instead of ggc_internal_<x>alloc_stat.
15505 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15506 (ggc_realloc): Likewise.
15507 * ggc-none.c (ggc_internal_alloc): Likewise.
15508 (ggc_internal_cleared_alloc): Likewise.
15509 * ggc-page.c: Likewise.
15510 * ggc.h (ggc_internal_alloc_stat): Likewise.
15511 (ggc_internal_alloc): Remove macro.
15512 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15513 (ggc_internal_cleared_alloc): Remove macro.
15514 (GGC_RESIZEVEC): Adjust.
15515 (ggc_resizevar): Remove macro.
15516 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15517 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15518 (ggc_internal_vec_cleared_alloc): Remove macro.
15519 (ggc_alloc_atomic_stat): Drop _stat suffix.
15520 (ggc_alloc_atomic): Remove macro.
15521 (ggc_alloc_cleared_atomic): Remove macro.
15522 (ggc_alloc_string_stat): Drop _stat suffix.
15523 (ggc_alloc_string): Remove macro.
15524 (ggc_alloc_rtx_def_stat): Adjust.
15525 (ggc_alloc_tree_node_stat): Likewise.
15526 (ggc_alloc_cleared_tree_node_stat): Likewise.
15527 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15528 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15529 * gimple.c (gimple_build_omp_for): Likewise.
15530 (gimple_copy): Likewise.
15531 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15532 * toplev.c (realloc_for_line_map): Adjust.
15533 * tree-data-ref.h (lambda_vector_new): Likewise.
15534 * tree-phinodes.c (allocate_phi_node): Likewise.
15535 * tree.c (grow_tree_vec_stat): Likewise.
15536 * vec.h (va_gc::reserve): Adjust.
15537
15538 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15539
15540 * config/microblaze/microblaze.c (break_handler): New Declaration.
15541 (microblaze_break_function_p,microblaze_is_break_handler): New.
15542 (compute_frame_size): Use microblaze_break_function_p.
15543 Add the test of break_handler.
15544 (microblaze_function_prologue) : Add the test of variable
15545 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15546 (microblaze_function_epilogue) : Add the test of break_handler.
15547 (microblaze_globalize_label) : Add the test of break_handler.
15548 Check the name by BREAK_HANDLER_NAME.
15549
15550 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15551
15552 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15553 microblaze_is_break_handler test.
15554 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15555 Use SYMBOL_REF_DECL.
15556
15557 * config/microblaze/microblaze-protos.h
15558 (microblaze_break_function_p,microblaze_is_break_handler):
15559 New Declaration.
15560
15561 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15562 new MicroBlaze break_handler functions.
15563
15564 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15565
15566 * doc/extend.texi (Size of an asm): Move node text according
15567 to its @menu entry position.
15568
15569 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15570
15571 PR tree-optimization/61140
15572 PR tree-optimization/61150
15573 PR tree-optimization/61197
15574 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15575
15576 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15577
15578 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15579
15580 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15581
15582 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15583 __SIZEOF_INT128__ is defined.
15584
15585 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15586
15587 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15588 (rs6000_delegitimize_address): Use it.
15589
15590 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15591
15592 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15593 inplace argument. Store the new address in the original MEM when true.
15594 * emit-rtl.c (change_address_1): Likewise.
15595 (adjust_address_1, adjust_automodify_address_1, offset_address):
15596 Update accordingly.
15597 * rtl.h (plus_constant): Add an inplace argument.
15598 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15599 when true. Avoid generating (plus X (const_int 0)).
15600 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15601 in-place. Pass true to plus_constant.
15602 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15603
15604 2014-05-16 Dehao Chen <dehao@google.com>
15605
15606 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15607
15608 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15609
15610 PR target/54089
15611 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15612 patterns.
15613 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15614
15615 2014-05-16 Dehao Chen <dehao@google.com>
15616
15617 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15618 optimize_function_for_size_p.
15619 * regs.h (REG_FREQ_FROM_BB): Likewise.
15620
15621 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15622
15623 PR target/51244
15624 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15625 negt_reg_operand cases.
15626 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15627 predicate.
15628 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15629
15630 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15631
15632 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15633 target variants.
15634
15635 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15636
15637 Revert:
15638 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15639
15640 * tree-cfg.c (dump_function_to_file): Dump the return type of
15641 functions, in a line to itself before the function body, mimicking
15642 the layout of a C function.
15643
15644 2014-05-16 Dehao Chen <dehao@google.com>
15645
15646 * cfghooks.c (make_forwarder_block): Use direct computation to
15647 get fall-through edge's count and frequency.
15648
15649 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15650
15651 * config/arc/arc.c (arc_init): Fix typo in error message.
15652 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15653 (split_stack_prologue_scratch_regno): Likewise.
15654 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15655 word from error message.
15656
15657 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15658
15659 * ira-costs.c: Fix typo in comment.
15660
15661 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15662
15663 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15664
15665 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15666
15667 * varpool.c (dump_varpool_node): Dump write-only flag.
15668 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15669 write-only flag.
15670 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15671 write-only variables.
15672 * ipa.c (process_references): New function.
15673 (set_readonly_bit): New function.
15674 (set_writeonly_bit): New function.
15675 (clear_addressable_bit): New function.
15676 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15677 fix handling of aliases.
15678 * cgraph.h (struct varpool_node): Add writeonly flag.
15679
15680 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15681
15682 PR rtl-optimization/60969
15683 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15684 Calculate costs for this case.
15685
15686 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15687
15688 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15689 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15690
15691 2014-05-16 Richard Biener <rguenther@suse.de>
15692
15693 PR tree-optimization/61194
15694 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15695 bool patterns ending in a COND_EXPR.
15696
15697 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15698
15699 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15700
15701 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15702
15703 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15704 where we were unable to cost an RTX.
15705
15706 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15707
15708 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15709 HIGH, LO_SUM.
15710
15711 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15712 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15713
15714 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15715
15716 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15717 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15718
15719 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15720 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15721
15722 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15723 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15724
15725 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15726 operators.
15727
15728 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15729 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15730
15731 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15732 DIV/MOD.
15733
15734 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15735 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15736
15737 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15738 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15739
15740 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15741 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15742
15743 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15744 rotates and shifts.
15745
15746 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15747 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15748
15749 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15750 ZERO_EXTEND and SIGN_EXTEND better.
15751
15752 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15753 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15754
15755 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15756 logical operations.
15757
15758 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15759 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15760
15761 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15762 costs when costing loads and stores to memory.
15763
15764 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15765 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15766
15767 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15768 for SET RTX.
15769
15770 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15771
15772 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15773
15774 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15775 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15776
15777 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15778 to...
15779 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15780 well formed.
15781 (aarch64_rtx_mult_cost): New.
15782 (aarch64_rtx_costs): Use it, refactor as appropriate.
15783
15784 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15785 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15786
15787 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15788 emit instructions, return number of instructions which would
15789 be emitted.
15790 (aarch64_add_constant): Update call to aarch64_build_constant.
15791 (aarch64_output_mi_thunk): Likewise.
15792 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15793 a CONST_DOUBLE.
15794
15795 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15796
15797 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15798 (TARGET_RTX_COSTS): Call it.
15799
15800 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15801
15802 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15803 (cortexa57_vector_cost): Likewise.
15804 (cortexa57_tunings): Use them.
15805
15806 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15807
15808 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15809 (cpu_addrcost_table): Use it.
15810 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15811 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15812 move it.
15813
15814 2014-05-16 Richard Biener <rguenther@suse.de>
15815
15816 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15817 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15818 (visit_phi): Ignore edges marked as not executable.
15819 (class cond_dom_walker): New.
15820 (cond_dom_walker::before_dom_children): Value-number
15821 control statements and mark successor edges as not
15822 executable if possible.
15823 (run_scc_vn): First walk all control statements in
15824 dominator order, marking edges as not executable.
15825 * tree-inline.c (copy_edges_for_bb): Be not confused
15826 about random edge flags.
15827
15828 2014-05-16 Richard Biener <rguenther@suse.de>
15829
15830 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15831
15832 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15833
15834 PR target/61193
15835 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15836 (__TM_simple_begin): Use it.
15837 (__TM_begin): Likewise.
15838
15839 2014-05-15 Martin Jambor <mjambor@suse.cz>
15840
15841 PR ipa/61085
15842 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15843 type_preserved flag when the indirect edge is polymorphic.
15844
15845 2014-05-15 Martin Jambor <mjambor@suse.cz>
15846
15847 PR tree-optimization/61090
15848 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15849 build_ref_for_model.
15850
15851 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15852
15853 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15854 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15855
15856 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15857
15858 PR tree-optimization/61158
15859 * fold-const.c (fold_binary_loc): If X is zero-extended and
15860 shiftc >= prec, make sure zerobits is all ones instead of
15861 invoking undefined behavior.
15862
15863 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15864
15865 * regcprop.h: New file.
15866 * regcprop.c (skip_debug_insn_p): New decl.
15867 (replace_oldest_value_reg): Check skip_debug_insn_p.
15868 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15869 * shrink-wrap.c: Include regcprop.h.
15870 (prepare_shrink_wrap): Call
15871 copyprop_hardreg_forward_bb_without_debug_insn.
15872
15873 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15874
15875 * shrink-wrap.h: Update comment.
15876 * shrink-wrap.c: Update comment.
15877 (next_block_for_reg): Rename to live_edge_for_reg.
15878 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15879 (move_insn_for_shrink_wrap): Split live_edge.
15880 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15881
15882 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15883
15884 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15885 Delete.
15886 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15887 * config/sparc/sparc.md (fptype_ut699): New attribute.
15888 (in_branch_delay): Return false if -mfix-ut699 is specified and
15889 fptype_ut699 is set to single.
15890 (truncdfsf2): Add fptype_ut699 attribute.
15891 (fix_truncdfsi2): Likewise.
15892 (floatsisf2): Change fptype attribute.
15893 (fix_truncsfsi2): Likewise.
15894 (negtf2_notv9): Delete.
15895 (negtf2_v9): Likewise.
15896 (negtf2_hq): New instruction.
15897 (negtf2): New instruction and splitter.
15898 (negdf2_notv9): Rewrite.
15899 (abstf2_notv9): Delete.
15900 (abstf2_hq_v9): Likewise.
15901 (abstf2_v9): Likewise.
15902 (abstf2_hq): New instruction.
15903 (abstf2): New instruction and splitter.
15904 (absdf2_notv9): Rewrite.
15905
15906 2014-05-14 Cary Coutant <ccoutant@google.com>
15907
15908 PR debug/61013
15909 * opts.c (common_handle_option): Don't special-case "-g".
15910 (set_debug_level): Default to at least level 2 with "-g".
15911
15912 2014-05-14 DJ Delorie <dj@redhat.com>
15913
15914 * config/msp430/msp430.c (msp430_builtin): Add
15915 MSP430_BUILTIN_DELAY_CYCLES.
15916 (msp430_init_builtins): Register void __delay_cycles(long long).
15917 (msp430_builtin_decl): Add it.
15918 (cg_magic_constant): New.
15919 (msp430_expand_delay_cycles): New.
15920 (msp430_expand_builtin): Call it.
15921 (msp430_print_operand_raw): Change integer printing from "int" to
15922 HOST_WIDE_INT.
15923 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15924 (delay_cycles_start): New.
15925 (delay_cycles_end): New.
15926 (delay_cycles_32): New.
15927 (delay_cycles_32x): New.
15928 (delay_cycles_16): New.
15929 (delay_cycles_16x): New.
15930 (delay_cycles_2): New.
15931 (delay_cycles_1): New.
15932 * doc/extend.texi: Document __delay_cycles().
15933
15934 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15935
15936 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15937 length attribute computation.
15938
15939 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15940
15941 PR debug/61188
15942 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15943
15944 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15945
15946 PR target/61084
15947 * config/sparc/sparc.md: Fix types of low and high in DI constant
15948 splitter. Use gen_int_mode in some other splitters.
15949
15950 2014-05-14 Martin Jambor <mjambor@suse.cz>
15951
15952 PR ipa/60897
15953 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15954
15955 2014-05-14 James Norris <jnorris@codesourcery.com>
15956
15957 * omp-low.c (expand_parallel_call): Remove shadow variable.
15958 (expand_omp_taskreg): Likewise.
15959
15960 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15961
15962 * common/config/i386/i386-common.c
15963 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15964 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15965 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15966 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15967 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15968 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15969 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15970 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15971 xsavecintrin.h, xsavesintrin.h.
15972 (x86_64-*-*): Ditto.
15973 * config/i386/clflushoptintrin.h: New.
15974 * config/i386/xsavecintrin.h: Ditto.
15975 * config/i386/xsavesintrin.h: Ditto.
15976 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15977 (bit_XSAVES): Ditto.
15978 (bit_XSAVES): Ditto.
15979 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15980 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15981 -mno-clflushopt.
15982 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15983 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15984 OPTION_MASK_ISA_XSAVES.
15985 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15986 -mxsavec, -mxsaves.
15987 (PTA_CLFLUSHOPT) Define.
15988 (PTA_XSAVEC): Ditto.
15989 (PTA_XSAVES): Ditto.
15990 (ix86_option_override_internal): Handle new options.
15991 (ix86_valid_target_attribute_inner_p): Ditto.
15992 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15993 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15994 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15995 (bdesc_special_args): Add __builtin_ia32_xsaves,
15996 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15997 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15998 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15999 (ix86_expand_builtin): Handle new builtins.
16000 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16001 (TARGET_CLFLUSHOPT_P): Ditto.
16002 (TARGET_XSAVEC): Ditto.
16003 (TARGET_XSAVEC_P): Ditto.
16004 (TARGET_XSAVES): Ditto.
16005 (TARGET_XSAVES_P): Ditto.
16006 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16007 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16008 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16009 (ANY_XRSTOR): New.
16010 (ANY_XRSTOR64): Ditto.
16011 (xrstor): Ditto.
16012 (xrstor): Change into <xrstor>.
16013 (xrstor_rex64): Change into <xrstor>_rex64.
16014 (xrstor64): Change into <xrstor>64
16015 (clflushopt): New.
16016 * config/i386/i386.opt (mclflushopt): New.
16017 (mxsavec): Ditto.
16018 (mxsaves): Ditto.
16019 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16020 xsavecintrin.h.
16021 * doc/invoke.texi: Document new options.
16022
16023 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16024
16025 PR rtl-optimization/60866
16026 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16027 Default it to -1. Pass it down to init_simplejump_data.
16028 (init_simplejump_data): New parameter old_seqno. Pass it down
16029 to get_seqno_for_a_jump.
16030 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16031 initializing new jump seqno as a last resort. Add comment.
16032 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16033 jump and pass it down to sel_init_new_insn.
16034 (sel_redirect_edge_and_branch_force): Likewise.
16035
16036 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16037
16038 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16039 shifted values to avoid build warning.
16040
16041 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16042
16043 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16044 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16045 (cfg_layout_merge_blocks): Likewise.
16046 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16047
16048 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16049
16050 PR rtl-optimization/60901
16051 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16052 bb predecessor belongs to the same scheduling region. Adjust comment.
16053
16054 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16055
16056 * doc/sourcebuild.texi: (dfp_hw): Document.
16057 (p8vector_hw): Likewise.
16058 (powerpc_eabi_ok): Likewise.
16059 (powerpc_elfv2): Likewise.
16060 (powerpc_htm_ok): Likewise.
16061 (ppc_recip_hw): Likewise.
16062 (vsx_hw): Likewise.
16063
16064 2014-05-13 Cary Coutant <ccoutant@google.com>
16065
16066 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16067
16068 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16069
16070 * gengtype-parse.c (require3): Eliminate in favor of...
16071 (require4): New.
16072 (require_template_declaration): Update to support optional single *
16073 on a type.
16074
16075 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16076 (create_user_defined_type): Handle a single level of explicit
16077 pointerness within template arguments.
16078 (struct write_types_data): Add field "kind".
16079 (filter_type_name): Handle "*" character.
16080 (write_user_func_for_structure_ptr): Require a write_types_data
16081 rather than just a prefix string, so that we can look up the kind
16082 of the wtd and use it as an index into wrote_user_func_for_ptr,
16083 ensuring that such functions are written at most once. Support
16084 subclasses by invoking the marking function of the ultimate base class.
16085 (write_user_func_for_structure_body): Require a write_types_data
16086 rather than just a prefix string, so that we can pass this to
16087 write_user_func_for_structure_ptr.
16088 (write_func_for_structure): Likewise.
16089 (ggc_wtd): Add initializer of new "kind" field.
16090 (pch_wtd): Likewise.
16091
16092 * gengtype.h (enum write_types_kinds): New.
16093 (struct type): Add field wrote_user_func_for_ptr to the "s"
16094 union member.
16095
16096 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16097
16098 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16099 instead of const_binop.
16100 (fold_binary_loc): Likewise.
16101
16102 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16103
16104 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16105 calculation to match get_ref_base_and_extent.
16106
16107 2014-05-13 Catherine Moore <clm@codesourcery.com>
16108 Sandra Loosemore <sandra@codesourcery.com>
16109
16110 * configure.ac: Fix assembly for explicit JALR relocation check.
16111 * configure: Regenerate.
16112
16113 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16114
16115 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16116 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16117 Remove associated type declarations and initialisations.
16118 (arm_expand_neon_builtin): Likewise.
16119 (neon_emit_pair_result_insn): Delete.
16120 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16121 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16122 (neon_vzip<mode>): Likewise.
16123 (neon_vuzp<mode>): Likewise.
16124
16125 2014-05-13 Richard Biener <rguenther@suse.de>
16126
16127 PR ipa/60973
16128 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16129 it needs revisiting whether the call still may be tail-called.
16130
16131 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16132
16133 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16134 * rtl.h (block_symbol): Reduce number of fields to 2.
16135 (rtx_def): Add u2.symbol_ref_flags.
16136 (SYMBOL_REF_FLAGS): Use it.
16137 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16138 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16139 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16140 Lower index of SYMBOL_REF_DATA.
16141 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16142 Print SYMBOL_REF_FLAGS at the same time.
16143 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16144
16145 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16146
16147 * rtl.def (VAR_LOCATION): Remove "i" field.
16148 * rtl.h (rtx_def): Add u2.var_location_status.
16149 (PAT_VAR_LOCATION_STATUS): Use it.
16150 (gen_rtx_VAR_LOCATION): Declare.
16151 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16152 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16153 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16154
16155 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16156
16157 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16158 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16159
16160 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16161
16162 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16163 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16164 * rtl.h (rtx_def): Add insn_uid to u2 field.
16165 (RTX_FLAG_CHECK8): Delete in favor of...
16166 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16167 (INSN_DELETED_P): Update accordingly.
16168 (INSN_UID): Use u2.insn_uid.
16169 (INSN_CHAIN_CODE_P): Define.
16170 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16171 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16172 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16173 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16174 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16175 indices accordingly.
16176 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16177 Update indices for insn-chain rtxes.
16178 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16179 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16180 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16181 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16182 * combine.c (try_combine): Likewise.
16183 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16184
16185 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16186
16187 * rtl.def (REG): Remove middle field.
16188 * rtl.h (rtx_def): Add orignal_regno to u2.
16189 (ORIGINAL_REGNO): Use it instead of field 1.
16190 (REG_ATTRS): Lower field index accordingly.
16191 * gengtype.c (adjust_field_rtx_def): Remove handling of
16192 ORIGINAL_REGNO. Move REG_ATTRS index down.
16193 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16194 code that prints the REGNO.
16195
16196 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16197
16198 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16199 GENERATOR_FILE.
16200
16201 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16202
16203 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16204
16205 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16206
16207 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16208 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16209
16210 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16211
16212 * config/aarch64/aarch64-protos.h
16213 (aarch64_hard_regno_caller_save_mode): New prototype.
16214 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16215 New function.
16216 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16217
16218 2014-05-13 Christian Bruel <christian.bruel@st.com>
16219
16220 * target.def (mode_switching): New hook vector.
16221 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16222 (mode_exit, modepriority_to_mode): Likewise.
16223 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16224 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16225 * target.h: Include tm.h and hard-reg-set.h.
16226 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16227 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16228 * doc/tm.texi Regenerate.
16229 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16230 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16231 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16232 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16233 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16234 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16235 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16236 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16237 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16238 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16239 (ix86_emit_mode_set): Hookify.
16240 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16241 Delete.
16242 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16243 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16244 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16245 (epiphany_mode_priority_to_mode): Remove declaration.
16246 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16247 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16248 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16249 Likewise.
16250 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16251 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16252 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16253
16254 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16255
16256 PR target/61060
16257 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16258 is const0_rtx, return immediately. Don't test count == 0 when
16259 it is always true.
16260
16261 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16262
16263 * Makefile.in: add shrink-wrap.o.
16264 * config/i386/i386.c: include "shrink-wrap.h"
16265 * function.c: Likewise.
16266 (requires_stack_frame_p, next_block_for_reg,
16267 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16268 dup_block_and_redirect): Move to shrink-wrap.c
16269 (thread_prologue_and_epilogue_insns): Extract three code segments
16270 as functions in shrink-wrap.c
16271 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16272 shrink-wrap.h
16273 * shrink-wrap.c: New file.
16274 * shrink-wrap.h: New file.
16275
16276 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16277
16278 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16279 reference to Solaris.
16280
16281 2014-05-12 Mike Stump <mikestump@comcast.net>
16282
16283 PR other/31778
16284 * genattrtab.c (filename): Add.
16285 (convert_set_attr_alternative): Improve error message.
16286 (check_defs): Restore read_md_filename for error messages.
16287 (gen_insn): Save filename.
16288
16289 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16290
16291 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16292 -fno-local-ivars and -fivar-visibility.
16293 * c-family/c.opt: Make -Wshadow also implicitly enable
16294 -Wshadow-ivar.
16295
16296 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16297
16298 * doc/tm.texi: Remove reference to deleted macro.
16299 * doc/tm.texi.in: Likewise.
16300
16301 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16302
16303 PR target/60991
16304 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16305 to restore Y.
16306
16307 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16308
16309 PR libgcc/61152
16310 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16311 * config/arm/aout.h (License): Same.
16312 * config/arm/bpabi.h (License): Same.
16313 * config/arm/elf.h (License): Same.
16314 * config/arm/linux-elf.h (License): Same.
16315 * config/arm/linux-gas.h (License): Same.
16316 * config/arm/netbsd-elf.h (License): Same.
16317 * config/arm/uclinux-eabi.h (License): Same.
16318 * config/arm/uclinux-elf.h (License): Same.
16319 * config/arm/vxworks.h (License): Same.
16320
16321 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16322
16323 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16324 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16325 number of operands to 3.
16326 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16327 * tree-nested.c (convert_nonlocal_omp_clauses,
16328 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16329 * gimplify.c (gimplify_scan_omp_clauses): Handle
16330 OMP_CLAUSE_LINEAR_STMT.
16331 * omp-low.c (lower_rec_input_clauses): Fix typo.
16332 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16333 cast between Fortran boolean_type_node and C _Bool if
16334 needed.
16335
16336 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16337
16338 PR tree-optimization/61136
16339 * wide-int.h (multiple_of_p): Define a version that doesn't return
16340 the quotient.
16341 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16342 integer_zerop/const_binop pair.
16343 (multiple_of_p): Likewise, converting both operands to widest_int
16344 precision.
16345
16346 2014-05-09 Teresa Johnson <tejohnson@google.com>
16347
16348 * cgraphunit.c (analyze_functions): Use correct dump file.
16349
16350 2014-05-09 Florian Weimer <fweimer@redhat.com>
16351
16352 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16353 expand_used_vars.
16354 (stack_protect_return_slot_p): New function.
16355 (expand_used_vars): Call stack_protect_decl_p and
16356 stack_protect_return_slot_p for -fstack-protector-strong.
16357
16358 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16359 Andrew Haley <aph@redhat.com>
16360 Richard Sandiford <rdsandiford@googlemail.com>
16361
16362 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16363 pages.
16364
16365 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16366
16367 PR middle-end/61111
16368 * fold-const.c (fold_binary_loc): Changed width of mask.
16369
16370 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16371
16372 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16373 unsigned int initializers for regno_in, regno_out.
16374
16375 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16376
16377 PR target/61055
16378 * config/avr/avr.md (cc): Add new attribute set_vzn.
16379 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16380 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16381 with INC, DEC or NEG.
16382 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16383 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16384 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16385
16386 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16387
16388 Revert:
16389 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16390
16391 * wide-int.cc (UTItype): Define.
16392 (UDWtype): Define for appropriate W_TYPE_SIZE.
16393
16394 2014-05-09 Richard Biener <rguenther@suse.de>
16395
16396 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16397 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16398 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16399 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16400 ssa_propagate): Adjust.
16401
16402 2014-05-08 Jeff Law <law@redhat.com>
16403
16404 PR tree-optimization/61009
16405 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16406 tri-state rather than a boolean. When a block is too big to
16407 thread through, inform caller via negative return value.
16408 (thread_across_edge): If a block was too big for normal threading,
16409 then it's too big for a joiner too, so remove temporary equivalences
16410 and return immediately.
16411
16412 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16413 Matthias Klose <doko@ubuntu.com>
16414
16415 PR driver/61106
16416 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16417
16418 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16419
16420 PR target/59952
16421 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16422
16423 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16424
16425 PR target/61092
16426 * config/alpha/alpha.c: Include gimple-iterator.h.
16427 (alpha_gimple_fold_builtin): New function. Move
16428 ALPHA_BUILTIN_UMULH folding from ...
16429 (alpha_fold_builtin): ... here.
16430 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16431
16432 2014-05-08 Wei Mi <wmi@google.com>
16433
16434 PR target/58066
16435 * config/i386/i386.c (ix86_compute_frame_layout): Update
16436 preferred_stack_boundary for call, expanded from tls descriptor.
16437 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16438 to depend on SP register.
16439 (*tls_local_dynamic_base_32_gnu): Ditto.
16440 (*tls_local_dynamic_32_once): Ditto.
16441 (tls_global_dynamic_64_<mode>): Set
16442 ix86_tls_descriptor_calls_expanded_in_cfun.
16443 (tls_local_dynamic_base_64_<mode>): Ditto.
16444 (tls_global_dynamic_32): Set
16445 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16446 to depend on SP register.
16447 (tls_local_dynamic_base_32): Ditto.
16448
16449 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16450
16451 * config/arm/arm_neon.h: Update comment.
16452 * config/arm/neon-docgen.ml: Delete.
16453 * config/arm/neon-gen.ml: Delete.
16454 * doc/arm-neon-intrinsics.texi: Update comment.
16455
16456 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16457
16458 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16459 and v4sf versions.
16460 (vand, vorr, veor, vorn, vbic): Remove.
16461 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16462 iterator.
16463 (neon_vsub_unspec): Likewise.
16464 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16465
16466 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16467
16468 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16469 (vadd_s16): Likewise.
16470 (vadd_s32): Likewise.
16471 (vadd_f32): Likewise.
16472 (vadd_u8): Likewise.
16473 (vadd_u16): Likewise.
16474 (vadd_u32): Likewise.
16475 (vadd_s64): Likewise.
16476 (vadd_u64): Likewise.
16477 (vaddq_s8): Likewise.
16478 (vaddq_s16): Likewise.
16479 (vaddq_s32): Likewise.
16480 (vaddq_s64): Likewise.
16481 (vaddq_f32): Likewise.
16482 (vaddq_u8): Likewise.
16483 (vaddq_u16): Likewise.
16484 (vaddq_u32): Likewise.
16485 (vaddq_u64): Likewise.
16486 (vmul_s8): Likewise.
16487 (vmul_s16): Likewise.
16488 (vmul_s32): Likewise.
16489 (vmul_f32): Likewise.
16490 (vmul_u8): Likewise.
16491 (vmul_u16): Likewise.
16492 (vmul_u32): Likewise.
16493 (vmul_p8): Likewise.
16494 (vmulq_s8): Likewise.
16495 (vmulq_s16): Likewise.
16496 (vmulq_s32): Likewise.
16497 (vmulq_f32): Likewise.
16498 (vmulq_u8): Likewise.
16499 (vmulq_u16): Likewise.
16500 (vmulq_u32): Likewise.
16501 (vsub_s8): Likewise.
16502 (vsub_s16): Likewise.
16503 (vsub_s32): Likewise.
16504 (vsub_f32): Likewise.
16505 (vsub_u8): Likewise.
16506 (vsub_u16): Likewise.
16507 (vsub_u32): Likewise.
16508 (vsub_s64): Likewise.
16509 (vsub_u64): Likewise.
16510 (vsubq_s8): Likewise.
16511 (vsubq_s16): Likewise.
16512 (vsubq_s32): Likewise.
16513 (vsubq_s64): Likewise.
16514 (vsubq_f32): Likewise.
16515 (vsubq_u8): Likewise.
16516 (vsubq_u16): Likewise.
16517 (vsubq_u32): Likewise.
16518 (vsubq_u64): Likewise.
16519 (vand_s8): Likewise.
16520 (vand_s16): Likewise.
16521 (vand_s32): Likewise.
16522 (vand_u8): Likewise.
16523 (vand_u16): Likewise.
16524 (vand_u32): Likewise.
16525 (vand_s64): Likewise.
16526 (vand_u64): Likewise.
16527 (vandq_s8): Likewise.
16528 (vandq_s16): Likewise.
16529 (vandq_s32): Likewise.
16530 (vandq_s64): Likewise.
16531 (vandq_u8): Likewise.
16532 (vandq_u16): Likewise.
16533 (vandq_u32): Likewise.
16534 (vandq_u64): Likewise.
16535 (vorr_s8): Likewise.
16536 (vorr_s16): Likewise.
16537 (vorr_s32): Likewise.
16538 (vorr_u8): Likewise.
16539 (vorr_u16): Likewise.
16540 (vorr_u32): Likewise.
16541 (vorr_s64): Likewise.
16542 (vorr_u64): Likewise.
16543 (vorrq_s8): Likewise.
16544 (vorrq_s16): Likewise.
16545 (vorrq_s32): Likewise.
16546 (vorrq_s64): Likewise.
16547 (vorrq_u8): Likewise.
16548 (vorrq_u16): Likewise.
16549 (vorrq_u32): Likewise.
16550 (vorrq_u64): Likewise.
16551 (veor_s8): Likewise.
16552 (veor_s16): Likewise.
16553 (veor_s32): Likewise.
16554 (veor_u8): Likewise.
16555 (veor_u16): Likewise.
16556 (veor_u32): Likewise.
16557 (veor_s64): Likewise.
16558 (veor_u64): Likewise.
16559 (veorq_s8): Likewise.
16560 (veorq_s16): Likewise.
16561 (veorq_s32): Likewise.
16562 (veorq_s64): Likewise.
16563 (veorq_u8): Likewise.
16564 (veorq_u16): Likewise.
16565 (veorq_u32): Likewise.
16566 (veorq_u64): Likewise.
16567 (vbic_s8): Likewise.
16568 (vbic_s16): Likewise.
16569 (vbic_s32): Likewise.
16570 (vbic_u8): Likewise.
16571 (vbic_u16): Likewise.
16572 (vbic_u32): Likewise.
16573 (vbic_s64): Likewise.
16574 (vbic_u64): Likewise.
16575 (vbicq_s8): Likewise.
16576 (vbicq_s16): Likewise.
16577 (vbicq_s32): Likewise.
16578 (vbicq_s64): Likewise.
16579 (vbicq_u8): Likewise.
16580 (vbicq_u16): Likewise.
16581 (vbicq_u32): Likewise.
16582 (vbicq_u64): Likewise.
16583 (vorn_s8): Likewise.
16584 (vorn_s16): Likewise.
16585 (vorn_s32): Likewise.
16586 (vorn_u8): Likewise.
16587 (vorn_u16): Likewise.
16588 (vorn_u32): Likewise.
16589 (vorn_s64): Likewise.
16590 (vorn_u64): Likewise.
16591 (vornq_s8): Likewise.
16592 (vornq_s16): Likewise.
16593 (vornq_s32): Likewise.
16594 (vornq_s64): Likewise.
16595 (vornq_u8): Likewise.
16596 (vornq_u16): Likewise.
16597 (vornq_u32): Likewise.
16598 (vornq_u64): Likewise.
16599
16600 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16601
16602 * wide-int.cc (UTItype): Define.
16603 (UDWtype): Define for appropriate W_TYPE_SIZE.
16604
16605 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16606
16607 PR tree-optimization/59100
16608 * tree-ssa-phiopt.c: Include tree-inline.h.
16609 (neutral_element_p, absorbing_element_p): New functions.
16610 (value_replacement): Handle conditional binary operations with a
16611 neutral or absorbing element.
16612
16613 2014-05-08 Richard Biener <rguenther@suse.de>
16614
16615 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16616 folding the expression.
16617 (valueize_expr): Remove.
16618 (visit_reference_op_load): Do not valueize the result of
16619 vn_get_expr_for.
16620 (simplify_binary_expression): Likewise.
16621 (simplify_unary_expression): Likewise.
16622
16623 2014-05-08 Richard Biener <rguenther@suse.de>
16624
16625 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16626 looking at TYPE_ARG_TYPES.
16627
16628 2014-05-08 Richard Biener <rguenther@suse.de>
16629
16630 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16631 pointer propagation special-case.
16632
16633 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16634
16635 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16636 core part of address expressions.
16637
16638 2014-05-08 Alan Modra <amodra@gmail.com>
16639
16640 PR target/60737
16641 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16642 loads and stores when -mno-strict-align at any alignment.
16643 (expand_block_clear): Similarly. Also correct calculation of
16644 instruction count.
16645
16646 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16647
16648 PR middle-end/39246
16649 * tree-complex.c (expand_complex_move): Keep line info when expanding
16650 complex move.
16651 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16652 of complex expression. Use new argument to display correct location
16653 for values coming from phi statement.
16654 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16655 (warn_uninitialized_phi): Pass location of phi argument to
16656 warn_uninit.
16657 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16658 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16659
16660 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16661
16662 * config/rs6000/predicates.md (indexed_address_mem): New.
16663 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16664 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16665 fpstore_ux, fpstore_u.
16666 (sign_extend, indexed, update): New.
16667 (cell_micro): Adjust.
16668 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16669 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16670 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16671 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16672 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16673 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16674 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16675 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16676 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16677 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16678 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16679 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16680 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16681 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16682 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16683
16684 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16685 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16686 *vsx_extract_<mode>_store): Adjust.
16687 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16688 is_cracked_insn, insn_must_be_first_in_group,
16689 insn_must_be_last_in_group): Adjust.
16690
16691 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16692 Adjust.
16693 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16694 ppc440-fpstore): Adjust.
16695 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16696 ppc476-fpstore): Adjust.
16697 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16698 ppc601-fpstore): Adjust.
16699 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16700 Adjust.
16701 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16702 Adjust.
16703 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16704 ppc7450-fpstore): Adjust.
16705 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16706 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16707 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16708 Adjust.
16709 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16710 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16711 cell-fpstore, cell-fpstore-update): Adjust.
16712 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16713 ppce300c3_store, ppce300c3_fpstore): Adjust.
16714 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16715 e500mc_fpstore): Adjust.
16716 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16717 e500mc64_store, e500mc64_fpstore): Adjust.
16718 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16719 e5500_fpstore): Adjust.
16720 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16721 e6500_fpstore): Adjust.
16722 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16723 Adjust.
16724 * config/rs6000/power4.md (power4-load, power4-load-ext,
16725 power4-load-ext-update, power4-load-ext-update-indexed,
16726 power4-load-update-indexed, power4-load-update, power4-fpload,
16727 power4-fpload-update, power4-store, power4-store-update,
16728 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16729 Adjust.
16730 * config/rs6000/power5.md (power5-load, power5-load-ext,
16731 power5-load-ext-update, power5-load-ext-update-indexed,
16732 power5-load-update-indexed, power5-load-update, power5-fpload,
16733 power5-fpload-update, power5-store, power5-store-update,
16734 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16735 Adjust.
16736 * config/rs6000/power6.md (power6-load, power6-load-ext,
16737 power6-load-update, power6-load-update-indexed,
16738 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16739 power6-fpload-update, power6-store, power6-store-update,
16740 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16741 Adjust.
16742 * config/rs6000/power7.md (power7-load, power7-load-ext,
16743 power7-load-update, power7-load-update-indexed,
16744 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16745 power7-fpload-update, power7-store, power7-store-update,
16746 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16747 Adjust.
16748 * config/rs6000/power8.md (power8-load, power8-load-update,
16749 power8-load-ext, power8-load-ext-update, power8-fpload,
16750 power8-fpload-update, power8-store, power8-store-update-indexed,
16751 power8-fpstore, power8-fpstore-update): Adjust.
16752 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16753 Adjust.
16754 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16755 titan_lsu_store, titan_lsu_fpstore): Adjust.
16756 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16757
16758 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16759
16760 PR target/60884
16761 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16762 unrolled byte insns. Emit address increments after move insns.
16763
16764 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16765
16766 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16767 const_gimple, rather than a gimple.
16768 (gimple_call_builtin_p): Likewise, for the three variants.
16769
16770 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16771 (gimple_call_builtin_p): Likewise, for the three variants.
16772
16773 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16774
16775 PR tree-optimization/61095
16776 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16777
16778 2014-05-07 Richard Biener <rguenther@suse.de>
16779
16780 PR tree-optimization/61034
16781 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16782 (maybe_skip_until): Use translate to take into account
16783 lattices when trying to do disambiguations.
16784 (get_continuation_for_phi_1): Likewise.
16785 (get_continuation_for_phi): Adjust for added translate arguments.
16786 (walk_non_aliased_vuses): Likewise.
16787 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16788 (walk_non_aliased_vuses): Likewise.
16789 (call_may_clobber_ref_p_1): Declare.
16790 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16791 calls. Stop early if we are only supposed to disambiguate.
16792 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16793
16794 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16795
16796 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16797 Emit an error when the function has arguments.
16798
16799 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16800
16801 * cfgloop.h (unswitch_loops): Remove.
16802 * doc/passes.texi: Remove references to loop-unswitch.c
16803 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16804
16805 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16806
16807 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16808 check for loads group of length 3.
16809 (vect_permute_load_chain): New permutations for loads group of
16810 length 3.
16811 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16812 of vec_perm_shuffle for the new permutations.
16813
16814 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16815
16816 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16817 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16818 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16819 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16820 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16821 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16822 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16823 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16824
16825 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16826
16827 * loop-unswitch.c: Delete.
16828
16829 2014-05-07 Richard Biener <rguenther@suse.de>
16830
16831 * config.gcc: Always set need_64bit_hwint to yes.
16832
16833 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16834
16835 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16836 of using optimize_size.
16837
16838 2014-05-06 Mike Stump <mikestump@comcast.net>
16839
16840 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16841
16842 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16843
16844 * config/i386/sse.md (*mov<mode>_internal)
16845 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16846 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16847 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16848 (*<code><mode>3, *andnot<mode>3<mask_name>)
16849 (<mask_codefor><code><mode>3<mask_name>): Only consider
16850 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16851
16852 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16853
16854 Revert:
16855 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16856
16857 * lra-constraints.c (valid_address_p): Move earlier in file.
16858 Add a constraint argument to the address_info version.
16859 (satisfies_memory_constraint_p): New function.
16860 (satisfies_address_constraint_p): Likewise.
16861 (process_alt_operands, curr_insn_transform): Use them.
16862 (process_address): Pass the constraint to valid_address_p when
16863 checking address operands.
16864
16865 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16866
16867 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16868 to their respective blocks. Fix inadvertent use of "node".
16869
16870 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16871
16872 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16873 out from...
16874 (init_emit_once): ...here.
16875 * rtl.h (init_derived_machine_modes): Declare.
16876 * toplev.c (do_compile): Call it even if no_backend.
16877
16878 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16879 Mike Stump <mikestump@comcast.net>
16880 Richard Sandiford <rdsandiford@googlemail.com>
16881 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16882
16883 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16884 (rtx_equal_for_memref_p): Update comment.
16885 (adjust_offset_for_component_ref): Use wide-int interfaces.
16886 * builtins.c (get_object_alignment_2): Likewise.
16887 (c_readstr): Likewise.
16888 (target_char_cast): Add comment.
16889 (determine_block_size): Use wide-int interfaces.
16890 (expand_builtin_signbit): Likewise.
16891 (fold_builtin_int_roundingfn): Likewise.
16892 (fold_builtin_bitop): Likewise.
16893 (fold_builtin_bswap): Likewise.
16894 (fold_builtin_logarithm): Use signop.
16895 (fold_builtin_pow): Likewise.
16896 (fold_builtin_memory_op): Use wide-int interfaces.
16897 (fold_builtin_object_size): Likewise.
16898 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16899 nb_iterations_estimate.
16900 (record_niter_bound): Use wide-int interfaces.
16901 (get_estimated_loop_iterations_int): Likewise.
16902 (get_estimated_loop_iterations): Likewise.
16903 (get_max_loop_iterations): Likewise.
16904 * cfgloop.h: Include wide-int.h.
16905 (struct nb_iter_bound): Change bound to widest_int.
16906 (struct loop): Change nb_iterations_upper_bound and
16907 nb_iterations_estimate to widest_int.
16908 (record_niter_bound): Switch to use widest_int.
16909 (get_estimated_loop_iterations): Likewise.
16910 (get_max_loop_iterations): Likewise.
16911 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16912 update for wide-int.
16913 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16914 * combine.c (try_combine): Likewise.
16915 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16916 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16917 interfaces.
16918 (aarch64_float_const_representable_p): Likewise.
16919 * config/arc/arc.c: Include wide-int.h.
16920 (arc_can_use_doloop_p): Use wide-int interfaces.
16921 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16922 (vfp3_const_double_index): Likewise.
16923 * config/avr/avr.c (avr_out_round): Likewise.
16924 (avr_fold_builtin): Likewise.
16925 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16926 (bfin_can_use_doloop_p): Likewise.
16927 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16928 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16929 * config/i386/i386.c: Include wide-int.h.
16930 (ix86_data_alignment): Use wide-int interfaces.
16931 (ix86_local_alignment): Likewise.
16932 (ix86_emit_swsqrtsf): Update real_from_integer.
16933 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16934 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16935 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16936 (zero_constant): Likewise.
16937 (input_operand): Likewise.
16938 (splat_input_operand): Likewise.
16939 (non_logical_cint_operand): Change const_double to const_wide_int.
16940 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16941 (easy_altivec_constant): Remove comment.
16942 (paired_expand_vector_init): Use CONSTANT_P.
16943 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16944 (rs6000_emit_move): Update checks.
16945 (rs6000_aggregate_candidate): Use wide-int interfaces.
16946 (rs6000_expand_ternop_builtin): Likewise.
16947 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16948 (rs6000_assemble_integer): Likewise.
16949 (rs6000_hash_constant): Likewise.
16950 (output_toc): Likewise.
16951 (rs6000_rtx_costs): Likewise.
16952 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16953 * config/rs6000/rs6000-c.c: Include wide-int.h.
16954 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16955 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16956 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16957 Handle CONST_WIDE_INT.
16958 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16959 Use tree_fits_uhwi_p.
16960 * config/sparc/sparc.c: Include wide-int.h.
16961 (sparc_fold_builtin): Use wide-int interfaces.
16962 * config/vax/vax.c: Include wide-int.h.
16963 (vax_float_literal): Use real_from_integer.
16964 * coretypes.h (struct hwivec_def): New.
16965 (hwivec): New.
16966 (const_hwivec): New.
16967 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16968 (equiv_constant): Handle CONST_WIDE_INT.
16969 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16970 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16971 * dbxout.c (stabstr_U): Use wide-int interfaces.
16972 (dbxout_type): Update to use cst_fits_shwi_p.
16973 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16974 (TARGET_SUPPORTS_WIDE_INT): Add default.
16975 * dfp.c: Include wide-int.h.
16976 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16977 decimal_real_to_integer.
16978 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16979 decimal_real_to_integer.
16980 * doc/generic.texi (Constant expressions): Update for wide_int.
16981 * doc/rtl.texi (const_double): Likewise.
16982 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16983 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16984 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16985 (REAL_VALUE_FROM_INT): Remove.
16986 (TARGET_SUPPORTS_WIDE_INT): New.
16987 * doc/tm.texi: Regenerate.
16988 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16989 * double-int.h: Include wide-int.h.
16990 (struct wi::int_traits): New.
16991 * dwarf2out.c (get_full_len): New.
16992 (dw_val_equal_p): Add case dw_val_class_wide_int.
16993 (size_of_loc_descr): Likewise.
16994 (output_loc_operands): Likewise.
16995 (insert_double): Remove.
16996 (insert_wide_int): New.
16997 (add_AT_wide): New.
16998 (print_die): Add case dw_val_class_wide_int.
16999 (attr_checksum): Likewise.
17000 (attr_checksum_ordered): Likewise.
17001 (same_dw_val_p): Likewise.
17002 (size_of_die): Likewise.
17003 (value_format): Likewise.
17004 (output_die): Likewise.
17005 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17006 Use wide-int.
17007 (clz_loc_descriptor): Use wide-int interfaces.
17008 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17009 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17010 (round_up_to_align): Use wide-int interfaces.
17011 (field_byte_offset): Likewise.
17012 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17013 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17014 CONST_DOUBLE handling. Use wide-int interfaces.
17015 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17016 (gen_enumeration_type_die): Use add_AT_wide.
17017 (hash_loc_operands): Add case dw_val_class_wide_int.
17018 (compare_loc_operands): Likewise.
17019 * dwarf2out.h: Include wide-int.h.
17020 (wide_int_ptr): New.
17021 (enum dw_val_class): Add dw_val_class_wide_int.
17022 (struct dw_val_struct): Add val_wide.
17023 * emit-rtl.c (const_wide_int_htab): New.
17024 (const_wide_int_htab_hash): New.
17025 (const_wide_int_htab_eq): New.
17026 (lookup_const_wide_int): New.
17027 (const_double_htab_hash): Use wide-int interfaces.
17028 (const_double_htab_eq): Likewise.
17029 (rtx_to_double_int): Conditionally compile for wide-int.
17030 (immed_double_int_const): Rename to immed_wide_int_const and
17031 update for wide-int.
17032 (immed_double_const): Conditionally compile for wide-int.
17033 (init_emit_once): Use wide-int interfaces.
17034 * explow.c (plus_constant): Likewise.
17035 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17036 (lshift_value): Use wide-int interfaces.
17037 (expand_mult): Likewise.
17038 (choose_multiplier): Likewise.
17039 (expand_smod_pow2): Likewise.
17040 (make_tree): Likewise.
17041 * expr.c (convert_modes): Consolidate handling of constants.
17042 Use wide-int interfaces.
17043 (emit_group_load_1): Add note.
17044 (store_expr): Update comment.
17045 (get_inner_reference): Use wide-int interfaces.
17046 (expand_constructor): Update comment.
17047 (expand_expr_real_2): Use wide-int interfaces.
17048 (expand_expr_real_1): Likewise.
17049 (reduce_to_bit_field_precision): Likewise.
17050 (const_vector_from_tree): Likewise.
17051 * final.c: Include wide-int-print.h.
17052 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17053 * fixed-value.c: Include wide-int.h.
17054 (fixed_from_string): Use wide-int interfaces.
17055 (fixed_to_decimal): Likewise.
17056 (fixed_convert_from_real): Likewise.
17057 (real_convert_from_fixed): Likewise.
17058 * fold-const.h (mem_ref_offset): Return an offset_int.
17059 (div_if_zero_remainder): Remove code parameter.
17060 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17061 Use wide-int interfaces.
17062 (may_negate_without_overflow_p): Use wide-int interfaces.
17063 (negate_expr_p): Likewise.
17064 (fold_negate_expr): Likewise.
17065 (int_const_binop_1): Likewise.
17066 (const_binop): Likewise.
17067 (fold_convert_const_int_from_int): Likewise.
17068 (fold_convert_const_int_from_real): Likewise.
17069 (fold_convert_const_int_from_fixed): Likewise.
17070 (fold_convert_const_fixed_from_int): Likewise.
17071 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17072 (sign_bit_p): Use wide-int interfaces.
17073 (make_range_step): Likewise.
17074 (build_range_check): Likewise. Pass an integer of the correct type
17075 instead of using integer_one_node.
17076 (range_predecessor): Pass an integer of the correct type instead
17077 of using integer_one_node.
17078 (range_successor): Likewise.
17079 (merge_ranges): Likewise.
17080 (unextend): Use wide-int interfaces.
17081 (extract_muldiv_1): Likewise.
17082 (fold_div_compare): Likewise.
17083 (fold_single_bit_test): Likewise.
17084 (fold_sign_changed_comparison): Likewise.
17085 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17086 (fold_plusminus_mult_expr): Use wide-int interfaces.
17087 (native_encode_int): Likewise.
17088 (native_interpret_int): Likewise.
17089 (fold_unary_loc): Likewise.
17090 (pointer_may_wrap_p): Likewise.
17091 (size_low_cst): Likewise.
17092 (mask_with_tz): Likewise.
17093 (fold_binary_loc): Likewise.
17094 (fold_ternary_loc): Likewise.
17095 (multiple_of_p): Likewise.
17096 (tree_call_nonnegative_warnv_p): Update calls to
17097 tree_int_cst_min_precision and real_from_integer.
17098 (fold_negate_const): Use wide-int interfaces.
17099 (fold_abs_const): Likewise.
17100 (fold_relational_const): Use tree_int_cst_lt.
17101 (round_up_loc): Use wide-int interfaces.
17102 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17103 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17104 * gengtype.c: Remove include of double-int.h.
17105 (do_typedef): Use wide-int interfaces.
17106 (open_base_files): Add wide-int.h.
17107 (main): Add offset_int and widest_int typedefs.
17108 * gengtype-lex.l: Handle "^".
17109 (CXX_KEYWORD): Add "static".
17110 * gengtype-parse.c (require3): New.
17111 (require_template_declaration): Handle constant template arguments
17112 and nested templates.
17113 * gengtype-state.c: Don't include "double-int.h".
17114 * genpreds.c (write_one_predicate_function): Update comment.
17115 (write_tm_constrs_h): Add check for hval and lval use in
17116 CONST_WIDE_INT.
17117 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17118 (add_to_sequence): Likewise.
17119 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17120 and const_double_operand.
17121 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17122 interfaces.
17123 * gimple-fold.c (get_base_constructor): Likewise.
17124 (fold_array_ctor_reference): Likewise.
17125 (fold_nonarray_ctor_reference): Likewise.
17126 (fold_const_aggregate_ref_1): Likewise.
17127 (gimple_val_nonnegative_real_p): Likewise.
17128 (gimple_fold_indirect_ref): Likewise.
17129 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17130 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17131 (struct slsr_cand_d): Change index to be widest_int.
17132 (struct incr_info_d): Change incr to be widest_int.
17133 (alloc_cand_and_find_basis): Use wide-int interfaces.
17134 (slsr_process_phi): Likewise.
17135 (backtrace_base_for_ref): Likewise. Return a widest_int.
17136 (restructure_reference): Take a widest_int instead of a double_int.
17137 (slsr_process_ref): Use wide-int interfaces.
17138 (create_mul_ssa_cand): Likewise.
17139 (create_mul_imm_cand): Likewise.
17140 (create_add_ssa_cand): Likewise.
17141 (create_add_imm_cand): Take a widest_int instead of a double_int.
17142 (slsr_process_add): Use wide-int interfaces.
17143 (slsr_process_cast): Likewise.
17144 (slsr_process_copy): Likewise.
17145 (dump_candidate): Likewise.
17146 (dump_incr_vec): Likewise.
17147 (replace_ref): Likewise.
17148 (cand_increment): Likewise. Return a widest_int.
17149 (cand_abs_increment): Likewise.
17150 (replace_mult_candidate): Take a widest_int instead of a double_int.
17151 (replace_unconditional_candidate): Use wide-int interfaces.
17152 (incr_vec_index): Take a widest_int instead of a double_int.
17153 (create_add_on_incoming_edge): Likewise.
17154 (create_phi_basis): Use wide-int interfaces.
17155 (replace_conditional_candidate): Likewise.
17156 (record_increment): Take a widest_int instead of a double_int.
17157 (record_phi_increments): Use wide-int interfaces.
17158 (phi_incr_cost): Take a widest_int instead of a double_int.
17159 (lowest_cost_path): Likewise.
17160 (total_savings): Likewise.
17161 (analyze_increments): Use wide-int interfaces.
17162 (ncd_with_phi): Take a widest_int instead of a double_int.
17163 (ncd_of_cand_and_phis): Likewise.
17164 (nearest_common_dominator_for_cands): Likewise.
17165 (insert_initializers): Use wide-int interfaces.
17166 (all_phi_incrs_profitable): Likewise.
17167 (replace_one_candidate): Likewise.
17168 (replace_profitable_candidates): Likewise.
17169 * godump.c: Include wide-int-print.h.
17170 (go_output_typedef): Use wide-int interfaces.
17171 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17172 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17173 (build_loop_iteration_domains): Likewise.
17174 * hooks.h: Include wide-int.h rather than double-int.h.
17175 (hook_bool_dint_dint_uint_bool_true): Delete.
17176 (hook_bool_wint_wint_uint_bool_true): Declare.
17177 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17178 (hook_bool_wint_wint_uint_bool_true): New.
17179 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17180 interfaces.
17181 (ubsan_expand_si_overflow_mul_check): Likewise.
17182 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17183 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17184 (get_ancestor_addr_info): Likewise.
17185 (ipa_modify_call_arguments): Likewise.
17186 * loop-doloop.c (doloop_modify): Likewise.
17187 (doloop_optimize): Likewise.
17188 * loop-iv.c (iv_number_of_iterations): Likewise.
17189 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17190 (unroll_loop_constant_iterations): Likewise.
17191 (decide_unroll_runtime_iterations): Likewise.
17192 (unroll_loop_runtime_iterations): Likewise.
17193 (decide_peel_simple): Likewise.
17194 (decide_unroll_stupid): Likewise.
17195 * lto-streamer-in.c (streamer_read_wi): Add.
17196 (input_cfg): Use wide-int interfaces.
17197 (lto_input_tree_1): Likewise.
17198 * lto-streamer-out.c (streamer_write_wi): Add.
17199 (hash_tree): Use wide-int interfaces.
17200 (output_cfg): Likewise.
17201 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17202 (GTFILES): Add wide-int.h and signop.h.
17203 (TAGS): Look for .cc files too.
17204 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17205 * optabs.c (expand_subword_shift): Likewise.
17206 (expand_doubleword_shift): Likewise.
17207 (expand_absneg_bit): Likewise.
17208 (expand_copysign_absneg): Likewise.
17209 (expand_copysign_bit): Likewise.
17210 * postreload.c (reload_cse_simplify_set): Likewise.
17211 * predict.c (predict_iv_comparison): Likewise.
17212 * pretty-print.h: Include wide-int-print.h.
17213 (pp_wide_int) New.
17214 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17215 * print-tree.c: Include wide-int-print.h.
17216 (print_node_brief): Use wide-int interfaces.
17217 (print_node): Likewise.
17218 * read-rtl.c (validate_const_wide_int): New.
17219 (read_rtx_code): Add CONST_WIDE_INT case.
17220 * real.c: Include wide-int.h.
17221 (real_to_integer2): Delete.
17222 (real_to_integer): New function, returning a wide_int.
17223 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17224 (ten_to_ptwo): Update call to real_from_integer.
17225 (real_digit): Likewise.
17226 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17227 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17228 (REAL_VALUE_TO_INT): Delete.
17229 (real_to_integer): Declare a wide-int form.
17230 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17231 * recog.c (const_int_operand): Improve comment.
17232 (const_scalar_int_operand): New.
17233 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17234 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17235 (split_double): Likewise.
17236 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17237 (rtx_size): Likewise.
17238 (rtx_alloc_stat_v): New.
17239 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17240 (cwi_output_hex): New.
17241 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17242 (cwi_check_failed_bounds): New.
17243 * rtl.def (CONST_WIDE_INT): New.
17244 * rtl.h: Include <utility> and wide-int.h.
17245 (struct hwivec_def): New.
17246 (CWI_GET_NUM_ELEM): New.
17247 (CWI_PUT_NUM_ELEM): New.
17248 (struct rtx_def): Add num_elem and hwiv.
17249 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17250 (CASE_CONST_UNIQUE): Likewise.
17251 (CASE_CONST_ANY): Likewise.
17252 (CONST_SCALAR_INT_P): Likewise.
17253 (CONST_WIDE_INT_P): New.
17254 (CWI_ELT): New.
17255 (HWIVEC_CHECK): New.
17256 (cwi_check_failed_bounds): New.
17257 (CWI_ELT): New.
17258 (HWIVEC_CHECK): New.
17259 (CONST_WIDE_INT_VEC) New.
17260 (CONST_WIDE_INT_NUNITS) New.
17261 (CONST_WIDE_INT_ELT) New.
17262 (rtx_mode_t): New type.
17263 (wi::int_traits <rtx_mode_t>): New.
17264 (wi::shwi): New.
17265 (wi::min_value): New.
17266 (wi::max_value): New.
17267 (rtx_alloc_v) New.
17268 (const_wide_int_alloc): New.
17269 (immed_wide_int_const): New.
17270 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17271 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17272 * signop.h: New file.
17273 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17274 (simplify_const_unary_operation): Use wide-int interfaces.
17275 (simplify_binary_operation_1): Likewise.
17276 (simplify_const_binary_operation): Likewise.
17277 (simplify_const_relational_operation): Likewise.
17278 (simplify_immed_subreg): Likewise.
17279 * stmt.c (expand_case): Likewise.
17280 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17281 signop rather than a bool.
17282 * stor-layout.c (layout_type): Use wide-int interfaces.
17283 (initialize_sizetypes): Update calls to
17284 set_min_and_max_values_for_integral_type.
17285 (set_min_and_max_values_for_integral_type): Take a signop rather
17286 than a bool. Use wide-int interfaces.
17287 (fixup_signed_type): Update accordingly. Remove
17288 HOST_BITS_PER_DOUBLE_INT limit.
17289 (fixup_unsigned_type): Likewise.
17290 * system.h (STATIC_CONSTANT_P): New.
17291 (STATIC_ASSERT): New.
17292 * target.def (can_use_doloop_p): Take widest_ints rather than
17293 double_ints.
17294 * target.h: Include wide-int.h rather than double-int.h.
17295 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17296 than double_ints.
17297 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17298 rather than INT_CST_LT_UNSIGNED.
17299 (can_use_doloop_if_innermost): Take widest_ints rather than
17300 double_ints.
17301 * tree-affine.c: Include wide-int-print.h.
17302 (double_int_ext_for_comb): Delete.
17303 (wide_int_ext_for_comb): New.
17304 (aff_combination_zero): Use wide-int interfaces.
17305 (aff_combination_const): Take a widest_int instead of a double_int.
17306 (aff_combination_elt): Use wide-int interfaces.
17307 (aff_combination_scale): Take a widest_int instead of a double_int.
17308 (aff_combination_add_elt): Likewise.
17309 (aff_combination_add_cst): Likewise.
17310 (aff_combination_add): Use wide-int interfaces.
17311 (aff_combination_convert): Likewise.
17312 (tree_to_aff_combination): Likewise.
17313 (add_elt_to_tree): Take a widest_int instead of a double_int.
17314 (aff_combination_to_tree): Use wide-int interfaces.
17315 (aff_combination_remove_elt): Likewise.
17316 (aff_combination_add_product): Take a widest_int instead of
17317 a double_int.
17318 (aff_combination_mult): Use wide-int interfaces.
17319 (aff_combination_expand): Likewise.
17320 (double_int_constant_multiple_p): Delete.
17321 (wide_int_constant_multiple_p): New.
17322 (aff_combination_constant_multiple_p): Take a widest_int pointer
17323 instead of a double_int pointer.
17324 (print_aff): Use wide-int interfaces.
17325 (get_inner_reference_aff): Take a widest_int pointer
17326 instead of a double_int pointer.
17327 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17328 * tree-affine.h: Include wide-int.h.
17329 (struct aff_comb_elt): Change type of coef to widest_int.
17330 (struct affine_tree_combination): Change type of offset to widest_int.
17331 (double_int_ext_for_comb): Delete.
17332 (wide_int_ext_for_comb): New.
17333 (aff_combination_const): Use widest_int instead of double_int.
17334 (aff_combination_scale): Likewise.
17335 (aff_combination_add_elt): Likewise.
17336 (aff_combination_constant_multiple_p): Likewise.
17337 (get_inner_reference_aff): Likewise.
17338 (aff_comb_cannot_overlap_p): Likewise.
17339 (aff_combination_zero_p): Use wide-int interfaces.
17340 * tree.c: Include tree.h.
17341 (init_ttree): Use make_int_cst.
17342 (tree_code_size): Removed code for INTEGER_CST case.
17343 (tree_size): Add INTEGER_CST case.
17344 (make_node_stat): Update comment.
17345 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17346 (build_int_cst_type): Use wide-int interfaces.
17347 (double_int_to_tree): Likewise.
17348 (double_int_fits_to_tree_p): Delete.
17349 (force_fit_type_double): Delete.
17350 (force_fit_type): New.
17351 (int_cst_hash_hash): Use wide-int interfaces.
17352 (int_cst_hash_eq): Likewise.
17353 (build_int_cst_wide): Delete.
17354 (wide_int_to_tree): New.
17355 (cache_integer_cst): Use wide-int interfaces.
17356 (build_low_bits_mask): Likewise.
17357 (cst_and_fits_in_hwi): Likewise.
17358 (real_value_from_int_cst): Likewise.
17359 (make_int_cst_stat): New.
17360 (integer_zerop): Use wide_int interfaces.
17361 (integer_onep): Likewise.
17362 (integer_all_onesp): Likewise.
17363 (integer_pow2p): Likewise.
17364 (integer_nonzerop): Likewise.
17365 (tree_log2): Likewise.
17366 (tree_floor_log2): Likewise.
17367 (tree_ctz): Likewise.
17368 (int_size_in_bytes): Likewise.
17369 (mem_ref_offset): Return an offset_int rather than a double_int.
17370 (build_type_attribute_qual_variant): Use wide_int interfaces.
17371 (type_hash_eq): Likewise
17372 (tree_int_cst_equal): Likewise.
17373 (tree_int_cst_lt): Delete.
17374 (tree_int_cst_compare): Likewise.
17375 (tree_fits_shwi_p): Use wide_int interfaces.
17376 (tree_fits_uhwi_p): Likewise.
17377 (tree_int_cst_sign_bit): Likewise.
17378 (tree_int_cst_sgn): Likewise.
17379 (tree_int_cst_min_precision): Take a signop rather than a bool.
17380 (simple_cst_equal): Use wide_int interfaces.
17381 (compare_tree_int): Likewise.
17382 (iterative_hash_expr): Likewise.
17383 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17384 INT_CST_LT.
17385 (get_type_static_bounds): Use wide_int interfaces.
17386 (tree_int_cst_elt_check_failed): New.
17387 (build_common_tree_nodes): Reordered to set prec before filling in
17388 value.
17389 (int_cst_value): Check cst_and_fits_in_hwi.
17390 (widest_int_cst_value): Use wide_int interfaces.
17391 (upper_bound_in_type): Likewise.
17392 (lower_bound_in_type): Likewise.
17393 (num_ending_zeros): Likewise.
17394 (drop_tree_overflow): Likewise.
17395 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17396 (gen_conditions_for_pow_cst_base): Likewise.
17397 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17398 (group_case_labels_stmt): Use wide-int interfaces.
17399 (verify_gimple_assign_binary): Likewise.
17400 (print_loop): Likewise.
17401 * tree-chrec.c (tree_fold_binomial): Likewise.
17402 * tree-core.h (struct tree_base): Add int_length.
17403 (struct tree_int_cst): Change rep of value.
17404 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17405 (dr_may_alias_p): Likewise.
17406 (max_stmt_executions_tree): Likewise.
17407 * tree.def (INTEGER_CST): Update comment.
17408 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17409 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17410 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17411 (dequeue_and_dump): Use wide-int interfaces.
17412 * tree.h: Include wide-int.h.
17413 (NULL_TREE): Moved to earlier loc in file.
17414 (TREE_INT_CST_ELT_CHECK): New.
17415 (tree_int_cst_elt_check_failed): New.
17416 (TYPE_SIGN): New.
17417 (TREE_INT_CST): Delete.
17418 (TREE_INT_CST_LOW): Use wide-int interfaces.
17419 (TREE_INT_CST_HIGH): Delete.
17420 (TREE_INT_CST_NUNITS): New.
17421 (TREE_INT_CST_EXT_NUNITS): Likewise.
17422 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17423 (TREE_INT_CST_ELT): Likewise.
17424 (INT_CST_LT): Delete.
17425 (tree_int_cst_elt_check): New (two forms).
17426 (type_code_size): Update comment.
17427 (make_int_cst_stat, make_int_cst): New.
17428 (tree_to_double_int): Delete.
17429 (double_int_fits_to_tree_p): Delete.
17430 (force_fit_type_double): Delete.
17431 (build_int_cstu): Replace with out-of-line function.
17432 (build_int_cst_wide): Delete.
17433 (tree_int_cst_lt): Define inline.
17434 (tree_int_cst_le): New.
17435 (tree_int_cst_compare): Define inline.
17436 (tree_int_cst_min_precision): Take a signop rather than a bool.
17437 (wi::int_traits <const_tree>): New.
17438 (wi::int_traits <tree>): New.
17439 (wi::extended_tree): New.
17440 (wi::int_traits <wi::extended_tree>): New.
17441 (wi::to_widest): New.
17442 (wi::to_offset): New.
17443 (wi::fits_to_tree_p): New.
17444 (wi::min_value): New.
17445 (wi::max_value): New.
17446 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17447 (copy_tree_body_r): Likewise.
17448 * tree-object-size.c (compute_object_offset): Likewise.
17449 (addr_object_size): Likewise.
17450 * tree-predcom.c: Include wide-int-print.h.
17451 (struct dref_d): Change type of offset to widest_int.
17452 (dump_dref): Call wide-int printer.
17453 (aff_combination_dr_offset): Use wide-int interfaces.
17454 (determine_offset): Take a widest_int pointer rather than a
17455 double_int pointer.
17456 (split_data_refs_to_components): Use wide-int interfaces.
17457 (suitable_component_p): Likewise.
17458 (order_drefs): Likewise.
17459 (add_ref_to_chain): Likewise.
17460 (valid_initializer_p): Likewise.
17461 (determine_roots_comp): Likewise.
17462 * tree-pretty-print.c: Include wide-int-print.h.
17463 (dump_generic_node): Use wide-int interfaces.
17464 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17465 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17466 (move_fixed_address_to_symbol): Likewise.
17467 (move_hint_to_base): Likewise.
17468 (move_pointer_to_base): Likewise.
17469 (move_variant_to_index): Likewise.
17470 (most_expensive_mult_to_index): Likewise.
17471 (addr_to_parts): Likewise.
17472 (copy_ref_info): Likewise.
17473 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17474 (indirect_refs_may_alias_p): Likewise.
17475 (stmt_kills_ref_p_1): Likewise.
17476 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17477 * tree-ssa-ccp.c: Update comment at top of file. Include
17478 wide-int-print.h.
17479 (struct prop_value_d): Change type of mask to widest_int.
17480 (extend_mask): New function.
17481 (dump_lattice_value): Use wide-int interfaces.
17482 (get_default_value): Likewise.
17483 (set_constant_value): Likewise.
17484 (set_value_varying): Likewise.
17485 (valid_lattice_transition): Likewise.
17486 (set_lattice_value): Likewise.
17487 (value_to_double_int): Delete.
17488 (value_to_wide_int): New.
17489 (get_value_from_alignment): Use wide-int interfaces.
17490 (get_value_for_expr): Likewise.
17491 (do_dbg_cnt): Likewise.
17492 (ccp_finalize): Likewise.
17493 (ccp_lattice_meet): Likewise.
17494 (bit_value_unop_1): Use widest_ints rather than double_ints.
17495 (bit_value_binop_1): Likewise.
17496 (bit_value_unop): Use wide-int interfaces.
17497 (bit_value_binop): Likewise.
17498 (bit_value_assume_aligned): Likewise.
17499 (evaluate_stmt): Likewise.
17500 (ccp_fold_stmt): Likewise.
17501 (visit_cond_stmt): Likewise.
17502 (ccp_visit_stmt): Likewise.
17503 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17504 (constant_pointer_difference): Likewise.
17505 (associate_pointerplus): Likewise.
17506 (combine_conversions): Likewise.
17507 * tree-ssa-loop.h: Include wide-int.h.
17508 (struct tree_niter_desc): Change type of max to widest_int.
17509 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17510 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17511 (remove_redundant_iv_tests): Likewise.
17512 (canonicalize_loop_induction_variables): Likewise.
17513 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17514 (constant_multiple_of): Take a widest_int pointer instead of
17515 a double_int pointer.
17516 (get_computation_aff): Use wide-int interfaces.
17517 (ptr_difference_cost): Likewise.
17518 (difference_cost): Likewise.
17519 (get_loop_invariant_expr_id): Likewise.
17520 (get_computation_cost_at): Likewise.
17521 (iv_elimination_compare_lt): Likewise.
17522 (may_eliminate_iv): Likewise.
17523 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17524 instead of double_int.
17525 (max_loop_iterations): Likewise.
17526 (max_stmt_executions): Likewise.
17527 (estimated_stmt_executions): Likewise.
17528 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17529 (split_to_var_and_offset): Use wide-int interfaces.
17530 (determine_value_range): Likewise.
17531 (bound_difference_of_offsetted_base): Likewise.
17532 (bounds_add): Take a widest_int instead of a double_int.
17533 (number_of_iterations_ne_max): Use wide-int interfaces.
17534 (number_of_iterations_ne): Likewise.
17535 (number_of_iterations_lt_to_ne): Likewise.
17536 (assert_loop_rolls_lt): Likewise.
17537 (number_of_iterations_lt): Likewise.
17538 (number_of_iterations_le): Likewise.
17539 (number_of_iterations_cond): Likewise.
17540 (number_of_iterations_exit): Likewise.
17541 (finite_loop_p): Likewise.
17542 (derive_constant_upper_bound_assign): Likewise.
17543 (derive_constant_upper_bound): Return a widest_int.
17544 (derive_constant_upper_bound_ops): Likewise.
17545 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17546 (record_estimate): Take a widest_int rather than a double_int.
17547 (record_nonwrapping_iv): Use wide-int interfaces.
17548 (double_int_cmp): Delete.
17549 (wide_int_cmp): New.
17550 (bound_index): Take a widest_int rather than a double_int.
17551 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17552 (maybe_lower_iteration_bound): Likewise.
17553 (estimate_numbers_of_iterations_loop): Likewise.
17554 (estimated_loop_iterations): Take a widest_int pointer than than
17555 a double_int pointer.
17556 (estimated_loop_iterations_int): Use wide-int interfaces.
17557 (max_loop_iterations): Take a widest_int pointer than than
17558 a double_int pointer.
17559 (max_loop_iterations_int): Use wide-int interfaces.
17560 (max_stmt_executions): Take a widest_int pointer than than
17561 a double_int pointer.
17562 (estimated_stmt_executions): Likewise.
17563 (n_of_executions_at_most): Use wide-int interfaces.
17564 (scev_probably_wraps_p): Likewise.
17565 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17566 to real_to_integer.
17567 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17568 interfaces.
17569 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17570 double_ints. Adjust for trailing_wide_ints <3> representation.
17571 (set_nonzero_bits): Likewise.
17572 (get_range_info): Return wide_ints rather than double_ints.
17573 Adjust for trailing_wide_ints <3> representation.
17574 (get_nonzero_bits): Likewise.
17575 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17576 representation.
17577 * tree-ssanames.h (struct range_info_def): Replace min, max and
17578 nonzero_bits with a trailing_wide_ints <3>.
17579 (set_range_info): Use wide_int_refs rather than double_ints.
17580 (set_nonzero_bits): Likewise.
17581 (get_range_info): Return wide_ints rather than double_ints.
17582 (get_nonzero_bits): Likewise.
17583 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17584 * tree-ssa-pre.c (phi_translate_1): Likewise.
17585 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17586 (acceptable_pow_call): Likewise.
17587 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17588 interfaces.
17589 (vn_reference_fold_indirect): Likewise.
17590 (vn_reference_maybe_forwprop_address): Likewise.
17591 (valueize_refs_1): Likewise.
17592 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17593 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17594 tree_int_cst_lt and tree_int_cst_le.
17595 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17596 interfaces.
17597 (streamer_alloc_tree): Likewise.
17598 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17599 (streamer_write_tree_header): Likewise.
17600 (streamer_write_integer_cst): Likewise.
17601 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17602 (build_constructors): Likewise.
17603 (array_value_type): Likewise.
17604 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17605 (vect_check_gather): Likewise.
17606 * tree-vect-generic.c (build_replicated_const): Likewise.
17607 (expand_vector_divmod): Likewise.
17608 * tree-vect-loop.c (vect_transform_loop): Likewise.
17609 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17610 (vect_do_peeling_for_alignment): Likewise.
17611 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17612 * tree-vrp.c: Include wide-int.h.
17613 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17614 (extract_range_from_assert): Use wide-int interfaces.
17615 (vrp_int_const_binop): Likewise.
17616 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17617 double_int pointers.
17618 (ranges_from_anti_range): Use wide-int interfaces.
17619 (quad_int_cmp): Delete.
17620 (quad_int_pair_sort): Likewise.
17621 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17622 (extract_range_from_unary_expr_1): Likewise.
17623 (adjust_range_with_scev): Likewise.
17624 (masked_increment): Take and return wide_ints rather than double_ints.
17625 (register_edge_assert_for_2): Use wide-int interfaces.
17626 (check_array_ref): Likewise.
17627 (search_for_addr_array): Likewise.
17628 (maybe_set_nonzero_bits): Likewise.
17629 (union_ranges): Pass an integer of the correct type instead of
17630 using integer_one_node.
17631 (intersect_ranges): Likewise.
17632 (simplify_truth_ops_using_ranges): Likewise.
17633 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17634 (range_fits_type_p): Likewise.
17635 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17636 a bool.
17637 (simplify_conversion_using_ranges): Use wide-int interfaces.
17638 (simplify_float_conversion_using_ranges): Likewise.
17639 (vrp_finalize): Likewise.
17640 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17641 (gimple_stringops_transform): Likewise.
17642 * varasm.c (decode_addr_const): Likewise.
17643 (const_hash_1): Likewise.
17644 (const_rtx_hash_1): Likewise
17645 (output_constant): Likewise.
17646 (array_size_for_constructor): Likewise.
17647 (output_constructor_regular_field): Likewise.
17648 (output_constructor_bitfield): Likewise.
17649 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17650 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17651 GENERATOR_FILEs.
17652 * gencheck.c: Define BITS_PER_UNIT.
17653 * wide-int.cc: New.
17654 * wide-int.h: New.
17655 * wide-int-print.cc: New.
17656 * wide-int-print.h: New.
17657
17658 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17659
17660 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17661
17662 2014-05-06 Richard Biener <rguenther@suse.de>
17663
17664 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17665 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17666 (TODO_verify_all): Adjust.
17667 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17668 TODO_verify_stmts and TODO_verify_rtl_sharing.
17669 * bb-reorder.c: Likewise.
17670 * cfgexpand.c: Likewise.
17671 * cprop.c: Likewise.
17672 * cse.c: Likewise.
17673 * function.c: Likewise.
17674 * fwprop.c: Likewise.
17675 * gcse.c: Likewise.
17676 * gimple-ssa-isolate-paths.c: Likewise.
17677 * gimple-ssa-strength-reduction.c: Likewise.
17678 * ipa-split.c: Likewise.
17679 * loop-init.c: Likewise.
17680 * loop-unroll.c: Likewise.
17681 * lower-subreg.c: Likewise.
17682 * modulo-sched.c: Likewise.
17683 * postreload-gcse.c: Likewise.
17684 * predict.c: Likewise.
17685 * recog.c: Likewise.
17686 * sched-rgn.c: Likewise.
17687 * store-motion.c: Likewise.
17688 * tracer.c: Likewise.
17689 * trans-mem.c: Likewise.
17690 * tree-call-cdce.c: Likewise.
17691 * tree-cfg.c: Likewise.
17692 * tree-cfgcleanup.c: Likewise.
17693 * tree-complex.c: Likewise.
17694 * tree-eh.c: Likewise.
17695 * tree-emutls.c: Likewise.
17696 * tree-if-conv.c: Likewise.
17697 * tree-into-ssa.c: Likewise.
17698 * tree-loop-distribution.c: Likewise.
17699 * tree-object-size.c: Likewise.
17700 * tree-parloops.c: Likewise.
17701 * tree-pass.h: Likewise.
17702 * tree-sra.c: Likewise.
17703 * tree-ssa-ccp.c: Likewise.
17704 * tree-ssa-copy.c: Likewise.
17705 * tree-ssa-copyrename.c: Likewise.
17706 * tree-ssa-dce.c: Likewise.
17707 * tree-ssa-dom.c: Likewise.
17708 * tree-ssa-dse.c: Likewise.
17709 * tree-ssa-forwprop.c: Likewise.
17710 * tree-ssa-ifcombine.c: Likewise.
17711 * tree-ssa-loop-ch.c: Likewise.
17712 * tree-ssa-loop-ivcanon.c: Likewise.
17713 * tree-ssa-loop.c: Likewise.
17714 * tree-ssa-math-opts.c: Likewise.
17715 * tree-ssa-phiopt.c: Likewise.
17716 * tree-ssa-phiprop.c: Likewise.
17717 * tree-ssa-pre.c: Likewise.
17718 * tree-ssa-reassoc.c: Likewise.
17719 * tree-ssa-sink.c: Likewise.
17720 * tree-ssa-strlen.c: Likewise.
17721 * tree-ssa-tail-merge.c: Likewise.
17722 * tree-ssa-uncprop.c: Likewise.
17723 * tree-switch-conversion.c: Likewise.
17724 * tree-tailcall.c: Likewise.
17725 * tree-vect-generic.c: Likewise.
17726 * tree-vectorizer.c: Likewise.
17727 * tree-vrp.c: Likewise.
17728 * tsan.c: Likewise.
17729 * var-tracking.c: Likewise.
17730 * bt-load.c: Likewise.
17731 * cfgcleanup.c: Likewise.
17732 * combine-stack-adj.c: Likewise.
17733 * combine.c: Likewise.
17734 * compare-elim.c: Likewise.
17735 * config/epiphany/resolve-sw-modes.c: Likewise.
17736 * config/i386/i386.c: Likewise.
17737 * config/mips/mips.c: Likewise.
17738 * config/s390/s390.c: Likewise.
17739 * config/sh/sh_treg_combine.cc: Likewise.
17740 * config/sparc/sparc.c: Likewise.
17741 * dce.c: Likewise.
17742 * dse.c: Likewise.
17743 * final.c: Likewise.
17744 * ifcvt.c: Likewise.
17745 * mode-switching.c: Likewise.
17746 * passes.c: Likewise.
17747 * postreload.c: Likewise.
17748 * ree.c: Likewise.
17749 * reg-stack.c: Likewise.
17750 * regcprop.c: Likewise.
17751 * regrename.c: Likewise.
17752 * web.c: Likewise.
17753
17754 2014-05-06 Richard Biener <rguenther@suse.de>
17755
17756 PR middle-end/61070
17757 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17758 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17759
17760 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17761
17762 PR ipa/60965
17763 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17764
17765 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17766 Tom de Vries <tom@codesourcery.com>
17767
17768 * target.def (call_fusage_contains_non_callee_clobbers): New
17769 DEFHOOKPOD.
17770 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17771 Hooks to @menu.
17772 (@node Miscellaneous Register Hooks): New node.
17773 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17774 * doc/tm.texi: Regenerate.
17775
17776 2014-05-05 Marek Polacek <polacek@redhat.com>
17777
17778 PR driver/61065
17779 * opts.c (common_handle_option): Call error_at instead of warning_at.
17780
17781 2014-05-05 Richard Biener <rguenther@suse.de>
17782
17783 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17784 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17785 under the TODO_verify_il umbrella.
17786
17787 2014-05-05 Richard Biener <rguenther@suse.de>
17788
17789 * passes.c (execute_function_todo): Move TODO_verify_flow under
17790 the TODO_verify_ul umbrella.
17791
17792 2014-05-05 Richard Biener <rguenther@suse.de>
17793
17794 PR middle-end/61010
17795 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17796 X & CST away from a CST that is the mask of a mode.
17797
17798 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17799
17800 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17801 int argument to enum machine_mode.
17802 (picochip_class_max_nregs): Ditto.
17803 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17804 (picochip_class_max_nregs): Ditto.
17805
17806 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17807
17808 * target.def: Add new target hook.
17809 * doc/tm.texi: Regenerate.
17810 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17811 * targhooks.c (default_keep_leaf_when_profiled): New function.
17812
17813 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17814 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17815
17816 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17817
17818 PR tree-optimization/60363
17819 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17820 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17821 (update_destination_phis): New parameter.
17822 (create_edge_and_update_destination_phis): Ditto.
17823 (ssa_fix_duplicate_block_edges): Pass new arguments.
17824 (thread_single_edge): Ditto.
17825
17826 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17827
17828 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17829 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17830 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17831 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17832 Use RS6000_BTM_HARD_FLOAT.
17833 (BU_MISC_2): Likewise.
17834 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17835 RS6000_BTM_HARD_FLOAT.
17836 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17837 is explicitly used.
17838 (rs6000_invalid_builtin): Add hard floating builtin support.
17839 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17840 hard float builtins.
17841 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17842
17843 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17844
17845 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17846 Add missing function* argument.
17847
17848 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17849
17850 * lra-constraints.c (valid_address_p): Move earlier in file.
17851 Add a constraint argument to the address_info version.
17852 (satisfies_memory_constraint_p): New function.
17853 (satisfies_address_constraint_p): Likewise.
17854 (process_alt_operands, curr_insn_transform): Use them.
17855 (process_address): Pass the constraint to valid_address_p when
17856 checking address operands.
17857
17858 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17859
17860 * config/mips/mips.c (mips_isa_rev): New variable.
17861 (mips_set_architecture): Set it.
17862 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17863 from mips_isa_rev.
17864 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17865 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17866 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17867 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17868 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17869 conditions in terms of mips_isa_rev.
17870 (mips_isa_rev): Declare.
17871
17872 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17873
17874 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17875 (prob_unlikely, prob_likely): Make variables const.
17876
17877 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17878
17879 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17880
17881 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17882
17883 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17884
17885 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17886
17887 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17888 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17889 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17890 functions.
17891 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17892 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17893 sh_pass_in_reg_p.
17894 Replace usage of ROUND_REG with sh_round_reg.
17895 Use CEIL instead of ROUND_ADVANCE.
17896
17897 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17898
17899 PR target/61026
17900 * config/sh/sh.c: Include stdlib headers before everything else.
17901
17902 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17903
17904 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17905 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17906 (gimplify_adjust_omp_clauses): Simd region is never
17907 directly nested in combined parallel. Instead, for linear
17908 with copyin/copyout, if in combined for simd loop, make decl
17909 firstprivate/lastprivate on OMP_FOR.
17910 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17911 expand_omp_for_static_chunk): When setting endvar, also set
17912 fd->loop.v to the same value.
17913
17914 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17915
17916 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17917
17918 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17919
17920 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17921 expression.
17922
17923 2014-05-02 Marek Polacek <polacek@redhat.com>
17924
17925 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17926
17927 2014-05-02 Kito Cheng <kito@0xlab.org>
17928
17929 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17930 to a C expression marco.
17931 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17932 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17933 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17934 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17935 HONOR_REG_ALLOC_ORDER.
17936 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17937
17938 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17939
17940 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17941
17942 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17943
17944 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17945
17946 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17947
17948 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17949 (convert_scalar_cond_reduction): Likewise.
17950 (predicate_scalar_phi): Add recognition and transformation
17951 of simple conditioanl reduction to be vectorizable.
17952
17953 2014-05-01 Marek Polacek <polacek@redhat.com>
17954
17955 PR c/43245
17956 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17957
17958 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17959
17960 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17961 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17962 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17963 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17964 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17965 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17966 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17967 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17968
17969 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17970
17971 * config/arc/arc.opt (mlra): Move comment above option name
17972 to avoid mis-parsing as language options.
17973
17974 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17975
17976 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17977 * config/sol2.h: ... here.
17978 * config/sol2-10.h: Remove.
17979
17980 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17981 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17982 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17983 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17984 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17985 * config/sol2.h: ... here.
17986 (SECTION_NAME_FORMAT): Don't redefine.
17987 (STARTFILE_ARCH32_SPEC): Rename to ...
17988 (STARTFILE_ARCH_SPEC): ... this.
17989 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17990 * config/sparc/sol2.h: ... here.
17991 (SECTION_NAME_FORMAT): Don't undef.
17992 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17993 (SUBTARGET_EXTRA_SPECS): Remove.
17994 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17995
17996 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17997 (MD_STARTFILE_PREFIX): Remove.
17998 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17999 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18000 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18001 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18002 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18003 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18004 * config/i386/sol2.h: ... here.
18005 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18006 * config/i386/sol2-bi.h: Remove.
18007 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18008 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18009
18010 * config/i386/t-sol2-64: Rename to ...
18011 * config/i386/t-sol2: ... this.
18012 * config/sparc/t-sol2-64: Rename to ...
18013 * config/sparc/t-sol2: ... this.
18014
18015 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18016 sol2_tm_file_head, sol2_tm_file_tail.
18017 Include ${cpu_type}/sol2.h before sol2.h.
18018 Remove sol2-10.h.
18019 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18020 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18021 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18022 Reflect i386/t-sol2-64 renaming.
18023 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18024 Reflect sparc/t-sol2-64 renaming.
18025
18026 2014-04-30 Richard Biener <rguenther@suse.de>
18027
18028 * passes.c (execute_function_todo): Move TODO_verify_stmts
18029 and TODO_verify_ssa under the TODO_verify_il umbrella.
18030 * tree-ssa.h (verify_ssa): Adjust prototype.
18031 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18032 we should verify SSA operands.
18033 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18034 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18035 whether we should verify whether not throwing stmts have EH info.
18036 * graphite-scop-detection.c (create_sese_edges): Adjust.
18037 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18038 * tree-eh.c (lower_try_finally_switch): Do not add the
18039 default case label twice.
18040
18041 2014-04-30 Marek Polacek <polacek@redhat.com>
18042
18043 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18044 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18045 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18046 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18047
18048 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18049
18050 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18051 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18052 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18053 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18054 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18055 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18056 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18057 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18058
18059 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18060
18061 * tree-cfg.c (dump_function_to_file): Dump the return type of
18062 functions, in a line to itself before the function body, mimicking
18063 the layout of a C function.
18064
18065 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18066
18067 PR tree-optimization/60971
18068 * tree-tailcall.c (process_assignment): Reject conversions which
18069 reduce precision.
18070
18071 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18072
18073 * calls.c (initialize_argument_information): Always treat
18074 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18075 (expand_call): Likewise.
18076 (emit_library_call_calue_1): Likewise.
18077 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18078 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18079 code accordingly.
18080
18081 2014-04-29 Nick Clifton <nickc@redhat.com>
18082
18083 * config/msp430/msp430.md (umulsidi): Fix typo.
18084 (mulhisi3): Enable even inside interrupt handlers.
18085 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18086 bigger return address pushed in large mode.
18087
18088 2014-04-29 Nick Clifton <nickc@redhat.com>
18089
18090 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18091 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18092 available modes.
18093 * config/m32r/m32r.c (init_reg_tables): Likewise.
18094 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18095 enum to hold the modes.
18096
18097 2014-04-29 Richard Biener <rguenther@suse.de>
18098
18099 * dominance.c (free_dominance_info): Add overload with
18100 function parameter.
18101 (dom_info_state): Likewise.
18102 (dom_info_available_p): Likewise.
18103 * basic-block.h (free_dominance_info, dom_info_state,
18104 dom_info_available_p): Declare overloads.
18105 * passes.c (execute_function_todo): Verify that verifiers
18106 don't change dominator info state. Drop dominator info
18107 for IPA pass invocations.
18108 * cgraph.c (release_function_body): Restore asserts that
18109 dominator information is released.
18110
18111 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18112
18113 * doc/invoke.texi: Fix typo.
18114 * tree-vrp.c: Fix typos.
18115 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18116
18117 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18118
18119 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18120
18121 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18122
18123 * config/aarch64/aarch64-builtins.c
18124 (aarch64_types_storestruct_lane_qualifiers): New.
18125 (TYPES_STORESTRUCT_LANE): Likewise.
18126 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18127 (st3_lane): Likewise.
18128 (st4_lane): Likewise.
18129 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18130 (vec_store_lanesci_lane<mode>): Likewise.
18131 (vec_store_lanesxi_lane<mode>): Likewise.
18132 (aarch64_st2_lane<VQ:mode>): Likewise.
18133 (aarch64_st3_lane<VQ:mode>): Likewise.
18134 (aarch64_st4_lane<VQ:mode>): Likewise.
18135 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18136 * config/aarch64/arm_neon.h
18137 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18138 use new macro arguments.
18139 (__ST3_LANE_FUNC): Likewise.
18140 (__ST4_LANE_FUNC): Likewise.
18141 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18142 (V_THREE_ELEM): Likewise.
18143 (V_FOUR_ELEM): Likewise.
18144
18145 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18146
18147 * doc/gimple.texi: Replace the description of the now-defunct
18148 union gimple_statement_d with a diagram showing the
18149 gimple_statement_base class hierarchy and its relationships to
18150 the GSS_ and GIMPLE_ enums.
18151
18152 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18153
18154 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18155 * config/aarch64/aarch64.c
18156 (aarch64_cannot_change_mode_class): Weaken conditions.
18157 (aarch64_modes_tieable_p): New.
18158 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18159
18160 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18161
18162 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18163 (loadsync_<mode>): Change mode.
18164 (load_quadpti, store_quadpti): New.
18165 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18166 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18167
18168 2014-04-28 Martin Jambor <mjambor@suse.cz>
18169
18170 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18171 same alias type as the original statement.
18172 (subreplacement_assignment_data): New type.
18173 (handle_unscalarized_data_in_subtree): New type of parameter,
18174 generate new memory accesses with same alias type as the original
18175 statement.
18176 (load_assign_lhs_subreplacements): Likewise.
18177 (sra_modify_constructor_assign): Generate new memory accesses with
18178 same alias type as the original statement.
18179
18180 2014-04-28 Richard Biener <rguenther@suse.de>
18181
18182 * tree-pass.h (TODO_verify_il): Define.
18183 (TODO_verify_all): Complete properly.
18184 * passes.c (execute_function_todo): Move existing loop-closed
18185 SSA verification under TODO_verify_il.
18186 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18187 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18188 Fix tree sharing issue.
18189
18190 2014-04-28 Richard Biener <rguenther@suse.de>
18191
18192 PR middle-end/60092
18193 * builtins.def (DEF_C11_BUILTIN): Add.
18194 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18195 * coretypes.h (enum function_class): Add function_c11_misc.
18196 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18197 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18198 (call_may_clobber_ref_p_1): Likewise.
18199 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18200 (mark_all_reaching_defs_necessary_1): Likewise.
18201 (propagate_necessity): Likewise.
18202 (eliminate_unnecessary_stmts): Likewise.
18203 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18204
18205 2014-04-28 Richard Biener <rguenther@suse.de>
18206
18207 * tree-vrp.c (vrp_var_may_overflow): Remove.
18208 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18209 with overflow immediately bump to one before that value and
18210 let iteration figure out overflow status.
18211
18212 2014-04-28 Richard Biener <rguenther@suse.de>
18213
18214 * configure.ac: Do valgrind header checks unconditionally.
18215 Add --enable-valgrind-annotations.
18216 * system.h: Guard valgrind header inclusion with
18217 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18218 * alloc-pool.c (pool_alloc, pool_free): Use
18219 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18220 to guard possibly dead code.
18221 * config.in: Regenerated.
18222 * configure: Likewise.
18223
18224 2014-04-28 Jeff Law <law@redhat.com>
18225
18226 PR tree-optimization/60902
18227 * tree-ssa-threadedge.c
18228 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18229 over real defs when invalidating outputs from statements that do not
18230 produce useful outputs for threading.
18231
18232 2014-04-28 Richard Biener <rguenther@suse.de>
18233
18234 PR tree-optimization/60979
18235 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18236 SCOPs that end in a block with a successor with abnormal
18237 predecessors.
18238
18239 2014-04-28 Richard Biener <rguenther@suse.de>
18240
18241 * tree-pass.h (execute_pass_list): Adjust prototype.
18242 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18243 (do_per_function): Change callback signature, push all actual
18244 work to the callbals.
18245 (do_per_function_toporder): Likewise.
18246 (execute_function_dump): Adjust.
18247 (execute_function_todo): Likewise.
18248 (clear_last_verified): Likewise.
18249 (verify_curr_properties): Likewise.
18250 (update_properties_after_pass): Likewise.
18251 (execute_pass_list_1): Split out from ...
18252 (execute_pass_list): ... here. Adjust.
18253 (execute_ipa_pass_list): Likewise.
18254 * cgraphunit.c (cgraph_add_new_function): Adjust.
18255 (analyze_function): Likewise.
18256 (expand_function): Likewise.
18257 * cgraph.c (release_function_body): Free dominance info
18258 here instead of asserting it was magically freed elsewhere.
18259
18260 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18261
18262 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18263 * configure: Regenerate.
18264 * config/sparc/sparc.opt (muser-mode): New option.
18265 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18266 for LEON3.
18267 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18268 * doc/invoke.texi (SPARC options): Document -muser-mode.
18269
18270 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18271
18272 * cselib.c (find_slot_memmode): Delete.
18273 (cselib_hasher): Change compare_type to a struct.
18274 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18275 constants.
18276 (preserve_constants_and_equivs): Adjust for new compare_type.
18277 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18278 (wrap_constant): Delete.
18279 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18280
18281 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18282
18283 * doc/install.texi (Building with profile feedback): Remove
18284 outdated sentence.
18285
18286 2014-04-26 Tom de Vries <tom@codesourcery.com>
18287
18288 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18289 array accesses.
18290
18291 2014-04-25 Cary Coutant <ccoutant@google.com>
18292
18293 PR debug/60929
18294 * dwarf2out.c (should_move_die_to_comdat): A type definition
18295 can contain a subprogram definition, but don't move it to a
18296 comdat unit.
18297 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18298 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18299 from original DIE.
18300 (clone_tree_hash): Rename to...
18301 (clone_tree_partial): ...this; change callers. Copy
18302 DW_TAG_subprogram DIEs as declarations.
18303 (copy_decls_walk): Don't copy children of a declaration into a
18304 type unit.
18305
18306 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18307
18308 PR target/60969
18309 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18310 alternative 12.
18311
18312 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18313
18314 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18315 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18316 reg for long_call.
18317 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18318 restriction.
18319
18320 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18321
18322 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18323
18324 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18325
18326 PR tree-optimization/60930
18327 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18328 creating a multiply candidate by folding two constant
18329 multiplicands when the result overflows.
18330
18331 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18332
18333 PR tree-optimization/60960
18334 * tree-vect-generic.c (expand_vector_operation): Only call
18335 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18336
18337 2014-04-25 Tom de Vries <tom@codesourcery.com>
18338
18339 * expr.c (clobber_reg_mode): New function.
18340 * expr.h (clobber_reg): New function.
18341
18342 2014-04-25 Tom de Vries <tom@codesourcery.com>
18343
18344 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18345 clobbers.
18346
18347 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18348 Tom de Vries <tom@codesourcery.com>
18349
18350 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18351 handle.
18352 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18353 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18354 new argument to find_all_hard_reg_sets call.
18355
18356 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18357
18358 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18359 Use HOST_WIDE_INT_C for mask literal.
18360 (aarch_rev16_shleft_mask_imm_p): Likewise.
18361
18362 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18363
18364 PR target/60941
18365 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18366
18367 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18368
18369 PR preprocessor/56540
18370 * config/i386/i386-c.c (ix86_target_macros): Define
18371 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18372
18373 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18374
18375 * configure.ac (tga_func): Remove.
18376 (LIB_TLS_SPEC): Remove.
18377 * configure: Regenerate.
18378 * config.in: Regenerate.
18379 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18380
18381 2014-04-25 Richard Biener <rguenther@suse.de>
18382
18383 PR ipa/60912
18384 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18385 call stmt use/clobber sets during stmt walk instead of
18386 walking the possibly incomplete set of caller edges.
18387
18388 2014-04-25 Richard Biener <rguenther@suse.de>
18389
18390 PR ipa/60911
18391 * passes.c (apply_ipa_transforms): Inline into only caller ...
18392 (execute_one_pass): ... here. Properly bring in function
18393 bodies for nodes we want to apply IPA transforms to.
18394
18395 2014-04-24 Cong Hou <congh@google.com>
18396
18397 PR tree-optimization/60896
18398 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18399 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18400 (vect_mark_pattern_stmts): Set the def type of all statements in
18401 PATTERN_DEF_SEQ as vect_internal_def.
18402
18403 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18404
18405 * doc/extend.texi (PowerPC Built-in Functions): Document new
18406 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18407 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18408
18409 * config/rs6000/predicates.md (const_0_to_3_operand): New
18410 predicate to match 0..3 integer constants.
18411
18412 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18413 to support adding miscellaneous builtin functions.
18414 (BU_DFP_MISC_2): Likewise.
18415 (BU_P7_MISC_1): Likewise.
18416 (BU_P7_MISC_2): Likewise.
18417 (BU_P8V_MISC_3): Likewise.
18418 (BU_MISC_1): Likewise.
18419 (BU_MISC_2): Likewise.
18420 (DIVWE): Add extended divide builtin functions.
18421 (DIVWEO): Likewise.
18422 (DIVWEU): Likewise.
18423 (DIVWEUO): Likewise.
18424 (DIVDE): Likewise.
18425 (DIVDEO): Likewise.
18426 (DIVDEU): Likewise.
18427 (DIVDEUO): Likewise.
18428 (DXEX): Add decimal floating-point builtin functions.
18429 (DXEXQ): Likewise.
18430 (DDEDPD): Likewise.
18431 (DDEDPDQ): Likewise.
18432 (DENBCD): Likewise.
18433 (DENBCDQ): Likewise.
18434 (DIEX): Likewise.
18435 (DIEXQ): Likewise.
18436 (DSCLI): Likewise.
18437 (DSCLIQ): Likewise.
18438 (DSCRI): Likewise.
18439 (DSCRIQ): Likewise.
18440 (CDTBCD): Add new BCD builtin functions.
18441 (CBCDTD): Likewise.
18442 (ADDG6S): Likewise.
18443 (BCDADD): Likewise.
18444 (BCDADD_LT): Likewise.
18445 (BCDADD_EQ): Likewise.
18446 (BCDADD_GT): Likewise.
18447 (BCDADD_OV): Likewise.
18448 (BCDSUB): Likewise.
18449 (BCDSUB_LT): Likewise.
18450 (BCDSUB_EQ): Likewise.
18451 (BCDSUB_GT): Likewise.
18452 (BCDSUB_OV): Likewise.
18453 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18454 (UNPACK_TD): Likewise.
18455 (PACK_TF): Likewise.
18456 (UNPACK_TF): Likewise.
18457 (UNPACK_TF_0): Likewise.
18458 (UNPACK_TF_1): Likewise.
18459 (PACK_V1TI): Likewise.
18460 (UNPACK_V1TI): Likewise.
18461
18462 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18463 support for decimal floating point builtin functions.
18464 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18465 functions that take constant arguments.
18466 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18467 (rs6000_init_builtins): Setup long double, _Decimal64, and
18468 _Decimal128 types for new builtin functions.
18469 (builtin_function_type): Set the unsigned flags appropriately for
18470 the new builtin functions.
18471 (rs6000_opt_masks): Add support for decimal floating point builtin
18472 functions.
18473
18474 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18475 floating point builtin functions.
18476 (RS6000_BTM_COMMON): Likewise.
18477 (RS6000_BTI_long_double): Likewise.
18478 (RS6000_BTI_dfloat64): Likewise.
18479 (RS6000_BTI_dfloat128): Likewise.
18480 (long_double_type_internal_node): Likewise.
18481 (dfloat64_type_internal_node): Likewise.
18482 (dfloat128_type_internal_node): Likewise.
18483
18484 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18485 2.07 bcd arithmetic instructions.
18486 (UNSPEC_BCDSUB): Likewise.
18487 (UNSPEC_BCD_OVERFLOW): Likewise.
18488 (UNSPEC_BCD_ADD_SUB): Likewise.
18489 (bcd_add_sub): Likewise.
18490 (BCD_TEST): Likewise.
18491 (bcd<bcd_add_sub>): Likewise.
18492 (bcd<bcd_add_sub>_test): Likewise.
18493 (bcd<bcd_add_sub>_test2): Likewise.
18494 (bcd<bcd_add_sub>_<code>): Likewise.
18495 (peephole2 for combined bcd ops): Likewise.
18496
18497 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18498 decimal floating point builtin functions.
18499 (UNSPEC_DENBCD): Likewise.
18500 (UNSPEC_DXEX): Likewise.
18501 (UNSPEC_DIEX): Likewise.
18502 (UNSPEC_DSCLI): Likewise.
18503 (UNSPEC_DSCRI): Likewise.
18504 (D64_D128): Likewise.
18505 (dfp_suffix): Likewise.
18506 (dfp_ddedpd_<mode>): Likewise.
18507 (dfp_denbcd_<mode>): Likewise.
18508 (dfp_dxex_<mode>): Likewise.
18509 (dfp_diex_<mode>): Likewise.
18510 (dfp_dscli_<mode>): Likewise.
18511 (dfp_dscri_<mode>): Likewise.
18512
18513 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18514 builtin functions.
18515 (UNSPEC_CDTBCD): Likewise.
18516 (UNSPEC_CBCDTD): Likewise.
18517 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18518 (UNSPEC_DIVEO): Likewise.
18519 (UNSPEC_DIVEU): Likewise.
18520 (UNSPEC_DIVEUO): Likewise.
18521 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18522 pack/unpack 128-bit types.
18523 (UNSPEC_PACK_128BIT): Likewise.
18524 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18525 (udiv<mode>3): Use idiv_ldiv mode attribute.
18526 (div<mode>3): Likewise.
18527 (addg6s): Add new BCD builtin functions.
18528 (cdtbcd): Likewise.
18529 (cbcdtd): Likewise.
18530 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18531 (div_extend): Likewise.
18532 (div<div_extend>_<mode>"): Likewise.
18533 (FP128_64): Add support for new builtin functions to pack/unpack
18534 128-bit types.
18535 (unpack<mode>): Likewise.
18536 (unpacktf_0): Likewise.
18537 (unpacktf_1): Likewise.
18538 (unpack<mode>_dm): Likewise.
18539 (unpack<mode>_nodm): Likewise.
18540 (pack<mode>): Likewise.
18541 (unpackv1ti): Likewise.
18542 (packv1ti): Likewise.
18543
18544 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18545
18546 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18547 is disabled.
18548
18549 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18550
18551 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18552 * gimplify.c (omp_is_private): Change last argument's type to int.
18553 Only diagnose lastprivate if the simd argument is 1, only diagnose
18554 linear if the simd argument is 2.
18555 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18556 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18557 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18558 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18559 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18560 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18561 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18562 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18563 * tree-nested.c (convert_nonlocal_omp_clauses,
18564 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18565
18566 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18567
18568 PR target/60822
18569 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18570 operand 1.
18571
18572 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18573
18574 * flag-types.h (enum ivar_visibility): Add.
18575
18576 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18577
18578 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18579 function * argument.
18580
18581 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18582
18583 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18584
18585 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18586 Tom de Vries <tom@codesourcery.com>
18587
18588 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18589 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18590 reg-note.
18591 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18592 * emit-rtl.c (try_split): Same.
18593
18594 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18595 Tom de Vries <tom@codesourcery.com>
18596
18597 * common.opt (fuse-caller-save): New option.
18598
18599 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18600
18601 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18602 elements for big-endian.
18603
18604 2014-04-24 Richard Biener <rguenther@suse.de>
18605
18606 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18607 during TER and instead use the sepops interface for expanding
18608 non-GIMPLE_SINGLE_RHS.
18609
18610 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18611
18612 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18613 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18614
18615 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18616
18617 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18618 assembler 64-bit option.
18619 * configure: Regenerate.
18620
18621 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18622
18623 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18624 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18625 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18626 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18627 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18628
18629 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18630
18631 * config/aarch64/aarch64-builtins.c
18632 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18633 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18634 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18635 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18636 builtins.
18637 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18638 (Vrevsuff): New mode attribute.
18639
18640 2014-04-24 Terry Guo <terry.guo@arm.com>
18641
18642 * config/arm/arm.h (machine_function): Define variable
18643 after_arm_reorg here.
18644 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18645 (arm_split_constant): Update the way to access variable
18646 after_arm_reorg.
18647 (arm_reorg): Ditto.
18648 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18649
18650 2014-04-23 Tom de Vries <tom@codesourcery.com>
18651
18652 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18653
18654 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18655
18656 * is-a.h: Update comments to reflect the following changes to the
18657 "pointerness" of the API, making the template parameter match the
18658 return type, allowing use of is-a.h with typedefs of pointers.
18659 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18660 that the return type matches the parameter to the is_a_helper.
18661 (as_a): Likewise.
18662 (dyn_cast): Likewise.
18663
18664 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18665 pointer from the is-a.h API.
18666
18667 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18668 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18669 is-a.h API.
18670 (is_a_helper <varpool_node>::test): Likewise, convert to...
18671 (is_a_helper <varpool_node *>::test): ...this.
18672
18673 (varpool_first_variable): Update for removal of implicit pointer
18674 from the is-a.h API.
18675 (varpool_next_variable): Likewise.
18676 (varpool_first_static_initializer): Likewise.
18677 (varpool_next_static_initializer): Likewise.
18678 (varpool_first_defined_variable): Likewise.
18679 (varpool_next_defined_variable): Likewise.
18680 (cgraph_first_defined_function): Likewise.
18681 (cgraph_next_defined_function): Likewise.
18682 (cgraph_first_function): Likewise.
18683 (cgraph_next_function): Likewise.
18684 (cgraph_first_function_with_gimple_body): Likewise.
18685 (cgraph_next_function_with_gimple_body): Likewise.
18686 (cgraph_alias_target): Likewise.
18687 (varpool_alias_target): Likewise.
18688 (cgraph_function_or_thunk_node): Likewise.
18689 (varpool_variable_node): Likewise.
18690 (symtab_real_symbol_p): Likewise.
18691 * cgraphunit.c (referred_to_p): Likewise.
18692 (analyze_functions): Likewise.
18693 (handle_alias_pairs): Likewise.
18694 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18695 * gimple-ssa.h (gimple_vuse_op): Likewise.
18696 (gimple_vdef_op): Likewise.
18697 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18698 * gimple.c (gimple_build_asm_1): Likewise.
18699 (gimple_build_try): Likewise.
18700 (gimple_build_resx): Likewise.
18701 (gimple_build_eh_dispatch): Likewise.
18702 (gimple_build_omp_for): Likewise.
18703 (gimple_omp_for_set_clauses): Likewise.
18704
18705 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18706 (is_a_helper <gimple_statement_asm *>::test): ...this.
18707 (is_a_helper <gimple_statement_bind>::test): Convert to...
18708 (is_a_helper <gimple_statement_bind *>::test): ...this.
18709 (is_a_helper <gimple_statement_call>::test): Convert to...
18710 (is_a_helper <gimple_statement_call *>::test): ...this.
18711 (is_a_helper <gimple_statement_catch>::test): Convert to...
18712 (is_a_helper <gimple_statement_catch *>::test): ...this.
18713 (is_a_helper <gimple_statement_resx>::test): Convert to...
18714 (is_a_helper <gimple_statement_resx *>::test): ...this.
18715 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18716 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18717 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18718 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18719 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18720 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18721 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18722 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18723 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18724 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18725 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18726 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18727 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18728 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18729 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18730 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18731 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18732 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18733 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18734 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18735 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18736 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18737 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18738 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18739 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18740 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18741 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18742 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18743 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18744 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18745 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18746 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18747 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18748 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18749 (is_a_helper <gimple_statement_phi>::test): Convert to...
18750 (is_a_helper <gimple_statement_phi *>::test): ...this.
18751 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18752 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18753 (is_a_helper <gimple_statement_try>::test): Convert to...
18754 (is_a_helper <gimple_statement_try *>::test): ...this.
18755 (is_a_helper <gimple_statement_wce>::test): Convert to...
18756 (is_a_helper <gimple_statement_wce *>::test): ...this.
18757 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18758 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18759 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18760 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18761 (is_a_helper <const gimple_statement_call>::test): Convert to...
18762 (is_a_helper <const gimple_statement_call *>::test): ...this.
18763 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18764 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18765 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18766 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18767 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18768 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18769 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18770 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18771 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18772 Convert to...
18773 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18774 ...this.
18775 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18776 Convert to...
18777 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18778 ...this.
18779 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18780 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18781 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18782 to...
18783 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18784 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18785 to...
18786 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18787 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18788 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18789 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18790 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18791 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18792 to...
18793 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18794 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18795 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18796 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18797 to...
18798 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18799 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18800 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18801 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18802 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18803 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18804 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18805 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18806 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18807 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18808 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18809 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18810 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18811 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18812 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18813 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18814 to...
18815 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18816 ...this.
18817 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18818 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18819
18820 (gimple_use_ops): Update for removal of implicit pointer from the
18821 is-a.h API.
18822 (gimple_set_use_ops): Likewise.
18823 (gimple_vuse): Likewise.
18824 (gimple_vdef): Likewise.
18825 (gimple_vuse_ptr): Likewise.
18826 (gimple_vdef_ptr): Likewise.
18827 (gimple_set_vuse): Likewise.
18828 (gimple_set_vdef): Likewise.
18829 (gimple_omp_return_set_lhs): Likewise.
18830 (gimple_omp_return_lhs): Likewise.
18831 (gimple_omp_return_lhs_ptr): Likewise.
18832 (gimple_call_fntype): Likewise.
18833 (gimple_call_set_fntype): Likewise.
18834 (gimple_call_set_internal_fn): Likewise.
18835 (gimple_call_use_set): Likewise.
18836 (gimple_call_clobber_set): Likewise.
18837 (gimple_bind_vars): Likewise.
18838 (gimple_bind_set_vars): Likewise.
18839 (gimple_bind_body_ptr): Likewise.
18840 (gimple_bind_set_body): Likewise.
18841 (gimple_bind_add_stmt): Likewise.
18842 (gimple_bind_block): Likewise.
18843 (gimple_bind_set_block): Likewise.
18844 (gimple_asm_ninputs): Likewise.
18845 (gimple_asm_noutputs): Likewise.
18846 (gimple_asm_nclobbers): Likewise.
18847 (gimple_asm_nlabels): Likewise.
18848 (gimple_asm_input_op): Likewise.
18849 (gimple_asm_input_op_ptr): Likewise.
18850 (gimple_asm_output_op): Likewise.
18851 (gimple_asm_output_op_ptr): Likewise.
18852 (gimple_asm_set_output_op): Likewise.
18853 (gimple_asm_clobber_op): Likewise.
18854 (gimple_asm_set_clobber_op): Likewise.
18855 (gimple_asm_label_op): Likewise.
18856 (gimple_asm_set_label_op): Likewise.
18857 (gimple_asm_string): Likewise.
18858 (gimple_catch_types): Likewise.
18859 (gimple_catch_types_ptr): Likewise.
18860 (gimple_catch_handler_ptr): Likewise.
18861 (gimple_catch_set_types): Likewise.
18862 (gimple_catch_set_handler): Likewise.
18863 (gimple_eh_filter_types): Likewise.
18864 (gimple_eh_filter_types_ptr): Likewise.
18865 (gimple_eh_filter_failure_ptr): Likewise.
18866 (gimple_eh_filter_set_types): Likewise.
18867 (gimple_eh_filter_set_failure): Likewise.
18868 (gimple_eh_must_not_throw_fndecl): Likewise.
18869 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18870 (gimple_eh_else_n_body_ptr): Likewise.
18871 (gimple_eh_else_e_body_ptr): Likewise.
18872 (gimple_eh_else_set_n_body): Likewise.
18873 (gimple_eh_else_set_e_body): Likewise.
18874 (gimple_try_eval_ptr): Likewise.
18875 (gimple_try_cleanup_ptr): Likewise.
18876 (gimple_try_set_eval): Likewise.
18877 (gimple_try_set_cleanup): Likewise.
18878 (gimple_wce_cleanup_ptr): Likewise.
18879 (gimple_wce_set_cleanup): Likewise.
18880 (gimple_phi_capacity): Likewise.
18881 (gimple_phi_num_args): Likewise.
18882 (gimple_phi_result): Likewise.
18883 (gimple_phi_result_ptr): Likewise.
18884 (gimple_phi_set_result): Likewise.
18885 (gimple_phi_arg): Likewise.
18886 (gimple_phi_set_arg): Likewise.
18887 (gimple_resx_region): Likewise.
18888 (gimple_resx_set_region): Likewise.
18889 (gimple_eh_dispatch_region): Likewise.
18890 (gimple_eh_dispatch_set_region): Likewise.
18891 (gimple_omp_critical_name): Likewise.
18892 (gimple_omp_critical_name_ptr): Likewise.
18893 (gimple_omp_critical_set_name): Likewise.
18894 (gimple_omp_for_clauses): Likewise.
18895 (gimple_omp_for_clauses_ptr): Likewise.
18896 (gimple_omp_for_set_clauses): Likewise.
18897 (gimple_omp_for_collapse): Likewise.
18898 (gimple_omp_for_index): Likewise.
18899 (gimple_omp_for_index_ptr): Likewise.
18900 (gimple_omp_for_set_index): Likewise.
18901 (gimple_omp_for_initial): Likewise.
18902 (gimple_omp_for_initial_ptr): Likewise.
18903 (gimple_omp_for_set_initial): Likewise.
18904 (gimple_omp_for_final): Likewise.
18905 (gimple_omp_for_final_ptr): Likewise.
18906 (gimple_omp_for_set_final): Likewise.
18907 (gimple_omp_for_incr): Likewise.
18908 (gimple_omp_for_incr_ptr): Likewise.
18909 (gimple_omp_for_set_incr): Likewise.
18910 (gimple_omp_for_pre_body_ptr): Likewise.
18911 (gimple_omp_for_set_pre_body): Likewise.
18912 (gimple_omp_parallel_clauses): Likewise.
18913 (gimple_omp_parallel_clauses_ptr): Likewise.
18914 (gimple_omp_parallel_set_clauses): Likewise.
18915 (gimple_omp_parallel_child_fn): Likewise.
18916 (gimple_omp_parallel_child_fn_ptr): Likewise.
18917 (gimple_omp_parallel_set_child_fn): Likewise.
18918 (gimple_omp_parallel_data_arg): Likewise.
18919 (gimple_omp_parallel_data_arg_ptr): Likewise.
18920 (gimple_omp_parallel_set_data_arg): Likewise.
18921 (gimple_omp_task_clauses): Likewise.
18922 (gimple_omp_task_clauses_ptr): Likewise.
18923 (gimple_omp_task_set_clauses): Likewise.
18924 (gimple_omp_task_child_fn): Likewise.
18925 (gimple_omp_task_child_fn_ptr): Likewise.
18926 (gimple_omp_task_set_child_fn): Likewise.
18927 (gimple_omp_task_data_arg): Likewise.
18928 (gimple_omp_task_data_arg_ptr): Likewise.
18929 (gimple_omp_task_set_data_arg): Likewise.
18930 (gimple_omp_taskreg_clauses): Likewise.
18931 (gimple_omp_taskreg_clauses_ptr): Likewise.
18932 (gimple_omp_taskreg_set_clauses): Likewise.
18933 (gimple_omp_taskreg_child_fn): Likewise.
18934 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18935 (gimple_omp_taskreg_set_child_fn): Likewise.
18936 (gimple_omp_taskreg_data_arg): Likewise.
18937 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18938 (gimple_omp_taskreg_set_data_arg): Likewise.
18939 (gimple_omp_task_copy_fn): Likewise.
18940 (gimple_omp_task_copy_fn_ptr): Likewise.
18941 (gimple_omp_task_set_copy_fn): Likewise.
18942 (gimple_omp_task_arg_size): Likewise.
18943 (gimple_omp_task_arg_size_ptr): Likewise.
18944 (gimple_omp_task_set_arg_size): Likewise.
18945 (gimple_omp_task_arg_align): Likewise.
18946 (gimple_omp_task_arg_align_ptr): Likewise.
18947 (gimple_omp_task_set_arg_align): Likewise.
18948 (gimple_omp_single_clauses): Likewise.
18949 (gimple_omp_single_clauses_ptr): Likewise.
18950 (gimple_omp_single_set_clauses): Likewise.
18951 (gimple_omp_target_clauses): Likewise.
18952 (gimple_omp_target_clauses_ptr): Likewise.
18953 (gimple_omp_target_set_clauses): Likewise.
18954 (gimple_omp_target_child_fn): Likewise.
18955 (gimple_omp_target_child_fn_ptr): Likewise.
18956 (gimple_omp_target_set_child_fn): Likewise.
18957 (gimple_omp_target_data_arg): Likewise.
18958 (gimple_omp_target_data_arg_ptr): Likewise.
18959 (gimple_omp_target_set_data_arg): Likewise.
18960 (gimple_omp_teams_clauses): Likewise.
18961 (gimple_omp_teams_clauses_ptr): Likewise.
18962 (gimple_omp_teams_set_clauses): Likewise.
18963 (gimple_omp_sections_clauses): Likewise.
18964 (gimple_omp_sections_clauses_ptr): Likewise.
18965 (gimple_omp_sections_set_clauses): Likewise.
18966 (gimple_omp_sections_control): Likewise.
18967 (gimple_omp_sections_control_ptr): Likewise.
18968 (gimple_omp_sections_set_control): Likewise.
18969 (gimple_omp_for_set_cond): Likewise.
18970 (gimple_omp_for_cond): Likewise.
18971 (gimple_omp_atomic_store_set_val): Likewise.
18972 (gimple_omp_atomic_store_val): Likewise.
18973 (gimple_omp_atomic_store_val_ptr): Likewise.
18974 (gimple_omp_atomic_load_set_lhs): Likewise.
18975 (gimple_omp_atomic_load_lhs): Likewise.
18976 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18977 (gimple_omp_atomic_load_set_rhs): Likewise.
18978 (gimple_omp_atomic_load_rhs): Likewise.
18979 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18980 (gimple_omp_continue_control_def): Likewise.
18981 (gimple_omp_continue_control_def_ptr): Likewise.
18982 (gimple_omp_continue_set_control_def): Likewise.
18983 (gimple_omp_continue_control_use): Likewise.
18984 (gimple_omp_continue_control_use_ptr): Likewise.
18985 (gimple_omp_continue_set_control_use): Likewise.
18986 (gimple_transaction_body_ptr): Likewise.
18987 (gimple_transaction_label): Likewise.
18988 (gimple_transaction_label_ptr): Likewise.
18989 (gimple_transaction_set_body): Likewise.
18990 (gimple_transaction_set_label): Likewise.
18991
18992 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18993 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18994 * ipa-ref.c (ipa_record_reference): Likewise.
18995 * ipa-reference.c (analyze_function): Likewise.
18996 (ipa_reference_write_optimization_summary): Likewise.
18997 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18998 (address_taken_from_non_vtable_p): Likewise.
18999 (comdat_can_be_unshared_p_1): Likewise.
19000 * lto-cgraph.c (lto_output_ref): Likewise.
19001 (add_references): Likewise.
19002 (compute_ltrans_boundary): Likewise.
19003 (output_symtab): Likewise.
19004 (input_ref): Likewise.
19005 (input_cgraph_1): Likewise.
19006 (output_cgraph_opt_summary): Likewise.
19007 * lto-streamer-out.c (lto_output): Likewise.
19008 (output_symbol_p): Likewise.
19009 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19010 (lsei_start_function_in_partition): Likewise.
19011 (lsei_next_variable_in_partition): Likewise.
19012 (lsei_start_variable_in_partition): Likewise.
19013 * symtab.c (insert_to_assembler_name_hash): Likewise.
19014 (unlink_from_assembler_name_hash): Likewise.
19015 (symtab_unregister_node): Likewise.
19016 (symtab_remove_node): Likewise.
19017 (dump_symtab_node): Likewise.
19018 (verify_symtab_base): Likewise.
19019 (verify_symtab_node): Likewise.
19020 (symtab_make_decl_local): Likewise.
19021 (symtab_alias_ultimate_target): Likewise.
19022 (symtab_resolve_alias): Likewise.
19023 (symtab_get_symbol_partitioning_class): Likewise.
19024 * tree-phinodes.c (allocate_phi_node): Likewise.
19025 (reserve_phi_args_for_new_edge): Likewise.
19026 (remove_phi_args): Likewise.
19027 * varpool.c (varpool_node_for_asm): Likewise.
19028 (varpool_remove_unreferenced_decls): Likewise.
19029
19030 2014-04-23 Jeff Law <law@redhat.com>
19031
19032 PR tree-optimization/60902
19033 * tree-ssa-threadedge.c
19034 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19035 invalidate outputs from statements that do not produce useful
19036 outputs for threading.
19037
19038 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19039
19040 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19041 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19042 machine descriptions for Stack Smashing Protector.
19043
19044 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19045
19046 * aarch64.md (<optab>_rol<mode>3): New pattern.
19047 (<optab>_rolsi3_uxtw): Likewise.
19048 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19049
19050 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19051
19052 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19053 (arm_cortex_a12_tune): Likewise.
19054
19055 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19056
19057 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19058
19059 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19060
19061 * config/arm/arm.md (arm_rev16si2): New pattern.
19062 (arm_rev16si2_alt): Likewise.
19063 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19064
19065 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19066
19067 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19068 (rev16<mode>2_alt): Likewise.
19069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19070 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19071 (aarch_rev16_shleft_mask_imm_p): Likewise.
19072 (aarch_rev16_p_1): Likewise.
19073 (aarch_rev16_p): Likewise.
19074 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19075 (aarch_rev16_shright_mask_imm_p): Likewise.
19076 (aarch_rev16_shleft_mask_imm_p): Likewise.
19077
19078 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19079
19080 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19081 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19082 rev cost.
19083 (cortex_a53_extra_costs): Likewise.
19084 (cortex_a57_extra_costs): Likewise.
19085 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19086 (cortexa7_extra_costs): Likewise.
19087 (cortexa8_extra_costs): Likewise.
19088 (cortexa12_extra_costs): Likewise.
19089 (cortexa15_extra_costs): Likewise.
19090 (v7m_extra_costs): Likewise.
19091 (arm_new_rtx_costs): Handle BSWAP.
19092
19093 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19094
19095 * config/arm/arm.c (cortexa8_extra_costs): New table.
19096 (arm_cortex_a8_tune): New tuning struct.
19097 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19098
19099 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19100
19101 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19102
19103 2014-04-23 Richard Biener <rguenther@suse.de>
19104
19105 * Makefile.in (OBJS): Remove loop-unswitch.o.
19106 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19107 * passes.def (pass_rtl_unswitch): Likewise.
19108 * loop-init.c (gate_rtl_unswitch): Likewise.
19109 (rtl_unswitch): Likewise.
19110 (pass_data_rtl_unswitch): Likewise.
19111 (pass_rtl_unswitch): Likewise.
19112 (make_pass_rtl_unswitch): Likewise.
19113 * rtl.h (reversed_condition): Likewise.
19114 (compare_and_jump_seq): Likewise.
19115 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19116 and make static.
19117 * loop-unroll.c (compare_and_jump_seq): Likewise.
19118
19119 2014-04-23 Richard Biener <rguenther@suse.de>
19120
19121 PR tree-optimization/60903
19122 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19123 commented code block.
19124 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19125 loop flags to newly created BBs and edges.
19126
19127 2014-04-23 Nick Clifton <nickc@redhat.com>
19128
19129 * config/msp430/msp430.c (msp430_handle_option): Move function
19130 to msp430-common.c
19131 (msp430_option_override): Simplify mcu and mcpu option handling.
19132 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19133 support for -mhwmult command line option.
19134 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19135 -mhwmult command line option.
19136 (msp430_hwmult_enabled): Delete.
19137 (msp43o_output_labelref): Add support for -mhwmult command line option.
19138 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19139 (umulsidi3): Likewise.
19140 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19141 (mcpu, mlarge, msmall): Likewise.
19142 (mhwmult): New option.
19143 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19144 prototype.
19145 (msp430_is_f5_mcu): Remove prototype.
19146 (msp430_use_f5_series_hwmult): Add prototype.
19147 * config/msp430/msp430-opts.h: New file.
19148 * common/config/msp430: New directory.
19149 * common/config/msp430/msp430-common.c: New file.
19150 * config.gcc (msp430): Remove target_has_targetm_common.
19151 * doc/invoke.texi: Document -mhwmult command line option.
19152
19153 2014-04-23 Nick Clifton <nickc@redhat.com>
19154
19155 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19156 default-manifest.o if it can be found in the search path.
19157 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19158
19159 2014-04-23 Terry Guo <terry.guo@arm.com>
19160
19161 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19162
19163 2014-04-23 Richard Biener <rguenther@suse.de>
19164
19165 PR middle-end/60895
19166 * tree-inline.c (declare_return_variable): Use mark_addressable.
19167
19168 2014-04-23 Richard Biener <rguenther@suse.de>
19169
19170 PR middle-end/60891
19171 * loop-init.c (loop_optimizer_init): Make sure to apply
19172 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19173
19174 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19175
19176 PR sanitizer/60275
19177 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19178 New options.
19179 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19180 if flag_sanitize_undefined_trap_on_error.
19181 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19182 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19183 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19184 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19185 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19186 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19187 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19188 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19189 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19190 * ubsan.c (ubsan_instrument_unreachable): Return
19191 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19192 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19193 if flag_sanitize_undefined_trap_on_error and
19194 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19195 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19196 instrument_bool_enum_load): Emit __builtin_trap () if
19197 flag_sanitize_undefined_trap_on_error and
19198 __builtin_handle_*_abort () if !flag_sanitize_recover.
19199 * doc/invoke.texi (-fsanitize-recover,
19200 -fsanitize-undefined-trap-on-error): Document.
19201
19202 2014-04-22 Christian Bruel <christian.bruel@st.com>
19203
19204 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19205 Force immediates to SImode.
19206
19207 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19208
19209 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19210 (lroundsfsi2): New.
19211 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19212 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19213 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19214 (nios2_fpu_insn): Add entry for round.
19215 (N2FPU_NO_ERRNO_P): Define.
19216 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19217 flag_errno_math.
19218 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19219
19220 2014-04-22 Richard Henderson <rth@redhat.com>
19221
19222 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19223 (add<GPI>3_compare0): Remove leading * from name.
19224 (add<GPI>3_carryin): Likewise.
19225 (sub<GPI>3_compare0): Likewise.
19226 (sub<GPI>3_carryin): Likewise.
19227 (<su_optab>mulditi3): New expander.
19228 (multi3): New expander.
19229 (madd<GPI>): Remove leading * from name.
19230
19231 2014-04-22 Martin Jambor <mjambor@suse.cz>
19232
19233 * cgraphclones.c (cgraph_function_versioning): Copy
19234 ipa_transforms_to_apply instead of asserting it is empty.
19235
19236 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19237
19238 PR target/60868
19239 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19240 on count_exp to get mode.
19241
19242 2014-04-22 Andrew Pinski <apinski@cavium.com>
19243
19244 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19245 Handle TLS for ILP32.
19246 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19247 (tlsie_small_<mode>): this and handle PTR.
19248 (tlsie_small_sidi): New pattern.
19249 (tlsle_small): Change to an expand to handle ILP32.
19250 (tlsle_small_<mode>): New pattern.
19251 (tlsdesc_small): Rename to ...
19252 (tlsdesc_small_<mode>): this and handle PTR.
19253
19254 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19255
19256 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19257
19258 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19259
19260 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19261 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19262 (aarch64_types_signed_poly_qualifiers): Likewise.
19263 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19264 (aarch64_types_poly_signed_qualifiers): Likewise.
19265 (TYPES_REINTERP_SS): Type macro added.
19266 (TYPES_REINTERP_SU): Likewise.
19267 (TYPES_REINTERP_SP): Likewise.
19268 (TYPES_REINTERP_US): Likewise.
19269 (TYPES_REINTERP_PS): Likewise.
19270 (aarch64_fold_builtin): New expression folding added.
19271 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19272 Declarations removed.
19273 (REINTERP_SS): Declarations added.
19274 (REINTERP_US): Likewise.
19275 (REINTERP_PS): Likewise.
19276 (REINTERP_SU): Likewise.
19277 (REINTERP_SP): Likewise.
19278 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19279 (vreinterpretq_p8_f64): Likewise.
19280 (vreinterpret_p16_f64): Likewise.
19281 (vreinterpretq_p16_f64): Likewise.
19282 (vreinterpret_f32_f64): Likewise.
19283 (vreinterpretq_f32_f64): Likewise.
19284 (vreinterpret_f64_f32): Likewise.
19285 (vreinterpret_f64_p8): Likewise.
19286 (vreinterpret_f64_p16): Likewise.
19287 (vreinterpret_f64_s8): Likewise.
19288 (vreinterpret_f64_s16): Likewise.
19289 (vreinterpret_f64_s32): Likewise.
19290 (vreinterpret_f64_s64): Likewise.
19291 (vreinterpret_f64_u8): Likewise.
19292 (vreinterpret_f64_u16): Likewise.
19293 (vreinterpret_f64_u32): Likewise.
19294 (vreinterpret_f64_u64): Likewise.
19295 (vreinterpretq_f64_f32): Likewise.
19296 (vreinterpretq_f64_p8): Likewise.
19297 (vreinterpretq_f64_p16): Likewise.
19298 (vreinterpretq_f64_s8): Likewise.
19299 (vreinterpretq_f64_s16): Likewise.
19300 (vreinterpretq_f64_s32): Likewise.
19301 (vreinterpretq_f64_s64): Likewise.
19302 (vreinterpretq_f64_u8): Likewise.
19303 (vreinterpretq_f64_u16): Likewise.
19304 (vreinterpretq_f64_u32): Likewise.
19305 (vreinterpretq_f64_u64): Likewise.
19306 (vreinterpret_s64_f64): Likewise.
19307 (vreinterpretq_s64_f64): Likewise.
19308 (vreinterpret_u64_f64): Likewise.
19309 (vreinterpretq_u64_f64): Likewise.
19310 (vreinterpret_s8_f64): Likewise.
19311 (vreinterpretq_s8_f64): Likewise.
19312 (vreinterpret_s16_f64): Likewise.
19313 (vreinterpretq_s16_f64): Likewise.
19314 (vreinterpret_s32_f64): Likewise.
19315 (vreinterpretq_s32_f64): Likewise.
19316 (vreinterpret_u8_f64): Likewise.
19317 (vreinterpretq_u8_f64): Likewise.
19318 (vreinterpret_u16_f64): Likewise.
19319 (vreinterpretq_u16_f64): Likewise.
19320 (vreinterpret_u32_f64): Likewise.
19321 (vreinterpretq_u32_f64): Likewise.
19322
19323 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19324
19325 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19326 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19327 (vreinterpret_p8_s8): Likewise.
19328 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19329 (vreinterpret_p8_s16): Likewise.
19330 (vreinterpret_p8_s32): Likewise.
19331 (vreinterpret_p8_s64): Likewise.
19332 (vreinterpret_p8_f32): Likewise.
19333 (vreinterpret_p8_u8): Likewise.
19334 (vreinterpret_p8_u16): Likewise.
19335 (vreinterpret_p8_u32): Likewise.
19336 (vreinterpret_p8_u64): Likewise.
19337 (vreinterpret_p8_p16): Likewise.
19338 (vreinterpretq_p8_s8): Likewise.
19339 (vreinterpretq_p8_s16): Likewise.
19340 (vreinterpretq_p8_s32): Likewise.
19341 (vreinterpretq_p8_s64): Likewise.
19342 (vreinterpretq_p8_f32): Likewise.
19343 (vreinterpretq_p8_u8): Likewise.
19344 (vreinterpretq_p8_u16): Likewise.
19345 (vreinterpretq_p8_u32): Likewise.
19346 (vreinterpretq_p8_u64): Likewise.
19347 (vreinterpretq_p8_p16): Likewise.
19348 (vreinterpret_p16_s8): Likewise.
19349 (vreinterpret_p16_s16): Likewise.
19350 (vreinterpret_p16_s32): Likewise.
19351 (vreinterpret_p16_s64): Likewise.
19352 (vreinterpret_p16_f32): Likewise.
19353 (vreinterpret_p16_u8): Likewise.
19354 (vreinterpret_p16_u16): Likewise.
19355 (vreinterpret_p16_u32): Likewise.
19356 (vreinterpret_p16_u64): Likewise.
19357 (vreinterpret_p16_p8): Likewise.
19358 (vreinterpretq_p16_s8): Likewise.
19359 (vreinterpretq_p16_s16): Likewise.
19360 (vreinterpretq_p16_s32): Likewise.
19361 (vreinterpretq_p16_s64): Likewise.
19362 (vreinterpretq_p16_f32): Likewise.
19363 (vreinterpretq_p16_u8): Likewise.
19364 (vreinterpretq_p16_u16): Likewise.
19365 (vreinterpretq_p16_u32): Likewise.
19366 (vreinterpretq_p16_u64): Likewise.
19367 (vreinterpretq_p16_p8): Likewise.
19368 (vreinterpret_f32_s8): Likewise.
19369 (vreinterpret_f32_s16): Likewise.
19370 (vreinterpret_f32_s32): Likewise.
19371 (vreinterpret_f32_s64): Likewise.
19372 (vreinterpret_f32_u8): Likewise.
19373 (vreinterpret_f32_u16): Likewise.
19374 (vreinterpret_f32_u32): Likewise.
19375 (vreinterpret_f32_u64): Likewise.
19376 (vreinterpret_f32_p8): Likewise.
19377 (vreinterpret_f32_p16): Likewise.
19378 (vreinterpretq_f32_s8): Likewise.
19379 (vreinterpretq_f32_s16): Likewise.
19380 (vreinterpretq_f32_s32): Likewise.
19381 (vreinterpretq_f32_s64): Likewise.
19382 (vreinterpretq_f32_u8): Likewise.
19383 (vreinterpretq_f32_u16): Likewise.
19384 (vreinterpretq_f32_u32): Likewise.
19385 (vreinterpretq_f32_u64): Likewise.
19386 (vreinterpretq_f32_p8): Likewise.
19387 (vreinterpretq_f32_p16): Likewise.
19388 (vreinterpret_s64_s8): Likewise.
19389 (vreinterpret_s64_s16): Likewise.
19390 (vreinterpret_s64_s32): Likewise.
19391 (vreinterpret_s64_f32): Likewise.
19392 (vreinterpret_s64_u8): Likewise.
19393 (vreinterpret_s64_u16): Likewise.
19394 (vreinterpret_s64_u32): Likewise.
19395 (vreinterpret_s64_u64): Likewise.
19396 (vreinterpret_s64_p8): Likewise.
19397 (vreinterpret_s64_p16): Likewise.
19398 (vreinterpretq_s64_s8): Likewise.
19399 (vreinterpretq_s64_s16): Likewise.
19400 (vreinterpretq_s64_s32): Likewise.
19401 (vreinterpretq_s64_f32): Likewise.
19402 (vreinterpretq_s64_u8): Likewise.
19403 (vreinterpretq_s64_u16): Likewise.
19404 (vreinterpretq_s64_u32): Likewise.
19405 (vreinterpretq_s64_u64): Likewise.
19406 (vreinterpretq_s64_p8): Likewise.
19407 (vreinterpretq_s64_p16): Likewise.
19408 (vreinterpret_u64_s8): Likewise.
19409 (vreinterpret_u64_s16): Likewise.
19410 (vreinterpret_u64_s32): Likewise.
19411 (vreinterpret_u64_s64): Likewise.
19412 (vreinterpret_u64_f32): Likewise.
19413 (vreinterpret_u64_u8): Likewise.
19414 (vreinterpret_u64_u16): Likewise.
19415 (vreinterpret_u64_u32): Likewise.
19416 (vreinterpret_u64_p8): Likewise.
19417 (vreinterpret_u64_p16): Likewise.
19418 (vreinterpretq_u64_s8): Likewise.
19419 (vreinterpretq_u64_s16): Likewise.
19420 (vreinterpretq_u64_s32): Likewise.
19421 (vreinterpretq_u64_s64): Likewise.
19422 (vreinterpretq_u64_f32): Likewise.
19423 (vreinterpretq_u64_u8): Likewise.
19424 (vreinterpretq_u64_u16): Likewise.
19425 (vreinterpretq_u64_u32): Likewise.
19426 (vreinterpretq_u64_p8): Likewise.
19427 (vreinterpretq_u64_p16): Likewise.
19428 (vreinterpret_s8_s16): Likewise.
19429 (vreinterpret_s8_s32): Likewise.
19430 (vreinterpret_s8_s64): Likewise.
19431 (vreinterpret_s8_f32): Likewise.
19432 (vreinterpret_s8_u8): Likewise.
19433 (vreinterpret_s8_u16): Likewise.
19434 (vreinterpret_s8_u32): Likewise.
19435 (vreinterpret_s8_u64): Likewise.
19436 (vreinterpret_s8_p8): Likewise.
19437 (vreinterpret_s8_p16): Likewise.
19438 (vreinterpretq_s8_s16): Likewise.
19439 (vreinterpretq_s8_s32): Likewise.
19440 (vreinterpretq_s8_s64): Likewise.
19441 (vreinterpretq_s8_f32): Likewise.
19442 (vreinterpretq_s8_u8): Likewise.
19443 (vreinterpretq_s8_u16): Likewise.
19444 (vreinterpretq_s8_u32): Likewise.
19445 (vreinterpretq_s8_u64): Likewise.
19446 (vreinterpretq_s8_p8): Likewise.
19447 (vreinterpretq_s8_p16): Likewise.
19448 (vreinterpret_s16_s8): Likewise.
19449 (vreinterpret_s16_s32): Likewise.
19450 (vreinterpret_s16_s64): Likewise.
19451 (vreinterpret_s16_f32): Likewise.
19452 (vreinterpret_s16_u8): Likewise.
19453 (vreinterpret_s16_u16): Likewise.
19454 (vreinterpret_s16_u32): Likewise.
19455 (vreinterpret_s16_u64): Likewise.
19456 (vreinterpret_s16_p8): Likewise.
19457 (vreinterpret_s16_p16): Likewise.
19458 (vreinterpretq_s16_s8): Likewise.
19459 (vreinterpretq_s16_s32): Likewise.
19460 (vreinterpretq_s16_s64): Likewise.
19461 (vreinterpretq_s16_f32): Likewise.
19462 (vreinterpretq_s16_u8): Likewise.
19463 (vreinterpretq_s16_u16): Likewise.
19464 (vreinterpretq_s16_u32): Likewise.
19465 (vreinterpretq_s16_u64): Likewise.
19466 (vreinterpretq_s16_p8): Likewise.
19467 (vreinterpretq_s16_p16): Likewise.
19468 (vreinterpret_s32_s8): Likewise.
19469 (vreinterpret_s32_s16): Likewise.
19470 (vreinterpret_s32_s64): Likewise.
19471 (vreinterpret_s32_f32): Likewise.
19472 (vreinterpret_s32_u8): Likewise.
19473 (vreinterpret_s32_u16): Likewise.
19474 (vreinterpret_s32_u32): Likewise.
19475 (vreinterpret_s32_u64): Likewise.
19476 (vreinterpret_s32_p8): Likewise.
19477 (vreinterpret_s32_p16): Likewise.
19478 (vreinterpretq_s32_s8): Likewise.
19479 (vreinterpretq_s32_s16): Likewise.
19480 (vreinterpretq_s32_s64): Likewise.
19481 (vreinterpretq_s32_f32): Likewise.
19482 (vreinterpretq_s32_u8): Likewise.
19483 (vreinterpretq_s32_u16): Likewise.
19484 (vreinterpretq_s32_u32): Likewise.
19485 (vreinterpretq_s32_u64): Likewise.
19486 (vreinterpretq_s32_p8): Likewise.
19487 (vreinterpretq_s32_p16): Likewise.
19488 (vreinterpret_u8_s8): Likewise.
19489 (vreinterpret_u8_s16): Likewise.
19490 (vreinterpret_u8_s32): Likewise.
19491 (vreinterpret_u8_s64): Likewise.
19492 (vreinterpret_u8_f32): Likewise.
19493 (vreinterpret_u8_u16): Likewise.
19494 (vreinterpret_u8_u32): Likewise.
19495 (vreinterpret_u8_u64): Likewise.
19496 (vreinterpret_u8_p8): Likewise.
19497 (vreinterpret_u8_p16): Likewise.
19498 (vreinterpretq_u8_s8): Likewise.
19499 (vreinterpretq_u8_s16): Likewise.
19500 (vreinterpretq_u8_s32): Likewise.
19501 (vreinterpretq_u8_s64): Likewise.
19502 (vreinterpretq_u8_f32): Likewise.
19503 (vreinterpretq_u8_u16): Likewise.
19504 (vreinterpretq_u8_u32): Likewise.
19505 (vreinterpretq_u8_u64): Likewise.
19506 (vreinterpretq_u8_p8): Likewise.
19507 (vreinterpretq_u8_p16): Likewise.
19508 (vreinterpret_u16_s8): Likewise.
19509 (vreinterpret_u16_s16): Likewise.
19510 (vreinterpret_u16_s32): Likewise.
19511 (vreinterpret_u16_s64): Likewise.
19512 (vreinterpret_u16_f32): Likewise.
19513 (vreinterpret_u16_u8): Likewise.
19514 (vreinterpret_u16_u32): Likewise.
19515 (vreinterpret_u16_u64): Likewise.
19516 (vreinterpret_u16_p8): Likewise.
19517 (vreinterpret_u16_p16): Likewise.
19518 (vreinterpretq_u16_s8): Likewise.
19519 (vreinterpretq_u16_s16): Likewise.
19520 (vreinterpretq_u16_s32): Likewise.
19521 (vreinterpretq_u16_s64): Likewise.
19522 (vreinterpretq_u16_f32): Likewise.
19523 (vreinterpretq_u16_u8): Likewise.
19524 (vreinterpretq_u16_u32): Likewise.
19525 (vreinterpretq_u16_u64): Likewise.
19526 (vreinterpretq_u16_p8): Likewise.
19527 (vreinterpretq_u16_p16): Likewise.
19528 (vreinterpret_u32_s8): Likewise.
19529 (vreinterpret_u32_s16): Likewise.
19530 (vreinterpret_u32_s32): Likewise.
19531 (vreinterpret_u32_s64): Likewise.
19532 (vreinterpret_u32_f32): Likewise.
19533 (vreinterpret_u32_u8): Likewise.
19534 (vreinterpret_u32_u16): Likewise.
19535 (vreinterpret_u32_u64): Likewise.
19536 (vreinterpret_u32_p8): Likewise.
19537 (vreinterpret_u32_p16): Likewise.
19538 (vreinterpretq_u32_s8): Likewise.
19539 (vreinterpretq_u32_s16): Likewise.
19540 (vreinterpretq_u32_s32): Likewise.
19541 (vreinterpretq_u32_s64): Likewise.
19542 (vreinterpretq_u32_f32): Likewise.
19543 (vreinterpretq_u32_u8): Likewise.
19544 (vreinterpretq_u32_u16): Likewise.
19545 (vreinterpretq_u32_u64): Likewise.
19546 (vreinterpretq_u32_p8): Likewise.
19547 (vreinterpretq_u32_p16): Likewise.
19548
19549 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19550
19551 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19552 Pattern extended.
19553 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19554 (sqabs): Likewise.
19555 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19556 (vqnegd_s64): Likewise.
19557 (vqabs_s64): Likewise.
19558 (vqabsd_s64): Likewise.
19559
19560 2014-04-22 Richard Henderson <rth@redhat.com>
19561
19562 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19563 computation to the top of the loop.
19564
19565 2014-04-22 Renlin <renlin.li@arm.com>
19566 Jiong Wang <jiong.wang@arm.com>
19567
19568 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19569 * config/aarch64/aarch64.c (aarch64_layout_frame)
19570 (aarch64_initial_elimination_offset): Likewise.
19571
19572 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19573
19574 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19575 Fix indentation.
19576
19577 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19578
19579 * machmode.h (bitwise_mode_for_mode): Declare.
19580 * stor-layout.h (bitwise_type_for_mode): Likewise.
19581 * stor-layout.c (bitwise_mode_for_mode): New function.
19582 (bitwise_type_for_mode): Likewise.
19583 * builtins.c (fold_builtin_memory_op): Use it instead of
19584 int_mode_for_mode and build_nonstandard_integer_type.
19585
19586 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19587
19588 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19589 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19590 (*-*-solaris2*): Simplify.
19591 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19592 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19593 *-*-solaris2.9* handling.
19594
19595 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19596 as bug.
19597 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19598 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19599 handling, simplify.
19600 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19601 * configure: Regenerate.
19602
19603 * config/i386/sol2-9.h: Remove.
19604
19605 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19606 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19607 Remove Solaris 9 references.
19608
19609 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19610
19611 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19612 (floatuns<GPI:mode><GPF:mode>2): Remove.
19613 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19614 and floatuns conversions.
19615 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19616 and floatuns conversions.
19617 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19618 (w1,w2): New mode attributes for inequal width conversions.
19619
19620 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19621
19622 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19623 the output asm format.
19624
19625 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19626
19627 * config/aarch64/aarch64-simd.md
19628 (aarch64_cm<optab>di): Always split.
19629 (*aarch64_cm<optab>di): New.
19630 (aarch64_cmtstdi): Always split.
19631 (*aarch64_cmtstdi): New.
19632
19633 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19634
19635 PR tree-optimization/60823
19636 * omp-low.c (ipa_simd_modify_function_body): Go through
19637 all SSA_NAMEs and for those refering to vector arguments
19638 which are going to be replaced adjust SSA_NAME_VAR and,
19639 if it is a default definition, change it into a non-default
19640 definition assigned at the beginning of function from new_decl.
19641 (ipa_simd_modify_stmt_ops): Rewritten.
19642 * tree-dfa.c (set_ssa_default_def): When removing default def,
19643 check for NULL loc instead of NULL *loc.
19644
19645 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19646
19647 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19648 restrictions on core registers for DImode values in Thumb2.
19649
19650 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19651
19652 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19653 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19654
19655 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19656
19657 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19658 (*iordi_notzesidi_di): Likewise.
19659 (*iordi_notsesidi_di): Likewise.
19660
19661 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19662
19663 * config/arm/arm-protos.h (tune_params): New struct members.
19664 * config/arm/arm.c: Initialise tune_params per processor.
19665 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19666 for speed, based on new tune_params.
19667
19668 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19669
19670 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19671 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19672 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19673 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19674 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19675 (vrnda_f64): Likewise.
19676 (vrndi_f64): Likewise.
19677 (vrndm_f64): Likewise.
19678 (vrndn_f64): Likewise.
19679 (vrndp_f64): Likewise.
19680 (vrndx_f64): Likewise.
19681
19682 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19683
19684 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19685 GET_MODE_SIZE argument is enum machine_mode.
19686
19687 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19688
19689 PR target/60910
19690 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19691 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19692
19693 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19694
19695 PR middle-end/60281
19696 * asan.c (asan_emit_stack_protection): Force the base to align to
19697 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19698 appropriate bits if STRICT_ALIGNMENT.
19699 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19700 when asan is on.
19701 (expand_used_vars): Leave a space in the stack frame for alignment
19702 if STRICT_ALIGNMENT.
19703
19704 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19705
19706 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19707 than a gimple.
19708 (gimple_store_p): Likewise.
19709 (gimple_assign_load_p): Likewise.
19710 (gimple_assign_cast_p): Likewise.
19711 (gimple_clobber_p): Likewise.
19712
19713 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19714 rather than a gimple.
19715 (gimple_assign_cast_p): Likewise.
19716
19717 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19718
19719 PR target/60735
19720 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19721 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19722
19723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19724 more debug information for E500 if -mdebug=reg.
19725
19726 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19727
19728 PR target/60909
19729 * config/i386/i386.c (ix86_expand_builtin)
19730 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19731 register for target RTX.
19732 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19733
19734 2014-04-18 Cong Hou <congh@google.com>
19735
19736 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19737 the widen-mult pattern by handling two operands with different sizes,
19738 and operands whose size is smaller than half of the result type.
19739
19740 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19741
19742 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19743 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19744 (do_estimate_edge_time): Compute it.
19745 * ipa-inline.c (want_inline_small_function_p): Bypass
19746 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19747
19748 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19749
19750 * ipa-inline.c (spec_rem): New static variable.
19751 (dump_overall_stats): New function.
19752 (dump_inline_stats): New function.
19753
19754 2014-04-18 Richard Henderson <rth@redhat.com>
19755
19756 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19757 to GET_MODE_SIZE, not a reg_class_t.
19758
19759 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19760
19761 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19762 (vsx_xxmrglw_<mode>): Likewise.
19763
19764 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19765
19766 PR target/60876
19767 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19768 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19769 (rs6000_init_hard_regno_mode_ok): Likewise.
19770
19771 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19772
19773 * ipa-inline.c (inline_small_functions): Account only non-cold
19774 functions.
19775 * doc/invoke.texi (inline-unit-growth): Update documentation.
19776
19777 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19778
19779 * config/rs6000/rs6000.md (addti3, subti3): New.
19780
19781 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19782
19783 PR target/60863
19784 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19785 comment. Check optimize_insn_for_size_p instead of
19786 optimize_insn_for_speed_p.
19787
19788 2014-04-17 Martin Jambor <mjambor@suse.cz>
19789
19790 * gimple-iterator.c (gsi_start_edge): New function.
19791 * gimple-iterator.h (gsi_start_edge): Declare.
19792 * tree-sra.c (single_non_eh_succ): New function.
19793 (disqualify_ops_if_throwing_stmt): Renamed to
19794 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19795 having one non-EH successor BB.
19796 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19797 generate loads into replacements.
19798 (sra_modify_assign): Likewise and and also use the simple path for
19799 such statements.
19800 (sra_modify_function_body): Commit statements on edges.
19801
19802 2014-04-17 Richard Biener <rguenther@suse.de>
19803
19804 PR middle-end/60849
19805 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19806 comparison results and add clarifying comment.
19807
19808 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19809
19810 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19811 (blank_mode): Initialize it.
19812 (emit_mode_size_inline, emit_mode_nunits_inline,
19813 emit_mode_inner_inline): New functions.
19814 (emit_insn_modes_h): Call them and surround their output with
19815 #if GCC_VERSION >= 4001 ... #endif.
19816 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19817 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19818 mode_* arrays if the argument is __builtin_constant_p.
19819 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19820 is enum machine_mode.
19821
19822 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19823
19824 * passes.c (opt_pass::execute): Adjust.
19825 (pass_manager::execute_pass_mode_switching): Likewise.
19826 (early_local_passes::execute): Likewise.
19827 (execute_one_pass): Pass cfun to the pass's execute method.
19828 * tree-pass.h (opt_pass::execute): Add function * argument.
19829 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19830 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19831 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19832 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19833 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19834 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19835 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19836 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19837 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19838 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19839 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19840 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19841 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19842 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19843 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19844 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19845 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19846 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19847 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19848 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19849 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19850 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19851 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19852 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19853 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19854 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19855 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19856 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19857 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19858 Adjust.
19859
19860 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19861
19862 * passes.c (opt_pass::gate): Take function * argument.
19863 (gate_all_early_local_passes): Merge into
19864 (early_local_passes::gate): this.
19865 (gate_all_early_optimizations): Merge into
19866 (all_early_optimizations::gate): this.
19867 (gate_all_optimizations): Mege into
19868 (all_optimizations::gate): this.
19869 (gate_all_optimizations_g): Merge into
19870 (all_optimizations_g::gate): this.
19871 (gate_rest_of_compilation): Mege into
19872 (rest_of_compilation::gate): this.
19873 (gate_postreload): Merge into
19874 (postreload::gate): this.
19875 (dump_one_pass): Pass cfun to the pass's gate method.
19876 (execute_ipa_summary_passes): Likewise.
19877 (execute_one_pass): Likewise.
19878 (ipa_write_summaries_2): Likewise.
19879 (ipa_write_optimization_summaries_1): Likewise.
19880 (ipa_read_summaries_1): Likewise.
19881 (ipa_read_optimization_summaries_1): Likewise.
19882 (execute_ipa_stmt_fixups): Likewise.
19883 * tree-pass.h (opt_pass::gate): Add function * argument.
19884 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19885 combine-stack-adj.c, combine.c, compare-elim.c,
19886 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19887 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19888 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19889 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19890 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19891 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19892 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19893 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19894 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19895 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19896 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19897 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19898 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19899 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19900 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19901 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19902 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19903 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19904 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19905 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19906 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19907 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19908 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19909 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19910 var-tracking.c, vtable-verify.c, web.c: Adjust.
19911
19912 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19913
19914 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19915 * configure: Regenerate.
19916
19917 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19918
19919 * passes.c (dump_one_pass): don't check pass->has_gate.
19920 (execute_ipa_summary_passes): Likewise.
19921 (execute_one_pass): Likewise.
19922 (ipa_write_summaries_2): Likewise.
19923 (ipa_write_optimization_summaries_1): Likewise.
19924 (ipa_read_optimization_summaries_1): Likewise.
19925 (execute_ipa_stmt_fixups): Likewise.
19926 * tree-pass.h (pass_data::has_gate): Remove.
19927 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19928 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19929 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19930 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19931 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19932 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19933 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19934 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19935 gimple-low.c, gimple-ssa-isolate-paths.c,
19936 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19937 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19938 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19939 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19940 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19941 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19942 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19943 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19944 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19945 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19946 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19947 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19948 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19949 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19950 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19951 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19952 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19953 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19954 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19955 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19956 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19957 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19958 Adjust.
19959
19960 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19961
19962 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19963 declaration.
19964 * passes.c (pass_manager::register_dump_files_1): Merge into
19965 (pass_manager::register_dump_files): this, and remove its handling of
19966 properties since the pass always has the properties anyway.
19967 (pass_manager::pass_manager): Adjust.
19968
19969 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19970
19971 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19972 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19973 dealing with properties.
19974 (pass_manager::register_dump_files): Adjust.
19975
19976 2014-03-20 Mark Wielaard <mjw@redhat.com>
19977
19978 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19979 then represent the bound as normal constant value.
19980
19981 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19982
19983 PR target/60847
19984 Forward port from 4.8 branch
19985 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19986
19987 * config/i386/bmiintrin.h (_blsi_u32): New.
19988 (_blsi_u64): Ditto.
19989 (_blsr_u32): Ditto.
19990 (_blsr_u64): Ditto.
19991 (_blsmsk_u32): Ditto.
19992 (_blsmsk_u64): Ditto.
19993 (_tzcnt_u32): Ditto.
19994 (_tzcnt_u64): Ditto.
19995
19996 2014-04-17 Kito Cheng <kito@0xlab.org>
19997
19998 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19999
20000 2014-04-17 Richard Biener <rguenther@suse.de>
20001
20002 PR middle-end/60849
20003 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20004 boolean results for comparisons.
20005
20006 2014-04-17 Richard Biener <rguenther@suse.de>
20007
20008 PR tree-optimization/60836
20009 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20010 initial PHI args to be gimple values.
20011
20012 2014-04-17 Richard Biener <rguenther@suse.de>
20013
20014 PR tree-optimization/60841
20015 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20016 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20017 of stmts to SLP build.
20018 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20019 (vect_analyze_slp): Likewise.
20020 (vect_analyze_slp_instance): Likewise.
20021 (vect_build_slp_tree): Limit overall SLP tree growth.
20022 * tree-vectorizer.h (vect_analyze_data_refs,
20023 vect_analyze_slp): Adjust prototypes.
20024
20025 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20026
20027 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20028 Silvermont.
20029
20030 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20031
20032 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20033 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20034 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20035 for TARGET_SLOW_PSHUFB
20036
20037 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20038
20039 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20040 * config/i386/i386.c (intel_cost): Ditto.
20041
20042 2014-04-17 Joey Ye <joey.ye@arm.com>
20043
20044 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20045
20046 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20047
20048 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20049 with -fuse-profile.
20050
20051 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20052
20053 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20054 (type_all_derivations_known_p): New predicate.
20055 (type_all_ctors_visible_p): New predicate.
20056 (type_possibly_instantiated_p): New predicate.
20057 (get_odr_type): Compute all_derivations_known.
20058 (dump_odr_type): Dump the flag.
20059 (maybe_record_type): Cleanup.
20060 (record_target_from_binfo): Add bases_to_consider array;
20061 record bases for types w/o instances and skip CXX destructor.
20062 (possible_polymorphic_call_targets_1): Add bases_to_consider
20063 and consider_construction parameters; check if type may have instance.
20064 (get_polymorphic_call_info): Set maybe_in_construction to true
20065 when we know nothing.
20066 (record_targets_from_bases): Skip CXX destructors; they are
20067 never called for types in construction.
20068 (possible_polymorphic_call_targets): Do not record target when
20069 type may not have instance.
20070
20071 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20072
20073 PR ipa/60854
20074 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20075 external aliases alive, too.
20076
20077 2014-04-16 Andrew Pinski <apinski@cavium.com>
20078
20079 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20080 definition.
20081
20082 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20083
20084 * final.c (compute_alignments): Do not apply loop alignment to a block
20085 falling through to the exit.
20086
20087 2014-04-16 Catherine Moore <clm@codesourcery.com>
20088
20089 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20090 Adjust constraints for microMIPS store patterns.
20091
20092 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20093
20094 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20095
20096 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20097
20098 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20099 (append_use): Run at -O0.
20100 (append_vdef): Likewise.
20101 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20102 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20103
20104 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20105
20106 PR tree-optimization/60844
20107 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20108 (propagate_op_to_single_use, remove_visited_stmt_chain,
20109 linearize_expr, repropagate_negates, reassociate_bb): Use it
20110 instead of gsi_remove.
20111
20112 2014-04-16 Martin Jambor <mjambor@suse.cz>
20113
20114 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20115 ipa_transforms_to_apply.
20116 (cgraph_function_versioning): Assert that old_node has empty
20117 ipa_transforms_to_apply.
20118 * trans-mem.c (ipa_tm_create_version): Likewise.
20119 * tree-inline.c (tree_function_versioning): Do not duplicate
20120 ipa_transforms_to_apply.
20121
20122 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20123
20124 PR target/60817
20125 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20126 x86_64-*-* cases.
20127 Pass necessary as flags on 64-bit Solaris/x86.
20128 Use lowercase relocs for x86_64-*-*.
20129 * configure: Regenerate.
20130
20131 2014-04-15 Jan Hubicka <jh@suse.cz>
20132
20133 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20134 (maybe_record_node, likely_target_p): Use it.
20135
20136 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20137
20138 PR target/60839
20139 Revert following patch
20140
20141 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20142
20143 PR target/60735
20144 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20145 software floating point or no floating point registers, do not
20146 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20147 in GPRs that occurs after we tested for GPRs that would never be
20148 true.
20149
20150 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20151 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20152 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20153 specifically allow DDmode, since that does not use the SPE SIMD
20154 instructions.
20155
20156 2014-03-21 Mark Wielaard <mjw@redhat.com>
20157
20158 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20159 as unsigned or int depending on type and value used.
20160
20161 2014-04-15 Richard Biener <rguenther@suse.de>
20162
20163 PR rtl-optimization/56965
20164 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20165 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20166 ... here.
20167 * alias.c (true_dependence_1): Do not call
20168 nonoverlapping_component_refs_p.
20169 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20170 nonoverlapping_component_refs_p.
20171 (indirect_refs_may_alias_p): Likewise.
20172
20173 2014-04-15 Teresa Johnson <tejohnson@google.com>
20174
20175 * cfg.c (dump_bb_info): Fix flags check.
20176 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20177
20178 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20179
20180 PR rtl-optimization/60663
20181 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20182 avoid 0 cost.
20183
20184 2014-04-15 Richard Biener <rguenther@suse.de>
20185
20186 * lto-streamer.h (LTO_major_version): Bump to 4.
20187
20188 2014-04-15 Richard Biener <rguenther@suse.de>
20189
20190 * common.opt (lto_partition_model): New enum.
20191 (flto-partition=): Merge separate options with a single with argument,
20192 add -flto-partition=one support.
20193 * flag-types.h (enum lto_partition_model): Declare.
20194 * opts.c (finish_options): Remove duplicate -flto-partition=
20195 option check.
20196 * lto-wrapper.c (run_gcc): Adjust.
20197
20198 2014-04-15 Richard Biener <rguenther@suse.de>
20199
20200 * alias.c (ncr_compar): New function.
20201 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20202
20203 2014-04-15 Richard Biener <rguenther@suse.de>
20204
20205 * alias.c (record_component_aliases): Do not walk BINFOs.
20206
20207 2014-04-15 Richard Biener <rguenther@suse.de>
20208
20209 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20210 Add struct function argument and adjust.
20211 (find_func_aliases_for_call): Likewise.
20212 (find_func_aliases): Likewise.
20213 (find_func_clobbers): Likewise.
20214 (intra_create_variable_infos): Likewise.
20215 (compute_points_to_sets): Likewise.
20216 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20217
20218 2014-04-15 Richard Biener <rguenther@suse.de>
20219
20220 * tree.c (iterative_hash_expr): Use enum tree_code_class
20221 to store TREE_CODE_CLASS.
20222 (tree_block): Likewise.
20223 (tree_set_block): Likewise.
20224 * tree.h (fold_build_pointer_plus_loc): Use
20225 convert_to_ptrofftype_loc.
20226
20227 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20228
20229 PR plugins/59335
20230 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20231 added in 4.9.
20232
20233 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20234
20235 * cfgloop.h (struct loop): Move force_vectorize down.
20236 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20237 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20238 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20239 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20240 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20241 * tree-core.h (enum annot_expr_kind): Add new kind values.
20242 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20243 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20244 kinds.
20245 * tree.def (ANNOTATE_EXPR): Tweak comment.
20246
20247 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20248
20249 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20250 cxa_pure_virtual).
20251
20252 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20253
20254 * tree.h (TYPE_IDENTIFIER): Declare.
20255 * tree.c (subrange_type_for_debug_p): Use it.
20256 * godump.c (go_format_type): Likewise.
20257 * dwarf2out.c (is_cxx_auto, modified_type_die,
20258 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20259 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20260
20261 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20262
20263 PR lto/60820
20264 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20265
20266 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20267
20268 * config/i386/i386.c (examine_argument): Return bool. Return true if
20269 parameter should be passed in memory.
20270 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20271 (construct_container): Update calls to examine_argument.
20272 (function_arg_advance_64): Ditto.
20273 (return_in_memory_32): Merge with ix86_return_in_memory.
20274 (return_in_memory_64): Ditto.
20275 (return_in_memory_ms_64): Ditto.
20276
20277 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20278
20279 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20280 * coverage.c (coverage_compute_profile_id): Handle externally visible
20281 symbols.
20282
20283 2014-04-14 Martin Jambor <mjambor@suse.cz>
20284
20285 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20286 DECL_DISREGARD_INLINE_LIMITS functions.
20287
20288 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20289
20290 PR target/60827
20291 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20292
20293 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20294
20295 PR target/60827
20296 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20297 optimize_insn_for_speed_p instead of
20298 optimize_function_for_speed_p.
20299
20300 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20301
20302 * doc/invoke.texi (free): Document AArch64.
20303
20304 2014-04-14 Richard Biener <rguenther@suse.de>
20305
20306 PR tree-optimization/60042
20307 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20308 (insert_into_preds_of_block): Do not prevent PHI insertion
20309 for REFERENCE exprs here ...
20310 (eliminate_dom_walker::before_dom_children): ... but prevent
20311 their use here under similar conditions when applied to the
20312 IL after PRE optimizations.
20313
20314 2014-04-14 Richard Biener <rguenther@suse.de>
20315
20316 * passes.def: Move early points-to after early SRA.
20317
20318 2014-04-14 Richard Biener <rguenther@suse.de>
20319
20320 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20321 check for which sign-changes we allow when forwarding
20322 a converted value into a switch.
20323
20324 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20325
20326 * stor-layout.c (place_field): Finalize non-constant offset for the
20327 field, if any.
20328
20329 2014-04-14 Richard Biener <rguenther@suse.de>
20330
20331 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20332 as argument.
20333 (expand_switch_using_bit_tests_p): Likewise.
20334 (process_switch): Compute and pass on speed_p based on the
20335 switch stmt.
20336 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20337 optimize_bb_for_speed_p.
20338
20339 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20340
20341 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20342 * function.h (struct function): Rename has_force_vect_loops into
20343 has_force_vectorize_loops.
20344 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20345 (input_struct_function_base): Likewise.
20346 * lto-streamer-out.c (output_cfg): Likewise.
20347 (output_struct_function_base): Likewise.
20348 * omp-low.c (expand_omp_simd): Likewise.
20349 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20350 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20351 (version_loop_for_if_conversion): Likewise.
20352 (tree_if_conversion): Likewise.
20353 (main_tree_if_conversion): Likewise.
20354 (gate_tree_if_conversion): Likewise.
20355 * tree-inline.c (copy_loops): Likewise.
20356 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20357 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20358 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20359 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20360 * tree-vectorizer.c (vectorize_loops): Likewise.
20361 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20362
20363 2014-04-14 Richard Biener <rguenther@suse.de>
20364
20365 PR lto/60720
20366 * lto-streamer-out.c (wrap_refs): New function.
20367 (lto_output): Wrap symbol references in global initializes in
20368 type-preserving MEM_REFs.
20369
20370 2014-04-14 Christian Bruel <christian.bruel@st.com>
20371
20372 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20373
20374 2014-04-14 Christian Bruel <christian.bruel@st.com>
20375
20376 * config/sh/sh.md (setmemqi): New expand pattern.
20377 * config/sh/sh.h (CLEAR_RATIO): Define.
20378 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20379 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20380
20381 2014-04-14 Richard Biener <rguenther@suse.de>
20382
20383 PR middle-end/55022
20384 * fold-const.c (negate_expr_p): Don't negate directional rounding
20385 division.
20386 (fold_negate_expr): Likewise.
20387
20388 2014-04-14 Richard Biener <rguenther@suse.de>
20389
20390 PR tree-optimization/59817
20391 PR tree-optimization/60453
20392 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20393 recursion to catch all CHRECs in the scalar evolution and restrict
20394 the predicate for the remains appropriately.
20395
20396 2014-04-12 Catherine Moore <clm@codesourcery.com>
20397
20398 * config/mips/constraints.md: Add new register constraint "kb".
20399 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20400 (*movhi_internal): Likewise.
20401 (*movqi_internal): Likewise.
20402 * config/mips/mips.h (M16_STORE_REGS): New register class.
20403 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20404 (REG_CLASS_CONTENTS): Likewise.
20405 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20406
20407 2014-04-11 Tobias Burnus <burnus@net-b.de>
20408
20409 PR c/60194
20410 * doc/invoke.texi (-Wformat-signedness): Document it.
20411 (Wformat=2): Mention that this enables -Wformat-signedness.
20412
20413 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20414
20415 * common/config/epiphany/epiphany-common.c
20416 (epiphany_option_optimization_table): Enable section anchors by
20417 default at -O1 or higher.
20418 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20419 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20420 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20421 carries no extra cost.
20422 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20423 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20424 * config/epiphany/predicates.md (memclob_operand): New predicate.
20425 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20426 Use memclob_operand predicate and X constraint for operand 3.
20427
20428 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20429
20430 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20431 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20432 its operands.
20433
20434 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20435
20436 PR rtl-optimization/60651
20437 * mode-switching.c (optimize_mode_switching): Make sure to emit
20438 sets of a lower numbered entity before sets of a higher numbered
20439 entity to a mode of the same or lower priority.
20440 When creating a seginfo for a basic block that starts with a code
20441 label, move the insertion point past the code label.
20442 (new_seginfo): Document and enforce requirement that
20443 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20444 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20445 * doc/tm.texi: Regenerate.
20446
20447 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20448
20449 PR target/60811
20450 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20451
20452 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20453
20454 * BASE-VER: Set to 4.10.0.
20455
20456 2014-04-11 Tobias Burnus <burnus@net-b.de>
20457
20458 PR other/59055
20459 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20460 * doc/gcc.texi (Service): Update description in the @menu
20461 * doc/invoke.texi (Option Summary): Remove misplaced and
20462 duplicated @menu.
20463
20464 2014-04-11 Steve Ellcey <sellcey@mips.com>
20465 Jakub Jelinek <jakub@redhat.com>
20466
20467 PR middle-end/60556
20468 * expr.c (convert_move): Use emit_store_flag_force instead of
20469 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20470 argument to it.
20471
20472 2014-04-11 Richard Biener <rguenther@suse.de>
20473
20474 PR middle-end/60797
20475 * varasm.c (assemble_alias): Avoid endless error reporting
20476 recursion by setting TREE_ASM_WRITTEN.
20477
20478 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20479
20480 * config/s390/s390.md: Add a splitter for NOT rtx.
20481
20482 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20483
20484 PR rtl-optimization/60663
20485 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20486
20487 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20488 Jakub Jelinek <jakub@redhat.com>
20489
20490 PR lto/60567
20491 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20492 flag from decl_node to node.
20493
20494 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20495
20496 PR debug/60655
20497 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20498 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20499 ameliorating the cases where it can be.
20500
20501 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20502
20503 Revert
20504 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20505
20506 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20507 (loadsync_<mode>): Change mode.
20508 (load_quadpti, store_quadpti): New.
20509 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20510 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20511 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20512
20513 2014-04-09 Cong Hou <congh@google.com>
20514
20515 PR testsuite/60773
20516 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20517 documentation.
20518
20519 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20520
20521 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20522 instead of vnor to exploit possible fusion opportunity in the
20523 future.
20524 (altivec_expand_vec_perm_const_le): Likewise.
20525
20526 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20527
20528 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20529 (loadsync_<mode>): Change mode.
20530 (load_quadpti, store_quadpti): New.
20531 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20532 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20533
20534 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20535
20536 PR target/60763
20537 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20538 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20539 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20540
20541 2014-04-08 Richard Biener <rguenther@suse.de>
20542
20543 PR middle-end/60706
20544 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20545 a 64bit widest int print double-int similar to on HWI64 hosts.
20546
20547 2014-04-08 Richard Biener <rguenther@suse.de>
20548
20549 PR tree-optimization/60785
20550 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20551 default defs properly.
20552
20553 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20554
20555 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20556 (Weffc++): Likewise.
20557
20558 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20559
20560 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20561 set completep to false rather than true.
20562
20563 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20564
20565 PR target/60504
20566 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20567 ARM_TARGET2_DWARF_FORMAT.
20568
20569 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20570
20571 PR target/60609
20572 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20573 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20574 ADDR_DIFF_VEC.
20575
20576 2014-04-07 Richard Biener <rguenther@suse.de>
20577
20578 PR tree-optimization/60766
20579 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20580 (may_eliminate_iv): Convert cand_value_at result to desired type.
20581
20582 2014-04-07 Jason Merrill <jason@redhat.com>
20583
20584 PR c++/60731
20585 * common.opt (-fno-gnu-unique): Add.
20586 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20587
20588 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20589
20590 * haifa-sched.c: Fix outdated function reference and minor
20591 grammar errors in introductory comment.
20592
20593 2014-04-07 Richard Biener <rguenther@suse.de>
20594
20595 PR middle-end/60750
20596 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20597 for noreturn calls.
20598 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20599
20600 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20601
20602 PR debug/55794
20603 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20604 size accounting for thunks.
20605 (pa_asm_output_mi_thunk): Use final_start_function() and
20606 final_end_function() to output function start and end directives.
20607
20608 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20609
20610 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20611 device specific ISA/ feature information. Remove short_sp and
20612 errata_skip ds. Add avr_device_specific_features enum to have device
20613 specific info.
20614 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20615 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20616 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20617 updated device specific info.
20618 * config/avr/avr-mcus.def: Merge device specific details to
20619 dev_attribute field.
20620 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20621 errata_skip.
20622 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20623 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20624 assembler if RMW isa supported by current device.
20625 * config/avr/genmultilib.awk: Update as device info structure changed.
20626 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20627
20628 2014-04-04 Cong Hou <congh@google.com>
20629
20630 PR tree-optimization/60656
20631 * tree-vect-stmts.c (supportable_widening_operation):
20632 Fix a bug that elements in a vector with vect_used_by_reduction
20633 property are incorrectly reordered when the operation on it is not
20634 consistant with the one in reduction operation.
20635
20636 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20637
20638 PR rtl-optimization/60155
20639 * gcse.c (record_set_data): New function.
20640 (single_set_gcse): New function.
20641 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20642 (hoist_code): Likewise.
20643 (get_pressure_class_and_nregs): Likewise.
20644
20645 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20646
20647 * explow.c (probe_stack_range): Emit a final optimization blockage.
20648
20649 2014-04-04 Anthony Green <green@moxielogic.com>
20650
20651 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20652 typos.
20653
20654 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20655
20656 PR ipa/59626
20657 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20658 flags are set only during streaming.
20659 * ipa.c (process_references, walk_polymorphic_call_targets,
20660 symtab_remove_unreachable_nodes): Drop bodies of always inline
20661 after early inlining.
20662 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20663
20664 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20665 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20666
20667 PR debug/60655
20668 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20669 containing a NOT.
20670
20671 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20672
20673 PR bootstrap/60743
20674 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20675 duration.
20676 (cortex_a53_fdivd): Likewise.
20677
20678 2014-04-04 Martin Jambor <mjambor@suse.cz>
20679
20680 PR ipa/60640
20681 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20682 Adjust all callers.
20683 * cgraph.c (clone_of_p): Also return true if thunks match.
20684 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20685 cgraph_function_or_thunk_node and an obsolete comment.
20686 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20687 file.
20688 (build_function_decl_skip_args): Likewise.
20689 (set_new_clone_decl_and_node_flags): New function.
20690 (duplicate_thunk_for_node): Likewise.
20691 (redirect_edge_duplicating_thunks): Likewise.
20692 (cgraph_clone_node): New parameter args_to_skip, pass it to
20693 redirect_edge_duplicating_thunks which is called instead of
20694 cgraph_redirect_edge_callee.
20695 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20696 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20697
20698 2014-04-04 Jeff Law <law@redhat.com>
20699
20700 PR target/60657
20701 * config/arm/predicates.md (const_int_I_operand): New predicate.
20702 (const_int_M_operand): Similarly.
20703 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20704 const_int_operand.
20705 (insv_t2, extv_reg, extzv_t2): Likewise.
20706 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20707 (pop_multiple_with_writeback_and_return): Likewise.
20708 (vfp_pop_multiple_with_writeback): Likewise
20709
20710 2014-04-04 Richard Biener <rguenther@suse.de>
20711
20712 PR ipa/60746
20713 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20714 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20715 non-GIMPLE_LABELs.
20716 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20717 * gimplify.c (gimple_add_tmp_var_fn): New function.
20718 * gimple-expr.h (create_tmp_reg_fn): Declare.
20719 * gimple-expr.c (create_tmp_reg_fn): New function.
20720 * gimple-low.c (record_vars_into): Don't change cfun.
20721 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20722 code generation without cfun.
20723
20724 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20725
20726 PR bootstrap/60719
20727 * Makefile.in (install-driver): Fix shell scripting.
20728
20729 2014-04-03 Cong Hou <congh@google.com>
20730
20731 PR tree-optimization/60505
20732 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20733 threshold of number of iterations below which no vectorization
20734 will be done.
20735 * tree-vect-loop.c (new_loop_vec_info):
20736 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20737 * tree-vect-loop.c (vect_analyze_loop_operations):
20738 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20739 * tree-vect-loop.c (vect_transform_loop):
20740 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20741 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20742 of iterations of the loop and see if we should build the epilogue.
20743
20744 2014-04-03 Richard Biener <rguenther@suse.de>
20745
20746 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20747 (streamer_tree_cache_create): Adjust.
20748 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20749 to allow optional nodes array.
20750 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20751 (streamer_tree_cache_append): Likewise.
20752 (streamer_tree_cache_create): Create nodes array optionally
20753 as specified by parameter.
20754 * lto-streamer-out.c (create_output_block): Avoid maintaining
20755 the node array in the writer cache.
20756 (DFS_write_tree): Remove assertion.
20757 (produce_asm_for_decls): Free the out decl state hash table early.
20758 * lto-streamer-in.c (lto_data_in_create): Adjust for
20759 streamer_tree_cache_create prototype change.
20760
20761 2014-04-03 Richard Biener <rguenther@suse.de>
20762
20763 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20764 set TREE_CHAIN to NULL_TREE.
20765
20766 2014-04-03 Richard Biener <rguenther@suse.de>
20767
20768 PR tree-optimization/60740
20769 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20770 over all GIMPLE_COND operands.
20771
20772 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20773
20774 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20775 (Weffc++): Remove Scott's numbering, merge lists and reference
20776 Wnon-virtual-dtor.
20777
20778 2014-04-03 Nick Clifton <nickc@redhat.com>
20779
20780 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20781 properly.
20782
20783 2014-04-03 Martin Jambor <mjambor@suse.cz>
20784
20785 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20786 mention gcc_unreachable before failing.
20787 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20788 removed symbols.
20789
20790 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20791
20792 PR ipa/60659
20793 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20794 inconsistent code and instead mark the context inconsistent.
20795 (possible_polymorphic_call_targets): For inconsistent contexts
20796 return empty complete list.
20797
20798 2014-04-02 Anthony Green <green@moxielogic.com>
20799
20800 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20801 (extendqisi2, extendhisi2): Define.
20802 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20803 (WCHAR_TYPE): Change to unsigned int.
20804
20805 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20806
20807 PR tree-optimization/60733
20808 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20809 insertion point for PHI candidates to be the end of the feeding
20810 block for the PHI argument.
20811
20812 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20813
20814 PR rtl-optimization/60650
20815 * lra-constraints.c (process_alt_operands): Decrease reject for
20816 earlyclobber matching.
20817
20818 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20819
20820 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20821
20822 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20823
20824 * config/spu/spu.c (pad_bb): Do not crash when the last
20825 insn is CODE_FOR_blockage.
20826
20827 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20828
20829 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20830 lies outside the target mode.
20831
20832 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20833
20834 PR target/60735
20835 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20836 software floating point or no floating point registers, do not
20837 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20838 in GPRs that occurs after we tested for GPRs that would never be
20839 true.
20840
20841 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20842 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20843 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20844 specifically allow DDmode, since that does not use the SPE SIMD
20845 instructions.
20846
20847 2014-04-02 Richard Biener <rguenther@suse.de>
20848
20849 PR middle-end/60729
20850 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20851 MODE_INTs. Properly use negv_optab.
20852 (expand_abs): Likewise.
20853
20854 2014-04-02 Richard Biener <rguenther@suse.de>
20855
20856 PR bootstrap/60719
20857 * Makefile.in (install-driver): Guard extra installs with special
20858 names properly.
20859
20860 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20861
20862 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20863 Document vec_vgbbd.
20864
20865 2014-04-01 Richard Henderson <rth@redhat.com>
20866
20867 PR target/60704
20868 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20869 alternative enabled before register allocation.
20870
20871 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20872
20873 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20874 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20875 typo.
20876 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20877 (nios2_got_address): Update nios2_large_got_address call site.
20878 (nios2_delegitimize_address): New function.
20879 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20880 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20881 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20882
20883 2014-04-01 Martin Husemann <martin@duskware.de>
20884
20885 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20886 for -mabi=32.
20887
20888 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20889
20890 PR rtl-optimization/60604
20891 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20892 check from register_operand.
20893 (register_operand): Redefine in terms of general_operand.
20894 (nonmemory_operand): Use register_operand for the non-constant cases.
20895
20896 2014-04-01 Richard Biener <rguenther@suse.de>
20897
20898 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20899
20900 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20901
20902 * doc/invoke.texi (mapp-regs): Clarify.
20903
20904 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20905
20906 * config/i386/avx512fintrin.h (__v32hi): Define type.
20907 (__v64qi): Likewise.
20908 (_mm512_set1_epi8): Define.
20909 (_mm512_set1_epi16): Define.
20910 (_mm512_set4_epi32): Define.
20911 (_mm512_set4_epi64): Define.
20912 (_mm512_set4_pd): Define.
20913 (_mm512_set4_ps): Define.
20914 (_mm512_setr4_epi64): Define.
20915 (_mm512_setr4_epi32): Define.
20916 (_mm512_setr4_pd): Define.
20917 (_mm512_setr4_ps): Define.
20918 (_mm512_setzero_epi32): Define.
20919
20920 2014-03-31 Martin Jambor <mjambor@suse.cz>
20921
20922 PR middle-end/60647
20923 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20924 callsite_arguments_match_p. Updated all callers. Also check types of
20925 corresponding formal parameters and actual arguments.
20926 (not_all_callers_have_enough_arguments_p) Renamed to
20927 some_callers_have_mismatched_arguments_p.
20928
20929 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20930
20931 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20932
20933 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20934
20935 PR target/60034
20936 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20937 section anchor.
20938
20939 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20940
20941 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20942 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20943 Split out
20944 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20945 Use FMAMODE_NOVF512 mode iterator.
20946 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20947 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20948 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20949 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20950 Split out
20951 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20952 Use VF_128_256 mode iterator.
20953 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20954 Ditto.
20955
20956 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20957
20958 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20959 static chain if needed.
20960
20961 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20962
20963 PR target/60697
20964 * lra-constraints.c (index_part_to_reg): New.
20965 (process_address): Use it.
20966
20967 2014-03-27 Jeff Law <law@redhat.com>
20968 Jakub Jelinek <jakub@redhat.com>
20969
20970 PR target/60648
20971 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20972 gen_rtx_{PLUS,MULT} to build up the address expression.
20973
20974 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20975 creating non-canonical RTL.
20976
20977 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20978
20979 PR ipa/60243
20980 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20981 functions; reorganize to make cheap checks first.
20982 (inline_small_functions): Do not estimate growth when dumping;
20983 it is expensive.
20984 * ipa-inline.h (inline_summary): Add min_size.
20985 (growth_likely_positive): New function.
20986 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20987 (set_cond_stmt_execution_predicate): Cleanup.
20988 (estimate_edge_size_and_time): Compute min_size.
20989 (estimate_calls_size_and_time): Likewise.
20990 (estimate_node_size_and_time): Likewise.
20991 (inline_update_overall_summary): Update min_size.
20992 (do_estimate_edge_time): Likewise.
20993 (do_estimate_edge_size): Update.
20994 (do_estimate_edge_hints): Update.
20995 (growth_likely_positive): New function.
20996
20997 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20998
20999 PR target/60693
21000 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21001 also if addr has VOIDmode.
21002
21003 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21004
21005 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21006 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21007 Declare extern.
21008 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21009 instructions as well as AdvancedSIMD loads.
21010
21011 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21012
21013 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21014 Use crypto_aese type.
21015 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21016 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21017 crypto_aese, crypto_aesmc. Move to types.md.
21018 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21019 crypto_aesmc.
21020 * config/arm/iterators.md (crypto_type): Likewise.
21021
21022 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21023
21024 * cgraph.c: Include expr.h and tree-dfa.h.
21025 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21026 remove LHS.
21027
21028 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21029
21030 PR target/60675
21031 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21032 regs from checking multi-reg pseudos.
21033
21034 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21035
21036 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21037
21038 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21039
21040 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21041 if it would clobber the stack pointer, even temporarily.
21042
21043 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21044
21045 * mode-switching.c: Make small adjustments to the top comment.
21046
21047 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21048
21049 * config/rs6000/constraints.md (wD constraint): New constraint to
21050 match the constant integer to get the top DImode/DFmode out of a
21051 vector in a VSX register.
21052
21053 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21054 match the constant integer to get the top DImode/DFmode out of a
21055 vector in a VSX register.
21056
21057 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21058 for ISA 2.07.
21059
21060 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21061 vbpermq builtins.
21062
21063 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21064 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21065
21066 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21067 Optimize vec_extract of 64-bit values, where the value being
21068 extracted is in the top word, where we can use scalar
21069 instructions. Add direct move and store support. Combine the big
21070 endian/little endian vector select load support into a single insn.
21071 (vsx_extract_<mode>_internal1): Likewise.
21072 (vsx_extract_<mode>_internal2): Likewise.
21073 (vsx_extract_<mode>_load): Likewise.
21074 (vsx_extract_<mode>_store): Likewise.
21075 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21076 combined into vsx_extract_<mode>_load.
21077 (vsx_extract_<mode>_one_le): Likewise.
21078
21079 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21080 define the top 64-bit vector element.
21081
21082 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21083 constraint.
21084
21085 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21086 Document vec_vbpermq builtin.
21087
21088 PR target/60672
21089 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21090 enable use of xxsldwi and xxpermdi builtin functions.
21091 (vec_xxpermdi): Likewise.
21092
21093 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21094 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21095
21096 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21097
21098 PR rtl-optimization/60650
21099 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21100 first_p. Use it.
21101 (find_spills_for): New.
21102 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21103 Spill all pseudos on the second iteration.
21104
21105 2014-03-27 Marek Polacek <polacek@redhat.com>
21106
21107 PR c/50347
21108 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21109 types.
21110
21111 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21112
21113 * config/s390/s390.c (s390_can_use_return_insn): Check for
21114 call-saved FPRs on 31 bit.
21115
21116 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21117
21118 PR middle-end/60682
21119 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21120 if they need regimplification, just drop them instead of
21121 calling gimple_regimplify_operands on them.
21122
21123 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21124
21125 PR target/60580
21126 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21127 (aarch64_frame_pointer_required): Adjust logic.
21128 (aarch64_can_eliminate): Adjust logic.
21129 (aarch64_override_options_after_change): Adjust logic.
21130
21131 2014-03-27 Dehao Chen <dehao@google.com>
21132
21133 * ipa-inline.c (early_inliner): Update node's inline info.
21134
21135 2014-03-26 Dehao Chen <dehao@google.com>
21136
21137 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21138 compiler inserted conditional jumps for NAN float check.
21139
21140 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21141
21142 * ubsan.h (ubsan_create_data): Change second argument's type
21143 to const location_t *.
21144 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21145 _("<unknown>").
21146 (ubsan_create_data): Change second argument to const location_t *PLOC.
21147 Create Loc field whenever PLOC is non-NULL.
21148 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21149 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21150 callers.
21151
21152 PR other/59545
21153 * real.c (real_to_integer2): Change type of low to UHWI.
21154
21155 2014-03-26 Tobias Burnus <burnus@net-b.de>
21156
21157 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21158 (CILK_SELF_SPECS): New define.
21159 (driver_self_specs): Use it.
21160
21161 2014-03-26 Richard Biener <rguenther@suse.de>
21162
21163 * tree-pretty-print.c (percent_K_format): Implement special
21164 case for LTO and its stripped down BLOCK tree.
21165
21166 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21167
21168 PR sanitizer/60636
21169 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21170
21171 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21172 one range is range_int_cst_p, but not both, at least optimize
21173 addition/subtraction of 0 and multiplication by 0 or 1.
21174 * gimple-fold.c (gimple_fold_call): Fold
21175 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21176 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21177 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21178
21179 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21180
21181 PR rtl-optimization/60452
21182 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21183 <case REG>: Return 1 for invalid offsets from the frame pointer.
21184
21185 2014-03-26 Marek Polacek <polacek@redhat.com>
21186
21187 PR c/37428
21188 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21189 a structure/union.
21190
21191 2014-03-26 Marek Polacek <polacek@redhat.com>
21192
21193 PR c/39525
21194 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21195 field members.
21196
21197 2014-03-26 Marek Polacek <polacek@redhat.com>
21198
21199 PR other/59545
21200 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21201 multiplication in unsigned type.
21202
21203 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21204
21205 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21206
21207 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21208
21209 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21210
21211 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21212
21213 PR ipa/60315
21214 * cif-code.def (UNREACHABLE) New code.
21215 * ipa-inline.c (inline_small_functions): Skip edges to
21216 __builtlin_unreachable.
21217 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21218 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21219 predicate to __bulitin_unreachable.
21220 (set_cond_stmt_execution_predicate): Fix issue when
21221 invert_tree_comparison returns ERROR_MARK.
21222 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21223 propagate to inline clones.
21224 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21225 to unreachable.
21226 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21227 * cgraphclones.c (cgraph_clone_node): If call destination is already
21228 ureachable, do not redirect it back.
21229 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21230 unreachable.
21231
21232 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21233
21234 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21235 Do not modify inline clones.
21236
21237 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21238
21239 * config/i386/i386.md (general_sext_operand): New mode attr.
21240 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21241 don't generate (sign_extend (const_int)).
21242 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21243 operands[2]. Use We constraint instead of <i> and
21244 <general_sext_operand> predicate instead of <general_operand>.
21245 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21246 * config/i386/constraints.md (We): New constraint.
21247 * config/i386/predicates.md (x86_64_sext_operand,
21248 sext_operand): New predicates.
21249
21250 2014-03-25 Martin Jambor <mjambor@suse.cz>
21251
21252 PR ipa/60600
21253 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21254 inconsistent devirtualizations to __builtin_unreachable.
21255
21256 2014-03-25 Marek Polacek <polacek@redhat.com>
21257
21258 PR c/35449
21259 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21260
21261 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21262
21263 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21264 order of elements for big-endian.
21265
21266 2014-03-25 Richard Biener <rguenther@suse.de>
21267
21268 PR middle-end/60635
21269 * gimplify-me.c (gimple_regimplify_operands): Update the
21270 re-gimplifed stmt.
21271
21272 2014-03-25 Martin Jambor <mjambor@suse.cz>
21273
21274 PR ipa/59176
21275 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21276 (lto_output_varpool_node): Likewise.
21277 (input_overwrite_node): Likewise.
21278 (input_varpool_node): Likewise.
21279
21280 2014-03-25 Richard Biener <rguenther@suse.de>
21281
21282 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21283 (run_gcc): Likewise.
21284
21285 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21286
21287 * combine.c (simplify_compare_const): Add MODE argument.
21288 Handle mode_width 0 as very large mode_width.
21289 (try_combine, simplify_comparison): Adjust callers.
21290
21291 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21292 type to avoid signed integer overflow.
21293 * explow.c (plus_constant): Likewise.
21294
21295 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21296
21297 * doc/generic.texi: Correct typos.
21298
21299 2014-03-24 Tobias Burnus <burnus@net-b.de>
21300
21301 * doc/invoke.texi (-flto): Expand section about
21302 using static libraries with LTO.
21303
21304 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21305
21306 PR rtl-optimization/60501
21307 * optabs.def (addptr3_optab): New optab.
21308 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21309 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21310 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21311
21312 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21313
21314 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21315
21316 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21317
21318 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21319 _mm512_set1_pd.
21320
21321 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21322 (_mm256_undefined_ps): Define.
21323 (_mm256_undefined_pd): Define.
21324 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21325 (_mm_undefined_pd): Define.
21326 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21327 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21328 (_mm512_undefined_ps): Define.
21329 (_mm512_undefined_pd): Define.
21330 Use _mm*_undefined_*.
21331 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21332
21333 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21334
21335 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21336 (lshr_simd): DI mode added.
21337 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21338 (aarch64_ushr_simddi): Likewise.
21339 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21340 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21341 (vshrd_n_u64): Likewise.
21342
21343 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21344
21345 * Makefile.in (s-macro_list): Depend on cc1.
21346
21347 2014-03-23 Teresa Johnson <tejohnson@google.com>
21348
21349 * ipa-utils.c (ipa_print_order): Use specified dump file.
21350
21351 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21352
21353 PR rtl-optimization/60601
21354 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21355
21356 * gcc.c (eval_spec_function): Initialize save_growing_value.
21357
21358 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21359
21360 PR sanitizer/60613
21361 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21362 code == MINUS_EXPR, never swap op0 with op1.
21363
21364 * toplev.c (init_local_tick): Avoid signed integer multiplication
21365 overflow.
21366 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21367 shift by first operand's bitsize.
21368
21369 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21370
21371 PR target/60610
21372 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21373 redefine to 1 or 0.
21374 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21375 TARGET_ISA_64BIT_P(x).
21376
21377 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21378
21379 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21380 pattern for vector nor instead of subtract from splat(-1).
21381 (altivec_expand_vec_perm_const_le): Likewise.
21382
21383 2014-03-21 Richard Henderson <rth@twiddle.net>
21384
21385 PR target/60598
21386 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21387 related insns after epilogue_completed.
21388
21389 2014-03-21 Martin Jambor <mjambor@suse.cz>
21390
21391 PR ipa/59176
21392 * cgraph.h (symtab_node): New flag body_removed.
21393 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21394 when removing bodies.
21395 * symtab.c (dump_symtab_base): Dump body_removed flag.
21396 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21397 had their bodies removed.
21398
21399 2014-03-21 Martin Jambor <mjambor@suse.cz>
21400
21401 PR ipa/60419
21402 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21403 in the border.
21404
21405 2014-03-21 Richard Biener <rguenther@suse.de>
21406
21407 PR tree-optimization/60577
21408 * tree-core.h (struct tree_base): Document nothrow_flag use
21409 in DECL_NONALIASED.
21410 * tree.h (DECL_NONALIASED): New.
21411 (may_be_aliased): Adjust.
21412 * coverage.c (build_var): Set DECL_NONALIASED.
21413
21414 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21415
21416 * expr.c (expand_expr_real_1): Remove outdated comment.
21417
21418 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21419
21420 PR middle-end/60597
21421 * ira.c (adjust_cleared_regs): Call copy_rtx on
21422 *reg_equiv[REGNO (loc)].src_p before passing it to
21423 simplify_replace_fn_rtx.
21424
21425 PR target/60568
21426 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21427 into CONST, put pic register as first operand of PLUS. Use
21428 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21429
21430 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21431
21432 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21433
21434 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21435
21436 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21437 around for store forwarding issue in the FPU on the UT699.
21438 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21439 loads and operations if -mfix-ut699 is specified.
21440 (divtf3_hq): Tweak attribute.
21441 (sqrttf2_hq): Likewise.
21442
21443 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21444
21445 * calls.c (store_one_arg): Remove incorrect const qualification on the
21446 type of the temporary.
21447 * cfgexpand.c (expand_return): Likewise.
21448 * expr.c (expand_constructor): Likewise.
21449 (expand_expr_real_1): Likewise.
21450
21451 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21452
21453 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21454 of parts.
21455
21456 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21457
21458 PR target/60039
21459 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21460
21461 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21462
21463 * config/arm/aarch-common-protos.h
21464 (alu_cost_table): Fix spelling of "extend".
21465 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21466
21467 2014-03-19 Richard Biener <rguenther@suse.de>
21468
21469 PR middle-end/60553
21470 * tree-core.h (tree_type_common): Re-order pointer members
21471 to reduce recursion depth during GC walks.
21472
21473 2014-03-19 Marek Polacek <polacek@redhat.com>
21474
21475 PR sanitizer/60569
21476 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21477 before accessing it.
21478
21479 2014-03-19 Richard Biener <rguenther@suse.de>
21480
21481 PR lto/59543
21482 * lto-streamer-in.c (input_function): In WPA stage do not drop
21483 debug stmts.
21484
21485 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21486
21487 PR tree-optimization/60559
21488 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21489 with build_zero_cst assignment.
21490
21491 2014-03-18 Kai Tietz <ktietz@redhat.com>
21492
21493 PR rtl-optimization/56356
21494 * sdbout.c (sdbout_parms): Verify that parms'
21495 incoming argument is valid.
21496 (sdbout_reg_parms): Likewise.
21497
21498 2014-03-18 Richard Henderson <rth@redhat.com>
21499
21500 PR target/60562
21501 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21502 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21503 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21504
21505 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21506
21507 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21508 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21509 Italicize plugin event names in description. Explain that
21510 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21511 Remind that no GCC functions should be called after PLUGIN_FINISH.
21512 Explain what pragmas with expansion are.
21513
21514 2014-03-18 Martin Liska <mliska@suse.cz>
21515
21516 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21517 gimple call statement is update.
21518 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21519 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21520
21521 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21522
21523 PR sanitizer/60557
21524 * ubsan.c (ubsan_instrument_unreachable): Call
21525 initialize_sanitizer_builtins.
21526 (ubsan_pass): Likewise.
21527
21528 PR sanitizer/60535
21529 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21530 varpool_finalize_decl instead of rest_of_decl_compilation.
21531
21532 2014-03-18 Richard Biener <rguenther@suse.de>
21533
21534 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21535 by using bitmap_and_compl instead of bitmap_and_compl_into.
21536 (df_rd_transfer_function): Likewise.
21537
21538 2014-03-18 Richard Biener <rguenther@suse.de>
21539
21540 * doc/lto.texi (fresolution): Fix typo.
21541
21542 2014-03-18 Richard Biener <rguenther@suse.de>
21543
21544 * doc/invoke.texi (flto): Update for changes in 4.9.
21545
21546 2014-03-18 Richard Biener <rguenther@suse.de>
21547
21548 * doc/loop.texi: Remove section on the removed lambda framework.
21549 Update loop docs with recent changes in preserving loop structure.
21550
21551 2014-03-18 Richard Biener <rguenther@suse.de>
21552
21553 * doc/lto.texi (-fresolution): Document.
21554
21555 2014-03-18 Richard Biener <rguenther@suse.de>
21556
21557 * doc/contrib.texi: Adjust my name.
21558
21559 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21560
21561 PR ipa/58721
21562 * internal-fn.c: Include diagnostic-core.h.
21563 (expand_BUILTIN_EXPECT): New function.
21564 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21565 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21566 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21567 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21568 IFN_BUILTIN_EXPECT.
21569 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21570 Revert 3 argument __builtin_expect code.
21571 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21572 * gimple-fold.c (gimple_fold_call): Likewise.
21573 * tree.h (fold_builtin_expect): New prototype.
21574 * builtins.c (build_builtin_expect_predicate): Add predictor
21575 argument, if non-NULL, create 3 argument __builtin_expect.
21576 (fold_builtin_expect): No longer static. Add ARG2 argument,
21577 pass it through to build_builtin_expect_predicate.
21578 (fold_builtin_2): Adjust caller.
21579 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21580 * internal-fn.def (BUILTIN_EXPECT): New.
21581
21582 2014-03-18 Tobias Burnus <burnus@net-b.de>
21583
21584 PR ipa/58721
21585 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21586 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21587 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21588
21589 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21590
21591 PR ipa/58721
21592 * predict.c (combine_predictions_for_bb): Fix up formatting.
21593 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21594 fill what it points to if non-NULL.
21595 (tree_predict_by_opcode): Adjust caller, use the predictor.
21596 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21597
21598 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21599
21600 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21601 proper constant for the store mode.
21602
21603 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21604
21605 * symtab.c (change_decl_assembler_name): Fix transparent alias
21606 chain construction.
21607
21608 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21609
21610 * config/aarch64/aarch64.c: Correct the comments about the
21611 aarch64 stack layout.
21612
21613 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21614
21615 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21616 check for GF_OMP_FOR_KIND_FOR.
21617
21618 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21619
21620 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21621 ymm and zmm register names.
21622
21623 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21624
21625 PR target/60516
21626 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21627 note creation for the 2010-08-31 changes.
21628
21629 2014-03-17 Marek Polacek <polacek@redhat.com>
21630
21631 PR middle-end/60534
21632 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21633 as -fno-tree-loop-vectorize.
21634 (expand_omp_simd): Likewise.
21635
21636 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21637
21638 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21639 (eligible_for_call_delay): New prototype.
21640 * config/sparc/sparc.c (tls_call_delay): Rename into...
21641 (eligible_for_call_delay): ...this. Return false if the instruction
21642 cannot be put in the delay slot of a branch.
21643 (eligible_for_restore_insn): Simplify.
21644 (eligible_for_return_delay): Return false if the instruction cannot be
21645 put in the delay slot of a branch and simplify.
21646 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21647 put in the delay slot of a branch.
21648 * config/sparc/sparc.md (fix_ut699): New attribute.
21649 (tls_call_delay): Delete.
21650 (in_call_delay): Reimplement.
21651 (eligible_for_sibcall_delay): Rename into...
21652 (in_sibcall_delay): ...this.
21653 (eligible_for_return_delay): Rename into...
21654 (in_return_delay): ...this.
21655 (in_branch_delay): Reimplement.
21656 (in_uncond_branch_delay): Delete.
21657 (in_annul_branch_delay): Delete.
21658
21659 2014-03-14 Richard Henderson <rth@redhat.com>
21660
21661 PR target/60525
21662 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21663 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21664 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21665 (floathi splitters): Remove.
21666 (float<SWI48x>xf2): New pattern.
21667 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21668 code that tried to handle DImode for 32-bit, but which was excluded
21669 by the pattern's condition. Drop allocation of stack temporary.
21670 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21671 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21672 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21673 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21674 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21675 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21676 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21677 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21678 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21679 (*float<SWI48x><X87MODEF>2_i387): Remove.
21680 (all float _with_temp splitters): Remove.
21681 (*float<SWI48x><MODEF>2_i387): New pattern.
21682 (*float<SWI48><MODEF>2_sse): New pattern.
21683 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21684 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21685
21686 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21687 Marek Polacek <polacek@redhat.com>
21688
21689 PR middle-end/60484
21690 * common.opt (dump_base_name_prefixed): New Variable.
21691 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21692 if x_dump_base_name_prefixed is already set, set it at the end.
21693
21694 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21695
21696 PR rtl-optimization/60508
21697 * lra-constraints.c (get_reload_reg): Add new parameter
21698 in_subreg_p.
21699 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21700 Pass the new parameter values.
21701
21702 2014-03-14 Richard Biener <rguenther@suse.de>
21703
21704 * common.opt: Revert unintented changes from r205065.
21705 * opts.c: Likewise.
21706
21707 2014-03-14 Richard Biener <rguenther@suse.de>
21708
21709 PR middle-end/60518
21710 * cfghooks.c (split_block): Properly adjust all loops the
21711 block was a latch of.
21712
21713 2014-03-14 Martin Jambor <mjambor@suse.cz>
21714
21715 PR lto/60461
21716 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21717 and simplify it.
21718
21719 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21720
21721 PR target/59396
21722 * config/avr/avr.c (avr_set_current_function): Pass function name
21723 through default_strip_name_encoding before sanity checking instead
21724 of skipping the first char of the assembler name.
21725
21726 2014-03-13 Richard Henderson <rth@redhat.com>
21727
21728 PR debug/60438
21729 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21730 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21731 * config/i386/i386-protos.h: Likewise.
21732 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21733 in the expander instead of a splitter.
21734 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21735 any possibility of requiring a memory.
21736 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21737 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21738 (fp branch splitters): Update for ix86_split_fp_branch.
21739 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21740 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21741 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21742 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21743 (*fop_<MODEF>_3_i387): Likewise.
21744 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21745 (splitters for the fop_* register patterns): Remove.
21746 (fscalexf4_i387): Rename from *fscalexf4_i387.
21747 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21748
21749 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21750
21751 PR tree-optimization/59779
21752 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21753 type for bitsize and maxsize instead of HOST_WIDE_INT.
21754
21755 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21756
21757 PR rtl-optimization/57320
21758 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21759 the CFG after thread_prologue_and_epilogue_insns.
21760
21761 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21762
21763 PR rtl-optimization/57189
21764 * lra-constraints.c (process_alt_operands): Disfavor spilling
21765 vector pseudos.
21766
21767 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21768
21769 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21770
21771 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21772
21773 PR tree-optimization/59025
21774 PR middle-end/60418
21775 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21776 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21777
21778 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21779
21780 PR target/60486
21781 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21782 calls of avr_out_plus_1.
21783
21784 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21785
21786 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21787 BB's single pred and update the father loop's latch info later.
21788
21789 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21790
21791 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21792 (VEC_M): Likewise.
21793 (VEC_N): Likewise.
21794 (VEC_R): Likewise.
21795 (VEC_base): Likewise.
21796 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21797 registers, we need to swap double words in little endian mode.
21798
21799 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21800 to be a container mode for 128-bit integer operations added in ISA
21801 2.07. Unlike TImode and PTImode, the preferred register set is
21802 the Altivec/VMX registers for the 128-bit operations.
21803
21804 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21805 declarations.
21806 (rs6000_split_128bit_ok_p): Likewise.
21807
21808 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21809 macros for creating ISA 2.07 normal and overloaded builtin
21810 functions with 3 arguments.
21811 (BU_P8V_OVERLOAD_3): Likewise.
21812 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21813 for use as overloaded functions.
21814 (VPERM_1TI_UNS): Likewise.
21815 (VSEL_1TI): Likewise.
21816 (VSEL_1TI_UNS): Likewise.
21817 (ST_INTERNAL_1ti): Likewise.
21818 (LD_INTERNAL_1ti): Likewise.
21819 (XXSEL_1TI): Likewise.
21820 (XXSEL_1TI_UNS): Likewise.
21821 (VPERM_1TI): Likewise.
21822 (VPERM_1TI_UNS): Likewise.
21823 (XXPERMDI_1TI): Likewise.
21824 (SET_1TI): Likewise.
21825 (LXVD2X_V1TI): Likewise.
21826 (STXVD2X_V1TI): Likewise.
21827 (VEC_INIT_V1TI): Likewise.
21828 (VEC_SET_V1TI): Likewise.
21829 (VEC_EXT_V1TI): Likewise.
21830 (EQV_V1TI): Likewise.
21831 (NAND_V1TI): Likewise.
21832 (ORC_V1TI): Likewise.
21833 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21834 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21835 overloaded builtin.
21836 (VADDUQM): Likewise.
21837 (VSUBCUQ): Likewise.
21838 (VADDEUQM): Likewise.
21839 (VADDECUQ): Likewise.
21840 (VSUBEUQM): Likewise.
21841 (VSUBECUQ): Likewise.
21842
21843 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21844 __int128_t and __uint128_t types.
21845 (__uint128_type): Likewise.
21846 (altivec_categorize_keyword): Add support for vector __int128_t,
21847 vector __uint128_t, vector __int128, and vector unsigned __int128
21848 as a container type for TImode operations that need to be done in
21849 VSX/Altivec registers.
21850 (rs6000_macro_to_expand): Likewise.
21851 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21852 to support 128-bit integer instructions vaddcuq, vadduqm,
21853 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21854 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21855
21856 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21857 for V1TImode, and set up preferences to use VSX/Altivec registers.
21858 Setup VSX reload handlers.
21859 (rs6000_debug_reg_global): Likewise.
21860 (rs6000_init_hard_regno_mode_ok): Likewise.
21861 (rs6000_preferred_simd_mode): Likewise.
21862 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21863 (easy_altivec_constant): Likewise.
21864 (output_vec_const_move): Likewise.
21865 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21866 simple move.
21867 (rs6000_expand_vector_extract): Likewise.
21868 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21869 addressing.
21870 (rs6000_const_vec): Add support for V1TImode.
21871 (rs6000_emit_le_vsx_load): Swap double words when loading or
21872 storing TImode/V1TImode.
21873 (rs6000_emit_le_vsx_store): Likewise.
21874 (rs6000_emit_le_vsx_move): Likewise.
21875 (rs6000_emit_move): Add support for V1TImode.
21876 (altivec_expand_ld_builtin): Likewise.
21877 (altivec_expand_st_builtin): Likewise.
21878 (altivec_expand_vec_init_builtin): Likewise.
21879 (altivec_expand_builtin): Likewise.
21880 (rs6000_init_builtins): Add support for V1TImode type. Add
21881 support for ISA 2.07 128-bit integer builtins. Define type names
21882 for the VSX/Altivec vector types.
21883 (altivec_init_builtins): Add support for overloaded vector
21884 functions with V1TImode type.
21885 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21886 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21887 external function.
21888 (rs6000_split_128bit_ok_p): Likewise.
21889 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21890 __int128_t and vector __uint128_t.
21891
21892 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21893 and mode attributes.
21894 (VSX_M): Likewise.
21895 (VSX_M2): Likewise.
21896 (VSm): Likewise.
21897 (VSs): Likewise.
21898 (VSr): Likewise.
21899 (VSv): Likewise.
21900 (VS_scalar): Likewise.
21901 (VS_double): Likewise.
21902 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21903
21904 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21905 we support the ISA 2.07 128-bit integer arithmetic instructions.
21906 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21907 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21908 and TImode types for use with the builtin functions.
21909 (V1TI_type_node): Likewise.
21910 (unsigned_V1TI_type_node): Likewise.
21911 (intTI_type_internal_node): Likewise.
21912 (uintTI_type_internal_node): Likewise.
21913
21914 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21915 128-bit builtin functions.
21916 (UNSPEC_VADDEUQM): Likewise.
21917 (UNSPEC_VADDECUQ): Likewise.
21918 (UNSPEC_VSUBCUQ): Likewise.
21919 (UNSPEC_VSUBEUQM): Likewise.
21920 (UNSPEC_VSUBECUQ): Likewise.
21921 (VM): Add V1TImode to vector mode iterators.
21922 (VM2): Likewise.
21923 (VI_unit): Likewise.
21924 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21925 (altivec_vaddcuq): Likewise.
21926 (altivec_vsubuqm): Likewise.
21927 (altivec_vsubcuq): Likewise.
21928 (altivec_vaddeuqm): Likewise.
21929 (altivec_vaddecuq): Likewise.
21930 (altivec_vsubeuqm): Likewise.
21931 (altivec_vsubecuq): Likewise.
21932
21933 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21934 mode iterators.
21935 (BOOL_128): Likewise.
21936 (BOOL_REGS_OUTPUT): Likewise.
21937 (BOOL_REGS_OP1): Likewise.
21938 (BOOL_REGS_OP2): Likewise.
21939 (BOOL_REGS_UNARY): Likewise.
21940 (BOOL_REGS_AND_CR0): Likewise.
21941
21942 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21943 128-bit integer builtin support.
21944 (vec_vadduqm): Likewise.
21945 (vec_vaddecuq): Likewise.
21946 (vec_vaddeuqm): Likewise.
21947 (vec_vsubecuq): Likewise.
21948 (vec_vsubeuqm): Likewise.
21949 (vec_vsubcuq): Likewise.
21950 (vec_vsubuqm): Likewise.
21951
21952 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21953 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21954 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21955 128-bit integer add/subtract to ISA 2.07.
21956
21957 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21958
21959 * config/arc/arc.c (arc_predicate_delay_insns):
21960 Fix third argument passed to conditionalize_nonjump.
21961
21962 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21963
21964 * config/aarch64/aarch64-builtins.c
21965 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21966 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21967 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21968 instead of __builtin_lfloor.
21969 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21970
21971 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21972
21973 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21974 (tree_ssa_ifcombine_bb_1): New function.
21975 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21976 is an empty forwarder block to then_bb or vice versa and then_bb
21977 and else_bb are effectively swapped.
21978
21979 2014-03-12 Christian Bruel <christian.bruel@st.com>
21980
21981 PR target/60264
21982 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21983 REG_CFA_DEF_CFA note.
21984 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21985 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21986
21987 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21988
21989 PR tree-optimization/60454
21990 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21991
21992 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21993
21994 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21995 Do not define target_cpu_default2 to generic.
21996 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21997 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21998 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21999
22000 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22001 Marc Glisse <marc.glisse@inria.fr>
22002
22003 PR tree-optimization/60502
22004 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22005 instead of build_low_bits_mask.
22006
22007 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22008
22009 PR middle-end/60482
22010 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22011 if there are multiple uses, but op doesn't live on E edge.
22012 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22013 clobber stmts before __builtin_unreachable.
22014
22015 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22016
22017 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22018 hard_frame_pointer_rtx.
22019 * cse.c (cse_insn): Remove volatile check.
22020 * cselib.c (cselib_process_insn): Likewise.
22021 * dse.c (scan_insn): Likewise.
22022
22023 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22024
22025 * config/arc/arc.c (conditionalize_nonjump): New function,
22026 broken out of ...
22027 (arc_ifcvt): ... this.
22028 (arc_predicate_delay_insns): Use it.
22029
22030 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22031
22032 * config/arc/predicates.md (extend_operand): During/after reload,
22033 allow const_int_operand.
22034 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22035 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22036 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22037 to "i".
22038 (umulsi3_highpart_i): Likewise.
22039
22040 2014-03-11 Richard Biener <rguenther@suse.de>
22041
22042 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22043 Add asserts to guard possible wrong-code bugs.
22044
22045 2014-03-11 Richard Biener <rguenther@suse.de>
22046
22047 PR tree-optimization/60429
22048 PR tree-optimization/60485
22049 * tree-ssa-structalias.c (set_union_with_increment): Properly
22050 take into account all fields that overlap the shifted vars.
22051 (do_sd_constraint): Likewise.
22052 (do_ds_constraint): Likewise.
22053 (get_constraint_for_ptr_offset): Likewise.
22054
22055 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22056
22057 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22058 (nios2_compute_frame_layout):
22059 Add calculation of cfun->machine->fp_save_offset.
22060 (nios2_expand_prologue): Correct setting of frame pointer register
22061 in prologue.
22062 (nios2_expand_epilogue): Update recovery of stack pointer from
22063 frame pointer accordingly.
22064 (nios2_initial_elimination_offset): Update calculation of offset
22065 for eliminating to HARD_FRAME_POINTER_REGNUM.
22066
22067 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22068
22069 PR ipa/60457
22070 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22071 cgraph_get_create_node on VAR_DECLs.
22072
22073 2014-03-10 Richard Biener <rguenther@suse.de>
22074
22075 PR middle-end/60474
22076 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22077
22078 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22079
22080 * config/vms/vms.opt (vms_float_format): New variable.
22081
22082 2014-03-08 Tobias Burnus <burnus@net-b.de>
22083
22084 * doc/invoke.texi (-fcilkplus): Update implementation status.
22085
22086 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22087 Richard Biener <rguenther@suse.de>
22088
22089 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22090 consistently accross all TUs.
22091 (run_gcc): Enable -fshort-double automatically at link at link-time
22092 and disallow override.
22093
22094 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22095
22096 PR target/58271
22097 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22098 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22099 if they can't be used.
22100
22101 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22102
22103 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22104 for Solaris 11/x86 ld.
22105 * configure: Regenerate.
22106
22107 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22108
22109 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22110 (LIB_TLS_SPEC): Save as ld_tls_libs.
22111 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22112 (HAVE_AS_IX86_TLSLDM): New test.
22113 * configure, config.in: Regenerate.
22114 * config/i386/i386.c (legitimize_tls_address): Fall back to
22115 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22116 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22117 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22118 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22119
22120 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22121
22122 * common.opt (fira-loop-pressure): Mark as optimization.
22123
22124 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22125
22126 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22127 an OpenMP mappable type.
22128
22129 2014-03-06 Matthias Klose <doko@ubuntu.com>
22130
22131 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22132 MULTILIB_OSDIRNAMES is not defined.
22133
22134 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22135 Meador Inge <meadori@codesourcery.com>
22136
22137 PR target/58595
22138 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22139 (arm_legitimize_address): Call legitimize_tls_address for any
22140 arm_tls_referenced_p expression, handle constant addend. Call it
22141 before testing for !TARGET_ARM.
22142 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22143
22144 2014-03-06 Richard Biener <rguenther@suse.de>
22145
22146 PR middle-end/60445
22147 PR lto/60424
22148 PR lto/60427
22149 Revert
22150 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22151
22152 * tree-streamer.c (record_common_node): Assert we don't record
22153 nodes with type double.
22154 (preload_common_node): Skip type double, complex double and double
22155 pointer since it is now frontend dependent due to fshort-double option.
22156
22157 2014-03-06 Richard Biener <rguenther@suse.de>
22158
22159 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22160 or -fno-lto is specified and the linker has full plugin support.
22161 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22162 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22163 * lto-wrapper.c (merge_and_complain): Merge compile-time
22164 optimization levels.
22165 (run_gcc): And pass it through to the link options.
22166
22167 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22168
22169 PR debug/60381
22170 Revert:
22171 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22172 PR debug/59992
22173 * cselib.c (remove_useless_values): Skip to avoid quadratic
22174 behavior if the condition moved from...
22175 (cselib_process_insn): ... here holds.
22176
22177 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22178
22179 PR plugins/59335
22180 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22181 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22182
22183 PR plugins/59335
22184 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22185 (TM_H): Add x86-tune.def.
22186
22187 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22188
22189 * config/aarch64/aarch64.c (generic_tunings):
22190 Use cortexa57_extra_costs.
22191
22192 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22193
22194 PR lto/60404
22195 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22196 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22197 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22198 cost for in_lto_p.
22199
22200 2014-03-04 Heiher <r@hev.cc>
22201
22202 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22203 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22204
22205 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22206
22207 * config/i386/predicates.md (const2356_operand): Change to ...
22208 (const2367_operand): ... this.
22209 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22210 const2367_operand.
22211 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22212 (*avx512pf_scatterpf<mode>sf): Ditto.
22213 (avx512pf_scatterpf<mode>df): Ditto.
22214 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22215 (*avx512pf_scatterpf<mode>df): Ditto.
22216 * config/i386/i386.c (ix86_expand_builtin): Update
22217 incorrect hint operand error message.
22218
22219 2014-03-04 Richard Biener <rguenther@suse.de>
22220
22221 * lto-section-in.c (lto_get_section_data): Fix const cast.
22222
22223 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22224
22225 * tree-streamer.c (record_common_node): Assert we don't record
22226 nodes with type double.
22227 (preload_common_node): Skip type double, complex double and double
22228 pointer since it is now frontend dependent due to fshort-double option.
22229
22230 2014-03-04 Richard Biener <rguenther@suse.de>
22231
22232 PR lto/60405
22233 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22234 (lto_input_toplevel_asms): Likewise.
22235 * lto-section-in.c (lto_get_section_data): Instead do it here
22236 for every section.
22237
22238 2014-03-04 Richard Biener <rguenther@suse.de>
22239
22240 PR tree-optimization/60382
22241 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22242 dead PHIs a reduction.
22243
22244 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22245
22246 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22247 hint value.
22248 (_mm_prefetch): Move out of GCC target("sse") pragma.
22249 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22250 GCC target("prfchw") pragma.
22251 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22252 for locality <= 2.
22253 * config/i386/i386.c (ix86_option_override_internal): Enable
22254 -mprfchw with -mprefetchwt1.
22255
22256 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22257
22258 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22259 Mark as varying.
22260
22261 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22262
22263 * opts.h (CL_PCH_IGNORE): Define.
22264 * targhooks.c (option_affects_pch_p):
22265 Return false for options that have CL_PCH_IGNORE set.
22266 * opt-functions.awk: Process PchIgnore.
22267 * doc/options.texi: Document PchIgnore.
22268
22269 * config/arc/arc.opt (misize): Add PchIgnore property.
22270
22271 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22272
22273 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22274 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22275 constraint on constants to permit them being loaded into
22276 GENERAL_REGS or BASE_REGS.
22277
22278 2014-03-03 Nick Clifton <nickc@redhat.com>
22279
22280 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22281 anti-cacnonical alternatives.
22282 (negandhi3_real): New pattern.
22283 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22284
22285 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22286
22287 * config/avr/avr-mcus.def: Remove atxmega16x1.
22288 * config/avr/avr-tables.opt: Regenerate.
22289 * config/avr/t-multilib: Regenerate.
22290 * doc/avr-mmcu.texi: Regenerate.
22291
22292 2014-03-03 Tobias Grosser <tobias@grosser.es>
22293 Mircea Namolaru <mircea.namolaru@inria.fr>
22294
22295 PR tree-optimization/58028
22296 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22297 scalar dimensions.
22298
22299 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22300
22301 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22302 not handled by recognizers.
22303
22304 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22305
22306 PR middle-end/60175
22307 * function.c (expand_function_end): Don't emit
22308 clobber_return_register sequence if clobber_after is a BARRIER.
22309 * cfgexpand.c (construct_exit_block): Append instructions before
22310 return_label to prev_bb.
22311
22312 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22313
22314 * config/rs6000/constraints.md: Document reserved use of "wc".
22315
22316 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22317
22318 PR ipa/60150
22319 * ipa.c (function_and_variable_visibility): When dissolving comdat
22320 group, also set all symbols to local.
22321
22322 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22323
22324 PR ipa/60306
22325
22326 Revert:
22327 2013-12-14 Jan Hubicka <jh@suse.cz>
22328 PR middle-end/58477
22329 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22330
22331 2014-03-02 Jon Beniston <jon@beniston.com>
22332
22333 PR bootstrap/48230
22334 PR bootstrap/50927
22335 PR bootstrap/52466
22336 PR target/46898
22337 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22338 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22339 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22340 (simple_return, *simple_return): New patterns
22341 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22342 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22343
22344 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22345
22346 * dwarf2out.c (gen_subprogram_die): Tidy.
22347
22348 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22349
22350 PR target/60071
22351 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22352 (*mov_t_msb_neg_negc): ... this new insn.
22353
22354 2014-02-28 Jason Merrill <jason@redhat.com>
22355
22356 PR c++/58678
22357 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22358 function.
22359
22360 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22361
22362 PR c++/60314
22363 * dwarf2out.c (decltype_auto_die): New static.
22364 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22365 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22366 (is_cxx_auto): Likewise.
22367
22368 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22369
22370 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22371 we are not using general regs only.
22372
22373 2014-02-28 Richard Biener <rguenther@suse.de>
22374
22375 PR target/60280
22376 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22377 previous fix and only allow to remove trivial pre-headers
22378 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22379 (remove_forwarder_block): Properly update the latch of a loop.
22380
22381 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22382
22383 PR debug/59992
22384 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22385 (cselib_preserved_hash_table): New.
22386 (preserve_constants_and_equivs): Move preserved vals to it.
22387 (cselib_find_slot): Look it up first.
22388 (cselib_init): Initialize it.
22389 (cselib_finish): Release it.
22390 (dump_cselib_table): Dump it.
22391
22392 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22393
22394 PR debug/59992
22395 * cselib.c (remove_useless_values): Skip to avoid quadratic
22396 behavior if the condition moved from...
22397 (cselib_process_insn): ... here holds.
22398
22399 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22400
22401 PR debug/57232
22402 * var-tracking.c (vt_initialize): Apply the same condition to
22403 preserve the CFA base value.
22404
22405 2014-02-28 Joey Ye <joey.ye@arm.com>
22406
22407 PR target/PR60169
22408 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22409 if reload in progress or completed.
22410
22411 2014-02-28 Tobias Burnus <burnus@net-b.de>
22412
22413 PR middle-end/60147
22414 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22415 NAMELIST_DECL.
22416
22417 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22418
22419 * doc/tm.texi.in (Condition Code Status): Update documention for
22420 relative locations of cc0-setter and cc0-user.
22421
22422 2014-02-27 Jeff Law <law@redhat.com>
22423
22424 PR rtl-optimization/52714
22425 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22426 into two independent simple sets, if I3 is a jump, ensure the
22427 pattern we place into I3 is a (set (pc) ...).
22428
22429 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22430 Jeff Law <law@redhat.com>
22431
22432 PR rtl-optimization/49847
22433 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22434 are in different blocks.
22435 * doc/tm.texi (Condition Code Status): Update documention for
22436 relative locations of cc0-setter and cc0-user.
22437
22438 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22439
22440 PR target/59222
22441 * lra.c (lra_emit_add): Check SUBREG too.
22442
22443 2014-02-27 Andreas Schwab <schwab@suse.de>
22444
22445 * config/m68k/m68k.c (m68k_option_override): Disable
22446 -flive-range-shrinkage for classic m68k.
22447 (m68k_override_options_after_change): Likewise.
22448
22449 2014-02-27 Marek Polacek <polacek@redhat.com>
22450
22451 PR middle-end/59223
22452 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22453 -Wmaybe-uninitialized.
22454
22455 2014-02-27 Alan Modra <amodra@gmail.com>
22456
22457 PR target/57936
22458 * reload1.c (emit_input_reload_insns): When reload_override_in,
22459 set old to rl->in_reg when rl->in_reg is a subreg.
22460
22461 2014-02-26 Richard Biener <rguenther@suse.de>
22462
22463 PR bootstrap/60343
22464 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22465
22466 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22467
22468 * common/config/i386/predicates.md (const1256_operand): Remove.
22469 (const2356_operand): New.
22470 (const_1_to_2_operand): Remove.
22471 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22472 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22473 (*avx512pf_gatherpf<mode>sf): Ditto.
22474 (avx512pf_gatherpf<mode>df): Ditto.
22475 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22476 (*avx512pf_gatherpf<mode>df): Ditto.
22477 (avx512pf_scatterpf<mode>sf): Ditto.
22478 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22479 (*avx512pf_scatterpf<mode>sf): Ditto.
22480 (avx512pf_scatterpf<mode>df): Ditto.
22481 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22482 (*avx512pf_scatterpf<mode>df): Ditto.
22483 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22484
22485 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22486
22487 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22488 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22489 (_mm512_mask_testn_epi64_mask): Move to ...
22490 * config/i386/avx512cdintrin.h: Here.
22491 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22492 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22493 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22494 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22495 TARGET_AVX512F from TARGET_AVX512CD.
22496
22497 2014-02-26 Richard Biener <rguenther@suse.de>
22498
22499 PR ipa/60327
22500 * ipa.c (walk_polymorphic_call_targets): Properly guard
22501 call to inline_update_overall_summary.
22502
22503 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22504
22505 PR target/60280
22506 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22507 and latches only if requested. Fix latch if it is removed.
22508 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22509 LOOPS_HAVE_PREHEADERS.
22510
22511 2014-02-25 Andrew Pinski <apinski@cavium.com>
22512
22513 * builtins.c (expand_builtin_thread_pointer): Create a new target
22514 when the target is NULL.
22515
22516 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22517
22518 PR rtl-optimization/60317
22519 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22520 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22521 * lra-assigns.c: Include params.h.
22522 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22523 other reload pseudos considerations.
22524
22525 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22526
22527 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22528 to use canonical form for nor<mode>3.
22529
22530 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22531
22532 PR target/55426
22533 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22534 conversions.
22535
22536 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22537
22538 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22539 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22540 (ix86_handle_option): Handle OPT_mprefetchwt1.
22541 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22542 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22543 PREFETCHWT1 CPUID.
22544 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22545 OPTION_MASK_ISA_PREFETCHWT1.
22546 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22547 (PTA_PREFETCHWT1): New.
22548 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22549 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22550 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22551 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22552 (*prefetch_avx512pf_<mode>_: Change into ...
22553 (*prefetch_prefetchwt1_<mode>: This.
22554 * config/i386/i386.opt (mprefetchwt1): New.
22555 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22556 (_mm_prefetch): Handle intent to write.
22557 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22558
22559 2014-02-25 Richard Biener <rguenther@suse.de>
22560
22561 PR middle-end/60291
22562 * emit-rtl.c (mem_attrs_htab): Remove.
22563 (mem_attrs_htab_hash): Likewise.
22564 (mem_attrs_htab_eq): Likewise.
22565 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22566 (init_emit_once): Do not allocate mem_attrs_htab.
22567
22568 2014-02-25 Richard Biener <rguenther@suse.de>
22569
22570 PR lto/60319
22571 * lto-opts.c (lto_write_options): Output non-explicit conservative
22572 -fwrapv, -fno-trapv and -fno-strict-overflow.
22573 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22574 (run_gcc): And pass them through.
22575
22576 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22577
22578 * sel-sched.c (calculate_new_fences): New parameter ptime.
22579 Calculate it as a maximum over all fence cycles.
22580 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22581 Print the final schedule timing when sched_verbose.
22582
22583 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22584
22585 PR rtl-optimization/60292
22586 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22587 bit fot the fence instruction.
22588
22589 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22590
22591 * calls.h: Fix typo in comment.
22592
22593 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22594
22595 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22596 adjusting offsetable addresses.
22597
22598 2014-02-24 Guozhi Wei <carrot@google.com>
22599
22600 * sparseset.h (sparseset_pop): Fix the wrong index.
22601
22602 2014-02-24 Walter Lee <walt@tilera.com>
22603
22604 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22605 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22606 triplet.
22607 * common/config/tilegx/tilegx-common.c
22608 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22609 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22610 (LINK_SPEC): Ditto.
22611 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22612 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22613 (tilegx_gimplify_va_arg_expr): Handle big endian.
22614 (tilegx_expand_unaligned_load): Ditto.
22615 (tilegx_expand_unaligned_store): Ditto.
22616 (TARGET_RETURN_IN_MSB): New.
22617 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22618 (TARGET_ENDIAN_DEFAULT): New.
22619 (TARGET_BIG_ENDIAN): Handle big endian.
22620 (BYTES_BIG_ENDIAN): Ditto.
22621 (WORDS_BIG_ENDIAN): Ditto.
22622 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22623 (ENDIAN_SPEC): New.
22624 (EXTRA_SPECS): New.
22625 * config/tilegx/tilegx.md (extv): Handle big endian.
22626 (extzv): Ditto.
22627 (insn_st<n>): Ditto.
22628 (insn_st<n>_add<bitsuffix>): Ditto.
22629 (insn_stnt<n>): Ditto.
22630 (insn_stnt<n>_add<bitsuffix>):Ditto.
22631 (vec_interleave_highv8qi): Handle big endian.
22632 (vec_interleave_highv8qi_be): New.
22633 (vec_interleave_highv8qi_le): New.
22634 (insn_v1int_h): Handle big endian.
22635 (vec_interleave_lowv8qi): Handle big endian.
22636 (vec_interleave_lowv8qi_be): New.
22637 (vec_interleave_lowv8qi_le): New.
22638 (insn_v1int_l): Handle big endian.
22639 (vec_interleave_highv4hi): Handle big endian.
22640 (vec_interleave_highv4hi_be): New.
22641 (vec_interleave_highv4hi_le): New.
22642 (insn_v2int_h): Handle big endian.
22643 (vec_interleave_lowv4hi): Handle big endian.
22644 (vec_interleave_lowv4hi_be): New.
22645 (vec_interleave_lowv4hi_le): New.
22646 (insn_v2int_l): Handle big endian.
22647 (vec_interleave_highv2si): Handle big endian.
22648 (vec_interleave_highv2si_be): New.
22649 (vec_interleave_highv2si_le): New.
22650 (insn_v4int_h): Handle big endian.
22651 (vec_interleave_lowv2si): Handle big endian.
22652 (vec_interleave_lowv2si_be): New.
22653 (vec_interleave_lowv2si_le): New.
22654 (insn_v4int_l): Handle big endian.
22655 * config/tilegx/tilegx.opt (mbig-endian): New option.
22656 (mlittle-endian): New option.
22657 * doc/install.texi: Document tilegxbe-linux.
22658 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22659
22660 2014-02-24 Martin Jambor <mjambor@suse.cz>
22661
22662 PR ipa/60266
22663 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22664 there are no parameter descriptors.
22665
22666 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22667
22668 PR rtl-optimization/60268
22669 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22670 initialization to ...
22671 (sched_rgn_init): ... here.
22672 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22673
22674 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22675
22676 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22677 names.
22678
22679 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22680
22681 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22682 definition.
22683
22684 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22685
22686 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22687 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22688
22689 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22690
22691 * config/microblaze/predicates.md: Add cmp_op predicate.
22692 * config/microblaze/microblaze.md: Add branch_compare instruction
22693 which uses cmp_op predicate and emits cmp insn before branch.
22694 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22695 to microblaze_expand_conditional_branch and consolidate logic.
22696 (microblaze_expand_conditional_branch): emit branch_compare
22697 insn instead of handling cmp op separate from branch insn.
22698
22699 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22700
22701 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22702 to permit subregs.
22703
22704 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22705
22706 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22707 define_insn with define_expand and new define_insn
22708 *altivec_lve<VI_char>x_internal.
22709 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22710 and new define_insn *altivec_stve<VI_char>x_internal.
22711 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22712 prototype.
22713 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22714 lve*x built-ins.
22715 (altivec_expand_stvex_be): New function.
22716
22717 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22718
22719 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22720 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22721 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22722 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22723
22724 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22725
22726 PR target/60298
22727 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22728 instead of emit_move_insn.
22729
22730 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22731
22732 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22733 vspltw with vsldoi.
22734 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22735 gen_altivec_vsumsws.
22736
22737 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22738
22739 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22740 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22741 (altivec_lvxl_<mode>): New define_expand incorporating
22742 -maltivec=be semantics where needed.
22743 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22744 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22745 semantics where needed.
22746 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22747 (altivec_stvx_<mode>): New define_expand incorporating
22748 -maltivec=be semantics where needed.
22749 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22750 VM2 iterator instead of V4SI.
22751 (altivec_stvxl_<mode>): New define_expand incorporating
22752 -maltivec=be semantics where needed.
22753 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22754 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22755 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22756 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22757 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22758 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22759 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22760 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22761 ALTIVEC_BUILTIN_STVXL.
22762 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22763 (altivec_expand_stvx_be): Likewise.
22764 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22765 (altivec_expand_lvx_be): Likewise.
22766 (altivec_expand_stvx_be): Likewise.
22767 (altivec_expand_builtin): Add cases for
22768 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22769 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22770 (altivec_init_builtins): Add definitions for
22771 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22772 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22773
22774 2014-02-21 Catherine Moore <clm@codesourcery.com>
22775
22776 * doc/invoke.texi (mvirt, mno-virt): Document.
22777 * config/mips/mips.opt (mvirt): New option.
22778 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22779
22780 2014-02-21 Richard Biener <rguenther@suse.de>
22781
22782 PR tree-optimization/60276
22783 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22784 (STMT_VINFO_MIN_NEG_DIST): New macro.
22785 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22786 STMT_VINFO_MIN_NEG_DIST.
22787 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22788 made for negative dependence distances still hold.
22789
22790 2014-02-21 Richard Biener <rguenther@suse.de>
22791
22792 PR middle-end/60291
22793 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22794 DECL_INITIAL for globals not in the current function context.
22795
22796 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22797
22798 PR tree-optimization/56490
22799 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22800 * tree-ssa-uninit.c: Include params.h.
22801 (compute_control_dep_chain): Add num_calls argument, return false
22802 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22803 num_calls to recursive call.
22804 (find_predicates): Change dep_chain into normal array,
22805 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22806 variable and adjust compute_control_dep_chain caller.
22807 (find_def_preds): Likewise.
22808
22809 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22810
22811 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22812 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22813
22814 2014-02-21 Nick Clifton <nickc@redhat.com>
22815
22816 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22817 (pushhi1): Likewise.
22818 (popqi1): Add mode to pre_dec.
22819 (pophi1): Likewise.
22820
22821 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22822
22823 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22824 mode for mask of V8SFmode permutation.
22825
22826 2014-02-20 Richard Henderson <rth@redhat.com>
22827
22828 PR c++/60272
22829 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22830 a new pseudo for OLDVAL.
22831
22832 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22833
22834 PR target/57896
22835 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22836 gen_reg_rtx if d->testing_p.
22837 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22838 if d->testing_p and we will certainly return true.
22839 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22840 if d->testing_p.
22841
22842 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22843
22844 * emit-rtl.c (gen_reg_rtx): Assert that
22845 crtl->emit.regno_pointer_align_length is non-zero.
22846
22847 2014-02-20 Richard Henderson <rth@redhat.com>
22848
22849 PR c++/60272
22850 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22851 on failure the store back into EXPECT.
22852
22853 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22854 Sandra Loosemore <sandra@codesourcery.com>
22855
22856 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22857 * config/nios2/nios2.c (nios2_function_profiler): Add
22858 -fPIC (flag_pic == 2) support.
22859 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22860 (nios2_large_offset_p): New function.
22861 (nios2_unspec_reloc_p): Move up position, update to use
22862 nios2_large_offset_p.
22863 (nios2_unspec_address): Remove function.
22864 (nios2_unspec_offset): New function.
22865 (nios2_large_got_address): New function.
22866 (nios2_got_address): Add large offset support.
22867 (nios2_legitimize_tls_address): Update usage of removed and new
22868 functions.
22869 (nios2_symbol_binds_local_p): New function.
22870 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22871 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22872 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22873 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22874 processing for (const (unspec ...)).
22875 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22876
22877 2014-02-20 Richard Biener <rguenther@suse.de>
22878
22879 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22880 doing the substitution.
22881 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22882
22883 2014-02-20 Martin Jambor <mjambor@suse.cz>
22884
22885 PR ipa/55260
22886 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22887 info when checking whether lattices are bottom.
22888
22889 2014-02-20 Richard Biener <rguenther@suse.de>
22890
22891 PR middle-end/60221
22892 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22893 regions at -O0.
22894
22895 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22896
22897 PR ipa/58555
22898 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22899 parameter specifying the scaling.
22900 (inline_call): Update.
22901 (want_inline_recursively): Guard division by zero.
22902 (recursive_inlining): Update.
22903 * ipa-inline.h (clone_inlined_nodes): Update.
22904
22905 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22906
22907 PR target/60204
22908 * config/i386/i386.c (classify_argument): Pass structures of size
22909 64 bytes or less in register.
22910
22911 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22912 Kirill Yukhin <kirill.yukhin@intel.com>
22913
22914 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22915 (_mm_rcp28_round_ss): Ditto.
22916 (_mm_rsqrt28_round_sd): Ditto.
22917 (_mm_rsqrt28_round_ss): Ditto.
22918 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22919 (_mm_rcp14_round_ss): Ditto.
22920 (_mm_rsqrt14_round_sd): Ditto.
22921 (_mm_rsqrt14_round_ss): Ditto.
22922 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22923 the first input operand, get rid of match_dup.
22924 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22925 attribute to sse.
22926 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22927 Ditto.
22928 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22929 operand as the first input operand, set type attribute.
22930 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22931 Set type attribute.
22932 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22933 operand as the first input operand, set type attribute.
22934
22935 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22936
22937 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22938 bit of zero.
22939
22940 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22941
22942 PR target/60207
22943 * config/i386/i386.c (construct_container): Remove TFmode check
22944 for X86_64_INTEGER_CLASS.
22945
22946 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22947
22948 PR target/59794
22949 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22950 only when -Wpsabi is enabled.
22951
22952 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22953
22954 PR target/59799
22955 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22956 passing arrays in registers are the same as for structs, so remove the
22957 special case for them.
22958
22959 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22960
22961 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22962 destination type, extract only the valid bits if the source type is not
22963 integral and has a different mode.
22964
22965 2014-02-19 Richard Biener <rguenther@suse.de>
22966
22967 PR ipa/60243
22968 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22969 for all calls.
22970
22971 2014-02-19 Richard Biener <rguenther@suse.de>
22972
22973 PR ipa/60243
22974 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22975 (ipa_modify_call_arguments): Emit an argument load explicitely and
22976 preserve virtual SSA form there and for the replacement call.
22977 Do not update SSA form nor free dominance info.
22978
22979 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22980
22981 * ipa.c (function_and_variable_visibility): Also clear WEAK
22982 flag when disolving COMDAT_GROUP.
22983
22984 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22985
22986 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22987 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22988 not devirtualizing.
22989 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22990 do more sanity checks.
22991 (detect_type_change): Return true when giving up early.
22992 (compute_complex_assign_jump_func): Fix type parameter of
22993 ipa_set_ancestor_jf.
22994 (compute_complex_ancestor_jump_func): Likewise.
22995 (update_jump_functions_after_inlining): Fix updating of
22996 ancestor function.
22997 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22998
22999 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23000
23001 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23002 inline clones when edge disappears.
23003
23004 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23005
23006 PR target/60203
23007 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23008 Split 64-bit moves into 2 patterns. Do not allow the use of
23009 direct move for TDmode in little endian, since the decimal value
23010 has little endian bytes within a word, but the 64-bit pieces are
23011 ordered in a big endian fashion, and normal subreg's of TDmode are
23012 not allowed.
23013 (mov<mode>_64bit_dm): Likewise.
23014 (movtd_64bit_nodm): Likewise.
23015
23016 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23017
23018 PR tree-optimization/60174
23019 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23020 statement of an SSA_NAME that occurs in an abnormal PHI node.
23021
23022 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23023
23024 PR sanitizer/60142
23025 * final.c (SEEN_BB): Remove.
23026 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23027 (final_scan_insn): Don't force_source_line on second
23028 NOTE_INSN_BASIC_BLOCK.
23029
23030 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23031
23032 PR target/60205
23033 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23034 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23035 (type_natural_mode): Warn ABI change when %zmm register is not
23036 available for AVX512F vector value passing.
23037
23038 2014-02-18 Kai Tietz <ktietz@redhat.com>
23039
23040 PR target/60193
23041 * config/i386/i386.c (ix86_expand_prologue): Use value in
23042 rax register as displacement when restoring %r10 or %rax.
23043 Fix wrong offset when restoring both registers.
23044
23045 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23046
23047 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23048 assertion with conditional return.
23049
23050 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23051 Uros Bizjak <ubizjak@gmail.com>
23052
23053 PR driver/60233
23054 * config/i386/driver-i386.c (host_detect_local_cpu): If
23055 YMM state is not saved by the OS, also clear has_f16c. Move
23056 CPUID 0x80000001 handling before YMM state saving checking.
23057
23058 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23059
23060 PR rtl-optimization/58960
23061 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23062 factored out from ...
23063 (sched_init): ... here.
23064 (free_global_sched_pressure_data): New, factored out from ...
23065 (sched_finish): ... here.
23066 * sched-int.h (free_global_sched_pressure_data): Declare.
23067 * sched-rgn.c (nr_regions_initial): New static global.
23068 (haifa_find_rgns): Initialize it.
23069 (schedule_region): Disable sched-pressure for the newly
23070 generated regions.
23071
23072 2014-02-17 Richard Biener <rguenther@suse.de>
23073
23074 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23075 release SSA defs of pattern stmts.
23076
23077 2014-02-17 Richard Biener <rguenther@suse.de>
23078
23079 * tree-inline.c (expand_call_inline): Release the virtual
23080 operand defined by the call we are about to inline.
23081
23082 2014-02-17 Richard Biener <rguenther@suse.de>
23083
23084 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23085
23086 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23087 Ilya Tocar <ilya.tocar@intel.com>
23088
23089 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23090 arguments order in builtin.
23091 (_mm512_permutexvar_epi64): Ditto.
23092 (_mm512_mask_permutexvar_epi64): Ditto
23093 (_mm512_maskz_permutexvar_epi32): Ditto
23094 (_mm512_permutexvar_epi32): Ditto
23095 (_mm512_mask_permutexvar_epi32): Ditto
23096
23097 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23098
23099 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23100 (p8_vmrgow): Likewise.
23101
23102 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23103
23104 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23105 endian targets.
23106
23107 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23108
23109 PR target/60203
23110 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23111 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23112 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23113 using direct move instructions on ISA 2.07. Also adjust
23114 instruction length for 64-bit.
23115 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23116 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23117
23118 2014-02-15 Alan Modra <amodra@gmail.com>
23119
23120 PR target/58675
23121 PR target/57935
23122 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23123 find_replacement on parts of insn rtl that might be reloaded.
23124
23125 2014-02-15 Richard Biener <rguenther@suse.de>
23126
23127 PR tree-optimization/60183
23128 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23129 (tree_ssa_phiprop): Calculate and free post-dominators.
23130
23131 2014-02-14 Jeff Law <law@redhat.com>
23132
23133 PR rtl-optimization/60131
23134 * ree.c (get_extended_src_reg): New function.
23135 (combine_reaching_defs): Use it rather than assuming location of REG.
23136 (find_and_remove_re): Verify first operand of extension is
23137 a REG before adding the insns to the copy list.
23138
23139 2014-02-14 Roland McGrath <mcgrathr@google.com>
23140
23141 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23142 * configure: Regenerated.
23143 * config.in: Regenerated.
23144 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23145 instead of ASM_SHORT.
23146
23147 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23148 Richard Earnshaw <rearnsha@arm.com>
23149
23150 PR rtl-optimization/59535
23151 * lra-constraints.c (process_alt_operands): Encourage alternative
23152 when unassigned pseudo class is superset of the alternative class.
23153 (inherit_reload_reg): Don't inherit when optimizing for code size.
23154 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23155 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23156 modes not less than 4 for Thumb1.
23157
23158 2014-02-14 Kyle McMartin <kyle@redhat.com>
23159
23160 PR pch/60010
23161 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23162
23163 2014-02-14 Richard Biener <rguenther@suse.de>
23164
23165 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23166 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23167 Do not strip INDIRECT_REFs.
23168
23169 2014-02-14 Richard Biener <rguenther@suse.de>
23170
23171 PR lto/60179
23172 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23173 DECL_FUNCTION_SPECIFIC_TARGET.
23174 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23175 * tree-streamer-out.c (pack_ts_target_option): Remove.
23176 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23177 (write_ts_function_decl_tree_pointers): Do not stream
23178 DECL_FUNCTION_SPECIFIC_TARGET.
23179 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23180 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23181 (lto_input_ts_function_decl_tree_pointers): Do not stream
23182 DECL_FUNCTION_SPECIFIC_TARGET.
23183
23184 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23185
23186 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23187 (get_initial_def_for_induction, vectorizable_induction): Ignore
23188 debug stmts when looking for exit_phi.
23189 (vectorizable_live_operation): Fix up condition.
23190
23191 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23192
23193 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23194 nreverse() because it changes the content of original tree list.
23195
23196 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23197
23198 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23199 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23200
23201 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23202
23203 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23204 GNU coding standards.
23205
23206 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23207
23208 PR debug/60152
23209 * dwarf2out.c (gen_subprogram_die): Don't call
23210 add_calling_convention_attribute if subr_die is old_die.
23211
23212 2014-02-13 Sharad Singhai <singhai@google.com>
23213
23214 * doc/optinfo.texi: Fix order of nodes.
23215
23216 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23217
23218 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23219 operands[2], not operands[3].
23220
23221 2014-02-13 Richard Biener <rguenther@suse.de>
23222
23223 PR bootstrap/59878
23224 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23225 mention the possibility of an in-tree build.
23226 (CLooG): Update recommended version to 0.18.1, mention the
23227 possibility of an in-tree build and clarify that the ISL
23228 bundled with CLooG does not work.
23229
23230 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23231
23232 PR target/43546
23233 * expr.c (compress_float_constant): If x is a hard register,
23234 extend into a pseudo and then move to x.
23235
23236 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23237
23238 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23239 caused by bad second argument to warning_at() with -mhotpatch and
23240 nested functions (e.g. with gfortran).
23241
23242 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23243
23244 * opts.c (option_name): Remove "enabled by default" rider.
23245
23246 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23247
23248 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23249
23250 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23251 Uros Bizjak <ubizjak@gmail.com>
23252
23253 PR target/60151
23254 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23255 * configure: Regenerated.
23256
23257 2014-02-12 Richard Biener <rguenther@suse.de>
23258
23259 * vec.c (vec_prefix::calculate_allocation): Move as
23260 inline variant to vec.h.
23261 (vec_prefix::calculate_allocation_1): New out-of-line version.
23262 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23263 (vec_prefix::m_has_auto_buf): Rename to ...
23264 (vec_prefix::m_using_auto_storage): ... this.
23265 (vec_prefix::calculate_allocation): Inline the easy cases
23266 and dispatch to calculate_allocation_1 which doesn't need the
23267 prefix address.
23268 (va_heap::reserve): Use gcc_checking_assert.
23269 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23270 m_using_auto_storage.
23271 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23272 member and adjust.
23273 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23274 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23275 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23276
23277 2014-02-12 Richard Biener <rguenther@suse.de>
23278
23279 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23280 when we found a dependence.
23281
23282 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23283
23284 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23285 common code...
23286 (maybe_fold_stmt): ... into this new function.
23287 * omp-low.c (lower_omp): Update comment.
23288
23289 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23290 last use.
23291
23292 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23293 dereference.
23294
23295 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23296
23297 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23298 identifiers in comments.
23299 (cortexa53_extra_costs): Likewise.
23300 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23301 (cortexa7_extra_costs): Likewise.
23302 (cortexa12_extra_costs): Likewise.
23303 (cortexa15_extra_costs): Likewise.
23304 (v7m_extra_costs): Likewise.
23305
23306 2014-02-12 Richard Biener <rguenther@suse.de>
23307
23308 PR middle-end/60092
23309 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23310 of posix_memalign being successful.
23311 (lower_stmt): Restrict lowering of posix_memalign to when
23312 -ftree-bit-ccp is enabled.
23313
23314 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23315
23316 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23317 arg_loc.
23318 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23319
23320 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23321
23322 PR rtl-optimization/60116
23323 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23324 other_insn once the combination has been validated.
23325
23326 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23327
23328 PR lto/59468
23329 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23330 and wrapper.
23331 * ipa-devirt.c: Include demangle.h
23332 (odr_violation_reported): New static variable.
23333 (add_type_duplicate): Update odr_violations.
23334 (maybe_record_node): Add completep parameter; update it.
23335 (record_target_from_binfo): Add COMPLETEP parameter;
23336 update it as needed.
23337 (possible_polymorphic_call_targets_1): Likewise.
23338 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23339 rename FINAL to COMPLETE.
23340 (record_targets_from_bases): Sanity check we found the binfo;
23341 fix COMPLETEP updating.
23342 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23343 parameter, fix computing of COMPLETEP.
23344 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23345 at LTO time do demangling.
23346 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23347 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23348 parameter.
23349 (gimple_get_virt_method_for_binfo): Likewise.
23350 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23351 gimple_get_virt_method_for_vtable): Update prototypes.
23352
23353 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23354
23355 PR target/49008
23356 * genautomata.c (add_presence_absence): Fix typo with
23357 {final_}presence_list.
23358
23359 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23360
23361 PR target/60137
23362 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23363 for VSX/Altivec vectors that land in GPR registers.
23364
23365 2014-02-11 Richard Henderson <rth@redhat.com>
23366 Jakub Jelinek <jakub@redhat.com>
23367
23368 PR debug/59776
23369 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23370 around drhs if type conversion to lacc->type is not useless.
23371
23372 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23373
23374 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23375 tuning struct.
23376 (cortex-a57.cortex-a53): Likewise.
23377 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23378
23379 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23380
23381 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23382 arm_restrict_it.
23383
23384 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23385
23386 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23387 add_options_for_arm_vfp3.
23388
23389 2014-02-11 Jeff Law <law@redhat.com>
23390
23391 PR middle-end/54041
23392 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23393 object with an undesirable mode.
23394
23395 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23396
23397 PR libgomp/60107
23398 * config/i386/sol2-9.h: New file.
23399 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23400 *-*-solaris2.9*): Use it.
23401
23402 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23403
23404 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23405 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23406
23407 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23408
23409 * config/microblaze/microblaze.c: Extend mcpu version format
23410
23411 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23412
23413 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23414
23415 2014-02-10 Richard Henderson <rth@redhat.com>
23416
23417 PR target/59927
23418 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23419 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23420 ms-abi vs -mno-accumulate-outgoing-args.
23421 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23422 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23423 respect to ms-abi.
23424
23425 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23426
23427 PR middle-end/60080
23428 * cfgexpand.c (expand_asm_operands): Attach source location to
23429 ASM_INPUT rtx objects.
23430 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23431
23432 2014-02-10 Nick Clifton <nickc@redhat.com>
23433
23434 * config/mn10300/mn10300.c (popcount): New function.
23435 (mn10300_expand_prologue): Include saved registers in stack usage
23436 count.
23437
23438 2014-02-10 Jeff Law <law@redhat.com>
23439
23440 PR middle-end/52306
23441 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23442 when changing the SET_DEST of a prior insn to avoid an input reload.
23443
23444 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23445
23446 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23447 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23448 -mcall-openbsd, or -mcall-linux.
23449 (CC1_ENDIAN_BIG_SPEC): Remove.
23450 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23451 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23452 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23453 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23454 and %cc1_endian_default.
23455 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23456
23457 2014-02-10 Richard Biener <rguenther@suse.de>
23458
23459 PR tree-optimization/60115
23460 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23461 MEM_REF handling. Properly verify that the accesses are not
23462 out of the objects bound.
23463
23464 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23465
23466 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23467 coretex to cortex.
23468
23469 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23470
23471 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23472 proper constants and fix formatting.
23473 (possible_polymorphic_call_targets): Fix formatting.
23474
23475 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23476 Ilya Tocar <ilya.tocar@intel.com>
23477
23478 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23479 (_mm512_loadu_epi32): Renamed into...
23480 (_mm512_loadu_si512): This.
23481 (_mm512_storeu_epi32): Renamed into...
23482 (_mm512_storeu_si512): This.
23483 (_mm512_maskz_ceil_ps): Removed.
23484 (_mm512_maskz_ceil_pd): Ditto.
23485 (_mm512_maskz_floor_ps): Ditto.
23486 (_mm512_maskz_floor_pd): Ditto.
23487 (_mm512_floor_round_ps): Ditto.
23488 (_mm512_floor_round_pd): Ditto.
23489 (_mm512_ceil_round_ps): Ditto.
23490 (_mm512_ceil_round_pd): Ditto.
23491 (_mm512_mask_floor_round_ps): Ditto.
23492 (_mm512_mask_floor_round_pd): Ditto.
23493 (_mm512_mask_ceil_round_ps): Ditto.
23494 (_mm512_mask_ceil_round_pd): Ditto.
23495 (_mm512_maskz_floor_round_ps): Ditto.
23496 (_mm512_maskz_floor_round_pd): Ditto.
23497 (_mm512_maskz_ceil_round_ps): Ditto.
23498 (_mm512_maskz_ceil_round_pd): Ditto.
23499 (_mm512_expand_pd): Ditto.
23500 (_mm512_expand_ps): Ditto.
23501 * config/i386/i386.c (ix86_builtins): Remove
23502 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23503 (bdesc_args): Ditto.
23504 * config/i386/predicates.md (const1256_operand): New.
23505 (const_1_to_2_operand): Ditto.
23506 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23507 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23508 (*avx512pf_gatherpf<mode>sf): Ditto.
23509 (avx512pf_gatherpf<mode>df): Ditto.
23510 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23511 (*avx512pf_gatherpf<mode>df): Ditto.
23512 (avx512pf_scatterpf<mode>sf): Ditto.
23513 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23514 (*avx512pf_scatterpf<mode>sf): Ditto.
23515 (avx512pf_scatterpf<mode>df): Ditto.
23516 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23517 (*avx512pf_scatterpf<mode>df): Ditto.
23518 (avx512f_expand<mode>): Removed.
23519 (<shift_insn><mode>3<mask_name>): Change predicate type.
23520
23521 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23522
23523 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23524 not at the end of datarefs vector use ordered_remove to avoid
23525 reordering datarefs vector.
23526
23527 PR c/59984
23528 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23529 mark local addressable non-static vars as GOVD_PRIVATE
23530 instead of GOVD_LOCAL.
23531 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23532 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23533 than copying them.
23534
23535 PR middle-end/60092
23536 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23537 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23538 assume_aligned or alloc_align attributes.
23539 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23540 arguments. Handle also assume_aligned and alloc_align attributes.
23541 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23542 calls to functions with assume_aligned or alloc_align attributes.
23543 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23544
23545 2014-02-08 Terry Guo <terry.guo@arm.com>
23546
23547 * doc/invoke.texi: Document ARM -march=armv7e-m.
23548
23549 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23550
23551 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23552 flag on __cilkrts_rethrow builtin.
23553
23554 PR ipa/60026
23555 * ipa-cp.c (determine_versionability): Fail at -O0
23556 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23557 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23558
23559 Revert:
23560 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23561
23562 PR ipa/60026
23563 * tree-inline.c (copy_forbidden): Fail for
23564 __attribute__((optimize (0))) functions.
23565
23566 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23567
23568 * varpool.c: Include pointer-set.h.
23569 (varpool_remove_unreferenced_decls): Variables in other partitions
23570 will not be output; be however careful to not lose information
23571 about partitioning.
23572
23573 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23574
23575 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23576 lookup in the vtable constructor.
23577
23578 2014-02-07 Jeff Law <law@redhat.com>
23579
23580 PR target/40977
23581 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23582 define_insn_and_split.
23583
23584 * ipa-inline.c (inline_small_functions): Fix typos.
23585
23586 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23587
23588 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23589 (s390_can_use_return_insn): Declare.
23590 * config/s390/s390.h (EPILOGUE_USES): Define.
23591 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23592 instructions.
23593 (s390_chunkify_start): Handle return JUMP_LABELs.
23594 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23595 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23596 (s390_can_use_return_insn): New functions.
23597 (s390_fix_long_loop_prediction): Handle conditional returns.
23598 (TARGET_SET_UP_BY_PROLOGUE): Define.
23599 * config/s390/s390.md (ANY_RETURN): New code iterator.
23600 (*creturn, *csimple_return, return, simple_return): New patterns.
23601
23602 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23603
23604 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23605 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23606 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23607 REG_CFA_RESTORE list when deciding not to restore a register.
23608
23609 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23610
23611 * config/s390/s390.c: Include tree-pass.h and context.h.
23612 (s390_early_mach): New function, split out from...
23613 (s390_emit_prologue): ...here.
23614 (pass_data_s390_early_mach): New pass structure.
23615 (pass_s390_early_mach): New class.
23616 (s390_option_override): Create and register early_mach pass.
23617 Move to end of file.
23618
23619 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23620
23621 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23622 to match for the exit block.
23623
23624 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23625
23626 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23627 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23628 Reject misaligned operands.
23629
23630 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23631
23632 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23633
23634 2014-02-07 Richard Biener <rguenther@suse.de>
23635
23636 PR middle-end/60092
23637 * gimple-low.c (lower_builtin_posix_memalign): New function.
23638 (lower_stmt): Call it to lower posix_memalign in a way
23639 to make alignment info accessible.
23640
23641 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23642
23643 PR c++/60082
23644 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23645 __builtin_setjmp_receiver.
23646
23647 2014-02-07 Richard Biener <rguenther@suse.de>
23648
23649 PR middle-end/60092
23650 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23651 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23652 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23653 Handle BUILT_IN_POSIX_MEMALIGN.
23654 (find_func_clobbers): Likewise.
23655 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23656 (call_may_clobber_ref_p_1): Likewise.
23657
23658 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23659
23660 PR ipa/59918
23661 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23662 sanity check.
23663
23664 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23665
23666 PR ipa/59469
23667 * lto-cgraph.c (lto_output_node): Use
23668 symtab_get_symbol_partitioning_class.
23669 (lto_output_varpool_node): likewise.
23670 (symtab_get_symbol_partitioning_class): Move here from
23671 lto/lto-partition.c
23672 * cgraph.h (symbol_partitioning_class): Likewise.
23673 (symtab_get_symbol_partitioning_class): Declare.
23674
23675 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23676
23677 * ggc.h (ggc_internal_cleared_alloc): New macro.
23678 * vec.h (vec_safe_copy): Handle memory stats.
23679 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23680 * target-globals.c (save_target_globals): Likewise.
23681
23682 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23683
23684 PR target/60077
23685 * expr.c (emit_move_resolve_push): Export; be bit more selective
23686 on when to clear alias set.
23687 * expr.h (emit_move_resolve_push): Declare.
23688 * function.h (struct function): Add tail_call_marked.
23689 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23690 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23691 * config/i386/i386.md (TImode move expander): De not call
23692 ix86_expand_push.
23693 (FP push expanders): Preserve memory attributes.
23694 * config/i386/sse.md (push<mode>1): Remove.
23695 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23696 (ix86_expand_push): Remove.
23697 * config/i386/mmx.md (push<mode>1): Remove.
23698
23699 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23700
23701 PR rtl-optimization/60030
23702 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23703 lopart with paradoxical subreg before shifting it up by hprec.
23704
23705 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23706
23707 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23708 Remove extra newline at end of file.
23709 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23710 (arm_issue_rate): Handle cortexa57.
23711 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23712 (cortex-a57.cortex-a53): Likewise.
23713
23714 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23715
23716 PR target/59575
23717 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23718 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23719 bitmask.
23720 (arm_expand_prologue): Adjust all callers.
23721 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23722 info, registers also at the lowest numbered registers side. Use
23723 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23724 XEXP.
23725
23726 PR debug/59992
23727 * var-tracking.c (adjust_mems): Before adding a SET to
23728 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23729
23730 2014-02-06 Alan Modra <amodra@gmail.com>
23731
23732 PR target/60032
23733 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23734 change SDmode to DDmode when lra_in_progress.
23735
23736 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23737
23738 PR middle-end/59150
23739 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23740 free_data_ref on the dr first, and before goto again also set dr
23741 to the next dr. For simd_lane_access, free old datarefs[i] before
23742 overwriting it. For get_vectype_for_scalar_type failure, don't
23743 free_data_ref if simd_lane_access.
23744
23745 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23746
23747 PR target/60062
23748 * tree.h (opts_for_fn): New inline function.
23749 (opt_for_fn): Define.
23750 * config/i386/i386.c (ix86_function_regparm): Use
23751 opt_for_fn (decl, optimize) instead of optimize.
23752
23753 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23754
23755 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23756 for SYMBOL_REF in large memory model.
23757
23758 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23759
23760 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23761 and crypto support.
23762 (cortex-a57): Likewise.
23763 (cortex-a57.cortex-a53): Likewise.
23764
23765 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23766 Kugan Vivekanandarajah <kuganv@linaro.org>
23767
23768 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23769 unaligned_access.
23770 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23771
23772 2014-02-06 Richard Biener <rguenther@suse.de>
23773
23774 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23775 set_loop_copy and initialize_original_copy_tables.
23776
23777 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23778
23779 * config/aarch64/aarch64-simd.md
23780 (aarch64_ashr_simddi): Change QI to SI.
23781
23782 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23783 Jakub Jelinek <jakub@redhat.com>
23784
23785 PR middle-end/60013
23786 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23787 of the dataflow.
23788
23789 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23790
23791 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23792 CODE_FOR_altivec_vpku[hw]um to
23793 CODE_FOR_altivec_vpku[hw]um_direct.
23794 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23795 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23796 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23797 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23798
23799 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23800
23801 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23802 generation for -maltivec=be.
23803 (altivec_vsumsws): Simplify redundant test.
23804
23805 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23806
23807 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23808 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23809 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23810 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23811 gen_altivec_vpkuwum.
23812 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23813 BYTES_BIG_ENDIAN.
23814 (altivec_vpks<VI_char>ss): Likewise.
23815 (altivec_vpks<VI_char>us): Likewise.
23816 (altivec_vpku<VI_char>us): Likewise.
23817 (altivec_vpku<VI_char>um): Likewise.
23818 (altivec_vpku<VI_char>um_direct): New (copy of
23819 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23820 internal use).
23821 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23822 target is little endian and -maltivec=be is not specified.
23823 (*altivec_vupkhs<VU_char>_direct): New (copy of
23824 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23825 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23826 target is little endian and -maltivec=be is not specified.
23827 (*altivec_vupkls<VU_char>_direct): New (copy of
23828 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23829 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23830 little endian and -maltivec=be is not specified.
23831 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23832 little endian and -maltivec=be is not specified.
23833
23834 2014-02-05 Richard Henderson <rth@redhat.com>
23835
23836 PR debug/52727
23837 * combine-stack-adj.c: Revert r206943.
23838 * sched-int.h (struct deps_desc): Add last_args_size.
23839 * sched-deps.c (init_deps): Initialize it.
23840 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23841 contain REG_ARGS_SIZE notes.
23842
23843 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23844
23845 * lto-cgraph.c (asm_nodes_output): Make global.
23846 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23847 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23848 (driver_handle_option): Handle OPT_fwpa.
23849
23850 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23851
23852 PR ipa/59947
23853 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23854 a comment typo and formatting issue. If odr_hash hasn't been
23855 created, return vNULL and set *completep to false.
23856
23857 PR middle-end/57499
23858 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23859 bb with no successors.
23860
23861 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23862
23863 PR target/59718
23864 * doc/invoke.texi (-march): Clarify documentation for ARM.
23865 (-mtune): Likewise.
23866 (-mcpu): Likewise.
23867
23868 2014-02-05 Richard Biener <rguenther@suse.de>
23869
23870 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23871 when not vectorizing because of too many alias checks.
23872 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23873 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23874
23875 2014-02-05 Nick Clifton <nickc@redhat.com>
23876
23877 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23878 accept extended registers in any mode when compiling for the MN10300.
23879
23880 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23881
23882 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23883 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23884 sanitization attributes.
23885 (can_inline_edge_p): Likewise.
23886 (sanitize_attrs_match_for_inline_p): New function.
23887
23888 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23889
23890 * ipa-prop.c (detect_type_change): Shor circuit testing of
23891 type changes on THIS pointer.
23892
23893 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23894
23895 PR target/59777
23896 * config/pa/pa.c (legitimize_tls_address): Return original address
23897 if not passed a SYMBOL_REF rtx.
23898 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23899 addresses.
23900 (pa_emit_move_sequence): Simplify TLS source operands.
23901 (pa_legitimate_constant_p): Reject all TLS constants.
23902 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23903 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23904
23905 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23906
23907 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23908 groups when we know they are controlled by LTO.
23909 * varasm.c (default_binds_local_p_1): If object is in other partition,
23910 it will be resolved locally.
23911
23912 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23913
23914 * config/host-linux.c (linux_gt_pch_use_address): Don't
23915 use SSIZE_MAX because it is not always defined.
23916
23917 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23918
23919 PR bootstrap/59913
23920 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23921 threshold for pseudo splitting.
23922 (update_ebb_live_info): Process call argument hard registers and
23923 hard registers from insn definition too.
23924 (max_small_class_regs_num): New constant.
23925 (inherit_in_ebb): Update live hard regs through EBBs. Update
23926 reloads_num only for small register classes. Don't split for
23927 outputs of jumps.
23928
23929 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23930
23931 PR ipa/60058
23932 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23933 is non-null.
23934
23935 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23936
23937 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23938 visibility is safe.
23939
23940 2014-02-04 Marek Polacek <polacek@redhat.com>
23941
23942 * gdbinit.in (pel): Define.
23943
23944 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23945
23946 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23947 behavior.
23948
23949 2014-02-04 Richard Biener <rguenther@suse.de>
23950
23951 PR lto/59723
23952 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23953 in function context local.
23954 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23955 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23956 similar to LTO_imported_decl_ref.
23957
23958 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23959
23960 PR tree-optimization/60002
23961 * cgraphclones.c (build_function_decl_skip_args): Clear
23962 DECL_LANG_SPECIFIC.
23963
23964 PR tree-optimization/60023
23965 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23966 false to gsi_replace.
23967 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23968 has been in some EH region and vec_stmt could throw, add
23969 vec_stmt into the same EH region.
23970 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23971 has no lhs, ignore it.
23972 * internal-fn.c (expand_MASK_LOAD): Likewise.
23973
23974 PR ipa/60026
23975 * tree-inline.c (copy_forbidden): Fail for
23976 __attribute__((optimize (0))) functions.
23977
23978 PR other/58712
23979 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23980 is set, copy one less argument.
23981 (expand_simd_clones): Don't subtract clone_info->inbranch
23982 from simd_clone_struct_alloc argument.
23983
23984 PR rtl-optimization/57915
23985 * recog.c (simplify_while_replacing): If all unary/binary/relational
23986 operation arguments are constant, attempt to simplify those.
23987
23988 PR middle-end/59261
23989 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23990 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23991
23992 2014-02-04 Richard Biener <rguenther@suse.de>
23993
23994 PR tree-optimization/60012
23995 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23996 TBAA disambiguation to all DDRs.
23997
23998 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23999
24000 PR target/59788
24001 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24002 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24003
24004 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24005
24006 PR ipa/59882
24007 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24008
24009 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24010
24011 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24012 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24013
24014 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24015
24016 PR ipa/59831
24017 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24018 to figure out targets of polymorphic calls with known decl.
24019 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24020 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24021 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24022 (get_polymorphic_call_info): ... here.
24023 (get_polymorphic_call_info_from_invariant): New function.
24024
24025 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24026
24027 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24028 lookup via vtable pointer; check for type consistency
24029 and turn inconsitent facts into UNREACHABLE.
24030 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24031 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24032 type inconsistent querries; return UNREACHABLE instead.
24033
24034 2014-02-03 Richard Henderson <rth@twiddle.net>
24035
24036 PR tree-opt/59924
24037 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24038 already processed this node.
24039 (normalize_one_pred_1): Pass along mark_set.
24040 (normalize_one_pred): Create and destroy a pointer_set_t.
24041 (normalize_one_pred_chain): Likewise.
24042
24043 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24044
24045 PR gcov-profile/58602
24046 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24047
24048 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24049
24050 PR ipa/59831
24051 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24052 -fno-devirtualize; try to devirtualize by the knowledge of
24053 virtual table pointer given by aggregate propagation.
24054 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24055 (ipa_print_node_jump_functions): Dump also offset that
24056 is relevant for polymorphic calls.
24057 (determine_known_aggregate_parts): Add arg_type parameter; use it
24058 instead of determining the type from pointer type.
24059 (ipa_compute_jump_functions_for_edge): Update call of
24060 determine_known_aggregate_parts.
24061 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24062 (gimple_get_virt_method_for_binfo): ... here; simplify using
24063 vtable_pointer_value_to_vtable.
24064 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24065 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24066 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24067 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24068 POINTER_PLUS_EXPR.
24069 (vtable_pointer_value_to_binfo): ... here.
24070 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24071
24072 2014-02-03 Teresa Johnson <tejohnson@google.com>
24073
24074 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24075 redef of outer loop index variable.
24076
24077 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24078
24079 PR c++/53017
24080 PR c++/59211
24081 * doc/extend.texi (Function Attributes): Typo.
24082
24083 2014-02-03 Cong Hou <congh@google.com>
24084
24085 PR tree-optimization/60000
24086 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24087 if the vectorized statement is a store. A store statement can only
24088 appear at the end of pattern statements.
24089
24090 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24091
24092 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24093 (ix86_option_override_internal): Default long double to 64-bit for
24094 32-bit Bionic and to 128-bit for 64-bit Bionic.
24095
24096 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24097 TARGET_LONG_DOUBLE_128 is true.
24098 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24099
24100 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24101 (mlong-double-64): Negate -mlong-double-128.
24102 (mlong-double-128): New option.
24103
24104 * config/i386/i386-c.c (ix86_target_macros): Define
24105 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24106
24107 * doc/invoke.texi: Document -mlong-double-128.
24108
24109 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24110
24111 PR rtl-optimization/60024
24112 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24113
24114 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24115
24116 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24117
24118 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24119
24120 PR rtl-optimization/57662
24121 * sel-sched.c (code_motion_path_driver): Do not mark already not
24122 existing blocks in the visiting bitmap.
24123
24124 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24125
24126 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24127 on the insn being emitted.
24128
24129 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24130 Will Deacon <will.deacon@arm.com>
24131
24132 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24133
24134 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24135
24136 * config/arm/arm-tables.opt: Regenerate.
24137
24138 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24139
24140 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24141 for vector types other than V16QImode.
24142 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24143 define_expand, and call altivec_expand_vec_perm_le when producing
24144 code with little endian element order.
24145 (*altivec_vperm_<mode>_internal): New insn having previous
24146 behavior of altivec_vperm_<mode>.
24147 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24148 altivec_expand_vec_perm_le when producing code with little endian
24149 element order.
24150 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24151 behavior of altivec_vperm_<mode>_uns.
24152
24153 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24154
24155 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24156 (altivec_vsumsws): Add handling for -maltivec=be with a little
24157 endian target.
24158 (altivec_vsumsws_direct): New.
24159 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24160 gen_altivec_vsumsws.
24161
24162 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24163
24164 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24165 vtable_pointer_value_to_binfo): New functions.
24166 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24167 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24168
24169 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24170
24171 * config/nios2/nios2.md (load_got_register): Initialize GOT
24172 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24173 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24174
24175 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24176
24177 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24178 preserverd by passthrough, do not propagate the type.
24179
24180 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24181
24182 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24183 (mips_atomic_assign_expand_fenv): New function.
24184 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24185
24186 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24187
24188 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24189 (__builtin_mips_set_fcsr): Likewise.
24190 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24191 MIPS_USI_FTYPE_VOID.
24192 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24193 (mips16_expand_set_fcsr): Likewise.
24194 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24195 (mips16_set_fcsr_stub): Likewise.
24196 (mips16_get_fcsr_one_only_stub): New class.
24197 (mips16_set_fcsr_one_only_stub): Likewise.
24198 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24199 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24200 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24201 (hard_float): New availability predicate.
24202 (mips_builtins): Add get_fcsr and set_fcsr.
24203 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24204 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24205 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24206 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24207 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24208 patterns.
24209
24210 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24211
24212 * config/mips/mips.c (mips_one_only_stub): New class.
24213 (mips_need_mips16_rdhwr_p): Replace with...
24214 (mips16_rdhwr_stub): ...this new variable.
24215 (mips16_stub_call_address): New function.
24216 (mips16_rdhwr_one_only_stub): New class.
24217 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24218 (mips_output_mips16_rdhwr): Delete.
24219 (mips_finish_stub): New function.
24220 (mips_code_end): Use it to handle rdhwr stubs.
24221
24222 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24223
24224 PR target/60017
24225 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24226 when calculating size of integer atomic types.
24227
24228 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24229
24230 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24231
24232 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24233
24234 PR tree-optimization/60003
24235 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24236 * profile.c (branch_prob): Use gimple_call_builtin_p
24237 to check for BUILT_IN_SETJMP_RECEIVER.
24238 * tree-inline.c (copy_bb): Call notice_special_calls.
24239
24240 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24241
24242 PR bootstrap/59985
24243 * lra-constraints.c (process_alt_operands): Update reload_sum only
24244 on the first pass.
24245
24246 2014-01-31 Richard Henderson <rth@redhat.com>
24247
24248 PR middle-end/60004
24249 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24250 until after else_eh is processed.
24251
24252 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24253
24254 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24255 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24256 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24257 in smmintrin.h, remove them.
24258 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24259 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24260 * config/i386/i386.md (ROUND_SAE): Fix value.
24261 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24262 (const48_operand): New.
24263 * config/i386/subst.md (round), (round_expand): Use
24264 const_4_or_8_to_11_operand.
24265 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24266
24267 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24268
24269 * config/i386/constraints.md (Yk): Swap meaning with k.
24270 * config/i386/i386.md (movhi_internal): Change Yk to k.
24271 (movqi_internal): Ditto.
24272 (*k<logic><mode>): Ditto.
24273 (*andhi_1): Ditto.
24274 (*andqi_1): Ditto.
24275 (kandn<mode>): Ditto.
24276 (*<code>hi_1): Ditto.
24277 (*<code>qi_1): Ditto.
24278 (kxnor<mode>): Ditto.
24279 (kortestzhi): Ditto.
24280 (kortestchi): Ditto.
24281 (kunpckhi): Ditto.
24282 (*one_cmplhi2_1): Ditto.
24283 (*one_cmplqi2_1): Ditto.
24284 * config/i386/sse.md (): Change k to Yk.
24285 (avx512f_load<mode>_mask): Ditto.
24286 (avx512f_blendm<mode>): Ditto.
24287 (avx512f_store<mode>_mask): Ditto.
24288 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24289 (avx512f_storedqu<mode>_mask): Ditto.
24290 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24291 Ditto.
24292 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24293 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24294 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24295 (avx512f_maskcmp<mode>3): Ditto.
24296 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24297 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24298 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24299 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24300 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24301 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24302 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24303 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24304 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24305 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24306 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24307 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24308 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24309 (vec_extract_lo_<mode>_maskm): Ditto.
24310 (vec_extract_hi_<mode>_maskm): Ditto.
24311 (avx512f_vternlog<mode>_mask): Ditto.
24312 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24313 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24314 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24315 (avx512f_<code>v8div16qi2_mask): Ditto.
24316 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24317 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24318 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24319 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24320 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24321 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24322 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24323 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24324 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24325 (avx512cd_maskb_vec_dupv8di): Ditto.
24326 (avx512cd_maskw_vec_dupv16si): Ditto.
24327 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24328 (avx512f_vpermi2var<mode>3_mask): Ditto.
24329 (avx512f_vpermi2var<mode>3_mask): Ditto.
24330 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24331 (*avx512f_gathersi<mode>): Ditto.
24332 (*avx512f_gathersi<mode>_2): Ditto.
24333 (*avx512f_gatherdi<mode>): Ditto.
24334 (*avx512f_gatherdi<mode>_2): Ditto.
24335 (*avx512f_scattersi<mode>): Ditto.
24336 (*avx512f_scatterdi<mode>): Ditto.
24337 (avx512f_compress<mode>_mask): Ditto.
24338 (avx512f_compressstore<mode>_mask): Ditto.
24339 (avx512f_expand<mode>_mask): Ditto.
24340 * config/i386/subst.md (mask): Change k to Yk.
24341 (mask_scalar_merge): Ditto.
24342 (sd): Ditto.
24343
24344 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24345
24346 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24347
24348 2014-01-31 Richard Biener <rguenther@suse.de>
24349
24350 PR middle-end/59990
24351 * builtins.c (fold_builtin_memory_op): Make sure to not
24352 use a floating-point mode or a boolean or enumeral type for
24353 the copy operation.
24354
24355 2014-01-30 DJ Delorie <dj@redhat.com>
24356
24357 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24358 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24359 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24360 whenever main() has an epilogue.
24361
24362 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24363
24364 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24365 unused variable "field".
24366 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24367 (vsx_mergeh_<mode>): Likewise.
24368 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24369 (altivec_vmrghh): Likewise.
24370 (altivec_vmrghw): Likewise.
24371 (altivec_vmrglb): Likewise.
24372 (altivec_vmrglh): Likewise.
24373 (altivec_vmrglw): Likewise.
24374 (altivec_vspltb): Add missing uses.
24375 (altivec_vsplth): Likewise.
24376 (altivec_vspltw): Likewise.
24377 (altivec_vspltsf): Likewise.
24378
24379 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24380
24381 PR target/59923
24382 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24383 frame related instructions.
24384
24385 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24386
24387 PR rtl-optimization/59959
24388 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24389 any reload of register whose subreg is invalid.
24390
24391 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24392
24393 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24394 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24395 Add missing return type - void.
24396
24397 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24398
24399 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24400 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24401 remove element index adjustment for endian (now handled in vsx.md
24402 and altivec.md).
24403 (altivec_expand_vec_perm_const): Use
24404 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24405 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24406 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24407 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24408 define_expand and a new define_insn *altivec_vspltb_internal;
24409 adjust for -maltivec=be on a little endian target.
24410 (altivec_vspltb_direct): New.
24411 (altivec_vsplth): Divide into a define_expand and a new
24412 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24413 little endian target.
24414 (altivec_vsplth_direct): New.
24415 (altivec_vspltw): Divide into a define_expand and a new
24416 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24417 little endian target.
24418 (altivec_vspltw_direct): New.
24419 (altivec_vspltsf): Divide into a define_expand and a new
24420 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24421 a little endian target.
24422
24423 2014-01-30 Richard Biener <rguenther@suse.de>
24424
24425 PR tree-optimization/59993
24426 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24427 can propagate form the earlier stmt and avoid the transform
24428 when the intermediate result is needed.
24429
24430 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24431
24432 * README.Portability: Fix typo.
24433
24434 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24435
24436 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24437 comparison_operator with ordered_comparison_operator.
24438
24439 2014-01-30 Nick Clifton <nickc@redhat.com>
24440
24441 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24442 Rename to mn10300_store_multiple_regs.
24443 * config/mn10300/mn10300.c: Likewise.
24444 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24445 store_multiple_regs.
24446 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24447 Call mn10300_store_multiple_regs.
24448
24449 2014-01-30 Nick Clifton <nickc@redhat.com>
24450 DJ Delorie <dj@redhat.com>
24451
24452 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24453 %fp 2 to keep registers after it properly word-aligned.
24454 (rl78_alloc_physical_registers_umul): Handle the case where both
24455 input operands are the same.
24456
24457 2014-01-30 Richard Biener <rguenther@suse.de>
24458
24459 PR tree-optimization/59903
24460 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24461 check properly.
24462
24463 2014-01-30 Jason Merrill <jason@redhat.com>
24464
24465 PR c++/59633
24466 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24467
24468 PR c++/59645
24469 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24470
24471 2014-01-30 Richard Biener <rguenther@suse.de>
24472
24473 PR tree-optimization/59951
24474 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24475
24476 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24477
24478 PR target/59784
24479 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24480 SFmode to DFmode case.
24481
24482 2014-01-29 DJ Delorie <dj@redhat.com>
24483
24484 * config/msp430/msp430.opt (-minrt): New.
24485 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24486 if -minrt given.
24487 (ENDFILE_SPEC): Likewise.
24488
24489 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24490
24491 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24492 (estimate_function_body_sizes): Use it.
24493
24494 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24495
24496 PR c++/58561
24497 * dwarf2out.c (is_cxx_auto): New.
24498 (is_base_type): Use it.
24499 (gen_type_die_with_usage): Likewise.
24500
24501 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24502
24503 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24504 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24505 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24506 -maltivec=be with LE targets.
24507 (vsx_mergeh_<mode>): Likewise.
24508 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24509 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24510 (altivec_vmrghb): Replace with define_expand and new
24511 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24512 (altivec_vmrghb_direct): New define_insn.
24513 (altivec_vmrghh): Replace with define_expand and new
24514 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24515 (altivec_vmrghh_direct): New define_insn.
24516 (altivec_vmrghw): Replace with define_expand and new
24517 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24518 (altivec_vmrghw_direct): New define_insn.
24519 (*altivec_vmrghsf): Adjust for endianness.
24520 (altivec_vmrglb): Replace with define_expand and new
24521 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24522 (altivec_vmrglb_direct): New define_insn.
24523 (altivec_vmrglh): Replace with define_expand and new
24524 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24525 (altivec_vmrglh_direct): New define_insn.
24526 (altivec_vmrglw): Replace with define_expand and new
24527 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24528 (altivec_vmrglw_direct): New define_insn.
24529 (*altivec_vmrglsf): Adjust for endianness.
24530 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24531 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24532 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24533 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24534 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24535 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24536 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24537 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24538
24539 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24540
24541 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24542 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24543 whitespace.
24544
24545 2014-01-29 Richard Biener <rguenther@suse.de>
24546
24547 PR tree-optimization/58742
24548 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24549 associate_pointerplus_align.
24550 (associate_pointerplus_diff): New function.
24551 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24552 and associate_pointerplus_diff.
24553
24554 2014-01-29 Richard Biener <rguenther@suse.de>
24555
24556 * lto-streamer.h (LTO_major_version): Bump to 3.
24557 (LTO_minor_version): Reset to 0.
24558
24559 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24560
24561 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24562 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24563 (arm_file_start): Generate correct asm header for armv7ve.
24564 * config/arm/bpabi.h: Add multilib support for armv7ve.
24565 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24566 and cortex-a15 to armv7ve.
24567 * config/arm/t-aprofile: Add multilib support for armv7ve.
24568 * doc/invoke.texi: Document -march=armv7ve.
24569
24570 2014-01-29 Richard Biener <rguenther@suse.de>
24571
24572 PR tree-optimization/58742
24573 * tree-ssa-forwprop.c (associate_plusminus): Return true
24574 if we changed sth, defer EH cleanup to ...
24575 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24576 (simplify_mult): New function.
24577
24578 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24579
24580 PR middle-end/59917
24581 PR tree-optimization/59920
24582 * tree.c (build_common_builtin_nodes): Remove
24583 __builtin_setjmp_dispatcher initialization.
24584 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24585 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24586 instead of gsi_after_labels + manually skipping debug stmts.
24587 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24588 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24589 * tree-inline.c (copy_edges_for_bb): Remove
24590 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24591 argument. Ignore computed_goto_p stmts. Don't call
24592 make_abnormal_goto_edges. If a call might need abnormal edges
24593 for non-local gotos, see if it already has an edge to
24594 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24595 with true argument, don't do anything then, otherwise add
24596 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24597 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24598 caller.
24599 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24600 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24601 (lower_stmt): Don't set data->calls_builtin_setjmp.
24602 (lower_builtin_setjmp): Adjust comment.
24603 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24604 * tree-cfg.c (found_computed_goto): Remove.
24605 (factor_computed_gotos): Remove.
24606 (make_goto_expr_edges): Return bool, true for computed gotos.
24607 Don't call make_abnormal_goto_edges.
24608 (build_gimple_cfg): Don't set found_computed_goto, don't call
24609 factor_computed_gotos.
24610 (computed_goto_p): No longer static.
24611 (make_blocks): Don't set found_computed_goto.
24612 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24613 (make_edges): If make_goto_expr_edges returns true, push bb
24614 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24615 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24616 vector. Record mapping between bbs and OpenMP regions if there
24617 are any, adjust make_gimple_omp_edges caller. Call
24618 handle_abnormal_edges.
24619 (make_abnormal_goto_edges): Remove.
24620 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24621 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24622 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24623 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24624 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24625 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24626 filling *region also set *region_idx to (*region)->entry->index.
24627
24628 PR other/58712
24629 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24630 For REGs set ORIGINAL_REGNO.
24631
24632 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24633
24634 * doc/md.texi: Mention that a target shouldn't implement
24635 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24636 than hi/lo pair.
24637
24638 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24639
24640 PR tree-optimization/59594
24641 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24642 a copy of the datarefs vector rather than the vector itself.
24643
24644 2014-01-28 Jason Merrill <jason@redhat.com>
24645
24646 PR c++/53756
24647 * dwarf2out.c (auto_die): New static.
24648 (gen_type_die_with_usage): Handle C++1y 'auto'.
24649 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24650 on definition.
24651
24652 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24653
24654 PR target/59672
24655 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24656 (SPEC_X32): Likewise.
24657 (SPEC_64): Likewise.
24658 * config/i386/i386.c (ix86_option_override_internal): Turn off
24659 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24660 for TARGET_16BIT.
24661 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24662 * config/i386/i386.h (TARGET_16BIT): New macro.
24663 (TARGET_16BIT_P): Likewise.
24664 * config/i386/i386.opt: Add m16.
24665 * doc/invoke.texi: Document -m16.
24666
24667 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24668
24669 PR preprocessor/59935
24670 * input.c (location_get_source_line): Bail out on when line number
24671 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24672
24673 2014-01-28 Richard Biener <rguenther@suse.de>
24674
24675 PR tree-optimization/58742
24676 * tree-ssa-forwprop.c (associate_plusminus): Handle
24677 pointer subtraction of the form (T)(P + A) - (T)P.
24678
24679 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24680
24681 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24682 at const_int_cost.
24683
24684 2014-01-28 Richard Biener <rguenther@suse.de>
24685
24686 Revert
24687 2014-01-28 Richard Biener <rguenther@suse.de>
24688
24689 PR rtl-optimization/45364
24690 PR rtl-optimization/59890
24691 * var-tracking.c (local_get_addr_clear_given_value): Handle
24692 already cleared slot.
24693 (val_reset): Handle not allocated local_get_addr_cache.
24694 (vt_find_locations): Use post-order on the inverted CFG.
24695
24696 2014-01-28 Richard Biener <rguenther@suse.de>
24697
24698 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24699
24700 2014-01-28 Richard Biener <rguenther@suse.de>
24701
24702 PR rtl-optimization/45364
24703 PR rtl-optimization/59890
24704 * var-tracking.c (local_get_addr_clear_given_value): Handle
24705 already cleared slot.
24706 (val_reset): Handle not allocated local_get_addr_cache.
24707 (vt_find_locations): Use post-order on the inverted CFG.
24708
24709 2014-01-28 Alan Modra <amodra@gmail.com>
24710
24711 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24712 * configure.ac <recursive call for build != host>: Define
24713 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24714 and LD_FOR_BUILD too.
24715 * configure: Regenerate.
24716
24717 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24718
24719 * config/i386/i386.c (get_builtin_code_for_version): Separate
24720 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24721 Broadwell from Haswell.
24722
24723 2014-01-27 Steve Ellcey <sellcey@mips.com>
24724
24725 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24726 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24727 * config/mips/mips.c (mips_option_override): Change setting
24728 of TARGET_DSP.
24729 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24730 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24731 Change from Mask to Var.
24732
24733 2014-01-27 Jeff Law <law@redhat.com>
24734
24735 * ipa-inline.c (inline_small_functions): Fix typo.
24736
24737 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24738
24739 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24740 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24741 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24742 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24743 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24744 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24745 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24746 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24747 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24748 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24749 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24750 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24751 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24752 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24753 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24754 (_mm512_storeu_epi64): Ditto.
24755 (_mm512_cmpge_epi32_mask): Ditto.
24756 (_mm512_cmpge_epu32_mask): Ditto.
24757 (_mm512_cmpge_epi64_mask): Ditto.
24758 (_mm512_cmpge_epu64_mask): Ditto.
24759 (_mm512_cmple_epi32_mask): Ditto.
24760 (_mm512_cmple_epu32_mask): Ditto.
24761 (_mm512_cmple_epi64_mask): Ditto.
24762 (_mm512_cmple_epu64_mask): Ditto.
24763 (_mm512_cmplt_epi32_mask): Ditto.
24764 (_mm512_cmplt_epu32_mask): Ditto.
24765 (_mm512_cmplt_epi64_mask): Ditto.
24766 (_mm512_cmplt_epu64_mask): Ditto.
24767 (_mm512_cmpneq_epi32_mask): Ditto.
24768 (_mm512_cmpneq_epu32_mask): Ditto.
24769 (_mm512_cmpneq_epi64_mask): Ditto.
24770 (_mm512_cmpneq_epu64_mask): Ditto.
24771 (_mm512_expand_pd): Ditto.
24772 (_mm512_expand_ps): Ditto.
24773 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24774 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24775 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24776 * config/i386/i386.c (ix86_builtins): Add
24777 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24778 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24779 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24780 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24781 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24782 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24783 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24784 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24785 IX86_BUILTIN_PMOVUSQW512_MEM.
24786 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24787 __builtin_ia32_pmovsqd512mem_mask,
24788 __builtin_ia32_pmovqd512mem_mask,
24789 __builtin_ia32_pmovusqw512mem_mask,
24790 __builtin_ia32_pmovsqw512mem_mask,
24791 __builtin_ia32_pmovqw512mem_mask,
24792 __builtin_ia32_pmovusdw512mem_mask,
24793 __builtin_ia32_pmovsdw512mem_mask,
24794 __builtin_ia32_pmovdw512mem_mask,
24795 __builtin_ia32_pmovqb512mem_mask,
24796 __builtin_ia32_pmovusqb512mem_mask,
24797 __builtin_ia32_pmovsqb512mem_mask,
24798 __builtin_ia32_pmovusdb512mem_mask,
24799 __builtin_ia32_pmovsdb512mem_mask,
24800 __builtin_ia32_pmovdb512mem_mask.
24801 (bdesc_args): Add __builtin_ia32_expanddf512,
24802 __builtin_ia32_expandsf512.
24803 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24804 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24805 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24806 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24807 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24808 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24809 (avx512f_<code>v8div16qi2_mask_store): This.
24810 (avx512f_expand<mode>): New.
24811
24812 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24813
24814 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24815 New.
24816 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24817 (_mm512_prefetch_i32scatter_pd): Ditto.
24818 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24819 (_mm512_prefetch_i64scatter_pd): Ditto.
24820 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24821 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24822 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24823 (_mm512_prefetch_i32scatter_ps): Ditto.
24824 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24825 (_mm512_prefetch_i64scatter_ps): Ditto.
24826 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24827 * config/i386/i386-builtin-types.def: Define
24828 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24829 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24830 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24831 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24832 IX86_BUILTIN_SCATTERPFQPD.
24833 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24834 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24835 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24836 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24837 __builtin_ia32_scatterpfqps.
24838 (ix86_expand_builtin): Expand new built-ins.
24839 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24840 fix memory access data type.
24841 (*avx512pf_gatherpf<mode>_mask): Ditto.
24842 (*avx512pf_gatherpf<mode>): Ditto.
24843 (avx512pf_scatterpf<mode>): Ditto.
24844 (*avx512pf_scatterpf<mode>_mask): Ditto.
24845 (*avx512pf_scatterpf<mode>): Ditto.
24846 (GATHER_SCATTER_SF_MEM_MODE): New.
24847 (avx512pf_gatherpf<mode>df): Ditto.
24848 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24849 (*avx512pf_scatterpf<mode>df): Ditto.
24850
24851 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24852
24853 PR bootstrap/59934
24854 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24855 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24856 reached.
24857
24858 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24859
24860 * common/config/arm/arm-common.c
24861 (arm_rewrite_mcpu): Handle multiple names.
24862 * config/arm/arm.h
24863 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24864
24865 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24866
24867 * gimple-builder.h (create_gimple_tmp): Delete.
24868
24869 2014-01-27 Christian Bruel <christian.bruel@st.com>
24870
24871 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24872 words comparisons.
24873
24874 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24875
24876 * config/pa/pa.md (call): Generate indirect long calls to non-local
24877 functions when outputing 32-bit code.
24878 (call_value): Likewise except for special call to buggy powf function.
24879
24880 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24881 portable runtime and PIC indirect calls.
24882 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24883 and PIC call sequences. Use ldo instead of blr to set return register
24884 in PIC call sequence.
24885
24886 2014-01-25 Walter Lee <walt@tilera.com>
24887
24888 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24889 avoid clobbering a live register.
24890
24891 2014-01-25 Walter Lee <walt@tilera.com>
24892
24893 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24894 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24895 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24896 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24897
24898 2014-01-25 Walter Lee <walt@tilera.com>
24899
24900 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24901 arguments on even registers.
24902 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24903 STACK_BOUNDARY.
24904 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24905 (BIGGEST_ALIGNMENT): Ditto.
24906 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24907
24908 2014-01-25 Walter Lee <walt@tilera.com>
24909
24910 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24911 insns before bundling.
24912 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24913
24914 2014-01-25 Walter Lee <walt@tilera.com>
24915
24916 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24917 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24918 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24919
24920 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24921
24922 * config/mips/constraints.md (kl): Delete.
24923 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24924 define expands, using...
24925 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24926 instructions for MIPS16.
24927 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24928 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24929
24930 2014-01-25 Walter Lee <walt@tilera.com>
24931
24932 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24933 (clzdi2): Ditto.
24934 (ffsdi2): Ditto.
24935
24936 2014-01-25 Walter Lee <walt@tilera.com>
24937
24938 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24939 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24940
24941 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24942
24943 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24944 Handle XOR.
24945
24946 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24947
24948 * print-rtl.c (in_call_function_usage): New var.
24949 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24950 EXPR_LIST mode as mode and not as reg note name.
24951
24952 PR middle-end/59561
24953 * cfgloopmanip.c (copy_loop_info): If
24954 loop->warned_aggressive_loop_optimizations, make sure
24955 the flag is set in target loop too.
24956
24957 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24958
24959 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24960 flag_cilkplus.
24961 * builtins.def: Likewise.
24962 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24963 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24964 * ira.c (ira_setup_eliminable_regset): Likewise.
24965 * omp-low.c (gate_expand_omp): Likewise.
24966 (execute_lower_omp): Likewise.
24967 (diagnose_sb_0): Likewise.
24968 (gate_diagnose_omp_blocks): Likewise.
24969 (simd_clone_clauses_extract): Likewise.
24970 (gate): Likewise.
24971
24972 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24973
24974 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24975 correction for little endian...
24976 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24977 here.
24978
24979 2014-01-24 Jeff Law <law@redhat.com>
24980
24981 PR tree-optimization/59919
24982 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24983 for non-returning calls.
24984
24985 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24986
24987 * common/config/aarch64/aarch64-common.c
24988 (aarch64_rewrite_mcpu): Handle multiple names.
24989 * config/aarch64/aarch64.h
24990 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24991
24992 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24993
24994 * input.c (add_file_to_cache_tab): Handle the case where fopen
24995 returns NULL.
24996
24997 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24998
24999 PR target/59929
25000 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25001 from push operand if code of push isn't PRE_DEC.
25002
25003 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25004
25005 PR target/59909
25006 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25007 -mquad-memory-atomic. Update -mquad-memory documentation to say
25008 it is only used for non-atomic loads/stores.
25009
25010 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25011 -mquad-memory or -mquad-memory-atomic switches.
25012
25013 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25014 -mquad-memory-atomic to ISA 2.07 support.
25015
25016 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25017 to separate support of normal quad word memory operations (ldq, stq)
25018 from the atomic quad word memory operations.
25019
25020 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25021 support to separate non-atomic quad word operations from atomic
25022 quad word operations. Disable non-atomic quad word operations in
25023 little endian mode so that we don't have to swap words after the
25024 load and before the store.
25025 (quad_load_store_p): Add comment about atomic quad word support.
25026 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25027 options printed with -mdebug=reg.
25028
25029 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25030 -mquad-memory-atomic as the test for whether we have quad word
25031 atomic instructions.
25032 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25033 or -mp8-vector are used, allow byte/half-word atomic operations.
25034
25035 * config/rs6000/sync.md (load_lockedti): Insure that the address
25036 is a proper indexed or indirect address for the lqarx instruction.
25037 On little endian systems, swap the hi/lo registers after the lqarx
25038 instruction.
25039 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25040 insure the address is valid for the lqarx instruction.
25041 (store_conditionalti): Insure that the address is a proper indexed
25042 or indirect address for the stqcrx. instruction. On little endian
25043 systems, swap the hi/lo registers before doing the stqcrx.
25044 instruction.
25045 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25046 insure the address is valid for the stqcrx. instruction.
25047
25048 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25049 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25050 type of quad memory support is available.
25051
25052 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25053
25054 PR regression/59915
25055 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25056 there is a danger of looping.
25057
25058 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25059
25060 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25061 force flag_ira_loop_pressure if set via command line.
25062
25063 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25064
25065 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25066 (ashr_simd): New builtin handling DI mode.
25067 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25068 (aarch64_sshr_simddi): New match pattern.
25069 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25070 (vshrd_n_s64): Likewise.
25071 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25072
25073 2014-01-23 Nick Clifton <nickc@redhat.com>
25074
25075 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25076 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25077 favour of mcu specific scripts.
25078 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25079 430x multilibs.
25080
25081 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25082 Alex Velenko <Alex.Velenko@arm.com>
25083
25084 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25085 (vaddv_s16): Likewise.
25086 (vaddv_s32): Likewise.
25087 (vaddv_u8): Likewise.
25088 (vaddv_u16): Likewise.
25089 (vaddv_u32): Likewise.
25090 (vaddvq_s8): Likewise.
25091 (vaddvq_s16): Likewise.
25092 (vaddvq_s32): Likewise.
25093 (vaddvq_s64): Likewise.
25094 (vaddvq_u8): Likewise.
25095 (vaddvq_u16): Likewise.
25096 (vaddvq_u32): Likewise.
25097 (vaddvq_u64): Likewise.
25098 (vaddv_f32): Likewise.
25099 (vaddvq_f32): Likewise.
25100 (vaddvq_f64): Likewise.
25101 (vmaxv_f32): Likewise.
25102 (vmaxv_s8): Likewise.
25103 (vmaxv_s16): Likewise.
25104 (vmaxv_s32): Likewise.
25105 (vmaxv_u8): Likewise.
25106 (vmaxv_u16): Likewise.
25107 (vmaxv_u32): Likewise.
25108 (vmaxvq_f32): Likewise.
25109 (vmaxvq_f64): Likewise.
25110 (vmaxvq_s8): Likewise.
25111 (vmaxvq_s16): Likewise.
25112 (vmaxvq_s32): Likewise.
25113 (vmaxvq_u8): Likewise.
25114 (vmaxvq_u16): Likewise.
25115 (vmaxvq_u32): Likewise.
25116 (vmaxnmv_f32): Likewise.
25117 (vmaxnmvq_f32): Likewise.
25118 (vmaxnmvq_f64): Likewise.
25119 (vminv_f32): Likewise.
25120 (vminv_s8): Likewise.
25121 (vminv_s16): Likewise.
25122 (vminv_s32): Likewise.
25123 (vminv_u8): Likewise.
25124 (vminv_u16): Likewise.
25125 (vminv_u32): Likewise.
25126 (vminvq_f32): Likewise.
25127 (vminvq_f64): Likewise.
25128 (vminvq_s8): Likewise.
25129 (vminvq_s16): Likewise.
25130 (vminvq_s32): Likewise.
25131 (vminvq_u8): Likewise.
25132 (vminvq_u16): Likewise.
25133 (vminvq_u32): Likewise.
25134 (vminnmv_f32): Likewise.
25135 (vminnmvq_f32): Likewise.
25136 (vminnmvq_f64): Likewise.
25137
25138 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25139
25140 * config/aarch64/aarch64-simd.md
25141 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25142 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25143 (*aarch64_mul3_elt<mode>): Likewise.
25144 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25145 (*aarch64_mul3_elt_to_64v2df): Likewise.
25146 (*aarch64_mla_elt<mode>): Likewise.
25147 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25148 (*aarch64_mls_elt<mode>): Likewise.
25149 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25150 (*aarch64_fma4_elt<mode>): Likewise.
25151 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25152 (*aarch64_fma4_elt_to_64v2df): Likewise.
25153 (*aarch64_fnma4_elt<mode>): Likewise.
25154 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25155 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25156 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25157 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25158 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25159 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25160 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25161 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25162 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25163
25164 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25165
25166 * config/aarch64/aarch64-simd.md
25167 (aarch64_be_checked_get_lane<mode>): New define_expand.
25168 * config/aarch64/aarch64-simd-builtins.def
25169 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25170 New builtin definition.
25171 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25172 Use new safe be builtin.
25173
25174 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25175
25176 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25177 New define_insn.
25178 (aarch64_be_st1<mode>): Likewise.
25179 (aarch_ld1<VALL:mode>): Define_expand modified.
25180 (aarch_st1<VALL:mode>): Likewise.
25181 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25182 (UNSPEC_ST1): Likewise.
25183
25184 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25185
25186 * config/microblaze/microblaze.md: Add trap insn and attribute
25187
25188 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25189
25190 PR preprocessor/58580
25191 * input.h (location_get_source_line): Take an additional line_size
25192 parameter.
25193 (void diagnostics_file_cache_fini): Declare new function.
25194 * input.c (struct fcache): New type.
25195 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25196 New static constants.
25197 (diagnostic_file_cache_init, total_lines_num)
25198 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25199 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25200 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25201 (get_next_line, read_next_line, goto_next_line, read_line_num):
25202 New static function definitions.
25203 (diagnostic_file_cache_fini): New function.
25204 (location_get_source_line): Take an additional output line_len
25205 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25206 read_line_num.
25207 * diagnostic.c (diagnostic_finish): Call
25208 diagnostic_file_cache_fini.
25209 (adjust_line): Take an additional input parameter for the length
25210 of the line, rather than calculating it with strlen.
25211 (diagnostic_show_locus): Adjust the use of
25212 location_get_source_line and adjust_line with respect to their new
25213 signature. While displaying a line now, do not stop at the first
25214 null byte. Rather, display the zero byte as a space and keep
25215 going until we reach the size of the line.
25216 * Makefile.in: Add vec.o to OBJS-libcommon
25217
25218 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25219 Ilya Tocar <ilya.tocar@intel.com>
25220
25221 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25222 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25223 (__builtin_ia32_kmov16): Ditto.
25224 * config/i386/i386.md (UNSPEC_KMOV): New.
25225 (kmovw): Ditto.
25226
25227 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25228
25229 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25230 (_mm512_storeu_si512): Ditto.
25231
25232 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25233
25234 PR target/52125
25235 * rtl.h (get_referenced_operands): Declare.
25236 * recog.c (get_referenced_operands): New function.
25237 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25238 operands have been referenced when recording LO_SUM references.
25239
25240 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25241
25242 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25243
25244 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25245
25246 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25247 Enable for generic and recent AMD targets.
25248
25249 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25250
25251 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25252 ARG_SIZE note when adjustment was eliminated.
25253
25254 2014-01-22 Jeff Law <law@redhat.com>
25255
25256 PR tree-optimization/59597
25257 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25258 in file. Accept new argument REGISTERING and use it to modify
25259 dump output appropriately.
25260 (register_jump_thread): Corresponding changes.
25261 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25262 thread paths involving joiner blocks. Add code to dump cancelled
25263 jump threading paths.
25264
25265 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25266
25267 PR rtl-optimization/59477
25268 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25269 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25270
25271 2014-01-22 Tom Tromey <tromey@redhat.com>
25272
25273 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25274 PARAMS.
25275 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25276
25277 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25278
25279 PR rtl-optimization/59896
25280 * lra-constraints.c (process_alt_operands): Check unused note for
25281 matched operands of insn with no output reloads.
25282
25283 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25284
25285 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25286 (mips_move_from_gpr_cost): Likewise.
25287
25288 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25289
25290 PR rtl-optimization/59858
25291 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25292 ira_class_hard_regs_num.
25293 (process_alt_operands): Increase reject for dying matched operand.
25294
25295 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25296
25297 PR target/59003
25298 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25299 smaller than size, perform several stores or loads and stores
25300 at dst + count - size to store or copy all of size bytes, rather
25301 than just last modesize bytes.
25302
25303 2014-01-20 DJ Delorie <dj@redhat.com>
25304
25305 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25306 that CLOBBERs are REGs before propogating their values.
25307
25308 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25309
25310 PR middle-end/59789
25311 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25312 (cgraph_inline_failed_type): New function.
25313 * cgraph.h (DEFCIFCODE): Add type.
25314 (cgraph_inline_failed_type_t): New enum.
25315 (cgraph_inline_failed_type): New prototype.
25316 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25317 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25318 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25319 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25320 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25321 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25322 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25323 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25324 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25325 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25326 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25327 OPTIMIZATION_MISMATCH.
25328 * tree-inline.c (expand_call_inline): Emit errors during
25329 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25330
25331 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25332
25333 PR target/59685
25334 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25335 mode attribute in insn output.
25336
25337 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25338
25339 * output.h (output_constant): Delete.
25340 * varasm.c (output_constant): Make private.
25341
25342 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25343
25344 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25345
25346 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25347
25348 PR middle-end/59860
25349 * tree.h (fold_builtin_strcat): New prototype.
25350 * builtins.c (fold_builtin_strcat): No longer static. Add len
25351 argument, if non-NULL, don't call c_strlen. Optimize
25352 directly into __builtin_memcpy instead of __builtin_strcpy.
25353 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25354 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25355
25356 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25357
25358 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25359 for SImode_address_operand operands, having only a REG argument.
25360
25361 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25362
25363 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25364 loader name using mbig-endian.
25365 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25366
25367 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25368
25369 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25370 (-mtune): Likewise.
25371 (-mcpu): Likewise.
25372
25373 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25374
25375 * config/aarch64/aarch64-protos.h
25376 (aarch64_cannot_change_mode_class_ptr): Declare.
25377 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25378 aarch64_cannot_change_mode_class_ptr): New.
25379 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25380 backend hook aarch64_cannot_change_mode_class.
25381
25382 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25383
25384 * common/config/aarch64/aarch64-common.c
25385 (aarch64_handle_option): Don't handle any option order logic here.
25386 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25387 selected_cpu, warn on architecture version mismatch.
25388 (aarch64_override_options): Fix parsing order for option strings.
25389
25390 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25391 Iain Sandoe <iain@codesourcery.com>
25392
25393 PR bootstrap/59496
25394 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25395 warning. Amend comment to reflect current functionality.
25396
25397 2014-01-20 Richard Biener <rguenther@suse.de>
25398
25399 PR middle-end/59860
25400 * builtins.c (fold_builtin_strcat): Remove case better handled
25401 by tree-ssa-strlen.c.
25402
25403 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25404
25405 * config/aarch64/aarch64.opt
25406 (mcpu, march, mtune): Make case-insensitive.
25407
25408 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25409
25410 PR target/59880
25411 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25412 if operands[1] is a REG or ZERO_EXTEND of a REG.
25413
25414 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25415
25416 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25417
25418 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25419
25420 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25421 long non-pic millicode calls.
25422
25423 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25424
25425 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25426
25427 2014-01-19 Kito Cheng <kito@0xlab.org>
25428
25429 * builtins.c (expand_movstr): Check movstr expand done or fail.
25430
25431 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25432 H.J. Lu <hongjiu.lu@intel.com>
25433
25434 PR target/59379
25435 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25436 to DImode for zero-extended addresses.
25437
25438 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25439
25440 PR rtl-optimization/57763
25441 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25442 on the new indirect jump_insn and increment LABEL_NUSES (label).
25443
25444 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25445
25446 PR bootstrap/59580
25447 PR bootstrap/59583
25448 * config.gcc (x86_archs): New variable.
25449 (x86_64_archs): Likewise.
25450 (x86_cpus): Likewise.
25451 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25452 --with-arch/--with-cpu= options.
25453 Support --with-arch=/--with-cpu={nehalem,westmere,
25454 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25455
25456 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25457
25458 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25459 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25460
25461 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25462
25463 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25464
25465 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25466
25467 PR target/58944
25468 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25469 clear cpp_get_options (parse_in)->warn_unused_macros for
25470 ix86_target_macros_internal with cpp_define.
25471
25472 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25473
25474 * jump.c (delete_related_insns): Keep (use (insn))s.
25475 * reorg.c (redundant_insn): Check for barriers too.
25476
25477 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25478
25479 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25480
25481 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25482
25483 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25484 call to $$dyncall when TARGET_LONG_CALLS is true.
25485
25486 2014-01-17 Jeff Law <law@redhat.com>
25487
25488 * ree.c (combine_set_extension): Temporarily disable test for
25489 changing number of hard registers.
25490
25491 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25492
25493 PR middle-end/58125
25494 * ipa-inline-analysis.c (inline_free_summary):
25495 Do not free summary of aliases.
25496
25497 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25498
25499 PR middle-end/59706
25500 * gimplify.c (gimplify_expr): Use create_tmp_var
25501 instead of create_tmp_var_raw. If cond doesn't have
25502 integral type, don't add the IFN_ANNOTATE builtin at all.
25503
25504 2014-01-17 Martin Jambor <mjambor@suse.cz>
25505
25506 PR ipa/59736
25507 * ipa-cp.c (prev_edge_clone): New variable.
25508 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25509 Also resize prev_edge_clone vector.
25510 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25511 (ipcp_edge_removal_hook): New function.
25512 (ipcp_driver): Register ipcp_edge_removal_hook.
25513
25514 2014-01-17 Andrew Pinski <apinski@cavium.com>
25515 Steve Ellcey <sellcey@mips.com>
25516
25517 PR target/59462
25518 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25519 of operator mode.
25520
25521 2014-01-17 Jeff Law <law@redhat.com>
25522
25523 PR middle-end/57904
25524 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25525 so that pass_ccp runs first.
25526
25527 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25528
25529 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25530 (ix86_adjust_cost): Use !TARGET_XXX.
25531 (do_reorder_for_imul): Likewise.
25532 (swap_top_of_ready_list): Likewise.
25533 (ix86_sched_reorder): Likewise.
25534
25535 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25536
25537 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25538 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25539 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25540 (intel_memset): New. Duplicate slm_memset.
25541 (intel_cost): New. Duplicate slm_cost.
25542 (m_INTEL): New macro.
25543 (processor_target_table): Add "intel".
25544 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25545 with PROCESSOR_INTEL for "intel".
25546 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25547 PROCESSOR_SILVERMONT.
25548 (ix86_issue_rate): Likewise.
25549 (ix86_adjust_cost): Likewise.
25550 (ia32_multipass_dfa_lookahead): Likewise.
25551 (swap_top_of_ready_list): Likewise.
25552 (ix86_sched_reorder): Likewise.
25553 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25554 instead of TARGET_OPT_AGU.
25555 * config/i386/i386.h (TARGET_INTEL): New.
25556 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25557 (processor_type): Add PROCESSOR_INTEL.
25558 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25559 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25560
25561 2014-01-17 Marek Polacek <polacek@redhat.com>
25562
25563 PR c/58346
25564 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25565 size is zero.
25566
25567 2014-01-17 Richard Biener <rguenther@suse.de>
25568
25569 PR tree-optimization/46590
25570 * opts.c (default_options_table): Add entries for
25571 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25572 all enabled at -O1 but not for -Og.
25573 * common.opt (fbranch-count-reg): Remove Init(1).
25574 (fmove-loop-invariants): Likewise.
25575 (ftree-pta): Likewise.
25576
25577 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25578
25579 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25580 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25581 decls to at least the GCC 4.8 used alignments.
25582
25583 PR fortran/59440
25584 * tree-nested.c (convert_nonlocal_reference_stmt,
25585 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25586 of GIMPLE_BIND stmts, adjust associated decls.
25587
25588 2014-01-17 Richard Biener <rguenther@suse.de>
25589
25590 PR tree-optimization/46590
25591 * vec.h (vec<>::bseach): New member function implementing
25592 binary search according to C89 bsearch.
25593 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25594 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25595 bitmap pointer again. Make accesses_in_loop a flat array.
25596 (mem_ref_obstack): New global.
25597 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25598 (mark_ref_stored): Likewise.
25599 (ref_indep_loop_p_2): Likewise.
25600 (set_ref_stored_in_loop): New helper function.
25601 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25602 (memref_free): Adjust.
25603 (record_mem_ref_loc): Simplify.
25604 (gather_mem_refs_stmt): Adjust.
25605 (sort_locs_in_loop_postorder_cmp): New function.
25606 (analyze_memory_references): Sort accesses_in_loop after
25607 loop postorder number.
25608 (find_ref_loc_in_loop_cmp): New function.
25609 (for_all_locs_in_loop): Find relevant cluster of locs in
25610 accesses_in_loop and iterate without recursion.
25611 (execute_sm): Avoid uninit warning.
25612 (struct ref_always_accessed): Simplify.
25613 (ref_always_accessed::operator ()): Likewise.
25614 (ref_always_accessed_p): Likewise.
25615 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25616 loop postorder numbers here.
25617 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25618 numbers.
25619
25620 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25621
25622 PR c++/57945
25623 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25624 on decls for which assemble_alias has been called.
25625
25626 2014-01-17 Nick Clifton <nickc@redhat.com>
25627
25628 * config/msp430/msp430.opt: (mcpu): New option.
25629 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25630 (msp430_option_override): Parse target_cpu. If the MCU name
25631 matches a generic string, clear target_mcu.
25632 (msp430_attr): Allow numeric interrupt values up to 63.
25633 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25634 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25635 option.
25636 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25637 Add mcpu matches.
25638 * config/msp430/msp430.md (popm): Use %J rather than %I.
25639 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25640 (addhi_cy_i): Use immediate_operand for operand 2.
25641 * doc/invoke.texi: Document -mcpu option.
25642
25643 2014-01-17 Richard Biener <rguenther@suse.de>
25644
25645 PR rtl-optimization/38518
25646 * df.h (df_analyze_loop): Declare.
25647 * df-core.c: Include cfgloop.h.
25648 (df_analyze_1): Split out main part of df_analyze.
25649 (df_analyze): Adjust.
25650 (loop_inverted_post_order_compute): New function.
25651 (loop_post_order_compute): Likewise.
25652 (df_analyze_loop): New function avoiding whole-function
25653 postorder computes.
25654 * loop-invariant.c (find_defs): Use df_analyze_loop.
25655 (find_invariants): Adjust.
25656 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25657
25658 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25659
25660 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25661 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25662
25663 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25664
25665 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25666 traversal when removing references.
25667
25668 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25669
25670 PR ipa/59775
25671 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25672
25673 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25674
25675 PR middle-end/56791
25676 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25677 pushing a reload for an autoinc when we had previously reloaded an
25678 inner part of the address.
25679
25680 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25681
25682 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25683 field.
25684 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25685 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25686 when not giving up or versioning for alias only because of
25687 loop->safelen.
25688 (vect_analyze_data_ref_dependences): Set to true.
25689 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25690 is a GIMPLE_PHI.
25691 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25692 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25693 to the condition.
25694
25695 PR middle-end/58344
25696 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25697
25698 PR target/59839
25699 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25700 operand 0 predicate for gathers, use a new pseudo as subtarget.
25701
25702 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25703
25704 PR middle-end/59609
25705 * lra-constraints.c (process_alt_operands): Add printing debug info.
25706 Check absence of input/output reloads for matched operands too.
25707
25708 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25709
25710 PR rtl-optimization/59835
25711 * ira.c (ira_init_register_move_cost): Increase cost for
25712 impossible modes.
25713
25714 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25715
25716 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25717
25718 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25719
25720 PR target/59780
25721 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25722 non-register objects. Use gen_(high/low)part more consistently.
25723 Fix assertions.
25724
25725 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25726
25727 PR target/59844
25728 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25729 endian support, remove tests for WORDS_BIG_ENDIAN.
25730 (p8_mfvsrd_3_<mode>): Likewise.
25731 (reload_gpr_from_vsx<mode>): Likewise.
25732 (reload_gpr_from_vsxsf): Likewise.
25733 (p8_mfvsrd_4_disf): Likewise.
25734
25735 2014-01-16 Richard Biener <rguenther@suse.de>
25736
25737 PR rtl-optimization/46590
25738 * lcm.c (compute_antinout_edge): Use postorder iteration.
25739 (compute_laterin): Use inverted postorder iteration.
25740
25741 2014-01-16 Nick Clifton <nickc@redhat.com>
25742
25743 PR middle-end/28865
25744 * varasm.c (output_constant): Return the number of bytes actually
25745 emitted.
25746 (output_constructor_array_range): Update the field size with the
25747 number of bytes emitted by output_constant.
25748 (output_constructor_regular_field): Likewise. Also do not
25749 complain if the total number of bytes emitted is now greater
25750 than the expected fieldpos.
25751 * output.h (output_constant): Update prototype and descriptive comment.
25752
25753 2014-01-16 Marek Polacek <polacek@redhat.com>
25754
25755 PR middle-end/59827
25756 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25757 it is error_mark_node.
25758
25759 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25760
25761 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25762 VALID_AVX256_REG_OR_OI_MODE.
25763
25764 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25765
25766 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25767 current procedure should be profiled.
25768
25769 2014-01-15 Andrew Pinski <apinski@cavium.com>
25770
25771 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25772 of moving from/to the STACK_REG register class.
25773
25774 2014-01-15 Richard Henderson <rth@redhat.com>
25775
25776 PR debug/54694
25777 * reginfo.c (global_regs_decl): Globalize.
25778 * rtl.h (global_regs_decl): Declare.
25779 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25780 reserved via global_regs.
25781
25782 2014-01-15 Teresa Johnson <tejohnson@google.com>
25783
25784 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25785
25786 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25787
25788 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25789 and vmulosh rather than call gen_vec_widen_smult_*.
25790 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25791 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25792 (vec_widen_smult_even_v16qi): Likewise.
25793 (vec_widen_umult_even_v8hi): Likewise.
25794 (vec_widen_smult_even_v8hi): Likewise.
25795 (vec_widen_umult_odd_v16qi): Likewise.
25796 (vec_widen_smult_odd_v16qi): Likewise.
25797 (vec_widen_umult_odd_v8hi): Likewise.
25798 (vec_widen_smult_odd_v8hi): Likewise.
25799 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25800 vmuloub rather than call gen_vec_widen_umult_*.
25801 (vec_widen_umult_lo_v16qi): Likewise.
25802 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25803 vmulosb rather than call gen_vec_widen_smult_*.
25804 (vec_widen_smult_lo_v16qi): Likewise.
25805 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25806 rather than call gen_vec_widen_umult_*.
25807 (vec_widen_umult_lo_v8hi): Likewise.
25808 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25809 rather than call gen_vec_widen_smult_*.
25810 (vec_widen_smult_lo_v8hi): Likewise.
25811
25812 2014-01-15 Jeff Law <law@redhat.com>
25813
25814 PR tree-optimization/59747
25815 * ree.c (find_and_remove_re): Properly handle case where a second
25816 eliminated extension requires widening a copy created for elimination
25817 of a prior extension.
25818 (combine_set_extension): Ensure that the number of hard regs needed
25819 for a destination register does not change when we widen it.
25820
25821 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25822
25823 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25824 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25825 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25826 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25827 (avr-*-rtems*): Likewise.
25828 (bfin*-rtems*): Likewise.
25829 (moxie-*-rtems*): Likewise.
25830 (h8300-*-rtems*): Likewise.
25831 (i[34567]86-*-rtems*): Likewise.
25832 (lm32-*-rtems*): Likewise.
25833 (m32r-*-rtems*): Likewise.
25834 (m68k-*-rtems*): Likewise.
25835 (microblaze*-*-rtems*): Likewise.
25836 (mips*-*-rtems*): Likewise.
25837 (powerpc-*-rtems*): Likewise.
25838 (sh-*-rtems*): Likewise.
25839 (sparc-*-rtems*): Likewise.
25840 (sparc64-*-rtems*): Likewise.
25841 (v850-*-rtems*): Likewise.
25842 (m32c-*-rtems*): Likewise.
25843
25844 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25845
25846 PR rtl-optimization/59511
25847 * ira.c (ira_init_register_move_cost): Use memory costs for some
25848 cases of register move cost calculations.
25849 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25850 instead of BB frequency.
25851 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25852 * lra-assigns.c (find_hard_regno_for): Ditto.
25853
25854 2014-01-15 Richard Biener <rguenther@suse.de>
25855
25856 PR tree-optimization/59822
25857 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25858 (vectorizable_load): Use it to hoist defs of uses of invariant
25859 loads out of the loop.
25860
25861 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25862 Kugan Vivekanandarajah <kuganv@linaro.org>
25863
25864 PR target/59695
25865 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25866 truncation.
25867
25868 2014-01-15 Richard Biener <rguenther@suse.de>
25869
25870 PR rtl-optimization/59802
25871 * lcm.c (compute_available): Use inverted postorder to seed
25872 the initial worklist.
25873
25874 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25875
25876 PR target/59803
25877 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25878 ADDR_REGS for invalid symrefs in non-PIC code.
25879
25880 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25881
25882 PR other/58712
25883 * builtins.c (determine_block_size): Initialize *probable_max_size
25884 even if len_rtx is CONST_INT.
25885
25886 2014-01-14 Andrew Pinski <apinski@cavium.com>
25887
25888 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25889 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25890 (cortexa53_tunings): Likewise.
25891 (aarch64_sched_issue_rate): New function.
25892 (TARGET_SCHED_ISSUE_RATE): Define.
25893
25894 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25895
25896 * ira-costs.c (find_costs_and_classes): Add missed
25897 ira_init_register_move_cost_if_necessary.
25898
25899 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25900
25901 PR target/59787
25902 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25903
25904 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25905
25906 PR target/59794
25907 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25908 to indicate if type is used for function return value. Warn ABI
25909 change if the vector mode isn't available for function return value.
25910 (ix86_function_arg_advance): Pass false to type_natural_mode.
25911 (ix86_function_arg): Likewise.
25912 (ix86_gimplify_va_arg): Likewise.
25913 (function_arg_32): Don't warn ABI change.
25914 (ix86_function_value): Pass true to type_natural_mode.
25915 (ix86_return_in_memory): Likewise.
25916 (ix86_struct_value_rtx): Removed.
25917 (TARGET_STRUCT_VALUE_RTX): Likewise.
25918
25919 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25920
25921 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25922 converting a conditional jump into a conditional return.
25923
25924 2014-01-14 Richard Biener <rguenther@suse.de>
25925
25926 PR tree-optimization/58921
25927 PR tree-optimization/59006
25928 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25929 hoisting invariant stmts.
25930 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25931 invariant loads on the preheader edge if possible.
25932
25933 2014-01-14 Joey Ye <joey.ye@arm.com>
25934
25935 * doc/plugin.texi (Building GCC plugins): Update to C++.
25936
25937 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25938
25939 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25940 (_mm_rcp28_round_ss): Ditto.
25941 (_mm_rsqrt28_round_sd): Ditto.
25942 (_mm_rsqrt28_round_ss): Ditto.
25943 (_mm_rcp28_sd): Ditto.
25944 (_mm_rcp28_ss): Ditto.
25945 (_mm_rsqrt28_sd): Ditto.
25946 (_mm_rsqrt28_ss): Ditto.
25947 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25948 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25949 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25950 (IX86_BUILTIN_RCP28SD): Ditto.
25951 (IX86_BUILTIN_RCP28SS): Ditto.
25952 (IX86_BUILTIN_RSQRT28SD): Ditto.
25953 (IX86_BUILTIN_RSQRT28SS): Ditto.
25954 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25955 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25956 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25957 (ix86_expand_special_args_builtin): Expand new FTYPE.
25958 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25959 (srcp14<mode>): Make insn unary.
25960 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25961 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25962 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25963 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25964 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25965 Fix rounding: make it SAE only.
25966 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25967 Ditto.
25968 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25969 Ditto.
25970 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25971 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25972 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25973 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25974 (round_saeonly_mask_scalar_operand4): Ditto.
25975 (round_saeonly_mask_scalar_op3): Ditto.
25976 (round_saeonly_mask_scalar_op4): Ditto.
25977
25978 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25979
25980 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25981 Implement -maltivec=be for vec_insert and vec_extract.
25982
25983 2014-01-10 DJ Delorie <dj@redhat.com>
25984
25985 * config/msp430/msp430.md (call_internal): Don't allow memory
25986 references with SP as the base register.
25987 (call_value_internal): Likewise.
25988 * config/msp430/constraints.md (Yc): New. For memory references
25989 that don't use SP as a base register.
25990
25991 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25992 "an integer without a # prefix"
25993 * config/msp430/msp430.md (epilogue_helper): Use it.
25994
25995 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25996
25997 PR target/59617
25998 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25999 AVX512F gather builtins.
26000 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26001 on gather decls with INTEGER_TYPE masktype.
26002 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26003 directly into the builtin rather than hoisting it before loop.
26004
26005 PR tree-optimization/59387
26006 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26007 (scev_const_prop): If folded_casts and type has undefined overflow,
26008 use force_gimple_operand instead of force_gimple_operand_gsi and
26009 for each added stmt if it is assign with
26010 arith_code_with_undefined_signed_overflow, call
26011 rewrite_to_defined_overflow.
26012 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26013 gimple-fold.h instead.
26014 (arith_code_with_undefined_signed_overflow,
26015 rewrite_to_defined_overflow): Moved to ...
26016 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26017 rewrite_to_defined_overflow): ... here. No longer static.
26018 Include gimplify-me.h.
26019 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26020 rewrite_to_defined_overflow): New prototypes.
26021
26022 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26023
26024 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26025
26026 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26027
26028 * builtins.c (get_object_alignment_2): Minor tweak.
26029 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26030
26031 2014-01-13 Christian Bruel <christian.bruel@st.com>
26032
26033 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26034 optimized non constant lengths.
26035
26036 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26037
26038 PR libgomp/59194
26039 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26040 load as __atomic_load_N if possible.
26041
26042 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26043
26044 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26045 target parameter.
26046 (rs6000_expand_builtin): Adjust call.
26047
26048 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26049
26050 PR target/58115
26051 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26052 * config/rs6000/rs6000.c: Include target-globals.h.
26053 (rs6000_set_current_function): Instead of doing target_reinit
26054 unconditionally, use save_target_globals_default_opts and
26055 restore_target_globals.
26056
26057 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26058 FPSCR.
26059 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26060 (rs6000_expand_builtin): Handle mffs and mtfsf.
26061 (rs6000_init_builtins): Define mffs and mtfsf.
26062 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26063 (rs6000_mffs): New pattern.
26064 (rs6000_mtfsf): New pattern.
26065
26066 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26067
26068 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26069 Start narrowing with START. Apply candidate-use pair
26070 and check overall cost in narrowing.
26071 (iv_ca_prune): Pass new argument.
26072
26073 2014-01-10 Jeff Law <law@redhat.com>
26074
26075 PR middle-end/59743
26076 * ree.c (combine_reaching_defs): Ensure the defining statement
26077 occurs before the extension when optimizing extensions with
26078 different source and destination hard registers.
26079
26080 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26081
26082 PR ipa/58585
26083 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26084 vtables into the type inheritance graph.
26085
26086 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26087
26088 PR rtl-optimization/59754
26089 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26090 modes in the REGNO != REGNO case.
26091
26092 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26093
26094 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26095
26096 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26097
26098 PR tree-optimization/59745
26099 * tree-predcom.c (tree_predictive_commoning_loop): Call
26100 free_affine_expand_cache if giving up because components is NULL.
26101
26102 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26103 GC in payload of target_globals struct instead of allocating them on
26104 the heap and the larger structs separately using GC.
26105 * target-globals.h (struct target_globals): Make regs, hard_regs,
26106 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26107 of GTY((skip)) and change type to void *.
26108 (reset_target_globals): Cast loads from those fields to corresponding
26109 types.
26110
26111 2014-01-10 Steve Ellcey <sellcey@mips.com>
26112
26113 PR plugins/59335
26114 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26115 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26116 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26117
26118 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26119
26120 PR target/59744
26121 * aarch64-modes.def (CC_Zmode): New flags mode.
26122 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26123 represents an equality.
26124 (aarch64_get_condition_code): Handle CC_Zmode.
26125 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26126
26127 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26128
26129 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26130 extraction in good case.
26131
26132 2014-01-10 Richard Biener <rguenther@suse.de>
26133
26134 PR tree-optimization/59374
26135 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26136 checking after SLP discovery. Mark stmts not participating
26137 in any SLP instance properly.
26138
26139 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26140
26141 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26142 when handling a SET rtx.
26143
26144 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26145
26146 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26147 (cortex-a57): Likewise.
26148 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26149
26150 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26151
26152 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26153 non-iwmmxt builtins.
26154
26155 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26156
26157 PR ipa/58252
26158 PR ipa/59226
26159 * ipa-devirt.c record_target_from_binfo): Take as argument
26160 stack of binfos and lookup matching one for virtual inheritance.
26161 (possible_polymorphic_call_targets_1): Update.
26162
26163 2014-01-10 Huacai Chen <chenhc@lemote.com>
26164
26165 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26166 kernel strings for Loongson-2E/2F/3A.
26167
26168 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26169
26170 PR middle-end/59670
26171 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26172 is_gimple_call before calling gimple_call_internal_p.
26173
26174 2014-01-09 Steve Ellcey <sellcey@mips.com>
26175
26176 * Makefile.in (TREE_FLOW_H): Remove.
26177 (TREE_SSA_H): Add file names from tree-flow.h.
26178 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26179 * tree.h: Remove tree-flow.h reference.
26180 * hash-table.h: Remove tree-flow.h reference.
26181 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26182 reference with tree-ssa-loop.h.
26183
26184 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26185
26186 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26187 default element-order behavior for -maltivec.
26188 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26189 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26190 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26191 when targeting big endian, at least for now.
26192 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26193
26194 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26195
26196 PR middle-end/47735
26197 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26198 var satisfies use_register_for_decl, just take into account type
26199 alignment, rather than decl alignment.
26200
26201 PR tree-optimization/59622
26202 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26203 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26204 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26205 Don't devirtualize for inplace at all. For targets.length () == 1,
26206 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26207
26208 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26209
26210 * config/i386/i386.md (cpu): Remove the unused btver1.
26211
26212 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26213
26214 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26215
26216 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26217
26218 PR target/58115
26219 * tree-core.h (struct target_globals): New forward declaration.
26220 (struct tree_target_option): Add globals field.
26221 * tree.h (TREE_TARGET_GLOBALS): Define.
26222 (prepare_target_option_nodes_for_pch): New prototype.
26223 * target-globals.h (struct target_globals): Define even if
26224 !SWITCHABLE_TARGET.
26225 * tree.c (prepare_target_option_node_for_pch,
26226 prepare_target_option_nodes_for_pch): New functions.
26227 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26228 * config/i386/i386.c: Include target-globals.h.
26229 (ix86_set_current_function): Instead of doing target_reinit
26230 unconditionally, use save_target_globals_default_opts and
26231 restore_target_globals.
26232
26233 2014-01-09 Richard Biener <rguenther@suse.de>
26234
26235 PR tree-optimization/59715
26236 * tree-cfg.h (split_critical_edges): Declare.
26237 * tree-cfg.c (split_critical_edges): Export.
26238 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26239
26240 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26241
26242 * cfgexpand.c (expand_stack_vars): Optionally disable
26243 asan stack protection.
26244 (expand_used_vars): Likewise.
26245 (partition_stack_vars): Likewise.
26246 * asan.c (asan_emit_stack_protection): Optionally disable
26247 after return stack usage.
26248 (instrument_derefs): Optionally disable memory access instrumentation.
26249 (instrument_builtin_call): Likewise.
26250 (instrument_strlen_call): Likewise.
26251 (asan_protect_global): Optionally disable global variables protection.
26252 * doc/invoke.texi: Added doc for new options.
26253 * params.def: Added new options.
26254 * params.h: Likewise.
26255
26256 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26257
26258 PR rtl-optimization/59724
26259 * ifcvt.c (cond_exec_process_if_block): Don't call
26260 flow_find_head_matching_sequence with 0 longest_match.
26261 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26262 non-active insns if !stop_after.
26263 (try_head_merge_bb): Revert 2014-01-07 changes.
26264
26265 2014-01-08 Jeff Law <law@redhat.com>
26266
26267 * ree.c (get_sub_rtx): New function, extracted from...
26268 (merge_def_and_ext): Here.
26269 (combine_reaching_defs): Use get_sub_rtx.
26270
26271 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26272
26273 * cgraph.h (varpool_variable_node): Do not choke on null node.
26274
26275 2014-01-08 Catherine Moore <clm@codesourcery.com>
26276
26277 * config/mips/mips.md (simple_return): Attempt to use JRC
26278 for microMIPS.
26279 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26280
26281 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26282
26283 PR rtl-optimization/59137
26284 * reorg.c (steal_delay_list_from_target): Call update_block for
26285 elided insns.
26286 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26287
26288 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26289
26290 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26291 two duplicate entries.
26292
26293 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26294
26295 Revert:
26296 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26297
26298 * config/mips/mips.c (mips_truncated_op_cost): New function.
26299 (mips_rtx_costs): Adjust test for BADDU.
26300 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26301
26302 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26303
26304 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26305 (*baddu_si): ...this new pattern.
26306
26307 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26308
26309 PR ipa/59722
26310 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26311
26312 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26313
26314 PR middle-end/57748
26315 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26316 inner_reference_p.
26317 (expand_expr, expand_normal): Adjust.
26318 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26319 inner_reference_p. Use inner_reference_p to expand inner references.
26320 (store_expr): Adjust.
26321 * cfgexpand.c (expand_call_stmt): Adjust.
26322
26323 2014-01-08 Rong Xu <xur@google.com>
26324
26325 * gcov-io.c (gcov_var): Move from gcov-io.h.
26326 (gcov_position): Ditto.
26327 (gcov_is_error): Ditto.
26328 (gcov_rewrite): Ditto.
26329 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26330 only part to libgcc/libgcov.h.
26331
26332 2014-01-08 Marek Polacek <polacek@redhat.com>
26333
26334 PR middle-end/59669
26335 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26336
26337 2014-01-08 Marek Polacek <polacek@redhat.com>
26338
26339 PR sanitizer/59667
26340 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26341
26342 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26343
26344 PR rtl-optimization/59649
26345 * stor-layout.c (get_mode_bounds): For BImode return
26346 0 and STORE_FLAG_VALUE.
26347
26348 2014-01-08 Richard Biener <rguenther@suse.de>
26349
26350 PR middle-end/59630
26351 * gimple.h (is_gimple_builtin_call): Remove.
26352 (gimple_builtin_call_types_compatible_p): New.
26353 (gimple_call_builtin_p): New overload.
26354 * gimple.c (is_gimple_builtin_call): Remove.
26355 (validate_call): Rename to ...
26356 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26357 check return types.
26358 (validate_type): New static function.
26359 (gimple_call_builtin_p): New overload and adjust.
26360 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26361 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26362 (gimple_fold_stmt_to_constant_1): Likewise.
26363 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26364
26365 2014-01-08 Richard Biener <rguenther@suse.de>
26366
26367 PR middle-end/59471
26368 * gimplify.c (gimplify_expr): Gimplify register-register type
26369 VIEW_CONVERT_EXPRs to separate stmts.
26370
26371 2014-01-07 Jeff Law <law@redhat.com>
26372
26373 PR middle-end/53623
26374 * ree.c (combine_set_extension): Handle case where source
26375 and destination registers in an extension insn are different.
26376 (combine_reaching_defs): Allow source and destination registers
26377 in extension to be different under limited circumstances.
26378 (add_removable_extension): Remove restriction that the
26379 source and destination registers in the extension are the same.
26380 (find_and_remove_re): Emit a copy from the extension's
26381 destination to its source after the defining insn if
26382 the source and destination registers are different.
26383
26384 PR middle-end/59285
26385 * ifcvt.c (merge_if_block): If we are merging a block with more than
26386 one successor with a block with no successors, remove any BARRIER
26387 after the second block.
26388
26389 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26390
26391 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26392
26393 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26394
26395 PR target/59652
26396 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26397 for 14-bit register offsets when INT14_OK_STRICT is false.
26398
26399 2014-01-07 Roland Stigge <stigge@antcom.de>
26400 Michael Meissner <meissner@linux.vnet.ibm.com>
26401
26402 PR 57386/target
26403 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26404 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26405
26406 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26407
26408 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26409 -mcpu.
26410
26411 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26412
26413 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26414 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26415 rtx is const0_rtx or not.
26416
26417 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26418
26419 PR target/58115
26420 * target-globals.c (save_target_globals): Remove this_fn_optab
26421 handling.
26422 * toplev.c: Include optabs.h.
26423 (target_reinit): Temporarily restore the global options if another
26424 set of options are in force.
26425
26426 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26427
26428 PR rtl-optimization/58668
26429 * cfgcleanup.c (flow_find_cross_jump): Don't count
26430 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26431 to determine what is counted.
26432 (flow_find_head_matching_sequence): Use active_insn_p to determine
26433 what is counted.
26434 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26435 counting change.
26436 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26437 determine what is counted.
26438
26439 PR tree-optimization/59643
26440 * tree-predcom.c (split_data_refs_to_components): If one dr is
26441 read and one write, determine_offset fails and the write isn't
26442 in the bad component, just put the read into the bad component.
26443
26444 2014-01-07 Mike Stump <mikestump@comcast.net>
26445 Jakub Jelinek <jakub@redhat.com>
26446
26447 PR pch/59436
26448 * tree-core.h (struct tree_optimization_option): Change optabs
26449 type from unsigned char * to void *.
26450 * optabs.c (init_tree_optimization_optabs): Adjust
26451 TREE_OPTIMIZATION_OPTABS initialization.
26452
26453 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26454
26455 PR target/59644
26456 * config/i386/i386.h (struct machine_function): Add
26457 no_drap_save_restore field.
26458 * config/i386/i386.c (ix86_save_reg): Use
26459 !cfun->machine->no_drap_save_restore instead of
26460 crtl->stack_realign_needed.
26461 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26462 this function clears frame_pointer_needed. Set
26463 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26464 and DRAP reg is needed.
26465
26466 2014-01-06 Marek Polacek <polacek@redhat.com>
26467
26468 PR c/57773
26469 * doc/implement-c.texi: Mention that other integer types are
26470 permitted as bit-field types in strictly conforming mode.
26471
26472 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26473
26474 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26475 is newly allocated.
26476
26477 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26478
26479 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26480
26481 2014-01-06 Martin Jambor <mjambor@suse.cz>
26482
26483 PR ipa/59008
26484 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26485 to int.
26486 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26487
26488 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26489
26490 PR debug/59350
26491 PR debug/59510
26492 * var-tracking.c (add_stores): Preserve the value of the source even if
26493 we don't record the store.
26494
26495 2014-01-06 Terry Guo <terry.guo@arm.com>
26496
26497 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26498
26499 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26500
26501 PR bootstrap/59541
26502 * config/darwin.c (darwin_function_section): Adjust return values to
26503 correspond to optimisation changes made in r206070.
26504
26505 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26506
26507 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26508 from prefetch_block tune setting.
26509 (nocona_cost): Correct size of prefetch block to 64.
26510
26511 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26512
26513 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26514 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26515 used to save the static chain register in the computation of the offset
26516 from which the FP registers need to be restored.
26517
26518 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26519
26520 PR tree-optimization/59519
26521 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26522 ICE if get_current_def (current_new_name) is already non-NULL, as long
26523 as it is a phi result of some other phi in *new_exit_bb that has
26524 the same argument.
26525
26526 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26527 or vmovdqu* for misaligned_operand.
26528 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26529 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26530 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26531 aligned_mem for AVX512F masked aligned load and store builtins and for
26532 non-temporal moves.
26533
26534 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26535
26536 PR tree-optimization/59651
26537 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26538 Address range for negative step should be added by TYPE_SIZE_UNIT.
26539
26540 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26541
26542 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26543 overlapping registers also for registers other than the stack pointer.
26544
26545 2014-01-03 Marek Polacek <polacek@redhat.com>
26546
26547 PR other/59661
26548 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26549 __builtin_FILE.
26550
26551 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26552
26553 PR target/59625
26554 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26555 asm goto as jump.
26556
26557 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26558 (push splitter): Use <P:MODE_SIZE> instead of
26559 GET_MODE_SIZE (<P:MODE>mode).
26560 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26561 (mov -1, reg peephole2): Likewise.
26562 * config/i386/sse.md (*mov<mode>_internal,
26563 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26564 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26565 *<code><mode>3, *andnot<mode>3<mask_name>,
26566 <mask_codefor><code><mode>3<mask_name>): Likewise.
26567 * config/i386/subst.md (mask_mode512bit_condition,
26568 sd_mask_mode512bit_condition): Likewise.
26569
26570 2014-01-02 Xinliang David Li <davidxl@google.com>
26571
26572 PR tree-optimization/59303
26573 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26574 (dump_predicates): Better output format.
26575 (pred_equal_p): New function.
26576 (is_neq_relop_p): Ditto.
26577 (is_neq_zero_form_p): Ditto.
26578 (pred_expr_equal_p): Ditto.
26579 (pred_neg_p): Ditto.
26580 (simplify_pred): Ditto.
26581 (simplify_preds_2): Ditto.
26582 (simplify_preds_3): Ditto.
26583 (simplify_preds_4): Ditto.
26584 (simplify_preds): Ditto.
26585 (push_pred): Ditto.
26586 (push_to_worklist): Ditto.
26587 (get_pred_info_from_cmp): Ditto.
26588 (is_degenerated_phi): Ditto.
26589 (normalize_one_pred_1): Ditto.
26590 (normalize_one_pred): Ditto.
26591 (normalize_one_pred_chain): Ditto.
26592 (normalize_preds): Ditto.
26593 (normalize_cond_1): Remove function.
26594 (normalize_cond): Ditto.
26595 (is_gcond_subset_of): Ditto.
26596 (is_subset_of_any): Ditto.
26597 (is_or_set_subset_of): Ditto.
26598 (is_and_set_subset_of): Ditto.
26599 (is_norm_cond_subset_of): Ditto.
26600 (pred_chain_length_cmp): Ditto.
26601 (convert_control_dep_chain_into_preds): Type change.
26602 (find_predicates): Ditto.
26603 (find_def_preds): Ditto.
26604 (destroy_predicates_vecs): Ditto.
26605 (find_matching_predicates_in_rest_chains): Ditto.
26606 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26607 (is_pred_expr_subset): Ditto.
26608 (is_pred_chain_subset_of): Ditto.
26609 (is_included_in): Ditto.
26610 (is_superset_of): Ditto.
26611
26612 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26613
26614 Update copyright years.
26615
26616 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26617
26618 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26619 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26620 config/arc/arc.md, config/arc/arc.opt,
26621 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26622 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26623 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26624 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26625 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26626 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26627 vtable-verify.c, vtable-verify.h: Use the standard form for the
26628 copyright notice.
26629
26630 2014-01-02 Tobias Burnus <burnus@net-b.de>
26631
26632 * gcc.c (process_command): Update copyright notice dates.
26633 * gcov-dump.c: Ditto.
26634 * gcov.c: Ditto.
26635 * doc/cpp.texi: Bump @copying's copyright year.
26636 * doc/cppinternals.texi: Ditto.
26637 * doc/gcc.texi: Ditto.
26638 * doc/gccint.texi: Ditto.
26639 * doc/gcov.texi: Ditto.
26640 * doc/install.texi: Ditto.
26641 * doc/invoke.texi: Ditto.
26642
26643 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26644
26645 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26646
26647 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26648
26649 * config/i386/sse.md (*mov<mode>_internal): Guard
26650 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26651
26652 PR rtl-optimization/59647
26653 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26654 new_rtx into UNSIGNED_FLOAT rtxes.
26655 \f
26656 Copyright (C) 2014 Free Software Foundation, Inc.
26657
26658 Copying and distribution of this file, with or without modification,
26659 are permitted in any medium without royalty provided the copyright
26660 notice and this notice are preserved.